Permalink
Browse files

1.1 update

*	new file:   from_php.h
*	new file:   ghfcns.h
*	modified:   ghmysql.h
*	modified:   preg.h
  • Loading branch information...
1 parent 460af3b commit f8265e6cd3818e97d319fb541b7789a41e88d060 raw committed Mar 22, 2013
Showing with 32 additions and 3 deletions.
  1. +16 −0 from_php.h
  2. +10 −0 ghfcns.h
  3. +1 −1 ghmysql.h
  4. +5 −2 preg.h
View
@@ -0,0 +1,16 @@
+/*
+ * from_php.h
+ * eMailGanizer
+ *
+ * Created by Rich Waters on 9/3/10.
+ * Copyright 2010 GoodHumans. All rights reserved.
+ *
+ */
+
+char *pregReplace(pcre *re , pcre_extra *extra ,
+ const char *subject, int subject_len, const char *replace,
+ int replace_len ,
+ int is_callable_replace, int *result_len, int limit,
+ int *replace_count, char *msg , int msglen );
+
+pcre *compileRegex( const char *regex , int regex_len , char *msg , int msglen ) ;
View
@@ -0,0 +1,10 @@
+/*
+ * ghfcns.h
+ * eMailGanizer
+ *
+ * Created by Rich Waters on 9/3/10.
+ * Copyright 2010 GoodHumans. All rights reserved.
+ *
+ */
+
+char *ghstrndup( char *s , int l );
View
@@ -71,7 +71,7 @@ typedef long long longlong;
*/
char *ghargdup( UDF_ARGS *args,int i ) ;
char *ghargdups( UDF_ARGS *args,int i , unsigned long *l) ;
-char *ghstrndup( char *s , int l );
+//char *ghstrndup( char *s , int l );
int ghargIsNullConstant(UDF_ARGS *args, int argNum);
#endif
View
7 preg.h
@@ -29,6 +29,7 @@
// Include the libpcre headers
#include <pcre.h>
+#include "from_php.h"
/*
* PCRE Structures:
@@ -45,13 +46,15 @@ struct preg_s {
*/
// from_php.c
-pcre *compileRegex( char *regex , int regex_len , char *msg , int msglen ) ;
+//pcre *compileRegex( char *regex , int regex_len , char *msg , int msglen ) ;
+
+/*
char *pregReplace(pcre *re , pcre_extra *extra ,
char *subject, int subject_len, char *replace,
int replace_len ,
int is_callable_replace, int *result_len, int limit,
int *replace_count, char *msg , int msglen );
-
+*/
// preg.c
void destroyPtrInfo( struct preg_s *ghptr );
int initPtrInfo( struct preg_s *ghptr , UDF_ARGS *args,char*msg );

0 comments on commit f8265e6

Please sign in to comment.