From 06cabac6877d25385a6f42a60faeda0b28ce3e10 Mon Sep 17 00:00:00 2001 From: simonpj Date: Fri, 15 Feb 2002 11:27:03 +0000 Subject: [PATCH] [project @ 2002-02-15 11:27:03 by simonpj] - include rather than non-std - remove use of __P-style prototypes --- cbits/regex/regex.h | 23 +++++++++++++++-------- 1 file changed, 15 insertions(+), 8 deletions(-) diff --git a/cbits/regex/regex.h b/cbits/regex/regex.h index 1611d4b..0c7fe1d 100644 --- a/cbits/regex/regex.h +++ b/cbits/regex/regex.h @@ -40,7 +40,7 @@ #ifndef _REGEX_H_ #define _REGEX_H_ -#include +#include /* types */ typedef off_t regoff_t; @@ -95,12 +95,19 @@ typedef struct { #define REG_LARGE 01000 /* force large representation */ #define REG_BACKR 02000 /* force use of backref code */ -__BEGIN_DECLS -int regcomp __P((regex_t *, const char *, int)); -size_t regerror __P((int, const regex_t *, char *, size_t)); -int regexec __P((const regex_t *, - const char *, size_t, regmatch_t [], int)); -void regfree __P((regex_t *)); -__END_DECLS +#ifdef __cplusplus +extern "C" { +#endif + +int regcomp (regex_t *, const char *, int); +size_t regerror (int, const regex_t *, char *, size_t); +int regexec (const regex_t *, + const char *, size_t, regmatch_t [], int); +void regfree (regex_t *); + +#ifdef __cplusplus +} +extern "C" { +#endif #endif /* !_REGEX_H_ */ -- 1.7.10.4