radare2/libr/bin/mangling/msvc.c
radare d174f66f95
Refactoring and optimization for the RBin.language identification ##bin (#11944)
* More code cleanup and bring back bin.reload for the debugger
* Benchmark: swift: 23/9549 rcore: 17232/37147 (2-400x faster)
* For DVIA iOS app this is 1s less
* Demangle all the symbols, not just few
2018-10-27 05:01:09 +02:00

20 lines
426 B
C

/* radare - LGPL - Copyright 2015-2018 - inisider */
#include <r_bin.h>
#include "./demangler.h"
R_API char *r_bin_demangle_msvc(const char *str) {
char *out = NULL;
SDemangler *mangler = 0;
create_demangler (&mangler);
if (!mangler) {
return NULL;
}
if (init_demangler (mangler, (char *)str) == eDemanglerErrOK) {
mangler->demangle (mangler, &out/*demangled_name*/);
}
free_demangler (mangler);
return out;
}