diff options
author | Christos Zoulas <christos@zoulas.com> | 2014-10-31 14:20:02 -0400 |
---|---|---|
committer | Will Estes <westes575@gmail.com> | 2014-11-11 21:09:36 -0500 |
commit | 03a7f82cb4e0b273afbd1de04603a26a467e94c9 (patch) | |
tree | d54aef088666875a9d94037884b00ce23437ba1b /src/flexdef.h | |
parent | 2d257614dd66f410375f24ce1f2306b3c260bd29 (diff) |
NetBSD downstream patches.
const fixes.
-Wconversion fixes for the skeleton files.
param namespace protection (add _ to inline function parameters).
unused variable/code removal.
rename warn to lwarn to avoid conflict with <err.h>.
ctype.h function argument correction.
merged the error functions lerrif and lerrsf -> lerr.
Diffstat (limited to 'src/flexdef.h')
-rw-r--r-- | src/flexdef.h | 21 |
1 files changed, 13 insertions, 8 deletions
diff --git a/src/flexdef.h b/src/flexdef.h index 15b344d..496e34c 100644 --- a/src/flexdef.h +++ b/src/flexdef.h @@ -40,7 +40,7 @@ #endif /* AIX requires this to be the first thing in the file. */ -#ifndef __GNUC__ +#if !defined(__GNUC__) && !defined(__lint__) # if HAVE_ALLOCA_H # include <alloca.h> # else @@ -903,14 +903,19 @@ extern void flexfatal PROTO ((const char *)); /* Convert a hexadecimal digit string to an integer value. */ extern int htoi PROTO ((Char[])); -/* Report an error message formatted with one integer argument. */ -extern void lerrif PROTO ((const char *, ...)); - -/* Report an error message formatted with one string argument. */ -extern void lerrsf PROTO ((const char *, ...)); +/* Report an error message formatted */ +extern void lerr PROTO ((const char *, ...)) +#if defined(__GNUC__) && __GNUC__ >= 3 + __attribute__((__format__(__printf__, 1, 2))) +#endif +; -/* Like lerrsf, but also exit after displaying message. */ -extern void lerrsf_fatal PROTO ((const char *, ...)); +/* Like lerr, but also exit after displaying message. */ +extern void lerr_fatal PROTO ((const char *, ...)) +#if defined(__GNUC__) && __GNUC__ >= 3 + __attribute__((__format__(__printf__, 1, 2))) +#endif +; /* Spit out a "#line" statement. */ extern void line_directive_out PROTO ((FILE *, int)); |