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