[armedbear-cvs] r11492 - trunk/abcl/src/org/armedbear/lisp

Erik Huelsmann ehuelsmann at common-lisp.net
Sat Dec 27 19:35:58 UTC 2008


Author: ehuelsmann
Date: Sat Dec 27 19:35:53 2008
New Revision: 11492

Log:
Revert r11491. It was based on lack of understanding of the order in which classes are
loaded by ABCL: we cannot access symbol values in the Symbol class.

Modified:
   trunk/abcl/src/org/armedbear/lisp/Lisp.java
   trunk/abcl/src/org/armedbear/lisp/Package.java
   trunk/abcl/src/org/armedbear/lisp/Symbol.java

Modified: trunk/abcl/src/org/armedbear/lisp/Lisp.java
==============================================================================
--- trunk/abcl/src/org/armedbear/lisp/Lisp.java	(original)
+++ trunk/abcl/src/org/armedbear/lisp/Lisp.java	Sat Dec 27 19:35:53 2008
@@ -2529,6 +2529,11 @@
   protected static boolean TRAP_UNDERFLOW = true;
 
 
+  // Extentions
+  static {
+    Symbol._INSPECTOR_HOOK_.initializeSpecial(NIL);
+  }
+
   private static final void loadClass(String className)
   {
     try

Modified: trunk/abcl/src/org/armedbear/lisp/Package.java
==============================================================================
--- trunk/abcl/src/org/armedbear/lisp/Package.java	(original)
+++ trunk/abcl/src/org/armedbear/lisp/Package.java	Sat Dec 27 19:35:53 2008
@@ -299,18 +299,6 @@
         return symbol;
     }
 
-    /** Initializes the symbol as a special variables and assigns it
-        a value, just like DEFVAR would.
-    */
-    public synchronized Symbol addExternalSymbol(String symbolName,
-                                                 LispObject specialValue)
-    {
-        final Symbol symbol = addExternalSymbol(symbolName);
-        symbol.initializeSpecial(specialValue);
-
-        return symbol;
-    }
-
     public synchronized Symbol intern(String symbolName)
     {
         return intern(new SimpleString(symbolName));

Modified: trunk/abcl/src/org/armedbear/lisp/Symbol.java
==============================================================================
--- trunk/abcl/src/org/armedbear/lisp/Symbol.java	(original)
+++ trunk/abcl/src/org/armedbear/lisp/Symbol.java	Sat Dec 27 19:35:53 2008
@@ -3013,6 +3013,6 @@
 
   // CDR6
   public static final Symbol _INSPECTOR_HOOK_ =
-    PACKAGE_EXT.addExternalSymbol("*INSPECTOR-HOOK*", NIL);
+    PACKAGE_EXT.addExternalSymbol("*INSPECTOR-HOOK*");
 
 }




More information about the armedbear-cvs mailing list