php_regex.h 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  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. /* $Id$ */
  19. #ifndef PHP_REGEX_H
  20. #define PHP_REGEX_H
  21. /*
  22. * REGEX means:
  23. * 0.. system regex
  24. * 1.. bundled regex
  25. */
  26. #if (REGEX == 1)
  27. /* Define aliases */
  28. #define regexec php_regexec
  29. #define regerror php_regerror
  30. #define regfree php_regfree
  31. #define regcomp php_regcomp
  32. #include "ext/ereg/regex/regex.h"
  33. #undef _PCREPOSIX_H
  34. #define _PCREPOSIX_H 1
  35. #ifndef _REGEX_H
  36. #define _REGEX_H 1 /* this should stop Apache from loading the system version of regex.h */
  37. #endif
  38. #ifndef _REGEX_H_
  39. #define _REGEX_H_ 1
  40. #endif
  41. #ifndef _RX_H
  42. #define _RX_H 1 /* Try defining these for Linux to */
  43. #endif
  44. #ifndef __REGEXP_LIBRARY_H__
  45. #define __REGEXP_LIBRARY_H__ 1 /* avoid Apache including regex.h */
  46. #endif
  47. #ifndef _H_REGEX
  48. #define _H_REGEX 1 /* This one is for AIX */
  49. #endif
  50. #elif REGEX == 0
  51. #include <regex.h>
  52. #ifndef _REGEX_H_
  53. #define _REGEX_H_ 1
  54. #endif
  55. #endif
  56. #endif /* PHP_REGEX_H */