aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSean Whitton <spwhitton@spwhitton.name>2021-03-16 11:51:14 -0700
committerSean Whitton <spwhitton@spwhitton.name>2021-03-16 11:52:12 -0700
commitcf47af18e948a54520568f88547ca2e463fe9148 (patch)
tree83b9eae0bbad2b015f67fcd8087f82305102365b /src
parentc820c21bd9f8c977a4a6ecaf4d506fdcdfc9dce2 (diff)
downloadconsfigurator-cf47af18e948a54520568f88547ca2e463fe9148.tar.gz
rename some symbols to avoid using names defined by CL package
The point of using non-keywords here is to avoid clashes with other packages. Signed-off-by: Sean Whitton <spwhitton@spwhitton.name>
Diffstat (limited to 'src')
-rw-r--r--src/property.lisp16
-rw-r--r--src/propspec.lisp2
2 files changed, 9 insertions, 9 deletions
diff --git a/src/property.lisp b/src/property.lisp
index af1aaff..df2e352 100644
--- a/src/property.lisp
+++ b/src/property.lisp
@@ -32,9 +32,9 @@
(defun setprop (sym &key (type :lisp) lambda desc preprocess hostattrs check apply unapply indent)
;; use non-keyword keys to avoid clashes with other packages
(when type
- (setf (get sym 'type) type))
+ (setf (get sym 'ptype) type))
(when lambda
- (setf (get sym 'lambda) lambda))
+ (setf (get sym 'plambda) lambda))
(when desc
(setf (get sym 'desc) desc))
(when preprocess
@@ -44,7 +44,7 @@
(when check
(setf (get sym 'check) check))
(when apply
- (setf (get sym 'apply) apply))
+ (setf (get sym 'papply) apply))
(when unapply
(setf (get sym 'unapply) unapply))
(store-indentation-info-for-emacs sym lambda indent)
@@ -55,13 +55,13 @@
(and (symbolp prop) (get prop 'property nil)))
(defun proptype (prop)
- (get prop 'type))
+ (get prop 'ptype))
(defun proppp (prop)
(get prop 'preprocess (lambda (&rest args) args)))
(defun propapptype (propapp)
- (get (car propapp) 'type))
+ (get (car propapp) 'ptype))
(defun collapse-types (&rest lists)
(if (member :posix (flatten lists)) :posix :lisp))
@@ -72,8 +72,8 @@
(defun propappdesc (propapp)
(apply #'propdesc propapp))
-(defun propargs (prop)
- (get prop 'args))
+(defun proplambda (prop)
+ (get prop 'plambda))
(defun propattrs (prop &rest args)
(apply (get prop 'hostattrs #'noop) args))
@@ -92,7 +92,7 @@
(let ((check (get prop 'check)))
(if (and check (apply check args))
:no-change
- (apply (get prop 'apply (constantly :no-change)) args)))))
+ (apply (get prop 'papply (constantly :no-change)) args)))))
(defun propappunapply (propapp)
(destructuring-bind (prop . args) propapp
diff --git a/src/propspec.lisp b/src/propspec.lisp
index 7f2019d..0a93e8e 100644
--- a/src/propspec.lisp
+++ b/src/propspec.lisp
@@ -316,7 +316,7 @@ application specification expression to a property application specification."
(define-function-property-combinator unapply (propapp)
(destructuring-bind (psym . args) propapp
(retprop :type (proptype psym)
- :lambda (propargs psym)
+ :lambda (proplambda psym)
:desc (lambda (&rest args)
(strcat "Unapply: " (apply #'propdesc psym args)))
:check (complement (get psym 'check))