aboutsummaryrefslogtreecommitdiff
path: root/tccelf.c
diff options
context:
space:
mode:
authorbellard <bellard>2002-11-22 23:28:06 +0000
committerbellard <bellard>2002-11-22 23:28:06 +0000
commitb81d4ba6b36bc20209e6d4a078a4eb26cfcc661b (patch)
tree5e2aa19601b8bdfd0f393b0e73370aa3365f8426 /tccelf.c
parentcdcfed9737c6cd20a36833b540c030f6601fea03 (diff)
downloadtinycc-b81d4ba6b36bc20209e6d4a078a4eb26cfcc661b.tar.gz
tinycc-b81d4ba6b36bc20209e6d4a078a4eb26cfcc661b.tar.bz2
prepared parser for direct use of file->buf_ptr - faster comment parsing
Diffstat (limited to 'tccelf.c')
-rw-r--r--tccelf.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/tccelf.c b/tccelf.c
index e534172..430c396 100644
--- a/tccelf.c
+++ b/tccelf.c
@@ -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)