summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
87ff273)
- include <sys/types.h> rather than non-std <sys/cdefs.h>
- remove use of __P-style prototypes
#ifndef _REGEX_H_
#define _REGEX_H_
#ifndef _REGEX_H_
#define _REGEX_H_
/* types */
typedef off_t regoff_t;
/* types */
typedef off_t regoff_t;
#define REG_LARGE 01000 /* force large representation */
#define REG_BACKR 02000 /* force use of backref code */
#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