diff options
author | Alan Modra <amodra@gmail.com> | 2003-08-07 02:25:50 +0000 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2003-08-07 02:25:50 +0000 |
commit | 8cf3f354675d0645b5c6fef1237d263ce2e251eb (patch) | |
tree | c8ece8c9f70334557186aa13758f56b8bcbb1481 /include/elf | |
parent | 1fa1d2cdfc4c9a81fb04dea853cc215a6076f141 (diff) | |
download | gdb-8cf3f354675d0645b5c6fef1237d263ce2e251eb.zip gdb-8cf3f354675d0645b5c6fef1237d263ce2e251eb.tar.gz gdb-8cf3f354675d0645b5c6fef1237d263ce2e251eb.tar.bz2 |
Convert to C90.
Diffstat (limited to 'include/elf')
-rw-r--r-- | include/elf/ChangeLog | 10 | ||||
-rw-r--r-- | include/elf/reloc-macros.h | 23 |
2 files changed, 15 insertions, 18 deletions
diff --git a/include/elf/ChangeLog b/include/elf/ChangeLog index 6b0a8c5..90f525c 100644 --- a/include/elf/ChangeLog +++ b/include/elf/ChangeLog @@ -1,3 +1,9 @@ +2003-08-07 Alan Modra <amodra@bigpond.net.au> + + * reloc-macros.h (START_RELOC_NUMBERS) : Remove PARAMS macro. Use + C90 function definition. Formatting. + (RELOC_NUMBER): Remove !__STDC__ code. + 2003-07-28 Eric Christopher <echristo@redhat.com> * ppc.h (R_PPC_RELAX32): New. Fake relocation. @@ -38,10 +44,6 @@ * mmix.h: Convert to ISO C90 prototypes. * mips.h: Likewise. - * reloc-macros.h (START_RELOC_NUMBERS): Convert to ISO C90 - prototype. - (RELOC_NUMBER): Remove !__STDC__ code. - 2003-06-13 Robert Millan <zeratul2@wanadoo.es> * common.h (GNU_ABI_TAG_NETBSD): New tag. diff --git a/include/elf/reloc-macros.h b/include/elf/reloc-macros.h index 9ad346c..4a3a60f 100644 --- a/include/elf/reloc-macros.h +++ b/include/elf/reloc-macros.h @@ -1,5 +1,5 @@ /* Generic relocation support for BFD. - Copyright 1998, 1999, 2000 Free Software Foundation, Inc. + Copyright 1998, 1999, 2000, 2003 Free Software Foundation, Inc. This file is part of BFD, the Binary File Descriptor library. @@ -46,10 +46,9 @@ If RELOC_MACROS_GEN_FUNC *is* defined, then instead the following function will be generated: - static const char * foo PARAMS ((unsigned long rtype)); + static const char *foo (unsigned long rtype); static const char * - foo (rtype) - unsigned long rtype; + foo (unsigned long rtype) { switch (rtype) { @@ -70,26 +69,22 @@ the relocation is not recognised, NULL is returned. */ #define START_RELOC_NUMBERS(name) \ -static const char * name PARAMS ((unsigned long rtype)); \ +static const char *name (unsigned long rtype); \ static const char * \ -name (rtype) \ - unsigned long rtype; \ +name (unsigned long rtype) \ { \ switch (rtype) \ - { + { -#if defined (__STDC__) || defined (ALMOST_STDC) -#define RELOC_NUMBER(name, number) case number : return #name ; -#else -#define RELOC_NUMBER(name, number) case number : return "name" ; -#endif +#define RELOC_NUMBER(name, number) \ + case number: return #name; #define FAKE_RELOC(name, number) #define EMPTY_RELOC(name) #define END_RELOC_NUMBERS(name) \ default: return NULL; \ - } \ + } \ } |