diff options
| author | Dan Nicolaescu | 2010-07-08 14:25:08 -0700 |
|---|---|---|
| committer | Dan Nicolaescu | 2010-07-08 14:25:08 -0700 |
| commit | 5842a27bbfb7efa6872824e501bc7ec98b631553 (patch) | |
| tree | d173899af9cbed9d90d94cfc710e6ecc06dd1f6b /src/eval.c | |
| parent | 71c44c04bb996abe77db8efd88255fde06532b10 (diff) | |
| download | emacs-5842a27bbfb7efa6872824e501bc7ec98b631553.tar.gz emacs-5842a27bbfb7efa6872824e501bc7ec98b631553.zip | |
Convert DEFUNs to standard C.
* src/alloc.c: Convert DEFUNs to standard C.
* src/buffer.c:
* src/bytecode.c:
* src/callint.c:
* src/callproc.c:
* src/casefiddle.c:
* src/casetab.c:
* src/category.c:
* src/character.c:
* src/charset.c:
* src/chartab.c:
* src/cmds.c:
* src/coding.c:
* src/composite.c:
* src/data.c:
* src/dbusbind.c:
* src/dired.c:
* src/dispnew.c:
* src/doc.c:
* src/dosfns.c:
* src/editfns.c:
* src/emacs.c:
* src/eval.c:
* src/fileio.c:
* src/filelock.c:
* src/floatfns.c:
* src/fns.c:
* src/font.c:
* src/fontset.c:
* src/frame.c:
* src/fringe.c:
* src/image.c:
* src/indent.c:
* src/insdel.c:
* src/keyboard.c:
* src/keymap.c:
* src/lread.c:
* src/macros.c:
* src/marker.c:
* src/menu.c:
* src/minibuf.c:
* src/msdos.c:
* src/nsfns.m:
* src/nsmenu.m:
* src/nsselect.m:
* src/print.c:
* src/process.c:
* src/search.c:
* src/sound.c:
* src/syntax.c:
* src/term.c:
* src/terminal.c:
* src/textprop.c:
* src/undo.c:
* src/w16select.c:
* src/w32console.c:
* src/w32fns.c:
* src/w32font.c:
* src/w32menu.c:
* src/w32proc.c:
* src/w32select.c:
* src/window.c:
* src/xdisp.c:
* src/xfaces.c:
* src/xfns.c:
* src/xmenu.c:
* src/xselect.c:
* src/xsettings.c:
* src/xsmfns.c: Likewise.
Diffstat (limited to 'src/eval.c')
| -rw-r--r-- | src/eval.c | 125 |
1 files changed, 40 insertions, 85 deletions
diff --git a/src/eval.c b/src/eval.c index 47c46fcbfdf..fa65a5f0d6e 100644 --- a/src/eval.c +++ b/src/eval.c | |||
| @@ -296,8 +296,7 @@ DEFUN ("or", For, Sor, 0, UNEVALLED, 0, | |||
| 296 | The remaining args are not evalled at all. | 296 | The remaining args are not evalled at all. |
| 297 | If all args return nil, return nil. | 297 | If all args return nil, return nil. |
| 298 | usage: (or CONDITIONS...) */) | 298 | usage: (or CONDITIONS...) */) |
| 299 | (args) | 299 | (Lisp_Object args) |
| 300 | Lisp_Object args; | ||
| 301 | { | 300 | { |
| 302 | register Lisp_Object val = Qnil; | 301 | register Lisp_Object val = Qnil; |
| 303 | struct gcpro gcpro1; | 302 | struct gcpro gcpro1; |
| @@ -321,8 +320,7 @@ DEFUN ("and", Fand, Sand, 0, UNEVALLED, 0, | |||
| 321 | The remaining args are not evalled at all. | 320 | The remaining args are not evalled at all. |
| 322 | If no arg yields nil, return the last arg's value. | 321 | If no arg yields nil, return the last arg's value. |
| 323 | usage: (and CONDITIONS...) */) | 322 | usage: (and CONDITIONS...) */) |
| 324 | (args) | 323 | (Lisp_Object args) |
| 325 | Lisp_Object args; | ||
| 326 | { | 324 | { |
| 327 | register Lisp_Object val = Qt; | 325 | register Lisp_Object val = Qt; |
| 328 | struct gcpro gcpro1; | 326 | struct gcpro gcpro1; |
| @@ -347,8 +345,7 @@ Returns the value of THEN or the value of the last of the ELSE's. | |||
| 347 | THEN must be one expression, but ELSE... can be zero or more expressions. | 345 | THEN must be one expression, but ELSE... can be zero or more expressions. |
| 348 | If COND yields nil, and there are no ELSE's, the value is nil. | 346 | If COND yields nil, and there are no ELSE's, the value is nil. |
| 349 | usage: (if COND THEN ELSE...) */) | 347 | usage: (if COND THEN ELSE...) */) |
| 350 | (args) | 348 | (Lisp_Object args) |
| 351 | Lisp_Object args; | ||
| 352 | { | 349 | { |
| 353 | register Lisp_Object cond; | 350 | register Lisp_Object cond; |
| 354 | struct gcpro gcpro1; | 351 | struct gcpro gcpro1; |
| @@ -372,8 +369,7 @@ If no clause succeeds, cond returns nil. | |||
| 372 | If a clause has one element, as in (CONDITION), | 369 | If a clause has one element, as in (CONDITION), |
| 373 | CONDITION's value if non-nil is returned from the cond-form. | 370 | CONDITION's value if non-nil is returned from the cond-form. |
| 374 | usage: (cond CLAUSES...) */) | 371 | usage: (cond CLAUSES...) */) |
| 375 | (args) | 372 | (Lisp_Object args) |
| 376 | Lisp_Object args; | ||
| 377 | { | 373 | { |
| 378 | register Lisp_Object clause, val; | 374 | register Lisp_Object clause, val; |
| 379 | struct gcpro gcpro1; | 375 | struct gcpro gcpro1; |
| @@ -400,8 +396,7 @@ usage: (cond CLAUSES...) */) | |||
| 400 | DEFUN ("progn", Fprogn, Sprogn, 0, UNEVALLED, 0, | 396 | DEFUN ("progn", Fprogn, Sprogn, 0, UNEVALLED, 0, |
| 401 | doc: /* Eval BODY forms sequentially and return value of last one. | 397 | doc: /* Eval BODY forms sequentially and return value of last one. |
| 402 | usage: (progn BODY...) */) | 398 | usage: (progn BODY...) */) |
| 403 | (args) | 399 | (Lisp_Object args) |
| 404 | Lisp_Object args; | ||
| 405 | { | 400 | { |
| 406 | register Lisp_Object val = Qnil; | 401 | register Lisp_Object val = Qnil; |
| 407 | struct gcpro gcpro1; | 402 | struct gcpro gcpro1; |
| @@ -423,8 +418,7 @@ DEFUN ("prog1", Fprog1, Sprog1, 1, UNEVALLED, 0, | |||
| 423 | The value of FIRST is saved during the evaluation of the remaining args, | 418 | The value of FIRST is saved during the evaluation of the remaining args, |
| 424 | whose values are discarded. | 419 | whose values are discarded. |
| 425 | usage: (prog1 FIRST BODY...) */) | 420 | usage: (prog1 FIRST BODY...) */) |
| 426 | (args) | 421 | (Lisp_Object args) |
| 427 | Lisp_Object args; | ||
| 428 | { | 422 | { |
| 429 | Lisp_Object val; | 423 | Lisp_Object val; |
| 430 | register Lisp_Object args_left; | 424 | register Lisp_Object args_left; |
| @@ -457,8 +451,7 @@ DEFUN ("prog2", Fprog2, Sprog2, 2, UNEVALLED, 0, | |||
| 457 | The value of FORM2 is saved during the evaluation of the | 451 | The value of FORM2 is saved during the evaluation of the |
| 458 | remaining args, whose values are discarded. | 452 | remaining args, whose values are discarded. |
| 459 | usage: (prog2 FORM1 FORM2 BODY...) */) | 453 | usage: (prog2 FORM1 FORM2 BODY...) */) |
| 460 | (args) | 454 | (Lisp_Object args) |
| 461 | Lisp_Object args; | ||
| 462 | { | 455 | { |
| 463 | Lisp_Object val; | 456 | Lisp_Object val; |
| 464 | register Lisp_Object args_left; | 457 | register Lisp_Object args_left; |
| @@ -497,8 +490,7 @@ The second VAL is not computed until after the first SYM is set, and so on; | |||
| 497 | each VAL can use the new value of variables set earlier in the `setq'. | 490 | each VAL can use the new value of variables set earlier in the `setq'. |
| 498 | The return value of the `setq' form is the value of the last VAL. | 491 | The return value of the `setq' form is the value of the last VAL. |
| 499 | usage: (setq [SYM VAL]...) */) | 492 | usage: (setq [SYM VAL]...) */) |
| 500 | (args) | 493 | (Lisp_Object args) |
| 501 | Lisp_Object args; | ||
| 502 | { | 494 | { |
| 503 | register Lisp_Object args_left; | 495 | register Lisp_Object args_left; |
| 504 | register Lisp_Object val, sym; | 496 | register Lisp_Object val, sym; |
| @@ -526,8 +518,7 @@ usage: (setq [SYM VAL]...) */) | |||
| 526 | DEFUN ("quote", Fquote, Squote, 1, UNEVALLED, 0, | 518 | DEFUN ("quote", Fquote, Squote, 1, UNEVALLED, 0, |
| 527 | doc: /* Return the argument, without evaluating it. `(quote x)' yields `x'. | 519 | doc: /* Return the argument, without evaluating it. `(quote x)' yields `x'. |
| 528 | usage: (quote ARG) */) | 520 | usage: (quote ARG) */) |
| 529 | (args) | 521 | (Lisp_Object args) |
| 530 | Lisp_Object args; | ||
| 531 | { | 522 | { |
| 532 | if (!NILP (Fcdr (args))) | 523 | if (!NILP (Fcdr (args))) |
| 533 | xsignal2 (Qwrong_number_of_arguments, Qquote, Flength (args)); | 524 | xsignal2 (Qwrong_number_of_arguments, Qquote, Flength (args)); |
| @@ -539,8 +530,7 @@ DEFUN ("function", Ffunction, Sfunction, 1, UNEVALLED, 0, | |||
| 539 | In byte compilation, `function' causes its argument to be compiled. | 530 | In byte compilation, `function' causes its argument to be compiled. |
| 540 | `quote' cannot do that. | 531 | `quote' cannot do that. |
| 541 | usage: (function ARG) */) | 532 | usage: (function ARG) */) |
| 542 | (args) | 533 | (Lisp_Object args) |
| 543 | Lisp_Object args; | ||
| 544 | { | 534 | { |
| 545 | if (!NILP (Fcdr (args))) | 535 | if (!NILP (Fcdr (args))) |
| 546 | xsignal2 (Qwrong_number_of_arguments, Qfunction, Flength (args)); | 536 | xsignal2 (Qwrong_number_of_arguments, Qfunction, Flength (args)); |
| @@ -565,7 +555,7 @@ To test whether your function was called with `call-interactively', | |||
| 565 | either (i) add an extra optional argument and give it an `interactive' | 555 | either (i) add an extra optional argument and give it an `interactive' |
| 566 | spec that specifies non-nil unconditionally (such as \"p\"); or (ii) | 556 | spec that specifies non-nil unconditionally (such as \"p\"); or (ii) |
| 567 | use `called-interactively-p'. */) | 557 | use `called-interactively-p'. */) |
| 568 | () | 558 | (void) |
| 569 | { | 559 | { |
| 570 | return (INTERACTIVE && interactive_p (1)) ? Qt : Qnil; | 560 | return (INTERACTIVE && interactive_p (1)) ? Qt : Qnil; |
| 571 | } | 561 | } |
| @@ -591,8 +581,7 @@ function-modifying features. Instead of using this, it is sometimes | |||
| 591 | cleaner to give your function an extra optional argument whose | 581 | cleaner to give your function an extra optional argument whose |
| 592 | `interactive' spec specifies non-nil unconditionally (\"p\" is a good | 582 | `interactive' spec specifies non-nil unconditionally (\"p\" is a good |
| 593 | way to do this), or via (not (or executing-kbd-macro noninteractive)). */) | 583 | way to do this), or via (not (or executing-kbd-macro noninteractive)). */) |
| 594 | (kind) | 584 | (Lisp_Object kind) |
| 595 | Lisp_Object kind; | ||
| 596 | { | 585 | { |
| 597 | return ((INTERACTIVE || !EQ (kind, intern ("interactive"))) | 586 | return ((INTERACTIVE || !EQ (kind, intern ("interactive"))) |
| 598 | && interactive_p (1)) ? Qt : Qnil; | 587 | && interactive_p (1)) ? Qt : Qnil; |
| @@ -653,8 +642,7 @@ DEFUN ("defun", Fdefun, Sdefun, 2, UNEVALLED, 0, | |||
| 653 | The definition is (lambda ARGLIST [DOCSTRING] BODY...). | 642 | The definition is (lambda ARGLIST [DOCSTRING] BODY...). |
| 654 | See also the function `interactive'. | 643 | See also the function `interactive'. |
| 655 | usage: (defun NAME ARGLIST [DOCSTRING] BODY...) */) | 644 | usage: (defun NAME ARGLIST [DOCSTRING] BODY...) */) |
| 656 | (args) | 645 | (Lisp_Object args) |
| 657 | Lisp_Object args; | ||
| 658 | { | 646 | { |
| 659 | register Lisp_Object fn_name; | 647 | register Lisp_Object fn_name; |
| 660 | register Lisp_Object defn; | 648 | register Lisp_Object defn; |
| @@ -697,8 +685,7 @@ The elements can look like this: | |||
| 697 | Set NAME's `doc-string-elt' property to ELT. | 685 | Set NAME's `doc-string-elt' property to ELT. |
| 698 | 686 | ||
| 699 | usage: (defmacro NAME ARGLIST [DOCSTRING] [DECL] BODY...) */) | 687 | usage: (defmacro NAME ARGLIST [DOCSTRING] [DECL] BODY...) */) |
| 700 | (args) | 688 | (Lisp_Object args) |
| 701 | Lisp_Object args; | ||
| 702 | { | 689 | { |
| 703 | register Lisp_Object fn_name; | 690 | register Lisp_Object fn_name; |
| 704 | register Lisp_Object defn; | 691 | register Lisp_Object defn; |
| @@ -756,8 +743,7 @@ or of the variable at the end of the chain of aliases, if BASE-VARIABLE is | |||
| 756 | itself an alias. If NEW-ALIAS is bound, and BASE-VARIABLE is not, | 743 | itself an alias. If NEW-ALIAS is bound, and BASE-VARIABLE is not, |
| 757 | then the value of BASE-VARIABLE is set to that of NEW-ALIAS. | 744 | then the value of BASE-VARIABLE is set to that of NEW-ALIAS. |
| 758 | The return value is BASE-VARIABLE. */) | 745 | The return value is BASE-VARIABLE. */) |
| 759 | (new_alias, base_variable, docstring) | 746 | (Lisp_Object new_alias, Lisp_Object base_variable, Lisp_Object docstring) |
| 760 | Lisp_Object new_alias, base_variable, docstring; | ||
| 761 | { | 747 | { |
| 762 | struct Lisp_Symbol *sym; | 748 | struct Lisp_Symbol *sym; |
| 763 | 749 | ||
| @@ -828,8 +814,7 @@ load a file defining variables, with this form or with `defconst' or | |||
| 828 | for these variables. \(`defconst' and `defcustom' behave similarly in | 814 | for these variables. \(`defconst' and `defcustom' behave similarly in |
| 829 | this respect.) | 815 | this respect.) |
| 830 | usage: (defvar SYMBOL &optional INITVALUE DOCSTRING) */) | 816 | usage: (defvar SYMBOL &optional INITVALUE DOCSTRING) */) |
| 831 | (args) | 817 | (Lisp_Object args) |
| 832 | Lisp_Object args; | ||
| 833 | { | 818 | { |
| 834 | register Lisp_Object sym, tem, tail; | 819 | register Lisp_Object sym, tem, tail; |
| 835 | 820 | ||
| @@ -901,8 +886,7 @@ If SYMBOL has a local binding, then this form sets the local binding's | |||
| 901 | value. However, you should normally not make local bindings for | 886 | value. However, you should normally not make local bindings for |
| 902 | variables defined with this form. | 887 | variables defined with this form. |
| 903 | usage: (defconst SYMBOL INITVALUE [DOCSTRING]) */) | 888 | usage: (defconst SYMBOL INITVALUE [DOCSTRING]) */) |
| 904 | (args) | 889 | (Lisp_Object args) |
| 905 | Lisp_Object args; | ||
| 906 | { | 890 | { |
| 907 | register Lisp_Object sym, tem; | 891 | register Lisp_Object sym, tem; |
| 908 | 892 | ||
| @@ -950,8 +934,7 @@ A variable is a user variable if | |||
| 950 | \(3) it is an alias for another user variable. | 934 | \(3) it is an alias for another user variable. |
| 951 | Return nil if VARIABLE is an alias and there is a loop in the | 935 | Return nil if VARIABLE is an alias and there is a loop in the |
| 952 | chain of symbols. */) | 936 | chain of symbols. */) |
| 953 | (variable) | 937 | (Lisp_Object variable) |
| 954 | Lisp_Object variable; | ||
| 955 | { | 938 | { |
| 956 | Lisp_Object documentation; | 939 | Lisp_Object documentation; |
| 957 | 940 | ||
| @@ -998,8 +981,7 @@ Each element of VARLIST is a symbol (which is bound to nil) | |||
| 998 | or a list (SYMBOL VALUEFORM) (which binds SYMBOL to the value of VALUEFORM). | 981 | or a list (SYMBOL VALUEFORM) (which binds SYMBOL to the value of VALUEFORM). |
| 999 | Each VALUEFORM can refer to the symbols already bound by this VARLIST. | 982 | Each VALUEFORM can refer to the symbols already bound by this VARLIST. |
| 1000 | usage: (let* VARLIST BODY...) */) | 983 | usage: (let* VARLIST BODY...) */) |
| 1001 | (args) | 984 | (Lisp_Object args) |
| 1002 | Lisp_Object args; | ||
| 1003 | { | 985 | { |
| 1004 | Lisp_Object varlist, val, elt; | 986 | Lisp_Object varlist, val, elt; |
| 1005 | int count = SPECPDL_INDEX (); | 987 | int count = SPECPDL_INDEX (); |
| @@ -1035,8 +1017,7 @@ Each element of VARLIST is a symbol (which is bound to nil) | |||
| 1035 | or a list (SYMBOL VALUEFORM) (which binds SYMBOL to the value of VALUEFORM). | 1017 | or a list (SYMBOL VALUEFORM) (which binds SYMBOL to the value of VALUEFORM). |
| 1036 | All the VALUEFORMs are evalled before any symbols are bound. | 1018 | All the VALUEFORMs are evalled before any symbols are bound. |
| 1037 | usage: (let VARLIST BODY...) */) | 1019 | usage: (let VARLIST BODY...) */) |
| 1038 | (args) | 1020 | (Lisp_Object args) |
| 1039 | Lisp_Object args; | ||
| 1040 | { | 1021 | { |
| 1041 | Lisp_Object *temps, tem; | 1022 | Lisp_Object *temps, tem; |
| 1042 | register Lisp_Object elt, varlist; | 1023 | register Lisp_Object elt, varlist; |
| @@ -1089,8 +1070,7 @@ DEFUN ("while", Fwhile, Swhile, 1, UNEVALLED, 0, | |||
| 1089 | The order of execution is thus TEST, BODY, TEST, BODY and so on | 1070 | The order of execution is thus TEST, BODY, TEST, BODY and so on |
| 1090 | until TEST returns nil. | 1071 | until TEST returns nil. |
| 1091 | usage: (while TEST BODY...) */) | 1072 | usage: (while TEST BODY...) */) |
| 1092 | (args) | 1073 | (Lisp_Object args) |
| 1093 | Lisp_Object args; | ||
| 1094 | { | 1074 | { |
| 1095 | Lisp_Object test, body; | 1075 | Lisp_Object test, body; |
| 1096 | struct gcpro gcpro1, gcpro2; | 1076 | struct gcpro gcpro1, gcpro2; |
| @@ -1117,9 +1097,7 @@ in place of FORM. When a non-macro-call results, it is returned. | |||
| 1117 | 1097 | ||
| 1118 | The second optional arg ENVIRONMENT specifies an environment of macro | 1098 | The second optional arg ENVIRONMENT specifies an environment of macro |
| 1119 | definitions to shadow the loaded ones for use in file byte-compilation. */) | 1099 | definitions to shadow the loaded ones for use in file byte-compilation. */) |
| 1120 | (form, environment) | 1100 | (Lisp_Object form, Lisp_Object environment) |
| 1121 | Lisp_Object form; | ||
| 1122 | Lisp_Object environment; | ||
| 1123 | { | 1101 | { |
| 1124 | /* With cleanups from Hallvard Furuseth. */ | 1102 | /* With cleanups from Hallvard Furuseth. */ |
| 1125 | register Lisp_Object expander, sym, def, tem; | 1103 | register Lisp_Object expander, sym, def, tem; |
| @@ -1197,8 +1175,7 @@ Within BODY, a call to `throw' with the same TAG exits BODY and this `catch'. | |||
| 1197 | If no throw happens, `catch' returns the value of the last BODY form. | 1175 | If no throw happens, `catch' returns the value of the last BODY form. |
| 1198 | If a throw happens, it specifies the value to return from `catch'. | 1176 | If a throw happens, it specifies the value to return from `catch'. |
| 1199 | usage: (catch TAG BODY...) */) | 1177 | usage: (catch TAG BODY...) */) |
| 1200 | (args) | 1178 | (Lisp_Object args) |
| 1201 | Lisp_Object args; | ||
| 1202 | { | 1179 | { |
| 1203 | register Lisp_Object tag; | 1180 | register Lisp_Object tag; |
| 1204 | struct gcpro gcpro1; | 1181 | struct gcpro gcpro1; |
| @@ -1311,8 +1288,7 @@ unwind_to_catch (struct catchtag *catch, Lisp_Object value) | |||
| 1311 | DEFUN ("throw", Fthrow, Sthrow, 2, 2, 0, | 1288 | DEFUN ("throw", Fthrow, Sthrow, 2, 2, 0, |
| 1312 | doc: /* Throw to the catch for TAG and return VALUE from it. | 1289 | doc: /* Throw to the catch for TAG and return VALUE from it. |
| 1313 | Both TAG and VALUE are evalled. */) | 1290 | Both TAG and VALUE are evalled. */) |
| 1314 | (tag, value) | 1291 | (register Lisp_Object tag, Lisp_Object value) |
| 1315 | register Lisp_Object tag, value; | ||
| 1316 | { | 1292 | { |
| 1317 | register struct catchtag *c; | 1293 | register struct catchtag *c; |
| 1318 | 1294 | ||
| @@ -1332,8 +1308,7 @@ If BODYFORM completes normally, its value is returned | |||
| 1332 | after executing the UNWINDFORMS. | 1308 | after executing the UNWINDFORMS. |
| 1333 | If BODYFORM exits nonlocally, the UNWINDFORMS are executed anyway. | 1309 | If BODYFORM exits nonlocally, the UNWINDFORMS are executed anyway. |
| 1334 | usage: (unwind-protect BODYFORM UNWINDFORMS...) */) | 1310 | usage: (unwind-protect BODYFORM UNWINDFORMS...) */) |
| 1335 | (args) | 1311 | (Lisp_Object args) |
| 1336 | Lisp_Object args; | ||
| 1337 | { | 1312 | { |
| 1338 | Lisp_Object val; | 1313 | Lisp_Object val; |
| 1339 | int count = SPECPDL_INDEX (); | 1314 | int count = SPECPDL_INDEX (); |
| @@ -1373,8 +1348,7 @@ expression. | |||
| 1373 | 1348 | ||
| 1374 | See also the function `signal' for more info. | 1349 | See also the function `signal' for more info. |
| 1375 | usage: (condition-case VAR BODYFORM &rest HANDLERS) */) | 1350 | usage: (condition-case VAR BODYFORM &rest HANDLERS) */) |
| 1376 | (args) | 1351 | (Lisp_Object args) |
| 1377 | Lisp_Object args; | ||
| 1378 | { | 1352 | { |
| 1379 | register Lisp_Object bodyform, handlers; | 1353 | register Lisp_Object bodyform, handlers; |
| 1380 | volatile Lisp_Object var; | 1354 | volatile Lisp_Object var; |
| @@ -1661,8 +1635,7 @@ See Info anchor `(elisp)Definition of signal' for some details on how this | |||
| 1661 | error message is constructed. | 1635 | error message is constructed. |
| 1662 | If the signal is handled, DATA is made available to the handler. | 1636 | If the signal is handled, DATA is made available to the handler. |
| 1663 | See also the function `condition-case'. */) | 1637 | See also the function `condition-case'. */) |
| 1664 | (error_symbol, data) | 1638 | (Lisp_Object error_symbol, Lisp_Object data) |
| 1665 | Lisp_Object error_symbol, data; | ||
| 1666 | { | 1639 | { |
| 1667 | /* When memory is full, ERROR-SYMBOL is nil, | 1640 | /* When memory is full, ERROR-SYMBOL is nil, |
| 1668 | and DATA is (REAL-ERROR-SYMBOL . REAL-DATA). | 1641 | and DATA is (REAL-ERROR-SYMBOL . REAL-DATA). |
| @@ -2085,8 +2058,7 @@ Also, a symbol satisfies `commandp' if its function definition does so. | |||
| 2085 | 2058 | ||
| 2086 | If the optional argument FOR-CALL-INTERACTIVELY is non-nil, | 2059 | If the optional argument FOR-CALL-INTERACTIVELY is non-nil, |
| 2087 | then strings and vectors are not accepted. */) | 2060 | then strings and vectors are not accepted. */) |
| 2088 | (function, for_call_interactively) | 2061 | (Lisp_Object function, Lisp_Object for_call_interactively) |
| 2089 | Lisp_Object function, for_call_interactively; | ||
| 2090 | { | 2062 | { |
| 2091 | register Lisp_Object fun; | 2063 | register Lisp_Object fun; |
| 2092 | register Lisp_Object funcar; | 2064 | register Lisp_Object funcar; |
| @@ -2150,8 +2122,7 @@ Third through fifth args give info about the real definition. | |||
| 2150 | They default to nil. | 2122 | They default to nil. |
| 2151 | If FUNCTION is already defined other than as an autoload, | 2123 | If FUNCTION is already defined other than as an autoload, |
| 2152 | this does nothing and returns nil. */) | 2124 | this does nothing and returns nil. */) |
| 2153 | (function, file, docstring, interactive, type) | 2125 | (Lisp_Object function, Lisp_Object file, Lisp_Object docstring, Lisp_Object interactive, Lisp_Object type) |
| 2154 | Lisp_Object function, file, docstring, interactive, type; | ||
| 2155 | { | 2126 | { |
| 2156 | CHECK_SYMBOL (function); | 2127 | CHECK_SYMBOL (function); |
| 2157 | CHECK_STRING (file); | 2128 | CHECK_STRING (file); |
| @@ -2252,8 +2223,7 @@ do_autoload (Lisp_Object fundef, Lisp_Object funname) | |||
| 2252 | 2223 | ||
| 2253 | DEFUN ("eval", Feval, Seval, 1, 1, 0, | 2224 | DEFUN ("eval", Feval, Seval, 1, 1, 0, |
| 2254 | doc: /* Evaluate FORM and return its value. */) | 2225 | doc: /* Evaluate FORM and return its value. */) |
| 2255 | (form) | 2226 | (Lisp_Object form) |
| 2256 | Lisp_Object form; | ||
| 2257 | { | 2227 | { |
| 2258 | Lisp_Object fun, val, original_fun, original_args; | 2228 | Lisp_Object fun, val, original_fun, original_args; |
| 2259 | Lisp_Object funcar; | 2229 | Lisp_Object funcar; |
| @@ -2463,9 +2433,7 @@ DEFUN ("apply", Fapply, Sapply, 2, MANY, 0, | |||
| 2463 | Then return the value FUNCTION returns. | 2433 | Then return the value FUNCTION returns. |
| 2464 | Thus, (apply '+ 1 2 '(3 4)) returns 10. | 2434 | Thus, (apply '+ 1 2 '(3 4)) returns 10. |
| 2465 | usage: (apply FUNCTION &rest ARGUMENTS) */) | 2435 | usage: (apply FUNCTION &rest ARGUMENTS) */) |
| 2466 | (nargs, args) | 2436 | (int nargs, Lisp_Object *args) |
| 2467 | int nargs; | ||
| 2468 | Lisp_Object *args; | ||
| 2469 | { | 2437 | { |
| 2470 | register int i, numargs; | 2438 | register int i, numargs; |
| 2471 | register Lisp_Object spread_arg; | 2439 | register Lisp_Object spread_arg; |
| @@ -2564,9 +2532,7 @@ hook; they should use `run-mode-hooks' instead. | |||
| 2564 | Do not use `make-local-variable' to make a hook variable buffer-local. | 2532 | Do not use `make-local-variable' to make a hook variable buffer-local. |
| 2565 | Instead, use `add-hook' and specify t for the LOCAL argument. | 2533 | Instead, use `add-hook' and specify t for the LOCAL argument. |
| 2566 | usage: (run-hooks &rest HOOKS) */) | 2534 | usage: (run-hooks &rest HOOKS) */) |
| 2567 | (nargs, args) | 2535 | (int nargs, Lisp_Object *args) |
| 2568 | int nargs; | ||
| 2569 | Lisp_Object *args; | ||
| 2570 | { | 2536 | { |
| 2571 | Lisp_Object hook[1]; | 2537 | Lisp_Object hook[1]; |
| 2572 | register int i; | 2538 | register int i; |
| @@ -2595,9 +2561,7 @@ as that may change. | |||
| 2595 | Do not use `make-local-variable' to make a hook variable buffer-local. | 2561 | Do not use `make-local-variable' to make a hook variable buffer-local. |
| 2596 | Instead, use `add-hook' and specify t for the LOCAL argument. | 2562 | Instead, use `add-hook' and specify t for the LOCAL argument. |
| 2597 | usage: (run-hook-with-args HOOK &rest ARGS) */) | 2563 | usage: (run-hook-with-args HOOK &rest ARGS) */) |
| 2598 | (nargs, args) | 2564 | (int nargs, Lisp_Object *args) |
| 2599 | int nargs; | ||
| 2600 | Lisp_Object *args; | ||
| 2601 | { | 2565 | { |
| 2602 | return run_hook_with_args (nargs, args, to_completion); | 2566 | return run_hook_with_args (nargs, args, to_completion); |
| 2603 | } | 2567 | } |
| @@ -2617,9 +2581,7 @@ However, if they all return nil, we return nil. | |||
| 2617 | Do not use `make-local-variable' to make a hook variable buffer-local. | 2581 | Do not use `make-local-variable' to make a hook variable buffer-local. |
| 2618 | Instead, use `add-hook' and specify t for the LOCAL argument. | 2582 | Instead, use `add-hook' and specify t for the LOCAL argument. |
| 2619 | usage: (run-hook-with-args-until-success HOOK &rest ARGS) */) | 2583 | usage: (run-hook-with-args-until-success HOOK &rest ARGS) */) |
| 2620 | (nargs, args) | 2584 | (int nargs, Lisp_Object *args) |
| 2621 | int nargs; | ||
| 2622 | Lisp_Object *args; | ||
| 2623 | { | 2585 | { |
| 2624 | return run_hook_with_args (nargs, args, until_success); | 2586 | return run_hook_with_args (nargs, args, until_success); |
| 2625 | } | 2587 | } |
| @@ -2638,9 +2600,7 @@ Then we return nil. However, if they all return non-nil, we return non-nil. | |||
| 2638 | Do not use `make-local-variable' to make a hook variable buffer-local. | 2600 | Do not use `make-local-variable' to make a hook variable buffer-local. |
| 2639 | Instead, use `add-hook' and specify t for the LOCAL argument. | 2601 | Instead, use `add-hook' and specify t for the LOCAL argument. |
| 2640 | usage: (run-hook-with-args-until-failure HOOK &rest ARGS) */) | 2602 | usage: (run-hook-with-args-until-failure HOOK &rest ARGS) */) |
| 2641 | (nargs, args) | 2603 | (int nargs, Lisp_Object *args) |
| 2642 | int nargs; | ||
| 2643 | Lisp_Object *args; | ||
| 2644 | { | 2604 | { |
| 2645 | return run_hook_with_args (nargs, args, until_failure); | 2605 | return run_hook_with_args (nargs, args, until_failure); |
| 2646 | } | 2606 | } |
| @@ -2946,9 +2906,7 @@ DEFUN ("funcall", Ffuncall, Sfuncall, 1, MANY, 0, | |||
| 2946 | Return the value that function returns. | 2906 | Return the value that function returns. |
| 2947 | Thus, (funcall 'cons 'x 'y) returns (x . y). | 2907 | Thus, (funcall 'cons 'x 'y) returns (x . y). |
| 2948 | usage: (funcall FUNCTION &rest ARGUMENTS) */) | 2908 | usage: (funcall FUNCTION &rest ARGUMENTS) */) |
| 2949 | (nargs, args) | 2909 | (int nargs, Lisp_Object *args) |
| 2950 | int nargs; | ||
| 2951 | Lisp_Object *args; | ||
| 2952 | { | 2910 | { |
| 2953 | Lisp_Object fun, original_fun; | 2911 | Lisp_Object fun, original_fun; |
| 2954 | Lisp_Object funcar; | 2912 | Lisp_Object funcar; |
| @@ -3223,8 +3181,7 @@ funcall_lambda (Lisp_Object fun, int nargs, register Lisp_Object *arg_vector) | |||
| 3223 | DEFUN ("fetch-bytecode", Ffetch_bytecode, Sfetch_bytecode, | 3181 | DEFUN ("fetch-bytecode", Ffetch_bytecode, Sfetch_bytecode, |
| 3224 | 1, 1, 0, | 3182 | 1, 1, 0, |
| 3225 | doc: /* If byte-compiled OBJECT is lazy-loaded, fetch it now. */) | 3183 | doc: /* If byte-compiled OBJECT is lazy-loaded, fetch it now. */) |
| 3226 | (object) | 3184 | (Lisp_Object object) |
| 3227 | Lisp_Object object; | ||
| 3228 | { | 3185 | { |
| 3229 | Lisp_Object tem; | 3186 | Lisp_Object tem; |
| 3230 | 3187 | ||
| @@ -3456,8 +3413,7 @@ unbind_to (int count, Lisp_Object value) | |||
| 3456 | DEFUN ("backtrace-debug", Fbacktrace_debug, Sbacktrace_debug, 2, 2, 0, | 3413 | DEFUN ("backtrace-debug", Fbacktrace_debug, Sbacktrace_debug, 2, 2, 0, |
| 3457 | doc: /* Set the debug-on-exit flag of eval frame LEVEL levels down to FLAG. | 3414 | doc: /* Set the debug-on-exit flag of eval frame LEVEL levels down to FLAG. |
| 3458 | The debugger is entered when that frame exits, if the flag is non-nil. */) | 3415 | The debugger is entered when that frame exits, if the flag is non-nil. */) |
| 3459 | (level, flag) | 3416 | (Lisp_Object level, Lisp_Object flag) |
| 3460 | Lisp_Object level, flag; | ||
| 3461 | { | 3417 | { |
| 3462 | register struct backtrace *backlist = backtrace_list; | 3418 | register struct backtrace *backlist = backtrace_list; |
| 3463 | register int i; | 3419 | register int i; |
| @@ -3478,7 +3434,7 @@ The debugger is entered when that frame exits, if the flag is non-nil. */) | |||
| 3478 | DEFUN ("backtrace", Fbacktrace, Sbacktrace, 0, 0, "", | 3434 | DEFUN ("backtrace", Fbacktrace, Sbacktrace, 0, 0, "", |
| 3479 | doc: /* Print a trace of Lisp function calls currently active. | 3435 | doc: /* Print a trace of Lisp function calls currently active. |
| 3480 | Output stream used is value of `standard-output'. */) | 3436 | Output stream used is value of `standard-output'. */) |
| 3481 | () | 3437 | (void) |
| 3482 | { | 3438 | { |
| 3483 | register struct backtrace *backlist = backtrace_list; | 3439 | register struct backtrace *backlist = backtrace_list; |
| 3484 | register int i; | 3440 | register int i; |
| @@ -3543,8 +3499,7 @@ A &rest arg is represented as the tail of the list ARG-VALUES. | |||
| 3543 | FUNCTION is whatever was supplied as car of evaluated list, | 3499 | FUNCTION is whatever was supplied as car of evaluated list, |
| 3544 | or a lambda expression for macro calls. | 3500 | or a lambda expression for macro calls. |
| 3545 | If NFRAMES is more than the number of frames, the value is nil. */) | 3501 | If NFRAMES is more than the number of frames, the value is nil. */) |
| 3546 | (nframes) | 3502 | (Lisp_Object nframes) |
| 3547 | Lisp_Object nframes; | ||
| 3548 | { | 3503 | { |
| 3549 | register struct backtrace *backlist = backtrace_list; | 3504 | register struct backtrace *backlist = backtrace_list; |
| 3550 | register int i; | 3505 | register int i; |