Update of /cvsroot/monetdb/pathfinder/compiler/utils
In directory 
sfp-cvsdas-1.v30.ch3.sourceforge.com:/tmp/cvs-serv23210/compiler/utils

Modified Files:
      Tag: M5XQ
        string_utils.c 
Log Message:
propagated changes of Thursday Mar 18 2010
from the XQFT branch to the M5XQ branch

  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  2010/03/18 - sjoerd: compiler/utils/string_utils.c,1.7.10.2
  propagated changes of Wednesday Mar 17 2010 - Thursday Mar 18 2010
  from the development trunk to the XQFT branch
  
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    2010/03/17 - tsheyar: compiler/utils/string_utils.c,1.9
    -- Use PFstrdup instead of strdup (as we don't free the references by hand 
afterwards).
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~


Index: string_utils.c
===================================================================
RCS file: /cvsroot/monetdb/pathfinder/compiler/utils/string_utils.c,v
retrieving revision 1.6.4.2
retrieving revision 1.6.4.3
diff -u -d -r1.6.4.2 -r1.6.4.3
--- string_utils.c      8 Jan 2010 09:08:56 -0000       1.6.4.2
+++ string_utils.c      18 Mar 2010 11:46:12 -0000      1.6.4.3
@@ -40,16 +40,13 @@
 #include "pathfinder.h"
 
 #include "string_utils.h"
+#include "mem.h"
 
 #include <stdlib.h>
 #include <string.h>
 #include <stdarg.h>
 #include <ctype.h>
 
-#ifdef NATIVE_WIN32
-#define strdup _strdup
-#endif
-
 typedef unsigned char byte;
 
 /****************************************************
@@ -168,9 +165,9 @@
     from_str++;
   }
   if (*from_str == '\0')
-    return(strdup(""));
+    return(PFstrdup(""));
   *from_str = '\0';
-  return_string = strdup(initial_string);
+  return_string = PFstrdup(initial_string);
   *from_str = until_char;
   return(return_string);
 }


------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Monetdb-pf-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/monetdb-pf-checkins

Reply via email to