* gdbtypes.h (builtin_type_f_integer): Removed duplicate declaration.
authorJ.T. Conklin <jtc@acorntoolworks.com>
Thu, 1 Mar 2001 21:56:35 +0000 (21:56 +0000)
committerJ.T. Conklin <jtc@acorntoolworks.com>
Thu, 1 Mar 2001 21:56:35 +0000 (21:56 +0000)
(MAX_OF_TYPE): Wrap macro definition in parenthesis.
(MIN_OF_TYPE): Likewise.

* memattr.h (mem_access_mode): Removed extraneous trailing comma.

gdb/ChangeLog
gdb/gdbtypes.h
gdb/memattr.h

index 7714fd67d8a1060f6b6326ccd3731f53039a8841..216df55438abf3d12f7c03f3e90c7757a5353855 100644 (file)
@@ -1,3 +1,11 @@
+2001-03-01  J.T. Conklin  <jtc@redback.com>
+
+       * gdbtypes.h (builtin_type_f_integer): Removed duplicate declaration.
+       (MAX_OF_TYPE): Wrap macro definition in parenthesis.
+       (MIN_OF_TYPE): Likewise.
+       
+       * memattr.h (mem_access_mode): Removed extraneous trailing comma.
+
 2001-03-01  Andrew Cagney  <ac131313@redhat.com>
 
        * Makefile.in (os9kread.o): Do not compile with WERROR_CFLAGS.
index b7a9a75297431a4f4de6b5a22e7aee8634a592be..15be20797953144afb30a127522a792267075026 100644 (file)
@@ -905,11 +905,10 @@ extern struct type *builtin_type_chill_real;
 
 extern struct type *builtin_type_f_character;
 extern struct type *builtin_type_f_integer;
+extern struct type *builtin_type_f_integer_s2;
 extern struct type *builtin_type_f_logical;
 extern struct type *builtin_type_f_logical_s1;
 extern struct type *builtin_type_f_logical_s2;
-extern struct type *builtin_type_f_integer;
-extern struct type *builtin_type_f_integer_s2;
 extern struct type *builtin_type_f_real;
 extern struct type *builtin_type_f_real_s8;
 extern struct type *builtin_type_f_real_s16;
@@ -924,12 +923,12 @@ extern struct type *builtin_type_f_void;
 /* Maximum and minimum values of built-in types */
 
 #define        MAX_OF_TYPE(t)  \
-   TYPE_UNSIGNED(t) ? UMAX_OF_SIZE(TYPE_LENGTH(t)) \
-    : MAX_OF_SIZE(TYPE_LENGTH(t))
+   (TYPE_UNSIGNED(t) ? UMAX_OF_SIZE(TYPE_LENGTH(t)) \
+    : MAX_OF_SIZE(TYPE_LENGTH(t)))
 
 #define MIN_OF_TYPE(t) \
-   TYPE_UNSIGNED(t) ? UMIN_OF_SIZE(TYPE_LENGTH(t)) \
-    : MIN_OF_SIZE(TYPE_LENGTH(t))
+   (TYPE_UNSIGNED(t) ? UMIN_OF_SIZE(TYPE_LENGTH(t)) \
+    : MIN_OF_SIZE(TYPE_LENGTH(t)))
 
 /* Allocate space for storing data associated with a particular type.
    We ensure that the space is allocated using the same mechanism that
index 1af276b5169f76a38389ec9b0854046a7d4af898..75b5f781c1dbafd9deaa629c6cd7dbe14631c195 100644 (file)
@@ -6,7 +6,7 @@ enum mem_access_mode
 {
   MEM_RW,                      /* read/write */
   MEM_RO,                      /* read only */
-  MEM_WO,                      /* write only */
+  MEM_WO                       /* write only */
 };
 
 enum mem_access_width