diff options
author | jmacd <jmacd@FreeBSD.org> | 1997-01-11 05:51:03 +0000 |
---|---|---|
committer | jmacd <jmacd@FreeBSD.org> | 1997-01-11 05:51:03 +0000 |
commit | 34f7e2327f986b560edb3128da7bca1bf48d44fc (patch) | |
tree | 571d04c80b3a73ffbce21a4dc345428387bb4398 /gnu/usr.bin/ld/ld.h | |
parent | 05a9d406abfcedbd6fdde9e8de3971c71ea0aea1 (diff) | |
download | FreeBSD-src-34f7e2327f986b560edb3128da7bca1bf48d44fc.zip FreeBSD-src-34f7e2327f986b560edb3128da7bca1bf48d44fc.tar.gz |
Changes to make ld demangle C++ symbol names before printing
error messages containing them.
Reviewed by: Peter Wemm
Diffstat (limited to 'gnu/usr.bin/ld/ld.h')
-rw-r--r-- | gnu/usr.bin/ld/ld.h | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/gnu/usr.bin/ld/ld.h b/gnu/usr.bin/ld/ld.h index f020d6e..14e01d9 100644 --- a/gnu/usr.bin/ld/ld.h +++ b/gnu/usr.bin/ld/ld.h @@ -1,5 +1,5 @@ /* - * $Id: ld.h,v 1.16 1996/04/20 18:27:55 jdp Exp $ + * $Id: ld.h,v 1.17 1996/10/01 01:22:27 peter Exp $ */ /*- * This code is derived from software copyrighted by the Free Software @@ -53,6 +53,11 @@ extern int netzmagic; #endif #endif +#ifdef DEMANGLE_CPLUSPLUS +extern char *demangle __P((char*)); +#else +#define demangle(name) name +#endif /* * Ok. Following are the relocation information macros. If your @@ -342,9 +347,9 @@ struct string_list_element { }; struct glosym; -#ifndef __symbol_defined__ -#define __symbol_defined__ -typedef struct glosym symbol; +#ifndef __symbol_defined__ +#define __symbol_defined__ +typedef struct glosym symbol; #endif extern symbol *entry_symbol; /* the entry symbol, if any */ |