Thu Jun 11 16:35:40 CEST 2009 Tobias Rautenkranz <tobias@rautenkranz.ch>
* Modules can specify the package to place the classes, static methods and constants in.
hunk ./smoke.mbd 16
- ())
+ ((package :initarg :package)))
hunk ./src/clos.lisp 211
-(defun make-smoke-classes (smoke)
- "Construts a lisp class for each one in the Smoke module SMOKE."
+(defun make-smoke-classes (package smoke)
+ "Construts a lisp class in PACKAGE for each one in the Smoke module SMOKE."
hunk ./src/clos.lisp 215
+ (let ((*package* (find-package package)))
hunk ./src/clos.lisp 229
- smoke))
+ smoke)))
hunk ./src/method.lisp 4
-(defun constant-definition (method smoke)
+(defun constant-definition (package method smoke)
hunk ./src/method.lisp 11
- "+"))
+ "+")
+ package)
hunk ./src/method.lisp 16
- (name method) "+")))))
+ (name method) "+")
+ package))))
hunk ./src/method.lisp 28
-(defun static-method-symbol (method)
+(defun static-method-symbol (package method)
hunk ./src/method.lisp 38
- (name method)))))
+ (name method))
+ package)))
hunk ./src/method.lisp 41
-(defun static-method-definition (method &optional (argument-count -1))
+(defun static-method-definition (package method &optional (argument-count -1))
hunk ./src/method.lisp 46
- (name (static-method-symbol method)))
+ (name (static-method-symbol package method)))
hunk ./src/method.lisp 51
- (call-using-args (find-class (quote ,(lispify (name class))))
+ (call-using-args (find-class (quote ,(lispify (name class) package)))
hunk ./src/method.lisp 90
-(defmacro define-methods (smoke)
+(defmacro define-classes-and-gfs (package smoke)
hunk ./src/method.lisp 109
- (multiple-value-bind (def export) (constant-definition method smoke)
+ (multiple-value-bind (def export) (constant-definition package method smoke)
hunk ./src/method.lisp 129
- (let* ((function-symbol (static-method-symbol method))
+ (let* ((function-symbol (static-method-symbol package method))
hunk ./src/method.lisp 140
+ package
hunk ./src/method.lisp 151
- (make-smoke-classes ,smoke)
+ (make-smoke-classes ,package ,smoke)
hunk ./src/method.lisp 155
- (export (quote ,exports))))))
+ (export (quote ,exports) ,package)))))
hunk ./src/smoke-c/smoke-c.lisp 57
- "asdf"
hunk ./src/smoke.lisp 165
-(defmacro define-smoke-module (library (variable variable-name)
+(defmacro define-smoke-module (package library [_$_]
+ (variable variable-name)
hunk ./src/smoke.lisp 182
- (define-methods ,variable)))
+ (define-classes-and-gfs ,package ,variable)))