aboutsummaryrefslogtreecommitdiffstats
path: root/src/bytecode.c
diff options
context:
space:
mode:
authorJuanma Barranquero2002-07-11 14:18:02 +0000
committerJuanma Barranquero2002-07-11 14:18:02 +0000
commitaed13378308fae471bf2c11870a456e457166c31 (patch)
tree89ee2f5aaffc88a04531e85b1c1da979f17483f2 /src/bytecode.c
parente20b31732ad01d8de7605ea740525dedc3dbdb90 (diff)
downloademacs-aed13378308fae471bf2c11870a456e457166c31.tar.gz
emacs-aed13378308fae471bf2c11870a456e457166c31.zip
Use macro SPECPDL_INDEX.
Diffstat (limited to 'src/bytecode.c')
-rw-r--r--src/bytecode.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/bytecode.c b/src/bytecode.c
index 442729e477a..7f58b4d17ab 100644
--- a/src/bytecode.c
+++ b/src/bytecode.c
@@ -420,7 +420,7 @@ If the third argument is incorrect, Emacs may crash. */)
420 (bytestr, vector, maxdepth) 420 (bytestr, vector, maxdepth)
421 Lisp_Object bytestr, vector, maxdepth; 421 Lisp_Object bytestr, vector, maxdepth;
422{ 422{
423 int count = specpdl_ptr - specpdl; 423 int count = SPECPDL_INDEX ();
424#ifdef BYTE_CODE_METER 424#ifdef BYTE_CODE_METER
425 int this_op = 0; 425 int this_op = 0;
426 int prev_op; 426 int prev_op;
@@ -728,7 +728,7 @@ If the third argument is incorrect, Emacs may crash. */)
728 op -= Bunbind; 728 op -= Bunbind;
729 dounbind: 729 dounbind:
730 BEFORE_POTENTIAL_GC (); 730 BEFORE_POTENTIAL_GC ();
731 unbind_to (specpdl_ptr - specpdl - op, Qnil); 731 unbind_to (SPECPDL_INDEX () - op, Qnil);
732 AFTER_POTENTIAL_GC (); 732 AFTER_POTENTIAL_GC ();
733 break; 733 break;
734 734
@@ -909,7 +909,7 @@ If the third argument is incorrect, Emacs may crash. */)
909 temp_output_buffer_show (TOP); 909 temp_output_buffer_show (TOP);
910 TOP = v1; 910 TOP = v1;
911 /* pop binding of standard-output */ 911 /* pop binding of standard-output */
912 unbind_to (specpdl_ptr - specpdl - 1, Qnil); 912 unbind_to (SPECPDL_INDEX () - 1, Qnil);
913 AFTER_POTENTIAL_GC (); 913 AFTER_POTENTIAL_GC ();
914 break; 914 break;
915 } 915 }
@@ -1725,7 +1725,7 @@ If the third argument is incorrect, Emacs may crash. */)
1725 byte_stack_list = byte_stack_list->next; 1725 byte_stack_list = byte_stack_list->next;
1726 1726
1727 /* Binds and unbinds are supposed to be compiled balanced. */ 1727 /* Binds and unbinds are supposed to be compiled balanced. */
1728 if (specpdl_ptr - specpdl != count) 1728 if (SPECPDL_INDEX () != count)
1729#ifdef BYTE_CODE_SAFE 1729#ifdef BYTE_CODE_SAFE
1730 error ("binding stack not balanced (serious byte compiler bug)"); 1730 error ("binding stack not balanced (serious byte compiler bug)");
1731#else 1731#else