diff options
| author | grischka <grischka> | 2009-04-16 19:32:59 +0200 |
|---|---|---|
| committer | grischka <grischka> | 2009-04-18 15:08:02 +0200 |
| commit | 9a8b2912ed2e3de97cde5fec0e886a0660fe6b5f (patch) | |
| tree | b6730a1553de66797c1881efd30202ebc7da2126 /tcc.c | |
| parent | 742cf058752b7a3433d625c098b88d096b5a82e3 (diff) | |
| download | tinycc-9a8b2912ed2e3de97cde5fec0e886a0660fe6b5f.tar.gz tinycc-9a8b2912ed2e3de97cde5fec0e886a0660fe6b5f.tar.bz2 | |
TOK_builtin_malloc: alternative solution
Diffstat (limited to 'tcc.c')
| -rw-r--r-- | tcc.c | 18 |
1 files changed, 4 insertions, 14 deletions
@@ -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: |
