tcc: don't use pstrcpy, fix win32 spanwn quoting
- we're now exporting tcc_prefixed symbols from libtcc only
- On windows, the msvcrt startup code would remove backslashes
from commandline arguments such as
-DFOO=\"foo\"
which would appear in argv as
-DFOO="foo"
Therefor before passing these to spawnvp, we need to restore
the backslashes.
This commit is contained in:
6
tcc.h
6
tcc.h
@ -1060,9 +1060,9 @@ ST_DATA int tcc_ext;
|
||||
ST_DATA struct TCCState *tcc_state;
|
||||
|
||||
/* public functions currently used by the tcc main function */
|
||||
PUB_FUNC char *pstrcpy(char *buf, int buf_size, const char *s);
|
||||
PUB_FUNC char *pstrcat(char *buf, int buf_size, const char *s);
|
||||
PUB_FUNC char *pstrncpy(char *out, const char *in, size_t num);
|
||||
ST_FUNC char *pstrcpy(char *buf, int buf_size, const char *s);
|
||||
ST_FUNC char *pstrcat(char *buf, int buf_size, const char *s);
|
||||
ST_FUNC char *pstrncpy(char *out, const char *in, size_t num);
|
||||
PUB_FUNC char *tcc_basename(const char *name);
|
||||
PUB_FUNC char *tcc_fileextension (const char *name);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user