X-Git-Url: https://git.distorted.org.uk/~mdw/sod/blobdiff_plain/b3354e08ea601fe2420c15a9a16d1f6d5b98a897..91d9ba3cb6ed57640dc29c2b2e73bb89e2628484:/src/module-impl.lisp diff --git a/src/module-impl.lisp b/src/module-impl.lisp index c15edda..ba04397 100644 --- a/src/module-impl.lisp +++ b/src/module-impl.lisp @@ -7,7 +7,7 @@ ;;;----- Licensing notice --------------------------------------------------- ;;; -;;; This file is part of the Sensble Object Design, an object system for C. +;;; This file is part of the Sensible Object Design, an object system for C. ;;; ;;; SOD is free software; you can redistribute it and/or modify ;;; it under the terms of the GNU General Public License as published by @@ -51,8 +51,7 @@ ;; exercise the property-set fiddling in `shared-initialize' and we can ;; catch unknown-property errors. (change-class module class :state t :pset pset) - (check-unused-properties pset) - module)) + (check-unused-properties pset))) ;;;-------------------------------------------------------------------------- ;;; Module objects. @@ -87,7 +86,8 @@ (with-module-environment () (module-import *builtin-module*) (funcall thunk) - (finalize-module *module*)) + (finalize-module *module*) + *module*) (when (and truename (not (eq (module-state *module*) t))) (remhash truename *module-map*))))) @@ -199,7 +199,8 @@ (export '(code-fragment-item code-fragment code-fragment-reason code-fragment-name code-fragment-constraints)) (defclass code-fragment-item () - ((fragment :initarg :fragment :type c-fragment :reader code-fragment) + ((fragment :initarg :fragment :type (or string c-fragment) + :reader code-fragment) (reason :initarg :reason :type keyword :reader code-fragment-reason) (name :initarg :name :type t :reader code-fragment-name) (constraints :initarg :constraints :type list