comparison src/alloc.c @ 50626:a5a77c7717cb

(Fmake_byte_code): Improve the `usage' string.
author Stefan Monnier <monnier@iro.umontreal.ca>
date Thu, 17 Apr 2003 21:49:09 +0000
parents 16fdb9f87d89
children fedd03de0f46
comparison
equal deleted inserted replaced
50625:804e6ed7ce2c 50626:a5a77c7717cb
2434 doc: /* Create a byte-code object with specified arguments as elements. 2434 doc: /* Create a byte-code object with specified arguments as elements.
2435 The arguments should be the arglist, bytecode-string, constant vector, 2435 The arguments should be the arglist, bytecode-string, constant vector,
2436 stack size, (optional) doc string, and (optional) interactive spec. 2436 stack size, (optional) doc string, and (optional) interactive spec.
2437 The first four arguments are required; at most six have any 2437 The first four arguments are required; at most six have any
2438 significance. 2438 significance.
2439 usage: (make-byte-code &rest ELEMENTS) */) 2439 usage: (make-byte-code ARGLIST BYTE-CODE CONSTANTS DEPTH &optional DOCSTRING INTERACTIVE-SPEC &rest ELEMENTS) */)
2440 (nargs, args) 2440 (nargs, args)
2441 register int nargs; 2441 register int nargs;
2442 Lisp_Object *args; 2442 Lisp_Object *args;
2443 { 2443 {
2444 register Lisp_Object len, val; 2444 register Lisp_Object len, val;
3699 int i; 3699 int i;
3700 3700
3701 for (p = gcprolist; p; p = p->next) 3701 for (p = gcprolist; p; p = p->next)
3702 for (i = 0; i < p->nvars; ++i) 3702 for (i = 0; i < p->nvars; ++i)
3703 if (!survives_gc_p (p->var[i])) 3703 if (!survives_gc_p (p->var[i]))
3704 /* FIXME: It's not necessarily a bug. It might just be that the
3705 GCPRO is unnecessary or should release the object sooner. */
3704 abort (); 3706 abort ();
3705 } 3707 }
3706 3708
3707 #elif GC_MARK_STACK == GC_USE_GCPROS_CHECK_ZOMBIES 3709 #elif GC_MARK_STACK == GC_USE_GCPROS_CHECK_ZOMBIES
3708 3710