Mail Archives: djgpp/2008/01/20/10:15:16
Joan Salvat escreveu:
> Juan Manuel,
>
> I've been testing that partiular version you released, and found the
> following behaviour when trying to use it to check MS-DOS programs
> built using Borland C++ version 3.1
>
> Splint 3.1.2 --- 16 Jan 2008
> c:\borlandc\include\dos.h:310:46: Parse Error. (For help on parse
> errors, see splint -help parseerrors.)*** Cannot
> continue.
> Line 310 in dos.h file is
>
> unsigned _Cdecl _dos_read( int __fd, void far *__buf, unsigned
> __len, unsigned _FAR *__nread );
> I think Splint cannot parse 'far' type modifier.
> Any suggestion to work around this problem? The tips shown in '--help
> parseerrors' don't seem to work.
Have been there (in an earlier version when it was called LCLint) and
the legacy code was as well from Borland C++ 3.1...
The way we found was to put in our sources something on the lines of the
manual (14.3.1), beware I'm writing from heart, it is untested:
# ifdef S_SPLINT_S
#define far
#define _FAR
# endif
HTH
- Raw text -