diff options
author | Federico G. Schwindt <fgsch@cvs.openbsd.org> | 2002-05-11 13:09:38 +0000 |
---|---|---|
committer | Federico G. Schwindt <fgsch@cvs.openbsd.org> | 2002-05-11 13:09:38 +0000 |
commit | 3af250c336487ec20c027dcdc48e3264eb5b3dae (patch) | |
tree | 4aad309bf0a7a6dc510a06ea3d89320364f7b590 | |
parent | 5218c878764121c93f369f9de64d3d11b8ac0df1 (diff) |
funcs and declarations needed by recent changes to cplus-dem.c; espie@ ok
-rw-r--r-- | gnu/egcs/include/demangle.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/gnu/egcs/include/demangle.h b/gnu/egcs/include/demangle.h index 63fe5e2adf4..a6234119aff 100644 --- a/gnu/egcs/include/demangle.h +++ b/gnu/egcs/include/demangle.h @@ -78,6 +78,16 @@ extern enum demangling_styles #define HP_DEMANGLING (((int) CURRENT_DEMANGLING_STYLE) & DMGL_HP) #define EDG_DEMANGLING (((int) CURRENT_DEMANGLING_STYLE) & DMGL_EDG) +/* Provide information about the available demangle styles. This code is + pulled from gdb into libiberty because it is useful to binutils also. */ + +extern struct demangler_engine +{ + const char *demangling_style_name; + enum demangling_styles demangling_style; + const char *demangling_style_doc; +} libiberty_demanglers[]; + extern char * cplus_demangle PARAMS ((const char *mangled, int options)); @@ -92,4 +102,10 @@ cplus_mangle_opname PARAMS ((const char *opname, int options)); extern void set_cplus_marker_for_demangling PARAMS ((int ch)); +extern enum demangling_styles +cplus_demangle_set_style PARAMS ((enum demangling_styles style)); + +extern enum demangling_styles +cplus_demangle_name_to_style PARAMS ((const char *name)); + #endif /* DEMANGLE_H */ |