]> granicus.if.org Git - php/commitdiff
Suck in prototypes correctly with applied aliases
authorSascha Schumann <sas@php.net>
Sat, 13 Nov 1999 18:33:28 +0000 (18:33 +0000)
committerSascha Schumann <sas@php.net>
Sat, 13 Nov 1999 18:33:28 +0000 (18:33 +0000)
(otherwise php_reg* would not be prototyped)

ext/ereg/php_regex.h
ext/ereg/regex/regex_extra.h
main/php_regex.h
regex/regex_extra.h

index 91cbd994c41ddf195820699239b014c7ba3d5e1f..62279c4c08db29f5622a913a688bbdf1fa01bf9d 100644 (file)
@@ -2,7 +2,15 @@
 #define _PHP_REGEX_H
 
 #if REGEX == 1
+/* get aliases */
+#include "regex/regex_extra.h"
 #include "regex/regex.h"
+
+/* get rid of aliases */
+#define PHP_NO_ALIASES
+#include "regex/regex_extra.h"
+#undef PHP_NO_ALIASES
+
 #ifndef _REGEX_H
 #define _REGEX_H 1                             /* this should stop Apache from loading the system version of regex.h */
 #endif
index 511df57f675b689d0a98ba2036990940e5b8a66b..3db9e4ad1a8e8f53ede63074c38f2f275ac59912 100644 (file)
@@ -1,3 +1,4 @@
+/* do not frame this - we must be able to include this file multiple times */
 
 #undef regexec
 #undef regerror
@@ -8,6 +9,8 @@
 
 #if !(WIN32|WINNT)
 
+#ifndef PHP_NO_ALIASES
+
 #define regexec php_regexec
 #define regerror php_regerror
 #define regfree php_regfree
@@ -16,3 +19,5 @@
 #endif
 
 #endif
+
+#endif
index 91cbd994c41ddf195820699239b014c7ba3d5e1f..62279c4c08db29f5622a913a688bbdf1fa01bf9d 100644 (file)
@@ -2,7 +2,15 @@
 #define _PHP_REGEX_H
 
 #if REGEX == 1
+/* get aliases */
+#include "regex/regex_extra.h"
 #include "regex/regex.h"
+
+/* get rid of aliases */
+#define PHP_NO_ALIASES
+#include "regex/regex_extra.h"
+#undef PHP_NO_ALIASES
+
 #ifndef _REGEX_H
 #define _REGEX_H 1                             /* this should stop Apache from loading the system version of regex.h */
 #endif
index 511df57f675b689d0a98ba2036990940e5b8a66b..3db9e4ad1a8e8f53ede63074c38f2f275ac59912 100644 (file)
@@ -1,3 +1,4 @@
+/* do not frame this - we must be able to include this file multiple times */
 
 #undef regexec
 #undef regerror
@@ -8,6 +9,8 @@
 
 #if !(WIN32|WINNT)
 
+#ifndef PHP_NO_ALIASES
+
 #define regexec php_regexec
 #define regerror php_regerror
 #define regfree php_regfree
@@ -16,3 +19,5 @@
 #endif
 
 #endif
+
+#endif