Move demangling utility to stdio

Closes #848
This commit is contained in:
Justine Tunney 2023-07-07 10:26:07 -07:00
parent a1dd777f22
commit 3a8579252d
No known key found for this signature in database
GPG key ID: BE714B4575D6E328
5 changed files with 100 additions and 111 deletions

4427
libc/stdio/demangle.c Normal file

File diff suppressed because it is too large Load diff

View file

@ -169,6 +169,12 @@ int fprintf_unlocked(FILE *, const char *, ...) printfesque(2)
int vfprintf_unlocked(FILE *, const char *, va_list)
paramsnonnull() dontthrow nocallback;
/*───────────────────────────────────────────────────────────────────────────│─╗
cosmopolitan § cxxabi
*/
char *__cxa_demangle(const char *, char *, size_t *, int *);
COSMOPOLITAN_C_END_
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
#endif /* COSMOPOLITAN_LIBC_STDIO_H_ */