From fb5f2519ad619aad9aee4d1579d4a4161e2f4d76 Mon Sep 17 00:00:00 2001 From: Victor van den Elzen Date: Fri, 17 Apr 2009 16:17:59 +0200 Subject: [PATCH] BR 2760773: $$ tokens The tokenizer didn't handle $$, but relied on token pasting of two $ tokens. This broke after the improvements in 9bb46df4. --- preproc.c | 3 +++ test/br890790.asm | 0 test/br890790_i.asm | 0 test/ifelse.asm | 0 4 files changed, 3 insertions(+) mode change 100755 => 100644 test/br890790.asm mode change 100755 => 100644 test/br890790_i.asm mode change 100755 => 100644 test/ifelse.asm diff --git a/preproc.c b/preproc.c index 45ef1f64..9a03f02d 100644 --- a/preproc.c +++ b/preproc.c @@ -873,6 +873,9 @@ static Token *tokenize(char *line) /* Handling unterminated strings by UNV */ /* type = -1; */ } + } else if (p[0] == '$' && p[1] == '$') { + type = TOK_NUMBER; + p += 2; } else if (isnumstart(*p)) { bool is_hex = false; bool is_float = false; diff --git a/test/br890790.asm b/test/br890790.asm old mode 100755 new mode 100644 diff --git a/test/br890790_i.asm b/test/br890790_i.asm old mode 100755 new mode 100644 diff --git a/test/ifelse.asm b/test/ifelse.asm old mode 100755 new mode 100644 -- 2.11.4.GIT