X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=common-src%2Famregex.h;h=dfbc3b4e8587db6a701535a7b8a0e51a5c3b33d5;hb=refs%2Ftags%2Fupstream%2F2.5.1;hp=6aa54c6fc4ffb32ea54e0203e9b10bc1041f67be;hpb=94c03cae686e4196a345d72452fda2a5203768ce;p=debian%2Famanda diff --git a/common-src/amregex.h b/common-src/amregex.h index 6aa54c6..dfbc3b4 100644 --- a/common-src/amregex.h +++ b/common-src/amregex.h @@ -24,7 +24,7 @@ * file named AUTHORS, in the root directory of this distribution. */ /* - * $Id: amregex.h,v 1.10 1999/04/10 06:18:44 kashmir Exp $ + * $Id: amregex.h,v 1.11 2006/05/25 01:47:11 johnfranks Exp $ * * compatibility header file for Henry Spencer's regex library. */ @@ -61,12 +61,6 @@ #define CHAR_BIT 8 #endif -#if STDC_HEADERS -# define P(parms) parms -#else -# define P(parms) () -#endif - /* * So that we can use GNUC attributes (such as to get -Wall warnings * for printf-like functions). Only do this in gcc 2.7 or later ... @@ -77,15 +71,15 @@ #endif #ifndef HAVE_BCOPY_DECL -extern void bcopy P((const void *from, void *to, size_t n)); +extern void bcopy(const void *from, void *to, size_t n); #endif #ifndef HAVE_MEMMOVE_DECL -extern char *memmove P((char *to, char *from, size_t n)); +extern char *memmove(char *to, char *from, size_t n); #endif #ifndef HAVE_MEMSET_DECL -extern void *memset P((void *s, int c, size_t n)); +extern void *memset(void *s, int c, size_t n); #endif #if !defined(HAVE_MEMMOVE) && defined(HAVE_BCOPY) @@ -94,12 +88,12 @@ extern void *memset P((void *s, int c, size_t n)); #ifndef HAVE_SNPRINTF_DECL #include "arglist.h" -int snprintf P((char *buf, size_t len, const char *format,...)) +int snprintf (char *buf, size_t len, const char *format,...) __attribute__((format(printf,3,4))); #endif #ifndef HAVE_VSNPRINTF_DECL #include "arglist.h" -int vsnprintf P((char *buf, size_t len, const char *format, va_list ap)); +int vsnprintf(char *buf, size_t len, const char *format, va_list ap); #endif #define POSIX_MISTAKE