head 1.3; access; symbols FSL_1_7_0:1.3 LMTP2NNTP_1_4_1:1.3 LMTP2NNTP_1_4_0:1.3 FSL_1_6_1:1.3 FSL_1_6_0:1.3 FSL_1_6b2:1.3 FSL_1_6b1:1.3 LMTP2NNTP_1_3_0:1.3 LMTP2NNTP_1_3b2:1.3 LMTP2NNTP_1_3b1:1.3 LMTP2NNTP_1_3a3:1.3 FSL_1_5_0:1.3 LMTP2NNTP_1_3a2:1.3 FSL_1_5a3:1.3 LMTP2NNTP_1_3a1:1.3 FSL_1_5a2:1.3 FSL_1_5a1:1.3 FSL_1_4_0:1.3 FSL_1_4b1:1.3 FSL_1_4a1:1.3 FSL_1_3_0:1.3 FSL_1_3b1:1.3 FSL_1_2_1:1.3 FSL_1_2_0:1.3 FSL_1_1_0:1.3 FSL_1_1b1:1.3 FSL_1_0_8:1.3 LMTP2NNTP_1_2_0:1.3 LMTP2NNTP_1_2b4:1.3 LMTP2NNTP_1_2b3:1.3 LMTP2NNTP_1_2b2:1.3 LMTP2NNTP_1_2b1:1.3 LMTP2NNTP_1_2a8:1.3 LMTP2NNTP_1_2a7:1.3 FSL_1_0_7:1.3 FSL_1_0_6:1.3 FSL_1_0_5:1.3 FSL_1_0_4:1.3 FSL_1_0_3:1.3 LMTP2NNTP_1_2a6:1.3 FSL_1_0_2:1.3 FSL_1_0_1:1.3 FSL_1_0_0:1.3 FSL_0_9_0:1.3 FSL_0_1_12:1.3 FSL_0_1_11:1.3 FSL_0_1_10:1.3 FSL_0_1_9:1.3 FSL_0_1_8:1.3 FSL_0_1_7:1.3 FSL_0_1_6:1.3 FSL_0_1_5:1.3 FSL_0_1_1:1.3 LMTP2NNTP_1_2a5:1.3 LMTP2NNTP_1_2a4:1.3 LMTP2NNTP_1_2a3:1.3 OSSP_PCRE_2_07:1.1.1.1 ossp:1.1.1; locks; strict; comment @ * @; 1.3 date 2002.01.07.15.21.06; author rse; state Exp; branches; next 1.2; 1.2 date 2000.02.02.17.18.46; author rse; state Exp; branches; next 1.1; 1.1 date 99.08.26.08.15.19; author rse; state Exp; branches 1.1.1.1; next ; 1.1.1.1 date 99.08.26.08.15.19; author rse; state Exp; branches; next ; desc @@ 1.3 log @upgrade to PCRE 3.8 @ text @/************************************************* * Perl-Compatible Regular Expressions * *************************************************/ /* Copyright (c) 1997-2001 University of Cambridge */ #ifndef _PCREPOSIX_H #define _PCREPOSIX_H /* This is the header for the POSIX wrapper interface to the PCRE Perl- Compatible Regular Expression library. It defines the things POSIX says should be there. I hope. */ /* Have to include stdlib.h in order to ensure that size_t is defined. */ #include /* Allow for C++ users */ #ifdef __cplusplus extern "C" { #endif /* Options defined by POSIX. */ #define REG_ICASE 0x01 #define REG_NEWLINE 0x02 #define REG_NOTBOL 0x04 #define REG_NOTEOL 0x08 /* These are not used by PCRE, but by defining them we make it easier to slot PCRE into existing programs that make POSIX calls. */ #define REG_EXTENDED 0 #define REG_NOSUB 0 /* Error values. Not all these are relevant or used by the wrapper. */ enum { REG_ASSERT = 1, /* internal error ? */ REG_BADBR, /* invalid repeat counts in {} */ REG_BADPAT, /* pattern error */ REG_BADRPT, /* ? * + invalid */ REG_EBRACE, /* unbalanced {} */ REG_EBRACK, /* unbalanced [] */ REG_ECOLLATE, /* collation error - not relevant */ REG_ECTYPE, /* bad class */ REG_EESCAPE, /* bad escape sequence */ REG_EMPTY, /* empty expression */ REG_EPAREN, /* unbalanced () */ REG_ERANGE, /* bad range inside [] */ REG_ESIZE, /* expression too big */ REG_ESPACE, /* failed to get memory */ REG_ESUBREG, /* bad back reference */ REG_INVARG, /* bad argument */ REG_NOMATCH /* match failed */ }; /* The structure representing a compiled regular expression. */ typedef struct { void *re_pcre; size_t re_nsub; size_t re_erroffset; } regex_t; /* The structure in which a captured offset is returned. */ typedef int regoff_t; typedef struct { regoff_t rm_so; regoff_t rm_eo; } regmatch_t; /* The functions */ extern int regcomp(regex_t *, const char *, int); extern int regexec(regex_t *, const char *, size_t, regmatch_t *, int); extern size_t regerror(int, const regex_t *, char *, size_t); extern void regfree(regex_t *); #ifdef __cplusplus } /* extern "C" */ #endif #endif /* End of pcreposix.h */ @ 1.2 log @Update from 2.08 to 3.0 @ text @d5 1 a5 1 /* Copyright (c) 1997-2000 University of Cambridge */ @ 1.1 log @Initial revision @ text @d5 1 a5 1 /* Copyright (c) 1997-1999 University of Cambridge */ d30 6 @ 1.1.1.1 log @Import OSSP pcre @ text @@