Skip to content

Updated to build with Lispworks 7 #8

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 6 additions & 5 deletions src/nox/core-constants.lisp
Original file line number Diff line number Diff line change
Expand Up @@ -102,11 +102,12 @@
(defequal -owl-uri- "http://www.w3.org/2002/07/owl#")
(defequal -daml-uri- "http://www.daml.org/2000/12/daml+oil#"))

(defmacro rdf-uri (string) `(concatenate 'string -rdf-uri- ,string))
(defmacro rdfs-uri (string) `(concatenate 'string -rdfs-uri- ,string))
(defmacro xsd-uri (string) `(concatenate 'string -xsd-uri- ,string))
(defmacro owl-uri (string) `(concatenate 'string -owl-uri- ,string))
(defmacro daml-uri (string) `(concatenate 'string -daml-uri- ,string))
(eval-when (:compile-toplevel :load-toplevel)
(defmacro rdf-uri (string) `(concatenate 'string -rdf-uri- ,string))
(defmacro rdfs-uri (string) `(concatenate 'string -rdfs-uri- ,string))
(defmacro xsd-uri (string) `(concatenate 'string -xsd-uri- ,string))
(defmacro owl-uri (string) `(concatenate 'string -owl-uri- ,string))
(defmacro daml-uri (string) `(concatenate 'string -daml-uri- ,string)))

(defequal -alternate-rdf-uri-
#."http://www.w3.org/TR/REC-rdf-syntax/")
Expand Down
26 changes: 17 additions & 9 deletions src/nox/xml-util.lisp
Original file line number Diff line number Diff line change
Expand Up @@ -207,14 +207,22 @@
(warn "No working WITHOUT-INTERRUPTS in this implementation")
`(progn ,@body))

#-:digitool
#-(or :digitool :lispworks)
(defmacro atomic-push (thing place)
`(without-interrupts (push ,thing ,place)))

#-:digitool
#+:lispworks
(defmacro atomic-push (thing place)
`(sys:atomic-push ,thing ,place))

#-(or :digitool :lispworks)
(defmacro atomic-pop (place)
`(without-interrupts (pop ,place)))

#+:lispworks
(defmacro atomic-pop (place)
`(sys:atomic-pop ,place))

(defun allocate-resource-from-pool (pool &rest args)
#+:digitool
(declare (ignore args))
Expand Down Expand Up @@ -381,13 +389,13 @@
(read-char stream t nil t) ; skip #\>
(return (concatenate 'string (nreverse chars)))))))


(defmacro whitespace-char-p (char)
(with-temps (c)
`(let ((,c ,char))
;; let's assume this works for now :-)
(or (char= ,c #\Space)
(not (graphic-char-p ,c))))))
(eval-when (:compile-toplevel :load-toplevel)
(defmacro whitespace-char-p (char)
(with-temps (c)
`(let ((,c ,char))
;; let's assume this works for now :-)
(or (char= ,c #\Space)
(not (graphic-char-p ,c)))))))


(defequal -whitespace-chars-
Expand Down
2 changes: 1 addition & 1 deletion src/platform.lisp
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@
;;; LOCKS
;;;

#-(and :digitool :CCL-5.2) ; already defined
#-(or lispworks (and :digitool :CCL-5.2)) ; already defined
(defmacro with-lock ((lock &rest args) &body body)
#+(or :digitool :clozure) `(with-lock-grabbed (,lock ,@args) ,@body)
#+:excl `(mp:with-process-lock (,lock ,@args) ,@body)
Expand Down