source: branches/0.17.x/abcl/src/org/armedbear/lisp/Autoload.java

Last change on this file was 12255, checked in by ehuelsmann, 16 years ago

Rename ConditionThrowable? to ControlTransfer? and remove

try/catch blocks which don't have anything to do with
non-local transfer of control.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 32.4 KB
Line 
1/*
2 * Autoload.java
3 *
4 * Copyright (C) 2003-2006 Peter Graves
5 * $Id: Autoload.java 12255 2009-11-06 22:36:32Z ehuelsmann $
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
36public class Autoload extends Function
37{
38    protected final String fileName;
39    protected final String className;
40
41    private final Symbol symbol;
42
43    protected Autoload(Symbol symbol)
44    {
45        super();
46        fileName = null;
47        className = null;
48        this.symbol = symbol;
49        symbol.setBuiltInFunction(false);
50    }
51
52    protected Autoload(Symbol symbol, String fileName, String className)
53    {
54        super();
55        this.fileName = fileName;
56        this.className = className;
57        this.symbol = symbol;
58        symbol.setBuiltInFunction(false);
59    }
60
61    protected final Symbol getSymbol()
62    {
63        return symbol;
64    }
65
66    public static void autoload(String symbolName, String className)
67    {
68        autoload(PACKAGE_CL, symbolName, className);
69    }
70
71    public static void autoload(Package pkg, String symbolName,
72                                String className)
73    {
74        autoload(pkg, symbolName, className, false);
75    }
76
77    public static void autoload(Package pkg, String symbolName,
78                                String className, boolean exported)
79    {
80        Symbol symbol = intern(symbolName.toUpperCase(), pkg);
81        if (pkg != PACKAGE_CL && exported) {
82            pkg.export(symbol);
83        }
84        if (symbol.getSymbolFunction() == null)
85            symbol.setSymbolFunction(new Autoload(symbol, null,
86                                                  "org.armedbear.lisp.".concat(className)));
87    }
88
89    public static void autoload(Symbol symbol, String className)
90    {
91        if (symbol.getSymbolFunction() == null)
92            symbol.setSymbolFunction(new Autoload(symbol, null,
93                                                  "org.armedbear.lisp.".concat(className)));
94    }
95
96    public void load()
97    {
98        if (className != null) {
99            final LispThread thread = LispThread.currentThread();
100            final SpecialBinding lastSpecialBinding = thread.lastSpecialBinding;
101            int loadDepth = Fixnum.getValue(_LOAD_DEPTH_.symbolValue());
102            thread.bindSpecial(_LOAD_DEPTH_, Fixnum.getInstance(++loadDepth));
103            try {
104                if (_AUTOLOAD_VERBOSE_.symbolValue(thread) != NIL
105                    || "Y".equals(System.getProperty("abcl.autoload.verbose")))
106                {
107                    final String prefix = Load.getLoadVerbosePrefix(loadDepth);
108                    Stream out = getStandardOutput();
109                    out._writeString(prefix);
110                    out._writeString(" Autoloading ");
111                    out._writeString(className);
112                    out._writeLine(" ...");
113                    out._finishOutput();
114                    long start = System.currentTimeMillis();
115                    Class.forName(className);
116                    long elapsed = System.currentTimeMillis() - start;
117                    out._writeString(prefix);
118                    out._writeString(" Autoloaded ");
119                    out._writeString(className);
120                    out._writeString(" (");
121                    out._writeString(String.valueOf(((float)elapsed)/1000));
122                    out._writeLine(" seconds)");
123                    out._finishOutput();
124                } else
125                    Class.forName(className);
126            }
127            catch (ClassNotFoundException e) {
128                e.printStackTrace();
129            }
130            finally {
131                thread.lastSpecialBinding = lastSpecialBinding;
132            }
133        } else
134            Load.loadSystemFile(getFileName(), true);
135        if (debug) {
136            if (symbol != null) {
137                if (symbol.getSymbolFunction() instanceof Autoload) {
138                    Debug.trace("Unable to autoload " + symbol.writeToString());
139                    System.exit(-1);
140                }
141            }
142        }
143    }
144
145    protected final String getFileName()
146    {
147        if (fileName != null)
148            return fileName;
149        return symbol.getName().toLowerCase();
150    }
151
152    @Override
153    public LispObject execute()
154    {
155        load();
156        return symbol.execute();
157    }
158
159    @Override
160    public LispObject execute(LispObject arg)
161    {
162        load();
163        return symbol.execute(arg);
164    }
165
166    @Override
167    public LispObject execute(LispObject first, LispObject second)
168
169    {
170        load();
171        return symbol.execute(first, second);
172    }
173
174    @Override
175    public LispObject execute(LispObject first, LispObject second,
176                              LispObject third)
177
178    {
179        load();
180        return symbol.execute(first, second, third);
181    }
182
183    @Override
184    public LispObject execute(LispObject first, LispObject second,
185                              LispObject third, LispObject fourth)
186
187    {
188        load();
189        return symbol.execute(first, second, third, fourth);
190    }
191
192    @Override
193    public LispObject execute(LispObject first, LispObject second,
194                              LispObject third, LispObject fourth,
195                              LispObject fifth)
196
197    {
198        load();
199        return symbol.execute(first, second, third, fourth, fifth);
200    }
201
202    @Override
203    public LispObject execute(LispObject first, LispObject second,
204                              LispObject third, LispObject fourth,
205                              LispObject fifth, LispObject sixth)
206
207    {
208        load();
209        return symbol.execute(first, second, third, fourth, fifth, sixth);
210    }
211
212    @Override
213    public LispObject execute(LispObject first, LispObject second,
214                              LispObject third, LispObject fourth,
215                              LispObject fifth, LispObject sixth,
216                              LispObject seventh)
217
218    {
219        load();
220        return symbol.execute(first, second, third, fourth, fifth, sixth,
221                              seventh);
222    }
223
224    @Override
225    public LispObject execute(LispObject first, LispObject second,
226                              LispObject third, LispObject fourth,
227                              LispObject fifth, LispObject sixth,
228                              LispObject seventh, LispObject eighth)
229
230    {
231        load();
232        return symbol.execute(first, second, third, fourth, fifth, sixth,
233                              seventh, eighth);
234    }
235
236    @Override
237    public LispObject execute(LispObject[] args)
238    {
239        load();
240        return symbol.execute(args);
241    }
242
243    @Override
244    public String writeToString()
245    {
246        StringBuffer sb = new StringBuffer("#<AUTOLOAD ");
247        sb.append(symbol.writeToString());
248        sb.append(" \"");
249        if (className != null) {
250            int index = className.lastIndexOf('.');
251            if (index >= 0)
252                sb.append(className.substring(index + 1));
253            else
254                sb.append(className);
255            sb.append(".class");
256        } else
257            sb.append(getFileName());
258        sb.append("\">");
259        return sb.toString();
260    }
261
262    // ### autoload
263    private static final Primitive AUTOLOAD =
264        new Primitive("autoload", PACKAGE_EXT, true)
265    {
266        @Override
267        public LispObject execute(LispObject first)
268        {
269            if (first instanceof Symbol) {
270                Symbol symbol = (Symbol) first;
271                symbol.setSymbolFunction(new Autoload(symbol));
272                return T;
273            }
274            if (first instanceof Cons) {
275                for (LispObject list = first; list != NIL; list = list.cdr()) {
276                    Symbol symbol = checkSymbol(list.car());
277                    symbol.setSymbolFunction(new Autoload(symbol));
278                }
279                return T;
280            }
281            return error(new TypeError(first));
282        }
283        @Override
284        public LispObject execute(LispObject first, LispObject second)
285
286        {
287            final String fileName = second.getStringValue();
288            if (first instanceof Symbol) {
289                Symbol symbol = (Symbol) first;
290                symbol.setSymbolFunction(new Autoload(symbol, fileName, null));
291                return T;
292            }
293            if (first instanceof Cons) {
294                for (LispObject list = first; list != NIL; list = list.cdr()) {
295                    Symbol symbol = checkSymbol(list.car());
296                    symbol.setSymbolFunction(new Autoload(symbol, fileName, null));
297                }
298                return T;
299            }
300            return error(new TypeError(first));
301        }
302    };
303
304    // ### resolve
305    // Force autoload to be resolved.
306    private static final Primitive RESOLVE =
307        new Primitive("resolve", PACKAGE_EXT, true, "symbol")
308    {
309        @Override
310        public LispObject execute(LispObject arg)
311        {
312            Symbol symbol = checkSymbol(arg);
313            LispObject fun = symbol.getSymbolFunction();
314            if (fun instanceof Autoload) {
315                Autoload autoload = (Autoload) fun;
316                autoload.load();
317                return symbol.getSymbolFunction();
318            }
319            return fun;
320        }
321    };
322
323    // ### autoloadp
324    private static final Primitive AUTOLOADP =
325        new Primitive("autoloadp", PACKAGE_EXT, true, "symbol")
326    {
327        @Override
328        public LispObject execute(LispObject arg)
329        {
330            if (arg instanceof Symbol) {
331                if (arg.getSymbolFunction() instanceof Autoload)
332                    return T;
333            }
334            return NIL;
335        }
336    };
337
338    static {
339        autoload("acos", "MathFunctions");
340        autoload("acosh", "MathFunctions");
341        autoload("arithmetic-error-operands", "ArithmeticError");
342        autoload("arithmetic-error-operation", "ArithmeticError");
343        autoload("ash", "ash");
344        autoload("asin", "MathFunctions");
345        autoload("asinh", "MathFunctions");
346        autoload("atan", "MathFunctions");
347        autoload("atanh", "MathFunctions");
348        autoload("broadcast-stream-streams", "BroadcastStream");
349        autoload("ceiling", "ceiling");
350        autoload("cell-error-name", "cell_error_name");
351        autoload("char", "StringFunctions");
352        autoload("char-equal", "CharacterFunctions");
353        autoload("char-greaterp", "CharacterFunctions");
354        autoload("char-lessp", "CharacterFunctions");
355        autoload("char-not-greaterp", "CharacterFunctions");
356        autoload("char-not-lessp", "CharacterFunctions");
357        autoload("char<", "CharacterFunctions");
358        autoload("char<=", "CharacterFunctions");
359        autoload("char=", "CharacterFunctions");
360        autoload("cis", "MathFunctions");
361        autoload("clrhash", "HashTableFunctions");
362        autoload("clrhash", "HashTableFunctions");
363        autoload("concatenated-stream-streams", "ConcatenatedStream");
364        autoload("cos", "MathFunctions");
365        autoload("cosh", "MathFunctions");
366        autoload("delete-file", "delete_file");
367        autoload("delete-package", "PackageFunctions");
368        autoload("echo-stream-input-stream", "EchoStream");
369        autoload("echo-stream-output-stream", "EchoStream");
370        autoload("exp", "MathFunctions");
371        autoload("expt", "MathFunctions");
372        autoload("file-author", "file_author");
373        autoload("file-error-pathname", "file_error_pathname");
374        autoload("file-length", "file_length");
375        autoload("file-string-length", "file_string_length");
376        autoload("file-write-date", "file_write_date");
377        autoload("float", "FloatFunctions");
378        autoload("float-digits", "FloatFunctions");
379        autoload("float-radix", "FloatFunctions");
380        autoload("float-sign", "float_sign");
381        autoload("floatp", "FloatFunctions");
382        autoload("floor", "floor");
383        autoload("ftruncate", "ftruncate");
384        autoload("get-internal-real-time", "Time");
385        autoload("get-internal-run-time", "Time");
386        autoload("get-output-stream-string", "StringOutputStream");
387        autoload("get-properties", "get_properties");
388        autoload("get-universal-time", "Time");
389        autoload("gethash", "HashTableFunctions");
390        autoload("gethash", "HashTableFunctions");
391        autoload("hash-table-count", "HashTableFunctions");
392        autoload("hash-table-count", "HashTableFunctions");
393        autoload("hash-table-p", "HashTableFunctions");
394        autoload("hash-table-p", "HashTableFunctions");
395        autoload("hash-table-rehash-size", "HashTableFunctions");
396        autoload("hash-table-rehash-size", "HashTableFunctions");
397        autoload("hash-table-rehash-threshold", "HashTableFunctions");
398        autoload("hash-table-rehash-threshold", "HashTableFunctions");
399        autoload("hash-table-size", "HashTableFunctions");
400        autoload("hash-table-size", "HashTableFunctions");
401        autoload("hash-table-test", "HashTableFunctions");
402        autoload("hash-table-test", "HashTableFunctions");
403        autoload("%import", "PackageFunctions");
404        autoload("input-stream-p", "input_stream_p");
405        autoload("integer-decode-float", "FloatFunctions");
406        autoload("interactive-stream-p", "interactive_stream_p");
407        autoload("last", "last");
408        autoload("lisp-implementation-type", "lisp_implementation_type");
409        autoload("lisp-implementation-version", "lisp_implementation_version");
410        autoload("list-all-packages", "PackageFunctions");
411        autoload("listen", "listen");
412        autoload("log", "MathFunctions");
413        autoload("logand", "logand");
414        autoload("logandc1", "logandc1");
415        autoload("logandc2", "logandc2");
416        autoload("logbitp", "logbitp");
417        autoload("logcount", "logcount");
418        autoload("logeqv", "logeqv");
419        autoload("logior", "logior");
420        autoload("lognand", "lognand");
421        autoload("lognor", "lognor");
422        autoload("lognot", "lognot");
423        autoload("logorc1", "logorc1");
424        autoload("logorc2", "logorc2");
425        autoload("logtest", "logtest");
426        autoload("logxor", "logxor");
427        autoload("long-site-name", "SiteName");
428        autoload("machine-instance", "SiteName");
429        autoload("machine-type", "machine_type");
430        autoload("machine-version", "machine_version");
431        autoload("make-broadcast-stream", "BroadcastStream");
432        autoload("make-concatenated-stream", "ConcatenatedStream");
433        autoload("make-echo-stream", "EchoStream");
434        autoload("make-string-input-stream", "StringInputStream");
435        autoload("make-synonym-stream", "SynonymStream");
436        autoload("maphash", "HashTableFunctions");
437        autoload("mod", "mod");
438        autoload("open-stream-p", "open_stream_p");
439        autoload("output-stream-p", "output_stream_p");
440        autoload("package-error-package", "package_error_package");
441        autoload("package-error-package", "package_error_package");
442        autoload("package-name", "PackageFunctions");
443        autoload("package-nicknames", "PackageFunctions");
444        autoload("package-shadowing-symbols", "PackageFunctions");
445        autoload("package-use-list", "PackageFunctions");
446        autoload("package-used-by-list", "PackageFunctions");
447        autoload("packagep", "PackageFunctions");
448        autoload("peek-char", "peek_char");
449        autoload("print-not-readable-object", "PrintNotReadable");
450        autoload("probe-file", "probe_file");
451        autoload("rational", "FloatFunctions");
452        autoload("rem", "rem");
453        autoload("remhash", "HashTableFunctions");
454        autoload("remhash", "HashTableFunctions");
455        autoload("rename-package", "PackageFunctions");
456        autoload("room", "room");
457        autoload("scale-float", "FloatFunctions");
458        autoload("schar", "StringFunctions");
459        autoload("shadow", "PackageFunctions");
460        autoload("shadowing-import", "PackageFunctions");
461        autoload("short-site-name", "SiteName");
462        autoload("simple-condition-format-arguments", "SimpleCondition");
463        autoload("simple-condition-format-control", "SimpleCondition");
464        autoload("simple-string-p", "StringFunctions");
465        autoload("sin", "MathFunctions");
466        autoload("sinh", "MathFunctions");
467        autoload("software-type", "software_type");
468        autoload("software-version", "software_version");
469        autoload("sqrt", "MathFunctions");
470        autoload("stream-element-type", "stream_element_type");
471        autoload("stream-error-stream", "StreamError");
472        autoload("stream-external-format", "stream_external_format");
473        autoload("stringp", "StringFunctions");
474        autoload("sxhash", "HashTableFunctions");
475        autoload("sxhash", "HashTableFunctions");
476        autoload("synonym-stream-symbol", "SynonymStream");
477        autoload("tan", "MathFunctions");
478        autoload("tanh", "MathFunctions");
479        autoload("truename", "probe_file");
480        autoload("truncate", "truncate");
481        autoload("type-error-datum", "TypeError");
482        autoload("type-error-expected-type", "TypeError");
483        autoload("unbound-slot-instance", "unbound_slot_instance");
484        autoload("unexport", "PackageFunctions");
485        autoload("unuse-package", "PackageFunctions");
486        autoload(PACKAGE_EXT, "arglist", "arglist", true);
487        autoload(PACKAGE_EXT, "assq", "assq", true);
488        autoload(PACKAGE_EXT, "assql", "assql", true);
489        autoload(PACKAGE_EXT, "file-directory-p", "probe_file", true);
490        autoload(PACKAGE_EXT, "gc", "gc", true);
491        autoload(PACKAGE_EXT, "get-floating-point-modes", "FloatFunctions", true);
492        autoload(PACKAGE_EXT, "make-slime-input-stream", "SlimeInputStream", true);
493        autoload(PACKAGE_EXT, "make-slime-output-stream", "SlimeOutputStream", true);
494        autoload(PACKAGE_EXT, "probe-directory", "probe_file", true);
495        autoload(PACKAGE_EXT, "set-floating-point-modes", "FloatFunctions", true);
496        autoload(PACKAGE_EXT, "simple-string-fill", "StringFunctions");
497        autoload(PACKAGE_EXT, "simple-string-search", "StringFunctions");
498        autoload(PACKAGE_EXT, "string-input-stream-current", "StringInputStream", true);
499        autoload(PACKAGE_EXT, "string-find", "StringFunctions");
500        autoload(PACKAGE_EXT, "string-position", "StringFunctions");
501        autoload(PACKAGE_JAVA, "%jnew-proxy", "JProxy");
502        autoload(PACKAGE_JAVA, "%find-java-class", "JavaClass");
503        autoload(PACKAGE_JAVA, "%jmake-invocation-handler", "JProxy");
504        autoload(PACKAGE_JAVA, "%jmake-proxy", "JProxy");
505        autoload(PACKAGE_JAVA, "%jnew-runtime-class", "RuntimeClass");
506        autoload(PACKAGE_JAVA, "%jredefine-method", "RuntimeClass");
507        autoload(PACKAGE_JAVA, "%jregister-handler", "JHandler");
508        autoload(PACKAGE_JAVA, "%load-java-class-from-byte-array", "RuntimeClass");
509        autoload(PACKAGE_MOP, "funcallable-instance-function", "StandardGenericFunction", false);
510        autoload(PACKAGE_MOP, "generic-function-name", "StandardGenericFunction", true);
511        autoload(PACKAGE_MOP, "method-qualifiers", "StandardMethod", true);
512        autoload(PACKAGE_MOP, "method-specializers", "StandardMethod", true);
513        autoload(PACKAGE_MOP, "set-funcallable-instance-function", "StandardGenericFunction", true);
514        autoload(PACKAGE_PROF, "%start-profiler", "Profiler", true);
515        autoload(PACKAGE_PROF, "stop-profiler", "Profiler", true);
516        autoload(PACKAGE_SYS, "%%string=", "StringFunctions");
517        autoload(PACKAGE_SYS, "%adjust-array", "adjust_array");
518        autoload(PACKAGE_SYS, "%defpackage", "PackageFunctions");
519        autoload(PACKAGE_SYS, "%finalize-generic-function", "StandardGenericFunction", true);
520        autoload(PACKAGE_SYS, "%generic-function-lambda-list", "StandardGenericFunction", true);
521        autoload(PACKAGE_SYS, "%generic-function-name", "StandardGenericFunction", true);
522        autoload(PACKAGE_SYS, "%get-output-stream-bytes", "ByteArrayOutputStream"); //AS 20090325
523        autoload(PACKAGE_SYS, "%make-array", "make_array");
524        autoload(PACKAGE_SYS, "%make-byte-array-output-stream", "ByteArrayOutputStream"); //AS 20090325
525        autoload(PACKAGE_SYS, "%make-condition", "make_condition", true);
526        autoload(PACKAGE_SYS, "%make-hash-table", "HashTableFunctions");
527        autoload(PACKAGE_SYS, "%make-hash-table", "HashTableFunctions");
528        autoload(PACKAGE_SYS, "%make-logical-pathname", "LogicalPathname", true);
529        autoload(PACKAGE_SYS, "%make-server-socket", "make_server_socket");
530        autoload(PACKAGE_SYS, "%make-socket", "make_socket");
531        autoload(PACKAGE_SYS, "%make-string", "StringFunctions");
532        autoload(PACKAGE_SYS, "%make-string-output-stream", "StringOutputStream");
533        autoload(PACKAGE_SYS, "%method-fast-function", "StandardMethod", true);
534        autoload(PACKAGE_SYS, "%method-function", "StandardMethod", true);
535        autoload(PACKAGE_SYS, "%method-generic-function", "StandardMethod", true);
536        autoload(PACKAGE_SYS, "%method-specializers", "StandardMethod", true);
537        autoload(PACKAGE_SYS, "%nstring-capitalize", "StringFunctions");
538        autoload(PACKAGE_SYS, "%nstring-downcase", "StringFunctions");
539        autoload(PACKAGE_SYS, "%nstring-upcase", "StringFunctions");
540        autoload(PACKAGE_SYS, "%run-shell-command", "ShellCommand");
541        autoload(PACKAGE_SYS, "%server-socket-close", "server_socket_close");
542        autoload(PACKAGE_SYS, "%set-arglist", "arglist");
543        autoload(PACKAGE_SYS, "%set-class-direct-slots", "SlotClass", true);
544        autoload(PACKAGE_SYS, "%set-function-info", "function_info");
545        autoload(PACKAGE_SYS, "%set-generic-function-lambda-list", "StandardGenericFunction", true);
546        autoload(PACKAGE_SYS, "%set-generic-function-name", "StandardGenericFunction", true);
547        autoload(PACKAGE_SYS, "%set-gf-required-args", "StandardGenericFunction", true);
548        autoload(PACKAGE_SYS, "%set-method-fast-function", "StandardMethod", true);
549        autoload(PACKAGE_SYS, "%set-method-function", "StandardMethod", true);
550        autoload(PACKAGE_SYS, "%set-method-generic-function", "StandardMethod", true);
551        autoload(PACKAGE_SYS, "%set-method-specializers", "StandardMethod", true);
552        autoload(PACKAGE_SYS, "%simple-bit-vector-bit-and", "SimpleBitVector");
553        autoload(PACKAGE_SYS, "%simple-bit-vector-bit-andc1", "SimpleBitVector");
554        autoload(PACKAGE_SYS, "%simple-bit-vector-bit-andc2", "SimpleBitVector");
555        autoload(PACKAGE_SYS, "%simple-bit-vector-bit-eqv", "SimpleBitVector");
556        autoload(PACKAGE_SYS, "%simple-bit-vector-bit-ior", "SimpleBitVector");
557        autoload(PACKAGE_SYS, "%simple-bit-vector-bit-nand", "SimpleBitVector");
558        autoload(PACKAGE_SYS, "%simple-bit-vector-bit-nor", "SimpleBitVector");
559        autoload(PACKAGE_SYS, "%simple-bit-vector-bit-not", "SimpleBitVector");
560        autoload(PACKAGE_SYS, "%simple-bit-vector-bit-orc1", "SimpleBitVector");
561        autoload(PACKAGE_SYS, "%simple-bit-vector-bit-orc2", "SimpleBitVector");
562        autoload(PACKAGE_SYS, "%simple-bit-vector-bit-xor", "SimpleBitVector");
563        autoload(PACKAGE_SYS, "%slot-definition-allocation", "SlotDefinition", true);
564        autoload(PACKAGE_SYS, "%slot-definition-allocation-class", "SlotDefinition", true);
565        autoload(PACKAGE_SYS, "%slot-definition-initargs", "SlotDefinition", true);
566        autoload(PACKAGE_SYS, "%slot-definition-initform", "SlotDefinition", true);
567        autoload(PACKAGE_SYS, "%slot-definition-initfunction", "SlotDefinition", true);
568        autoload(PACKAGE_SYS, "%slot-definition-location", "SlotDefinition", true);
569        autoload(PACKAGE_SYS, "%slot-definition-name", "SlotDefinition", true);
570        autoload(PACKAGE_SYS, "%slot-definition-readers", "SlotDefinition", true);
571        autoload(PACKAGE_SYS, "%slot-definition-writers", "SlotDefinition", true);
572        autoload(PACKAGE_SYS, "%socket-accept", "socket_accept");
573        autoload(PACKAGE_SYS, "%socket-close", "socket_close");
574        autoload(PACKAGE_SYS, "%socket-stream", "socket_stream");
575        autoload(PACKAGE_SYS, "%string-capitalize", "StringFunctions");
576        autoload(PACKAGE_SYS, "%string-downcase", "StringFunctions");
577        autoload(PACKAGE_SYS, "%string-equal", "StringFunctions");
578        autoload(PACKAGE_SYS, "%string-greaterp", "StringFunctions");
579        autoload(PACKAGE_SYS, "%string-lessp", "StringFunctions");
580        autoload(PACKAGE_SYS, "%string-not-equal", "StringFunctions");
581        autoload(PACKAGE_SYS, "%string-not-greaterp", "StringFunctions");
582        autoload(PACKAGE_SYS, "%string-not-lessp", "StringFunctions");
583        autoload(PACKAGE_SYS, "%string-upcase", "StringFunctions");
584        autoload(PACKAGE_SYS, "%string/=", "StringFunctions");
585        autoload(PACKAGE_SYS, "%string<", "StringFunctions");
586        autoload(PACKAGE_SYS, "%string<=", "StringFunctions");
587        autoload(PACKAGE_SYS, "%string=", "StringFunctions");
588        autoload(PACKAGE_SYS, "%string>", "StringFunctions");
589        autoload(PACKAGE_SYS, "%string>=", "StringFunctions");
590        autoload(PACKAGE_SYS, "%time", "Time");
591        autoload(PACKAGE_SYS, "cache-emf", "StandardGenericFunction", true);
592        autoload(PACKAGE_SYS, "cache-slot-location", "StandardGenericFunction", true);
593        autoload(PACKAGE_SYS, "canonicalize-logical-host", "LogicalPathname", true);
594        autoload(PACKAGE_SYS, "class-direct-slots", "SlotClass");
595  autoload(PACKAGE_SYS, "%float-bits", "FloatFunctions");
596        autoload(PACKAGE_SYS, "coerce-to-double-float", "FloatFunctions");
597        autoload(PACKAGE_SYS, "coerce-to-single-float", "FloatFunctions");
598        autoload(PACKAGE_SYS, "compute-class-direct-slots", "SlotClass", true);
599        autoload(PACKAGE_SYS, "create-new-file", "create_new_file");
600        autoload(PACKAGE_SYS, "default-time-zone", "Time");
601        autoload(PACKAGE_SYS, "disassemble-class-bytes", "disassemble_class_bytes", true);
602        autoload(PACKAGE_SYS, "double-float-high-bits", "FloatFunctions", true);
603        autoload(PACKAGE_SYS, "double-float-low-bits", "FloatFunctions", true);
604        autoload(PACKAGE_SYS, "float-infinity-p", "FloatFunctions", true);
605        autoload(PACKAGE_SYS, "float-nan-p", "FloatFunctions", true);
606        autoload(PACKAGE_SYS, "float-string", "FloatFunctions", true);
607        autoload(PACKAGE_SYS, "function-info", "function_info");
608        autoload(PACKAGE_SYS, "generic-function-argument-precedence-order","StandardGenericFunction", true);
609        autoload(PACKAGE_SYS, "generic-function-classes-to-emf-table","StandardGenericFunction", true);
610        autoload(PACKAGE_SYS, "generic-function-documentation","StandardGenericFunction", true);
611        autoload(PACKAGE_SYS, "generic-function-initial-methods","StandardGenericFunction", true);
612        autoload(PACKAGE_SYS, "generic-function-method-class","StandardGenericFunction", true);
613        autoload(PACKAGE_SYS, "generic-function-method-combination","StandardGenericFunction", true);
614        autoload(PACKAGE_SYS, "generic-function-methods","StandardGenericFunction", true);
615        autoload(PACKAGE_SYS, "get-cached-emf", "StandardGenericFunction", true);
616        autoload(PACKAGE_SYS, "get-cached-slot-location", "StandardGenericFunction", true);
617        autoload(PACKAGE_SYS, "get-function-info-value", "function_info");
618        autoload(PACKAGE_SYS, "gf-required-args", "StandardGenericFunction", true);
619        autoload(PACKAGE_SYS, "hash-table-entries", "HashTableFunctions");
620        autoload(PACKAGE_SYS, "hash-table-entries", "HashTableFunctions");
621        autoload(PACKAGE_SYS, "layout-class", "Layout", true);
622        autoload(PACKAGE_SYS, "layout-length", "Layout", true);
623        autoload(PACKAGE_SYS, "layout-slot-index", "Layout", true);
624        autoload(PACKAGE_SYS, "layout-slot-location", "Layout", true);
625        autoload(PACKAGE_SYS, "make-case-frob-stream", "CaseFrobStream");
626        autoload(PACKAGE_SYS, "make-double-float", "FloatFunctions", true);
627        autoload(PACKAGE_SYS, "make-file-stream", "FileStream");
628        autoload(PACKAGE_SYS, "make-fill-pointer-output-stream", "FillPointerOutputStream");
629        autoload(PACKAGE_SYS, "make-forward-referenced-class", "ForwardReferencedClass", true);
630        autoload(PACKAGE_SYS, "make-layout", "Layout", true);
631        autoload(PACKAGE_SYS, "make-single-float", "FloatFunctions", true);
632        autoload(PACKAGE_SYS, "make-slot-definition", "SlotDefinition", true);
633        autoload(PACKAGE_SYS, "make-structure-class", "StructureClass");
634        autoload(PACKAGE_SYS, "make-symbol-macro", "SymbolMacro");
635        autoload(PACKAGE_SYS, "method-documentation", "StandardMethod", true);
636        autoload(PACKAGE_SYS, "method-lambda-list", "StandardMethod", true);
637        autoload(PACKAGE_SYS, "psxhash", "HashTableFunctions");
638        autoload(PACKAGE_SYS, "puthash", "HashTableFunctions");
639        autoload(PACKAGE_SYS, "puthash", "HashTableFunctions");
640        autoload(PACKAGE_SYS, "set-function-info-value", "function_info");
641        autoload(PACKAGE_SYS, "set-generic-function-argument-precedence-order","StandardGenericFunction", true);
642        autoload(PACKAGE_SYS, "set-generic-function-classes-to-emf-table","StandardGenericFunction", true);
643        autoload(PACKAGE_SYS, "set-generic-function-documentation","StandardGenericFunction", true);
644        autoload(PACKAGE_SYS, "set-generic-function-initial-methods","StandardGenericFunction", true);
645        autoload(PACKAGE_SYS, "set-generic-function-method-class","StandardGenericFunction", true);
646        autoload(PACKAGE_SYS, "set-generic-function-method-combination","StandardGenericFunction", true);
647        autoload(PACKAGE_SYS, "set-generic-function-methods","StandardGenericFunction", true);
648        autoload(PACKAGE_SYS, "set-method-documentation", "StandardMethod", true);
649        autoload(PACKAGE_SYS, "set-method-lambda-list", "StandardMethod", true);
650        autoload(PACKAGE_SYS, "set-method-qualifiers", "StandardMethod", true);
651        autoload(PACKAGE_SYS, "set-slot-definition-allocation", "SlotDefinition", true);
652        autoload(PACKAGE_SYS, "set-slot-definition-allocation-class", "SlotDefinition", true);
653        autoload(PACKAGE_SYS, "set-slot-definition-initargs", "SlotDefinition", true);
654        autoload(PACKAGE_SYS, "set-slot-definition-initform", "SlotDefinition", true);
655        autoload(PACKAGE_SYS, "set-slot-definition-initfunction", "SlotDefinition", true);
656        autoload(PACKAGE_SYS, "set-slot-definition-location", "SlotDefinition", true);
657        autoload(PACKAGE_SYS, "set-slot-definition-name", "SlotDefinition", true);
658        autoload(PACKAGE_SYS, "set-slot-definition-readers", "SlotDefinition", true);
659        autoload(PACKAGE_SYS, "set-slot-definition-writers", "SlotDefinition", true);
660        autoload(PACKAGE_SYS, "simple-list-remove-duplicates", "simple_list_remove_duplicates");
661        autoload(PACKAGE_SYS, "single-float-bits", "FloatFunctions", true);
662        autoload(PACKAGE_SYS, "std-allocate-instance", "StandardObjectFunctions", true);
663        autoload(PACKAGE_SYS, "zip", "zip", true);
664
665        autoload(Symbol.COPY_LIST, "copy_list");
666
667        autoload(Symbol.SET_CHAR, "StringFunctions");
668        autoload(Symbol.SET_SCHAR, "StringFunctions");
669
670        autoload(Symbol.SET_CLASS_SLOTS, "SlotClass");
671        autoload(Symbol._CLASS_SLOTS, "SlotClass");
672
673        autoload(Symbol.JAVA_EXCEPTION_CAUSE, "JavaException");
674        autoload(Symbol.JCLASS_NAME, "jclass_name");
675        autoload(Symbol.JCLASS_OF, "jclass_of");
676        autoload(Symbol.JMETHOD_RETURN_TYPE, "jmethod_return_type");
677    }
678}
Note: See TracBrowser for help on using the repository browser.