aboutsummaryrefslogtreecommitdiffstats
path: root/src/alloc.c
diff options
context:
space:
mode:
authorKarl Heuer1994-09-27 03:16:02 +0000
committerKarl Heuer1994-09-27 03:16:02 +0000
commite687453f6e222aa19080885204c462394579ed58 (patch)
treeb2c47d027f824cf5bfe3b45a5619f769a758df1c /src/alloc.c
parent40de0d7ba22f221bd8ac465362618dac86dbb1f9 (diff)
downloademacs-e687453f6e222aa19080885204c462394579ed58.tar.gz
emacs-e687453f6e222aa19080885204c462394579ed58.zip
(Fmake_list, Fmake_vector, Fmake_string, make_event_array): Use type test
macros.
Diffstat (limited to 'src/alloc.c')
-rw-r--r--src/alloc.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/alloc.c b/src/alloc.c
index 32152fa85b0..76d0f64efa5 100644
--- a/src/alloc.c
+++ b/src/alloc.c
@@ -570,7 +570,7 @@ DEFUN ("make-list", Fmake_list, Smake_list, 2, 2, 0,
570 register Lisp_Object val; 570 register Lisp_Object val;
571 register int size; 571 register int size;
572 572
573 if (XTYPE (length) != Lisp_Int || XINT (length) < 0) 573 if (!INTEGERP (length) || XINT (length) < 0)
574 length = wrong_type_argument (Qnatnump, length); 574 length = wrong_type_argument (Qnatnump, length);
575 size = XINT (length); 575 size = XINT (length);
576 576
@@ -594,7 +594,7 @@ See also the function `vector'.")
594 register Lisp_Object vector; 594 register Lisp_Object vector;
595 register struct Lisp_Vector *p; 595 register struct Lisp_Vector *p;
596 596
597 if (XTYPE (length) != Lisp_Int || XINT (length) < 0) 597 if (!INTEGERP (length) || XINT (length) < 0)
598 length = wrong_type_argument (Qnatnump, length); 598 length = wrong_type_argument (Qnatnump, length);
599 sizei = XINT (length); 599 sizei = XINT (length);
600 600
@@ -875,7 +875,7 @@ Both LENGTH and INIT must be numbers.")
875 register Lisp_Object val; 875 register Lisp_Object val;
876 register unsigned char *p, *end, c; 876 register unsigned char *p, *end, c;
877 877
878 if (XTYPE (length) != Lisp_Int || XINT (length) < 0) 878 if (!INTEGERP (length) || XINT (length) < 0)
879 length = wrong_type_argument (Qnatnump, length); 879 length = wrong_type_argument (Qnatnump, length);
880 CHECK_NUMBER (init, 1); 880 CHECK_NUMBER (init, 1);
881 val = make_uninit_string (XINT (length)); 881 val = make_uninit_string (XINT (length));
@@ -975,7 +975,7 @@ make_event_array (nargs, args)
975 /* The things that fit in a string 975 /* The things that fit in a string
976 are characters that are in 0...127, 976 are characters that are in 0...127,
977 after discarding the meta bit and all the bits above it. */ 977 after discarding the meta bit and all the bits above it. */
978 if (XTYPE (args[i]) != Lisp_Int 978 if (!INTEGERP (args[i])
979 || (XUINT (args[i]) & ~(-CHAR_META)) >= 0200) 979 || (XUINT (args[i]) & ~(-CHAR_META)) >= 0200)
980 return Fvector (nargs, args); 980 return Fvector (nargs, args);
981 981