Skip to content

Commit

Permalink
correct wfst array type when adjusted
Browse files Browse the repository at this point in the history
  • Loading branch information
lisp committed Feb 16, 2014
1 parent de74959 commit 0cf93b7
Show file tree
Hide file tree
Showing 6 changed files with 17 additions and 9 deletions.
4 changes: 2 additions & 2 deletions atn-lisp-compiler.lisp
Expand Up @@ -230,9 +230,9 @@
(declare (special *grammar-system *parser-name *system-lexicon *tokenizer-name))
(declare (ignore report-recursion)) ;; to permit the compiler to be used with older parser versions
(setq *atn-source-package* (or (find-package *atn-source-package*)
"source package is invalid: ~s." *atn-source-package*))
(error "source package is invalid: ~s." *atn-source-package*)))
(setq *atn-token-package* (or (find-package *atn-token-package*)
"token package is invalid: ~s." *atn-token-package*))
(error "token package is invalid: ~s." *atn-token-package*)))
(unless (or source-pathname *compile-file-pathname*)
(error "no output pathname provided."))

Expand Down
2 changes: 1 addition & 1 deletion atn-runtime.lisp
Expand Up @@ -144,7 +144,7 @@
)

(defun |wfst-adjust| (cache size)
(adjust-array cache size :element-type 'cons :initial-element nil))
(adjust-array cache size :element-type 'list :initial-element nil))

(defun |wfst-entry| (net index &aux cache-entry)
(cond ((and *atn-wfst
Expand Down
5 changes: 3 additions & 2 deletions clifs/inference-system-classes.lisp
Expand Up @@ -14,6 +14,7 @@
lispworks/ansi conformance</DELTA>
<DELTA DATE='20030602'>scl</DELTA>
<DELTA DATE='20050614'>acl version 7.0 ansi mods</DELTA>
<DELTA DATE='20110402'>lw 6</DELTA>
</CHRONOLOGY>
</DOCUMENTATION>
|#
Expand Down Expand Up @@ -104,14 +105,14 @@

;; wg. CL-Konformitaet
#-clisp
(defmethod documentation ((x inference-system) #-(or CMU LispWorks4 sbcl openmcl scl
(defmethod documentation ((x inference-system) #-(or CMU lispworks sbcl openmcl scl
(and allegro allegro-version>= (version>= 7 0))
) &optional type)
(declare (ignore type))
(slot-value x 'doc))

#-clisp
(defmethod (setf documentation) (doc (x inference-system) #-(or CMU LispWorks4 sbcl openmcl scl
(defmethod (setf documentation) (doc (x inference-system) #-(or CMU lispworks sbcl openmcl scl
(and allegro allegro-version>= (version>= 7 0))
) &optional type)
(declare (ignore type))
Expand Down
4 changes: 2 additions & 2 deletions clifs/inference-units.lisp
Expand Up @@ -34,13 +34,13 @@
(documentation :accessor rule-documentation
:initarg :documentation)))

(defmethod documentation ((x rule) #-(or CMU LispWorks4 sbcl openmcl scl
(defmethod documentation ((x rule) #-(or CMU lispworks sbcl openmcl scl
(and allegro allegro-version>= (version>= 7 0))
) &optional doc-type)
(declare (ignore doc-type))
(slot-value x 'documentation))

(defmethod (setf documentation) (doc-string (x rule) #-(or CMU LispWorks4 sbcl openmcl scl
(defmethod (setf documentation) (doc-string (x rule) #-(or CMU lispworks sbcl openmcl scl
(and allegro allegro-version>= (version>= 7 0))
) &optional doc-type)
(declare (ignore doc-type))
Expand Down
9 changes: 8 additions & 1 deletion clifs/package.lisp
Expand Up @@ -24,7 +24,14 @@
#+(and Allegro (version< 6 0)) (:import-from "CLOS" "CLASS-PRECEDENCE-LIST")
#+Genera (:import-from "CLOS-INTERNALS" "CLASS-PRECEDENCE-LIST" "FUNCALLABLE-STANDARD-CLASS" "VALIDATE-SUPERCLASS")
#+Genera(:shadowing-import-from "SI" "STREAM")
#+lispworks (:import-from :lispworks
#+lispworks (:import-from :clos
:built-in-class
:class-name
:class-of
:class-precedence-list
:find-class
:funcallable-standard-class
:standard-class
:validate-superclass)
#+PCL (:shadowing-import-from "PCL" "CLASS-PRECEDENCE-LIST"
"FUNCALLABLE-STANDARD-CLASS"
Expand Down
2 changes: 1 addition & 1 deletion package.lisp
Expand Up @@ -59,7 +59,7 @@
:funcallable-standard-class
:validate-superclass)
#+genera(:shadowing-import-from :si :stream)
#+lispworks (:import-from :lispworks
#+lispworks (:import-from :clos
:validate-superclass)
#+pcl (:shadowing-import-from :pcl :class-precedence-list
:funcallable-standard-class
Expand Down

0 comments on commit 0cf93b7

Please sign in to comment.