From mboxrd@z Thu Jan 1 00:00:00 1970 From: jtc@redback.com (J.T. Conklin) To: gdb-patches@sourceware.cygnus.com Subject: [PATCH]: misc header file cleanup. Date: Thu, 01 Mar 2001 12:53:00 -0000 Message-id: <5m4rxdqkh5.fsf@jtc.redback.com> X-SW-Source: 2001-03/msg00024.html I'll be committing the following change soon. Just some cruft I found while setting things up so I can lint GDB. --jtc 2001-03-01 J.T. Conklin * 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. Index: gdbtypes.h =================================================================== RCS file: /cvs/src/src/gdb/gdbtypes.h,v retrieving revision 1.6 diff -c -r1.6 gdbtypes.h *** gdbtypes.h 2000/09/02 00:05:43 1.6 --- gdbtypes.h 2001/03/01 19:53:14 *************** *** 905,915 **** extern struct type *builtin_type_f_character; extern struct type *builtin_type_f_integer; 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; --- 905,914 ---- 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_real; extern struct type *builtin_type_f_real_s8; extern struct type *builtin_type_f_real_s16; *************** *** 924,935 **** /* 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)) #define MIN_OF_TYPE(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 --- 923,934 ---- /* 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))) #define MIN_OF_TYPE(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: memattr.h =================================================================== RCS file: /cvs/src/src/gdb/memattr.h,v retrieving revision 1.1 diff -c -r1.1 memattr.h *** memattr.h 2001/01/23 22:48:55 1.1 --- memattr.h 2001/03/01 19:53:15 *************** *** 6,12 **** { MEM_RW, /* read/write */ MEM_RO, /* read only */ ! MEM_WO, /* write only */ }; enum mem_access_width --- 6,12 ---- { MEM_RW, /* read/write */ MEM_RO, /* read only */ ! MEM_WO /* write only */ }; enum mem_access_width -- J.T. Conklin RedBack Networks