Update of /cvsroot/monetdb/MonetDB/src/gdk
In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv15697
Modified Files:
gdk_utils.mx
Log Message:
Add some asserts so that we can check whether the SIZEOF macros exist
and have the correct value. This would have found the bug in
monetdb_winconfig.h for icc 1.10 where SIZEOF_LONG_LONG was not
defined.
Index: gdk_utils.mx
===================================================================
RCS file: /cvsroot/monetdb/MonetDB/src/gdk/gdk_utils.mx,v
retrieving revision 1.208
retrieving revision 1.209
diff -u -d -r1.208 -r1.209
--- gdk_utils.mx 12 Feb 2008 18:47:39 -0000 1.208
+++ gdk_utils.mx 13 Mar 2008 12:34:34 -0000 1.209
@@ -1428,6 +1428,19 @@
opt *n;
int i, j, nlen = 0;
+ /* some sanity checks (should also find if symbols are not defined) */
+ assert(sizeof(char) == SIZEOF_CHAR);
+ assert(sizeof(short) == SIZEOF_SHORT);
+ assert(sizeof(int) == SIZEOF_INT);
+ assert(sizeof(long) == SIZEOF_LONG);
+ assert(sizeof(lng) == SIZEOF_LNG);
+ assert(sizeof(oid) == SIZEOF_OID);
+ assert(sizeof(void *) == SIZEOF_VOID_P);
+ assert(sizeof(wrd) == SIZEOF_WRD);
+ assert(sizeof(size_t) == SIZEOF_SIZE_T);
+ assert(sizeof(ptrdiff_t) == SIZEOF_PTRDIFF_T);
+ assert(SIZEOF_OID == SIZEOF_INT || SIZEOF_OID == SIZEOF_LNG);
+
gdk_alloc_map = strcasecmp(alloc_map, "yes") == 0;
errno = 0;
dbfarm = mo_substitute(set, setlen, dbfarm);
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Monetdb-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/monetdb-checkins