]> git.saurik.com Git - apple/xnu.git/blame - libkern/kxld/kxld_demangle.h
xnu-1504.7.4.tar.gz
[apple/xnu.git] / libkern / kxld / kxld_demangle.h
CommitLineData
b7266188
A
1#ifndef _KXLD_DEMANGLE_H_
2#define _KXLD_DEMANGLE_H_
3
4#include <sys/types.h>
5
6/* @function kxld_demangle
7
8 * @abstract Demangles c++ symbols.
9 *
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.
14 *
15 * @param length The length of the buffer.
16 *
17 * @result If the input string could be demangled, it returns the
18 * demangled string. Otherwise, returns the input string.
19 *
20 */
21const char * kxld_demangle(const char *str, char **buffer, size_t *length)
22 __attribute__((pure, nonnull, visibility("hidden")));
23
24#endif /* !_KXLD_DEMANGLE_H_ */