emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] Changes to emacs/src/category.h,v


From: Kim F. Storm
Subject: [Emacs-diffs] Changes to emacs/src/category.h,v
Date: Wed, 12 Jul 2006 13:14:12 +0000

CVSROOT:        /cvsroot/emacs
Module name:    emacs
Changes by:     Kim F. Storm <kfstorm>  06/07/12 13:14:12

Index: category.h
===================================================================
RCS file: /cvsroot/emacs/emacs/src/category.h,v
retrieving revision 1.18
retrieving revision 1.19
diff -u -b -r1.18 -r1.19
--- category.h  19 Dec 2005 06:59:10 -0000      1.18
+++ category.h  12 Jul 2006 13:14:11 -0000      1.19
@@ -55,9 +55,7 @@
   (INTEGERP ((x)) && XFASTINT ((x)) >= 0x20 && XFASTINT ((x)) <= 0x7E)
 
 #define CHECK_CATEGORY(x)                                              \
-  do {                                                                 \
-    if (!CATEGORYP ((x))) x = wrong_type_argument (Qcategoryp, (x));   \
-  } while (0)
+  CHECK_TYPE (CATEGORYP (x), Qcategoryp, x)
 
 #define XCATEGORY_SET XBOOL_VECTOR
 
@@ -73,9 +71,7 @@
   (Faset (category_set, category, val))
 
 #define CHECK_CATEGORY_SET(x)                                     \
-  do {                                                                    \
-    if (!CATEGORY_SET_P ((x))) x = wrong_type_argument (Qcategorysetp, (x)); \
-  } while (0)
+  CHECK_TYPE (CATEGORY_SET_P (x), Qcategorysetp, x)
 
 /* Return 1 if CATEGORY_SET contains CATEGORY, else return 0.
    The faster version of `!NILP (Faref (category_set, category))'.  */




reply via email to

[Prev in Thread] Current Thread [Next in Thread]