Go to the source code of this file.
Data Structures | |
struct | libmangle_gc_context_t |
Typedefs | |
typedef void * | libmangle_gc_t |
typedef void * | libmangle_tokens_t |
Functions | |
void | libmangle_release_gc (libmangle_gc_context_t *gc) |
libmangle_gc_context_t * | libmangle_generate_gc (void) |
void | libmangle_dump_tok (FILE *fp, libmangle_tokens_t p) |
void | libmangle_print_decl (FILE *fp, libmangle_tokens_t p) |
char * | libmangle_sprint_decl (libmangle_tokens_t r) |
libmangle_tokens_t | libmangle_decode_ms_name (libmangle_gc_context_t *gc, const char *name) |
char * | libmangle_encode_ms_name (libmangle_gc_context_t *gc, libmangle_tokens_t tok) |
typedef void* libmangle_gc_t |
Garbage collector elements. Tracks allocated memory and points to the next element from the same context. Opaque structure.
typedef void* libmangle_tokens_t |
Generic token instances. Type of token determined by base descriptor in members. Opaque structure.
libmangle_tokens_t libmangle_decode_ms_name | ( | libmangle_gc_context_t * | gc, | |
const char * | name | |||
) |
Decodes an MSVC export name.
[in] | gc | libmangle_gc_context_t pointer for collecting memory allocations. |
[in] | name | MSVC C++ mangled export string. |
void libmangle_dump_tok | ( | FILE * | fp, | |
libmangle_tokens_t | p | |||
) |
Dumps pMToken to a file descriptor for debugging.
[in] | fp | File descriptor to print the token to. |
[in] | p | libmangle_tokens_t chain to print. |
char* libmangle_encode_ms_name | ( | libmangle_gc_context_t * | gc, | |
libmangle_tokens_t | tok | |||
) |
libmangle_gc_context_t* libmangle_generate_gc | ( | void | ) |
Constructs a garbage collection context token.
void libmangle_print_decl | ( | FILE * | fp, | |
libmangle_tokens_t | p | |||
) |
Prints C++ name to file descriptor.
[in] | fp | Output file descriptor. |
[in] | p | Token containing information about the C++ name. |
void libmangle_release_gc | ( | libmangle_gc_context_t * | gc | ) |
Releases memory tracked by context.
[in] | gc | Garbage collection context to work on. |
char* libmangle_sprint_decl | ( | libmangle_tokens_t | r | ) |
Get pointer to decoded C++ name string. Use free() to release returned string.
[in] | r | C++ name token. |