aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDJ Delorie <dj@redhat.com>2000-11-15 19:10:20 +0000
committerDJ Delorie <dj@redhat.com>2000-11-15 19:10:20 +0000
commit296731c177fcab2fb6dd5ca4d0a308a47b67fc86 (patch)
tree508aec04bc5663300d1daed9df1a5c4de98807e9
parent4a8e467a7a5b8e9751dfaba958dc1fa302096edc (diff)
downloadgdb-296731c177fcab2fb6dd5ca4d0a308a47b67fc86.zip
gdb-296731c177fcab2fb6dd5ca4d0a308a47b67fc86.tar.gz
gdb-296731c177fcab2fb6dd5ca4d0a308a47b67fc86.tar.bz2
[merge]
* cplus_dem.c: Eliminate use of DEFUN, it is obsolete and cannot be used in GCC.
-rw-r--r--libiberty/ChangeLog5
-rw-r--r--libiberty/cplus-dem.c16
2 files changed, 13 insertions, 8 deletions
diff --git a/libiberty/ChangeLog b/libiberty/ChangeLog
index 7be423c..ef03bca 100644
--- a/libiberty/ChangeLog
+++ b/libiberty/ChangeLog
@@ -1,5 +1,10 @@
2000-11-15 Kenneth Block <kenneth.block@compaq.com>
+ * cplus_dem.c: Eliminate use of DEFUN, it is obsolete and cannot
+ be used in GCC.
+
+2000-11-15 Kenneth Block <kenneth.block@compaq.com>
+
* cplus_dem.c: Add gnat demangler. Add java to demangle style
list.
diff --git a/libiberty/cplus-dem.c b/libiberty/cplus-dem.c
index 53549ca..ff72322 100644
--- a/libiberty/cplus-dem.c
+++ b/libiberty/cplus-dem.c
@@ -927,11 +927,11 @@ cplus_demangle (mangled, options)
ELEMENT_SIZE, grow it to contain at least MIN_SIZE objects,
updating *OLD_VECT and *SIZE as necessary. */
static void
-DEFUN (grow_vect, (old_vect, size, min_size, element_size),
- void** old_vect
- AND size_t* size
- AND size_t min_size
- AND int element_size)
+grow_vect (old_vect, size, min_size, element_size)
+ void** old_vect;
+ size_t* size;
+ size_t min_size;
+ int element_size;
{
if (*size < min_size) {
*size *= 2;
@@ -951,9 +951,9 @@ DEFUN (grow_vect, (old_vect, size, min_size, element_size),
The resulting string is valid until the next call of ada_demangle.
*/
static char *
-DEFUN (ada_demangle, (mangled, style, option),
- const char* mangled
- AND int option ATTRIBUTE_UNUSED)
+ada_demangle (mangled, option)
+ const char* mangled;
+ int option;
{
int i, j;
int len0;