[splint-discuss] Parse error with @ from the IAR compiler
Richard A. O'Keefe
ok at cs.otago.ac.nz
Wed Apr 30 03:17:58 PDT 2008
>
> int myVar @ 0xFFE0;
>
Use
#ifdef S_SPLINT_S
#define at(x)
#else
#define at(x) @x
#endif
...
int myVar at(0xFFE0);
>
> -D@="; //"
This makes no sense: C syntax only allows you to #define identifiers,
and @ is not in the C alphabet.
I'm sure you can write a script in your favourite scripting language
(sed, awk, perl, tcl, python, ...) to change '@ <number>' into
'at(<number>)'.
More information about the splint-discuss
mailing list