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

Modified Files:
      Tag: XQFT
        string_utils.c 
Log Message:
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.7.10.1
retrieving revision 1.7.10.2
diff -u -d -r1.7.10.1 -r1.7.10.2
--- string_utils.c      7 Jan 2010 16:04:15 -0000       1.7.10.1
+++ string_utils.c      18 Mar 2010 11:29:36 -0000      1.7.10.2
@@ -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