aboutsummaryrefslogtreecommitdiffstats
path: root/src/bytecode.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/bytecode.c')
-rw-r--r--src/bytecode.c26
1 files changed, 13 insertions, 13 deletions
diff --git a/src/bytecode.c b/src/bytecode.c
index 0b8d0cee049..86b2cbfbd59 100644
--- a/src/bytecode.c
+++ b/src/bytecode.c
@@ -280,7 +280,7 @@ If the third argument is incorrect, Emacs may crash.")
280 register unsigned char *strbeg; 280 register unsigned char *strbeg;
281 281
282 CHECK_STRING (bytestr, 0); 282 CHECK_STRING (bytestr, 0);
283 if (XTYPE (vector) != Lisp_Vector) 283 if (!VECTORP (vector))
284 vector = wrong_type_argument (Qvectorp, vector); 284 vector = wrong_type_argument (Qvectorp, vector);
285 CHECK_NUMBER (maxdepth, 2); 285 CHECK_NUMBER (maxdepth, 2);
286 286
@@ -336,7 +336,7 @@ If the third argument is incorrect, Emacs may crash.")
336 op = op - Bvarref; 336 op = op - Bvarref;
337 varref: 337 varref:
338 v1 = vectorp[op]; 338 v1 = vectorp[op];
339 if (XTYPE (v1) != Lisp_Symbol) 339 if (!SYMBOLP (v1))
340 v2 = Fsymbol_value (v1); 340 v2 = Fsymbol_value (v1);
341 else 341 else
342 { 342 {
@@ -407,11 +407,11 @@ If the third argument is incorrect, Emacs may crash.")
407 docall: 407 docall:
408 DISCARD (op); 408 DISCARD (op);
409#ifdef BYTE_CODE_METER 409#ifdef BYTE_CODE_METER
410 if (byte_metering_on && XTYPE (TOP) == Lisp_Symbol) 410 if (byte_metering_on && SYMBOLP (TOP))
411 { 411 {
412 v1 = TOP; 412 v1 = TOP;
413 v2 = Fget (v1, Qbyte_code_meter); 413 v2 = Fget (v1, Qbyte_code_meter);
414 if (XTYPE (v2) == Lisp_Int 414 if (INTEGERP (v2)
415 && XINT (v2) != ((1<<VALBITS)-1)) 415 && XINT (v2) != ((1<<VALBITS)-1))
416 { 416 {
417 XSETINT (v2, XINT (v2) + 1); 417 XSETINT (v2, XINT (v2) + 1);
@@ -611,7 +611,7 @@ If the third argument is incorrect, Emacs may crash.")
611 goto docar; 611 goto docar;
612 612
613 case Bsymbolp: 613 case Bsymbolp:
614 TOP = XTYPE (TOP) == Lisp_Symbol ? Qt : Qnil; 614 TOP = SYMBOLP (TOP) ? Qt : Qnil;
615 break; 615 break;
616 616
617 case Bconsp: 617 case Bconsp:
@@ -619,7 +619,7 @@ If the third argument is incorrect, Emacs may crash.")
619 break; 619 break;
620 620
621 case Bstringp: 621 case Bstringp:
622 TOP = XTYPE (TOP) == Lisp_String ? Qt : Qnil; 622 TOP = STRINGP (TOP) ? Qt : Qnil;
623 break; 623 break;
624 624
625 case Blistp: 625 case Blistp:
@@ -750,7 +750,7 @@ If the third argument is incorrect, Emacs may crash.")
750 750
751 case Bsub1: 751 case Bsub1:
752 v1 = TOP; 752 v1 = TOP;
753 if (XTYPE (v1) == Lisp_Int) 753 if (INTEGERP (v1))
754 { 754 {
755 XSETINT (v1, XINT (v1) - 1); 755 XSETINT (v1, XINT (v1) - 1);
756 TOP = v1; 756 TOP = v1;
@@ -761,7 +761,7 @@ If the third argument is incorrect, Emacs may crash.")
761 761
762 case Badd1: 762 case Badd1:
763 v1 = TOP; 763 v1 = TOP;
764 if (XTYPE (v1) == Lisp_Int) 764 if (INTEGERP (v1))
765 { 765 {
766 XSETINT (v1, XINT (v1) + 1); 766 XSETINT (v1, XINT (v1) + 1);
767 TOP = v1; 767 TOP = v1;
@@ -804,7 +804,7 @@ If the third argument is incorrect, Emacs may crash.")
804 804
805 case Bnegate: 805 case Bnegate:
806 v1 = TOP; 806 v1 = TOP;
807 if (XTYPE (v1) == Lisp_Int) 807 if (INTEGERP (v1))
808 { 808 {
809 XSETINT (v1, - XINT (v1)); 809 XSETINT (v1, - XINT (v1));
810 TOP = v1; 810 TOP = v1;
@@ -1021,7 +1021,7 @@ If the third argument is incorrect, Emacs may crash.")
1021 break; 1021 break;
1022 1022
1023 case Belt: 1023 case Belt:
1024 if (XTYPE (TOP) == Lisp_Cons) 1024 if (CONSP (TOP))
1025 { 1025 {
1026 /* Exchange args and then do nth. */ 1026 /* Exchange args and then do nth. */
1027 v2 = POP; 1027 v2 = POP;
@@ -1058,7 +1058,7 @@ If the third argument is incorrect, Emacs may crash.")
1058 1058
1059 case Bcar_safe: 1059 case Bcar_safe:
1060 v1 = TOP; 1060 v1 = TOP;
1061 if (XTYPE (v1) == Lisp_Cons) 1061 if (CONSP (v1))
1062 TOP = XCONS (v1)->car; 1062 TOP = XCONS (v1)->car;
1063 else 1063 else
1064 TOP = Qnil; 1064 TOP = Qnil;
@@ -1066,7 +1066,7 @@ If the third argument is incorrect, Emacs may crash.")
1066 1066
1067 case Bcdr_safe: 1067 case Bcdr_safe:
1068 v1 = TOP; 1068 v1 = TOP;
1069 if (XTYPE (v1) == Lisp_Cons) 1069 if (CONSP (v1))
1070 TOP = XCONS (v1)->cdr; 1070 TOP = XCONS (v1)->cdr;
1071 else 1071 else
1072 TOP = Qnil; 1072 TOP = Qnil;
@@ -1082,7 +1082,7 @@ If the third argument is incorrect, Emacs may crash.")
1082 break; 1082 break;
1083 1083
1084 case Bintegerp: 1084 case Bintegerp:
1085 TOP = XTYPE (TOP) == Lisp_Int ? Qt : Qnil; 1085 TOP = INTEGERP (TOP) ? Qt : Qnil;
1086 break; 1086 break;
1087 1087
1088#ifdef BYTE_CODE_SAFE 1088#ifdef BYTE_CODE_SAFE