mirror of
https://github.com/frida/tinycc
synced 2025-01-11 14:19:19 +03:00
tcc.h (BufferedFile): Remove unnecessary static memory allocation
The memory needed by `buffer' will be allocated in `tcc_open_bf', these is no need to allocate them in BufferedFile statically.
This commit is contained in:
parent
f1703e2b2f
commit
20a5845a47
2
tcc.h
2
tcc.h
@ -494,7 +494,7 @@ typedef struct BufferedFile {
|
||||
int ifndef_macro_saved; /* saved ifndef_macro */
|
||||
int *ifdef_stack_ptr; /* ifdef_stack value at the start of the file */
|
||||
char filename[1024]; /* filename */
|
||||
unsigned char buffer[IO_BUF_SIZE + 1]; /* extra size for CH_EOB char */
|
||||
unsigned char buffer[1]; /* extra size for CH_EOB char */
|
||||
} BufferedFile;
|
||||
|
||||
#define CH_EOB '\\' /* end of buffer or '\0' char in file */
|
||||
|
Loading…
Reference in New Issue
Block a user