<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
-I\\fx1112\compilers\h8300\v4_20c\inc ./c/batmon.c ./c/cod.c
./c/magtamper.c ./c/magtampermgr.c ./c/des.c ./c/cbuffer.c
./c/comms_frame.c ./c/commsmgr.c ./c/ctimer.c ./c/euridis_service.c
./c/flag_service.c ./c/hport.c ./c/protocol_euridis.c ./c/protocol_flag.c
./c/random.c ./c/codmgr.c ./c/battsup.c ./c/billmgr.c ./c/btn.c
./c/btnmgr.c ./c/perscalndr.c ./c/cfgmgr.c ./c/dcsup.c ./c/dispmgr.c
./c/elecsup.c ./c/errmgr.c ./c/gpft.c ./c/gpst.c ./c/interpts.c ./c/lcd.c
./c/main.c ./c/manulink.c ./c/mdmgr.c ./c/mtring.c ./c/nvm.c ./c/nvmmgr.c
./c/ports.c ./c/pulsled.c ./c/pwrmgr.c ./c/rateinp.c ./c/rateoutp.c
./c/regmgr.c ./c/rtc.c ./c/tarfmgr.c ./c/taskmgr.c ./c/tempsnsr.c
./c/timerints.c ./c/watchdog.c<br>
Splint 3.0.1.6 --- 11 Feb 2002<br><br>
In file included from
\\fx1112\compilers\h8300\v4_20c\inc\string.h(13),<br>
from ./c/magtampermgr.c(26)<br>
\\fx1112\compilers\h8300\v4_20c\inc\sysmac.h(52,23): syntax error -
missing right operand<br>
\\fx1112\compilers\h8300\v4_20c\inc\sysmac.h(60,23): syntax error -
missing right operand<br>
Preprocessing error for file: ./c/magtampermgr.c<br>
*** Cannot continue.<br>
*** Error code 1 (ignored)<br><br>
</font>Now these come from the /inc directory of the IAR compiler for H8
microprocessors from the file called sysmac.h which is included in
string.h. The file that my code is using includes string.h. I donot want
to change the compiler header file.<br><br>
Is there a way around this problem which makes splint ignore these errors
and go through?<br><br>
Any help would be much appreciated.<br><br>
Regards,<br><br>
<x-sigsep><p></x-sigsep>
Asim Pervez Zaka<br>
Firmware Engineer<br><br>
<b>Actaris,<br>
</b>Langer Road,<br>
Felixstowe, Suffolk,<br>
England<br>
IP11 2ER<br><br>
</body>
</html>