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 [thread overview]
Message-ID: <5m4rxdqkh5.fsf@jtc.redback.com> (raw)
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
next reply other threads:[~2001-03-01 12:53 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-03-01 12:53 J.T. Conklin [this message]
2001-03-01 12:59 Michael Elizabeth Chastain
2001-03-01 13:43 ` J.T. Conklin
2001-03-01 14:12 Michael Elizabeth Chastain
2001-03-01 14:57 ` J.T. Conklin
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=5m4rxdqkh5.fsf@jtc.redback.com \
--to=jtc@redback.com \
--cc=gdb-patches@sourceware.cygnus.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox