[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Tinycc-devel] GAS symbols
From: |
Sergey Korshunoff |
Subject: |
Re: [Tinycc-devel] GAS symbols |
Date: |
Tue, 5 Apr 2016 14:31:16 +0300 |
> but I don't see where do you restore its prev value for the rest of the input?
No need to do this. There is additional explicit check for '.'
parse_num:
for(;;) {
t = c;
cstr_ccat(&tokcstr, c);
PEEKC(c, p);
if (!((isidnum_table[c - CH_EOF] & (IS_ID|IS_NUM))
|| c == '.'
|| ((c == '+' || c == '-')
&& (t == 'e' || t == 'E' || t == 'p' || t == 'P')
)))
break;
}
All other places check for IS_SPC.
PS: There is much cleaner solution (but it is a bit slower): change
isidnum_table when we change parse_flags (in #define)
- Re: [Tinycc-devel] GAS symbols, (continued)
- Re: [Tinycc-devel] GAS symbols, Michael Matz, 2016/04/03
- Re: [Tinycc-devel] GAS symbols, Sergey Korshunoff, 2016/04/03
- Re: [Tinycc-devel] GAS symbols, Vladimir Vissoultchev, 2016/04/04
- Re: [Tinycc-devel] GAS symbols, Sergey Korshunoff, 2016/04/04
- Re: [Tinycc-devel] GAS symbols, Sergey Korshunoff, 2016/04/04
- Re: [Tinycc-devel] GAS symbols, Sergey Korshunoff, 2016/04/04
- Re: [Tinycc-devel] GAS symbols, Vladimir Vissoultchev, 2016/04/04
- Re: [Tinycc-devel] GAS symbols, Sergey Korshunoff, 2016/04/05
- Re: [Tinycc-devel] GAS symbols, Vladimir Vissoultchev, 2016/04/05
- Re: [Tinycc-devel] GAS symbols,
Sergey Korshunoff <=
- Re: [Tinycc-devel] GAS symbols, Sergey Korshunoff, 2016/04/07
- Re: [Tinycc-devel] GAS symbols, Sergey Korshunoff, 2016/04/07