OSSP CVS Repository

ossp - Difference in ossp-pkg/l2/l2_ut_pcre.h versions 1.2 and 1.3
Not logged in
[Honeypot]  [Browse]  [Home]  [Login]  [Reports
[Search]  [Ticket]  [Timeline
  [History

ossp-pkg/l2/l2_ut_pcre.h 1.2 -> 1.3

--- l2_ut_pcre.h 2001/09/15 16:03:37     1.2
+++ l2_ut_pcre.h 2001/10/06 14:30:42     1.3
@@ -45,10 +45,36 @@
 #ifndef __L2_UT_PCRE_H__
 #define __L2_UT_PCRE_H__
 
+#define PCRE_PREFIX l2_util_
+
 #define PCRE_MAJOR          3
 #define PCRE_MINOR          5
 #define PCRE_DATE           15-Aug-2001
 
+#ifdef PCRE_PREFIX
+#if defined(__STDC__) || defined(__cplusplus)
+#define __PCRE_CONCAT(x,y) x ## y
+#define PCRE_CONCAT(x,y) __PCRE_CONCAT(x,y)
+#else
+#define __PCRE_CONCAT(x) x
+#define PCRE_CONCAT(x,y) __PCRE_CONCAT(x)y
+#endif
+#define pcre_malloc PCRE_CONCAT(PCRE_PREFIX,pcre_malloc)
+#define pcre_free PCRE_CONCAT(PCRE_PREFIX,pcre_free)
+#define pcre_compile PCRE_CONCAT(PCRE_PREFIX,pcre_compile)
+#define pcre_copy_substring PCRE_CONCAT(PCRE_PREFIX,pcre_copy_substring)
+#define pcre_exec PCRE_CONCAT(PCRE_PREFIX,pcre_exec)
+#define pcre_free_substring PCRE_CONCAT(PCRE_PREFIX,pcre_free_substring)
+#define pcre_free_substring_list PCRE_CONCAT(PCRE_PREFIX,pcre_free_substring_list)
+#define pcre_get_substring PCRE_CONCAT(PCRE_PREFIX,pcre_get_substring)
+#define pcre_get_substring_list PCRE_CONCAT(PCRE_PREFIX,pcre_get_substring_list)
+#define pcre_info PCRE_CONCAT(PCRE_PREFIX,pcre_info)
+#define pcre_fullinfo PCRE_CONCAT(PCRE_PREFIX,pcre_fullinfo)
+#define pcre_maketables PCRE_CONCAT(PCRE_PREFIX,pcre_maketables)
+#define pcre_study PCRE_CONCAT(PCRE_PREFIX,pcre_study)
+#define pcre_version PCRE_CONCAT(PCRE_PREFIX,pcre_version)
+#endif
+
 #include <stdlib.h>
 
 #ifdef __cplusplus
@@ -84,11 +110,11 @@
 #define PCRE_INFO_FIRSTTABLE      5
 #define PCRE_INFO_LASTLITERAL     6
 
-struct real_pcre;
-struct real_pcre_extra;
+struct pcre_st;
+struct pcre_extra_st;
 
-typedef struct real_pcre pcre;
-typedef struct real_pcre_extra pcre_extra;
+typedef struct pcre_st pcre;
+typedef struct pcre_extra_st pcre_extra;
 
 extern void *(*pcre_malloc)(size_t);
 extern void  (*pcre_free)(void *);

CVSTrac 2.0.1