Mail Archives: djgpp/1993/02/03/15:59:39
This is the header of a program posted to Usenet and said to be
included in G++ 2.3.3. It returns the demangled versions of G++
mangled function names. Is there an equivalent version for G++ 2.2.2?
If so please where is it to be found?
I checked the *.h files for gcc and g++ in DJGPP V1.09 and it is not
defined in the header files.
John
----------------------------------------------------------------------
/* Demangler for GNU C++
Copyright (C) 1989, 1992 Free Software Foundation, Inc.
written by James Clark (jjc AT jclark DOT uucp)
<Licence info deleted - included in source>
/* This is for g++ 1.36.1 (November 6 version). It will probably
require changes for any other version.
Modified for g++ 1.36.2 (November 18 version).
Modified for g++ 1.90.06 (December 31 version).
Modified for g++ 1.95.03 (November 13 version). */
/* This file exports one function
char *cplus_demangle (const char *name)
If NAME is a mangled function name produced by GNU C++, then
a pointer to a malloced string giving a C++ representation
of the name will be returned; otherwise NULL will be returned.
It is the caller's responsibility to free the string which
is returned.
For example,
cplus_demangle ("_foo__1Ai")
returns
"A::foo(int)"
This file imports xmalloc and xrealloc, which are like malloc and
realloc except that they generate a fatal error if there is no
available memory. */
/* #define nounderscore 1 /* define this is names don't start with _
*/
---------------------------------------------------------------------
End of extract.
---------------------------------------------------------------------
Dr John P. Fletcher
Department of Chemical Engineering and Applied Chemistry,
Aston University, Tel: (44) 21 359 3611 ext 4625
Aston Triangle, Email(Most systems): J DOT P DOT FLETCHER AT ASTON DOT AC DOT UK
BIRMINGHAM B4 7ET U.K. Email(JANET only): J DOT P DOT FLETCHER AT UK DOT ASTON DOT AC
---------------------------------------------------------------------
- Raw text -