mirror of
https://github.com/netwide-assembler/nasm.git
synced 2024-12-03 08:41:02 +08:00
88c9e1f88c
Ownership of the filename string was a bit fuzzy, with the result that we were freeing it even though it was retained for use by __FILE__. Clean up a number of other memory management issues with the new quoting code, and change the stdscan implementation to one pass over the string.
12 lines
217 B
C
12 lines
217 B
C
#ifndef NASM_QUOTE_H
|
|
#define NASM_QUOTE_H
|
|
|
|
#include "compiler.h"
|
|
|
|
char *nasm_quote(char *str, size_t len);
|
|
size_t nasm_unquote(char *str, char **endptr);
|
|
char *nasm_skip_string(char *str);
|
|
|
|
#endif /* NASM_QUOTE_H */
|
|
|