| 
      
      
      From: Stefan S. <se...@sy...> - 2005-12-12 17:09:13
      
     | 
| Gilles J. Seguin wrote:
> On Sun, 2005-12-11 at 12:54 -0800, Claudio Levinas wrote:
> 
>>Lex.cc does indeed skip the keyword, only that it was set to skip "__ASM__". 
>>I simply added "__ASM" and it did the job.
>>
>>#if (defined __GNUC__) || (defined _GNUC_SYNTAX)
>>     { "__alignof__", token(SIZEOF) },
> 
> 
> i need an #ifdef SOMETHING
> 
>>+   { "__asm", token(ATTRIBUTE) },
> 
> #endif
> 
> do we have a standard one
FWIW, I added '__asm' to synopsis' lexer keywords unconditionally a long time
ago without ever running into trouble. I think this is a fairly safe thing to
do, as user code never should use names starting with double underscores, so
there is no or little danger for name clashes.
Regards,
		Stefan
 |