我有一些 C 代码,其中包含专有旧应用程序的标头。我无法修改标题。我收到以下代码的夹板解析错误:
#if defined(HAS_LONGLONG)
/* removed for brevity */
#elif defined(HAS_INT64)
/* removed for brevity */
#else
typedef union {
int32 l[2]; /* This is the line that is causing the parse error in splint */
double d;
} int64;
#endif
是否有任何参数可以传递给夹板以使其正常工作?
该平台是 64 位的,但旧版应用程序是 32 位的。
我正在运行夹板:
[me@host]$ splint -I/path/to/include -preprox -warnposix
Splint 3.1.1 --- 28 Apr 2003
/path/to/include/some_header.h:7:10:
Parse Error. (For help on parse errors, see splint -help parseerrors.)
*** Cannot continue.
如果没有 -preprox 和 -warnposix,我会在遗留标头中收到很多其他错误。