Update of /cvsroot/monetdb/MonetDB5/src/modules/mal
In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv30805/src/modules/mal

Modified Files:
      Tag: MonetDB_5-2
        pcre.mx 
Log Message:
fixed compilation issues


Index: pcre.mx
===================================================================
RCS file: /cvsroot/monetdb/MonetDB5/src/modules/mal/pcre.mx,v
retrieving revision 1.49.2.1
retrieving revision 1.49.2.2
diff -u -d -r1.49.2.1 -r1.49.2.2
--- pcre.mx     14 Dec 2007 07:51:32 -0000      1.49.2.1
+++ pcre.mx     15 Dec 2007 15:11:38 -0000      1.49.2.2
@@ -318,7 +318,7 @@
        int v[2];
 
        v[0] = v[1] = *res = 0;
-       if (pcre_exec(pattern, NULL, s, strlen(s), 0, 0, v, 2) >= 0) {
+       if (pcre_exec(m2p(pattern), NULL, s, strlen(s), 0, 0, v, 2) >= 0) {
                *res = v[1];
        }
        return MAL_SUCCEED;
@@ -985,14 +985,14 @@
 str
 PCREindex(int *res, pcre * pattern, str *s)
 {
-       return pcre_index(res, m2p(pattern), *s);
+       return pcre_index(res, pattern, *s);
 }
 
 
 str
 PCREpatindex(int *ret, str *pat, str *val)
 {
-       pcre *re;
+       pcre *re = NULL;
        char *ppat, *msg;
        
        if (pat2pcre(&ppat, *pat) <0)


-------------------------------------------------------------------------
SF.Net email is sponsored by:
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services
for just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
Monetdb-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/monetdb-checkins

Reply via email to