source: trunk/abcl/src/org/armedbear/lisp/Autoload.java

Last change on this file was 15745, checked in by Mark Evenson, 6 months ago

Add gray-streams:stream-file-length support

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 31.5 KB
Line 
1/*
2 * Autoload.java
3 *
4 * Copyright (C) 2003-2006 Peter Graves
5 * $Id: Autoload.java 15745 2023-11-19 18:22:43Z mevenson $
6 *
7 * This program is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU General Public License
9 * as published by the Free Software Foundation; either version 2
10 * of the License, or (at your option) any later version.
11 *
12 * This program is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15 * GNU General Public License for more details.
16 *
17 * You should have received a copy of the GNU General Public License
18 * along with this program; if not, write to the Free Software
19 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
20 *
21 * As a special exception, the copyright holders of this library give you
22 * permission to link this library with independent modules to produce an
23 * executable, regardless of the license terms of these independent
24 * modules, and to copy and distribute the resulting executable under
25 * terms of your choice, provided that you also meet, for each linked
26 * independent module, the terms and conditions of the license of that
27 * module.  An independent module is a module which is not derived from
28 * or based on this library.  If you modify this library, you may extend
29 * this exception to your version of the library, but you are not
30 * obligated to do so.  If you do not wish to do so, delete this
31 * exception statement from your version.
32 */
33
34package org.armedbear.lisp;
35
36import static org.armedbear.lisp.Lisp.*;
37
38/** See autoloads.lisp for a general explanation of what we're
39 * trying to achieve here.
40 */
41public class Autoload extends Function
42{
43    protected final String fileName;
44    protected final String className;
45
46    protected final Symbol symbol;
47
48    protected Autoload(Symbol symbol)
49    {
50        super();
51        fileName = null;
52        className = null;
53        this.symbol = symbol;
54        symbol.setBuiltInFunction(false);
55    }
56
57    protected Autoload(Symbol symbol, String fileName, String className)
58    {
59        super();
60        this.fileName = fileName;
61        this.className = className;
62        this.symbol = symbol;
63        symbol.setBuiltInFunction(false);
64    }
65
66    protected final Symbol getSymbol()
67    {
68        return symbol;
69    }
70
71    public static void autoload(String symbolName, String className)
72    {
73        autoload(PACKAGE_CL, symbolName, className);
74    }
75
76    public static void autoload(Package pkg, String symbolName,
77                                String className)
78    {
79        autoload(pkg, symbolName, className, false);
80    }
81
82    public static void autoload(Package pkg, String symbolName,
83                                String className, boolean exported)
84    {
85        Symbol symbol = intern(symbolName.toUpperCase(), pkg);
86        if (pkg != PACKAGE_CL && exported) {
87            pkg.export(symbol);
88        }
89        if (symbol.getSymbolFunction() == null)
90            symbol.setSymbolFunction(new Autoload(symbol, null,
91                                                  "org.armedbear.lisp.".concat(className)));
92    }
93
94    public static void autoload(Symbol symbol, String className)
95    {
96        if (symbol.getSymbolFunction() == null)
97            symbol.setSymbolFunction(new Autoload(symbol, null,
98                                                  "org.armedbear.lisp.".concat(className)));
99    }
100
101    public static void autoloadFile(Symbol symbol, String fileName)
102    {
103        if (symbol.getSymbolFunction() == null) {
104            symbol.setSymbolFunction(new Autoload(symbol, fileName, null));
105        }
106    }
107   
108
109    private static void effectiveLoad(String className, String fileName) {
110        if (className != null) {
111            try {
112                Class.forName(className);
113            }
114            catch (ClassNotFoundException e) {
115                e.printStackTrace();
116            }
117        } else {
118            Load.loadSystemFile(fileName, true);
119        }
120    }
121
122    private static void loadVerbose(Symbol sym, int loadDepth, String className,
123            String fileName) {
124        final String prefix = Load.getLoadVerbosePrefix(loadDepth);
125        Stream out = getStandardOutput();
126        out._writeString(prefix);
127        out._writeString(sym.getQualifiedName() + " triggers autoloading of ");
128        out._writeString(className == null ? fileName : className);
129        out._writeLine(" ...");
130        out._finishOutput();
131        long start = System.currentTimeMillis();
132        effectiveLoad(className, fileName);
133        long elapsed = System.currentTimeMillis() - start;
134        out._writeString(prefix);
135        out._writeString(" Autoloaded ");
136        out._writeString(className == null ? fileName : className);
137        out._writeString(" (");
138        out._writeString(String.valueOf(((float)elapsed)/1000));
139        out._writeLine(" seconds)");
140        out._finishOutput();
141    }
142
143    public void load()
144    {
145        final LispThread thread = LispThread.currentThread();
146        final SpecialBindingsMark mark = thread.markSpecialBindings();
147        int loadDepth = Fixnum.getValue(_LOAD_DEPTH_.symbolValue());
148        thread.bindSpecial(_LOAD_DEPTH_, Fixnum.getInstance(++loadDepth));
149        try {
150            if (_AUTOLOAD_VERBOSE_.symbolValue(thread) != NIL
151                || "Y".equals(System.getProperty("abcl.autoload.verbose")))
152            {
153                loadVerbose(symbol, loadDepth, className, getFileName());
154            } else
155                effectiveLoad(className, getFileName());
156        }
157        finally {
158            thread.resetSpecialBindings(mark);
159        }
160        // if (debug) {
161        if (symbol != null) {
162          if (symbol.getSymbolFunction() instanceof Autoload) {
163            simple_error("Unable to autoload " + symbol.princToString(), symbol, fileName, className);
164          }
165        } // end if (debug)
166    }
167
168    protected final String getFileName()
169    {
170        if (fileName != null)
171            return fileName;
172        return symbol.getName().toLowerCase();
173    }
174
175    @Override
176    public LispObject execute()
177    {
178        load();
179        return symbol.execute();
180    }
181
182    @Override
183    public LispObject execute(LispObject arg)
184    {
185        load();
186        return symbol.execute(arg);
187    }
188
189    @Override
190    public LispObject execute(LispObject first, LispObject second)
191
192    {
193        load();
194        return symbol.execute(first, second);
195    }
196
197    @Override
198    public LispObject execute(LispObject first, LispObject second,
199                              LispObject third)
200
201    {
202        load();
203        return symbol.execute(first, second, third);
204    }
205
206    @Override
207    public LispObject execute(LispObject first, LispObject second,
208                              LispObject third, LispObject fourth)
209
210    {
211        load();
212        return symbol.execute(first, second, third, fourth);
213    }
214
215    @Override
216    public LispObject execute(LispObject first, LispObject second,
217                              LispObject third, LispObject fourth,
218                              LispObject fifth)
219
220    {
221        load();
222        return symbol.execute(first, second, third, fourth, fifth);
223    }
224
225    @Override
226    public LispObject execute(LispObject first, LispObject second,
227                              LispObject third, LispObject fourth,
228                              LispObject fifth, LispObject sixth)
229
230    {
231        load();
232        return symbol.execute(first, second, third, fourth, fifth, sixth);
233    }
234
235    @Override
236    public LispObject execute(LispObject first, LispObject second,
237                              LispObject third, LispObject fourth,
238                              LispObject fifth, LispObject sixth,
239                              LispObject seventh)
240
241    {
242        load();
243        return symbol.execute(first, second, third, fourth, fifth, sixth,
244                              seventh);
245    }
246
247    @Override
248    public LispObject execute(LispObject first, LispObject second,
249                              LispObject third, LispObject fourth,
250                              LispObject fifth, LispObject sixth,
251                              LispObject seventh, LispObject eighth)
252
253    {
254        load();
255        return symbol.execute(first, second, third, fourth, fifth, sixth,
256                              seventh, eighth);
257    }
258
259    @Override
260    public LispObject execute(LispObject[] args)
261    {
262        load();
263        return symbol.execute(args);
264    }
265
266    @Override
267    public String printObject()
268    {
269        StringBuilder sb = new StringBuilder();
270        sb.append(symbol.princToString());
271        sb.append(" stub to be autoloaded from \"");
272        if (className != null) {
273            int index = className.lastIndexOf('.');
274            if (index >= 0)
275                sb.append(className.substring(index + 1));
276            else
277                sb.append(className);
278            sb.append(".class");
279        } else
280            sb.append(getFileName());
281        sb.append("\"");
282        return unreadableString(sb.toString());
283    }
284
285    public static final Primitive AUTOLOAD = new pf_autoload();
286    @DocString(name="autoload",
287               args="symbol-or-symbols &optional filename",
288               doc="Setup the autoload for SYMBOL-OR-SYMBOLS optionally corresponding to FILENAME.")
289    private static final class pf_autoload extends Primitive {
290        pf_autoload() {
291            super("autoload", PACKAGE_EXT, true);
292        }
293        @Override
294        public LispObject execute(LispObject first)
295        {
296            if (first instanceof Symbol) {
297                Symbol symbol = (Symbol) first;
298                symbol.setSymbolFunction(new Autoload(symbol));
299                return T;
300            }
301            if (first instanceof Cons) {
302                for (LispObject list = first; list != NIL; list = list.cdr()) {
303                    Symbol symbol = checkSymbol(list.car());
304                    symbol.setSymbolFunction(new Autoload(symbol));
305                }
306                return T;
307            }
308            return error(new TypeError(first));
309        }
310        @Override
311        public LispObject execute(LispObject first, LispObject second)
312
313        {
314            final String fileName = second.getStringValue();
315            if (first instanceof Symbol) {
316                Symbol symbol = (Symbol) first;
317                symbol.setSymbolFunction(new Autoload(symbol, fileName, null));
318                return T;
319            }
320            if (first instanceof Cons) {
321                for (LispObject list = first; list != NIL; list = list.cdr()) {
322                    Symbol symbol = checkSymbol(list.car());
323                    symbol.setSymbolFunction(new Autoload(symbol, fileName, null));
324                }
325                return T;
326            }
327            return error(new TypeError(first));
328        }
329    };
330
331    public static final Primitive RESOLVE = new pf_resolve();
332    @DocString(name="resolve",
333               args="symbol",
334               doc="Resolve the function named by SYMBOL via the autoloader mechanism.\n"
335               + "Returns either the function or NIL if no resolution was possible.")
336    private static final class pf_resolve extends Primitive {
337        pf_resolve() {
338            super("resolve", PACKAGE_EXT, true, "symbol");
339        }
340        @Override
341        public LispObject execute(LispObject arg) {
342            Symbol symbol = checkSymbol(arg);
343            LispObject fun = symbol.getSymbolFunction();
344            if (fun instanceof Autoload) {
345                Autoload autoload = (Autoload) fun;
346                autoload.load();
347                return symbol.getSymbolFunction();
348            }
349            return ((fun == null) ? NIL : fun);
350        }
351    }
352
353    public static final Primitive AUTOLOADP = new pf_autoloadp();
354    @DocString(name="autoloadp",
355               args="symbol",
356               doc="Boolean predicate for whether SYMBOL stands for a function that currently needs to be autoloaded.")
357    private static final class pf_autoloadp extends Primitive {
358        pf_autoloadp() {
359            super("autoloadp", PACKAGE_EXT, true, "symbol");
360        }
361
362        @Override
363        public LispObject execute(LispObject arg)
364        {
365            if (arg instanceof Symbol) {
366                if (arg.getSymbolFunction() instanceof Autoload)
367                    return T;
368            }
369            return NIL;
370        }
371    };
372
373    static {
374        autoload("acos", "MathFunctions");
375        autoload("acosh", "MathFunctions");
376        autoload("arithmetic-error-operands", "ArithmeticError");
377        autoload("arithmetic-error-operation", "ArithmeticError");
378        autoload("ash", "ash");
379        autoload("asin", "MathFunctions");
380        autoload("asinh", "MathFunctions");
381        autoload("atan", "MathFunctions");
382        autoload("atanh", "MathFunctions");
383        autoload("broadcast-stream-streams", "BroadcastStream");
384        autoload("ceiling", "ceiling");
385        autoload("char", "StringFunctions");
386        autoload("char-equal", "CharacterFunctions");
387        autoload("char-greaterp", "CharacterFunctions");
388        autoload("char-lessp", "CharacterFunctions");
389        autoload("char-not-greaterp", "CharacterFunctions");
390        autoload("char-not-lessp", "CharacterFunctions");
391        autoload("char<", "CharacterFunctions");
392        autoload("char<=", "CharacterFunctions");
393        autoload("char=", "CharacterFunctions");
394        autoload("cis", "MathFunctions");
395        autoload("clrhash", "HashTableFunctions");
396        autoload("clrhash", "HashTableFunctions");
397        autoload("concatenated-stream-streams", "ConcatenatedStream");
398        autoload("cos", "MathFunctions");
399        autoload("cosh", "MathFunctions");
400        autoload("delete-file", "delete_file");
401        autoload(PACKAGE_SYS, "%delete-package", "PackageFunctions");
402        autoload("echo-stream-input-stream", "EchoStream");
403        autoload("echo-stream-output-stream", "EchoStream");
404        autoload("exp", "MathFunctions");
405        autoload("expt", "MathFunctions");
406        autoload("file-author", "file_author");
407        autoload("file-string-length", "file_string_length");
408        autoload("file-write-date", "file_write_date");
409        autoload("float", "FloatFunctions");
410        autoload("float-digits", "FloatFunctions");
411        autoload("float-radix", "FloatFunctions");
412        autoload("float-sign", "float_sign");
413        autoload("floatp", "FloatFunctions");
414        autoload("floor", "floor");
415        autoload("ftruncate", "ftruncate");
416        autoload("get-internal-real-time", "Time");
417        autoload("get-internal-run-time", "Time");
418        autoload("get-output-stream-string", "StringOutputStream");
419        autoload("get-properties", "get_properties");
420        autoload("get-universal-time", "Time");
421        autoload("gethash", "HashTableFunctions");
422        autoload("gethash", "HashTableFunctions");
423        autoload("hash-table-count", "HashTableFunctions");
424        autoload("hash-table-count", "HashTableFunctions");
425        autoload("hash-table-p", "HashTableFunctions");
426        autoload("hash-table-p", "HashTableFunctions");
427        autoload("hash-table-rehash-size", "HashTableFunctions");
428        autoload("hash-table-rehash-size", "HashTableFunctions");
429        autoload("hash-table-rehash-threshold", "HashTableFunctions");
430        autoload("hash-table-rehash-threshold", "HashTableFunctions");
431        autoload("hash-table-size", "HashTableFunctions");
432        autoload("hash-table-size", "HashTableFunctions");
433        autoload("hash-table-test", "HashTableFunctions");
434        autoload("hash-table-test", "HashTableFunctions");
435        autoload(PACKAGE_SYS, "%import", "PackageFunctions");
436        autoload("input-stream-p", "input_stream_p");
437        autoload("integer-decode-float", "FloatFunctions");
438        autoload("interactive-stream-p", "interactive_stream_p");
439        autoload("last", "last");
440        autoload("lisp-implementation-type", "lisp_implementation_type");
441        autoload("lisp-implementation-version", "lisp_implementation_version");
442        autoload("list-all-packages", "PackageFunctions");
443        autoload("listen", "listen");
444        autoload("log", "MathFunctions");
445        autoload("logand", "logand");
446        autoload("logandc1", "logandc1");
447        autoload("logandc2", "logandc2");
448        autoload("logbitp", "logbitp");
449        autoload("logcount", "logcount");
450        autoload("logeqv", "logeqv");
451        autoload("logior", "logior");
452        autoload("lognand", "lognand");
453        autoload("lognor", "lognor");
454        autoload("lognot", "lognot");
455        autoload("logorc1", "logorc1");
456        autoload("logorc2", "logorc2");
457        autoload("logtest", "logtest");
458        autoload("logxor", "logxor");
459        autoload("long-site-name", "SiteName");
460        autoload("machine-instance", "SiteName");
461        autoload("machine-type", "machine_type");
462        autoload("machine-version", "machine_version");
463        autoload("make-broadcast-stream", "BroadcastStream");
464        autoload("make-concatenated-stream", "ConcatenatedStream");
465        autoload("make-echo-stream", "EchoStream");
466        autoload("make-string-input-stream", "StringInputStream");
467        autoload("make-synonym-stream", "SynonymStream");
468        autoload("maphash", "HashTableFunctions");
469        autoload("mod", "mod");
470        autoload("open-stream-p", "open_stream_p");
471        autoload("output-stream-p", "output_stream_p");
472        autoload("package-name", "PackageFunctions");
473        autoload("package-nicknames", "PackageFunctions");
474        autoload("package-shadowing-symbols", "PackageFunctions");
475        autoload("package-use-list", "PackageFunctions");
476        autoload("package-used-by-list", "PackageFunctions");
477        autoload("packagep", "PackageFunctions");
478        autoload("peek-char", "peek_char");
479        autoload("print-not-readable-object", "PrintNotReadable");
480        autoload("probe-file", "probe_file");
481        autoload("rational", "FloatFunctions");
482        autoload("rem", "rem");
483        autoload("remhash", "HashTableFunctions");
484        autoload("remhash", "HashTableFunctions");
485        autoload("rename-package", "PackageFunctions");
486        autoload("room", "room");
487        autoload("scale-float", "FloatFunctions");
488        autoload("schar", "StringFunctions");
489        autoload("shadow", "PackageFunctions");
490        autoload("shadowing-import", "PackageFunctions");
491        autoload("short-site-name", "SiteName");
492        autoload("simple-condition-format-arguments", "SimpleCondition");
493        autoload("simple-condition-format-control", "SimpleCondition");
494        autoload("simple-string-p", "StringFunctions");
495        autoload("sin", "MathFunctions");
496        autoload("sinh", "MathFunctions");
497        autoload("software-type", "software_type");
498        autoload("software-version", "software_version");
499        autoload("sqrt", "MathFunctions");
500        autoload("stream-element-type", "stream_element_type");
501        autoload("stream-error-stream", "StreamError");
502        autoload("stream-external-format", "stream_external_format");
503        autoload(PACKAGE_SYS, "%set-stream-external-format", "Stream");
504        autoload("stringp", "StringFunctions");
505        autoload("sxhash", "HashTableFunctions");
506        autoload("sxhash", "HashTableFunctions");
507        autoload("synonym-stream-symbol", "SynonymStream");
508        autoload("tan", "MathFunctions");
509        autoload("tanh", "MathFunctions");
510        autoload("truename", "probe_file");
511        autoload("truncate", "truncate");
512        autoload("type-error-datum", "TypeError");
513        autoload("type-error-expected-type", "TypeError");
514        autoload("unbound-slot-instance", "unbound_slot_instance");
515        autoload("unexport", "PackageFunctions");
516        autoload("unuse-package", "PackageFunctions");
517        autoload(PACKAGE_EXT, "arglist", "arglist", true);
518        autoload(PACKAGE_EXT, "assq", "assq", true);
519        autoload(PACKAGE_EXT, "assql", "assql", true);
520        autoload(PACKAGE_EXT, "file-directory-p", "probe_file", true);
521        autoload(PACKAGE_EXT, "gc", "gc", true);
522        autoload(PACKAGE_EXT, "get-floating-point-modes", "FloatFunctions", true);
523        autoload(PACKAGE_EXT, "get-time-zone", "Time", true);
524        autoload(PACKAGE_EXT, "make-slime-input-stream", "SlimeInputStream", true);
525        autoload(PACKAGE_EXT, "make-slime-output-stream", "SlimeOutputStream", true);
526        autoload(PACKAGE_EXT, "probe-directory", "probe_file", true);
527        autoload(PACKAGE_EXT, "set-floating-point-modes", "FloatFunctions", true);
528        autoload(PACKAGE_EXT, "simple-string-fill", "StringFunctions");
529        autoload(PACKAGE_EXT, "simple-string-search", "StringFunctions");
530        autoload(PACKAGE_EXT, "string-input-stream-current", "StringInputStream", true);
531        autoload(PACKAGE_EXT, "string-find", "StringFunctions");
532        autoload(PACKAGE_EXT, "string-position", "StringFunctions");
533        autoload(PACKAGE_EXT, "make-weak-reference", "WeakReference", true);
534        autoload(PACKAGE_EXT, "weak-reference-value", "WeakReference", true);
535        autoload(PACKAGE_EXT, "finalize", "Primitives", true);
536        autoload(PACKAGE_EXT, "cancel-finalization", "Primitives", true);
537        autoload(PACKAGE_JAVA, "%jnew-proxy", "JProxy");
538        autoload(PACKAGE_JAVA, "%find-java-class", "JavaObject");
539        autoload(PACKAGE_JAVA, "%register-java-class", "JavaObject");
540        autoload(PACKAGE_JAVA, "%jmake-invocation-handler", "JProxy");
541        autoload(PACKAGE_JAVA, "%jmake-proxy", "JProxy");
542        autoload(PACKAGE_JAVA, "%jnew-runtime-class", "RuntimeClass");
543        autoload(PACKAGE_JAVA, "%jredefine-method", "RuntimeClass");
544        autoload(PACKAGE_JAVA, "%jregister-handler", "JHandler");
545        autoload(PACKAGE_JAVA, "%load-java-class-from-byte-array", "RuntimeClass");
546        autoload(PACKAGE_JAVA, "get-default-classloader", "JavaClassLoader");
547        autoload(PACKAGE_JAVA, "make-classloader", "JavaClassLoader");
548        autoload(PACKAGE_JAVA, "%add-to-classpath", "JavaClassLoader");
549        autoload(PACKAGE_JAVA, "dump-classpath", "JavaClassLoader");
550        autoload(PACKAGE_MOP, "eql-specializer-object", "EqualSpecializerObject", true);
551        autoload(PACKAGE_MOP, "funcallable-instance-function", "FuncallableStandardObject", false);
552        autoload(PACKAGE_MOP, "set-funcallable-instance-function", "FuncallableStandardObject", true);
553        autoload(PACKAGE_PROF, "%start-profiler", "Profiler", true);
554        autoload(PACKAGE_PROF, "stop-profiler", "Profiler", true);
555        autoload(PACKAGE_SYS, "%%string=", "StringFunctions");
556        autoload(PACKAGE_SYS, "%adjust-array", "adjust_array");
557        autoload(PACKAGE_SYS, "%defpackage", "PackageFunctions");
558        autoload(PACKAGE_SYS, "%get-output-stream-bytes", "ByteArrayOutputStream"); //AS 20090325
559        autoload(PACKAGE_SYS, "%get-output-stream-array", "ByteArrayOutputStream");
560        autoload(PACKAGE_SYS, "%make-array", "make_array");
561        autoload(PACKAGE_SYS, "%make-byte-array-input-stream", "ByteArrayInputStream"); //AS 20100317
562        autoload(PACKAGE_SYS, "%make-byte-array-output-stream", "ByteArrayOutputStream"); //AS 20090325
563        autoload(PACKAGE_SYS, "%make-condition", "make_condition", true);
564        autoload(PACKAGE_SYS, "%make-emf-cache", "EMFCache", true);
565        autoload(PACKAGE_SYS, "%make-hash-table", "HashTableFunctions");
566        autoload(PACKAGE_SYS, "%make-hash-table", "HashTableFunctions");
567        autoload(PACKAGE_SYS, "%make-logical-pathname", "LogicalPathname", true);
568        autoload(PACKAGE_SYS, "%make-server-socket", "make_server_socket");
569        autoload(PACKAGE_SYS, "%make-socket", "make_socket");
570        autoload(PACKAGE_SYS, "%make-string", "StringFunctions");
571        autoload(PACKAGE_SYS, "%make-string-output-stream", "StringOutputStream");
572        autoload(PACKAGE_SYS, "%nstring-capitalize", "StringFunctions");
573        autoload(PACKAGE_SYS, "%nstring-downcase", "StringFunctions");
574        autoload(PACKAGE_SYS, "%nstring-upcase", "StringFunctions");
575        autoload(PACKAGE_SYS, "%reinit-emf-cache", "EMFCache", true);
576        autoload(PACKAGE_SYS, "%run-shell-command", "ShellCommand");
577        autoload(PACKAGE_SYS, "%server-socket-close", "server_socket_close");
578        autoload(PACKAGE_SYS, "%set-arglist", "arglist");
579        autoload(PACKAGE_CL, "find-class", "LispClass", true);
580        autoload(PACKAGE_SYS, "%set-find-class", "LispClass", true);
581        autoload(PACKAGE_SYS, "%set-class-direct-slots", "SlotClass", true);
582        autoload(PACKAGE_SYS, "%set-function-info", "function_info");
583        autoload(PACKAGE_SYS, "%set-symbol-macro", "Primitives");
584        autoload(PACKAGE_SYS, "%simple-bit-vector-bit-and", "SimpleBitVector");
585        autoload(PACKAGE_SYS, "%simple-bit-vector-bit-andc1", "SimpleBitVector");
586        autoload(PACKAGE_SYS, "%simple-bit-vector-bit-andc2", "SimpleBitVector");
587        autoload(PACKAGE_SYS, "%simple-bit-vector-bit-eqv", "SimpleBitVector");
588        autoload(PACKAGE_SYS, "%simple-bit-vector-bit-ior", "SimpleBitVector");
589        autoload(PACKAGE_SYS, "%simple-bit-vector-bit-nand", "SimpleBitVector");
590        autoload(PACKAGE_SYS, "%simple-bit-vector-bit-nor", "SimpleBitVector");
591        autoload(PACKAGE_SYS, "%simple-bit-vector-bit-not", "SimpleBitVector");
592        autoload(PACKAGE_SYS, "%simple-bit-vector-bit-orc1", "SimpleBitVector");
593        autoload(PACKAGE_SYS, "%simple-bit-vector-bit-orc2", "SimpleBitVector");
594        autoload(PACKAGE_SYS, "%simple-bit-vector-bit-xor", "SimpleBitVector");
595        autoload(PACKAGE_SYS, "%socket-accept", "socket_accept");
596        autoload(PACKAGE_SYS, "%socket-close", "socket_close");
597        autoload(PACKAGE_SYS, "%socket-stream", "socket_stream");
598        autoload(PACKAGE_SYS, "%string-capitalize", "StringFunctions");
599        autoload(PACKAGE_SYS, "%string-downcase", "StringFunctions");
600        autoload(PACKAGE_SYS, "%string-equal", "StringFunctions");
601        autoload(PACKAGE_SYS, "%string-greaterp", "StringFunctions");
602        autoload(PACKAGE_SYS, "%string-lessp", "StringFunctions");
603        autoload(PACKAGE_SYS, "%string-not-equal", "StringFunctions");
604        autoload(PACKAGE_SYS, "%string-not-greaterp", "StringFunctions");
605        autoload(PACKAGE_SYS, "%string-not-lessp", "StringFunctions");
606        autoload(PACKAGE_SYS, "%string-upcase", "StringFunctions");
607        autoload(PACKAGE_SYS, "%string/=", "StringFunctions");
608        autoload(PACKAGE_SYS, "%string<", "StringFunctions");
609        autoload(PACKAGE_SYS, "%string<=", "StringFunctions");
610        autoload(PACKAGE_SYS, "%string=", "StringFunctions");
611        autoload(PACKAGE_SYS, "%string>", "StringFunctions");
612        autoload(PACKAGE_SYS, "%string>=", "StringFunctions");
613        autoload(PACKAGE_SYS, "%time", "Time");
614        autoload(PACKAGE_SYS, "cache-emf", "EMFCache", true);
615        autoload(PACKAGE_SYS, "canonicalize-logical-host", "LogicalPathname", true);
616        autoload(PACKAGE_SYS, "%class-direct-slots", "SlotClass");
617        autoload(PACKAGE_SYS, "%float-bits", "FloatFunctions");
618        autoload(PACKAGE_SYS, "coerce-to-double-float", "FloatFunctions");
619        autoload(PACKAGE_SYS, "coerce-to-single-float", "FloatFunctions");
620        autoload(PACKAGE_SYS, "create-new-file", "create_new_file");
621        autoload(PACKAGE_SYS, "default-time-zone", "Time");
622        autoload(PACKAGE_SYS, "disassemble-class-bytes", "disassemble_class_bytes", true);
623        autoload(PACKAGE_SYS, "disable-zip-cache", "ZipCache", true);
624        autoload(PACKAGE_SYS, "double-float-high-bits", "FloatFunctions", true);
625        autoload(PACKAGE_SYS, "double-float-low-bits", "FloatFunctions", true);
626        autoload(PACKAGE_SYS, "float-infinity-p", "FloatFunctions", true);
627        autoload(PACKAGE_SYS, "float-nan-p", "FloatFunctions", true);
628        autoload(PACKAGE_SYS, "float-string", "FloatFunctions", true);
629        autoload(PACKAGE_SYS, "function-info", "function_info");
630        autoload(PACKAGE_SYS, "get-cached-emf", "EMFCache", true);
631        autoload(PACKAGE_SYS, "get-function-info-value", "function_info");
632        autoload(PACKAGE_SYS, "hash-table-entries", "HashTableFunctions");
633        autoload(PACKAGE_SYS, "hash-table-entries", "HashTableFunctions");
634        autoload(PACKAGE_SYS, "layout-class", "Layout", true);
635        autoload(PACKAGE_SYS, "layout-length", "Layout", true);
636        autoload(PACKAGE_SYS, "layout-slot-index", "Layout", true);
637        autoload(PACKAGE_SYS, "layout-slot-location", "Layout", true);
638        autoload(PACKAGE_SYS, "make-case-frob-stream", "CaseFrobStream");
639        autoload(PACKAGE_SYS, "make-double-float", "FloatFunctions", true);
640        autoload(PACKAGE_SYS, "make-file-stream", "FileStream");
641        autoload(PACKAGE_SYS, "make-fill-pointer-output-stream", "FillPointerOutputStream");
642        autoload(PACKAGE_SYS, "make-layout", "Layout", true);
643        autoload(PACKAGE_SYS, "make-single-float", "FloatFunctions", true);
644        autoload(PACKAGE_SYS, "%make-slot-definition", "SlotDefinition", true);
645        autoload(PACKAGE_SYS, "make-structure-class", "StructureClass");
646        autoload(PACKAGE_SYS, "make-symbol-macro", "Primitives");
647        autoload(PACKAGE_SYS, "psxhash", "HashTableFunctions");
648        autoload(PACKAGE_SYS, "puthash", "HashTableFunctions");
649        autoload(PACKAGE_SYS, "puthash", "HashTableFunctions");
650        autoload(PACKAGE_SYS, "remove-zip-cache-entry", "ZipCache");
651        autoload(PACKAGE_SYS, "set-function-info-value", "function_info");
652        autoload(PACKAGE_SYS, "simple-list-remove-duplicates", "simple_list_remove_duplicates");
653        autoload(PACKAGE_SYS, "single-float-bits", "FloatFunctions", true);
654        autoload(PACKAGE_SYS, "%std-allocate-instance", "StandardObject", true);
655        autoload(PACKAGE_SYS, "swap-slots", "StandardObject", true);
656        autoload(PACKAGE_SYS, "std-instance-layout", "StandardObject", true);
657        autoload(PACKAGE_SYS, "%set-std-instance-layout", "StandardObject", true);
658        autoload(PACKAGE_SYS, "std-instance-class", "StandardObject", true);
659        autoload(PACKAGE_SYS, "standard-instance-access", "StandardObject", true);
660        autoload(PACKAGE_SYS, "%set-standard-instance-access", "StandardObject", true);
661        autoload(PACKAGE_SYS, "std-slot-boundp", "StandardObject", true);
662        autoload(PACKAGE_SYS, "std-slot-value", "StandardObject", true);
663        autoload(PACKAGE_SYS, "set-std-slot-value", "StandardObject", true);
664        autoload(PACKAGE_SYS, "%allocate-funcallable-instance", "FuncallableStandardObject", true);
665        autoload(PACKAGE_SYS, "unzip", "unzip", true);
666        autoload(PACKAGE_SYS, "zip", "zip", true);
667
668        autoload(Symbol.COPY_LIST, "copy_list");
669
670        autoload(PACKAGE_SYS, "make-fasl-class-loader", "FaslClassLoader", false);
671        autoload(PACKAGE_SYS, "get-fasl-function", "FaslClassLoader", false);
672
673        autoload(PACKAGE_SYS, "make-memory-class-loader", "MemoryClassLoader", false);
674        autoload(PACKAGE_SYS, "put-memory-function", "MemoryClassLoader", false);
675        autoload(PACKAGE_SYS, "get-memory-function", "MemoryClassLoader", false);
676
677        autoload(Symbol.SET_CHAR, "StringFunctions");
678        autoload(Symbol.SET_SCHAR, "StringFunctions");
679
680        autoload(Symbol._SET_CLASS_SLOTS, "SlotClass");
681        autoload(Symbol._CLASS_SLOTS, "SlotClass");
682
683        autoload(Symbol.JAVA_EXCEPTION_CAUSE, "JavaException");
684        autoload(Symbol.JCLASS_NAME, "jclass_name");
685        autoload(Symbol.JCLASS_OF, "jclass_of");
686        autoload(Symbol.JMETHOD_RETURN_TYPE, "jmethod_return_type");
687
688        autoload(PACKAGE_JAVA, "%jget-property-value", "JavaBeans", false);
689        autoload(PACKAGE_JAVA, "%jset-property-value", "JavaBeans", false);
690
691        autoload(PACKAGE_EXT, "autoload-setf-expander", "AutoloadGeneralizedReference", true);
692        autoload(PACKAGE_EXT, "autoload-setf-function", "AutoloadGeneralizedReference", true);
693        autoload(PACKAGE_EXT, "autoload-ref-p", "AutoloadGeneralizedReference", true);
694    }
695}
Note: See TracBrowser for help on using the repository browser.