prepared parser for direct use of file->buf_ptr - faster comment parsing

This commit is contained in:
bellard
2002-11-22 23:28:06 +00:00
parent cdcfed9737
commit b81d4ba6b3
2 changed files with 76 additions and 33 deletions

View File

@ -1890,7 +1890,8 @@ static int tcc_load_ldscript(TCCState *s1)
char filename[1024];
int t;
inp();
ch = file->buf_ptr[0];
handle_eob();
for(;;) {
t = ld_next(s1, cmd, sizeof(cmd));
if (t == LD_TOK_EOF)