call it :LINEDIT-PORT-FILE for some semblance of hygiene
authorNikodemus Siivola <nikodemus@random-state.net>
Sun, 29 Apr 2012 10:56:10 +0000 (13:56 +0300)
committerNikodemus Siivola <nikodemus@random-state.net>
Sun, 29 Apr 2012 10:56:10 +0000 (13:56 +0300)
linedit.asd

index 4d298fa..ea8f3e7 100644 (file)
     (t
       (error "Invalid feature expression: ~S" x))))
 
-(defclass port-file (cl-source-file)
+(defclass linedit-port-file (cl-source-file)
   ((test :initform nil)))
 
-(defmethod shared-initialize :after ((port port-file) slots &key when unless)
+(defmethod shared-initialize :after ((port linedit-port-file) slots &key when unless)
   (setf (slot-value port 'test)
         (cond ((and when unless)
                `(:and ,when (:not ,unless)))
               (t
                (error "~S has no feature conditionals." port)))))
 
-(defmethod perform :around ((op load-op) (port port-file))
+(defmethod perform :around ((op load-op) (port linedit-port-file))
   (when (featurep (slot-value port 'test))
     (call-next-method)))
 
-(defmethod perform :around ((op load-source-op) (port port-file))
+(defmethod perform :around ((op load-source-op) (port linedit-port-file))
   (when (featurep (slot-value port 'test))
     (call-next-method)))
 
-(defmethod perform :around ((op compile-op) (port port-file))
+(defmethod perform :around ((op compile-op) (port linedit-port-file))
   (when (featurep (slot-value port 'test))
     (call-next-method)))
 
             :components (;; This has definitions which signal an error, replaced
                          ;; by port-specific files below when possible.
                          (:file "generic")
-                         (:port-file "sbcl" :when :sbcl)
-                         (:port-file "ccl" :when :ccl)))))
+                         (:linedit-port-file "sbcl" :when :sbcl)
+                         (:linedit-port-file "ccl" :when :ccl)))))