]>
git.saurik.com Git - apple/xnu.git/blob - libkern/kxld/kxld_demangle.h
1 #ifndef _KXLD_DEMANGLE_H_
2 #define _KXLD_DEMANGLE_H_
6 /* @function kxld_demangle
8 * @abstract Demangles c++ symbols.
10 * @param str The C-string to be demangled.
11 * @param buffer A pointer to a character buffer for storing the result.
12 * If NULL, a buffer will be malloc'd and stored here.
13 * If the buffer is not large enough, it will be realloc'd.
15 * @param length The length of the buffer.
17 * @result If the input string could be demangled, it returns the
18 * demangled string. Otherwise, returns the input string.
21 const char * kxld_demangle(const char *str
, char **buffer
, size_t *length
)
22 __attribute__((pure
, nonnull
, visibility("hidden")));
24 #endif /* !_KXLD_DEMANGLE_H_ */