diff options
author | Alan Modra <modra@gmail.com> | 2003-08-07 02:25:50 +0000 |
---|---|---|
committer | Alan Modra <modra@gmail.com> | 2003-08-07 02:25:50 +0000 |
commit | 61982e3c094083f483ef04a1ab02e6159e13f7bb (patch) | |
tree | 18f1ca29d431bebf16eac7427f57c9a43d2ea870 /include/elf/reloc-macros.h | |
parent | 0601b11fb647ed948cb0e2ad33ece143532631fb (diff) | |
download | cygnal-61982e3c094083f483ef04a1ab02e6159e13f7bb.tar.gz cygnal-61982e3c094083f483ef04a1ab02e6159e13f7bb.tar.bz2 cygnal-61982e3c094083f483ef04a1ab02e6159e13f7bb.zip |
Convert to C90.
Diffstat (limited to 'include/elf/reloc-macros.h')
-rw-r--r-- | include/elf/reloc-macros.h | 23 |
1 files changed, 9 insertions, 14 deletions
diff --git a/include/elf/reloc-macros.h b/include/elf/reloc-macros.h index 9ad346c9f..4a3a60f7e 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; \ - } \ + } \ } |