* Rename remote-es1800.c to remote-es.c
[deliverable/binutils-gdb.git] / gdb / defs.h
index 3d03b9a232a5763b3858291673528851bc5e4a0a..9dae5e7ec792809b3bcf3d8f14e788c3586edd49 100644 (file)
@@ -40,7 +40,7 @@ typedef unsigned int CORE_ADDR;
 #define STREQ(a,b) (*(a) == *(b) ? !strcmp ((a), (b)) : 0)
 #define STREQN(a,b,c) (*(a) == *(b) ? !strncmp ((a), (b), (c)) : 0)
 
-/* The character C++ uses to build identifiers that must be unique from
+/* The character GNU C++ uses to build identifiers that must be unique from
    the program's identifiers (such as $this and $$vptr).  */
 #define CPLUS_MARKER '$'       /* May be overridden to '.' for SysV */
 
@@ -434,20 +434,23 @@ enum val_prettyprint
 /* Defaults for system-wide constants (if not defined by xm.h, we fake it).  */
 
 #if !defined (UINT_MAX)
-#define UINT_MAX 0xffffffff
-#endif
-
-#if !defined (LONG_MAX)
-#define LONG_MAX 0x7fffffff
+#define        UINT_MAX ((unsigned int)(~0))           /* 0xFFFFFFFF for 32-bits */
 #endif
 
 #if !defined (INT_MAX)
-#define INT_MAX 0x7fffffff
+#define        INT_MAX ((int)(UINT_MAX >> 1))          /* 0x7FFFFFFF for 32-bits */
 #endif
 
 #if !defined (INT_MIN)
-/* Two's complement, 32 bit.  */
-#define INT_MIN -0x80000000
+#define INT_MIN (-INT_MAX - 1)                 /* 0x80000000 for 32-bits */
+#endif
+
+#if !defined (ULONG_MAX)
+#define        ULONG_MAX ((unsigned long)(~0L))        /* 0xFFFFFFFF for 32-bits */
+#endif
+
+#if !defined (LONG_MAX)
+#define        LONG_MAX ((long)(ULONG_MAX >> 1))       /* 0x7FFFFFFF for 32-bits */
 #endif
 
 /* Number of bits in a char or unsigned char for the target machine.
@@ -722,10 +725,10 @@ qsort PARAMS ((void *base, size_t nmemb,          /* 4.10.5.2 */
 #ifndef        MEM_FNS_DECLARED        /* Some non-ANSI use void *, not char *.  */
 extern PTR
 memcpy PARAMS ((void *, const void *, size_t));                /* 4.11.2.1 */
-#endif
 
 extern int
 memcmp PARAMS ((const void *, const void *, size_t));  /* 4.11.4.1 */
+#endif
 
 extern char *
 strchr PARAMS ((const char *, int));                   /* 4.11.5.2 */
This page took 0.023562 seconds and 4 git commands to generate.