diff options
author | Ben Lindstrom <mouring@eviladmin.org> | 2001-01-23 16:54:29 +0000 |
---|---|---|
committer | Ben Lindstrom <mouring@eviladmin.org> | 2001-01-23 16:54:29 +0000 |
commit | 2396b30d9598bad07fe282e9626779967c4e14b8 (patch) | |
tree | 96b831428e4a285d66db9c2f82579ab9e86d6b52 /fake-regex.h | |
parent | 16a86be01aa1f097c5ceaea9ea96253e55d9a016 (diff) |
- (bal) #ifdef around S_IFSOCK if platform does not support it.
patch by Tim Rice <tim@multitalents.net>
- (bal) fake-regex.h cleanup based on Tim Rice's patch.
Diffstat (limited to 'fake-regex.h')
-rw-r--r-- | fake-regex.h | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/fake-regex.h b/fake-regex.h index 8c4a8f1ca..8f7f6eddd 100644 --- a/fake-regex.h +++ b/fake-regex.h | |||
@@ -43,7 +43,6 @@ | |||
43 | #ifndef _REGEX_H_ | 43 | #ifndef _REGEX_H_ |
44 | #define _REGEX_H_ | 44 | #define _REGEX_H_ |
45 | 45 | ||
46 | #include <sys/cdefs.h> | ||
47 | #include <sys/types.h> | 46 | #include <sys/types.h> |
48 | 47 | ||
49 | /* types */ | 48 | /* types */ |
@@ -99,12 +98,9 @@ typedef struct { | |||
99 | #define REG_LARGE 01000 /* force large representation */ | 98 | #define REG_LARGE 01000 /* force large representation */ |
100 | #define REG_BACKR 02000 /* force use of backref code */ | 99 | #define REG_BACKR 02000 /* force use of backref code */ |
101 | 100 | ||
102 | __BEGIN_DECLS | 101 | int regcomp(regex_t*, const char*, int); |
103 | int regcomp __P((regex_t *, const char *, int)); | 102 | size_t regerror(int, const regex_t*, char*, size_t); |
104 | size_t regerror __P((int, const regex_t *, char *, size_t)); | 103 | int regexec(const regex_t*, const char*, size_t, regmatch_t[], int); |
105 | int regexec __P((const regex_t *, | 104 | void regfree(regex_t*); |
106 | const char *, size_t, regmatch_t [], int)); | ||
107 | void regfree __P((regex_t *)); | ||
108 | __END_DECLS | ||
109 | 105 | ||
110 | #endif /* !_REGEX_H_ */ | 106 | #endif /* !_REGEX_H_ */ |