err.h (8fa0b743820f61c661ba5f3ea0e3be0dc137910e) | err.h (fd082e96c469d04c399fc0556f40cb7152ee9148) |
---|---|
1/*- 2 * Copyright (c) 2009 Joerg Sonnenberger 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 21 unchanged lines hidden (view full) --- 30 31#if defined(__GNUC__) && (__GNUC__ > 2 || \ 32 (__GNUC__ == 2 && __GNUC_MINOR__ >= 5)) 33#define __LA_DEAD __attribute__((__noreturn__)) 34#else 35#define __LA_DEAD 36#endif 37 | 1/*- 2 * Copyright (c) 2009 Joerg Sonnenberger 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 21 unchanged lines hidden (view full) --- 30 31#if defined(__GNUC__) && (__GNUC__ > 2 || \ 32 (__GNUC__ == 2 && __GNUC_MINOR__ >= 5)) 33#define __LA_DEAD __attribute__((__noreturn__)) 34#else 35#define __LA_DEAD 36#endif 37 |
38#if defined(__GNUC__) && (__GNUC__ > 2 || \ 39 (__GNUC__ == 2 && __GNUC_MINOR__ >= 7)) 40#define __LA_PRINTFLIKE(f,a) __attribute__((__format__(__printf__, f, a))) 41#else 42#define __LA_PRINTFLIKE(f,a) 43#endif 44 |
|
38extern const char *lafe_progname; 39 | 45extern const char *lafe_progname; 46 |
40void lafe_warnc(int code, const char *fmt, ...); 41void lafe_errc(int eval, int code, const char *fmt, ...) __LA_DEAD; | 47void lafe_warnc(int code, const char *fmt, ...) __LA_PRINTFLIKE(2, 3); 48void lafe_errc(int eval, int code, const char *fmt, ...) __LA_DEAD 49 __LA_PRINTFLIKE(3, 4); |
42 43#endif | 50 51#endif |