Mercurial > emacs
changeset 9139:127823d9444d
(Fbyte_code): Use type test macros.
author | Karl Heuer <kwzh@gnu.org> |
---|---|
date | Tue, 27 Sep 1994 03:11:31 +0000 |
parents | 6c814eb4d892 |
children | 3e7833a8e16f |
files | src/bytecode.c |
diffstat | 1 files changed, 13 insertions(+), 13 deletions(-) [+] |
line wrap: on
line diff
--- a/src/bytecode.c Tue Sep 27 03:10:43 1994 +0000 +++ b/src/bytecode.c Tue Sep 27 03:11:31 1994 +0000 @@ -280,7 +280,7 @@ 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 @@ op = op - Bvarref; varref: v1 = vectorp[op]; - if (XTYPE (v1) != Lisp_Symbol) + if (!SYMBOLP (v1)) v2 = Fsymbol_value (v1); else { @@ -407,11 +407,11 @@ 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<<VALBITS)-1)) { XSETINT (v2, XINT (v2) + 1); @@ -611,7 +611,7 @@ goto docar; case Bsymbolp: - TOP = XTYPE (TOP) == Lisp_Symbol ? Qt : Qnil; + TOP = SYMBOLP (TOP) ? Qt : Qnil; break; case Bconsp: @@ -619,7 +619,7 @@ break; case Bstringp: - TOP = XTYPE (TOP) == Lisp_String ? Qt : Qnil; + TOP = STRINGP (TOP) ? Qt : Qnil; break; case Blistp: @@ -750,7 +750,7 @@ case Bsub1: v1 = TOP; - if (XTYPE (v1) == Lisp_Int) + if (INTEGERP (v1)) { XSETINT (v1, XINT (v1) - 1); TOP = v1; @@ -761,7 +761,7 @@ case Badd1: v1 = TOP; - if (XTYPE (v1) == Lisp_Int) + if (INTEGERP (v1)) { XSETINT (v1, XINT (v1) + 1); TOP = v1; @@ -804,7 +804,7 @@ case Bnegate: v1 = TOP; - if (XTYPE (v1) == Lisp_Int) + if (INTEGERP (v1)) { XSETINT (v1, - XINT (v1)); TOP = v1; @@ -1021,7 +1021,7 @@ break; case Belt: - if (XTYPE (TOP) == Lisp_Cons) + if (CONSP (TOP)) { /* Exchange args and then do nth. */ v2 = POP; @@ -1058,7 +1058,7 @@ case Bcar_safe: v1 = TOP; - if (XTYPE (v1) == Lisp_Cons) + if (CONSP (v1)) TOP = XCONS (v1)->car; else TOP = Qnil; @@ -1066,7 +1066,7 @@ case Bcdr_safe: v1 = TOP; - if (XTYPE (v1) == Lisp_Cons) + if (CONSP (v1)) TOP = XCONS (v1)->cdr; else TOP = Qnil; @@ -1082,7 +1082,7 @@ break; case Bintegerp: - TOP = XTYPE (TOP) == Lisp_Int ? Qt : Qnil; + TOP = INTEGERP (TOP) ? Qt : Qnil; break; #ifdef BYTE_CODE_SAFE