__attribute__ for warnerr
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@1507 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -11,12 +11,12 @@
|
|||||||
|
|
||||||
extern char *__progname;
|
extern char *__progname;
|
||||||
|
|
||||||
void warnerr(int doexit, int eval, int doerrno, const char *fmt, va_list ap);
|
|
||||||
|
|
||||||
#ifndef __GNUC__
|
#ifndef __GNUC__
|
||||||
#define __attribute__(x)
|
#define __attribute__(x)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
void warnerr(int doexit, int eval, int doerrno, const char *fmt, va_list ap) __attribute__ ((noreturn, format (printf, 4, 0)));
|
||||||
|
|
||||||
void verr(int eval, const char *fmt, va_list ap) __attribute__ ((noreturn, format (printf, 2, 0)));
|
void verr(int eval, const char *fmt, va_list ap) __attribute__ ((noreturn, format (printf, 2, 0)));
|
||||||
void err(int eval, const char *fmt, ...) __attribute__ ((noreturn, format (printf, 2, 3)));
|
void err(int eval, const char *fmt, ...) __attribute__ ((noreturn, format (printf, 2, 3)));
|
||||||
void verrx(int eval, const char *fmt, va_list ap) __attribute__ ((noreturn, format (printf, 2, 0)));
|
void verrx(int eval, const char *fmt, va_list ap) __attribute__ ((noreturn, format (printf, 2, 0)));
|
||||||
|
@@ -11,12 +11,12 @@
|
|||||||
|
|
||||||
extern char *__progname;
|
extern char *__progname;
|
||||||
|
|
||||||
void warnerr(int doexit, int eval, int doerrno, const char *fmt, va_list ap);
|
|
||||||
|
|
||||||
#ifndef __GNUC__
|
#ifndef __GNUC__
|
||||||
#define __attribute__(x)
|
#define __attribute__(x)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
void warnerr(int doexit, int eval, int doerrno, const char *fmt, va_list ap) __attribute__ ((noreturn, format (printf, 4, 0)));
|
||||||
|
|
||||||
void verr(int eval, const char *fmt, va_list ap) __attribute__ ((noreturn, format (printf, 2, 0)));
|
void verr(int eval, const char *fmt, va_list ap) __attribute__ ((noreturn, format (printf, 2, 0)));
|
||||||
void err(int eval, const char *fmt, ...) __attribute__ ((noreturn, format (printf, 2, 3)));
|
void err(int eval, const char *fmt, ...) __attribute__ ((noreturn, format (printf, 2, 3)));
|
||||||
void verrx(int eval, const char *fmt, va_list ap) __attribute__ ((noreturn, format (printf, 2, 0)));
|
void verrx(int eval, const char *fmt, va_list ap) __attribute__ ((noreturn, format (printf, 2, 0)));
|
||||||
|
Reference in New Issue
Block a user