From 9a8b2912ed2e3de97cde5fec0e886a0660fe6b5f Mon Sep 17 00:00:00 2001 From: grischka Date: Thu, 16 Apr 2009 19:32:59 +0200 Subject: TOK_builtin_malloc: alternative solution --- tcc.c | 18 ++++-------------- 1 file changed, 4 insertions(+), 14 deletions(-) (limited to 'tcc.c') diff --git a/tcc.c b/tcc.c index 3901b81..ef89e60 100644 --- a/tcc.c +++ b/tcc.c @@ -7801,21 +7801,11 @@ static void unary(void) break; #ifdef TCC_TARGET_X86_64 case TOK_builtin_malloc: - { - char *p = file->buf_ptr; - file->buf_ptr = "malloc"; - next_nomacro1(); - file->buf_ptr = p; - goto tok_identifier; - } + tok = TOK_malloc; + goto tok_identifier; case TOK_builtin_free: - { - char *p = file->buf_ptr; - file->buf_ptr = "free"; - next_nomacro1(); - file->buf_ptr = p; - goto tok_identifier; - } + tok = TOK_free; + goto tok_identifier; #endif case TOK_INC: case TOK_DEC: -- cgit v1.3.1