X-Git-Url: https://git.distorted.org.uk/~mdw/sod/blobdiff_plain/aa14a4cddcb96b681d5c19a2ec8bad382f43b264..9ec578d9fe450b7e7f9030dc9d930185593aa991:/src/c-types-class-impl.lisp diff --git a/src/c-types-class-impl.lisp b/src/c-types-class-impl.lisp index de980d8..36e9c50 100644 --- a/src/c-types-class-impl.lisp +++ b/src/c-types-class-impl.lisp @@ -45,7 +45,7 @@ The CLASS slot will be NIL if the class isn't defined yet, i.e., this entry was constructed by a forward reference operation. - The NAME slot inherited from SIMPLE-C-TYPE is here so that we can print + The NAME slot inherited from `simple-c-type' is here so that we can print the type even when it's a forward reference.")) ;; Constructor function and interning. @@ -57,11 +57,11 @@ (export 'find-class-type) (defun find-class-type (name) - "Look up NAME and return the corresponding C-CLASS-TYPE. + "Look up NAME and return the corresponding `c-class-type'. * If the type was found, and was a class, returns TYPE. - * If no type was found at all, returns NIL. + * If no type was found at all, returns `nil'. * If a type was found, but it wasn't a class, signals an error." @@ -91,6 +91,7 @@ (values it (slot-value it 'tag)) (let* ((tag (gensym "TAG-")) (type (intern-c-type 'c-class-type :name name :tag tag))) + (setf (gethash name *module-type-map*) type) (values type tag))) ;; If no qualifiers are wanted then we've already found or created the @@ -126,7 +127,7 @@ (export 'find-sod-class) (defun find-sod-class (name) - "Return the SOD-CLASS object with the given NAME." + "Return the `sod-class' object with the given NAME." (aif (find-class-type name) (or (c-type-class it) (error "Class `~A' is incomplete" name)) (error "Type `~A' not known" name)))