diff options
| author | Jim Blandy | 1992-01-13 21:48:08 +0000 |
|---|---|---|
| committer | Jim Blandy | 1992-01-13 21:48:08 +0000 |
| commit | 265a9e559da4ac72d154ecd638c51801b3e97847 (patch) | |
| tree | 633e4dc50761c2cd5201a7874e23eee9e51aecea /src/eval.c | |
| parent | d427b66a664c0e1ffc818dfa5b87b45b4857d2ae (diff) | |
| download | emacs-265a9e559da4ac72d154ecd638c51801b3e97847.tar.gz emacs-265a9e559da4ac72d154ecd638c51801b3e97847.zip | |
*** empty log message ***
Diffstat (limited to 'src/eval.c')
| -rw-r--r-- | src/eval.c | 104 |
1 files changed, 52 insertions, 52 deletions
diff --git a/src/eval.c b/src/eval.c index 6940b8dbada..f549f9d1ffe 100644 --- a/src/eval.c +++ b/src/eval.c | |||
| @@ -180,7 +180,7 @@ If all args return nil, return nil.") | |||
| 180 | Lisp_Object args_left; | 180 | Lisp_Object args_left; |
| 181 | struct gcpro gcpro1; | 181 | struct gcpro gcpro1; |
| 182 | 182 | ||
| 183 | if (NULL(args)) | 183 | if (NILP(args)) |
| 184 | return Qnil; | 184 | return Qnil; |
| 185 | 185 | ||
| 186 | args_left = args; | 186 | args_left = args; |
| @@ -189,11 +189,11 @@ If all args return nil, return nil.") | |||
| 189 | do | 189 | do |
| 190 | { | 190 | { |
| 191 | val = Feval (Fcar (args_left)); | 191 | val = Feval (Fcar (args_left)); |
| 192 | if (!NULL (val)) | 192 | if (!NILP (val)) |
| 193 | break; | 193 | break; |
| 194 | args_left = Fcdr (args_left); | 194 | args_left = Fcdr (args_left); |
| 195 | } | 195 | } |
| 196 | while (!NULL(args_left)); | 196 | while (!NILP(args_left)); |
| 197 | 197 | ||
| 198 | UNGCPRO; | 198 | UNGCPRO; |
| 199 | return val; | 199 | return val; |
| @@ -210,7 +210,7 @@ If no arg yields nil, return the last arg's value.") | |||
| 210 | Lisp_Object args_left; | 210 | Lisp_Object args_left; |
| 211 | struct gcpro gcpro1; | 211 | struct gcpro gcpro1; |
| 212 | 212 | ||
| 213 | if (NULL(args)) | 213 | if (NILP(args)) |
| 214 | return Qt; | 214 | return Qt; |
| 215 | 215 | ||
| 216 | args_left = args; | 216 | args_left = args; |
| @@ -219,11 +219,11 @@ If no arg yields nil, return the last arg's value.") | |||
| 219 | do | 219 | do |
| 220 | { | 220 | { |
| 221 | val = Feval (Fcar (args_left)); | 221 | val = Feval (Fcar (args_left)); |
| 222 | if (NULL (val)) | 222 | if (NILP (val)) |
| 223 | break; | 223 | break; |
| 224 | args_left = Fcdr (args_left); | 224 | args_left = Fcdr (args_left); |
| 225 | } | 225 | } |
| 226 | while (!NULL(args_left)); | 226 | while (!NILP(args_left)); |
| 227 | 227 | ||
| 228 | UNGCPRO; | 228 | UNGCPRO; |
| 229 | return val; | 229 | return val; |
| @@ -244,7 +244,7 @@ If COND yields nil, and there are no ELSE's, the value is nil.") | |||
| 244 | cond = Feval (Fcar (args)); | 244 | cond = Feval (Fcar (args)); |
| 245 | UNGCPRO; | 245 | UNGCPRO; |
| 246 | 246 | ||
| 247 | if (!NULL (cond)) | 247 | if (!NILP (cond)) |
| 248 | return Feval (Fcar (Fcdr (args))); | 248 | return Feval (Fcar (Fcdr (args))); |
| 249 | return Fprogn (Fcdr (Fcdr (args))); | 249 | return Fprogn (Fcdr (Fcdr (args))); |
| 250 | } | 250 | } |
| @@ -266,11 +266,11 @@ CONDITION's value if non-nil is returned from the cond-form.") | |||
| 266 | 266 | ||
| 267 | val = Qnil; | 267 | val = Qnil; |
| 268 | GCPRO1 (args); | 268 | GCPRO1 (args); |
| 269 | while (!NULL (args)) | 269 | while (!NILP (args)) |
| 270 | { | 270 | { |
| 271 | clause = Fcar (args); | 271 | clause = Fcar (args); |
| 272 | val = Feval (Fcar (clause)); | 272 | val = Feval (Fcar (clause)); |
| 273 | if (!NULL (val)) | 273 | if (!NILP (val)) |
| 274 | { | 274 | { |
| 275 | if (!EQ (XCONS (clause)->cdr, Qnil)) | 275 | if (!EQ (XCONS (clause)->cdr, Qnil)) |
| 276 | val = Fprogn (XCONS (clause)->cdr); | 276 | val = Fprogn (XCONS (clause)->cdr); |
| @@ -297,14 +297,14 @@ DEFUN ("progn", Fprogn, Sprogn, 0, UNEVALLED, 0, | |||
| 297 | if (!EQ (Vmocklisp_arguments, Qt)) | 297 | if (!EQ (Vmocklisp_arguments, Qt)) |
| 298 | { | 298 | { |
| 299 | val = make_number (0); | 299 | val = make_number (0); |
| 300 | while (!NULL (args) && (tem = Fcar (args), XTYPE (tem) == Lisp_Symbol)) | 300 | while (!NILP (args) && (tem = Fcar (args), XTYPE (tem) == Lisp_Symbol)) |
| 301 | { | 301 | { |
| 302 | QUIT; | 302 | QUIT; |
| 303 | specbind (tem, val), args = Fcdr (args); | 303 | specbind (tem, val), args = Fcdr (args); |
| 304 | } | 304 | } |
| 305 | } | 305 | } |
| 306 | 306 | ||
| 307 | if (NULL(args)) | 307 | if (NILP(args)) |
| 308 | return Qnil; | 308 | return Qnil; |
| 309 | 309 | ||
| 310 | args_left = args; | 310 | args_left = args; |
| @@ -315,7 +315,7 @@ DEFUN ("progn", Fprogn, Sprogn, 0, UNEVALLED, 0, | |||
| 315 | val = Feval (Fcar (args_left)); | 315 | val = Feval (Fcar (args_left)); |
| 316 | args_left = Fcdr (args_left); | 316 | args_left = Fcdr (args_left); |
| 317 | } | 317 | } |
| 318 | while (!NULL(args_left)); | 318 | while (!NILP(args_left)); |
| 319 | 319 | ||
| 320 | UNGCPRO; | 320 | UNGCPRO; |
| 321 | return val; | 321 | return val; |
| @@ -333,7 +333,7 @@ whose values are discarded.") | |||
| 333 | struct gcpro gcpro1, gcpro2; | 333 | struct gcpro gcpro1, gcpro2; |
| 334 | register int argnum = 0; | 334 | register int argnum = 0; |
| 335 | 335 | ||
| 336 | if (NULL(args)) | 336 | if (NILP(args)) |
| 337 | return Qnil; | 337 | return Qnil; |
| 338 | 338 | ||
| 339 | args_left = args; | 339 | args_left = args; |
| @@ -348,7 +348,7 @@ whose values are discarded.") | |||
| 348 | Feval (Fcar (args_left)); | 348 | Feval (Fcar (args_left)); |
| 349 | args_left = Fcdr (args_left); | 349 | args_left = Fcdr (args_left); |
| 350 | } | 350 | } |
| 351 | while (!NULL(args_left)); | 351 | while (!NILP(args_left)); |
| 352 | 352 | ||
| 353 | UNGCPRO; | 353 | UNGCPRO; |
| 354 | return val; | 354 | return val; |
| @@ -368,7 +368,7 @@ whose values are discarded.") | |||
| 368 | 368 | ||
| 369 | val = Qnil; | 369 | val = Qnil; |
| 370 | 370 | ||
| 371 | if (NULL(args)) | 371 | if (NILP(args)) |
| 372 | return Qnil; | 372 | return Qnil; |
| 373 | 373 | ||
| 374 | args_left = args; | 374 | args_left = args; |
| @@ -383,7 +383,7 @@ whose values are discarded.") | |||
| 383 | Feval (Fcar (args_left)); | 383 | Feval (Fcar (args_left)); |
| 384 | args_left = Fcdr (args_left); | 384 | args_left = Fcdr (args_left); |
| 385 | } | 385 | } |
| 386 | while (!NULL(args_left)); | 386 | while (!NILP(args_left)); |
| 387 | 387 | ||
| 388 | UNGCPRO; | 388 | UNGCPRO; |
| 389 | return val; | 389 | return val; |
| @@ -400,7 +400,7 @@ Each SYM is set before the next VAL is computed.") | |||
| 400 | register Lisp_Object val, sym; | 400 | register Lisp_Object val, sym; |
| 401 | struct gcpro gcpro1; | 401 | struct gcpro gcpro1; |
| 402 | 402 | ||
| 403 | if (NULL(args)) | 403 | if (NILP(args)) |
| 404 | return Qnil; | 404 | return Qnil; |
| 405 | 405 | ||
| 406 | args_left = args; | 406 | args_left = args; |
| @@ -413,7 +413,7 @@ Each SYM is set before the next VAL is computed.") | |||
| 413 | Fset (sym, val); | 413 | Fset (sym, val); |
| 414 | args_left = Fcdr (Fcdr (args_left)); | 414 | args_left = Fcdr (Fcdr (args_left)); |
| 415 | } | 415 | } |
| 416 | while (!NULL(args_left)); | 416 | while (!NILP(args_left)); |
| 417 | 417 | ||
| 418 | UNGCPRO; | 418 | UNGCPRO; |
| 419 | return val; | 419 | return val; |
| @@ -491,7 +491,7 @@ See also the function `interactive'.") | |||
| 491 | 491 | ||
| 492 | fn_name = Fcar (args); | 492 | fn_name = Fcar (args); |
| 493 | defn = Fcons (Qlambda, Fcdr (args)); | 493 | defn = Fcons (Qlambda, Fcdr (args)); |
| 494 | if (!NULL (Vpurify_flag)) | 494 | if (!NILP (Vpurify_flag)) |
| 495 | defn = Fpurecopy (defn); | 495 | defn = Fpurecopy (defn); |
| 496 | Ffset (fn_name, defn); | 496 | Ffset (fn_name, defn); |
| 497 | return fn_name; | 497 | return fn_name; |
| @@ -512,7 +512,7 @@ and the result should be a form to be evaluated instead of the original.") | |||
| 512 | 512 | ||
| 513 | fn_name = Fcar (args); | 513 | fn_name = Fcar (args); |
| 514 | defn = Fcons (Qmacro, Fcons (Qlambda, Fcdr (args))); | 514 | defn = Fcons (Qmacro, Fcons (Qlambda, Fcdr (args))); |
| 515 | if (!NULL (Vpurify_flag)) | 515 | if (!NILP (Vpurify_flag)) |
| 516 | defn = Fpurecopy (defn); | 516 | defn = Fpurecopy (defn); |
| 517 | Ffset (fn_name, defn); | 517 | Ffset (fn_name, defn); |
| 518 | return fn_name; | 518 | return fn_name; |
| @@ -536,16 +536,16 @@ If INITVALUE is missing, SYMBOL's value is not set.") | |||
| 536 | 536 | ||
| 537 | sym = Fcar (args); | 537 | sym = Fcar (args); |
| 538 | tem = Fcdr (args); | 538 | tem = Fcdr (args); |
| 539 | if (!NULL (tem)) | 539 | if (!NILP (tem)) |
| 540 | { | 540 | { |
| 541 | tem = Fdefault_boundp (sym); | 541 | tem = Fdefault_boundp (sym); |
| 542 | if (NULL (tem)) | 542 | if (NILP (tem)) |
| 543 | Fset_default (sym, Feval (Fcar (Fcdr (args)))); | 543 | Fset_default (sym, Feval (Fcar (Fcdr (args)))); |
| 544 | } | 544 | } |
| 545 | tem = Fcar (Fcdr (Fcdr (args))); | 545 | tem = Fcar (Fcdr (Fcdr (args))); |
| 546 | if (!NULL (tem)) | 546 | if (!NILP (tem)) |
| 547 | { | 547 | { |
| 548 | if (!NULL (Vpurify_flag)) | 548 | if (!NILP (Vpurify_flag)) |
| 549 | tem = Fpurecopy (tem); | 549 | tem = Fpurecopy (tem); |
| 550 | Fput (sym, Qvariable_documentation, tem); | 550 | Fput (sym, Qvariable_documentation, tem); |
| 551 | } | 551 | } |
| @@ -573,9 +573,9 @@ it would override the user's choice.") | |||
| 573 | sym = Fcar (args); | 573 | sym = Fcar (args); |
| 574 | Fset_default (sym, Feval (Fcar (Fcdr (args)))); | 574 | Fset_default (sym, Feval (Fcar (Fcdr (args)))); |
| 575 | tem = Fcar (Fcdr (Fcdr (args))); | 575 | tem = Fcar (Fcdr (Fcdr (args))); |
| 576 | if (!NULL (tem)) | 576 | if (!NILP (tem)) |
| 577 | { | 577 | { |
| 578 | if (!NULL (Vpurify_flag)) | 578 | if (!NILP (Vpurify_flag)) |
| 579 | tem = Fpurecopy (tem); | 579 | tem = Fpurecopy (tem); |
| 580 | Fput (sym, Qvariable_documentation, tem); | 580 | Fput (sym, Qvariable_documentation, tem); |
| 581 | } | 581 | } |
| @@ -617,7 +617,7 @@ Each VALUEFORM can refer to the symbols already bound by this VARLIST.") | |||
| 617 | GCPRO3 (args, elt, varlist); | 617 | GCPRO3 (args, elt, varlist); |
| 618 | 618 | ||
| 619 | varlist = Fcar (args); | 619 | varlist = Fcar (args); |
| 620 | while (!NULL (varlist)) | 620 | while (!NILP (varlist)) |
| 621 | { | 621 | { |
| 622 | QUIT; | 622 | QUIT; |
| 623 | elt = Fcar (varlist); | 623 | elt = Fcar (varlist); |
| @@ -661,7 +661,7 @@ All the VALUEFORMs are evalled before any symbols are bound.") | |||
| 661 | GCPRO2 (args, *temps); | 661 | GCPRO2 (args, *temps); |
| 662 | gcpro2.nvars = 0; | 662 | gcpro2.nvars = 0; |
| 663 | 663 | ||
| 664 | for (argnum = 0; !NULL (varlist); varlist = Fcdr (varlist)) | 664 | for (argnum = 0; !NILP (varlist); varlist = Fcdr (varlist)) |
| 665 | { | 665 | { |
| 666 | QUIT; | 666 | QUIT; |
| 667 | elt = Fcar (varlist); | 667 | elt = Fcar (varlist); |
| @@ -674,7 +674,7 @@ All the VALUEFORMs are evalled before any symbols are bound.") | |||
| 674 | UNGCPRO; | 674 | UNGCPRO; |
| 675 | 675 | ||
| 676 | varlist = Fcar (args); | 676 | varlist = Fcar (args); |
| 677 | for (argnum = 0; !NULL (varlist); varlist = Fcdr (varlist)) | 677 | for (argnum = 0; !NILP (varlist); varlist = Fcdr (varlist)) |
| 678 | { | 678 | { |
| 679 | elt = Fcar (varlist); | 679 | elt = Fcar (varlist); |
| 680 | tem = temps[argnum++]; | 680 | tem = temps[argnum++]; |
| @@ -702,7 +702,7 @@ until TEST returns nil.") | |||
| 702 | 702 | ||
| 703 | test = Fcar (args); | 703 | test = Fcar (args); |
| 704 | body = Fcdr (args); | 704 | body = Fcdr (args); |
| 705 | while (tem = Feval (test), !NULL (tem)) | 705 | while (tem = Feval (test), !NILP (tem)) |
| 706 | { | 706 | { |
| 707 | QUIT; | 707 | QUIT; |
| 708 | Fprogn (body); | 708 | Fprogn (body); |
| @@ -747,7 +747,7 @@ definitions to shadow the loaded ones for use in file byte-compilation.") | |||
| 747 | { | 747 | { |
| 748 | QUIT; | 748 | QUIT; |
| 749 | tem = Fassq (sym, env); | 749 | tem = Fassq (sym, env); |
| 750 | if (NULL (tem)) | 750 | if (NILP (tem)) |
| 751 | { | 751 | { |
| 752 | def = XSYMBOL (sym)->function; | 752 | def = XSYMBOL (sym)->function; |
| 753 | if (XTYPE (def) == Lisp_Symbol && !EQ (def, Qunbound)) | 753 | if (XTYPE (def) == Lisp_Symbol && !EQ (def, Qunbound)) |
| @@ -770,7 +770,7 @@ definitions to shadow the loaded ones for use in file byte-compilation.") | |||
| 770 | } | 770 | } |
| 771 | /* Right now TEM is the result from SYM in ENV, | 771 | /* Right now TEM is the result from SYM in ENV, |
| 772 | and if TEM is nil then DEF is SYM's function definition. */ | 772 | and if TEM is nil then DEF is SYM's function definition. */ |
| 773 | if (NULL (tem)) | 773 | if (NILP (tem)) |
| 774 | { | 774 | { |
| 775 | /* SYM is not mentioned in ENV. | 775 | /* SYM is not mentioned in ENV. |
| 776 | Look at its function definition. */ | 776 | Look at its function definition. */ |
| @@ -782,7 +782,7 @@ definitions to shadow the loaded ones for use in file byte-compilation.") | |||
| 782 | { | 782 | { |
| 783 | /* Autoloading function: will it be a macro when loaded? */ | 783 | /* Autoloading function: will it be a macro when loaded? */ |
| 784 | tem = Fcar (Fnthcdr (make_number (4), def)); | 784 | tem = Fcar (Fnthcdr (make_number (4), def)); |
| 785 | if (NULL (tem)) | 785 | if (NILP (tem)) |
| 786 | break; | 786 | break; |
| 787 | /* Yes, load it and try again. */ | 787 | /* Yes, load it and try again. */ |
| 788 | do_autoload (def, sym); | 788 | do_autoload (def, sym); |
| @@ -795,7 +795,7 @@ definitions to shadow the loaded ones for use in file byte-compilation.") | |||
| 795 | else | 795 | else |
| 796 | { | 796 | { |
| 797 | expander = XCONS (tem)->cdr; | 797 | expander = XCONS (tem)->cdr; |
| 798 | if (NULL (expander)) | 798 | if (NILP (expander)) |
| 799 | break; | 799 | break; |
| 800 | } | 800 | } |
| 801 | explicit: | 801 | explicit: |
| @@ -897,7 +897,7 @@ Both TAG and VALUE are evalled.") | |||
| 897 | 897 | ||
| 898 | while (1) | 898 | while (1) |
| 899 | { | 899 | { |
| 900 | if (!NULL (tag)) | 900 | if (!NILP (tag)) |
| 901 | for (c = catchlist; c; c = c->next) | 901 | for (c = catchlist; c; c = c->next) |
| 902 | { | 902 | { |
| 903 | if (EQ (c->tag, tag)) | 903 | if (EQ (c->tag, tag)) |
| @@ -980,7 +980,7 @@ See also the function `signal' for more info.") | |||
| 980 | c.gcpro = gcprolist; | 980 | c.gcpro = gcprolist; |
| 981 | if (_setjmp (c.jmp)) | 981 | if (_setjmp (c.jmp)) |
| 982 | { | 982 | { |
| 983 | if (!NULL (h.var)) | 983 | if (!NILP (h.var)) |
| 984 | specbind (h.var, Fcdr (c.val)); | 984 | specbind (h.var, Fcdr (c.val)); |
| 985 | val = Fprogn (Fcdr (Fcar (c.val))); | 985 | val = Fprogn (Fcdr (Fcar (c.val))); |
| 986 | unbind_to (c.pdlcount, Qnil); | 986 | unbind_to (c.pdlcount, Qnil); |
| @@ -991,10 +991,10 @@ See also the function `signal' for more info.") | |||
| 991 | h.var = Fcar (args); | 991 | h.var = Fcar (args); |
| 992 | h.handler = Fcdr (Fcdr (args)); | 992 | h.handler = Fcdr (Fcdr (args)); |
| 993 | 993 | ||
| 994 | for (val = h.handler; ! NULL (val); val = Fcdr (val)) | 994 | for (val = h.handler; ! NILP (val); val = Fcdr (val)) |
| 995 | { | 995 | { |
| 996 | tem = Fcar (val); | 996 | tem = Fcar (val); |
| 997 | if ((!NULL (tem)) && | 997 | if ((!NILP (tem)) && |
| 998 | (!CONSP (tem) || (XTYPE (XCONS (tem)->car) != Lisp_Symbol))) | 998 | (!CONSP (tem) || (XTYPE (XCONS (tem)->car) != Lisp_Symbol))) |
| 999 | error ("Invalid condition handler", tem); | 999 | error ("Invalid condition handler", tem); |
| 1000 | } | 1000 | } |
| @@ -1095,7 +1095,7 @@ See also the function `condition-case'.") | |||
| 1095 | error ("Returning a value from an error is no longer supported"); | 1095 | error ("Returning a value from an error is no longer supported"); |
| 1096 | #endif | 1096 | #endif |
| 1097 | 1097 | ||
| 1098 | if (!NULL (clause)) | 1098 | if (!NILP (clause)) |
| 1099 | { | 1099 | { |
| 1100 | struct handler *h = handlerlist; | 1100 | struct handler *h = handlerlist; |
| 1101 | /* Restore the polling-suppression count. */ | 1101 | /* Restore the polling-suppression count. */ |
| @@ -1155,7 +1155,7 @@ find_handler_clause (handlers, conditions, sig, data, debugger_value_ptr) | |||
| 1155 | if (!CONSP (tem1)) | 1155 | if (!CONSP (tem1)) |
| 1156 | continue; | 1156 | continue; |
| 1157 | tem = Fmemq (Fcar (tem1), conditions); | 1157 | tem = Fmemq (Fcar (tem1), conditions); |
| 1158 | if (!NULL (tem)) | 1158 | if (!NILP (tem)) |
| 1159 | return tem1; | 1159 | return tem1; |
| 1160 | } | 1160 | } |
| 1161 | return Qnil; | 1161 | return Qnil; |
| @@ -1202,7 +1202,7 @@ Also, a symbol satisfies `commandp' if its function definition does so.") | |||
| 1202 | { | 1202 | { |
| 1203 | if (++i > 10) return Qnil; | 1203 | if (++i > 10) return Qnil; |
| 1204 | tem = Ffboundp (fun); | 1204 | tem = Ffboundp (fun); |
| 1205 | if (NULL (tem)) return Qnil; | 1205 | if (NILP (tem)) return Qnil; |
| 1206 | fun = Fsymbol_function (fun); | 1206 | fun = Fsymbol_function (fun); |
| 1207 | } | 1207 | } |
| 1208 | 1208 | ||
| @@ -1353,7 +1353,7 @@ DEFUN ("eval", Feval, Seval, 1, 1, 0, | |||
| 1353 | if (EQ (Vmocklisp_arguments, Qt)) | 1353 | if (EQ (Vmocklisp_arguments, Qt)) |
| 1354 | return Fsymbol_value (form); | 1354 | return Fsymbol_value (form); |
| 1355 | val = Fsymbol_value (form); | 1355 | val = Fsymbol_value (form); |
| 1356 | if (NULL (val)) | 1356 | if (NILP (val)) |
| 1357 | XFASTINT (val) = 0; | 1357 | XFASTINT (val) = 0; |
| 1358 | else if (EQ (val, Qt)) | 1358 | else if (EQ (val, Qt)) |
| 1359 | XFASTINT (val) = 1; | 1359 | XFASTINT (val) = 1; |
| @@ -1438,7 +1438,7 @@ DEFUN ("eval", Feval, Seval, 1, 1, 0, | |||
| 1438 | gcpro3.var = vals; | 1438 | gcpro3.var = vals; |
| 1439 | gcpro3.nvars = 0; | 1439 | gcpro3.nvars = 0; |
| 1440 | 1440 | ||
| 1441 | while (!NULL (args_left)) | 1441 | while (!NILP (args_left)) |
| 1442 | { | 1442 | { |
| 1443 | vals[argnum++] = Feval (Fcar (args_left)); | 1443 | vals[argnum++] = Feval (Fcar (args_left)); |
| 1444 | args_left = Fcdr (args_left); | 1444 | args_left = Fcdr (args_left); |
| @@ -1528,7 +1528,7 @@ DEFUN ("eval", Feval, Seval, 1, 1, 0, | |||
| 1528 | done: | 1528 | done: |
| 1529 | if (!EQ (Vmocklisp_arguments, Qt)) | 1529 | if (!EQ (Vmocklisp_arguments, Qt)) |
| 1530 | { | 1530 | { |
| 1531 | if (NULL (val)) | 1531 | if (NILP (val)) |
| 1532 | XFASTINT (val) = 0; | 1532 | XFASTINT (val) = 0; |
| 1533 | else if (EQ (val, Qt)) | 1533 | else if (EQ (val, Qt)) |
| 1534 | XFASTINT (val) = 1; | 1534 | XFASTINT (val) = 1; |
| @@ -1614,7 +1614,7 @@ Thus, (apply '+ 1 2 '(3 4)) returns 10.") | |||
| 1614 | /* Spread the last arg we got. Its first element goes in | 1614 | /* Spread the last arg we got. Its first element goes in |
| 1615 | the slot that it used to occupy, hence this value of I. */ | 1615 | the slot that it used to occupy, hence this value of I. */ |
| 1616 | i = nargs - 1; | 1616 | i = nargs - 1; |
| 1617 | while (!NULL (spread_arg)) | 1617 | while (!NILP (spread_arg)) |
| 1618 | { | 1618 | { |
| 1619 | funcall_args [i++] = XCONS (spread_arg)->car; | 1619 | funcall_args [i++] = XCONS (spread_arg)->car; |
| 1620 | spread_arg = XCONS (spread_arg)->cdr; | 1620 | spread_arg = XCONS (spread_arg)->cdr; |
| @@ -1631,7 +1631,7 @@ apply1 (fn, arg) | |||
| 1631 | struct gcpro gcpro1; | 1631 | struct gcpro gcpro1; |
| 1632 | 1632 | ||
| 1633 | GCPRO1 (fn); | 1633 | GCPRO1 (fn); |
| 1634 | if (NULL (arg)) | 1634 | if (NILP (arg)) |
| 1635 | RETURN_UNGCPRO (Ffuncall (1, &fn)); | 1635 | RETURN_UNGCPRO (Ffuncall (1, &fn)); |
| 1636 | gcpro1.nvars = 2; | 1636 | gcpro1.nvars = 2; |
| 1637 | #ifdef NO_ARG_ARRAY | 1637 | #ifdef NO_ARG_ARRAY |
| @@ -1942,7 +1942,7 @@ funcall_lambda (fun, nargs, arg_vector) | |||
| 1942 | else abort (); | 1942 | else abort (); |
| 1943 | 1943 | ||
| 1944 | i = 0; | 1944 | i = 0; |
| 1945 | for (; !NULL (syms_left); syms_left = Fcdr (syms_left)) | 1945 | for (; !NILP (syms_left); syms_left = Fcdr (syms_left)) |
| 1946 | { | 1946 | { |
| 1947 | QUIT; | 1947 | QUIT; |
| 1948 | next = Fcar (syms_left); | 1948 | next = Fcar (syms_left); |
| @@ -2042,7 +2042,7 @@ unbind_to (count, value) | |||
| 2042 | int count; | 2042 | int count; |
| 2043 | Lisp_Object value; | 2043 | Lisp_Object value; |
| 2044 | { | 2044 | { |
| 2045 | int quitf = !NULL (Vquit_flag); | 2045 | int quitf = !NILP (Vquit_flag); |
| 2046 | struct gcpro gcpro1; | 2046 | struct gcpro gcpro1; |
| 2047 | 2047 | ||
| 2048 | GCPRO1 (value); | 2048 | GCPRO1 (value); |
| @@ -2056,12 +2056,12 @@ unbind_to (count, value) | |||
| 2056 | (*specpdl_ptr->func) (specpdl_ptr->old_value); | 2056 | (*specpdl_ptr->func) (specpdl_ptr->old_value); |
| 2057 | /* Note that a "binding" of nil is really an unwind protect, | 2057 | /* Note that a "binding" of nil is really an unwind protect, |
| 2058 | so in that case the "old value" is a list of forms to evaluate. */ | 2058 | so in that case the "old value" is a list of forms to evaluate. */ |
| 2059 | else if (NULL (specpdl_ptr->symbol)) | 2059 | else if (NILP (specpdl_ptr->symbol)) |
| 2060 | Fprogn (specpdl_ptr->old_value); | 2060 | Fprogn (specpdl_ptr->old_value); |
| 2061 | else | 2061 | else |
| 2062 | Fset (specpdl_ptr->symbol, specpdl_ptr->old_value); | 2062 | Fset (specpdl_ptr->symbol, specpdl_ptr->old_value); |
| 2063 | } | 2063 | } |
| 2064 | if (NULL (Vquit_flag) && quitf) Vquit_flag = Qt; | 2064 | if (NILP (Vquit_flag) && quitf) Vquit_flag = Qt; |
| 2065 | 2065 | ||
| 2066 | UNGCPRO; | 2066 | UNGCPRO; |
| 2067 | 2067 | ||
| @@ -2125,7 +2125,7 @@ The debugger is entered when that frame exits, if the flag is non-nil.") | |||
| 2125 | } | 2125 | } |
| 2126 | 2126 | ||
| 2127 | if (backlist) | 2127 | if (backlist) |
| 2128 | backlist->debug_on_exit = !NULL (flag); | 2128 | backlist->debug_on_exit = !NILP (flag); |
| 2129 | 2129 | ||
| 2130 | return flag; | 2130 | return flag; |
| 2131 | } | 2131 | } |
| @@ -2164,7 +2164,7 @@ Output stream used is value of `standard-output'.") | |||
| 2164 | if (backlist->nargs == MANY) | 2164 | if (backlist->nargs == MANY) |
| 2165 | { | 2165 | { |
| 2166 | for (tail = *backlist->args, i = 0; | 2166 | for (tail = *backlist->args, i = 0; |
| 2167 | !NULL (tail); | 2167 | !NILP (tail); |
| 2168 | tail = Fcdr (tail), i++) | 2168 | tail = Fcdr (tail), i++) |
| 2169 | { | 2169 | { |
| 2170 | if (i) write_string (" ", -1); | 2170 | if (i) write_string (" ", -1); |