X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=Utils%2FTypeInfo.cc;h=bed28764c3f9d6595abfd8297b278f063bfa45ea;hb=412024ed31a4ab4eaea7a4165a434f8efebee325;hp=cb85c9b4e726875826b5b133cc45094efb8104f4;hpb=85ab07d100a382467a42e19d741d403a7a96c951;p=senf.git diff --git a/Utils/TypeInfo.cc b/Utils/TypeInfo.cc index cb85c9b..bed2876 100644 --- a/Utils/TypeInfo.cc +++ b/Utils/TypeInfo.cc @@ -1,9 +1,9 @@ // $Id$ // // Copyright (C) 2006 -// Fraunhofer Institut fuer offene Kommunikationssysteme (FOKUS) -// Kompetenzzentrum fuer Satelitenkommunikation (SatCom) -// Stefan Bund +// Fraunhofer Institute for Open Communication Systems (FOKUS) +// Competence Center NETwork research (NET), St. Augustin, GERMANY +// Stefan Bund // // This program is free software; you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by @@ -27,25 +27,18 @@ //#include "TypeInfo.ih" // Custom includes -#include "malloc.h" -#define HAVE_DECL_BASENAME 1 -#define HAVE_DECL_ASPRINTF 1 -#define HAVE_DECL_VASPRINTF 1 -#include "impl/demangle.h" +#include +#include //#include "TypeInfo.mpp" #define prefix_ ///////////////////////////////cc.p//////////////////////////////////////// - -// WARNING: This is completely g++ and libiberty dependent. The demangling -// interface isn't even explicitly exportet from libiberty. However, it is -// *EXTREMELY* helpful for debugging ... - prefix_ std::string senf::prettyName(std::type_info const & type) { char const * mangled = type.name(); - char * demangled = ::cplus_demangle(mangled,DMGL_TYPES|DMGL_AUTO); + int status (0); + char * demangled ( abi::__cxa_demangle(mangled, 0, 0, &status) ); std::string name (demangled ? demangled : mangled); if (demangled) ::free(demangled); @@ -63,4 +56,6 @@ prefix_ std::string senf::prettyName(std::type_info const & type) // c-file-style: "senf" // indent-tabs-mode: nil // ispell-local-dictionary: "american" +// compile-command: "scons -u test" +// comment-column: 40 // End: