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.
master
Lee Duhem 2014-12-11 09:58:53 +08:00
parent f1703e2b2f
commit 20a5845a47
1 changed files with 1 additions and 1 deletions

2
tcc.h
View File

@ -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 */