From 617bd3f62fc74e7f90ef823745409d95defa175c Mon Sep 17 00:00:00 2001 From: Karl Heuer Date: Tue, 27 Sep 1994 03:11:31 +0000 Subject: [PATCH] (Fbyte_code): Use type test macros. --- src/bytecode.c | 26 +++++++++++++------------- 1 file 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.") register unsigned char *strbeg; CHECK_STRING (bytestr, 0); - if (XTYPE (vector) != Lisp_Vector) + if (!VECTORP (vector)) vector = wrong_type_argument (Qvectorp, vector); CHECK_NUMBER (maxdepth, 2); @@ -336,7 +336,7 @@ If the third argument is incorrect, Emacs may crash.") op = op - Bvarref; varref: v1 = vectorp[op]; - if (XTYPE (v1) != Lisp_Symbol) + if (!SYMBOLP (v1)) v2 = Fsymbol_value (v1); else { @@ -407,11 +407,11 @@ If the third argument is incorrect, Emacs may crash.") docall: DISCARD (op); #ifdef BYTE_CODE_METER - if (byte_metering_on && XTYPE (TOP) == Lisp_Symbol) + if (byte_metering_on && SYMBOLP (TOP)) { v1 = TOP; v2 = Fget (v1, Qbyte_code_meter); - if (XTYPE (v2) == Lisp_Int + if (INTEGERP (v2) && XINT (v2) != ((1<car; else TOP = Qnil; @@ -1066,7 +1066,7 @@ If the third argument is incorrect, Emacs may crash.") case Bcdr_safe: v1 = TOP; - if (XTYPE (v1) == Lisp_Cons) + if (CONSP (v1)) TOP = XCONS (v1)->cdr; else TOP = Qnil; @@ -1082,7 +1082,7 @@ If the third argument is incorrect, Emacs may crash.") break; case Bintegerp: - TOP = XTYPE (TOP) == Lisp_Int ? Qt : Qnil; + TOP = INTEGERP (TOP) ? Qt : Qnil; break; #ifdef BYTE_CODE_SAFE -- 2.39.5