root/ext/ereg/php_regex.h

/* [<][>][^][v][top][bottom][index][help] */

INCLUDED FROM


   1 /*
   2   +----------------------------------------------------------------------+
   3   | PHP Version 5                                                        |
   4   +----------------------------------------------------------------------+
   5   | Copyright (c) 1997-2016 The PHP Group                                |
   6   +----------------------------------------------------------------------+
   7   | This source file is subject to version 3.01 of the PHP license,      |
   8   | that is bundled with this package in the file LICENSE, and is        |
   9   | available through the world-wide-web at the following url:           |
  10   | http://www.php.net/license/3_01.txt                                  |
  11   | If you did not receive a copy of the PHP license and are unable to   |
  12   | obtain it through the world-wide-web, please send a note to          |
  13   | license@php.net so we can mail you a copy immediately.               |
  14   +----------------------------------------------------------------------+
  15   | Author:                                                              |
  16   +----------------------------------------------------------------------+
  17 */
  18 
  19 /* $Id$ */
  20 
  21 #ifndef PHP_REGEX_H
  22 #define PHP_REGEX_H
  23 
  24 /*
  25  * REGEX means:
  26  * 0.. system regex
  27  * 1.. bundled regex
  28  */
  29 
  30 #if (REGEX == 1)
  31 /* Define aliases */
  32 #define regexec php_regexec
  33 #define regerror php_regerror
  34 #define regfree php_regfree
  35 #define regcomp php_regcomp
  36 
  37 #include "ext/ereg/regex/regex.h"
  38 
  39 #undef _PCREPOSIX_H
  40 #define _PCREPOSIX_H 1
  41 
  42 #ifndef _REGEX_H
  43 #define _REGEX_H 1                              /* this should stop Apache from loading the system version of regex.h */
  44 #endif
  45 #ifndef _REGEX_H_
  46 #define _REGEX_H_ 1
  47 #endif
  48 #ifndef _RX_H
  49 #define _RX_H 1                                 /* Try defining these for Linux to      */
  50 #endif
  51 #ifndef __REGEXP_LIBRARY_H__
  52 #define __REGEXP_LIBRARY_H__ 1  /* avoid Apache including regex.h       */
  53 #endif
  54 #ifndef _H_REGEX
  55 #define _H_REGEX 1              /* This one is for AIX */
  56 #endif
  57 
  58 #elif REGEX == 0
  59 #include <regex.h>
  60 #ifndef _REGEX_H_
  61 #define _REGEX_H_ 1
  62 #endif
  63 #endif
  64 
  65 #endif /* PHP_REGEX_H */

/* [<][>][^][v][top][bottom][index][help] */