X-Git-Url: http://git.tdb.fi/?p=libs%2Fcore.git;a=blobdiff_plain;f=source%2Fdebug%2Fdemangle.cpp;h=e41eb9ad79f32152b92503d33168c6dd1a43d337;hp=5c348514fd9bffa57ec0d7cbf6acb4539d198880;hb=292aed8e23ea543b089d5f2a73000de4640befe7;hpb=20e1beb546c26eae3b1a61ab2051108a7dca221f diff --git a/source/debug/demangle.cpp b/source/debug/demangle.cpp index 5c34851..e41eb9a 100644 --- a/source/debug/demangle.cpp +++ b/source/debug/demangle.cpp @@ -1,12 +1,7 @@ -/* $Id$ - -This file is part of libmspcore -Copyright © 2007 Mikko Rasa, Mikkosoft Productions -Distributed under the LGPL -*/ - #include +#ifdef __GNUC__ #include +#endif #include "demangle.h" using namespace std; @@ -18,13 +13,13 @@ string demangle(const string &sym) { #ifdef __GNUC__ int status; - char *dm=abi::__cxa_demangle(sym.c_str(), 0, 0, &status); + char *dm = abi::__cxa_demangle(sym.c_str(), 0, 0, &status); string result; if(status==0) - result=dm; + result = dm; else - result=sym; + result = sym; free(dm);