comparison src/eval.c @ 40983:c767a5ebe4cd

(Fif): Reindent. (Fand): Likewise.
author Pavel Jan?k <Pavel@Janik.cz>
date Tue, 13 Nov 2001 07:00:21 +0000
parents 21597de09a0d
children 2823497a0206
comparison
equal deleted inserted replaced
40982:180d1f30b041 40983:c767a5ebe4cd
315 UNGCPRO; 315 UNGCPRO;
316 return val; 316 return val;
317 } 317 }
318 318
319 DEFUN ("and", Fand, Sand, 0, UNEVALLED, 0, 319 DEFUN ("and", Fand, Sand, 0, UNEVALLED, 0,
320 doc: /* Eval args until one of them yields nil, then return nil. 320 doc: /* Eval args until one of them yields nil, then return nil.
321 The remaining args are not evalled at all. 321 The remaining args are not evalled at all.
322 If no arg yields nil, return the last arg's value. 322 If no arg yields nil, return the last arg's value.
323 usage: (and CONDITIONS ...) */) 323 usage: (and CONDITIONS ...) */)
324 (args) 324 (args)
325 Lisp_Object args; 325 Lisp_Object args;
346 UNGCPRO; 346 UNGCPRO;
347 return val; 347 return val;
348 } 348 }
349 349
350 DEFUN ("if", Fif, Sif, 2, UNEVALLED, 0, 350 DEFUN ("if", Fif, Sif, 2, UNEVALLED, 0,
351 doc: /* If COND yields non-nil, do THEN, else do ELSE... 351 doc: /* If COND yields non-nil, do THEN, else do ELSE...
352 Returns the value of THEN or the value of the last of the ELSE's. 352 Returns the value of THEN or the value of the last of the ELSE's.
353 THEN must be one expression, but ELSE... can be zero or more expressions. 353 THEN must be one expression, but ELSE... can be zero or more expressions.
354 If COND yields nil, and there are no ELSE's, the value is nil. 354 If COND yields nil, and there are no ELSE's, the value is nil.
355 usage: (if COND THEN ELSE...) */) 355 usage: (if COND THEN ELSE...) */)
356 (args) 356 (args)