aboutsummaryrefslogtreecommitdiff
path: root/src/propspec.lisp
diff options
context:
space:
mode:
authorSean Whitton <spwhitton@spwhitton.name>2021-04-16 20:23:50 -0700
committerSean Whitton <spwhitton@spwhitton.name>2021-04-16 20:35:39 -0700
commit28ad2720a8602eb46d496b50da376b869250b22e (patch)
treee2b17357c10fd238f9c747df8d8e9bb7e5aca112 /src/propspec.lisp
parentb059c44b7ed012c9c1660f22a3fa8db9a966dcf3 (diff)
downloadconsfigurator-28ad2720a8602eb46d496b50da376b869250b22e.tar.gz
define & use DEFINE-PRINT-OBJECT-FOR-STRUCTLIKE
Signed-off-by: Sean Whitton <spwhitton@spwhitton.name>
Diffstat (limited to 'src/propspec.lisp')
-rw-r--r--src/propspec.lisp17
1 files changed, 2 insertions, 15 deletions
diff --git a/src/propspec.lisp b/src/propspec.lisp
index 2e401f6..d1b95bd 100644
--- a/src/propspec.lisp
+++ b/src/propspec.lisp
@@ -208,22 +208,9 @@ systems."
:systems systems :propspec propspec)
(make-instance 'unpreprocessed-propspec :propspec propspec)))
-(defmethod print-object ((propspec unpreprocessed-propspec) stream)
- (format stream "#.~S" `(make-instance
- 'unpreprocessed-propspec
- :systems ',(slot-value propspec 'systems)
- :propspec
- ',(slot-value propspec 'propspec-expression)))
- propspec)
+(define-print-object-for-structlike preprocessed-propspec)
-(defmethod print-object ((propspec preprocessed-propspec) stream)
- (format stream "#.~S" `(make-instance
- 'preprocessed-propspec
- :systems ',(slot-value propspec 'systems)
- :propspec
- ',(slot-value propspec
- 'preprocessed-propspec-expression)))
- propspec)
+(define-print-object-for-structlike unpreprocessed-propspec)
;; this could be defined for preprocessed propspecs easily enough but we
;; shouldn't need to append those