comparison src/alloc.c @ 485:8c615e453683

*** empty log message ***
author Jim Blandy <jimb@redhat.com>
date Mon, 13 Jan 1992 21:48:08 +0000
parents ab8836c672bd
children 1a6483439acc
comparison
equal deleted inserted replaced
484:3165b2697c78 485:8c615e453683
327 register Lisp_Object len, val, val_tail; 327 register Lisp_Object len, val, val_tail;
328 328
329 XFASTINT (len) = nargs; 329 XFASTINT (len) = nargs;
330 val = Fmake_list (len, Qnil); 330 val = Fmake_list (len, Qnil);
331 val_tail = val; 331 val_tail = val;
332 while (!NULL (val_tail)) 332 while (!NILP (val_tail))
333 { 333 {
334 XCONS (val_tail)->car = *args++; 334 XCONS (val_tail)->car = *args++;
335 val_tail = XCONS (val_tail)->cdr; 335 val_tail = XCONS (val_tail)->cdr;
336 } 336 }
337 return val; 337 return val;
423 register Lisp_Object len, val; 423 register Lisp_Object len, val;
424 register int index; 424 register int index;
425 register struct Lisp_Vector *p; 425 register struct Lisp_Vector *p;
426 426
427 XFASTINT (len) = nargs; 427 XFASTINT (len) = nargs;
428 if (!NULL (Vpurify_flag)) 428 if (!NILP (Vpurify_flag))
429 val = make_pure_vector (len); 429 val = make_pure_vector (len);
430 else 430 else
431 val = Fmake_vector (len, Qnil); 431 val = Fmake_vector (len, Qnil);
432 p = XVECTOR (val); 432 p = XVECTOR (val);
433 for (index = 0; index < nargs; index++) 433 for (index = 0; index < nargs; index++)
434 { 434 {
435 if (!NULL (Vpurify_flag)) 435 if (!NILP (Vpurify_flag))
436 args[index] = Fpurecopy (args[index]); 436 args[index] = Fpurecopy (args[index]);
437 p->contents[index] = args[index]; 437 p->contents[index] = args[index];
438 } 438 }
439 XSETTYPE (val, Lisp_Compiled); 439 XSETTYPE (val, Lisp_Compiled);
440 return val; 440 return val;
903 register Lisp_Object obj; 903 register Lisp_Object obj;
904 { 904 {
905 register Lisp_Object new, tem; 905 register Lisp_Object new, tem;
906 register int i; 906 register int i;
907 907
908 if (NULL (Vpurify_flag)) 908 if (NILP (Vpurify_flag))
909 return obj; 909 return obj;
910 910
911 if ((PNTR_COMPARISON_TYPE) XPNTR (obj) < (PNTR_COMPARISON_TYPE) ((char *) pure + PURESIZE) 911 if ((PNTR_COMPARISON_TYPE) XPNTR (obj) < (PNTR_COMPARISON_TYPE) ((char *) pure + PURESIZE)
912 && (PNTR_COMPARISON_TYPE) XPNTR (obj) >= (PNTR_COMPARISON_TYPE) pure) 912 && (PNTR_COMPARISON_TYPE) XPNTR (obj) >= (PNTR_COMPARISON_TYPE) pure)
913 return obj; 913 return obj;
1039 char stack_top_variable; 1039 char stack_top_variable;
1040 register int i; 1040 register int i;
1041 1041
1042 /* Save a copy of the contents of the stack, for debugging. */ 1042 /* Save a copy of the contents of the stack, for debugging. */
1043 #if MAX_SAVE_STACK > 0 1043 #if MAX_SAVE_STACK > 0
1044 if (NULL (Vpurify_flag)) 1044 if (NILP (Vpurify_flag))
1045 { 1045 {
1046 i = &stack_top_variable - stack_bottom; 1046 i = &stack_top_variable - stack_bottom;
1047 if (i < 0) i = -i; 1047 if (i < 0) i = -i;
1048 if (i < MAX_SAVE_STACK) 1048 if (i < MAX_SAVE_STACK)
1049 { 1049 {