Update of /cvsroot/monetdb/pathfinder/compiler/utils
In directory sfp-cvsdas-1.v30.ch3.sourceforge.com:/tmp/cvs-serv10947/utils
Modified Files:
string_utils.c
Log Message:
-- 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.8
retrieving revision 1.9
diff -u -d -r1.8 -r1.9
--- string_utils.c 7 Jan 2010 15:24:28 -0000 1.8
+++ string_utils.c 17 Mar 2010 22:03:09 -0000 1.9
@@ -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® 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