aboutsummaryrefslogtreecommitdiffstats
path: root/src/bytecode.c
diff options
context:
space:
mode:
authorStefan Monnier2010-07-23 17:23:09 +0200
committerStefan Monnier2010-07-23 17:23:09 +0200
commit0ee81a0ce066375eac701c06cdfbdebefe594fdc (patch)
treef0dccd24163316cfe688f927681a3032a9b1fe2f /src/bytecode.c
parent894e369ddf48e191638b8e66ce732f24ff9abe2a (diff)
parent94da839793affa2a270bc26cee9c4d95d4dc4708 (diff)
downloademacs-0ee81a0ce066375eac701c06cdfbdebefe594fdc.tar.gz
emacs-0ee81a0ce066375eac701c06cdfbdebefe594fdc.zip
Merge from trunk
Diffstat (limited to 'src/bytecode.c')
-rw-r--r--src/bytecode.c16
1 files changed, 6 insertions, 10 deletions
diff --git a/src/bytecode.c b/src/bytecode.c
index 192d397c45f..d94b19b2d07 100644
--- a/src/bytecode.c
+++ b/src/bytecode.c
@@ -281,7 +281,7 @@ struct byte_stack *byte_stack_list;
281/* Mark objects on byte_stack_list. Called during GC. */ 281/* Mark objects on byte_stack_list. Called during GC. */
282 282
283void 283void
284mark_byte_stack () 284mark_byte_stack (void)
285{ 285{
286 struct byte_stack *stack; 286 struct byte_stack *stack;
287 Lisp_Object *obj; 287 Lisp_Object *obj;
@@ -310,7 +310,7 @@ mark_byte_stack ()
310 counters. Called when GC has completed. */ 310 counters. Called when GC has completed. */
311 311
312void 312void
313unmark_byte_stack () 313unmark_byte_stack (void)
314{ 314{
315 struct byte_stack *stack; 315 struct byte_stack *stack;
316 316
@@ -418,9 +418,7 @@ according to which any remaining arguments are pushed on the stack
418before executing BYTESTR. 418before executing BYTESTR.
419 419
420usage: (byte-code BYTESTR VECTOR MAXDEP &optional ARGS-TEMPLATE &rest ARGS) */) 420usage: (byte-code BYTESTR VECTOR MAXDEP &optional ARGS-TEMPLATE &rest ARGS) */)
421 (nargs, args) 421 (int nargs, Lisp_Object *args)
422 int nargs;
423 Lisp_Object *args;
424{ 422{
425 Lisp_Object args_tmpl = nargs >= 4 ? args[3] : Qnil; 423 Lisp_Object args_tmpl = nargs >= 4 ? args[3] : Qnil;
426 int pnargs = nargs >= 4 ? nargs - 4 : 0; 424 int pnargs = nargs >= 4 ? nargs - 4 : 0;
@@ -437,10 +435,8 @@ usage: (byte-code BYTESTR VECTOR MAXDEP &optional ARGS-TEMPLATE &rest ARGS) */)
437 executing BYTESTR. */ 435 executing BYTESTR. */
438 436
439Lisp_Object 437Lisp_Object
440exec_byte_code (bytestr, vector, maxdepth, args_template, nargs, args) 438exec_byte_code (Lisp_Object bytestr, Lisp_Object vector, Lisp_Object maxdepth,
441 Lisp_Object bytestr, vector, maxdepth, args_template; 439 Lisp_Object args_template, int nargs, Lisp_Object *args)
442 int nargs;
443 Lisp_Object *args;
444{ 440{
445 int count = SPECPDL_INDEX (); 441 int count = SPECPDL_INDEX ();
446#ifdef BYTE_CODE_METER 442#ifdef BYTE_CODE_METER
@@ -1794,7 +1790,7 @@ exec_byte_code (bytestr, vector, maxdepth, args_template, nargs, args)
1794} 1790}
1795 1791
1796void 1792void
1797syms_of_bytecode () 1793syms_of_bytecode (void)
1798{ 1794{
1799 Qbytecode = intern_c_string ("byte-code"); 1795 Qbytecode = intern_c_string ("byte-code");
1800 staticpro (&Qbytecode); 1796 staticpro (&Qbytecode);