Back to index

php5  5.3.10
php_regex.h
Go to the documentation of this file.
00001 /*
00002   +----------------------------------------------------------------------+
00003   | PHP Version 5                                                        |
00004   +----------------------------------------------------------------------+
00005   | Copyright (c) 1997-2012 The PHP Group                                |
00006   +----------------------------------------------------------------------+
00007   | This source file is subject to version 3.01 of the PHP license,      |
00008   | that is bundled with this package in the file LICENSE, and is        |
00009   | available through the world-wide-web at the following url:           |
00010   | http://www.php.net/license/3_01.txt                                  |
00011   | If you did not receive a copy of the PHP license and are unable to   |
00012   | obtain it through the world-wide-web, please send a note to          |
00013   | license@php.net so we can mail you a copy immediately.               |
00014   +----------------------------------------------------------------------+
00015   | Author:                                                              |
00016   +----------------------------------------------------------------------+
00017 */
00018 
00019 /* $Id: php_regex.h 321634 2012-01-01 13:15:04Z felipe $ */
00020 
00021 #ifndef PHP_REGEX_H
00022 #define PHP_REGEX_H
00023 
00024 /*
00025  * REGEX means:
00026  * 0.. system regex
00027  * 1.. bundled regex
00028  */
00029 
00030 #if (REGEX == 1)
00031 /* Define aliases */
00032 #define regexec php_regexec
00033 #define regerror php_regerror
00034 #define regfree php_regfree
00035 #define regcomp php_regcomp
00036 
00037 #include "ext/ereg/regex/regex.h"
00038 
00039 #undef _PCREPOSIX_H
00040 #define _PCREPOSIX_H 1
00041 
00042 #ifndef _REGEX_H
00043 #define _REGEX_H 1                        /* this should stop Apache from loading the system version of regex.h */
00044 #endif
00045 #ifndef _REGEX_H_
00046 #define _REGEX_H_ 1
00047 #endif
00048 #ifndef _RX_H
00049 #define _RX_H 1                                  /* Try defining these for Linux to */
00050 #endif
00051 #ifndef __REGEXP_LIBRARY_H__
00052 #define __REGEXP_LIBRARY_H__ 1     /* avoid Apache including regex.h  */
00053 #endif
00054 #ifndef _H_REGEX
00055 #define _H_REGEX 1              /* This one is for AIX */
00056 #endif
00057 
00058 #elif REGEX == 0
00059 #include <regex.h>
00060 #ifndef _REGEX_H_
00061 #define _REGEX_H_ 1
00062 #endif
00063 #endif
00064 
00065 #endif /* PHP_REGEX_H */