This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
[PATCH]: misc header file cleanup.
- To: gdb-patches at sourceware dot cygnus dot com
- Subject: [PATCH]: misc header file cleanup.
- From: jtc at redback dot com (J.T. Conklin)
- Date: 01 Mar 2001 12:53:42 -0800
- Reply-To: jtc at redback dot com
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 <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.
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