| 1 |
;;;; -*- Mode: Lisp; Syntax: Common-Lisp; indent-tabs-mode: nil -*- |
| 2 |
;;;; vim: set filetype=lisp tabstop=8 shiftwidth=2 expandtab: |
| 3 |
|
| 4 |
;;;; Copyright (c) 1984, Taiichi Yuasa and Masami Hagiya. |
| 5 |
;;;; Copyright (c) 1990, Giuseppe Attardi. |
| 6 |
;;;; |
| 7 |
;;;; See file 'LICENSE' for the copyright details. |
| 8 |
|
| 9 |
;;;; setdoc.lsp |
| 10 |
;;;; |
| 11 |
;;;; Sets doc-strings for built-in symbols. |
| 12 |
|
| 13 |
(in-package "COMPILER") ; in case it does not exist |
| 14 |
(in-package "SYSTEM") |
| 15 |
|
| 16 |
(defmacro docfun (symbol kind args doc) |
| 17 |
(do-docfun symbol kind args doc)) |
| 18 |
|
| 19 |
(defun do-docfun (symbol kind args doc) |
| 20 |
;(print symbol) |
| 21 |
(assert (listp args)) |
| 22 |
(ext:annotate symbol ':lambda-list nil args) |
| 23 |
(si::set-documentation |
| 24 |
symbol 'function |
| 25 |
(format nil "~A in ~A package:~@[~%~A~]~%" |
| 26 |
(ecase kind |
| 27 |
(special "Special Form") |
| 28 |
(macro "Macro") |
| 29 |
(function "Function") |
| 30 |
(method "Generic function")) |
| 31 |
(package-name (symbol-package (si::function-block-name symbol))) |
| 32 |
doc))) |
| 33 |
|
| 34 |
(defmacro docvar (symbol kind doc) |
| 35 |
(do-docvar symbol kind doc)) |
| 36 |
|
| 37 |
(defun do-docvar (symbol kind doc) |
| 38 |
;(print symbol) |
| 39 |
(si::set-documentation |
| 40 |
symbol 'variable |
| 41 |
(format nil "~@(~A~) in ~A package:~A~%" |
| 42 |
kind (package-name (symbol-package symbol)) doc))) |
| 43 |
|
| 44 |
(defmacro doctype (symbol doc) |
| 45 |
(do-doctype symbol doc)) |
| 46 |
|
| 47 |
(defun do-doctype (symbol doc) |
| 48 |
;(print symbol) |
| 49 |
(si::set-documentation symbol 'type doc)) |
| 50 |
|
| 51 |
(defun tree-search (tree x) |
| 52 |
(cond ((eq tree x) |
| 53 |
t) |
| 54 |
((atom tree) |
| 55 |
nil) |
| 56 |
((tree-search (car tree) x) |
| 57 |
t) |
| 58 |
(t |
| 59 |
(tree-search (cdr tree) x)))) |
| 60 |
|
| 61 |
(defun our-pde-hook (location definition output-form) |
| 62 |
(when (consp definition) |
| 63 |
(handler-case |
| 64 |
(let* ((documentation nil) |
| 65 |
(name (second definition))) |
| 66 |
(loop for i in (cddr definition) |
| 67 |
do (cond ((stringp i) |
| 68 |
(setf documentation i) |
| 69 |
(return)) |
| 70 |
((and (consp i) (eq (first i) 'DECLARE)) |
| 71 |
;; Produce no documentation for si::c-local functions |
| 72 |
(when (tree-search i 'si::c-local) |
| 73 |
(return-from our-pde-hook output-form))) |
| 74 |
(t (return)))) |
| 75 |
(case (first definition) |
| 76 |
(defun (do-docfun name 'function (third definition) documentation)) |
| 77 |
(defmacro (do-docfun name 'macro (third definition) documentation)) |
| 78 |
((defvar defparameter) (when documentation (do-docvar name 'variable documentation))) |
| 79 |
(defconstant (when documentation (do-docvar name 'constant documentation))) |
| 80 |
(deftype (when documentation (do-doctype name documentation))))) |
| 81 |
(error (c) (princ c) (quit)))) |
| 82 |
output-form) |
| 83 |
|
| 84 |
(setf ext:*register-with-pde-hook* #'our-pde-hook) |
| 85 |
|
| 86 |
#|| |
| 87 |
(defmacro docfun (symbol kind args string) |
| 88 |
`(progn (si::putprop ',symbol ,string 'si::function-documentation) |
| 89 |
(si::putprop ',symbol ',args 'arglist) |
| 90 |
',symbol)) |
| 91 |
|
| 92 |
(defmacro docvar (symbol kind string) |
| 93 |
(declare (ignore kind)) |
| 94 |
`(progn (si::putprop ',symbol ,string 'si::variable-documentation) |
| 95 |
',symbol)) |
| 96 |
|
| 97 |
(defmacro doctype (symbol string) |
| 98 |
`(progn (si::putprop ',symbol ,string 'si::type-documentation) |
| 99 |
',symbol)) |
| 100 |
||# |
| 101 |
|
| 102 |
;;;---------------------------------------------------------------------- |
| 103 |
;;; Ordered alphabetically for binary search |
| 104 |
;;;---------------------------------------------------------------------- |
| 105 |
|
| 106 |
(docvar + variable " |
| 107 |
The last top-level form.") |
| 108 |
|
| 109 |
(docvar ++ variable " |
| 110 |
The last-but-one top-level form.") |
| 111 |
|
| 112 |
(docvar +++ variable " |
| 113 |
The last-but-two top-level form.") |
| 114 |
|
| 115 |
(docvar / variable " |
| 116 |
The list of all values of the last top-level form.") |
| 117 |
|
| 118 |
(docvar // variable " |
| 119 |
The list of all values of the last-but-one top-level form.") |
| 120 |
|
| 121 |
(docvar /// variable " |
| 122 |
The list of all values of the last-but-two top-level form.") |
| 123 |
|
| 124 |
(docvar - variable " |
| 125 |
The top-level form ECL is currently evaluating.") |
| 126 |
|
| 127 |
(docvar * variable " |
| 128 |
The value of the last top-level form.") |
| 129 |
|
| 130 |
(docfun * function (&rest numbers) " |
| 131 |
Returns the product of the args. With no args, returns 1.") |
| 132 |
|
| 133 |
(docvar *debugger-hook* variable " |
| 134 |
This is either NIL or a function of two arguments, a condition and the value |
| 135 |
of *DEBUGGER-HOOK*. This function can either handle the condition or return |
| 136 |
which causes the standard debugger to execute. The system passes the value |
| 137 |
of this variable to the function because it binds *DEBUGGER-HOOK* to NIL |
| 138 |
around the invocation.") |
| 139 |
|
| 140 |
(docvar *debug-io* variable " |
| 141 |
The stream used by the ECL debugger. The initial value is a synonym stream to |
| 142 |
*TERMINAL-IO*.") |
| 143 |
|
| 144 |
(docvar *default-pathname-defaults* variable " |
| 145 |
The default pathname used by some pathname-handling functions such as ENOUGH- |
| 146 |
NAMESTRING.") |
| 147 |
|
| 148 |
(docvar *error-output* variable " |
| 149 |
The output stream to which error messages are output. The initial value is an |
| 150 |
synonym stream to *TERMINAL-IO*.") |
| 151 |
|
| 152 |
(docvar *features* variable " |
| 153 |
List of symbols that name features of the current version of ECL. These |
| 154 |
features are used in connection with the read macros #+ and #-. When the |
| 155 |
reader encounters |
| 156 |
#+ feature-spec form |
| 157 |
it reads FORM in the usual manner if FEATURE-SPEC is satisfied. Otherwise, |
| 158 |
the reader just skips FORM. |
| 159 |
#- feature-spec form |
| 160 |
is equivalent to |
| 161 |
#- (not feature-spec) form |
| 162 |
A feature-spec may be a symbol, in which case the spec is satisfied iff the |
| 163 |
symbol is an element of *FEATURES*. Or else, a feature-spec must be one of |
| 164 |
the following forms. |
| 165 |
(and {feature-spec}*) |
| 166 |
Satisfied iff all FEATURE-SPECs are satisfied |
| 167 |
(or {feature-spec}*) |
| 168 |
Satisfied iff at least one of FEATURE-SPECs is satisfied |
| 169 |
(not feature-spec) |
| 170 |
Satisfied iff FEATURE-SPEC is not satisfied") |
| 171 |
|
| 172 |
#-boehm-gc |
| 173 |
(docvar si::*gc-message* variable " |
| 174 |
ECL specific. |
| 175 |
If the value of SI::*GC-MESSAGE* is non-NIL, the garbage collector prints some |
| 176 |
debugging information on the terminal. Usually SI::*GC-MESSAGE* is set NIL.") |
| 177 |
|
| 178 |
#-boehm-gc |
| 179 |
(docvar si::*gc-verbose* variable " |
| 180 |
ECL specific. |
| 181 |
If the value of this variable is non-NIL, then the garbage collector notifies |
| 182 |
that it begins to run whenever it is invoked. Otherwise, garbage collection |
| 183 |
begins silently.") |
| 184 |
|
| 185 |
(docvar si::*ignore-eof-on-terminal-io* variable " |
| 186 |
ECL specific. |
| 187 |
If the value of this variable is non-NIL, ECL ignores the EOF-character |
| 188 |
(usually ^D) on the terminal. The initial value is NIL.") |
| 189 |
|
| 190 |
#-boehm-gc |
| 191 |
(docfun si::ignore-maximum-pages function (&optional (boolean t)) " |
| 192 |
ECL specific. |
| 193 |
Tells the ECL memory manager whether (non-NIL) or not (NIL) it should expand |
| 194 |
memory when the maximum allocatable pages have been used up. The initial |
| 195 |
value is T. If no arguments are passed, returns the current value of the |
| 196 |
flag.") |
| 197 |
|
| 198 |
(docvar si::*indent-formatted-output* variable " |
| 199 |
ECL specific. |
| 200 |
The FORMAT directive ~~% indents the next line, if the value of this variable |
| 201 |
is non-NIL. If NIL, ~~% simply does Newline.") |
| 202 |
|
| 203 |
(docvar si::*interrupt-enable* variable " |
| 204 |
ECL specific. |
| 205 |
If the value of SI::*INTERRUPT-ENABLE* is non-NIL, ECL signals an error on the |
| 206 |
terminal interrupt (this is the default case). If it is NIL, ECL ignores the |
| 207 |
interrupt and assigns T to SI::*INTERRUPT-ENABLE*.") |
| 208 |
|
| 209 |
(docvar ext::*invoke-debugger-hook* variable " |
| 210 |
ECL specific. |
| 211 |
This is either NIL or a designator for a function of two arguments, |
| 212 |
to be run when the debugger is about to be entered. The function is |
| 213 |
run with *INVOKE-DEBUGGER-HOOK* bound to NIL to minimize recursive |
| 214 |
errors, and receives as arguments the condition that triggered |
| 215 |
debugger entry and the previous value of *INVOKE-DEBUGGER-HOOK* |
| 216 |
|
| 217 |
This mechanism is an extension similar to the standard *DEBUGGER-HOOK*. |
| 218 |
In contrast to *DEBUGGER-HOOK*, it is observed by INVOKE-DEBUGGER even when |
| 219 |
called by BREAK.") |
| 220 |
|
| 221 |
#-boehm-gc |
| 222 |
(docvar si::*lisp-maxpages* variable " |
| 223 |
ECL specific. |
| 224 |
The current maximum number of pages (1 page = 2048 bytes) for the ECL process. |
| 225 |
The result of changing the value of SI::*LISP-MAXPAGES* is unpredictable.") |
| 226 |
|
| 227 |
(docvar *load-verbose* variable " |
| 228 |
The default value for the :VERBOSE parameter of LOAD. |
| 229 |
It initial value is T.") |
| 230 |
|
| 231 |
(docvar *macroexpand-hook* variable " |
| 232 |
The value of this variable must be a three-argument function object. |
| 233 |
Each time a macro form is expanded, ECL calls that function with |
| 234 |
1. the macro expansion function (see MACRO-FUNCTION) |
| 235 |
2. the macro form to expand |
| 236 |
3. an environment (NIL in most case) |
| 237 |
as three arguments, and uses the returned value as the expanded form. |
| 238 |
The initial value of this variable is the function FUNCALL.") |
| 239 |
|
| 240 |
(docfun si::*make-constant function (symbol value) " |
| 241 |
ECL specific. |
| 242 |
Declares that the global variable named by SYMBOL is a constant with VALUE as |
| 243 |
its constant value.") |
| 244 |
|
| 245 |
(docfun si::*make-special function (symbol) " |
| 246 |
ECL specific. |
| 247 |
Declares the variable named by NAME as a special variable.") |
| 248 |
|
| 249 |
(docvar *package* variable " |
| 250 |
The current package. The initial value is the USER package.") |
| 251 |
|
| 252 |
(docvar *print-array* variable " |
| 253 |
Specifies whether ECL should print elements when it prints arrays other than |
| 254 |
strings. ECL uses the following abbreviation notations. |
| 255 |
#<bit-vector n> for bit-vectors |
| 256 |
#<vector n> for vectors other than strings and bit-vectors |
| 257 |
#<array n> for arrays other than vectors |
| 258 |
where N is a number that identifies the array.") |
| 259 |
|
| 260 |
(docvar *print-base* variable " |
| 261 |
The radix used to print integers and ratios. The value must be an integer |
| 262 |
from 2 to 36, inclusive. The initial value is 10.") |
| 263 |
|
| 264 |
(docvar *print-case* variable " |
| 265 |
Specifies how to print ordinary symbols. Possible values are: |
| 266 |
:UPCASE in upper case |
| 267 |
:DOWNCASE in lower case |
| 268 |
:CAPITALIZE the first character in upper case, the rest in lower |
| 269 |
The initial value is :UPCASE.") |
| 270 |
|
| 271 |
(docvar *print-circle* variable " |
| 272 |
Specifies whether the ECL printer should take care of circular lists.") |
| 273 |
|
| 274 |
(docvar *print-escape* variable " |
| 275 |
Specifies whether the ECL printer should output objects in the way that they |
| 276 |
can be reread later if possible.") |
| 277 |
|
| 278 |
(docvar *print-gensym* variable " |
| 279 |
Specifies whether the ECL printer should prefix uninterned symbols with \"#:\".") |
| 280 |
|
| 281 |
(docvar *print-length* variable " |
| 282 |
Specifies how many elements the ECL printer should print when it prints a |
| 283 |
list. ECL printer prints all elements if the value of this variable is NIL.") |
| 284 |
|
| 285 |
(docvar *print-level* variable " |
| 286 |
Specifies how many levels of depth the ECL printer should print when it prints |
| 287 |
a list. ECL printer prints all levels if the value of this variable is NIL.") |
| 288 |
|
| 289 |
(docvar *print-pretty* variable " |
| 290 |
Specifies whether the ECL printer should pretty-print. See PPRINT for more |
| 291 |
information about pretty-printing.") |
| 292 |
|
| 293 |
(docvar *print-radix* variable " |
| 294 |
Specifies whether the ECL printer should print the radix when it prints |
| 295 |
integers and ratios.") |
| 296 |
|
| 297 |
#+profile |
| 298 |
(docvar si::*profile-array* variable " |
| 299 |
ECL specific. |
| 300 |
Contains the profile histogram: two short integer counters are packed in each |
| 301 |
value of this array of fixnums.") |
| 302 |
|
| 303 |
(docvar *query-io* variable " |
| 304 |
The query I/O stream. The initial value is a synonym stream to *TERMINAL-IO*.") |
| 305 |
|
| 306 |
(docvar *random-state* variable " |
| 307 |
The default random-state object used by RANDOM.") |
| 308 |
|
| 309 |
(docvar *read-base* variable " |
| 310 |
The radix used to read numbers. The initial value is 10.") |
| 311 |
|
| 312 |
(docvar *read-default-float-format* variable " |
| 313 |
The default float format the ECL reader uses when reading floats. Must be one |
| 314 |
of the symbols SHORT-FLOAT, SINGLE-FLOAT, DOUBLE-FLOAT, and LONG-FLOAT.") |
| 315 |
|
| 316 |
(docvar *read-suppress* variable " |
| 317 |
When the value of this variable is non-NIL, the ECL reader parses input |
| 318 |
characters without most of the ordinary processings such as interning. Used |
| 319 |
to skip over forms.") |
| 320 |
|
| 321 |
(docvar *readtable* variable " |
| 322 |
The current readtable.") |
| 323 |
|
| 324 |
(docvar *standard-input* variable " |
| 325 |
The default input stream used by the ECL reader. The initial value is a |
| 326 |
synonym stream to *TERMINAL-IO*.") |
| 327 |
|
| 328 |
(docvar *standard-output* variable " |
| 329 |
The default output stream used by the ECL printer. The initial value is a |
| 330 |
synonym stream to *TERMINAL-IO*.") |
| 331 |
|
| 332 |
(docvar *terminal-io* variable " |
| 333 |
The terminal I/O stream.") |
| 334 |
|
| 335 |
(docvar *trace-output* variable " |
| 336 |
The stream used for trace output. The initial value is a synonym stream to |
| 337 |
*TERMINAL-IO*.") |
| 338 |
|
| 339 |
(docfun + function (&rest numbers) " |
| 340 |
Returns the sum of the args. With no args, returns 0.") |
| 341 |
|
| 342 |
(docfun - function (number &rest more-numbers) " |
| 343 |
Returns the first arg subtracted by the rest of args. With one arg, returns |
| 344 |
- NUMBER.") |
| 345 |
|
| 346 |
(docfun / function (number &rest more-numbers) " |
| 347 |
Returns the first arg divided by the rest of args. With one arg, returns |
| 348 |
1/NUMBER.") |
| 349 |
|
| 350 |
(docfun /= function (number &rest more-numbers) " |
| 351 |
Returns T if no two of the args are numerically equal; NIL otherwise.") |
| 352 |
|
| 353 |
(docfun 1+ function (number) " |
| 354 |
Returns NUMBER plus one.") |
| 355 |
|
| 356 |
(docfun 1- function (number) " |
| 357 |
Returns NUMBER minus one.") |
| 358 |
|
| 359 |
(docfun < function (number &rest more-numbers) " |
| 360 |
Returns T if the args are in increasing order; NIL otherwise.") |
| 361 |
|
| 362 |
(docfun <= function (number &rest more-numbers) " |
| 363 |
Returns T if the args are in non-decreasing order; NIL otherwise.") |
| 364 |
|
| 365 |
(docfun = function (number &rest more-numbers) " |
| 366 |
Returns T if all args are numerically equal; NIL otherwise.") |
| 367 |
|
| 368 |
(docfun > function (number &rest more-numbers) " |
| 369 |
Returns T if the args are in decreasing order; NIL otherwise.") |
| 370 |
|
| 371 |
(docfun >= function (number &rest more-numbers) " |
| 372 |
Returns T if the args are in non-increasing order; NIL otherwise.") |
| 373 |
|
| 374 |
(docfun abs function (number) " |
| 375 |
Returns the absolute value of NUMBER.") |
| 376 |
|
| 377 |
(docfun acons function (key datum alist) " |
| 378 |
Equivalent to (CONS (CONS KEY DATUM) ALIST).") |
| 379 |
|
| 380 |
(docfun adjoin function (item list &key (key '#'identity) (test '#'eql) test-not) " |
| 381 |
Returns cons of ITEM and LIST unless ITEM is already an element of LIST. |
| 382 |
Otherwise, returns LIST.") |
| 383 |
|
| 384 |
(docfun adjustable-array-p function (array) " |
| 385 |
Returns T if ARRAY is adjustable; NIL otherwise.") |
| 386 |
|
| 387 |
#+clos |
| 388 |
(docfun si::allocate-gfun function (name arity hash-table) " |
| 389 |
ECL/CLOS specific. |
| 390 |
Allocates a gfun object in which NAME is the generic function name, ARITY |
| 391 |
is the number of arguments and HASH-TABLE is the hashtable for cashing |
| 392 |
methods.") |
| 393 |
|
| 394 |
#+clos |
| 395 |
(docfun si::allocate-instance function (class length) " |
| 396 |
ECL/CLOS specific. |
| 397 |
Allocates an istance of CLASS with LENGTH slots.") |
| 398 |
|
| 399 |
(docfun alpha-char-p function (char) " |
| 400 |
Returns T if CHAR is alphabetic; NIL otherwise.") |
| 401 |
|
| 402 |
(docfun alphanumericp function (char) " |
| 403 |
Returns T if CHAR is either numeric or alphabetic; NIL otherwise.") |
| 404 |
|
| 405 |
(docfun and macro (&rest forms) " |
| 406 |
Evaluates FORMs in order. If any FORM evaluates to NIL, returns |
| 407 |
immediately with the value NIL. Otherwise, returns all values of the |
| 408 |
last FORM.") |
| 409 |
|
| 410 |
(docfun append function (&rest lists) " |
| 411 |
Constructs and returns a new list by concatenating the args.") |
| 412 |
|
| 413 |
(docfun apply function (function arg &rest more-args) " |
| 414 |
Calls FUNCTION with all ARGs except the last and all elements of the last ARG |
| 415 |
as the arguments to FUNCTION. Returns all values that FUNCTION returns.") |
| 416 |
|
| 417 |
(docfun applyhook function (function list evalhookfn applyhookfn &optional (env nil)) " |
| 418 |
Calls FUNCTION with all elements of LIST as the arguments and with *EVALHOOK* |
| 419 |
and *APPLYHOOK* bound to EVALHOOKFN and APPLYHOOKFN respectively. Returns all |
| 420 |
values that FUNCTION returns.") |
| 421 |
|
| 422 |
(docfun aref function (array &rest indexes) " |
| 423 |
Returns the element of ARRAY specified by INDEXES.") |
| 424 |
|
| 425 |
(docfun si::argc function () " |
| 426 |
ECL specific. |
| 427 |
Returns the number of arguments given in the command line that invoked ECL.") |
| 428 |
|
| 429 |
(docfun si::argv function (n) " |
| 430 |
ECL specific. |
| 431 |
Returns the N-th argument given in the command line that invoked ECL.") |
| 432 |
|
| 433 |
(doctype array " |
| 434 |
An array is a compound object whose elements are referenced by indexing. One- |
| 435 |
dimensional arrays are called vectors. Other arrays are notated as |
| 436 |
#?a( ... ) or #?A( ... ) |
| 437 |
where '?' is actually the rank of the array. |
| 438 |
Arrays may be displaced to another array, may have a fill-pointer, or may be |
| 439 |
adjustable. Other arrays are called simple-arrays. Only simple-arrays can be |
| 440 |
input in the above format.") |
| 441 |
|
| 442 |
(docfun array-dimension function (array n) " |
| 443 |
Returns the length of the N-th dimension of ARRAY.") |
| 444 |
|
| 445 |
(docvar array-dimension-limit constant " |
| 446 |
The upper bound of the length of an array dimension.") |
| 447 |
|
| 448 |
(docfun array-element-type function (array) " |
| 449 |
Returns the element type ARRAY.") |
| 450 |
|
| 451 |
(docfun array-has-fill-pointer-p function (array) " |
| 452 |
Returns T if ARRAY has a fill-pointer; NIL otherwise.") |
| 453 |
|
| 454 |
(docfun array-rank function (array) " |
| 455 |
Returns the rank of ARRAY.") |
| 456 |
|
| 457 |
(docvar array-rank-limit constant " |
| 458 |
The upper bound of the rank of an array.") |
| 459 |
|
| 460 |
(docfun array-total-size function (array) " |
| 461 |
Returns the total number of elements of ARRAY.") |
| 462 |
|
| 463 |
(docvar array-total-size-limit constant " |
| 464 |
The upper bound of the total number of elements of an array.") |
| 465 |
|
| 466 |
(docfun arrayp function (x) " |
| 467 |
Returns T if X is an array; NIL otherwise.") |
| 468 |
|
| 469 |
(docfun ash function (integer count) " |
| 470 |
Returns the integer obtained by shifting the bits that represent INTEGER as |
| 471 |
specified by COUNT. Shifts left in COUNT bits if COUNT is positive. Shifts |
| 472 |
right in -COUNT bits if COUNT is negative.") |
| 473 |
|
| 474 |
(docfun assoc function (item alist &key (test '#'eql) test-not (key '#'identity)) " |
| 475 |
Returns the first pair in ALIST whose car is equal (in the sense of TEST) to |
| 476 |
ITEM. Returns NIL if no such pair exists. |
| 477 |
The function KEY is applied to extract the key for comparison.") |
| 478 |
|
| 479 |
(docfun atan function (x &optional (y 1)) " |
| 480 |
Returns the arc tangent of X/Y.") |
| 481 |
|
| 482 |
(docfun atom function (x) " |
| 483 |
Returns T if X is not a cons; NIL otherwise.") |
| 484 |
|
| 485 |
(docfun si::bds-val function (n) " |
| 486 |
ECL specific. |
| 487 |
Returns the value of the N-th entity in the bind stack.") |
| 488 |
|
| 489 |
(docfun si::bds-var function (n) " |
| 490 |
ECL specific. |
| 491 |
Returns the symbol of the N-th entity in the bind stack.") |
| 492 |
|
| 493 |
(doctype bignum " |
| 494 |
A bignum is an integer that is not a fixnum.") |
| 495 |
|
| 496 |
(docfun bit-vector-p function (x) " |
| 497 |
Returns T if X is a bit-vector; NIL otherwise.") |
| 498 |
|
| 499 |
(docfun block special (name &body forms) " |
| 500 |
Establishes a block named by NAME, evaluates FORMs in order, and returns all |
| 501 |
values of the last FORM. Returns NIL if no FORMs are given. |
| 502 |
The scope of the established block is the body (i.e. the FORMs) of the BLOCK |
| 503 |
form. If (return-from name value-form) is evaluated within the scope, the |
| 504 |
execution of the BLOCK form terminates immediately and all values of |
| 505 |
VALUE-FORM will be returned as the values of the terminated BLOCK form.") |
| 506 |
|
| 507 |
(docfun boole function (op integer1 integer2) " |
| 508 |
Returns the integer produced by the logical operation specified by OP on the |
| 509 |
two integers. OP must be the value of one of the following constants. |
| 510 |
BOOLE-CLR BOOLE-C1 BOOLE-XOR BOOLE-ANDC1 |
| 511 |
BOOLE-SET BOOLE-C2 BOOLE-EQV BOOLE-ANDC2 |
| 512 |
BOOLE-1 BOOLE-AND BOOLE-NAND BOOLE-ORC1 |
| 513 |
BOOLE-2 BOOLE-IOR BOOLE-NOR BOOLE-ORC2 |
| 514 |
Each logical operation on integers produces an integer represented by the bit |
| 515 |
sequence obtained by a bit-wise logical operation on the bit sequences that |
| 516 |
represent the integers. Two's-complement representation is assumed to obtain |
| 517 |
the bit sequence that represents an integer. For example, |
| 518 |
2: ...010 |
| 519 |
1: ...001 |
| 520 |
0: ...000 |
| 521 |
-1: ...111 |
| 522 |
-2: ...110 |
| 523 |
where each '...' represents either an infinite sequence of 0's (for non- |
| 524 |
negative integers) or an infinite sequence of 1's (for negative integers).") |
| 525 |
|
| 526 |
(docvar boole-1 constant " |
| 527 |
Makes BOOLE return INTEGER1.") |
| 528 |
|
| 529 |
(docvar boole-2 constant " |
| 530 |
Makes BOOLE return INTEGER2.") |
| 531 |
|
| 532 |
(docvar boole-and constant " |
| 533 |
Makes BOOLE return the AND of INTEGER1 and INTEGER2.") |
| 534 |
|
| 535 |
(docvar boole-andc1 constant " |
| 536 |
Makes BOOLE return the AND of {the NOT of INTEGER1} and INTEGER2.") |
| 537 |
|
| 538 |
(docvar boole-andc2 constant " |
| 539 |
Makes BOOLE return the AND of INTEGER1 and {the NOT of INTEGER2}.") |
| 540 |
|
| 541 |
(docvar boole-c1 constant " |
| 542 |
Makes BOOLE return the NOT of INTEGER1.") |
| 543 |
|
| 544 |
(docvar boole-c2 constant " |
| 545 |
Makes BOOLE return the NOT of INTEGER2.") |
| 546 |
|
| 547 |
(docvar boole-clr constant " |
| 548 |
Makes BOOLE return 0.") |
| 549 |
|
| 550 |
(docvar boole-eqv constant " |
| 551 |
Makes BOOLE return the EQUIVALENCE of INTEGER1 and INTEGER2.") |
| 552 |
|
| 553 |
(docvar boole-ior constant " |
| 554 |
Makes BOOLE return the INCLUSIVE OR of INTEGER1 and INTEGER2.") |
| 555 |
|
| 556 |
(docvar boole-nand constant " |
| 557 |
Makes BOOLE return the NOT of {the AND of INTEGER1 and INTEGER2}.") |
| 558 |
|
| 559 |
(docvar boole-nor constant " |
| 560 |
Makes BOOLE return the NOT of {the INCLUSIVE OR of INTEGER1 and INTEGER2}.") |
| 561 |
|
| 562 |
(docvar boole-orc1 constant " |
| 563 |
Makes BOOLE return the INCLUSIVE OR of {the NOT of INTEGER1} and INTEGER2.") |
| 564 |
|
| 565 |
(docvar boole-orc2 constant " |
| 566 |
Makes BOOLE return the INCLUSIVE OR of INTEGER1 and {the NOT of INTEGER2}.") |
| 567 |
|
| 568 |
(docvar boole-set constant " |
| 569 |
Makes BOOLE return -1.") |
| 570 |
|
| 571 |
(docvar boole-xor constant " |
| 572 |
Makes BOOLE return the EXCLUSIVE OR of INTEGER1 and INTEGER2.") |
| 573 |
|
| 574 |
(docfun both-case-p function (char) " |
| 575 |
Returns T if CHAR is an alphabetic character; NIL otherwise. Equivalent to |
| 576 |
ALPHA-CHAR-P.") |
| 577 |
|
| 578 |
(docfun boundp function (symbol) " |
| 579 |
Returns T if the global variable named SYMBOL has a value; NIL otherwise.") |
| 580 |
|
| 581 |
#| |
| 582 |
(docfun compiler:build-ecl function (program-name &rest components) " |
| 583 |
|
| 584 |
Builds a standalone executable using the object files, libraries and flags |
| 585 |
which follow PROGRAM-NAME, which is the name of the final executable. |
| 586 |
|
| 587 |
Each argument in COMPONENTS can be either a symbol or a string. If it is a |
| 588 |
string, it is passed as such to the C compiler when building the program. This |
| 589 |
way you can specify FASL code (i.e. compiled lisp code) and additional |
| 590 |
libraries or custom C code. |
| 591 |
|
| 592 |
However, if the argument is a symbol, it is interpreted as the name of a lisp |
| 593 |
library of FASL code. You should use symbols to call in optional parts of the |
| 594 |
interpreter, such as the compiler 'CMP (not yet available) |
| 595 |
|
| 596 |
For example: |
| 597 |
(compile-file \"my-code.lsp\" :system-p) |
| 598 |
(build-ecl \"my-ecl\" \"my-code.o\" \"-Bdynamic -lX11\" 'cmp) |
| 599 |
builds an new interpreter with some custom lisp code given in \"my-code.o\" and |
| 600 |
with the ECL compiler (You must explicitely mention the compiler if you want |
| 601 |
it). Finally, the X-Windows dynamically linked libraries are also included |
| 602 |
because \"my-code.lsp\" uses the foreign function interface to do some |
| 603 |
graphics.") |
| 604 |
|# |
| 605 |
|
| 606 |
(docfun butlast function (list &optional (n 1)) " |
| 607 |
Returns a copy of LIST with the last N elements removed.") |
| 608 |
|
| 609 |
(docfun by function () " |
| 610 |
ECL specific. |
| 611 |
Exits from ECL. Equivalent to BYE.") |
| 612 |
|
| 613 |
(docfun bye function () " |
| 614 |
ECL specific. |
| 615 |
Exits from ECL. Equivalent to BY.") |
| 616 |
|
| 617 |
(docfun caaaar function (x) " |
| 618 |
Equivalent to (CAR (CAR (CAR (CAR X)))).") |
| 619 |
|
| 620 |
(docfun caaadr function (x) " |
| 621 |
Equivalent to (CAR (CAR (CAR (CDR X)))).") |
| 622 |
|
| 623 |
(docfun caaar function (x) " |
| 624 |
Equivalent to (CAR (CAR (CAR X))).") |
| 625 |
|
| 626 |
(docfun caadar function (x) " |
| 627 |
Equivalent to (CAR (CAR (CDR (CAR X)))).") |
| 628 |
|
| 629 |
(docfun caaddr function (x) " |
| 630 |
Equivalent to (CAR (CAR (CDR (CDR X)))).") |
| 631 |
|
| 632 |
(docfun caadr function (x) " |
| 633 |
Equivalent to (CAR (CAR (CDR X))).") |
| 634 |
|
| 635 |
(docfun caar function (x) " |
| 636 |
Equivalent to (CAR (CAR X)).") |
| 637 |
|
| 638 |
(docfun cadaar function (x) " |
| 639 |
Equivalent to (CAR (CDR (CAR (CAR X)))).") |
| 640 |
|
| 641 |
(docfun cadadr function (x) " |
| 642 |
Equivalent to (CAR (CDR (CAR (CDR X)))).") |
| 643 |
|
| 644 |
(docfun cadar function (x) " |
| 645 |
Equivalent to (CAR (CDR (CAR X))).") |
| 646 |
|
| 647 |
(docfun caddar function (x) " |
| 648 |
Equivalent to (CAR (CDR (CDR (CAR X)))).") |
| 649 |
|
| 650 |
(docfun cadddr function (x) " |
| 651 |
Equivalent to (CAR (CDR (CDR (CDR X)))).") |
| 652 |
|
| 653 |
(docfun caddr function (x) " |
| 654 |
Equivalent to (CAR (CDR (CDR X))).") |
| 655 |
|
| 656 |
(docfun cadr function (x) " |
| 657 |
Equivalent to (CAR (CDR X)).") |
| 658 |
|
| 659 |
(docvar call-arguments-limit constant " |
| 660 |
The upper bound of the number of arguments to a function. Ignore this value |
| 661 |
since there is no such logical upper bound in ECL.") |
| 662 |
|
| 663 |
(docfun car function (x) " |
| 664 |
Returns the car of X if X is a cons. Returns NIL if X is NIL.") |
| 665 |
|
| 666 |
(docfun case macro (keyform &rest alternatives) " |
| 667 |
Syntax: (case keyform {({key | ({key}*)} {form}*)}*) |
| 668 |
|
| 669 |
Evaluates KEYFORM and searches a KEY that is EQL to the value of KEYFORM. If |
| 670 |
found, then evaluates FORMs in order that follow the KEY (or the key list that |
| 671 |
contains the KEY) and returns all values of the last FORM. Returns NIL if no |
| 672 |
such key is found. The symbols T and OTHERWISE may be used at the place of a |
| 673 |
key list to specify the default case.") |
| 674 |
|
| 675 |
(docfun catch special (tag-form &body forms) " |
| 676 |
Syntax: (catch tag-form {form}*) |
| 677 |
|
| 678 |
Sets up a catcher whose catch tag is the value of TAG-FORM. Then evaluates |
| 679 |
FORMs in order and returns all values of the last FORM. During the evaluation |
| 680 |
of FORMs, if a THROW form is evaluated that specifies a catch tag EQ to the |
| 681 |
value of the TAG-FORM, then the execution of the CATCH form terminates |
| 682 |
immediately and the values specified by the THROW form are returned as the |
| 683 |
value of the CATCH form.") |
| 684 |
|
| 685 |
(docfun cdaaar function (x) " |
| 686 |
Equivalent to (CDR (CAR (CAR (CAR X)))).") |
| 687 |
|
| 688 |
(docfun cdaadr function (x) " |
| 689 |
Equivalent to (CDR (CAR (CAR (CDR X)))).") |
| 690 |
|
| 691 |
(docfun cdaar function (x) " |
| 692 |
Equivalent to (CDR (CAR (CAR X))).") |
| 693 |
|
| 694 |
(docfun cdadar function (x) " |
| 695 |
Equivalent to (CDR (CAR (CDR (CAR X)))).") |
| 696 |
|
| 697 |
(docfun cdaddr function (x) " |
| 698 |
Equivalent to (CDR (CAR (CDR (CDR X)))).") |
| 699 |
|
| 700 |
(docfun cdadr function (x) " |
| 701 |
Equivalent to (CDR (CAR (CDR X))).") |
| 702 |
|
| 703 |
(docfun cdar function (x) " |
| 704 |
Equivalent to (CDR (CAR X)).") |
| 705 |
|
| 706 |
(docfun cddaar function (x) " |
| 707 |
Equivalent to (CDR (CDR (CAR (CAR X)))).") |
| 708 |
|
| 709 |
(docfun cddadr function (x) " |
| 710 |
Equivalent to (CDR (CDR (CAR (CDR X)))).") |
| 711 |
|
| 712 |
(docfun cddar function (x) " |
| 713 |
Equivalent to (CDR (CDR (CAR X))).") |
| 714 |
|
| 715 |
(docfun cdddar function (x) " |
| 716 |
Equivalent to (CDR (CDR (CDR (CAR X)))).") |
| 717 |
|
| 718 |
(docfun cddddr function (x) " |
| 719 |
Equivalent to (CDR (CDR (CDR (CDR X)))).") |
| 720 |
|
| 721 |
(docfun cdddr function (x) " |
| 722 |
Equivalent to (CDR (CDR (CDR X))).") |
| 723 |
|
| 724 |
(docfun cddr function (x) " |
| 725 |
Equivalent to (CDR (CDR X)).") |
| 726 |
|
| 727 |
(docfun cdr function (x) " |
| 728 |
Returns the cdr of X if X is a cons. Returns NIL if X is NIL.") |
| 729 |
|
| 730 |
(docfun ceiling function (number &optional (divisor 1)) " |
| 731 |
Returns the smallest integer not less than NUMBER/DIVISOR. Returns the value |
| 732 |
of (- NUMBER (* first-value DIVISOR)) as the second value.") |
| 733 |
|
| 734 |
(docfun cerror function (continue-format-string error-format-string &rest args) " |
| 735 |
Signals a continuable error.") |
| 736 |
|
| 737 |
(docfun char function (string index) " |
| 738 |
Returns the INDEX-th character in STRING.") |
| 739 |
|
| 740 |
(docfun char-bit function (char name) " |
| 741 |
Returns T if the specified bit attribute of CHAR is 'on'; NIL otherwise. |
| 742 |
In ECL the bit-attributes handled are :control :meta :super and :hyper") |
| 743 |
|
| 744 |
(docfun char-bits function (char) " |
| 745 |
Returns the bit attributes of CHAR as an integer. In ECL it returns a value |
| 746 |
between 0 and 16, since ECL handle 4 bit attributes.") |
| 747 |
|
| 748 |
(docvar char-bits-limit constant " |
| 749 |
The upper bound of values returned by CHAR-BITS. 16 in ECL.") |
| 750 |
|
| 751 |
(docfun char-code function (char) " |
| 752 |
Returns the character code of CHAR as a fixnum.") |
| 753 |
|
| 754 |
(docvar char-code-limit constant " |
| 755 |
The upper bound of values returned by CHAR-CODE.") |
| 756 |
|
| 757 |
(docvar char-control-bit constant " |
| 758 |
The bit position indicating a control character. 1 in ECL.") |
| 759 |
|
| 760 |
(docfun char-downcase function (char) " |
| 761 |
Returns the lower-case character corresponding to CHAR, if CHAR is upper-case. |
| 762 |
Otherwise, returns CHAR.") |
| 763 |
|
| 764 |
(docfun char-equal function (char &rest more-chars) " |
| 765 |
Returns T if all CHARs are the same; NIL otherwise. Lower-case characters are |
| 766 |
regarded the same as the corresponding upper-case characters.") |
| 767 |
|
| 768 |
(docfun char-font function (char) " |
| 769 |
Returns the font attribute of CHAR. Returns always 0 in ECL, since ECL |
| 770 |
characters have no font attributes.") |
| 771 |
|
| 772 |
(docvar char-font-limit constant " |
| 773 |
The upper bound of values returned by CHAR-FONT. 1 in ECL.") |
| 774 |
|
| 775 |
(docfun char-greaterp function (char &rest more-chars) " |
| 776 |
Returns T if the character codes of CHARs are in decreasing order; NIL |
| 777 |
otherwise. For lower-case characters, codes of corresponding upper-case |
| 778 |
characters are used.") |
| 779 |
|
| 780 |
(docvar char-hyper-bit constant " |
| 781 |
The bit position indicating a hyper character. 8 in ECL.") |
| 782 |
|
| 783 |
(docfun char-int function (char) " |
| 784 |
Returns the font, bits, and code attributes as an integer. Equivalent to |
| 785 |
CHAR-CODE in ECL.") |
| 786 |
|
| 787 |
(docfun char-lessp function (char &rest more-chars) " |
| 788 |
Returns T if the character codes of CHARs are in increasing order; NIL |
| 789 |
otherwise. For lower-case characters, codes of corresponding upper-case |
| 790 |
characters are used.") |
| 791 |
|
| 792 |
(docvar char-meta-bit constant " |
| 793 |
The bit position indicating a meta character. 2 in ECL.") |
| 794 |
|
| 795 |
(docfun char-name function (char) " |
| 796 |
Returns the 'character name' of CHAR as a string; NIL if CHAR has no character |
| 797 |
name. Only #\\Backspace, #\\Tab, #\\Newline (or #\\Linefeed), #\\Page, |
| 798 |
#\\Return, and #\\Rubout have character names in ECL.") |
| 799 |
|
| 800 |
(docfun char-not-equal function (char &rest more-chars) " |
| 801 |
Returns T if no two of CHARs are the same; NIL otherwise. Lower-case |
| 802 |
characters are regarded the same as the corresponding upper-case characters.") |
| 803 |
|
| 804 |
(docfun char-not-greaterp function (char &rest more-chars) " |
| 805 |
Returns T if the character codes of CHARs are in non-decreasing order; NIL |
| 806 |
otherwise. For lower-case characters, codes of corresponding upper-case |
| 807 |
characters are used.") |
| 808 |
|
| 809 |
(docfun char-not-lessp function (char &rest more-chars) " |
| 810 |
Returns T if the character codes of CHARs are in non-increasing order; NIL |
| 811 |
otherwise. For lower-case characters, codes of corresponding upper-case |
| 812 |
characters are used.") |
| 813 |
|
| 814 |
(docvar char-super-bit constant " |
| 815 |
The bit position indicating a super character. 4 in ECL.") |
| 816 |
|
| 817 |
(docfun char-upcase function (char) " |
| 818 |
Returns the upper-case character of CHAR, if CHAR is lower-case. Otherwise, |
| 819 |
returns CHAR.") |
| 820 |
|
| 821 |
(docfun char/= function (char &rest more-chars) " |
| 822 |
Returns T if no two of CHARs are the same; NIL otherwise.") |
| 823 |
|
| 824 |
(docfun char< function (char &rest more-chars) " |
| 825 |
Returns T if the character codes of CHARs are in increasing order; NIL |
| 826 |
otherwise.") |
| 827 |
|
| 828 |
(docfun char<= function (char &rest more-chars) " |
| 829 |
Returns T if the character codes of CHARs are in non-decreasing order; NIL |
| 830 |
otherwise.") |
| 831 |
|
| 832 |
(docfun char= function (char &rest more-chars) " |
| 833 |
Returns T if all CHARs are the same; NIL otherwise.") |
| 834 |
|
| 835 |
(docfun char> function (char &rest more-chars) " |
| 836 |
Returns T if the character codes of CHARs are in decreasing order; NIL |
| 837 |
otherwise.") |
| 838 |
|
| 839 |
(docfun char>= function (char &rest more-chars) " |
| 840 |
Returns T if the character codes of CHARs are in non-increasing order; NIL |
| 841 |
otherwise.") |
| 842 |
|
| 843 |
(doctype character " |
| 844 |
A character represents a character that can be handled by the computer. |
| 845 |
Characters have font, bits, and code attributes. Font and bits attributes |
| 846 |
are always 0 in ECL. Most versions of ECL uses ASCII code: |
| 847 |
000 - 037 #\\^@ #\\^A #^B ... #\\Z #\\^[ #\\^\\ #\\^] #\\^^ #\\^_ |
| 848 |
except #\\Tab(011) #\\Newline(012) #\\Page(014) |
| 849 |
#\\Return(015) #\\Backspace(031) |
| 850 |
040 - 057 #\\Space #\\! #\\\" #\\# #\\$ #\\% #\\& #\\' #\\( #\\) #\\* |
| 851 |
#\\+ #\\, #\\- #\\. #\\/ |
| 852 |
060 - 071 #\\0 #\\1 #\\2 #\\3 #\\4 #\\5 #\\6 #\\7 #\\8 #\\9 |
| 853 |
072 - 100 #\\: #\\; #\\< #\\= #\\> #\\? #\\@ |
| 854 |
101 - 132 #\\A ... #\\Z |
| 855 |
133 - 140 #\\[ #\\\\ #\\] #\\^ #\\_ #\\` |
| 856 |
141 - 172 #\\a ... #\\z |
| 857 |
173 - 177 #\\{ #\\| #\\} #\\~~ #\\Rubout |
| 858 |
Some versions of ECL support additional characters to represent Japanese |
| 859 |
character set.") |
| 860 |
|
| 861 |
(docfun character function (x) " |
| 862 |
Coerces X into a character if possible. Signals an error if not possible.") |
| 863 |
|
| 864 |
(docfun characterp function (x) " |
| 865 |
Returns T if X is a character; NIL otherwise.") |
| 866 |
|
| 867 |
(docfun ext:getcwd function (&optional (update-lisp t)) " |
| 868 |
Returns the current working directory of the C library. When UPDATE-LISP is |
| 869 |
true, *DEFAULT-PATHNAME-DEFAULTS* is set to this value.") |
| 870 |
|
| 871 |
(docfun ext:chdir function (filespec &optional (update-lisp t)) " |
| 872 |
Changes the current working directory of the C library to the one specified by |
| 873 |
FILESPEC. FILESPEC may be a symbol, a string, or a pathname. UPDATE-LISP |
| 874 |
determines whether the value of *DEFAULT-PATHNAME-DEFAULTS* is also to be |
| 875 |
changed.") |
| 876 |
|
| 877 |
(docfun clear-input function (&optional (stream *standard-input*)) " |
| 878 |
Clears the input buffer of STREAM and returns NIL. Contents of the buffer are |
| 879 |
discarded.") |
| 880 |
|
| 881 |
(docfun clear-output function (&optional (stream *standard-output*)) " |
| 882 |
Clears the output buffer of STREAM and returns NIL. Contents of the buffer |
| 883 |
are discarded.") |
| 884 |
|
| 885 |
(docfun ffi:clines special (&body c-strings) " |
| 886 |
Syntax: (clines {string}*) |
| 887 |
The ECL compiler embeds STRINGs into the intermediate C language code. The |
| 888 |
interpreter ignores this form.") |
| 889 |
|
| 890 |
#|| eliminated. Beppe |
| 891 |
(docfun cdeclaration macro "(cdeclaration {string}*)" " |
| 892 |
ECL specific. |
| 893 |
The ECL compiler embeds STRINGs into the intermediate H language code. |
| 894 |
The interpreter ignores this form.") |
| 895 |
|
| 896 |
(docfun cinitialization macro "(cinitialization {string}*)" " |
| 897 |
ECL specific. |
| 898 |
The ECL compiler embeds STRINGs into the intermediate C language init_code |
| 899 |
function. This allows to perform initialization operations when the binary |
| 900 |
file is loaded. |
| 901 |
The interpreter ignores this form.") |
| 902 |
||# |
| 903 |
|
| 904 |
(docfun close function (stream &key (abort nil)) " |
| 905 |
Closes STREAM. Returns NIL if STREAM is closed successfully; non-NIL |
| 906 |
otherwise. A non-NIL value of ABORT indicates an abnormal termination but ECL |
| 907 |
ignores it.") |
| 908 |
|
| 909 |
(docfun clrhash function (hash-table) " |
| 910 |
Removes all entries of HASH-TABLE and returns HASH-TABLE.") |
| 911 |
|
| 912 |
(docfun code-char function (code &optional (bits 0) (font 0)) " |
| 913 |
Returns a character with the specified character code, if any. Returns NIL |
| 914 |
if no such character exists. BITS and FONT specify the bits and font |
| 915 |
attributes of the returned character but are both ignored in ECL.") |
| 916 |
|
| 917 |
(doctype common " |
| 918 |
COMMON is the type of all Common Lisp data objects.") |
| 919 |
|
| 920 |
(docfun commonp function (x) " |
| 921 |
Returns T if X is a Common Lisp object; NIL otherwise.") |
| 922 |
|
| 923 |
(doctype compiled-function " |
| 924 |
A compiled function is an object that is created by compiling a function. A |
| 925 |
compiled function is notated in either of the following formats: |
| 926 |
#<compiled-function s> |
| 927 |
#<compiled-closure nil> |
| 928 |
where S is actually the symbol that names the function.") |
| 929 |
|
| 930 |
(docfun si::compiled-function-file function (function) " |
| 931 |
Returns two values: a pathname and a position of the function definition.") |
| 932 |
|
| 933 |
(docfun si::compiled-function-name function (compiled-function) " |
| 934 |
ECL specific. |
| 935 |
Returns the function name associated with COMPILED-FUNCTION.") |
| 936 |
|
| 937 |
(docfun compiled-function-p function (x) " |
| 938 |
Returns T if X is a compiled function object; NIL otherwise.") |
| 939 |
|
| 940 |
(docfun compiler-let special (bindings &body forms) |
| 941 |
"Syntax: (compiler-let ({var | (var [value])}*) {form}*) |
| 942 |
|
| 943 |
When interpreted, this form works just like a LET form with all VARs declared |
| 944 |
special. When compiled, FORMs are processed with the VARs bound at compile |
| 945 |
time, but no bindings occur when the compiled code is executed.") |
| 946 |
|
| 947 |
(doctype complex " |
| 948 |
A complex number represents a complex number in mathematical sense, consisting |
| 949 |
of a real part and an imaginary part. A complex number is notated as |
| 950 |
#c( realpart imagpart ) or #C( realpart imagpart ) |
| 951 |
where REALPART and IMAGPART are non-complex numbers.") |
| 952 |
|
| 953 |
(docfun complex function (realpart &optional (imagpart 0)) " |
| 954 |
Returns a complex number with the given realpart and imagpart. Returns |
| 955 |
REALPART if it is a rational and IMAGPART is 0.") |
| 956 |
|
| 957 |
(docfun complexp function (x) " |
| 958 |
Returns T if X is a complex number; NIL otherwise.") |
| 959 |
|
| 960 |
(docfun conjugate function (number) " |
| 961 |
Returns the complex conjugate of NUMBER. Returns NUMBER if it is not a |
| 962 |
complex number.") |
| 963 |
|
| 964 |
(doctype cons " |
| 965 |
A cons is a compound object consisting of two components car and cdr.") |
| 966 |
|
| 967 |
(docfun cons function (x y) " |
| 968 |
Returns a new cons whose car and cdr are X and Y respectively.") |
| 969 |
|
| 970 |
(docfun consp function (x) " |
| 971 |
Returns T if X is a cons; NIL otherwise.") |
| 972 |
|
| 973 |
(docfun constantp function (x) " |
| 974 |
Returns T if ECL is sure that X, when given as a form, always evaluates to a |
| 975 |
same value. Returns NIL otherwise. Typically used to check whether a symbol |
| 976 |
names a constant variable.") |
| 977 |
|
| 978 |
(docfun copy-alist function (alist) " |
| 979 |
Returns a new list consisting of copies of all pairs in ALIST.") |
| 980 |
|
| 981 |
(docfun copy-list function (list) " |
| 982 |
Returns a new list consisting of all elements in LIST.") |
| 983 |
|
| 984 |
(docfun copy-readtable function (&optional (readtable *readtable*) (to-readtable nil)) " |
| 985 |
Returns a new copy of READTABLE. If TO-READTABLE is non-NIL, then copies the |
| 986 |
contents of READTABLE into TO-READTABLE and returns TO-READTABLE.") |
| 987 |
|
| 988 |
(docfun copy-seq function (sequence) " |
| 989 |
Returns a new copy of SEQUENCE.") |
| 990 |
|
| 991 |
(docfun copy-symbol function (symbol &optional (flag nil)) " |
| 992 |
Returns a new uninterned symbol with the same print name as SYMBOL. If FLAG |
| 993 |
is NIL, the symbol property of the new symbol is empty. Otherwise, the new |
| 994 |
symbol gets a copy of the property list of SYMBOL.") |
| 995 |
|
| 996 |
(docfun copy-tree function (tree) " |
| 997 |
Returns a copy of TREE. Defined as: |
| 998 |
(defun copy-tree (tree) |
| 999 |
(if (atom tree) |
| 1000 |
tree |
| 1001 |
(cons (copy-tree (car tree)) (copy-tree (cdr tree)))))") |
| 1002 |
|
| 1003 |
(docfun cos function (radians) " |
| 1004 |
Returns the cosine of RADIANS.") |
| 1005 |
|
| 1006 |
(docfun cosh function (number) " |
| 1007 |
Returns the hyperbolic cosine of NUMBER.") |
| 1008 |
|
| 1009 |
(docfun count function (item sequence |
| 1010 |
&key (key '#'identity) (test '#'eql) test-not |
| 1011 |
(start 0) (end (length sequence)) (from-end nil)) " |
| 1012 |
Returns the number of elements in SEQUENCE satisfying TEST with ITEM as the |
| 1013 |
first argument.") |
| 1014 |
|
| 1015 |
(docfun count-if function (test sequence |
| 1016 |
&key (key '#'identity) |
| 1017 |
(start 0) (end (length sequence)) (from-end nil)) " |
| 1018 |
Returns the number of elements in SEQUENCE satisfying TEST.") |
| 1019 |
|
| 1020 |
(docfun count-if-not function (test sequence |
| 1021 |
(start 0) (end (length sequence)) (from-end nil)) " |
| 1022 |
Returns the number of elements in SEQUENCE not satisfying TEST.") |
| 1023 |
|
| 1024 |
(docfun declare special (&rest declaration-specifiers) |
| 1025 |
"Syntax: (declare {decl-spec}*) |
| 1026 |
|
| 1027 |
Gives declarations. Possible DECL-SPECs are: |
| 1028 |
(SPECIAL {var}*) |
| 1029 |
(TYPE type {var}*) |
| 1030 |
(type {var}*) where 'type' is one of the following symbols |
| 1031 |
array fixnum package simple-string |
| 1032 |
atom float pathname simple-vector |
| 1033 |
bignum function random-state single-float |
| 1034 |
bit hash-table ratio standard-char |
| 1035 |
bit-vector integer rational stream |
| 1036 |
character keyword readtable string |
| 1037 |
common list sequence string-char |
| 1038 |
compiled-function long-float short-float symbol |
| 1039 |
complex nil signed-byte t |
| 1040 |
cons null simple-array unsigned-byte |
| 1041 |
double-float number simple-bit-vector vector |
| 1042 |
(OBJECT {var}*) |
| 1043 |
(FTYPE type {function-name}*) |
| 1044 |
(FUNCTION function-name ({arg-type}*) {return-type}*) |
| 1045 |
(INLINE {function-name}*) |
| 1046 |
(NOTINLINE {function-name}*) |
| 1047 |
(IGNORE {var}*) |
| 1048 |
(OPTIMIZE {({SPEED | SPACE | SAFETY | COMPILATION-SPEED} {0 | 1 | 2 | 3})}*) |
| 1049 |
(DECLARATION {non-standard-decl-name}*) |
| 1050 |
(:READ-ONLY {variable-name}*).") |
| 1051 |
|
| 1052 |
(docfun decode-float function (float) " |
| 1053 |
Returns the significand F, the exponent E, and the sign S of FLOAT. These |
| 1054 |
values satisfy |
| 1055 |
1/B <= F < 1 |
| 1056 |
and E |
| 1057 |
FLOAT = S * F * B |
| 1058 |
where B is the radix used to represent FLOAT. S and F are floats of the same |
| 1059 |
float format as FLOAT, and E is an integer.") |
| 1060 |
|
| 1061 |
(docfun defun macro (name lambda-list &body) |
| 1062 |
"Syntax: (defun name lambda-list {decl | doc}* {form}*) |
| 1063 |
Defines a global function named by NAME. |
| 1064 |
The complete syntax of a lambda-list is: |
| 1065 |
({var}* |
| 1066 |
[&optional {var | (var [init [svar]])}*] |
| 1067 |
[&rest var] |
| 1068 |
[&key {var | ({var | (keyword var)} [init [svar]])}* |
| 1069 |
[&allow-other-keys]] |
| 1070 |
[&aux {var | (var [init])}*]) |
| 1071 |
The doc-string DOC, if supplied, is saved as a FUNCTION doc and can be |
| 1072 |
retrieved by (documentation 'NAME 'function).") |
| 1073 |
|
| 1074 |
(docfun defmacro macro (name lambda-list &body body) |
| 1075 |
"Syntax: (defmacro name defmacro-lambda-list {decl | doc}* {form}*) |
| 1076 |
Defines a global macro named by NAME. The complete syntax of DEFMACRO-LAMBDA- |
| 1077 |
LIST is: |
| 1078 |
( [&whole var] [&environment var] . pvar ) |
| 1079 |
where PVAR may be a symbol, |
| 1080 |
( {pvar}* [&optional {var | (pvar [init [pvar]])}*] . var ) |
| 1081 |
or |
| 1082 |
( {pvar}* |
| 1083 |
[&optional {var | (pvar [init [pvar]])}*] |
| 1084 |
[{&rest | &body} pvar] |
| 1085 |
[&key {var | ({var | (keyword pvar)} [init [pvar]])}* |
| 1086 |
[&allow-other-keys]] |
| 1087 |
[&aux {var | (pvar [init])}*] ) |
| 1088 |
The doc-string DOC, if supplied, is saved as a FUNCTION doc and can be |
| 1089 |
retrieved by (documentation 'NAME 'function). See LIST for the backquote |
| 1090 |
macro useful for defining macros.") |
| 1091 |
|
| 1092 |
(docfun delete function (item sequence |
| 1093 |
&key (key '#'identity) (test '#'eql) test-not |
| 1094 |
(start 0) (end (length sequence)) |
| 1095 |
(count most-positive-fixnum) (from-end nil)) " |
| 1096 |
Destructive REMOVE. SEQUENCE may be destroyed.") |
| 1097 |
|
| 1098 |
(docfun delete-file function (filespec) " |
| 1099 |
Deletes the specified file. FILESPEC may be a symbol, a string, a pathname, |
| 1100 |
or a file stream.") |
| 1101 |
|
| 1102 |
(docfun delete-if function (test sequence |
| 1103 |
&key (key '#'identity) (start 0) (end (length sequence)) |
| 1104 |
(count most-positive-fixnum) (from-end nil)) " |
| 1105 |
Destructive REMOVE-IF. SEQUENCE may be destroyed") |
| 1106 |
|
| 1107 |
(docfun delete-if-not function (test sequence |
| 1108 |
&key (key '#'identity) (start 0) (end (length sequence)) |
| 1109 |
(count most-positive-fixnum) (from-end nil)) " |
| 1110 |
Destructive REMOVE-IF-NOT. SEQUENCE may be destroyed") |
| 1111 |
|
| 1112 |
(docfun denominator function (rational) " |
| 1113 |
Returns the denominator of RATIONAL as a positive integer, if RATIONAL is a |
| 1114 |
ratio. Returns RATIONAL if it is an integer.") |
| 1115 |
|
| 1116 |
(docfun digit-char function (digit &optional (n 10) (font 0)) " |
| 1117 |
Returns a character that represents the DIGIT in radix N. Returns NIL if no |
| 1118 |
such character exists.") |
| 1119 |
|
| 1120 |
(docfun digit-char-p function (char &optional (n 10)) " |
| 1121 |
If CHAR represents a digit in radix N, then returns an integer represented by |
| 1122 |
that digit. Otherwise, returns NIL.") |
| 1123 |
|
| 1124 |
(docfun directory function (filespec &key (resolve-symlinks T)) " |
| 1125 |
Returns a list of full pathnames of all those files that match |
| 1126 |
FILESPEC. FILESPEC may be a symbol, a string, a pathname, or a file |
| 1127 |
stream. If RESOLVE-SYMBOLS set to NIL then it doesn't follow |
| 1128 |
symlinks.") |
| 1129 |
|
| 1130 |
(docfun directory-namestring function (filespec) " |
| 1131 |
Returns as a string the directory part of the pathname specified by FILESPEC. |
| 1132 |
FILESPEC may be a symbol, a string, a pathname, or a file stream.") |
| 1133 |
|
| 1134 |
(docfun si::displaced-array-p function (array) " |
| 1135 |
ECL specific. |
| 1136 |
Returns T if the ARRAY is displaced to another array; NIL otherwise.") |
| 1137 |
|
| 1138 |
(docfun do macro (bindings (test &optional result) &body forms) |
| 1139 |
"Syntax: (do ({(var [init [step]])}*) (test {result}*) |
| 1140 |
{decl}* {tag | statement}*) |
| 1141 |
|
| 1142 |
Establishes a NIL block, binds each VAR to the value of the corresponding INIT |
| 1143 |
(which defaults to NIL), and then executes STATEMENTs repeatedly until TEST is |
| 1144 |
satisfied. After each iteration, evaluates STEP and assigns the value to the |
| 1145 |
corresponding VAR. No assignment occurs for those VARs to which STEP is not |
| 1146 |
given. When TEST is satisfied, evaluates RESULTs as a PROGN and returns all |
| 1147 |
values of the last RESULT. Performs variable bindings and assignments in |
| 1148 |
parallel, just as LET and PSETQ do.") |
| 1149 |
|
| 1150 |
(docfun do* macro (bindings (test &optional result) &body forms) |
| 1151 |
"Syntax: (do* ({(var [init [step]])}*) (test {result}*) |
| 1152 |
{decl}* {tag | statement}*) |
| 1153 |
|
| 1154 |
Similar to DO, but performs variable bindings and assignments in serial, just |
| 1155 |
as LET* and SETQ do.") |
| 1156 |
|
| 1157 |
(docfun dolist macro ((var form &optional result) &body forms) |
| 1158 |
"Establishes a NIL block and executes STATEMENTs once for each member of the |
| 1159 |
list value of FORM, with VAR bound to the member. Then evaluates RESULT |
| 1160 |
(which defaults to NIL) and returns all values.") |
| 1161 |
|
| 1162 |
(doctype double-float " |
| 1163 |
A double-float is a double-precision floating point number. |
| 1164 |
DOUBLE-FLOAT as a type specifier is equivalent to LONG-FLOAT in ECL.") |
| 1165 |
|
| 1166 |
(docfun dotimes macro ((var form &optional result) &body forms) |
| 1167 |
"Establishes a NIL block and executes STATEMENTs once for each integer between |
| 1168 |
0 (inclusive) and the value of FORM (exclusive), with VAR bound to the |
| 1169 |
integer. Then evaluates RESULT (which defaults to NIL) and returns all |
| 1170 |
values.") |
| 1171 |
|
| 1172 |
(docfun eighth function (x) " |
| 1173 |
Equivalent to (CADDDR (CDDDDR X)).") |
| 1174 |
|
| 1175 |
(docfun elt function (sequence n) " |
| 1176 |
Returns the N-th element of SEQUENCE.") |
| 1177 |
|
| 1178 |
(docfun endp function (x) " |
| 1179 |
Returns T if X is NIL. Returns NIL if X is a cons. Otherwise, signals an |
| 1180 |
error.") |
| 1181 |
|
| 1182 |
(docfun enough-namestring function (filespec &optional (defaults *default-pathname-defaults*)) " |
| 1183 |
Returns a string which uniquely identifies the file specified by FILESPEC, |
| 1184 |
with respect to DEFAULTS. FILESPEC and DEFAULTS may be a symbol, a string, a |
| 1185 |
pathname, or a file stream.") |
| 1186 |
|
| 1187 |
(docfun eq function (x y) " |
| 1188 |
Returns T if the args are identical; NIL otherwise.") |
| 1189 |
|
| 1190 |
(docfun eql function (x y) " |
| 1191 |
Returns T if the args satisfy one of the following conditions. |
| 1192 |
1. identical |
| 1193 |
2. are numbers of the same type with the same value |
| 1194 |
3. are characters that represent the same character |
| 1195 |
Returns NIL otherwise.") |
| 1196 |
|
| 1197 |
(docfun equal function (x y) " |
| 1198 |
Returns T if the args satisfy one of the following conditions. |
| 1199 |
1. EQL |
| 1200 |
2. are conses with EQUAL cars and EQUAL cdrs |
| 1201 |
3. are strings of the same length and element-wise EQL |
| 1202 |
4. are bit-vectors of the same length and element-wise EQL |
| 1203 |
5. are pathnames with EQUAL slots |
| 1204 |
Returns NIL otherwise.") |
| 1205 |
|
| 1206 |
(docfun equalp function (x y) " |
| 1207 |
Returns T if the args satisfy one of the following conditions. |
| 1208 |
1. EQUAL |
| 1209 |
2. are characters that satisfy CHARACTER-EQUAL |
| 1210 |
3. are numbers that satisfy = |
| 1211 |
4. are conses with EQUALP cars and EQUALP cdrs |
| 1212 |
5. are arrays of the same dimensions and element-wise EQUALP |
| 1213 |
Returns NIL otherwise.") |
| 1214 |
|
| 1215 |
(docfun error function (format-string &rest args) " |
| 1216 |
Signals an error. The args are FORMATed to *error-output*.") |
| 1217 |
|
| 1218 |
(docfun eval function (form) " |
| 1219 |
Evaluates FORM and returns all values.") |
| 1220 |
|
| 1221 |
(docfun eval-when special ((&rest situation) &body forms) " |
| 1222 |
Specifies when to evaluate FORMs. Each SITUATION must be one of the following |
| 1223 |
symbols. |
| 1224 |
:COMPILE-TOPLEVEL (compile-time) |
| 1225 |
:LOAD-TOPLEVEL (load-time of the fasl file) |
| 1226 |
:EXECUTE (load-time of the source file)") |
| 1227 |
|
| 1228 |
(docfun si::eval-with-env function |
| 1229 |
(form &optional env stepping compiler-env-p (execute t)) " |
| 1230 |
Evaluates FORM in provided env. ENV is either lexical environment or compiler |
| 1231 |
environment (depends on flag COMPILER-ENV-P). |
| 1232 |
|
| 1233 |
STEPPING = T augments all calls with OP_STEPCALL |
| 1234 |
EXECUTE = NIL compiles form to bytecode without executing it.") |
| 1235 |
|
| 1236 |
(docfun evalhook function (form fun1 fun2 &optional (env nil)) " |
| 1237 |
Evaluates FORM with *EVALHOOK* bound to FUN1 and *APPLYHOOK* bound to FUN2, |
| 1238 |
and returns all the values.") |
| 1239 |
|
| 1240 |
(docfun evenp function (integer) " |
| 1241 |
Returns T if INTEGER is an even number; NIL otherwise.") |
| 1242 |
|
| 1243 |
(docfun exp function (number) " |
| 1244 |
Returns E raised to the power NUMBER, where E is the base of natural |
| 1245 |
logarithms.") |
| 1246 |
|
| 1247 |
(docfun export function (symbol &optional (package *package*)) " |
| 1248 |
Register SYMBOL as an external symbol of PACKAGE. SYMBOL may be a list of |
| 1249 |
symbols.") |
| 1250 |
|
| 1251 |
(docfun expt function (number1 number2) " |
| 1252 |
Returns NUMBER1 raised to the power NUMBER2.") |
| 1253 |
|
| 1254 |
(docfun fboundp function (symbol) " |
| 1255 |
Returns T if SYMBOL names a special form, a global macro, or a global |
| 1256 |
function. Returns NIL otherwise.") |
| 1257 |
|
| 1258 |
(docfun fifth function (x) " |
| 1259 |
Equivalent to (CAR (CDDDDR X)).") |
| 1260 |
|
| 1261 |
(docfun file-author function (filespec) " |
| 1262 |
Returns the author of the specified file, as a string. Returns NIL if the |
| 1263 |
author is unknown. FILESPEC may be a symbol, a string, a pathname, or a file |
| 1264 |
stream.") |
| 1265 |
|
| 1266 |
(docfun file-length function (file-stream) " |
| 1267 |
Returns the length of the specified FILE-STREAM. Returns NIL if the length is |
| 1268 |
unknown.") |
| 1269 |
|
| 1270 |
(docfun file-namestring function (filespec) " |
| 1271 |
Returns as a string the name, type, and version parts of the specified |
| 1272 |
pathname. FILESPEC may be a symbol, a string, a pathname, or a file stream.") |
| 1273 |
|
| 1274 |
(docfun file-position function (file-stream &optional file-position) " |
| 1275 |
With one arg, returns the current position of FILE-STREAM's file pointer as a |
| 1276 |
non-negative integer. Returns NIL if the position is unknown. With two args, |
| 1277 |
resets the file pointer and returns T. Returns NIL if the file pointer cannot |
| 1278 |
be reset. FILE-POSITION may be a non-negative integer, :START, or :END.") |
| 1279 |
|
| 1280 |
(docfun file-write-date function (filespec) " |
| 1281 |
Returns an integer that represents the last write day-and-time of the |
| 1282 |
specified file (See GET-DECODED-TIME). Returns NIL if the last write day- |
| 1283 |
and-time is unknown. FILESPEC may be a symbol, a string, a pathname, or a |
| 1284 |
file stream.") |
| 1285 |
|
| 1286 |
(docfun fill function (sequence item &key (start 0) (end (length sequence))) " |
| 1287 |
Replaces the specified elements of SEQUENCE with ITEM.") |
| 1288 |
|
| 1289 |
(docfun fill-pointer function (vector) " |
| 1290 |
Returns the fill-pointer of VECTOR as an integer. VECTOR must have a fill- |
| 1291 |
pointer.") |
| 1292 |
|
| 1293 |
(docfun find function (item sequence |
| 1294 |
&key (key '#'identity) (test '#'eql) test-not |
| 1295 |
(start 0) (end (length sequence)) (from-end nil)) " |
| 1296 |
Returns the first element in SEQUENCE satisfying TEST with ITEM. Returns NIL |
| 1297 |
if no such element exists.") |
| 1298 |
|
| 1299 |
(docfun find-if function (test sequence |
| 1300 |
&key (key '#'identity) (start 0) (end (length sequence)) (from-end nil)) " |
| 1301 |
Returns the index of the first element in SEQUENCE that satisfies TEST. |
| 1302 |
Returns NIL if no such element exists.") |
| 1303 |
|
| 1304 |
(docfun find-if-not function (test sequence |
| 1305 |
&key (key '#'identity) (start 0) (end (length sequence)) (from-end nil)) " |
| 1306 |
Returns the index of the first element in SEQUENCE that does not satisfy TEST. |
| 1307 |
Returns NIL if no such element exists.") |
| 1308 |
|
| 1309 |
(docfun find-package function (name) " |
| 1310 |
Returns the package whose package name or nickname is NAME. Returns NIL if no |
| 1311 |
such package exists. NAME may be a string or a symbol.") |
| 1312 |
|
| 1313 |
(docfun find-symbol function (string &optional (package *package*)) " |
| 1314 |
Searches PACKAGE for a symbol whose print name is NAME. If such a symbol is |
| 1315 |
found, then returns the symbol as the first value and returns one of the |
| 1316 |
following symbols as the second value. |
| 1317 |
:INTERNAL (internal symbol in PACKAGE) |
| 1318 |
:EXTERNAL (external symbol in PACKAGE) |
| 1319 |
:INHERITED (external symbol of a package that PACKAGE is using) |
| 1320 |
If no such symbol is found, returns NIL as the first and second values.") |
| 1321 |
|
| 1322 |
(docfun finish-output function (&optional (stream *standard-output*)) " |
| 1323 |
Sends the contents of the output buffer for STREAM to the destination. Waits |
| 1324 |
until the buffer becomes empty and then returns NIL.") |
| 1325 |
|
| 1326 |
(docfun first function (x) " |
| 1327 |
Equivalent to CAR.") |
| 1328 |
|
| 1329 |
(docfun si::fixnump function (x) " |
| 1330 |
ECL specific. |
| 1331 |
Returns T if the X is a fixnum; NIL otherwise.") |
| 1332 |
|
| 1333 |
(docfun flet special ((&rest functions) &body forms) " |
| 1334 |
Introduces local functions and evaluates BODY as a PROGN. BODY is the scope |
| 1335 |
of each local function but the local function definitions are not. Thus each |
| 1336 |
local function can reference externally defined functions of the same name as |
| 1337 |
local functions. Doc-strings for local functions are simply ignored.") |
| 1338 |
|
| 1339 |
(doctype float " |
| 1340 |
A float (floating-point number) represents a real number or its approximation. |
| 1341 |
ECL supports two formats for floats. One format is called SHORT-FLOAT and the |
| 1342 |
other format is called SINGLE-FLOAT, DOUBLE-FLOAT, or LONG-FLOAT. Precisions |
| 1343 |
and exponent sizes of floats depends on the version of ECL. See the ECL |
| 1344 |
Report at your hand for details. |
| 1345 |
The following syntax is used to notate a float. |
| 1346 |
[+ | -] {digit}* . {digit}+ [exp] |
| 1347 |
[+ | -] {digit}+ [. {digit}*}] exp |
| 1348 |
where DIGIT is a decimal digit (0,..,9) and EXP is |
| 1349 |
marker [+ | -] {digit}+ |
| 1350 |
with one of the following marker. |
| 1351 |
e or E the default float format |
| 1352 |
s or S short-float |
| 1353 |
f or F single-float |
| 1354 |
d or D double-float |
| 1355 |
l or L long-float |
| 1356 |
The default float format is single-float normally, but may be any other float |
| 1357 |
format. See *READ-DEFAULT-FLOAT-FORMAT*.") |
| 1358 |
|
| 1359 |
(docfun float function (number &optional float) " |
| 1360 |
With one arg, converts NUMBER to a single-float. With two args, converts |
| 1361 |
NUMBER to a float of the same float format as FLOAT.") |
| 1362 |
|
| 1363 |
(docfun float-digits function (float) " |
| 1364 |
Returns the number of radix-B digits used to represent the significand of |
| 1365 |
FLOAT, where B is the base number used in the representation of FLOAT.") |
| 1366 |
|
| 1367 |
(docfun float-precision function (float) " |
| 1368 |
Returns the number of effective radix-B digits in the representation of the |
| 1369 |
significand of FLOAT, where B is the base number used in the representation |
| 1370 |
of FLOAT.") |
| 1371 |
|
| 1372 |
(docfun float-radix function (float) " |
| 1373 |
Returns the base number used in the representation of FLOAT.") |
| 1374 |
|
| 1375 |
(docfun float-sign function (float1 &optional (float2 (float 1 float1))) " |
| 1376 |
Returns a float with the same sign as FLOAT1 and with the same absolute value |
| 1377 |
as FLOAT2.") |
| 1378 |
|
| 1379 |
(docfun floatp function (x) " |
| 1380 |
Returns T if X is a float; NIL otherwise.") |
| 1381 |
|
| 1382 |
(docfun floor function (number &optional (divisor 1)) " |
| 1383 |
Returns the largest integer not larger than the NUMBER divided by DIVISOR. |
| 1384 |
Returns the value of (- NUMBER (* first-value DIVISOR)) as the second value.") |
| 1385 |
|
| 1386 |
(docfun fmakunbound function (symbol) " |
| 1387 |
Removes the global function definition associated with SYMBOL. Returns SYMBOL.") |
| 1388 |
|
| 1389 |
(docfun force-output function (&optional (stream *standard-output*)) " |
| 1390 |
Sends the contents of the output buffer for STREAM to the destination. |
| 1391 |
Returns NIL without waiting until the buffer becomes empty.") |
| 1392 |
|
| 1393 |
(docfun format function (destination format-string &rest args) " |
| 1394 |
Outputs ARGs to DESTINATION in the format specified by FORMAT-STRING. FORMAT- |
| 1395 |
STRING is a string consisting of characters to output and format directives |
| 1396 |
which begin with '~~'. Outputs to DESTINATION if it is a stream and to the |
| 1397 |
standard output if DESTINATION is T. If DESTINATION is NIL, does not output |
| 1398 |
actually but returns the output as a string. Here are some format directives: |
| 1399 |
~~A PRINCs one arg |
| 1400 |
~~S PRIN1s one arg |
| 1401 |
~~D Prints one integer in decimal |
| 1402 |
~~B Prints one integer in binary |
| 1403 |
~~O Prints one integer in octal |
| 1404 |
~~X Prints one integer in hexa |
| 1405 |
~~% Does TERPRI |
| 1406 |
~~& Does FRESH-LINE |
| 1407 |
~~| Outputs #\\Page |
| 1408 |
~~~~ Outputs '~~'") |
| 1409 |
|
| 1410 |
(docfun fourth function (x) " |
| 1411 |
Equivalent to CADDDR.") |
| 1412 |
|
| 1413 |
(docfun fresh-line function (&optional (stream *standard-output*)) " |
| 1414 |
Outputs a newline character only if the current position of STREAM is not at |
| 1415 |
the beginning of a line. Returns T if it outputs a newline; NIL otherwise.") |
| 1416 |
|
| 1417 |
(docfun si::frs-bds function (n) " |
| 1418 |
ECL specific. |
| 1419 |
Returns the bind stack index of the N-th entity in the frame stack.") |
| 1420 |
|
| 1421 |
(docfun si::frs-ihs function (n) " |
| 1422 |
ECL specific. |
| 1423 |
Returns the invocation history stack index of the N-th entity in the frame |
| 1424 |
stack.") |
| 1425 |
|
| 1426 |
(docfun funcall function (function &rest args) " |
| 1427 |
Calls FUNCTION with the ARGs as the arguments and returns all values that the |
| 1428 |
call returns.") |
| 1429 |
|
| 1430 |
(doctype function " |
| 1431 |
A function object specifies a function to be invoked by function-calling |
| 1432 |
functions such as FUNCALL or APPLY. A function is either: |
| 1433 |
1. a compiled function |
| 1434 |
2. a list of one of the following form |
| 1435 |
(lambda lambda-list . body) |
| 1436 |
(lambda-block block-name lambda-list . body) |
| 1437 |
(lambda-closure env1 env2 env3 lambda-list . body) |
| 1438 |
(lambda-block-closure env1 env2 env3 block-name lambda-list |
| 1439 |
. body) |
| 1440 |
where ENV1, ENV2, and ENV3 respectively represent the variable |
| 1441 |
environment, the function/macro environment, and the block/tagbody |
| 1442 |
environment at the time of the function creation. |
| 1443 |
3. a symbol that names a global function.") |
| 1444 |
|
| 1445 |
(docfun function special (function-name) " |
| 1446 |
If X is a lambda expression, (function x) creates and returns a lexical closure |
| 1447 |
of X in the current lexical environment. If X is a symbol that names a function, |
| 1448 |
returns that function definition.") |
| 1449 |
|
| 1450 |
(docfun functionp function (x) " |
| 1451 |
Returns T if X is an object that can be used to specify a function to be |
| 1452 |
invoked by function-calling functions such as FUNCALL or APPLY. Returns NIL |
| 1453 |
otherwise.") |
| 1454 |
|
| 1455 |
(docfun gc function (x) " |
| 1456 |
ECL specific. |
| 1457 |
Starts garbage collection with the specified collection level. If X is NIL, |
| 1458 |
collects only cells. If X is T, collects everything.") |
| 1459 |
|
| 1460 |
(docfun gcd function (&rest integers) " |
| 1461 |
Returns the greatest common divisor of the args.") |
| 1462 |
|
| 1463 |
(docfun gensym function (&optional (x nil)) " |
| 1464 |
Creates and returns a new uninterned symbol whose print name begins with some |
| 1465 |
prefix (initially \"G\"), followed by a generation number. The generation |
| 1466 |
number is incremented by one at each call to GENSYM. If X is an integer, it |
| 1467 |
becomes the new generation number. If X is a string, it becomes the new |
| 1468 |
prefix.") |
| 1469 |
|
| 1470 |
(docfun gentemp function (&optional (string \"T\") (package *package*)) " |
| 1471 |
Creates a new symbol interned in PACKAGE with PREFIX and returns the symbol. |
| 1472 |
The symbol is given a print name beginning with PREFIX followed by some |
| 1473 |
generation number.") |
| 1474 |
|
| 1475 |
(docfun get function (symbol property &optional (default nil)) " |
| 1476 |
Searches the symbol property of SYMBOL for a property that is EQ to PROPERTY. |
| 1477 |
If found, returns the value of the property. Otherwise, returns DEFAULT.") |
| 1478 |
|
| 1479 |
(docfun get-dispatch-macro-character function (char subchar &optional (readtable *readtable*)) " |
| 1480 |
Returns the read macro for SUBCHAR associated with the dispatch macro |
| 1481 |
character CHAR in READTABLE.") |
| 1482 |
|
| 1483 |
(docfun get-internal-real-time function () " |
| 1484 |
Returns the time (in 1/100 seconds) since the invocation of ECL.") |
| 1485 |
|
| 1486 |
(docfun get-internal-run-time function () " |
| 1487 |
Returns the CPU time (in 1/100 seconds) since the invocation of ECL.") |
| 1488 |
|
| 1489 |
(docfun get-macro-character function (char &optional (readtable *readtable*)) " |
| 1490 |
Returns the read macro associated with the macro character CHAR in READTABLE. |
| 1491 |
Returns the non-terminating-p flag (see READTABLE) as the second value. |
| 1492 |
Returns NIL if CHAR is not a macro character.") |
| 1493 |
|
| 1494 |
(docfun get-output-stream-string function (string-output-stream) " |
| 1495 |
Returns as a string all outputs to STRING-OUTPUT-STREAM since the last call of |
| 1496 |
GET-OUTPUT-STREAM-STRING for the same stream.") |
| 1497 |
|
| 1498 |
(docfun get-properties function (plist list) " |
| 1499 |
Searches PLIST for a property that is EQ to one of the members of LIST. |
| 1500 |
Returns three values. If such a property if found, returns the property, the |
| 1501 |
value of the property, and the rest of LIST. If not, returns three NILs.") |
| 1502 |
|
| 1503 |
(docfun get-universal-time function () " |
| 1504 |
Returns the current day-and-time as an integer. See DECODE-UNIVERSAL-TIME.") |
| 1505 |
|
| 1506 |
(docfun ext:getenv function (string) " |
| 1507 |
ECL/UNIX specific. |
| 1508 |
Returns the environment with the name STRING as a string. Returns NIL, if the |
| 1509 |
specified environment is not found.") |
| 1510 |
|
| 1511 |
(docfun getf function (plist property &optional (default nil)) " |
| 1512 |
Searches PLIST for a property that is EQ to PROPERTY. If one is found, |
| 1513 |
returns the value of the property. If not, returns DEFAULT. |
| 1514 |
The SETF form |
| 1515 |
(setf (getf place property-form) value-form) |
| 1516 |
replaces the property value of the plist stored in PLACE, or adds a new |
| 1517 |
property if the plist does not have the property yet.") |
| 1518 |
|
| 1519 |
(docfun gethash function (key hash-table &optional (default nil)) " |
| 1520 |
Searches HASH-TABLE for the entry of KEY. If found, returns the value of the |
| 1521 |
entry and T, as two values. If not, returns DEFAULT and NIL.") |
| 1522 |
|
| 1523 |
#+clos |
| 1524 |
(docfun si::gfun-instance function (gfun) " |
| 1525 |
ECL/CLOS specific. |
| 1526 |
Returns the generic function instance associated with the GFUN |
| 1527 |
generic function object.") |
| 1528 |
|
| 1529 |
#+clos |
| 1530 |
(docfun si::gfun-instance-set function (gfun instance) " |
| 1531 |
ECL/CLOS specific. |
| 1532 |
Sets to INSTANCE the generic function instance associated with the |
| 1533 |
FUN generic function object.") |
| 1534 |
|
| 1535 |
#+clos |
| 1536 |
(docfun si::gfun-name function (gfun) " |
| 1537 |
ECL/CLOS specific. |
| 1538 |
Returns the name of the GFUN generic function object.") |
| 1539 |
|
| 1540 |
#+clos |
| 1541 |
(docfun si::gfun-name-set function (gfun name) " |
| 1542 |
ECL/CLOS specific. |
| 1543 |
Sets to NAME the name of the GFUN generic function object.") |
| 1544 |
|
| 1545 |
#+clos |
| 1546 |
(docfun si::gfun-method-ht function (gfun) " |
| 1547 |
ECL/CLOS specific. |
| 1548 |
Returns the hashtable for caching methods associated with the GFUN |
| 1549 |
generic function object.") |
| 1550 |
|
| 1551 |
#+clos |
| 1552 |
(docfun si::gfun-method-ht-set function (gfun hash-table) " |
| 1553 |
ECL/CLOS specific. |
| 1554 |
Sets to HASH-TABLE the hashtable for caching methods associated with the |
| 1555 |
GFUN generic function object.") |
| 1556 |
|
| 1557 |
#+clos |
| 1558 |
(docfun si::gfun-spec-how-ref function (gfun index) " |
| 1559 |
ECL/CLOS specific. |
| 1560 |
Returns the INDEX-th element of specialization list associated with the |
| 1561 |
GFUN generic function object. The first element has INDEX equal to zero.") |
| 1562 |
|
| 1563 |
#+clos |
| 1564 |
(docfun si::gfun-spec-how-set function (gfun index specializer) " |
| 1565 |
ECL/CLOS specific. |
| 1566 |
Sets to SPECIALIZER the INDEX-th element of specialization list associated |
| 1567 |
with the GFUN generic function object. The first element has INDEX |
| 1568 |
equal to zero.") |
| 1569 |
|
| 1570 |
#+clos |
| 1571 |
(docfun si::gfunp function (object) " |
| 1572 |
ECL/CLOS specific. |
| 1573 |
Returns T if OBJECT is of gfun type.") |
| 1574 |
|
| 1575 |
(docfun go special (tag) " |
| 1576 |
Jumps to TAG. See TAGBODY.") |
| 1577 |
|
| 1578 |
(docfun graphic-char-p function (char) " |
| 1579 |
Returns T if CHAR is a printing character, i.e., a standard character other |
| 1580 |
than #\\Newline. Returns NIL otherwise.") |
| 1581 |
|
| 1582 |
(doctype hash-table " |
| 1583 |
A hash-table is a table used to map from objects to objects efficiently by the |
| 1584 |
hashing technique. A hash-table is notated as |
| 1585 |
#<hash-table n> |
| 1586 |
where N is actually a number that identifies the hash-table.") |
| 1587 |
|
| 1588 |
(docfun hash-table-count function (hash-table) " |
| 1589 |
Returns the number of entries in HASH-TABLE.") |
| 1590 |
|
| 1591 |
(docfun hash-table-p function (x) " |
| 1592 |
Returns T if X is a hash-table object; NIL otherwise.") |
| 1593 |
|
| 1594 |
(docfun host-namestring function (filespec) " |
| 1595 |
Returns as a string the host part of the pathname specified by FILESPEC. |
| 1596 |
FILESPEC may be a symbol, a string, a pathname, or a file stream.") |
| 1597 |
|
| 1598 |
(docfun identity function (x) " |
| 1599 |
Returns X.") |
| 1600 |
|
| 1601 |
(docfun if special (test true-form &optional false-form) " |
| 1602 |
If TEST evaluates to non-NIL, then evaluates FORM1 and returns all values. |
| 1603 |
Otherwise, evaluates FORM2 (which defaults to NIL) and returns all values.") |
| 1604 |
|
| 1605 |
(docfun si::ihs-fun function (n) " |
| 1606 |
ECL specific. |
| 1607 |
Returns the function value of the N-th entity in the invocation history stack.") |
| 1608 |
|
| 1609 |
(docfun imagpart function (number) " |
| 1610 |
Returns the imagpart of NUMBER if it is a complex. Otherwise, returns zero of |
| 1611 |
the same type as NUMBER.") |
| 1612 |
|
| 1613 |
(docfun import function (symbol &optional (package *package*)) " |
| 1614 |
Registers SYMBOL to PACKAGE as an internal symbol. Does nothing if SYMBOL is |
| 1615 |
already registered in PACKAGE. SYMBOL may be a list of symbols.") |
| 1616 |
|
| 1617 |
(docfun in-package function (package-name &key (nicknames nil) (use '(lisp))) " |
| 1618 |
Makes the package named PACKAGE-NAME as the current package. If such a |
| 1619 |
package does not exist, then creates one by passing all args to MAKE-PACKAGE. |
| 1620 |
Otherwise, adds the specified nicknames and packages to the nickname list and |
| 1621 |
use list of the package. NICKNAMES must be a list consisting of strings and |
| 1622 |
symbols. USE must be a list consisting of package objects and package names |
| 1623 |
(either string or symbol).") |
| 1624 |
|
| 1625 |
(docfun input-stream-p function (stream) " |
| 1626 |
Returns T if STREAM can handle input operations; NIL otherwise.") |
| 1627 |
|
| 1628 |
#+clos |
| 1629 |
(docfun si::instancep function (object) " |
| 1630 |
ECL/CLOS specific. |
| 1631 |
Returns T if OBJECT is of instance type.") |
| 1632 |
|
| 1633 |
#+clos |
| 1634 |
(docfun si::instance-ref function (instance index) " |
| 1635 |
ECL/CLOS specific. |
| 1636 |
Returns the value of the INDEX-th slot of INSTANCE. The first slot has |
| 1637 |
INDEX equal to zero.") |
| 1638 |
|
| 1639 |
#+clos |
| 1640 |
(docfun si::instance-set function (instance index value) " |
| 1641 |
ECL/CLOS specific. |
| 1642 |
Sets to VALUE the value of INDEX-th slot of INSTANCE. The first slot has |
| 1643 |
INDEX equal to zero.") |
| 1644 |
|
| 1645 |
#+clos |
| 1646 |
(docfun si::instance-class function (instance) " |
| 1647 |
ECL/CLOS specific. |
| 1648 |
Returns the class of which the given INSTANCE is an instance.") |
| 1649 |
|
| 1650 |
#+clos |
| 1651 |
(docfun si::instance-class-set function (instance class) " |
| 1652 |
ECL/CLOS specific. |
| 1653 |
Makes INSTANCE an instance of CLASS class.") |
| 1654 |
|
| 1655 |
(docfun int-char function (integer) " |
| 1656 |
Equivalent to CODE-CHAR.") |
| 1657 |
|
| 1658 |
(doctype integer " |
| 1659 |
An integer object represents an integer in mathematical sense. An integer may |
| 1660 |
be a fixnum, or else it is a bignum. Normally, an integer is notated in radix |
| 1661 |
10 (see *PRINT-BASE* and *READ-BASE*) as |
| 1662 |
[sign] {digit}+ |
| 1663 |
where DIGIT is a decimal digit ('0', ..., '9') and SIGN is either '+' or '-'. |
| 1664 |
Also, the following syntax is used to notate the radix explicitly. |
| 1665 |
# radix {r | R} [sign] {digit}+ |
| 1666 |
where RADIX is one of '2', '3', ..., '36' and DIGIT is a digit in radix RADIX: |
| 1667 |
Digits in radix 2 are '0' and '1' |
| 1668 |
Digits in radix 8 are '0', ..., '7' |
| 1669 |
Digits in radix 16 are '0', ..., '9', 'a', ..., 'f', and 'A', ..., 'F' |
| 1670 |
The following syntax is also available for radix 2, 8, 10, and 16. |
| 1671 |
# {b | B} [sign] {digit}+ |
| 1672 |
# {o | O} [sign] {digit}+ |
| 1673 |
[sign] {digit}+ . |
| 1674 |
# {x | X} [sign] {digit}+") |
| 1675 |
|
| 1676 |
(docfun integer-decode-float function (float) " |
| 1677 |
Returns, as three values, the integer interpretation of significand F, the |
| 1678 |
exponent E, and the sign S of FLOAT, such that |
| 1679 |
FLOAT = S * F * B^E |
| 1680 |
where B = (float-radix FLOAT). F is a non-negative integer, E is an integer, |
| 1681 |
and S is either 1 or -1.") |
| 1682 |
|
| 1683 |
(docfun integer-length function (integer) " |
| 1684 |
Returns the number of \"significant bits\" in the representation of INTEGER. |
| 1685 |
With positive arg, returns one plus the position of the most significant bit |
| 1686 |
that is 'on'. With negative arg other than -1, returns one plus the position |
| 1687 |
of the most significant bit that is 'off'. For 0 and -1, returns 0.") |
| 1688 |
|
| 1689 |
(docfun integerp function (x) " |
| 1690 |
Returns T if X is an integer; NIL otherwise.") |
| 1691 |
|
| 1692 |
(docfun intern function (string &optional (package *package*)) " |
| 1693 |
Searches PACKAGE for a symbol whose print name is STRING. If such a symbol is |
| 1694 |
found, returns the symbol and, as the second value, one of the keywords |
| 1695 |
:INTERNAL, :EXTERNAL, and :INHERITED. Otherwise, creates and returns a new |
| 1696 |
symbol and, as the second value, returns NIL.") |
| 1697 |
|
| 1698 |
(docvar internal-time-units-per-second constant " |
| 1699 |
Gives the time unit used by GET-INTERNAL-REAL-TIME and GET-INTERNAL-RUN-TIME. |
| 1700 |
1000 in ECL.") |
| 1701 |
|
| 1702 |
(doctype keyword " |
| 1703 |
A keyword is a symbol in the keyword package.") |
| 1704 |
|
| 1705 |
(docfun keywordp function (x) " |
| 1706 |
Returns T if X is a symbol that belongs to the KEYWORD package; NIL otherwise.") |
| 1707 |
|
| 1708 |
(docfun labels special ((&rest functions) &body forms) " |
| 1709 |
Introduces local functions and evaluates BODY as a PROGN. The scope of each |
| 1710 |
local function include the local function definitions. Thus self- and mutual- |
| 1711 |
recursive local functions can be defined. Doc-strings for local functions are |
| 1712 |
simply ignored.") |
| 1713 |
|
| 1714 |
(docvar lambda-list-keywords constant " |
| 1715 |
List of all lambda-list keywords, including |
| 1716 |
&optional &rest &key |
| 1717 |
&allow-other-keys &aux |
| 1718 |
&whole &environment &body") |
| 1719 |
|
| 1720 |
(docvar lambda-parameters-limit constant " |
| 1721 |
The upper bound of the number of parameters specified by a lambda list. |
| 1722 |
Ignore this number; there is no such upper bound in ECL.") |
| 1723 |
|
| 1724 |
(docfun last function (list) " |
| 1725 |
Returns the last cons that constitute LIST. Returns NIL if LIST is NIL.") |
| 1726 |
|
| 1727 |
(docfun lcm function (integer &rest more-integers) " |
| 1728 |
Returns the least common multiple of the args. Returns 0 if at least one of |
| 1729 |
the args is 0.") |
| 1730 |
|
| 1731 |
(docfun ldiff function (list x) " |
| 1732 |
If X is a cons that constitutes LIST, then returns a new list consisting of |
| 1733 |
those elements of LIST that appear before X. Otherwise, returns a copy of |
| 1734 |
LIST.") |
| 1735 |
|
| 1736 |
(docvar least-negative-double-float constant " |
| 1737 |
Same as LEAST-NEGATIVE-LONG-FLOAT.") |
| 1738 |
|
| 1739 |
(docvar least-negative-long-float constant " |
| 1740 |
The negative long-float with the smallest absolute value.") |
| 1741 |
|
| 1742 |
(docvar least-negative-short-float constant " |
| 1743 |
The negative short-float with the smallest absolute value.") |
| 1744 |
|
| 1745 |
(docvar least-negative-single-float constant " |
| 1746 |
Same as LEAST-NEGATIVE-LONG-FLOAT.") |
| 1747 |
|
| 1748 |
(docvar least-positive-double-float constant " |
| 1749 |
Same as LEAST-POSITIVE-LONG-FLOAT.") |
| 1750 |
|
| 1751 |
(docvar least-positive-long-float constant " |
| 1752 |
The smallest positive long-float.") |
| 1753 |
|
| 1754 |
(docvar least-positive-short-float constant " |
| 1755 |
The smallest positive short-float.") |
| 1756 |
|
| 1757 |
(docvar least-positive-single-float constant " |
| 1758 |
Same as LEAST-POSITIVE-LONG-FLOAT.") |
| 1759 |
|
| 1760 |
(docfun length function (sequence) " |
| 1761 |
Returns the length of SEQUENCE.") |
| 1762 |
|
| 1763 |
(docfun let special ((&rest bindings) &body body) " |
| 1764 |
Evaluates all INITs (which defaults to NIL), binds the value of each INIT to |
| 1765 |
the corresponding VAR, evaluates FORMs, and returns all values of the last |
| 1766 |
FORM. Returns NIL if no FORM is given.") |
| 1767 |
|
| 1768 |
(docfun let* special ((&rest bindings) &body body) " |
| 1769 |
Evaluates INIT (which defaults to NIL) and binds the value to the |
| 1770 |
corresponding VAR, one by one for each pair of VAR and INIT. Then evaluates |
| 1771 |
FORMs and returns all values of the last FORM. Returns NIL if no FORM is |
| 1772 |
given.") |
| 1773 |
|
| 1774 |
(docfun list function (&rest args) " |
| 1775 |
Returns a list of the args.") |
| 1776 |
|
| 1777 |
(docfun list* function (arg &rest more-args) " |
| 1778 |
With one arg, simply returns it. With n args (n > 1), conses the first arg to |
| 1779 |
the LIST* of the rest of args.") |
| 1780 |
|
| 1781 |
(docfun list-all-packages function () " |
| 1782 |
Returns a list of all packages.") |
| 1783 |
|
| 1784 |
(docfun list-length function (list) " |
| 1785 |
Returns the length of LIST. Returns NIL if LIST is circular.") |
| 1786 |
|
| 1787 |
(docfun listen function (&optional (stream *standard-input*)) " |
| 1788 |
Returns T if STREAM is ready to input a character from; NIL otherwise. In |
| 1789 |
some versions of ECL, this function does not work correctly because the |
| 1790 |
underlying OS does not support such a mechanism.") |
| 1791 |
|
| 1792 |
(docfun listp function (x) " |
| 1793 |
Returns T if X is either a cons or NIL. Otherwise, returns NIL.") |
| 1794 |
|
| 1795 |
(docfun load function (filespec |
| 1796 |
&key (verbose *load-verbose*) (print nil) (if-does-not-exist :error)) " |
| 1797 |
Loads the contents of the specified file into ECL. |
| 1798 |
If the filetype is not specified, ECL first tries to load the fasl file with |
| 1799 |
filetype \".fasl\", then tries to load the source file with filetype \".lsp\", |
| 1800 |
and then tries to load the source file with no filetype. |
| 1801 |
FILESPEC may be a symbol, a string, a pathname, or a file stream. VERBOSE |
| 1802 |
specifies whether or not the loader prints a loading message. PRINT specifies |
| 1803 |
whether or not the loader prints the values of the top-level forms. |
| 1804 |
IF-DOES-NOT-EXIST specifies the behavior of the loader when the specified file |
| 1805 |
is not found. It may be :ERROR or NIL. |
| 1806 |
If the file was loaded successfully, returns the pathname of the file actually |
| 1807 |
loaded") |
| 1808 |
|
| 1809 |
(docfun locally macro (&body forms) " |
| 1810 |
Gives DECLs locally while evaluating FORMs, and returns all values of the last |
| 1811 |
FORM. Returns NIL if no FORM is given.") |
| 1812 |
|
| 1813 |
(docfun log function (number1 &optional number2) " |
| 1814 |
With two args, returns the logarithm of NUMBER1 in base NUMBER2. With one |
| 1815 |
arg, returns the natural logarithm of the arg.") |
| 1816 |
|
| 1817 |
(docfun logand function (&rest integers) " |
| 1818 |
Returns the bit-wise AND of the args.") |
| 1819 |
|
| 1820 |
(docfun logandc1 function (integer1 integer2) " |
| 1821 |
Equivalent to (LOGAND (LOGNOT INTEGER1) INTEGER2).") |
| 1822 |
|
| 1823 |
(docfun logandc2 function (integer1 integer2) " |
| 1824 |
Equivalent to (LOGAND INTEGER1 (LOGNOT INTEGER2)).") |
| 1825 |
|
| 1826 |
(docfun logbitp function (bit-position integer) " |
| 1827 |
Returns T if the specified bit of INTEGER is 1; NIL otherwise. BIT-POSITION |
| 1828 |
must be a non-negative integer, with 0 representing the least significant bit.") |
| 1829 |
|
| 1830 |
(docfun logcount function (integer) " |
| 1831 |
If INTEGER is negative, returns the number of 0 bits. Otherwise, returns the |
| 1832 |
number of 1 bits.") |
| 1833 |
|
| 1834 |
(docfun logeqv function (&rest integers) " |
| 1835 |
Returns the bit-wise EQUIVALENCE of the args.") |
| 1836 |
|
| 1837 |
(docfun logior function (&rest integers) " |
| 1838 |
Returns the bit-wise INCLUSIVE OR of the args.") |
| 1839 |
|
| 1840 |
(docfun lognand function (integer1 integer2) " |
| 1841 |
Equivalent to (LOGNOT (LOGAND INTEGER1 INTEGER2)).") |
| 1842 |
|
| 1843 |
(docfun lognor function (integer1 integer2) " |
| 1844 |
Equivalent to (LOGNOT (LOGIOR INTEGER1 INTEGER2)).") |
| 1845 |
|
| 1846 |
(docfun lognot function (integer) " |
| 1847 |
Returns the bit-wise logical NOT of the arg.") |
| 1848 |
|
| 1849 |
(docfun logorc1 function (integer1 integer2) " |
| 1850 |
Equivalent to (LOGIOR (LOGNOT INTEGER1) INTEGER2).") |
| 1851 |
|
| 1852 |
(docfun logorc2 function (integer1 integer2) " |
| 1853 |
Equivalent to (LOGIOR INTEGER1 (LOGNOT INTEGER2)).") |
| 1854 |
|
| 1855 |
(docfun logxor function (&rest integers) " |
| 1856 |
Returns the bit-wise EXCLUSIVE OR of the args.") |
| 1857 |
|
| 1858 |
(doctype long-float " |
| 1859 |
A long-float is a long-precision floating point number.") |
| 1860 |
|
| 1861 |
(docfun lower-case-p function (char) " |
| 1862 |
Returns T if CHAR is a lower-case character; NIL otherwise.") |
| 1863 |
|
| 1864 |
(docfun macro-function function (symbol) " |
| 1865 |
Returns the expansion function of the global macro named SYMBOL. Returns NIL |
| 1866 |
if no such macro exists. The expansion function receives a macro form and an |
| 1867 |
environment, and returns the expanded form.") |
| 1868 |
|
| 1869 |
(docfun macroexpand function (form &optional (env nil)) " |
| 1870 |
If FORM is a macro form, then expands it repeatedly until the result is not a |
| 1871 |
macro any more, and returns the result as the first value and T as the second |
| 1872 |
value. Otherwise, returns FORM and NIL as two values.") |
| 1873 |
|
| 1874 |
(docfun macroexpand-1 function (form &optional (env nil)) " |
| 1875 |
If FORM is a macro form, then expands it once and returns the result as the |
| 1876 |
first value and T as the second value. Otherwise, returns FORM and NIL as two |
| 1877 |
values.") |
| 1878 |
|
| 1879 |
(docfun macrolet special ((&rest macros) &body forms) |
| 1880 |
"Syntax: (macrolet ({(name defmacro-lambda-list {decl | doc}* {form}*)}*) |
| 1881 |
. body) |
| 1882 |
Introduces local macros and evaluates BODY as a PROGN. See DEFMACRO for the |
| 1883 |
complete syntax of defmacro-lambda-list. Doc-strings for local macros are |
| 1884 |
simply ignored.") |
| 1885 |
|
| 1886 |
(docfun make-broadcast-stream function (&rest streams) " |
| 1887 |
Creates and returns a broadcast stream. Outputs to this stream are output to |
| 1888 |
all STREAMs. A broadcast stream is notated as |
| 1889 |
#<broadcast stream n> |
| 1890 |
where N is a number that identify the stream.") |
| 1891 |
|
| 1892 |
(docfun make-char function (char &optional (bits 0) (font 0)) " |
| 1893 |
Returns a character object with the same code as CHAR and with the specified |
| 1894 |
BITS and FONT attributes. Returns NIL if no such character exists.") |
| 1895 |
|
| 1896 |
(docfun make-concatenated-stream function (&rest streams) " |
| 1897 |
Creates and returns a concatenated stream. Inputs from this stream are first |
| 1898 |
obtained from the first STREAM. When the end of the first STREAM is reached, |
| 1899 |
then inputs are obtained from the second STREAM. And so forth. |
| 1900 |
A concatenated stream is notated as |
| 1901 |
#<concatenated stream n> |
| 1902 |
where N is a number that identifies the stream.") |
| 1903 |
|
| 1904 |
(docfun make-dispatch-macro-character function (char &optional (non-terminating-p nil) (readtable *readtable*)) " |
| 1905 |
Register CHAR as a dispatch macro character in READTABLE. NON-TERMINATING-P |
| 1906 |
specifies whether CHAR is non-terminating (see READTABLE).") |
| 1907 |
|
| 1908 |
(docfun make-echo-stream function (stream1 stream2) " |
| 1909 |
Creates and returns an echo stream. Inputs from this stream are obtained from |
| 1910 |
STREAM1 and outputs to this stream are output to STREAM2. In addition, all |
| 1911 |
inputs from STREAM1 are output to STREAM2. |
| 1912 |
An echo stream is notated as |
| 1913 |
#<echo stream n> |
| 1914 |
where N is a number that identifies the stream.") |
| 1915 |
|
| 1916 |
(docfun make-hash-table function (&key (test 'eql) (size 1024) (rehash-size 1.5) (rehash-threshold 0.7) (hash-function nil) (synchronized nil) (weakness nil)) " |
| 1917 |
Creates and returns a hash-table. |
| 1918 |
|
| 1919 |
TEST specifies which predicate should be used to access hash-table |
| 1920 |
entries. It must be EQ, EQL, EQUAL, EQUALP or a function accepting |
| 1921 |
two arguments. If it is a function then HASH-FUNCTION must be |
| 1922 |
supplied. |
| 1923 |
|
| 1924 |
HASH-FUNCTION is used alongside with a custom TEST predicate. It |
| 1925 |
accepts one argument and must return a positive fixnum being the |
| 1926 |
object's hash. |
| 1927 |
|
| 1928 |
SIZE specifies the number of entries in the hash-table. |
| 1929 |
|
| 1930 |
REHASH-SIZE, if an integer, specifies how many entries should be added |
| 1931 |
when the hash-table becomes 'almost full'. REHASH-SIZE, if a float, |
| 1932 |
specifies the ratio of the new size and the old size. |
| 1933 |
|
| 1934 |
REHASH-THRESHOLD specifies when to expand the hash-table. If an |
| 1935 |
integer, the hash-table is expanded when REHASH-THRESHOLD / |
| 1936 |
|
| 1937 |
REHASH-SIZE entries have been used. If a float, the hash-table is |
| 1938 |
expanded when REHASH-THRESHOLD times the whole entries have been used. |
| 1939 |
|
| 1940 |
SYNCHRONIZE if T then gethash, (setf gethash) and remhash operations |
| 1941 |
are protected by a lock - in this case hash tables may be used from |
| 1942 |
different threads without explicit synchronization. |
| 1943 |
|
| 1944 |
WEAKNESS is a GC extension and may be one of NIL, :KEY, :VALUE, |
| 1945 |
:KEY-AND-VALUE or :KEY-OR-VALUE. ") |
| 1946 |
|
| 1947 |
(docfun make-list function (length &key (initial-element nil)) " |
| 1948 |
Creates and returns a list of the specified LENGTH, whose elements are all the |
| 1949 |
value of INITIAL-ELEMENT.") |
| 1950 |
|
| 1951 |
(docfun make-package function (package-name &key (nicknames nil) (use '(lisp))) " |
| 1952 |
Creates and returns a new package named PACKAGE-NAME. PACKAGE-NAME must be a |
| 1953 |
string or a symbol. The print name is used if PACKAGE-NAME is a symbol. |
| 1954 |
NICKNAMES gives the nicknames of the package. It must be a list of strings |
| 1955 |
and symbols. USE specifies the packages used by the created package. It must |
| 1956 |
be a list of package objects, strings, and symbols.") |
| 1957 |
|
| 1958 |
(docfun make-pathname function (&key (defaults (parse-namestring \"\" |
| 1959 |
(pathname-host *default-pathname-defaults*))) |
| 1960 |
(host (pathname-host defaults)) |
| 1961 |
(device (pathname-device defaults)) |
| 1962 |
(directory (pathname-directory defaults)) |
| 1963 |
(name (pathname-name defaults)) |
| 1964 |
(type (pathname-type defaults)) |
| 1965 |
(version (pathname-version defaults))) " |
| 1966 |
Creates a pathname object with the slot values specified by HOST, DEVICE, |
| 1967 |
DIRECTORY, NAME, TYPE, and VERSION.") |
| 1968 |
|
| 1969 |
(docfun make-random-state function (&optional (random-state nil)) " |
| 1970 |
Creates and returns a random-state object. If RANDOM-STATE is NIL, copies the |
| 1971 |
value of *RANDOM-STATE*. If RANDOM-STATE is a random-state, copies it. If |
| 1972 |
RANDOM-STATE is T, creates a random-state randomly.") |
| 1973 |
|
| 1974 |
(docfun ext:make-stream-from-fd function |
| 1975 |
(fd direction &key buffering element-type (external-format :default) (name "FD-STREAM")) " |
| 1976 |
Creates and returns a new stream build on top of given FD file descriptor. |
| 1977 |
|
| 1978 |
DIRECTION may be :INPUT, :OUTPUT and :IO. On Windows it may be |
| 1979 |
also :INPUT-WSOCK, :OUTPUT-WSOCK, :IO-WSOCK and :IO-WCON. |
| 1980 |
|
| 1981 |
BUFFERING may be :NONE, :LINE and :FULL.") |
| 1982 |
|
| 1983 |
(docfun make-string function (length &key (initial-element #\Space)) " |
| 1984 |
Creates and returns a new string of the given LENGTH, whose elements are all |
| 1985 |
INITIAL-ELEMENT.") |
| 1986 |
|
| 1987 |
(docfun make-string-input-stream function (string &optional (start 0) (end (length string))) " |
| 1988 |
Creates and returns a string-input stream. Inputs from this stream are |
| 1989 |
obtained form STRING. A string-input stream is notated as |
| 1990 |
#<string-input stream from s> |
| 1991 |
where S is a string.") |
| 1992 |
|
| 1993 |
(docfun make-string-output-stream function () " |
| 1994 |
Creates and returns a string-output stream. Outputs to this stream are |
| 1995 |
obtained as a string by GET-OUTPUT-STREAM-STRING. A string-output stream |
| 1996 |
is notated as |
| 1997 |
#<string-output stream n> |
| 1998 |
where N is a number that identifies the stream.") |
| 1999 |
|
| 2000 |
(docfun si::make-string-output-stream-from-string function (string) " |
| 2001 |
ECL specific. |
| 2002 |
Creates and returns a string-output-stream to STRING. STRING must have a |
| 2003 |
fill-pointer.") |
| 2004 |
|
| 2005 |
(docfun make-symbol function (string) " |
| 2006 |
Creates and returns a new uninterned symbol whose print name is STRING.") |
| 2007 |
|
| 2008 |
(docfun make-synonym-stream function (symbol) " |
| 2009 |
Creates and returns a synonym stream to SYMBOL. Inputs from this stream are |
| 2010 |
obtained from, and outputs to this stream are sent to the stream that is the |
| 2011 |
value of the global variable named SYMBOL. A synonym stream is notated as |
| 2012 |
#<synonym stream to s> |
| 2013 |
where S is a symbol.") |
| 2014 |
|
| 2015 |
(docfun make-two-way-stream function (stream1 stream2) " |
| 2016 |
Creates and returns a two-way stream. Inputs from this stream are obtained |
| 2017 |
from STREAM1 and outputs to this stream are sent to STREAM2. A two-way stream |
| 2018 |
is notated as |
| 2019 |
#<two-way stream n> |
| 2020 |
where N is a number that identifies the stream.") |
| 2021 |
|
| 2022 |
(docfun makunbound function (symbol) " |
| 2023 |
Makes the global variable named SYMBOL have no value. Returns SYMBOL.") |
| 2024 |
|
| 2025 |
(docfun mapc function (function list &rest more-lists) " |
| 2026 |
For each N (0 <= N < K), applies FUNCTION to the N-th elements of the given |
| 2027 |
LISTs, where K is the minimum length of the given LISTs. Returns the first |
| 2028 |
LIST.") |
| 2029 |
|
| 2030 |
(docfun mapcan function (function list &rest more-lists) " |
| 2031 |
For each N (0 <= N < K), applies FUNCTION to the N-th elements of the given |
| 2032 |
LISTs, where K is the minimum length of the given LISTs. Nconcs the values, |
| 2033 |
one for each call to FUNCTION, and returns the result.") |
| 2034 |
|
| 2035 |
(docfun mapcar function (function list &rest more-lists) " |
| 2036 |
Creates and returns a list of K elements, with the N-th element being the |
| 2037 |
value of applying FUNCTION to the N-th elements of the given LISTs, where K |
| 2038 |
is the minimum length of the given LISTs.") |
| 2039 |
|
| 2040 |
(docfun mapcon function (function list &rest more-lists) " |
| 2041 |
For each N (0 <= N < K), applies FUNCTION to the N-th cdrs of the given LISTs, |
| 2042 |
where K is the minimum length of the given LISTs. Nconcs the values, one for |
| 2043 |
each call to FUNCTION, and returns the result.") |
| 2044 |
|
| 2045 |
(docfun maphash function (function hash-table) " |
| 2046 |
For each entry of HASH-TABLE, applies FUNCTION to the key and the value of the |
| 2047 |
entry. Returns NIL.") |
| 2048 |
|
| 2049 |
(docfun mapl function (function list &rest more-lists) " |
| 2050 |
For each N (0 <= N < K), applies FUNCTION to the N-th cdrs of the given LISTs, |
| 2051 |
where K is the minimum length of the given LISTs. Returns the first LIST.") |
| 2052 |
|
| 2053 |
(docfun maplist function (function list &rest more-lists) " |
| 2054 |
Creates and returns a list of K elements, with the N-th element being the |
| 2055 |
value of applying FUNCTION to the N-th cdrs of the given LISTs, where K is the |
| 2056 |
minimum length of the given LISTs.") |
| 2057 |
|
| 2058 |
(docfun max function (number &rest more-numbers) " |
| 2059 |
Returns the largest arg. The args must be non-complex numbers.") |
| 2060 |
|
| 2061 |
(docfun maximum-allocatable-pages function (type) " |
| 2062 |
ECL specific. |
| 2063 |
Returns the current maximum number of pages for the type class of the ECL |
| 2064 |
implementation type TYPE.") |
| 2065 |
|
| 2066 |
(docfun member function (item list &key (key '#'identity) (test '#'eql) test-not) " |
| 2067 |
Searches LIST for an element that is equal to ITEM in the sense of the TEST. |
| 2068 |
If found, returns the sublist of LIST that begins with the element. |
| 2069 |
Otherwise, returns NIL.") |
| 2070 |
|
| 2071 |
(docfun merge-pathnames function (filespec |
| 2072 |
&optional (defaults *default-pathname-defaults*) default-version) " |
| 2073 |
Fills in unspecified slots of the pathname specified by FILESPEC from the |
| 2074 |
pathname specified by DEFAULTS, and returns the result pathname. DEFAULT- |
| 2075 |
VERSION is simply ignored in ECL. FILESPEC and DEFAULTS may be a symbol, a |
| 2076 |
string, a pathname, or a file stream.") |
| 2077 |
|
| 2078 |
(docfun min function (number &rest more-numbers) " |
| 2079 |
Returns the smallest arg. The args must be non-complex numbers.") |
| 2080 |
|
| 2081 |
(docfun minusp function (number) " |
| 2082 |
Returns T if NUMBER is negative; NIL otherwise.") |
| 2083 |
|
| 2084 |
(docfun mod function (number divisor) " |
| 2085 |
Returns the second result of (FLOOR NUMBER DIVISOR), i.e. the value of |
| 2086 |
(- NUMBER (* (FLOOR NUMBER DIVISOR) DIVISOR))") |
| 2087 |
|
| 2088 |
(docvar most-negative-double-float constant " |
| 2089 |
Same as MOST-NEGATIVE-LONG-FLOAT.") |
| 2090 |
|
| 2091 |
(docvar most-negative-fixnum constant " |
| 2092 |
The negative fixnum with the largest absolute value. - 2^29 in ECL.") |
| 2093 |
|
| 2094 |
(docvar most-negative-long-float constant " |
| 2095 |
The long-float with the largest absolute value.") |
| 2096 |
|
| 2097 |
(docvar most-negative-short-float constant " |
| 2098 |
The short-float with the largest absolute value.") |
| 2099 |
|
| 2100 |
(docvar most-negative-single-float constant " |
| 2101 |
Same as MOST-NEGATIVE-LONG-FLOAT.") |
| 2102 |
|
| 2103 |
(docvar most-positive-double-float constant " |
| 2104 |
Same as MOST-POSITIVE-LONG-FLOAT.") |
| 2105 |
|
| 2106 |
(docvar most-positive-fixnum constant " |
| 2107 |
The largest positive fixnum. 2^29 - 1 in ECL.") |
| 2108 |
|
| 2109 |
(docvar most-positive-long-float constant " |
| 2110 |
The largest positive long-float.") |
| 2111 |
|
| 2112 |
(docvar most-positive-short-float constant " |
| 2113 |
The largest positive short-float.") |
| 2114 |
|
| 2115 |
(docvar most-positive-single-float constant " |
| 2116 |
Same as MOST-POSITIVE-LONG-FLOAT.") |
| 2117 |
|
| 2118 |
(docfun multiple-value-call special (function-form &rest forms) " |
| 2119 |
Evaluates FUNCTION-FORM, whose value must be a function. Then evaluates FORMs |
| 2120 |
and applies the function to all values of FORMs. Unlike FUNCALL, all values |
| 2121 |
of each FORM are used as arguments. Returns all values of the function.") |
| 2122 |
|
| 2123 |
(docfun multiple-value-prog1 special (first-form &rest forms) " |
| 2124 |
Evaluates FIRST-FORM, saves all values it returns, and then evaluates FORMs. |
| 2125 |
Returns all the saved values of FIRST-FORM.") |
| 2126 |
|
| 2127 |
(docvar multiple-values-limit constant " |
| 2128 |
The upper bound on the number of values that a function can return. Actually, |
| 2129 |
however, there is no such upper bound in ECL.") |
| 2130 |
|
| 2131 |
(docfun name-char function (name) " |
| 2132 |
Given an argument acceptable to string, |
| 2133 |
Returns a character object with the specified character name (see CHARACTER). |
| 2134 |
Returns NIL if no such character object exists. NAME is typically a string |
| 2135 |
but may be any object that can be coerced to string.") |
| 2136 |
|
| 2137 |
(docfun namestring function (filespec) " |
| 2138 |
Returns as a string all slots of the pathname specified by FILESPEC. FILESPEC |
| 2139 |
may be a symbol, a string, a pathname, or a file stream.") |
| 2140 |
|
| 2141 |
(docfun nbutlast function (list &optional (n 1)) " |
| 2142 |
Destructive BUTLAST. LIST may be destroyed.") |
| 2143 |
|
| 2144 |
(docfun nconc function (&rest lists) " |
| 2145 |
Destructive APPEND. The args except for the last may be destroyed.") |
| 2146 |
|
| 2147 |
(doctype nil " |
| 2148 |
The type NIL is a subtype of every type. No object belongs to this type.") |
| 2149 |
|
| 2150 |
(docvar nil constant " |
| 2151 |
The value of NIL is NIL.") |
| 2152 |
|
| 2153 |
(docfun ninth function (x) " |
| 2154 |
Equivalent to (CAR (CDDDDR (CDDDDR X))).") |
| 2155 |
|
| 2156 |
(docfun not function (x) " |
| 2157 |
Returns T if X is NIL; NIL otherwise.") |
| 2158 |
|
| 2159 |
(docfun nreconc function (x y) " |
| 2160 |
Equivalent to (NCONC (NREVERSE X) Y).") |
| 2161 |
|
| 2162 |
(docfun nreverse function (sequence) " |
| 2163 |
Destructive REVERSE. The arg may be destroyed.") |
| 2164 |
|
| 2165 |
(docfun nstring-capitalize function (string &key (start 0) (end (length string))) " |
| 2166 |
Destructive STRING-CAPITALIZE. STRING may be destroyed.") |
| 2167 |
|
| 2168 |
(docfun nstring-downcase function (string &key (start 0) (end (length string))) " |
| 2169 |
Destructive STRING-DOWNCASE. STRING may be destroyed.") |
| 2170 |
|
| 2171 |
(docfun nstring-upcase function (string &key (start 0) (end (length string))) " |
| 2172 |
Destructive STRING-UPCASE. STRING may be destroyed.") |
| 2173 |
|
| 2174 |
(docfun nsublis function (alist tree &key (key '#'identity) (test '#'eql) test-not) " |
| 2175 |
Destructive SUBLIS. TREE may be destroyed.") |
| 2176 |
|
| 2177 |
(docfun nsubst function (new old tree &key (key '#'identity) (test '#'eql) test-not) " |
| 2178 |
Destructive SUBST. TREE may be destroyed.") |
| 2179 |
|
| 2180 |
(docfun nsubstitute function (new old sequence |
| 2181 |
&key (key '#'identity) (test '#'eql) test-not |
| 2182 |
(start 0) (end (length sequence)) |
| 2183 |
(count most-positive-fixnum) (from-end nil)) " |
| 2184 |
Destructive SUBSTITUTE. SEQUENCE may be destroyed.") |
| 2185 |
|
| 2186 |
(docfun nsubstitute-if function (new test sequence |
| 2187 |
&key (key '#'identity) (start 0) (end (length sequence)) |
| 2188 |
(count most-positive-fixnum) (from-end nil)) " |
| 2189 |
Destructive SUBSTITUTE-IF. SEQUENCE may be destroyed.") |
| 2190 |
|
| 2191 |
(docfun nsubstitute-if-not function (new test sequence |
| 2192 |
&key (key '#'identity) (start 0) (end (length sequence)) |
| 2193 |
(count most-positive-fixnum) (from-end nil)) " |
| 2194 |
Destructive SUBSTITUTE-IF-NOT. SEQUENCE may be destroyed.") |
| 2195 |
|
| 2196 |
(docfun nth function (n list) " |
| 2197 |
Returns the N-th element of LIST, the first element of LIST being the zeroth. |
| 2198 |
Returns NIL if the length of LIST is less than N. N must be a non-negative |
| 2199 |
integer.") |
| 2200 |
|
| 2201 |
(docfun nthcdr function (n list) " |
| 2202 |
Returns the N-th cdr of LIST. N must be a non-negative integer.") |
| 2203 |
|
| 2204 |
(docfun null function (x) " |
| 2205 |
Returns T if X is NIL; NIL otherwise.") |
| 2206 |
|
| 2207 |
(docfun si:null-pointer-p function (ptr) " |
| 2208 |
Return true if PTR is a null pointer.") |
| 2209 |
|
| 2210 |
(doctype number " |
| 2211 |
A number is an integer, a ratio, a float, or a complex number. Integers and |
| 2212 |
ratios are collectively called rationals.") |
| 2213 |
|
| 2214 |
(docfun numberp function (x) " |
| 2215 |
Returns T if X is a number; NIL otherwise.") |
| 2216 |
|
| 2217 |
(docfun numerator function (rational) " |
| 2218 |
Returns the numerator of RATIONAL as an integer, if RATIONAL is a ratio. |
| 2219 |
Returns RATIONAL if it is an integer.") |
| 2220 |
|
| 2221 |
(docfun oddp function (integer) " |
| 2222 |
Returns T if INTEGER is an odd number; NIL otherwise.") |
| 2223 |
|
| 2224 |
(docfun open function (filespec &key (direction :input) element-type |
| 2225 |
if-exists if-does-not-exist) " |
| 2226 |
Opens the specified file and returns a file stream to/from the file. |
| 2227 |
|
| 2228 |
FILESPEC may be a symbol, a string, a pathname, or a file stream. |
| 2229 |
|
| 2230 |
DIRECTION may be :INPUT, :OUTPUT, :IO, or :PROBE. |
| 2231 |
|
| 2232 |
IF-EXISTS specifies what to do when DIRECTION is either :OUTPUT or :IO and the |
| 2233 |
specified file exists already. It may be :ERROR (the |
| 2234 |
default), :NEW-VERSION, :RENAME, :RENAME-AND-DELETE, :OVERWRITE, :APPEND, :TRUNCATE |
| 2235 |
:SUPERSEDE, or NIL. |
| 2236 |
|
| 2237 |
IF-DOES-NOT-EXIST specifies what to do when the specified file does |
| 2238 |
not exists. It may be :ERROR (the default when DIRECTION |
| 2239 |
is :INPUT), :CREATE (the default when DIRECTION is either :OUTPUT |
| 2240 |
or :IO), or NIL.") |
| 2241 |
|
| 2242 |
(docfun ext:make-pipe function () |
| 2243 |
"Creates a pipe in the form of a two-way stream that can be used for |
| 2244 |
interprocess and interthread communication.") |
| 2245 |
|
| 2246 |
(docfun or macro (&rest forms) " |
| 2247 |
Evaluates FORMs in order from left to right. If any FORM evaluates to non- |
| 2248 |
NIL, quits and returns that (single) value. If the last FORM is reached, |
| 2249 |
returns whatever values it returns.") |
| 2250 |
|
| 2251 |
(docfun ext::octets-to-string function (input &key |
| 2252 |
(external-format :default) |
| 2253 |
(start 0) |
| 2254 |
(end nil)) " |
| 2255 |
Decode a sequence of octets into a string according to the given |
| 2256 |
external format. The bounding index designators start and end optionally |
| 2257 |
denote a subsequence to be decoded. |
| 2258 |
") |
| 2259 |
|
| 2260 |
(docfun output-stream-p function (stream) " |
| 2261 |
Returns T if STREAM can handle output operations; NIL otherwise.") |
| 2262 |
|
| 2263 |
(doctype package " |
| 2264 |
A package object serves as a name space of symbols. A package is notated as |
| 2265 |
#<s package> where S is actually the name of the package. ECL provides five |
| 2266 |
built-in packages: |
| 2267 |
lisp standard symbols of Common Lisp. |
| 2268 |
user the package that the user uses by default. |
| 2269 |
keyword keyword symbols. |
| 2270 |
system system internal symbols. Has nicknames SYS and SI. |
| 2271 |
compiler system internal symbols for the ECL compiler.") |
| 2272 |
|
| 2273 |
(docfun ext:package-lock function |
| 2274 |
(package-designator lock) " |
| 2275 |
Sets package's lock to LOCK. Returns previous lock value.") |
| 2276 |
|
| 2277 |
(docfun ext:package-locked-p function |
| 2278 |
(package-designator) " |
| 2279 |
Returns T when PACKAGE is locked, NIL otherwise.") |
| 2280 |
|
| 2281 |
(docfun ext:package-local-nicknames function |
| 2282 |
(package-designator) " |
| 2283 |
Returns an alist of (LOCAL-NICKNAME . ACTUAL-PACKAGE) |
| 2284 |
describing the nicknames local to the designated package.") |
| 2285 |
|
| 2286 |
(docfun ext:package-locally-nicknamed-by-list function |
| 2287 |
(package-designator) " |
| 2288 |
Returns a list of packages which have a local nickname for the |
| 2289 |
designated package.") |
| 2290 |
|
| 2291 |
(docfun ext:add-package-local-nickname function |
| 2292 |
(local-nickname actul-package &optional package-designator) " |
| 2293 |
Adds LOCAL-NICKNAME for ACTUAL-PACKAGE in the designated package, |
| 2294 |
defaulting to current package. LOCAL-NICKNAME must be a string |
| 2295 |
designator, and ACTUAL-PACKAGE must be a package designator.") |
| 2296 |
|
| 2297 |
(docfun ext:remove-package-local-nickname function |
| 2298 |
(old-nickname &optional package-designator) " |
| 2299 |
If the designated package had OLD-NICKNAME as a local nickname |
| 2300 |
for another package, it is removed. Returns true if the nickname |
| 2301 |
existed and was removed, and NIL otherwise.") |
| 2302 |
|
| 2303 |
(docfun package-name function (package) " |
| 2304 |
Returns the name of PACKAGE as a string.") |
| 2305 |
|
| 2306 |
(docfun package-nicknames function (package) " |
| 2307 |
Returns the nicknames of PACKAGE as a list of strings.") |
| 2308 |
|
| 2309 |
(docfun package-shadowing-symbols function (package) " |
| 2310 |
Returns, as a list, those symbols in PACKAGE that are shadowing symbols in |
| 2311 |
other packages.") |
| 2312 |
|
| 2313 |
(docfun package-use-list function (package) " |
| 2314 |
Returns, as a list, those packages that PACKAGE uses.") |
| 2315 |
|
| 2316 |
(docfun package-used-by-list function (package) " |
| 2317 |
Returns, as a list, those packages that use PACKAGE.") |
| 2318 |
|
| 2319 |
(docfun packagep function (x) " |
| 2320 |
Returns T if X is a package object; NIL otherwise.") |
| 2321 |
|
| 2322 |
(docfun pairlis function (keys items &optional (alist nil)) " |
| 2323 |
Conses each KEY and the corresponding ITEM, adds them to ALIST, and returns |
| 2324 |
the result. KEYS and ITEMS must be of the same length.") |
| 2325 |
|
| 2326 |
(docfun parse-integer function (string |
| 2327 |
&key (start 0) (end (length string)) (radix 10) (junk-allowed nil)) " |
| 2328 |
Parses STRING for an integer and returns it. As the second value, returns the |
| 2329 |
index to the character next to the last character that is parsed. If JUNK- |
| 2330 |
ALLOWED is non-NIL, ignores white spaces before and after the number |
| 2331 |
representation in STRING and returns NIL even if STRING is not parsed |
| 2332 |
successfully.") |
| 2333 |
|
| 2334 |
(docfun parse-namestring function (string &optional host defaults &key (start 0) end (junk-allowed nil)) " |
| 2335 |
Parses STRING and returns a pathname. As the second value, returns the index |
| 2336 |
to the character next to the last character that has been parsed. STRING is |
| 2337 |
usually a string object but it may be a symbol, a pathname, or a file stream. |
| 2338 |
START and END are meaningful only when STRING is a string or a symbol. They |
| 2339 |
default to 0 and (length (string FILESPEC)) respectively. When the parsing is |
| 2340 |
failed, signals an error (if JUNK-ALLOWED is NIL) or simply returns NIL. HOST |
| 2341 |
and DEFAULTS are simply ignored in ECL.") |
| 2342 |
|
| 2343 |
(doctype pathname " |
| 2344 |
A pathname object identifies an external file or a collection of external |
| 2345 |
files. A pathname object consists of six slots, HOST, DEVICE, DIRECTORY, |
| 2346 |
NAME, and TYPE. HOST, DEVICE, and VERSION slots are meaningless in ECL, |
| 2347 |
though they are harmless at all. |
| 2348 |
A pathname is notated as #\\\"...\", where '...' is actually some information |
| 2349 |
on the pathname. This depends on the version of ECL. Refer to the ECL Report |
| 2350 |
for details.") |
| 2351 |
|
| 2352 |
(docfun pathname function (filespec) " |
| 2353 |
Returns a pathname specified by FILESPEC. FILESPEC may be a symbol, a string, |
| 2354 |
a pathname, or a file stream.") |
| 2355 |
|
| 2356 |
(docfun pathname-device function (filespec) " |
| 2357 |
Returns the device slot of the pathname specified by FILESPEC. FILESPEC may |
| 2358 |
be a symbol, a string, a pathname, or a file stream.") |
| 2359 |
|
| 2360 |
(docfun pathname-directory function (filespec) " |
| 2361 |
Returns the directory slot of the pathname specified by FILESPEC. FILESPEC |
| 2362 |
may be a symbol, a string, a pathname, or a file stream.") |
| 2363 |
|
| 2364 |
(docfun pathname-host function (filespec) " |
| 2365 |
Returns the host slot of the pathname specified by FILESPEC. FILESPEC may be |
| 2366 |
a symbol, a string, a pathname, or a file stream.") |
| 2367 |
|
| 2368 |
(docfun pathname-name function (filespec) " |
| 2369 |
Returns the name slot of the pathname specified by FILESPEC. FILESPEC may be |
| 2370 |
a symbol, a string, a pathname, or a file stream.") |
| 2371 |
|
| 2372 |
(docfun pathname-type function (filespec) " |
| 2373 |
Returns the type slot of the pathname specified by FILESPEC. FILESPEC may be |
| 2374 |
a symbol, a string, a pathname, or a file stream.") |
| 2375 |
|
| 2376 |
(docfun pathname-version function (filespec) " |
| 2377 |
Returns the version slot of the pathname specified by FILESPEC. FILESPEC may |
| 2378 |
be a symbol, a string, a pathname, or a file stream.") |
| 2379 |
|
| 2380 |
(docfun pathnamep function (x) " |
| 2381 |
Returns T if X is a pathname object; NIL otherwise.") |
| 2382 |
|
| 2383 |
(docfun peek-char function (&optional (char-spec nil) (stream *standard-input*) |
| 2384 |
(eof-error-p t) (eof-value nil) (recursive-p nil)) " |
| 2385 |
Reads characters from STREAM until the specified character is read. Returns |
| 2386 |
the last character but leaves it in STREAM. CHAR-SPEC may be a character |
| 2387 |
object, T (specifies non-whitespace characters), or NIL (specifies all |
| 2388 |
characters).") |
| 2389 |
|
| 2390 |
(docvar pi constant " |
| 2391 |
The float that is approximately equal to the ratio of the circumference of the |
| 2392 |
circle to the diameter.") |
| 2393 |
|
| 2394 |
(docfun si::pointer function (object) " |
| 2395 |
ECL specific. |
| 2396 |
Returns the address of the OBJECT as a fixnum.") |
| 2397 |
|
| 2398 |
(docfun plusp function (number) " |
| 2399 |
Returns T if NUMBER is positive; NIL otherwise.") |
| 2400 |
|
| 2401 |
(docfun position function (item sequence |
| 2402 |
&key (key '#'identity) (test '#'eql) test-not |
| 2403 |
(start 0) (end (length sequence)) (from-end nil)) " |
| 2404 |
Returns the index to the first element in SEQUENCE that is equal to ITEM in |
| 2405 |
the sense of TEST. Returns NIL if no such element exists.") |
| 2406 |
|
| 2407 |
(docfun position-if function (test sequence |
| 2408 |
&key (key '#'identity) (start 0) (end (length sequence)) (from-end nil)) " |
| 2409 |
Returns the index to the first element in SEQUENCE that satisfies TEST. |
| 2410 |
Returns NIL if no such element exists.") |
| 2411 |
|
| 2412 |
(docfun position-if-not function (test sequence |
| 2413 |
&key (key '#'identity) (start 0) (end (length sequence)) (from-end nil)) " |
| 2414 |
Returns the index to the first element in SEQUENCE that does not satisfy TEST. |
| 2415 |
Returns NIL if no such element exists.") |
| 2416 |
|
| 2417 |
(docfun pprint function (object &optional (stream *standard-output*)) " |
| 2418 |
Pretty-prints OBJECT. Returns no values. Equivalent to |
| 2419 |
(PROGN (WRITE OBJECT :STREAM STREAM :PRETTY T :ESCAPE T) |
| 2420 |
(VALUES)) |
| 2421 |
The SI::PRETTY-PRINT-FORMAT property N (which must be a non-negative integer) |
| 2422 |
of a symbol SYMBOL controls the pretty-printing of form |
| 2423 |
(SYMBOL f1 ... fN fN+1 ... fM) |
| 2424 |
in such a way that the subforms fN+1, ..., fM are regarded as the 'body' of |
| 2425 |
the entire form. For instance, the property value of 2 is initially given to |
| 2426 |
the symbol DO.") |
| 2427 |
|
| 2428 |
(docfun prin1 function (object &optional (stream *standard-output*)) " |
| 2429 |
Prints OBJECT in the way that the output can be reread later if possible. |
| 2430 |
Returns OBJECT. Equivalent to (WRITE OBJECT :STREAM STREAM :ESCAPE T).") |
| 2431 |
|
| 2432 |
(docfun princ function (object &optional (stream *standard-output*)) " |
| 2433 |
Prints OBJECT without escape characters. Returns OBJECT. Equivalent to |
| 2434 |
(WRITE OBJECT :STREAM STREAM :ESCAPE NIL).") |
| 2435 |
|
| 2436 |
(docfun print function (object &optional (stream *standard-output*)) " |
| 2437 |
Outputs a newline character, and then PRIN1s OBJECT. Returns OBJECT. |
| 2438 |
Equivalent to |
| 2439 |
(PROGN (TERPRI STREAM) |
| 2440 |
(WRITE OBJECT :STREAM STREAM :ESCAPE T))") |
| 2441 |
|
| 2442 |
(docfun probe-file function (filespec) " |
| 2443 |
Returns the full pathname of the specified file if it exists. Returns NIL |
| 2444 |
otherwise. FILESPEC may be a symbol, a string, a pathname, or a file stream.") |
| 2445 |
|
| 2446 |
(docfun progn special (&body forms) " |
| 2447 |
Evaluates FORMs in order, and returns all values of the last FORM. Returns |
| 2448 |
NIL if no FORM is given.") |
| 2449 |
|
| 2450 |
(docfun progv special (symbols-form values-form &body forms) " |
| 2451 |
Evaluates SYMBOLS-FORM and VALUES-FORM. The value of SYMBOLS-FORM must be a |
| 2452 |
list of symbols (S1 ... Sn) and the value of VALUES-FORM must be a list |
| 2453 |
(V1 ... Vm). Binds each Si to Vi or to NIL if i > m. Then evaluates FORMs |
| 2454 |
and returns all values of the last FORM. Returns NIL if no FORM is given.") |
| 2455 |
|
| 2456 |
(docfun quote special (x) " |
| 2457 |
Simply returns X without evaluating it.") |
| 2458 |
|
| 2459 |
(docfun random function (number &optional (random-state *random-state*)) " |
| 2460 |
Creates and returns a random number by using RANDOM-STATE. NUMBER must be |
| 2461 |
either a positive integer or a positive float. If NUMBER is a positive |
| 2462 |
integer, returns a positive integer less than NUMBER. If NUMBER is a positive |
| 2463 |
float, returns a positive float less than NUMBER in the same float format as |
| 2464 |
NUMBER.") |
| 2465 |
|
| 2466 |
(doctype random-state " |
| 2467 |
A random-state object stores information used to generate random numbers. A |
| 2468 |
random-state is notated as '#$' followed by a certain number.") |
| 2469 |
|
| 2470 |
(docfun random-state-p function (x) " |
| 2471 |
Returns T if X is a random-state object; NIL otherwise.") |
| 2472 |
|
| 2473 |
(docfun rassoc function (item alist &key (test '#'eql) test-not (key '#'identity)) " |
| 2474 |
Returns the first pair in ALIST whose cdr is equal (in the sense of TEST) to |
| 2475 |
ITEM. Returns NIL if no such pair exists. |
| 2476 |
The function KEY is applied to extract the key for comparison.") |
| 2477 |
|
| 2478 |
(doctype ratio " |
| 2479 |
A ratio is notated by its numerator and denominator, separated by a slash '/'. |
| 2480 |
Normally, a ratio is notated in radix 10 (see *PRINT-BASE* and *READ-BASE*) as |
| 2481 |
[sign] {digit}+ / {digit}+ |
| 2482 |
where DIGIT is a decimal digit ('0', ..., '9') and SIGN is either '+' or '-'. |
| 2483 |
Also, the following syntax is used to notate the radix explicitly. |
| 2484 |
# radix {r | R} [sign] {digit}+ / {digit}+ |
| 2485 |
where RADIX is one of '2', '3', ..., '36' and DIGIT is a digit in radix RADIX: |
| 2486 |
Digits in radix 2 are '0' and '1' |
| 2487 |
Digits in radix 8 are '0', ..., '7' |
| 2488 |
Digits in radix 16 are '0', ..., '9', 'a', ..., 'f', and 'A', ..., 'F' |
| 2489 |
The following syntax is also available for radix 2, 8, 10, and 16. |
| 2490 |
# {b | B} [sign] {digit}+ / {digit}+ |
| 2491 |
# {o | O} [sign] {digit}+ / {digit}+ |
| 2492 |
# {x | X} [sign] {digit}+ / {digit}+") |
| 2493 |
|
| 2494 |
(docfun rational function (real) " |
| 2495 |
Converts REAL into rational accurately and returns the result.") |
| 2496 |
|
| 2497 |
(docfun rationalize function (real) " |
| 2498 |
Converts REAL into rational approximately and returns the result.") |
| 2499 |
|
| 2500 |
(doctype rational " |
| 2501 |
A ratio is either an integer or a ratio.") |
| 2502 |
|
| 2503 |
(docfun rationalp function (x) " |
| 2504 |
Returns T if X is an integer or a ratio; NIL otherwise.") |
| 2505 |
|
| 2506 |
(docfun read function (&optional (stream *standard-input*) |
| 2507 |
(eof-error-p t) (eof-value nil) (recursivep nil)) " |
| 2508 |
Reads an object from STREAM and returns the object.") |
| 2509 |
|
| 2510 |
(docfun read-byte function (stream &optional (eof-error-p t) (eof-value nil)) " |
| 2511 |
Reads one byte from STREAM and returns it as an integer.") |
| 2512 |
|
| 2513 |
(docfun read-char function (&optional (stream *standard-input*) |
| 2514 |
(eof-error-p t) (eof-value nil) (recursive-p nil)) " |
| 2515 |
Reads a character from STREAM and returns it.") |
| 2516 |
|
| 2517 |
(docfun read-char-no-hang function (&optional (stream *standard-input*) |
| 2518 |
(eof-error-p t) (eof-value nil) (recursive-p nil)) " |
| 2519 |
Returns the next character from STREAM if one is available; NIL otherwise.") |
| 2520 |
|
| 2521 |
(docfun read-delimited-list function (char &optional (stream *standard-input*) (recursive-p nil)) " |
| 2522 |
Reads objects from STREAM until the next character after an object's |
| 2523 |
representation is CHAR. Returns all objects read, as a list.") |
| 2524 |
|
| 2525 |
(docfun read-line function (&optional (stream *standard-input*) |
| 2526 |
(eof-error-p t) (eof-value nil) (recursive-p nil)) " |
| 2527 |
Reads a line of characters from STREAM and returns them as a string. The |
| 2528 |
newline character at the end of the line will be discarded.") |
| 2529 |
|
| 2530 |
(docfun read-preserving-whitespace function (&optional (stream *standard-input*) |
| 2531 |
(eof-error-p t) (eof-value nil) (recursive-p nil)) " |
| 2532 |
Reads an object from STREAM and returns the object. Unlike READ, always |
| 2533 |
leaves the character next to the object's representation.") |
| 2534 |
|
| 2535 |
(doctype readtable " |
| 2536 |
A readtable defines the syntax used to read objects. |
| 2537 |
Each readtable object remembers the syntactic class of each character. The |
| 2538 |
following syntactic classes are supported. The characters in parenthesis |
| 2539 |
below are those standard characters that belong to each syntactic class as |
| 2540 |
defined in the standard readtable. |
| 2541 |
white-space (space and newline) |
| 2542 |
single-escape ( \\ ) |
| 2543 |
multiple-escape ( | ) |
| 2544 |
macro-character ( \" # ' ( ) , ; ` ) |
| 2545 |
constituent (the others) |
| 2546 |
For each macro-character, the readtable remembers the definition of the |
| 2547 |
associated read macro and the non-terminating-p flag. In the standard |
| 2548 |
readtable, only single-quote is non-terminating. Dispatch macro characters |
| 2549 |
are classified to macro-characters. A readtable is notated as |
| 2550 |
#<readtable n> |
| 2551 |
where N is actually a number that identifies the readtable.") |
| 2552 |
|
| 2553 |
(docfun readtablep function (x) " |
| 2554 |
Returns T if X is a readtable object; NIL otherwise.") |
| 2555 |
|
| 2556 |
(docfun realpart function (number) " |
| 2557 |
Returns the realpart of NUMBER if it is a complex. Otherwise, returns NUMBER.") |
| 2558 |
|
| 2559 |
(docfun reduce function (function sequence |
| 2560 |
&key (from-end nil) (start 0) (end (length sequence)) initial-value) " |
| 2561 |
Combines all the elements of SEQUENCE using the binary operation FUNCTION.") |
| 2562 |
|
| 2563 |
(docfun rem function (number divisor) " |
| 2564 |
Returns the second value of (TRUNCATE NUMBER DIVISOR), i.e. the value of |
| 2565 |
(- NUMBER (* (TRUNCATE NUMBER DIVISOR) DIVISOR))") |
| 2566 |
|
| 2567 |
(docfun remhash function (key hash-table) " |
| 2568 |
Removes the entry for KEY in HASH-TABLE. Returns T if such an entry existed; |
| 2569 |
NIL otherwise.") |
| 2570 |
|
| 2571 |
(docfun remove function (item sequence |
| 2572 |
&key (key '#'identity) (test '#'eql) test-not |
| 2573 |
(start 0) (end (length sequence)) |
| 2574 |
(count most-positive-fixnum) (from-end nil)) " |
| 2575 |
Returns a copy of SEQUENCE with those elements equal to ITEM (in the sense of |
| 2576 |
TEST) removed.") |
| 2577 |
|
| 2578 |
(docfun remove-if function (test sequence |
| 2579 |
&key (key '#'identity) (start 0) (end (length sequence)) |
| 2580 |
(count most-positive-fixnum) (from-end nil)) " |
| 2581 |
Returns a copy of SEQUENCE with elements satisfying TEST removed.") |
| 2582 |
|
| 2583 |
(docfun remove-if-not function (test sequence |
| 2584 |
&key (key '#'identity) (start 0) (end (length sequence)) |
| 2585 |
(count most-positive-fixnum) (from-end nil)) " |
| 2586 |
Returns a copy of SEQUENCE with elements not satisfying TEST removed.") |
| 2587 |
|
| 2588 |
(docfun remprop function (symbol indicator) " |
| 2589 |
Removes the specified property from the property list associated with SYMBOL. |
| 2590 |
Returns T if the property list had the specified property; NIL otherwise.") |
| 2591 |
|
| 2592 |
(docfun rename-file function (filespec new-filespec &key (if-exists :error)) " |
| 2593 |
Renames the file specified by FILESPEC as specified by NEW-FILESPEC. Returns |
| 2594 |
as three values the new pathname, the old full pathname, and the new full |
| 2595 |
pathname. FILESPEC and NEW-FILESPEC may be a symbol, a string, a pathname, or |
| 2596 |
a file stream. |
| 2597 |
|
| 2598 |
:IF-EXISTS is an ECL-specific extension that modifies the behavior of rename-file |
| 2599 |
if new-filespec already exists. It may be :ERROR (the default), NIL, :SUPERSEDE, |
| 2600 |
or T.") |
| 2601 |
|
| 2602 |
(docfun rename-package function (package new-name &optional (new-nicknames nil)) " |
| 2603 |
Renames PACKAGE to NEW-NAME and replaces the nicknames with NEW-NICKNAMES. |
| 2604 |
See MAKE-PACKAGE.") |
| 2605 |
|
| 2606 |
(docfun replace function (sequence1 sequence2 |
| 2607 |
&key (start1 0) (end1 (length sequence1)) |
| 2608 |
(start2 0) (end2 (length sequence2))) " |
| 2609 |
Replaces elements of SEQUENCE1 with the corresponding elements of SEQUENCE2. |
| 2610 |
SEQUENCE1 may be destroyed and is returned.") |
| 2611 |
|
| 2612 |
(docfun rest function (x) " |
| 2613 |
Equivalent to CDR.") |
| 2614 |
|
| 2615 |
(docfun return macro (&optional result) " |
| 2616 |
Terminates execution of the lexically surrounding NIL block and returns all |
| 2617 |
values of RESULT (which defaults to NIL) as the values of the terminated |
| 2618 |
block.") |
| 2619 |
|
| 2620 |
(docfun return-from special (symbol &optional result) " |
| 2621 |
Terminates execution of the lexically surrounding block named SYMBOL and |
| 2622 |
returns all values of RESULT (which defaults to NIL) as the values of the |
| 2623 |
terminated block.") |
| 2624 |
|
| 2625 |
(docfun revappend function (x y) " |
| 2626 |
Equivalent to (APPEND (REVERSE X) Y)") |
| 2627 |
|
| 2628 |
(docfun reverse function (sequence) " |
| 2629 |
Returns a new sequence containing the same elements as SEQUENCE but in the |
| 2630 |
reverse order.") |
| 2631 |
|
| 2632 |
(docfun round function (number &optional (divisor 1)) " |
| 2633 |
Returns the integer nearest to NUMBER/DIVISOR. Returns the value of (- NUMBER |
| 2634 |
(* first-value DIVISOR)) as the second value.") |
| 2635 |
|
| 2636 |
(docfun rplaca function (cons x) " |
| 2637 |
Replaces the car of CONS with X, and returns the modified CONS.") |
| 2638 |
|
| 2639 |
(docfun rplacd function (cons x) " |
| 2640 |
Replaces the cdr of CONS with X, and returns the modified CONS.") |
| 2641 |
|
| 2642 |
(docfun save function (filespec) " |
| 2643 |
ECL specific. |
| 2644 |
Saves the current ECL core image into a program file specified by PATHNAME. |
| 2645 |
FILESPEC may be a symbol, a string, a pathname, or a file stream. This |
| 2646 |
function depends on the version of ECL. See ECL Report for details.") |
| 2647 |
|
| 2648 |
(docfun system function (command) " |
| 2649 |
ECL specific. |
| 2650 |
Executes a Shell command as if the string COMMAND is an input to the Shell. |
| 2651 |
On return from the Shell command, it returns the exit code |
| 2652 |
of the command as an integer.") |
| 2653 |
|
| 2654 |
(docfun scale-float function (float integer) " |
| 2655 |
Returns the value of (* FLOAT (expt (float-radix FLOAT) INTEGER)).") |
| 2656 |
|
| 2657 |
(docfun schar function (simple-string n) " |
| 2658 |
Returns the character object representing the N-th character in SIMPLE-STRING. |
| 2659 |
This is faster than CHAR.") |
| 2660 |
|
| 2661 |
(docfun second function (x) " |
| 2662 |
Equivalent to CADR.") |
| 2663 |
|
| 2664 |
(docfun set function (symbol object) " |
| 2665 |
Assigns OBJECT to the global variable named SYMBOL. Returns OBJECT.") |
| 2666 |
|
| 2667 |
(docfun set-char-bit function (char bit-name flag) " |
| 2668 |
Returns a character with the same code and attributes as CHAR except the |
| 2669 |
bit specified by BIT-NAME is on (if FLAG is non-NIL) or off. In ECL, the |
| 2670 |
bit-attributes handled are :control :meta :super and :hyper") |
| 2671 |
|
| 2672 |
|
| 2673 |
(docfun set-dispatch-macro-character function (char subchar function &optional (readtable *readtable*)) " |
| 2674 |
Replaces FUNCTION for the read macro of SUBCHAR associated with the dispatch |
| 2675 |
macro character CHAR in READTABLE. When the ECL reader reads an object that |
| 2676 |
begins with CHAR followed by SUBCHAR, it calls FUNCTION with the input stream, |
| 2677 |
SUBCHAR, and NIL as arguments. When the ECL reader reads an object that |
| 2678 |
begins with CHAR, followed by a decimal representation of a number N, followed |
| 2679 |
by SUB-CHAR, it calls FUNCTION with N as the third argument. In both cases, |
| 2680 |
if FUNCTION returns a single value, then that value is returned as the value |
| 2681 |
of the reader. If FUNCTION returns no value, then the reader tries to read an |
| 2682 |
object again. See MAKE-DISPATCH-MACRO-CHARACTER and GET-DISPATCH-MACRO- |
| 2683 |
CHARACTER.") |
| 2684 |
|
| 2685 |
(docfun si::set-hole-size function (fixnum) " |
| 2686 |
ECL specific. |
| 2687 |
Sets the size of the memory hole (in pages).") |
| 2688 |
|
| 2689 |
(docfun set-macro-character function (char function |
| 2690 |
&optional (non-terminating-p nil) (readtable *readtable*)) " |
| 2691 |
Registers CHAR as a macro character in READTABLE and makes FUNCTION the read |
| 2692 |
macro associated with CHAR. When the ECL reader reads an object that begins |
| 2693 |
with CHAR, it calls FUNCTION with the input stream and CHAR as arguments. If |
| 2694 |
FUNCTION returns a single value, it is returned as the value of the reader. |
| 2695 |
If FUNCTION returns no value, then the reader tries to read an object again. |
| 2696 |
NON-TERMINATING-P specifies whether CHAR is non-terminating or not (see |
| 2697 |
READTABLE). |
| 2698 |
Use GET-MACRO-CHARACTER to get the read macro associated with a character.") |
| 2699 |
|
| 2700 |
(docfun set-syntax-from-char function (to-char from-char |
| 2701 |
&optional (to-readtable *readtable*) (from-readtable nil)) " |
| 2702 |
Replaces the information for TO-CHAR in TO-READTABLE with the information for |
| 2703 |
FROM-CHAR in FROM-READTABLE. If FROM-READTABLE is NIL, then the standard |
| 2704 |
readtable is used. TO-CHAR belongs to the same syntactic class as FROM-CHAR, |
| 2705 |
and if FROM-CHAR is a macro character, TO-CHAR inherits the read macro and |
| 2706 |
non-terminating-p flag of FROM-CHAR. See READTABLE.") |
| 2707 |
|
| 2708 |
(docfun setq special (&rest var-form-pairs) " |
| 2709 |
Syntax: (setq {var form}*) |
| 2710 |
|
| 2711 |
Evaluates each FORM and assigns the value to VAR in order. Returns the value |
| 2712 |
of the last FORM.") |
| 2713 |
|
| 2714 |
(docfun seventh function (x) " |
| 2715 |
Equivalent to (CADDR (CDDDDR X)).") |
| 2716 |
|
| 2717 |
(docfun shadow function (symbol &optional (package *package*)) " |
| 2718 |
If no symbol is registered in PACKAGE with the same name as SYMBOL, then |
| 2719 |
creates an internal symbol with the same name and registers it into PACKAGE. |
| 2720 |
The created symbol shadows external symbols of the same name in those packages |
| 2721 |
that PACKAGE uses. SYMBOL may be a list of symbols.") |
| 2722 |
|
| 2723 |
(docfun shadowing-import function (symbol &optional (package *package*)) " |
| 2724 |
Registers SYMBOL as an internal symbol of PACKAGE. Does nothing if SYMBOL is |
| 2725 |
already registered in PACKAGE. If there exists already a symbol in PACKAGE |
| 2726 |
with the same name, then uninterns the symbol first. SYMBOL shadows external |
| 2727 |
symbols of the same name in those packages that PACKAGE uses. SYMBOL may be a |
| 2728 |
list of symbols.") |
| 2729 |
|
| 2730 |
(doctype short-float " |
| 2731 |
A short-float is a short-precision floating point number.") |
| 2732 |
|
| 2733 |
(doctype simple-array " |
| 2734 |
A simple-array is an array that is not displaced to another array, has no |
| 2735 |
fill-pointer, and is not adjustable.") |
| 2736 |
|
| 2737 |
(docfun simple-bit-vector-p function (x) " |
| 2738 |
Returns T if X is a simple-bit-vector; NIL otherwise.") |
| 2739 |
|
| 2740 |
(docfun simple-string-p function (x) " |
| 2741 |
Returns T if X is a simple-string; NIL otherwise.") |
| 2742 |
|
| 2743 |
(docfun simple-vector-p function (x) " |
| 2744 |
Returns T if X is a simple-vector; NIL otherwise.") |
| 2745 |
|
| 2746 |
(docfun sin function (radians) " |
| 2747 |
Returns the sine of RADIANS.") |
| 2748 |
|
| 2749 |
(doctype single-float " |
| 2750 |
A single-float is a single-precision floating point number. |
| 2751 |
SINGLE-FLOAT as a type specifier is equivalent to LONG-FLOAT in ECL.") |
| 2752 |
|
| 2753 |
(docfun sinh function (number) " |
| 2754 |
Returns the hyperbolic sine of NUMBER.") |
| 2755 |
|
| 2756 |
(docfun sixth function (x) " |
| 2757 |
Equivalent to (CADR (CDDDDR X)).") |
| 2758 |
|
| 2759 |
(docfun sleep function (n) " |
| 2760 |
Suspends execution for N seconds. N may be any non-negative, non-complex |
| 2761 |
number.") |
| 2762 |
|
| 2763 |
#+clos |
| 2764 |
(docfun si::sl-boundp function (object) " |
| 2765 |
ECL/CLOS specific. |
| 2766 |
Returns nil if the OBJECT is not null.") |
| 2767 |
|
| 2768 |
#+clos |
| 2769 |
(docfun si::sl-makunbound function (instance index) " |
| 2770 |
ECL/CLOS specific. |
| 2771 |
Removes the value associated with the INDEX-th slot of INSTANCE.") |
| 2772 |
|
| 2773 |
(docfun special-operator-p function (symbol) " |
| 2774 |
Returns T if SYMBOL names a special form; NIL otherwise. |
| 2775 |
The special forms defined in Common Lisp are: |
| 2776 |
block if progv |
| 2777 |
catch labels quote |
| 2778 |
compiler-let let return-from |
| 2779 |
declare let* setq |
| 2780 |
eval-when macrolet tagbody |
| 2781 |
flet multiple-value-call the |
| 2782 |
function multiple-value-prog1 throw |
| 2783 |
go progn unwind-protect |
| 2784 |
In addition, ECL implements the following macros as special forms, though of |
| 2785 |
course macro-expanding functions such as MACROEXPAND work correctly for these |
| 2786 |
macros. |
| 2787 |
and incf prog1 |
| 2788 |
case locally prog2 |
| 2789 |
cond loop psetq |
| 2790 |
decf multiple-value-bind push |
| 2791 |
defmacro multiple-value-list return |
| 2792 |
defun multiple-value-set setf |
| 2793 |
do or unless |
| 2794 |
do* pop when |
| 2795 |
dolist prog |
| 2796 |
dotimes prog*") |
| 2797 |
|
| 2798 |
(docfun si::specialp function (symbol) " |
| 2799 |
ECL specific. |
| 2800 |
Returns T if the SYMBOL names a globally special variable; NIL otherwise.") |
| 2801 |
|
| 2802 |
(docfun sqrt function (number) " |
| 2803 |
Returns the square root of the arg.") |
| 2804 |
|
| 2805 |
(doctype standard-char " |
| 2806 |
A standard-char is a space character (#\\Space), a newline character |
| 2807 |
(#\\Newline,) or a character that represents one of the following letters. |
| 2808 |
! \" # $ % & ' ( ) * + , - . / 0 1 2 3 4 |
| 2809 |
5 6 7 8 9 : ; < = > ? @ A B C D E F G H |
| 2810 |
I J K L M N O P Q R S T U V W X Y Z [ \\ |
| 2811 |
] ^ _ ` a b c d e f g h i j k l m n o p |
| 2812 |
q r s t u v w x y z { | } ~~") |
| 2813 |
|
| 2814 |
(docfun standard-char-p function (char) " |
| 2815 |
Returns T if CHAR is a standard-char; NIL otherwise.") |
| 2816 |
|
| 2817 |
(doctype stream " |
| 2818 |
A stream is a source of input or a destination of output. The following kinds |
| 2819 |
of streams are supported. |
| 2820 |
file streams |
| 2821 |
string-input streams |
| 2822 |
string-output streams |
| 2823 |
two-way streams |
| 2824 |
echo streams |
| 2825 |
synonym streams |
| 2826 |
concatenated streams |
| 2827 |
broadcast streams |
| 2828 |
Basically, file streams are created by OPEN and other kinds of streams are |
| 2829 |
created by MAKE-...-STREAM. See these functions.") |
| 2830 |
|
| 2831 |
(docfun stream-element-type function (stream) " |
| 2832 |
Returns the type specifier for the io unit of STREAM.") |
| 2833 |
|
| 2834 |
(docfun streamp function (x) " |
| 2835 |
Returns T if X is a stream object; NIL otherwise.") |
| 2836 |
|
| 2837 |
;;; CLOS Streams ------------------------------------------------------------ |
| 2838 |
|
| 2839 |
#+CLOS-STREAMS |
| 2840 |
(docfun stream-read-char method ((obj stream-class)) " |
| 2841 |
Reads the next character object from the CLOS stream OBJ.") |
| 2842 |
|
| 2843 |
#+CLOS-STREAMS |
| 2844 |
(docfun stream-read-line method ((obj stream-class) &rest make-array-options) " |
| 2845 |
Reads character objects from the CLOS stream OBJ, up to and including the |
| 2846 |
next newline character, and returns them as a string (without the newline). |
| 2847 |
If given, the MAKE-ARRAY-OPTIONS arguments are passed to make-array |
| 2848 |
when the returned string is created.") |
| 2849 |
|
| 2850 |
#+CLOS-STREAMS |
| 2851 |
(docfun stream-unread-char method ((obj stream-class) character) " |
| 2852 |
Unreads the character object. |
| 2853 |
CHARACTER will be the next character read by STREAM-READ-CHAR .") |
| 2854 |
|
| 2855 |
#+CLOS-STREAMS |
| 2856 |
(docfun stream-peek-char method ((obj stream-class) peek-type) " |
| 2857 |
Returns the character object which would be returned by STREAM-READ-CHAR |
| 2858 |
but does not remove it from the input buffer. |
| 2859 |
If PEEK-TYPE is T, stream-peek-char skips over any whitespace characters, |
| 2860 |
removing them from the input buffer, and returns the next character.") |
| 2861 |
|
| 2862 |
#+CLOS-STREAMS |
| 2863 |
(docfun stream-listen method ((obj stream-class)) " |
| 2864 |
Returns NIL if no character is immediately available from the CLOS stream. |
| 2865 |
Otherwise, the next character is returned, as if stream-peek-char |
| 2866 |
had been called.") |
| 2867 |
|
| 2868 |
#+CLOS-STREAMS |
| 2869 |
(docfun stream-clear-input method ((obj stream-class)) " |
| 2870 |
Clears any buffered characters received from the CLOS stream OBJ. |
| 2871 |
Returns NIL.") |
| 2872 |
|
| 2873 |
#+CLOS-STREAMS |
| 2874 |
(docfun stream-write-char method ((obj stream-class) character) " |
| 2875 |
Outputs the CHARACTER to the CLOS stream OBJ and returns the CHARACTER.") |
| 2876 |
|
| 2877 |
#+CLOS-STREAMS |
| 2878 |
(docfun stream-write-string method ((obj stream-class) string &optional start end) " |
| 2879 |
Outputs characters in the STRING to the CLOS stream OBJ and returns the |
| 2880 |
STRING. The START and END arguments, if given, indicate a substring that |
| 2881 |
is to be output.") |
| 2882 |
|
| 2883 |
#+CLOS-STREAMS |
| 2884 |
(docfun stream-fresh-line method ((obj stream-class)) " |
| 2885 |
Outputs a newline to the CLOS stream if and only if the CLOS stream OBJ |
| 2886 |
is not already at the beginning of a new line. Returns non-NIL if a |
| 2887 |
newline was output and NIL otherwise.") |
| 2888 |
|
| 2889 |
#+CLOS-STREAMS |
| 2890 |
(docfun stream-clear-output method ((obj stream-class)) " |
| 2891 |
Aborts any outstanding output operation on the CLOS stream OBJ |
| 2892 |
and returns NIL .") |
| 2893 |
|
| 2894 |
#+CLOS-STREAMS |
| 2895 |
(docfun stream-force-output method ((obj stream-class)) " |
| 2896 |
Initiates the emptying of internal buffers on the CLOS stream OBJ |
| 2897 |
and returns NIL.") |
| 2898 |
|
| 2899 |
;;; end of CLOS streams --------------------------------------------------- |
| 2900 |
|
| 2901 |
(docfun string function (x) " |
| 2902 |
Coerces X into a string. If X is a string, then returns X itself. If X is a |
| 2903 |
symbol, then returns its print name. If X is a character, then returns a one |
| 2904 |
element string containing that character. Signals an error if X cannot be |
| 2905 |
coerced into a string.") |
| 2906 |
|
| 2907 |
(docfun string-capitalize function (string &key (start 0) (end (length string))) " |
| 2908 |
Returns a copy of STRING with the first character of each word converted to |
| 2909 |
upper case, and remaining characters converted to lower case. Its destructive |
| 2910 |
version is NSTRING-CAPITALIZE.") |
| 2911 |
|
| 2912 |
(doctype string-char " |
| 2913 |
A string-char is a character that can be stored in strings. In ECL, every |
| 2914 |
character is a string-character.") |
| 2915 |
|
| 2916 |
(docfun string-char-p function (char) " |
| 2917 |
Returns T if CHAR is a string-char, i.e. can be stored in strings; NIL |
| 2918 |
otherwise. In ECL, this function always returns T.") |
| 2919 |
|
| 2920 |
(docfun si::string-concatenate function (&rest strings) " |
| 2921 |
ECL specific. |
| 2922 |
Concatenates STRINGs and returns the result.") |
| 2923 |
|
| 2924 |
(docfun string-downcase function (string &key (start 0) (end (length string))) " |
| 2925 |
Returns a copy of STRING with all upper case characters converted to lower |
| 2926 |
case. Its destructive version is NSTRING-DOWNCASE.") |
| 2927 |
|
| 2928 |
(docfun string-equal function (string1 string2 |
| 2929 |
&key (start1 0) (end1 (length string1)) |
| 2930 |
(start2 0) (end2 (length string2))) " |
| 2931 |
Returns T if STRING1 and STRING2 are character-wise CHAR-EQUAL; NIL otherwise.") |
| 2932 |
|
| 2933 |
(docfun string-greaterp function (string1 string2 |
| 2934 |
&key (start1 0) (end1 (length string1)) |
| 2935 |
(start2 0) (end2 (length string2))) " |
| 2936 |
Similar to STRING>, but ignores cases.") |
| 2937 |
|
| 2938 |
(docfun string-left-trim function (char-bag string) " |
| 2939 |
Returns a copy of STRING with the specified characters removed from the left |
| 2940 |
end. CHAR-SPEC must be a sequence of characters.") |
| 2941 |
|
| 2942 |
(docfun string-lessp function (string1 string2 |
| 2943 |
&key (start1 0) (end1 (length string1)) |
| 2944 |
(start2 0) (end2 (length string2))) " |
| 2945 |
Similar to STRING<, but ignores cases.") |
| 2946 |
|
| 2947 |
(docfun string-not-equal function (string1 string2 |
| 2948 |
&key (start1 0) (end1 (length string1)) |
| 2949 |
(start2 0) (end2 (length string2))) " |
| 2950 |
Returns NIL if the strings are character-wise CHAR-EQUAL. Otherwise, returns |
| 2951 |
the number of characters in the longest common prefix of the strings.") |
| 2952 |
|
| 2953 |
(docfun string-not-greaterp function (string1 string2 |
| 2954 |
&key (start1 0) (end1 (length string1)) |
| 2955 |
(start2 0) (end2 (length string2))) " |
| 2956 |
Similar to STRING<=, but ignores cases.") |
| 2957 |
|
| 2958 |
(docfun string-not-lessp function (string1 string2 |
| 2959 |
&key (start1 0) (end1 (length string1)) |
| 2960 |
(start2 0) (end2 (length string2))) " |
| 2961 |
Similar to STRING>=, but ignores cases.") |
| 2962 |
|
| 2963 |
(docfun string-right-trim function (char-bag string) " |
| 2964 |
Returns a copy of STRING with the specified characters removed from the right |
| 2965 |
end. CHAR-SPEC must be a sequence of characters.") |
| 2966 |
|
| 2967 |
(docfun ext::string-to-octets function (input &key |
| 2968 |
(external-format :default) |
| 2969 |
(start 0) |
| 2970 |
(end nil) |
| 2971 |
(null-terminate nil)) " |
| 2972 |
Encode a string into a sequence of octets according to the given |
| 2973 |
external format. The bounding index designators start and end |
| 2974 |
optionally denote a subsequence to be encoded. If null-terminate is |
| 2975 |
true, add a terminating null byte. |
| 2976 |
") |
| 2977 |
|
| 2978 |
(docfun si::string-to-object function (string) " |
| 2979 |
ECL specific. |
| 2980 |
Equivalent to (READ-FROM-STRING STRING), but is much faster.") |
| 2981 |
|
| 2982 |
(docfun string-trim function (char-spec string) " |
| 2983 |
Returns a copy of STRING with the specified characters removed from both ends. |
| 2984 |
CHAR-SPEC must be a sequence of characters.") |
| 2985 |
|
| 2986 |
(docfun string-upcase function (string &key (start 0) (end (length string))) " |
| 2987 |
Returns a copy of STRING with all lower case characters converted to upper |
| 2988 |
cases. Its destructive version is NSTRING-UPCASE.") |
| 2989 |
|
| 2990 |
(docfun string/= function (string1 string2 |
| 2991 |
&key (start1 0) (end1 (length string1)) |
| 2992 |
(start2 0) (end2 (length string2))) " |
| 2993 |
Returns NIL if the strings are character-wise CHAR=. Otherwise, returns the |
| 2994 |
number of characters in the longest common prefix of the strings.") |
| 2995 |
|
| 2996 |
(docfun string< function (string1 string2 |
| 2997 |
&key (start1 0) (end1 (length string1)) |
| 2998 |
(start2 0) (end2 (length string2))) " |
| 2999 |
If STRING1 comes before STRING2 in lexicographic order, then returns the |
| 3000 |
number of characters in the longest common prefix of the strings. Otherwise, |
| 3001 |
returns NIL.") |
| 3002 |
|
| 3003 |
(docfun string<= function (string1 string2 |
| 3004 |
&key (start1 0) (end1 (length string1)) |
| 3005 |
(start2 0) (end2 (length string2))) " |
| 3006 |
If STRING1 comes before STRING2 in lexicographic order or if the strings are |
| 3007 |
character-wise CHAR=, then returns the number of characters in the longest |
| 3008 |
common prefix of the strings. Otherwise, returns NIL.") |
| 3009 |
|
| 3010 |
(docfun string= function (string1 string2 |
| 3011 |
&key (start1 0) (end1 (length string1)) |
| 3012 |
(start2 0) (end2 (length string2))) " |
| 3013 |
Returns T if STRING1 and STRING2 are character-wise CHAR=; NIL otherwise.") |
| 3014 |
|
| 3015 |
(docfun string> function (string1 string2 |
| 3016 |
&key (start1 0) (end1 (length string1)) |
| 3017 |
(start2 0) (end2 (length string2))) " |
| 3018 |
If STRING1 comes after STRING2 in lexicographic order or if the strings are |
| 3019 |
character-wise CHAR=, then returns the number of characters in the longest |
| 3020 |
common prefix of the strings. Otherwise, returns NIL.") |
| 3021 |
|
| 3022 |
(docfun string>= function (string1 string2 |
| 3023 |
&key (start1 0) (end1 (length string1)) |
| 3024 |
(start2 0) (end2 (length string2))) " |
| 3025 |
If STRING1 comes after STRING2 in lexicographic order or if the strings are |
| 3026 |
character-wise CHAR=, then returns the number of characters in the longest |
| 3027 |
common prefix of the strings. Otherwise, returns NIL.") |
| 3028 |
|
| 3029 |
(docfun stringp function (x) " |
| 3030 |
Returns T if X is a string object; NIL otherwise.") |
| 3031 |
|
| 3032 |
(docfun si::structurep function (x) " |
| 3033 |
ECL specific. |
| 3034 |
Returns T if X is a structure object defined by DEFSTRUCT; NIL otherwise.") |
| 3035 |
|
| 3036 |
(docfun sublis function (alist tree &key (key '#'identity) (test '#'eql) test-not) " |
| 3037 |
Substitutes subtrees of TREE by using ALIST and returns the result. The |
| 3038 |
original TREE is not destroyed.") |
| 3039 |
|
| 3040 |
(docfun subseq function (sequence start &optional (end (length sequence))) " |
| 3041 |
Returns a copy of the subsequence of SEQUENCE between START (inclusive) and |
| 3042 |
END (exclusive).") |
| 3043 |
|
| 3044 |
(docfun subst function (new old tree &key (key '#'identity) (test '#'eql) test-not) " |
| 3045 |
Substitutes NEW for subtrees of TREE that match OLD and returns the result. |
| 3046 |
The original TREE is not destroyed.") |
| 3047 |
|
| 3048 |
(docfun substitute function (new old sequence |
| 3049 |
&key (key '#'identity) (test '#'eql) test-not |
| 3050 |
(start 0) (end (length sequence)) |
| 3051 |
(count most-positive-fixnum) (from-end nil)) " |
| 3052 |
Returns a copy of SEQUENCE with all elements that match OLD replaced by NEW. |
| 3053 |
The original SEQUENCE is not destroyed.") |
| 3054 |
|
| 3055 |
(docfun substitute-if function (new test sequence |
| 3056 |
&key (key '#'identity) (start 0) (end (length sequence)) |
| 3057 |
(count most-positive-fixnum) (from-end nil)) " |
| 3058 |
Returns a copy of SEQUENCE with all elements that satisfy TEST replaced by |
| 3059 |
NEW. The original SEQUENCE is not destroyed.") |
| 3060 |
|
| 3061 |
(docfun substitute-if-not function (new test sequence |
| 3062 |
&key (key '#'identity) (start 0) (end (length sequence)) |
| 3063 |
(count most-positive-fixnum) (from-end nil)) " |
| 3064 |
Returns a copy of SEQUENCE with all elements that do not satisfy TEST replaced |
| 3065 |
by NEW. The original SEQUENCE is not destroyed.") |
| 3066 |
|
| 3067 |
(docfun svref function (simple-vector n) " |
| 3068 |
Returns the N-th element of SIMPLE-VECTOR.") |
| 3069 |
|
| 3070 |
(docfun sxhash function (object) " |
| 3071 |
Returns the hash code for OBJECT as an integer.") |
| 3072 |
|
| 3073 |
(doctype symbol " |
| 3074 |
Symbol objects.") |
| 3075 |
|
| 3076 |
(docfun symbol-function function (symbol) " |
| 3077 |
Returns the global function definition named SYMBOL.") |
| 3078 |
|
| 3079 |
(docfun symbol-name function (symbol) " |
| 3080 |
Returns the print name of SYMBOL.") |
| 3081 |
|
| 3082 |
(docfun symbol-package function (symbol) " |
| 3083 |
Returns the home package of SYMBOL. Returns NIL if SYMBOL is not interned.") |
| 3084 |
|
| 3085 |
(docfun symbol-plist function (symbol) " |
| 3086 |
Returns the property list of SYMBOL.") |
| 3087 |
|
| 3088 |
(docfun symbol-value function (symbol) " |
| 3089 |
Returns the value of the global variable named SYMBOL.") |
| 3090 |
|
| 3091 |
(docfun symbolp function (x) " |
| 3092 |
Returns T if X is a symbol; NIL otherwise.") |
| 3093 |
|
| 3094 |
(docfun ext:system function (string) " |
| 3095 |
Executes a Shell command as if STRING is an input to the Shell.") |
| 3096 |
|
| 3097 |
(docfun ext:run-program function (command argv &key |
| 3098 |
(input :stream) |
| 3099 |
(output :stream) |
| 3100 |
(error :output) |
| 3101 |
(wait t) environ |
| 3102 |
if-input-does-no-exist |
| 3103 |
(if-output-exists :error) |
| 3104 |
(if-error-exists :error) |
| 3105 |
(external-format :default)) " |
| 3106 |
Creates external process with COMMAND given args ARGV, where INPUT, |
| 3107 |
OUTPUT and ERROR might be :STREAM, T, NIL, pathname designator or |
| 3108 |
stream (gray streams doesn't work). ERROR might be also :OUTPUT. If |
| 3109 |
WAIT is T, then process is ran asynchronously. |
| 3110 |
|
| 3111 |
Returns two-way stream for communication, process status (or exit |
| 3112 |
code, depending on wait parameter) and EXTERNAL-PROCESS structure.") |
| 3113 |
|
| 3114 |
(doctype t " |
| 3115 |
The type T is a supertype of every type. Every object belongs to this type.") |
| 3116 |
|
| 3117 |
(docvar t constant " |
| 3118 |
The value of T is T.") |
| 3119 |
|
| 3120 |
(docfun tagbody special (&body forms) |
| 3121 |
"Syntax: (tagbody {tag | statement}*) |
| 3122 |
|
| 3123 |
Executes STATEMENTs in order and returns NIL after the execution of the last |
| 3124 |
STATEMENT. But, if a GO form causes a jump to one of the TAGs, then execution |
| 3125 |
continues at the point right after the TAG. Lists are regarded as STATEMENTs |
| 3126 |
and other objects are regarded as TAGs.") |
| 3127 |
|
| 3128 |
(docfun tailp function (x list) " |
| 3129 |
Returns T if X is identical to one of the conses that constitute LIST. |
| 3130 |
Returns NIL otherwise.") |
| 3131 |
|
| 3132 |
(docfun tan function (radians) " |
| 3133 |
Returns the tangent of RADIANS.") |
| 3134 |
|
| 3135 |
(docfun tanh function (number) " |
| 3136 |
Returns the hyperbolic tangent of NUMBER.") |
| 3137 |
|
| 3138 |
(docfun tenth function (x) " |
| 3139 |
Equivalent to (CADR (CDDDDR (CDDDDR X))).") |
| 3140 |
|
| 3141 |
(docfun terpri function (&optional (stream *standard-output*)) " |
| 3142 |
Outputs a newline character.") |
| 3143 |
|
| 3144 |
(docfun the special (type form) " |
| 3145 |
Declares that FORM evaluates to a value of TYPE. Evaluates FORM and checks if |
| 3146 |
the value belongs to TYPE. If it does, returns the value. Otherwise, signals |
| 3147 |
an error.") |
| 3148 |
|
| 3149 |
(docfun third function (x) " |
| 3150 |
Equivalent to CADDR.") |
| 3151 |
|
| 3152 |
(docfun throw special (tag form) " |
| 3153 |
Evaluates TAG and aborts the execution of the most recent CATCH form that |
| 3154 |
establishes a catcher with the same catch tag. Returns all values of FORM as |
| 3155 |
the values of the CATCH form.") |
| 3156 |
|
| 3157 |
(docfun tree-equal function (x y &key (test '#'eql) test-not) " |
| 3158 |
Returns T if X and Y have the same tree structures and corresponding leaves |
| 3159 |
are all the same in the sense of TEST. Returns NIL otherwise.") |
| 3160 |
|
| 3161 |
(docfun truename function (filespec) " |
| 3162 |
Returns the full pathname of the file specified by FILESPEC. FILESPEC may be |
| 3163 |
a symbol, a string, a pathname, or a file stream.") |
| 3164 |
|
| 3165 |
(docfun truncate function (number &optional (divisor 1)) " |
| 3166 |
Returns the integer obtained by truncating NUMBER/DIVISOR. Returns the value |
| 3167 |
of (- NUMBER (* first-value DIVISOR)) as the second value.") |
| 3168 |
|
| 3169 |
(docfun type-of function (x) " |
| 3170 |
Returns a type specifier of the type to which X belongs.") |
| 3171 |
|
| 3172 |
(docfun unexport function (symbol &optional (package *package*)) " |
| 3173 |
Undoes the registration of SYMBOL as an external symbol of PACKAGE and makes |
| 3174 |
SYMBOL internal to PACKAGE. SYMBOL may be a list of symbols.") |
| 3175 |
|
| 3176 |
(docfun unintern function (symbol &optional (package *package*)) " |
| 3177 |
Removes SYMBOL from PACKAGE. If PACKAGE is the home package of SYMBOL, then |
| 3178 |
makes SYMBOL uninterned. Returns T if SYMBOL is actually registered in |
| 3179 |
PACKAGE; NIL otherwise.") |
| 3180 |
|
| 3181 |
(docfun unread-char function (char &optional (stream *standard-input*)) " |
| 3182 |
Puts CHAR back on the front of the input stream STREAM.") |
| 3183 |
|
| 3184 |
(docfun unuse-package function (package-spec &optional (package *package*)) " |
| 3185 |
Causes PACKAGE not to use packages specified by PACKAGE-SPEC. PACKAGE-SPEC |
| 3186 |
may be a package object, a string, a symbol, or a list consisting of package |
| 3187 |
objects, strings, and, symbols.") |
| 3188 |
|
| 3189 |
(docfun unwind-protect special (form &body cleanup-forms) " |
| 3190 |
Evaluates FORM and returns all its values. Before returning, evaluates |
| 3191 |
CLEANUP-FORMs in order, whether FORM returns normally or abnormally by a non- |
| 3192 |
local exit.") |
| 3193 |
|
| 3194 |
(docfun upper-case-p function (char) " |
| 3195 |
Returns T if CHAR is an upper-case character; NIL otherwise.") |
| 3196 |
|
| 3197 |
(docfun use-package function (package-spec &optional (package *package*)) " |
| 3198 |
Causes PACKAGE to use packages specified by PACKAGE-SPEC, in addition to those |
| 3199 |
packages that PACKAGE already uses. PACKAGE-SPEC may be a package object, a |
| 3200 |
string, a symbol, or a list consisting of package objects, strings, and |
| 3201 |
symbols.") |
| 3202 |
|
| 3203 |
(docfun user-homedir-pathname function (&optional host) " |
| 3204 |
Returns a pathname the represents the user's home directory. HOST is simply |
| 3205 |
ignored in ECL.") |
| 3206 |
|
| 3207 |
(docfun values function (&rest args) " |
| 3208 |
Returns ARGs as multiple values, the N-th ARG being the N-th value.") |
| 3209 |
|
| 3210 |
(docfun values-list function (list) " |
| 3211 |
Returns all elements of LIST as multiple values, the N-th element of LIST |
| 3212 |
being the N-th value.") |
| 3213 |
|
| 3214 |
(docfun vectorp function (x) " |
| 3215 |
Returns T if X is a vector; NIL otherwise.") |
| 3216 |
|
| 3217 |
(docfun vector-push function (new-element vector) " |
| 3218 |
Replaces ITEM for the element of VECTOR that is pointed to by the fill-pointer |
| 3219 |
of VECTOR and then increments the fill-pointer by one. Returns NIL if the new |
| 3220 |
value of the fill-pointer becomes too large. Otherwise, returns the new fill- |
| 3221 |
pointer as the value.") |
| 3222 |
|
| 3223 |
(docfun vector-push-extend function (new-element vector &optional (extension 1)) " |
| 3224 |
Replaces ITEM for the element of VECTOR that is pointed to by the fill-pointer |
| 3225 |
of VECTOR and then increments the fill-pointer by one. If the new value of |
| 3226 |
the fill-pointer becomes too large, extends VECTOR for N more elements. |
| 3227 |
Returns the new value of the fill-pointer.") |
| 3228 |
|
| 3229 |
(docfun when macro (test &body forms) " |
| 3230 |
If TEST evaluates to non-NIL, then evaluates FORMs and returns all values of |
| 3231 |
the last FORM. If not, simply returns NIL.") |
| 3232 |
|
| 3233 |
(docfun write function (object &key (stream *standard-output*) (escape *print-escape*) |
| 3234 |
(radix *print-radix*) (base *print-base*) |
| 3235 |
(circle *print-circle*) (pretty *print-pretty*) |
| 3236 |
(level *print-level*) (length *print-length*) |
| 3237 |
(case *print-case*) (array *print-array*) |
| 3238 |
(gensym *print-gensym*)) " |
| 3239 |
Prints OBJECT in the specified mode. See the variable docs of *PRINT-...* for |
| 3240 |
the mode.") |
| 3241 |
|
| 3242 |
(docfun write-byte function (integer stream) " |
| 3243 |
Outputs INTEGER to the binary stream STREAM. Returns INTEGER.") |
| 3244 |
|
| 3245 |
(docfun write-char function (char &optional (stream *standard-output*)) " |
| 3246 |
Outputs CHAR to STREAM. Returns CHAR.") |
| 3247 |
|
| 3248 |
(docfun write-line function (string &optional (stream *standard-output*) |
| 3249 |
&key (start 0) (end (length string))) " |
| 3250 |
Outputs STRING and a newline character to STREAM. Returns STRING.") |
| 3251 |
|
| 3252 |
(docfun write-string function (string &optional (stream *standard-output*) |
| 3253 |
&key (start 0) (end (length string))) " |
| 3254 |
Outputs STRING to STREAM. Returns STRING.") |
| 3255 |
|
| 3256 |
(docfun zerop function (number) " |
| 3257 |
Returns T if the arg is zero; NIL otherwise.") |
| 3258 |
|
| 3259 |
;;; ---------------------------------------------------------------------- |
| 3260 |
;;; Multi Processing (POSIX Threads) |
| 3261 |
|
| 3262 |
#+threads |
| 3263 |
(progn |
| 3264 |
(docfun mp:all-processes function () " |
| 3265 |
Returns a list of all running processes.") |
| 3266 |
|
| 3267 |
(docfun mp:make-process function (&key name) " |
| 3268 |
Allocates new process.") |
| 3269 |
|
| 3270 |
(docfun mp:process-yield function () " |
| 3271 |
Causes current process to yield the control.") |
| 3272 |
|
| 3273 |
(docfun mp:exit-process function () " |
| 3274 |
Exits current process.") |
| 3275 |
|
| 3276 |
(docfun mp:process-active-p function (process) " |
| 3277 |
Returns T if the process is active; NIL otherwise.") |
| 3278 |
|
| 3279 |
(docfun mp:process-enable function (process) " |
| 3280 |
Starts a process. If process is already enabled signals error.") |
| 3281 |
|
| 3282 |
(docfun mp:interrupt-process function (process function) " |
| 3283 |
Interrupts active PROCESS to call FUNCTION. When FUNCTION |
| 3284 |
finishes normal normal execution is resumed.") |
| 3285 |
|
| 3286 |
(docfun mp:process-kill function (process) " |
| 3287 |
Exits running PROCESS. If PROCESS is inactive signals error.") |
| 3288 |
|
| 3289 |
(docfun mp:process-suspend function (process) " |
| 3290 |
Stops running PROCESS. If PROCESS is inactive signals error.") |
| 3291 |
|
| 3292 |
(docfun mp:process-suspend function (process) " |
| 3293 |
Resumes running PROCESS. If PROCESS is inactive signals error.") |
| 3294 |
|
| 3295 |
(docfun mp:process-name function (process) " |
| 3296 |
Returns PROCESS name assigned on MP:MAKE-PROCESS call.") |
| 3297 |
|
| 3298 |
(docfun mp:process-preset function (process function &rest args) " |
| 3299 |
Initializes a process. When process is enabled it will call FUNCTION |
| 3300 |
with ARGS.") |
| 3301 |
|
| 3302 |
(docfun mp:process-whostate function (process) " |
| 3303 |
Reserved for future use. Returns empty string.") |
| 3304 |
|
| 3305 |
(docfun mp:process-join function (process) " |
| 3306 |
Waits until process stops its execution.") |
| 3307 |
|
| 3308 |
(docfun mp:process-run-function function (name function &rest args) " |
| 3309 |
Equivalent to creating a process with MP:MAKE-PROCESS, presetting it |
| 3310 |
with MP:PROCESS-PRESET and starting with MP:PROCESS-ENABLE. Returns |
| 3311 |
created process.") |
| 3312 |
|
| 3313 |
;; Mutexes |
| 3314 |
(docfun mp:make-lock function (&key name (recursive nil)) " |
| 3315 |
Creates a lock named NAME. If RECURSIVE is T then lock is reentrant.") |
| 3316 |
|
| 3317 |
(docfun mp:recursive-lock-p function (lock) " |
| 3318 |
Returns T if LOCK is reentrant, NIL otherwise.") |
| 3319 |
|
| 3320 |
(docfun mp:holding-lock-p function (lock) " |
| 3321 |
Returns T if the current thread holds LOCK, NIL otherwise.") |
| 3322 |
|
| 3323 |
(docfun mp:lock-name function (lock) " |
| 3324 |
Returns the name of LOCK.") |
| 3325 |
|
| 3326 |
(docfun mp:lock-owner function (lock) " |
| 3327 |
Returns the process owning LOCK. If the lock is not grabbed then |
| 3328 |
returns NIL. For testing whether the current thread is holding the |
| 3329 |
lock use MP:HOLDING-LOCK-P.") |
| 3330 |
|
| 3331 |
(docfun mp:lock-count function (lock) " |
| 3332 |
Returns number of processes waiting for LOCK.") |
| 3333 |
|
| 3334 |
(docfun mp:get-lock function (lock &optional (waitp t)) " |
| 3335 |
Tries to acquire LOCK. If WAITP is T (a default value), function |
| 3336 |
blocks until the lock may be acquired, otherwise it returns |
| 3337 |
immedietely. Returns T when the operation is successful, NIL |
| 3338 |
otherwise.") |
| 3339 |
|
| 3340 |
(docfun mp:giveup-lock function (lock) " |
| 3341 |
Releases LOCK.") |
| 3342 |
|
| 3343 |
;; Condition variable interface |
| 3344 |
(docfun mp:make-condition-variable function () " |
| 3345 |
Creates a condition variable.") |
| 3346 |
|
| 3347 |
(docfun mp:condition-variable-wait function (cv lock) " |
| 3348 |
Release LOCK and suspend thread until condition |
| 3349 |
MP:CONDITION-VARIABLE-SIGNAL is called on CV. When thread resumes, |
| 3350 |
re-acquire LOCK.") |
| 3351 |
|
| 3352 |
(docfun mp:condition-variable-timedwait function (cv lock timeout) " |
| 3353 |
Same as MP:CONDITION-VARIABLE-WAIT but with TIMEOUT. If operation is |
| 3354 |
not complete before TIMEOUT seconds signals EXT:TIMEOUT.") |
| 3355 |
|
| 3356 |
(docfun mp:condition-variable-signal function (cv) " |
| 3357 |
Signal CV (wakes up only one waiter).") |
| 3358 |
|
| 3359 |
(docfun mp:condition-variable-broadcast function (cv) " |
| 3360 |
Signal CV (wakes up all waiters).") |
| 3361 |
|
| 3362 |
;; Semaphore interface |
| 3363 |
(docfun mp:make-semaphore function (&key name count) " |
| 3364 |
Creates a counting semaphore NAME with a resource count COUNT.") |
| 3365 |
|
| 3366 |
(docfun mp:semaphore-name function (semaphore) " |
| 3367 |
Returns SEMAPHORE name.") |
| 3368 |
|
| 3369 |
(docfun mp:semaphore-count function (semaphore) " |
| 3370 |
Returns SEMAPHORE count of resources.") |
| 3371 |
|
| 3372 |
(docfun mp:wait-on-semaphore function (semaphore) " |
| 3373 |
Waits on SEMAPHORE until it can grab the resource (blocking). Returns resource count |
| 3374 |
before semaphore was acquired.") |
| 3375 |
|
| 3376 |
(docfun mp:try-get-semaphore function (semaphore) " |
| 3377 |
Tries to get a SEMAPHORE (non-blocking). If there is no resource left returns |
| 3378 |
NIL, otherwise returns resource count before semaphore was acquired.") |
| 3379 |
|
| 3380 |
(docfun mp:signal-semaphore function (semaphore &optional (count 1)) " |
| 3381 |
Releases COUNT units of a resource on SEMAPHORE.") |
| 3382 |
|
| 3383 |
;; Mailboxes |
| 3384 |
(docfun mp:make-mailbox function (&key name (count 128)) "") |
| 3385 |
(docfun mp:mailbox-name function (mailbox) "") |
| 3386 |
(docfun mp:mailbox-empty-p function (mailbox) "") |
| 3387 |
(docfun mp:mailbox-read function (mailbox) "") |
| 3388 |
(docfun mp:mailbox-try-read function (mailbox) "") |
| 3389 |
(docfun mp:mailbox-send function (mailbox) "") |
| 3390 |
(docfun mp:mailbox-try-send function (mailbox) "") |
| 3391 |
|
| 3392 |
;; Barriers |
| 3393 |
(docfun mp:make-barrier function (count &key name) "") |
| 3394 |
(docfun mp:barrier-name function (barrier) "") |
| 3395 |
(docfun mp:barrier-count function (barrier) "") |
| 3396 |
(docfun mp:barrier-arrivers-count function (barrier) "") |
| 3397 |
(docfun mp:barrier-wait function (barrier) "") |
| 3398 |
(docfun mp:barrier-unblock function (barrier &key reset-count disable kill-waiting) "") |
| 3399 |
|
| 3400 |
;; RW-locks |
| 3401 |
(docfun mp:make-rwlock function (&key name) "") |
| 3402 |
(docfun mp:rwlock-name function (&key name) "") |
| 3403 |
(docfun mp:giveup-rwlock-read function (lock) "") |
| 3404 |
(docfun mp:giveup-rwlock-write function (lock) "") |
| 3405 |
(docfun mp:get-rwlock-read function (lock &optional (waitp t)) "") |
| 3406 |
(docfun mp:get-rwlock-write function (lock &optional (waitp t)) "")) |
| 3407 |
|
| 3408 |
#|| |
| 3409 |
;;; ---------------------------------------------------------------------- |
| 3410 |
;;; System Builder Tools |
| 3411 |
|
| 3412 |
(unless (find-package 'sbt) (make-package 'sbt)) |
| 3413 |
|
| 3414 |
(docfun sbt::build-system macro "(system &optional op mode)" " |
| 3415 |
It allows to perform operations on a system defined with SBT:DEFSYSTEM. |
| 3416 |
The possible operations are: :LOAD, :COMPILE and :PRINT. |
| 3417 |
For the load operation, in alternative to the default of loading all the |
| 3418 |
binaries in the appropriate order, there are two modes of operation |
| 3419 |
specifiable via the optional parameter MODE, which can be |
| 3420 |
:QUERY and :SOURCE. |
| 3421 |
The latter option will load the sources of the system, while with :QUERY |
| 3422 |
the user will be prompted on each file to be loaded. |
| 3423 |
|
| 3424 |
The default mode for compilation is to compile just the files which need |
| 3425 |
to be recompiled according to their dependencies. |
| 3426 |
With the :FORCE option, all the files are recompiled, while with the |
| 3427 |
:QUERY option, the user will be prompted. |
| 3428 |
|
| 3429 |
By supplying \fCT\fP for the :PRINT option, the sequence of operations |
| 3430 |
to be performed to build the system will be printed. |
| 3431 |
") |
| 3432 |
|
| 3433 |
(docfun sbt::defsystem macro |
| 3434 |
"(name &key :modules :directory :pathname-types)" " |
| 3435 |
NAME should be a symbol which will be used to refer to the system. |
| 3436 |
The value of :MODULES should be a list of module dependencies of |
| 3437 |
the form: |
| 3438 |
|
| 3439 |
(file load-deps compile-deps recompilation-deps) |
| 3440 |
|
| 3441 |
where load-deps compile-deps recompilation-deps are lists of module names. |
| 3442 |
If the value specified for :directory is a cons, then the CAR is used as |
| 3443 |
the source file directory and the CDR is used as the binary file directory. |
| 3444 |
The values specified for :PATHNAME-TYPES specifies the extensions for |
| 3445 |
LISP souce files and binaries.") |
| 3446 |
|
| 3447 |
;;; ---------------------------------------------------------------------- |
| 3448 |
;;; THREADS |
| 3449 |
|
| 3450 |
(docfun %delay function (nsec) " |
| 3451 |
Stops the thread execution for a time interval of NSEC real seconds. The |
| 3452 |
thread status is set to suspended.") |
| 3453 |
|
| 3454 |
(docfun %disable-scheduler function () " |
| 3455 |
Disables the scheduler, so that the execution of the current thread will not be |
| 3456 |
interrupted by the scheduler until the %enable-scheduler function is called") |
| 3457 |
|
| 3458 |
(docfun %enable-scheduler function () " |
| 3459 |
Enables the scheduler, so that it will time-slice execution among all |
| 3460 |
running threads.") |
| 3461 |
|
| 3462 |
(docfun %suspend function () " |
| 3463 |
Sets the current thread status to suspended and suspends its execution.") |
| 3464 |
|
| 3465 |
(docfun %thread-wait function (predicate &rest args) " |
| 3466 |
Applies the PREDICATE to the ARGS, in the environment of the calling thread. |
| 3467 |
If the result is not nil the thread will continue its execution. Otherwise the |
| 3468 |
thread is suspended and its status set to waiting. The thread will be resumed |
| 3469 |
again when the condition will become true.") |
| 3470 |
|
| 3471 |
(docfun %thread-wait-with-timeout function (nsec predicate &rest args) " |
| 3472 |
Applies the PREDICATE to the ARGS, in the environment of the calling thread. |
| 3473 |
If the result is not nil the thread will continue its execution. Otherwise the |
| 3474 |
thread is suspended and its status set to waiting. The thread will be resumed |
| 3475 |
again when either the condition will become true or the timeout of NSEC |
| 3476 |
seconds has expired.") |
| 3477 |
|
| 3478 |
(docfun current-thread function (thread) " |
| 3479 |
Returns the THREAD within which this function was called.") |
| 3480 |
|
| 3481 |
(docfun deactivate function (thread) " |
| 3482 |
Stops a running THREAD, setting its status to stopped. A stopped thread can |
| 3483 |
be resumed with reactivate function.") |
| 3484 |
|
| 3485 |
(docfun kill-thread function (thread) " |
| 3486 |
Stops the THREAD execution and set its status to dead.") |
| 3487 |
|
| 3488 |
(docfun make-continuation function (thread &key :cont) " |
| 3489 |
Creates a unique new continuation for resuming the THREAD. :CONT is an optional |
| 3490 |
continuation to be supplied to the thread.") |
| 3491 |
|
| 3492 |
(docfun make-thread function (function) " |
| 3493 |
Creates a new thread ready to execute FUNCTION. The thread is in a suspended |
| 3494 |
status and can run only making a continuation for it and issuing a resume |
| 3495 |
to such continuation with a list of arguments.") |
| 3496 |
|
| 3497 |
(docfun reactivate function (thread) " |
| 3498 |
Sets the THREAD status to running.") |
| 3499 |
|
| 3500 |
(docfun resume function (continuation &rest args) " |
| 3501 |
Resumes execution of CONTINUATION and passes it the ARGS.") |
| 3502 |
|
| 3503 |
(docfun spawn macro (function &rest args) " |
| 3504 |
Creates a new thread where FUNCTION is applied to the ARGS. Returns immediately |
| 3505 |
the new thread without waiting for the function to return.") |
| 3506 |
|
| 3507 |
(docfun thread-list function (thread) " |
| 3508 |
Returns the full list of the not DEAD threads") |
| 3509 |
|
| 3510 |
(docfun thread-status function (thread) " |
| 3511 |
Returns the THREAD status (this can be: running, suspended, stopped or dead)") |
| 3512 |
|
| 3513 |
(docfun without-scheduling macro "({form}*)" " |
| 3514 |
Executes the FORMs in sequence within a critical region, ensuring that the |
| 3515 |
scheduler is disabled.") |
| 3516 |
|
| 3517 |
;;; ---------------------------------------------------------------------- |
| 3518 |
;;; Unify instructions |
| 3519 |
|
| 3520 |
(docfun si::dereference function (locative) " |
| 3521 |
ECL specific. |
| 3522 |
Given LOCATIVE, it returns the object to which it points. If the |
| 3523 |
location is unbound, the value returned is OBJNULL.") |
| 3524 |
|
| 3525 |
(docfun si::locativep function (object) " |
| 3526 |
ECL specific. |
| 3527 |
Returns true if OBJECT is bound to a locative.") |
| 3528 |
|
| 3529 |
(docfun si::make-variable function (name) " |
| 3530 |
ECL specific. |
| 3531 |
Creates a new logical variable with name name implemented as a cons. |
| 3532 |
Name is used just for printing purposes.") |
| 3533 |
|
| 3534 |
(docfun si::get-constant function (constant object) " |
| 3535 |
ECL specific. |
| 3536 |
The value of OBJECT is unified with the constant CONSTANT. |
| 3537 |
Returns T if successful, otherwise NIL.") |
| 3538 |
|
| 3539 |
(docfun si::get-cons function (object) " |
| 3540 |
ECL specific. |
| 3541 |
The value of OBJECT is unified with a CONS cell. |
| 3542 |
Returns T if successful, otherwise NIL.") |
| 3543 |
|
| 3544 |
(docfun si::get-instance function (object class arity) " |
| 3545 |
ECL specific. |
| 3546 |
The value of OBJECT is unified with an instance of class CLASS |
| 3547 |
with ARITY number of slots. |
| 3548 |
Returns T if successful, otherwise NIL.") |
| 3549 |
|
| 3550 |
(docfun si::get-value function (variable object) " |
| 3551 |
ECL specific. |
| 3552 |
The value of VARIABLE and OBJECT are unified. |
| 3553 |
Returns T if successful, otherwise NIL.") |
| 3554 |
|
| 3555 |
(docfun get-variable macro (variable object) " |
| 3556 |
ECL specific. |
| 3557 |
Identical to SETQ: assigns to the variable VARIABLE the value OBJECT.") |
| 3558 |
|
| 3559 |
(docfun si::get-nil function (object) " |
| 3560 |
ECL specific. |
| 3561 |
The value of OBJECT is unified with the constant NIL. |
| 3562 |
Returns T if successful, otherwise NIL.") |
| 3563 |
|
| 3564 |
(docfun si::trail-mark function () " |
| 3565 |
ECL specific. |
| 3566 |
Sets up a choice point by putting a mark on the trail stack for |
| 3567 |
backtracking.") |
| 3568 |
|
| 3569 |
(docfun si::trail-restore function () " |
| 3570 |
ECL specific. |
| 3571 |
Unwinds the trail stack up to the latest choice point.") |
| 3572 |
|
| 3573 |
(docfun si::trail-unmark function () " |
| 3574 |
ECL specific. |
| 3575 |
Does a TRAIL-RESTORE and also removes the latest choice point.") |
| 3576 |
|
| 3577 |
(docfun si::unboundp function (locative) " |
| 3578 |
ECL specific. |
| 3579 |
Returns true if LOCATIVE is bound to OBJNULL.") |
| 3580 |
|
| 3581 |
(docfun si::unify-constant function (constant) " |
| 3582 |
ECL specific. |
| 3583 |
Read mode: the next subterm is unified with the constant CONSTANT. |
| 3584 |
Write mode: the constant constant is stored as the next subterm.") |
| 3585 |
|
| 3586 |
(docfun si::unify-nil function () " |
| 3587 |
ECL specific. |
| 3588 |
Read mode: the next subterm is unified with the constant NIL. |
| 3589 |
Write mode: the constant NIL is stored as the next subterm.") |
| 3590 |
|
| 3591 |
(docfun si::unify-value function (variable) " |
| 3592 |
ECL specific. |
| 3593 |
Read mode: the value of VARIABLE is unified with the next subterm. |
| 3594 |
Write mode: the value of VARIABLE is stored as the next subterm.") |
| 3595 |
|
| 3596 |
(docfun si::unify-variable macro (variable) " |
| 3597 |
ECL specific. |
| 3598 |
Read mode: VARIABLE is assigned the next subterm. |
| 3599 |
Write mode: a new variable is stored in VARIABLE as the next subterm.") |
| 3600 |
|
| 3601 |
||# |
| 3602 |
;;;---------------------------------------------------------------------- |