Not sure why this was languishing in `module-impl.lisp'.
module-impl.lisp
*module-dirs* variable
module-impl.lisp
*module-dirs* variable
- c-fragment class
- c-fragment-text generic
code-fragment generic
code-fragment-constraints generic
code-fragment-item class
code-fragment generic
code-fragment-constraints generic
code-fragment-item class
add-clear-the-decks-function function
add-module-binding function
add-to-module generic
add-clear-the-decks-function function
add-module-binding function
add-to-module generic
+ c-fragment class
+ c-fragment-text generic
clear-the-decks function
define-clear-the-decks macro
define-module macro
clear-the-decks function
define-clear-the-decks macro
define-module macro
;;;--------------------------------------------------------------------------
;;; Code fragments.
;;;--------------------------------------------------------------------------
;;; Code fragments.
-(export '(c-fragment c-fragment-text))
-(defclass c-fragment ()
- ((location :initarg :location :type file-location :reader file-location)
- (text :initarg :text :type string :reader c-fragment-text))
- (:documentation
- "Represents a fragment of C code to be written to an output file.
-
- A C fragment is aware of its original location, and will bear proper
- `#line' markers when written out."))
-
(defun output-c-excursion (stream location func)
"Invoke FUNC surrounding it by writing #line markers to STREAM.
(defun output-c-excursion (stream location func)
"Invoke FUNC surrounding it by writing #line markers to STREAM.
"Evaluate BODY within the context of a temporary module."
`(call-with-temporary-module (lambda () ,@body)))
"Evaluate BODY within the context of a temporary module."
`(call-with-temporary-module (lambda () ,@body)))
+;;;--------------------------------------------------------------------------
+;;; Code fragments.
+
+(export '(c-fragment c-fragment-text))
+(defclass c-fragment ()
+ ((location :initarg :location :type file-location :reader file-location)
+ (text :initarg :text :type string :reader c-fragment-text))
+ (:documentation
+ "Represents a fragment of C code to be written to an output file.
+
+ A C fragment is aware of its original location, and will bear proper
+ `#line' markers when written out."))
+
;;;----- That's all, folks --------------------------------------------------
;;;----- That's all, folks --------------------------------------------------