[armedbear-cvs] r11995 - branches/0.15.x/abcl/src/org/armedbear/lisp
Ville Voutilainen
vvoutilainen at common-lisp.net
Sat Jun 6 14:15:01 UTC 2009
Author: vvoutilainen
Date: Sat Jun 6 10:15:00 2009
New Revision: 11995
Log:
Backport the packaging changes for macroexpand-all and compiler-let.
Modified:
branches/0.15.x/abcl/src/org/armedbear/lisp/Lisp.java
branches/0.15.x/abcl/src/org/armedbear/lisp/Symbol.java
branches/0.15.x/abcl/src/org/armedbear/lisp/autoloads.lisp
branches/0.15.x/abcl/src/org/armedbear/lisp/precompiler.lisp
Modified: branches/0.15.x/abcl/src/org/armedbear/lisp/Lisp.java
==============================================================================
--- branches/0.15.x/abcl/src/org/armedbear/lisp/Lisp.java (original)
+++ branches/0.15.x/abcl/src/org/armedbear/lisp/Lisp.java Sat Jun 6 10:15:00 2009
@@ -76,6 +76,8 @@
Packages.createPackage("PROFILER");
public static final Package PACKAGE_JAVA =
Packages.createPackage("JAVA");
+ public static final Package PACKAGE_LISP =
+ Packages.createPackage("LISP");
// ### nil
public static final LispObject NIL = Nil.NIL;
@@ -110,6 +112,9 @@
PACKAGE_PROF.usePackage(PACKAGE_EXT);
PACKAGE_JAVA.usePackage(PACKAGE_CL);
PACKAGE_JAVA.usePackage(PACKAGE_EXT);
+ PACKAGE_LISP.usePackage(PACKAGE_CL);
+ PACKAGE_LISP.usePackage(PACKAGE_EXT);
+ PACKAGE_LISP.usePackage(PACKAGE_SYS);
}
catch (Throwable t)
{
Modified: branches/0.15.x/abcl/src/org/armedbear/lisp/Symbol.java
==============================================================================
--- branches/0.15.x/abcl/src/org/armedbear/lisp/Symbol.java (original)
+++ branches/0.15.x/abcl/src/org/armedbear/lisp/Symbol.java Sat Jun 6 10:15:00 2009
@@ -2888,6 +2888,8 @@
PACKAGE_EXT.addExternalSymbol("INTERRUPT-LISP");
public static final Symbol GETENV =
PACKAGE_EXT.addExternalSymbol("GETENV");
+ public static final Symbol MACROEXPAND_ALL =
+ PACKAGE_EXT.addExternalSymbol("MACROEXPAND-ALL");
// MOP.
public static final Symbol STANDARD_READER_METHOD =
@@ -3017,4 +3019,6 @@
public static final Symbol _INSPECTOR_HOOK_ =
PACKAGE_EXT.addExternalSymbol("*INSPECTOR-HOOK*");
+ public static final Symbol COMPILER_LET=
+ PACKAGE_LISP.addExternalSymbol("COMPILER-LET");
}
Modified: branches/0.15.x/abcl/src/org/armedbear/lisp/autoloads.lisp
==============================================================================
--- branches/0.15.x/abcl/src/org/armedbear/lisp/autoloads.lisp (original)
+++ branches/0.15.x/abcl/src/org/armedbear/lisp/autoloads.lisp Sat Jun 6 10:15:00 2009
@@ -305,8 +305,14 @@
(autoload 'compile-file-if-needed "compile-file")
(export 'describe-compiler-policy)
(autoload 'describe-compiler-policy)
+(export 'macroexpand-all)
+(autoload 'macroexpand-all)
;; JVM compiler.
(in-package "JVM")
(export '(jvm-compile-package))
(autoload '%with-compilation-unit "jvm")
+
+(in-package "LISP")
+(export 'compiler-let)
+(autoload 'compiler-let)
Modified: branches/0.15.x/abcl/src/org/armedbear/lisp/precompiler.lisp
==============================================================================
--- branches/0.15.x/abcl/src/org/armedbear/lisp/precompiler.lisp (original)
+++ branches/0.15.x/abcl/src/org/armedbear/lisp/precompiler.lisp Sat Jun 6 10:15:00 2009
@@ -1000,11 +1000,12 @@
(export '(precompile-form))
-(in-package #:system)
-
+(in-package #:ext)
(defun macroexpand-all (form &optional env)
(precompiler:precompile-form form nil env))
+(in-package #:lisp)
+
(defmacro compiler-let (bindings &body forms &environment env)
(let ((bindings (mapcar #'(lambda (binding)
(if (atom binding) (list binding) binding))
@@ -1014,6 +1015,8 @@
(eval (cadr binding))) bindings)
(macroexpand-all `(progn , at forms) env))))
+(in-package #:system)
+
(defun set-function-definition (name new old)
(let ((*warn-on-redefinition* nil))
(sys::%set-lambda-name new name)
More information about the armedbear-cvs
mailing list