[splint-discuss] SPLINT sysmac.h error

Ludolf Holzheid lholzheid at bihl-wiedemann.de
Mon Jul 16 10:34:31 PDT 2007


On Mon, 2007-07-16 16:32:59 +0100, Asim Zaka wrote:
> <html>
> <body>
> Hi All,<br><br>
> I am putting my C code through SPlint for refining it using IAR C
> compiler for H8 microprocessors. I get the following errors:<br><br>
> <font face="Courier New, Courier">splint.exe -preproc -linelen 600
> -DH8_38327 -DCLOCK_16MHZ -D_ISSUE -I./h/ -I\inc&nbsp;
> [..]
> Splint 3.0.1.6 --- 11 Feb 2002<br><br>
> &nbsp;&nbsp; In file included from
> \\fx1112\compilers\h8300\v4_20c\inc\string.h(13),<br>
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
> from ./c/magtampermgr.c(26)<br>
> \\fx1112\compilers\h8300\v4_20c\inc\sysmac.h(52,23): syntax error -
> missing right operand<br>

Hi Asim,

you'll never get the IAR headers parsed by an ISO/ANSI-C parser. It
will choke at least at the sfrb and sfrw statements.

For an H8 project I used splint with, I wrote my own versions of the
offending headers and put them in a separate directory. I've put this
directory on the top of the list of include directories for splint
(i.e. first -I flag) in order to have them parsed instead of the IAR
ones.

Of course, the compiler still used the original headers.

HTH,

Ludolf




-- 

---------------------------------------------------------------
Ludolf Holzheid             Tel:    +49 621 339960
Bihl+Wiedemann GmbH         Fax:    +49 621 3392239
Floßwörthstraße 41          e-mail: lholzheid at bihl-wiedemann.de
D-68199 Mannheim, Germany
---------------------------------------------------------------



More information about the splint-discuss mailing list