aboutsummaryrefslogtreecommitdiffstats
path: root/src/bytecode.c
diff options
context:
space:
mode:
authorDaniel Colascione2012-09-17 04:07:36 -0800
committerDaniel Colascione2012-09-17 04:07:36 -0800
commit2ab329f3b5d52a39f0a45c3d9c129f1c19560142 (patch)
tree6dd6784d63e54cb18071df8e28fbdbc27d418728 /src/bytecode.c
parentf701ab72dd55460d23c8b029550aa4d7ecef3cfa (diff)
parentbb7dce392f6d9d5fc4b9d7de09ff920a52f07669 (diff)
downloademacs-2ab329f3b5d52a39f0a45c3d9c129f1c19560142.tar.gz
emacs-2ab329f3b5d52a39f0a45c3d9c129f1c19560142.zip
Merge from trunk
Diffstat (limited to 'src/bytecode.c')
-rw-r--r--src/bytecode.c21
1 files changed, 11 insertions, 10 deletions
diff --git a/src/bytecode.c b/src/bytecode.c
index 40729cbd453..5f4fdcc5eff 100644
--- a/src/bytecode.c
+++ b/src/bytecode.c
@@ -33,7 +33,7 @@ by Hallvard:
33 */ 33 */
34 34
35#include <config.h> 35#include <config.h>
36#include <setjmp.h> 36
37#include "lisp.h" 37#include "lisp.h"
38#include "character.h" 38#include "character.h"
39#include "buffer.h" 39#include "buffer.h"
@@ -435,7 +435,7 @@ unmark_byte_stack (void)
435#ifdef BYTE_CODE_SAFE 435#ifdef BYTE_CODE_SAFE
436 436
437#define CHECK_RANGE(ARG) \ 437#define CHECK_RANGE(ARG) \
438 if (ARG >= bytestr_length) abort () 438 if (ARG >= bytestr_length) emacs_abort ()
439 439
440#else /* not BYTE_CODE_SAFE */ 440#else /* not BYTE_CODE_SAFE */
441 441
@@ -458,7 +458,8 @@ unmark_byte_stack (void)
458 Fsignal (Qquit, Qnil); \ 458 Fsignal (Qquit, Qnil); \
459 AFTER_POTENTIAL_GC (); \ 459 AFTER_POTENTIAL_GC (); \
460 } \ 460 } \
461 ELSE_PENDING_SIGNALS \ 461 else if (pending_signals) \
462 process_pending_signals (); \
462 } while (0) 463 } while (0)
463 464
464 465
@@ -508,7 +509,7 @@ exec_byte_code (Lisp_Object bytestr, Lisp_Object vector, Lisp_Object maxdepth,
508 if (FRAME_X_P (f) 509 if (FRAME_X_P (f)
509 && FRAME_FONT (f)->direction != 0 510 && FRAME_FONT (f)->direction != 0
510 && FRAME_FONT (f)->direction != 1) 511 && FRAME_FONT (f)->direction != 1)
511 abort (); 512 emacs_abort ();
512 } 513 }
513#endif 514#endif
514 515
@@ -600,9 +601,9 @@ exec_byte_code (Lisp_Object bytestr, Lisp_Object vector, Lisp_Object maxdepth,
600 { 601 {
601#ifdef BYTE_CODE_SAFE 602#ifdef BYTE_CODE_SAFE
602 if (top > stacke) 603 if (top > stacke)
603 abort (); 604 emacs_abort ();
604 else if (top < stack.bottom - 1) 605 else if (top < stack.bottom - 1)
605 abort (); 606 emacs_abort ();
606#endif 607#endif
607 608
608#ifdef BYTE_CODE_METER 609#ifdef BYTE_CODE_METER
@@ -1875,7 +1876,7 @@ exec_byte_code (Lisp_Object bytestr, Lisp_Object vector, Lisp_Object maxdepth,
1875 /* Actually this is Bstack_ref with offset 0, but we use Bdup 1876 /* Actually this is Bstack_ref with offset 0, but we use Bdup
1876 for that instead. */ 1877 for that instead. */
1877 /* CASE (Bstack_ref): */ 1878 /* CASE (Bstack_ref): */
1878 abort (); 1879 emacs_abort ();
1879 1880
1880 /* Handy byte-codes for lexical binding. */ 1881 /* Handy byte-codes for lexical binding. */
1881 CASE (Bstack_ref1): 1882 CASE (Bstack_ref1):
@@ -1928,11 +1929,11 @@ exec_byte_code (Lisp_Object bytestr, Lisp_Object vector, Lisp_Object maxdepth,
1928#ifdef BYTE_CODE_SAFE 1929#ifdef BYTE_CODE_SAFE
1929 if (op < Bconstant) 1930 if (op < Bconstant)
1930 { 1931 {
1931 abort (); 1932 emacs_abort ();
1932 } 1933 }
1933 if ((op -= Bconstant) >= const_length) 1934 if ((op -= Bconstant) >= const_length)
1934 { 1935 {
1935 abort (); 1936 emacs_abort ();
1936 } 1937 }
1937 PUSH (vectorp[op]); 1938 PUSH (vectorp[op]);
1938#else 1939#else
@@ -1951,7 +1952,7 @@ exec_byte_code (Lisp_Object bytestr, Lisp_Object vector, Lisp_Object maxdepth,
1951#ifdef BYTE_CODE_SAFE 1952#ifdef BYTE_CODE_SAFE
1952 error ("binding stack not balanced (serious byte compiler bug)"); 1953 error ("binding stack not balanced (serious byte compiler bug)");
1953#else 1954#else
1954 abort (); 1955 emacs_abort ();
1955#endif 1956#endif
1956 1957
1957 return result; 1958 return result;