aboutsummaryrefslogtreecommitdiffstats
path: root/src/eval.c
diff options
context:
space:
mode:
authorDan Nicolaescu2010-07-08 14:25:08 -0700
committerDan Nicolaescu2010-07-08 14:25:08 -0700
commit5842a27bbfb7efa6872824e501bc7ec98b631553 (patch)
treed173899af9cbed9d90d94cfc710e6ecc06dd1f6b /src/eval.c
parent71c44c04bb996abe77db8efd88255fde06532b10 (diff)
downloademacs-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.c125
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,
296The remaining args are not evalled at all. 296The remaining args are not evalled at all.
297If all args return nil, return nil. 297If all args return nil, return nil.
298usage: (or CONDITIONS...) */) 298usage: (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,
321The remaining args are not evalled at all. 320The remaining args are not evalled at all.
322If no arg yields nil, return the last arg's value. 321If no arg yields nil, return the last arg's value.
323usage: (and CONDITIONS...) */) 322usage: (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.
347THEN must be one expression, but ELSE... can be zero or more expressions. 345THEN must be one expression, but ELSE... can be zero or more expressions.
348If COND yields nil, and there are no ELSE's, the value is nil. 346If COND yields nil, and there are no ELSE's, the value is nil.
349usage: (if COND THEN ELSE...) */) 347usage: (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.
372If a clause has one element, as in (CONDITION), 369If a clause has one element, as in (CONDITION),
373CONDITION's value if non-nil is returned from the cond-form. 370CONDITION's value if non-nil is returned from the cond-form.
374usage: (cond CLAUSES...) */) 371usage: (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...) */)
400DEFUN ("progn", Fprogn, Sprogn, 0, UNEVALLED, 0, 396DEFUN ("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.
402usage: (progn BODY...) */) 398usage: (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,
423The value of FIRST is saved during the evaluation of the remaining args, 418The value of FIRST is saved during the evaluation of the remaining args,
424whose values are discarded. 419whose values are discarded.
425usage: (prog1 FIRST BODY...) */) 420usage: (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,
457The value of FORM2 is saved during the evaluation of the 451The value of FORM2 is saved during the evaluation of the
458remaining args, whose values are discarded. 452remaining args, whose values are discarded.
459usage: (prog2 FORM1 FORM2 BODY...) */) 453usage: (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;
497each VAL can use the new value of variables set earlier in the `setq'. 490each VAL can use the new value of variables set earlier in the `setq'.
498The return value of the `setq' form is the value of the last VAL. 491The return value of the `setq' form is the value of the last VAL.
499usage: (setq [SYM VAL]...) */) 492usage: (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]...) */)
526DEFUN ("quote", Fquote, Squote, 1, UNEVALLED, 0, 518DEFUN ("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'.
528usage: (quote ARG) */) 520usage: (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,
539In byte compilation, `function' causes its argument to be compiled. 530In byte compilation, `function' causes its argument to be compiled.
540`quote' cannot do that. 531`quote' cannot do that.
541usage: (function ARG) */) 532usage: (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',
565either (i) add an extra optional argument and give it an `interactive' 555either (i) add an extra optional argument and give it an `interactive'
566spec that specifies non-nil unconditionally (such as \"p\"); or (ii) 556spec that specifies non-nil unconditionally (such as \"p\"); or (ii)
567use `called-interactively-p'. */) 557use `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
591cleaner to give your function an extra optional argument whose 581cleaner 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
593way to do this), or via (not (or executing-kbd-macro noninteractive)). */) 583way 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,
653The definition is (lambda ARGLIST [DOCSTRING] BODY...). 642The definition is (lambda ARGLIST [DOCSTRING] BODY...).
654See also the function `interactive'. 643See also the function `interactive'.
655usage: (defun NAME ARGLIST [DOCSTRING] BODY...) */) 644usage: (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
699usage: (defmacro NAME ARGLIST [DOCSTRING] [DECL] BODY...) */) 687usage: (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
756itself an alias. If NEW-ALIAS is bound, and BASE-VARIABLE is not, 743itself an alias. If NEW-ALIAS is bound, and BASE-VARIABLE is not,
757then the value of BASE-VARIABLE is set to that of NEW-ALIAS. 744then the value of BASE-VARIABLE is set to that of NEW-ALIAS.
758The return value is BASE-VARIABLE. */) 745The 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
828for these variables. \(`defconst' and `defcustom' behave similarly in 814for these variables. \(`defconst' and `defcustom' behave similarly in
829this respect.) 815this respect.)
830usage: (defvar SYMBOL &optional INITVALUE DOCSTRING) */) 816usage: (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
901value. However, you should normally not make local bindings for 886value. However, you should normally not make local bindings for
902variables defined with this form. 887variables defined with this form.
903usage: (defconst SYMBOL INITVALUE [DOCSTRING]) */) 888usage: (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.
951Return nil if VARIABLE is an alias and there is a loop in the 935Return nil if VARIABLE is an alias and there is a loop in the
952chain of symbols. */) 936chain 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)
998or a list (SYMBOL VALUEFORM) (which binds SYMBOL to the value of VALUEFORM). 981or a list (SYMBOL VALUEFORM) (which binds SYMBOL to the value of VALUEFORM).
999Each VALUEFORM can refer to the symbols already bound by this VARLIST. 982Each VALUEFORM can refer to the symbols already bound by this VARLIST.
1000usage: (let* VARLIST BODY...) */) 983usage: (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)
1035or a list (SYMBOL VALUEFORM) (which binds SYMBOL to the value of VALUEFORM). 1017or a list (SYMBOL VALUEFORM) (which binds SYMBOL to the value of VALUEFORM).
1036All the VALUEFORMs are evalled before any symbols are bound. 1018All the VALUEFORMs are evalled before any symbols are bound.
1037usage: (let VARLIST BODY...) */) 1019usage: (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,
1089The order of execution is thus TEST, BODY, TEST, BODY and so on 1070The order of execution is thus TEST, BODY, TEST, BODY and so on
1090until TEST returns nil. 1071until TEST returns nil.
1091usage: (while TEST BODY...) */) 1072usage: (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
1118The second optional arg ENVIRONMENT specifies an environment of macro 1098The second optional arg ENVIRONMENT specifies an environment of macro
1119definitions to shadow the loaded ones for use in file byte-compilation. */) 1099definitions 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'.
1197If no throw happens, `catch' returns the value of the last BODY form. 1175If no throw happens, `catch' returns the value of the last BODY form.
1198If a throw happens, it specifies the value to return from `catch'. 1176If a throw happens, it specifies the value to return from `catch'.
1199usage: (catch TAG BODY...) */) 1177usage: (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)
1311DEFUN ("throw", Fthrow, Sthrow, 2, 2, 0, 1288DEFUN ("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.
1313Both TAG and VALUE are evalled. */) 1290Both 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
1332after executing the UNWINDFORMS. 1308after executing the UNWINDFORMS.
1333If BODYFORM exits nonlocally, the UNWINDFORMS are executed anyway. 1309If BODYFORM exits nonlocally, the UNWINDFORMS are executed anyway.
1334usage: (unwind-protect BODYFORM UNWINDFORMS...) */) 1310usage: (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
1374See also the function `signal' for more info. 1349See also the function `signal' for more info.
1375usage: (condition-case VAR BODYFORM &rest HANDLERS) */) 1350usage: (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
1661error message is constructed. 1635error message is constructed.
1662If the signal is handled, DATA is made available to the handler. 1636If the signal is handled, DATA is made available to the handler.
1663See also the function `condition-case'. */) 1637See 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
2086If the optional argument FOR-CALL-INTERACTIVELY is non-nil, 2059If the optional argument FOR-CALL-INTERACTIVELY is non-nil,
2087then strings and vectors are not accepted. */) 2060then 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.
2150They default to nil. 2122They default to nil.
2151If FUNCTION is already defined other than as an autoload, 2123If FUNCTION is already defined other than as an autoload,
2152this does nothing and returns nil. */) 2124this 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
2253DEFUN ("eval", Feval, Seval, 1, 1, 0, 2224DEFUN ("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,
2463Then return the value FUNCTION returns. 2433Then return the value FUNCTION returns.
2464Thus, (apply '+ 1 2 '(3 4)) returns 10. 2434Thus, (apply '+ 1 2 '(3 4)) returns 10.
2465usage: (apply FUNCTION &rest ARGUMENTS) */) 2435usage: (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.
2564Do not use `make-local-variable' to make a hook variable buffer-local. 2532Do not use `make-local-variable' to make a hook variable buffer-local.
2565Instead, use `add-hook' and specify t for the LOCAL argument. 2533Instead, use `add-hook' and specify t for the LOCAL argument.
2566usage: (run-hooks &rest HOOKS) */) 2534usage: (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.
2595Do not use `make-local-variable' to make a hook variable buffer-local. 2561Do not use `make-local-variable' to make a hook variable buffer-local.
2596Instead, use `add-hook' and specify t for the LOCAL argument. 2562Instead, use `add-hook' and specify t for the LOCAL argument.
2597usage: (run-hook-with-args HOOK &rest ARGS) */) 2563usage: (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.
2617Do not use `make-local-variable' to make a hook variable buffer-local. 2581Do not use `make-local-variable' to make a hook variable buffer-local.
2618Instead, use `add-hook' and specify t for the LOCAL argument. 2582Instead, use `add-hook' and specify t for the LOCAL argument.
2619usage: (run-hook-with-args-until-success HOOK &rest ARGS) */) 2583usage: (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.
2638Do not use `make-local-variable' to make a hook variable buffer-local. 2600Do not use `make-local-variable' to make a hook variable buffer-local.
2639Instead, use `add-hook' and specify t for the LOCAL argument. 2601Instead, use `add-hook' and specify t for the LOCAL argument.
2640usage: (run-hook-with-args-until-failure HOOK &rest ARGS) */) 2602usage: (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,
2946Return the value that function returns. 2906Return the value that function returns.
2947Thus, (funcall 'cons 'x 'y) returns (x . y). 2907Thus, (funcall 'cons 'x 'y) returns (x . y).
2948usage: (funcall FUNCTION &rest ARGUMENTS) */) 2908usage: (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)
3223DEFUN ("fetch-bytecode", Ffetch_bytecode, Sfetch_bytecode, 3181DEFUN ("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)
3456DEFUN ("backtrace-debug", Fbacktrace_debug, Sbacktrace_debug, 2, 2, 0, 3413DEFUN ("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.
3458The debugger is entered when that frame exits, if the flag is non-nil. */) 3415The 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. */)
3478DEFUN ("backtrace", Fbacktrace, Sbacktrace, 0, 0, "", 3434DEFUN ("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.
3480Output stream used is value of `standard-output'. */) 3436Output 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.
3543FUNCTION is whatever was supplied as car of evaluated list, 3499FUNCTION is whatever was supplied as car of evaluated list,
3544or a lambda expression for macro calls. 3500or a lambda expression for macro calls.
3545If NFRAMES is more than the number of frames, the value is nil. */) 3501If 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;