1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48
|
/*
* Problem File.
* Command Line used to run:
*
* /extra/msmoot/lclint-2.5m/bin/lclint -dump newlint.lcd dummyfile.c
*/
#if 1
// This is our normal definition of PRINTF_LIKE - our lclint run normally
// does not use this definition because I think I had a problem in a file
// if I used this definition (I have to retest with 2.5 though). this
// example does not seem to have a problem
#define PRINTF_LIKE __attribute__ ((format(printf,1,2)))
#else
#define PRINTF_LIKE
#endif
#if 1 // These fail to -dump
int /*@alt void@*/ console_printf(const char *__format, ...)
PRINTF_LIKE;
int /*@alt void@*/ eprintf(const char *__format, ...) PRINTF_LIKE;
int /*@alt void@*/ lprintf(const char *__format, ...) PRINTF_LIKE;
#endif
#if 0 // Even these fail
int /*@alt void@*/ console_printf(const char *__format, ...);
int /*@alt void@*/ eprintf(const char *__format, ...);
int /*@alt void@*/ lprintf(const char *__format, ...);
#endif
/* But all of these work */
int /* @alt void@ */ console_printf(const char *__format, ...);
int /* @alt void@ */ eprintf(const char *__format, ...);
int /* @alt void@ */ lprintf(const char *__format, ...);
int console_printf(const char *__format, ...) PRINTF_LIKE;
int eprintf(const char *__format, ...) PRINTF_LIKE;
int lprintf(const char *__format, ...) PRINTF_LIKE;
int console_printf(const char *__format, ...);
int eprintf(const char *__format, ...);
int lprintf(const char *__format, ...);
|