changeset 31901:4e2853ad5d2d

(union Lisp_Object) [!NO_UNION_TYPE]: Use EMACS_INT and EMACS_UINT instead of `int' and `unsigned int'. (XSET) [EXPLICIT_SIGN_EXTEND]: Use EMACS_INT instead of `int'.
author Gerd Moellmann <gerd@gnu.org>
date Tue, 26 Sep 2000 12:35:33 +0000
parents 8b2fa657800d
children f526f6f002d7
files src/lisp.h
diffstat 1 files changed, 17 insertions(+), 17 deletions(-) [+]
line wrap: on
line diff
--- a/src/lisp.h	Tue Sep 26 12:35:06 2000 +0000
+++ b/src/lisp.h	Tue Sep 26 12:35:33 2000 +0000
@@ -178,25 +178,25 @@
   {
     /* Used for comparing two Lisp_Objects;
        also, positive integers can be accessed fast this way.  */
-    int i;
+    EMACS_INT i;
 
     struct
       {
-	int val: VALBITS;
-	int type: GCTYPEBITS+1;
+	EMACS_INT val  : VALBITS;
+	EMACS_INT type : GCTYPEBITS + 1;
       } s;
     struct
       {
-	unsigned int val: VALBITS;
-	int type: GCTYPEBITS+1;
+	EMACS_UINT val : VALBITS;
+	EMACS_INT type : GCTYPEBITS + 1;
       } u;
     struct
       {
-	unsigned int val: VALBITS;
-	enum Lisp_Type type: GCTYPEBITS;
+	EMACS_UINT val		: VALBITS;
+	enum Lisp_Type type	: GCTYPEBITS;
 	/* The markbit is not really part of the value of a Lisp_Object,
 	   and is always zero except during garbage collection.  */
-	unsigned int markbit: 1;
+	EMACS_UINT markbit	: 1;
       } gu;
   }
 Lisp_Object;
@@ -208,25 +208,25 @@
   {
     /* Used for comparing two Lisp_Objects;
        also, positive integers can be accessed fast this way.  */
-    int i;
+    EMACS_INT i;
 
     struct
       {
-	int type: GCTYPEBITS+1;
-	int val: VALBITS;
+	EMACS_INT type : GCTYPEBITS+1;
+	EMACS_INT val  : VALBITS;
       } s;
     struct
       {
-	int type: GCTYPEBITS+1;
-	unsigned int val: VALBITS;
+	EMACS_INT type : GCTYPEBITS+1;
+	EMACS_UINT val : VALBITS;
       } u;
     struct
       {
 	/* The markbit is not really part of the value of a Lisp_Object,
 	   and is always zero except during garbage collection.  */
-	unsigned int markbit: 1;
-	enum Lisp_Type type: GCTYPEBITS;
-	unsigned int val: VALBITS;
+	EMACS_UINT markbit	: 1;
+	enum Lisp_Type type	: GCTYPEBITS;
+	EMACS_UINT val		: VALBITS;
       } gu;
   }
 Lisp_Object;
@@ -428,7 +428,7 @@
 #define XPNTR(a) ((a).u.val)
 
 #define XSET(var, vartype, ptr) \
-   (((var).s.val = ((int) (ptr))), ((var).s.type = ((char) (vartype))))
+   (((var).s.val = ((EMACS_INT) (ptr))), ((var).s.type = ((char) (vartype))))
 
 #if __GNUC__ >= 2 && defined (__OPTIMIZE__)
 #define make_number(N) \