1999-05-11 08:01:47 +08:00
|
|
|
#ifndef _PHP_REGEX_H
|
|
|
|
#define _PHP_REGEX_H
|
|
|
|
|
1999-12-01 07:19:33 +08:00
|
|
|
/*
|
|
|
|
* REGEX means:
|
|
|
|
* 0.. system regex
|
|
|
|
* 1.. bundled regex
|
|
|
|
* 2.. Apache's regex
|
|
|
|
*/
|
|
|
|
|
1999-11-14 00:51:33 +08:00
|
|
|
#if REGEX == 1
|
1999-11-14 02:33:28 +08:00
|
|
|
/* get aliases */
|
|
|
|
#include "regex/regex_extra.h"
|
1999-05-11 08:01:47 +08:00
|
|
|
#include "regex/regex.h"
|
1999-11-14 02:33:28 +08:00
|
|
|
|
|
|
|
/* get rid of aliases */
|
|
|
|
#define PHP_NO_ALIASES
|
|
|
|
#include "regex/regex_extra.h"
|
|
|
|
#undef PHP_NO_ALIASES
|
|
|
|
|
1999-10-30 22:24:36 +08:00
|
|
|
#ifndef _REGEX_H
|
1999-05-11 08:01:47 +08:00
|
|
|
#define _REGEX_H 1 /* this should stop Apache from loading the system version of regex.h */
|
1999-10-30 22:22:10 +08:00
|
|
|
#endif
|
1999-10-30 22:24:36 +08:00
|
|
|
#ifndef _REGEX_H_
|
1999-10-30 01:33:19 +08:00
|
|
|
#define _REGEX_H_ 1
|
1999-10-30 22:22:10 +08:00
|
|
|
#endif
|
1999-10-30 22:24:36 +08:00
|
|
|
#ifndef _RX_H
|
1999-05-11 08:01:47 +08:00
|
|
|
#define _RX_H 1 /* Try defining these for Linux to */
|
1999-10-30 22:22:10 +08:00
|
|
|
#endif
|
1999-10-30 22:26:42 +08:00
|
|
|
#ifndef __REGEXP_LIBRARY_H__
|
1999-05-11 08:01:47 +08:00
|
|
|
#define __REGEXP_LIBRARY_H__ 1 /* avoid Apache including regex.h */
|
1999-10-30 22:22:10 +08:00
|
|
|
#endif
|
1999-10-30 22:24:36 +08:00
|
|
|
#ifndef _H_REGEX
|
1999-05-11 08:01:47 +08:00
|
|
|
#define _H_REGEX 1 /* This one is for AIX */
|
1999-10-30 22:22:10 +08:00
|
|
|
#endif
|
1999-11-14 00:51:33 +08:00
|
|
|
#elif REGEX == 0
|
1999-05-11 08:01:47 +08:00
|
|
|
#include <regex.h>
|
1999-12-01 07:19:33 +08:00
|
|
|
#ifndef _REGEX_H_
|
|
|
|
#define _REGEX_H_ 1
|
|
|
|
#endif
|
1999-05-11 08:01:47 +08:00
|
|
|
#endif
|
|
|
|
|
1999-08-03 23:27:19 +08:00
|
|
|
#endif /* _PHP_REGEX_H */
|