Update of /cvsroot/monetdb/pathfinder/src/sqlhelpers/xmlshred/include
In directory 
sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv8375/src/sqlhelpers/xmlshred/include

Modified Files:
        shred_helper.h 
Log Message:

isolating the SZFMT & SSZFMT macro definitions from
src/sqlhelpers/xmlshred/include/shred_helper.h
into a separate compiler/include/fmt.h
to make them easily usable in other places, too.


Index: shred_helper.h
===================================================================
RCS file: 
/cvsroot/monetdb/pathfinder/src/sqlhelpers/xmlshred/include/shred_helper.h,v
retrieving revision 1.14
retrieving revision 1.15
diff -u -d -r1.14 -r1.15
--- shred_helper.h      5 Nov 2007 13:46:20 -0000       1.14
+++ shred_helper.h      26 Nov 2007 20:38:49 -0000      1.15
@@ -34,32 +34,7 @@
 
 #define STACK_MAX 100
 
-/* define printf formats for printing size_t and ssize_t variables */
-#if defined(__STDC_VERSION__) && __STDC_VERSION__ >= 199901 && 
!defined(__svr4__) && !defined(WIN32) && !defined(__sgi) && 
(!defined(__APPLE_CC__) || __GNUC__ > 3)
-#define SZFMT "%zu"
-#define SSZFMT "%zd"
-#elif defined(__MINGW32__)
-#define SZFMT "%u"
-#define SSZFMT "%ld"
-#elif defined(__APPLE_CC__) /* && __GNUC__ <= 3 */
-#define SZFMT "%zu"
-        #if SIZEOF_SIZE_T == SIZEOF_INT
-        #define SSZFMT "%d"
-        #else
-        #define SSZFMT "%ld"
-        #endif
-#elif SIZEOF_SIZE_T == SIZEOF_INT
-#define SZFMT "%u"
-#define SSZFMT "%d"
-#elif SIZEOF_SIZE_T == SIZEOF_LONG
-#define SZFMT "%lu"
-#define SSZFMT "%ld"
-#elif SIZEOF_SIZE_T == SIZEOF_LONG_LONG || SIZEOF_SIZE_T == SIZEOF___INT64
-#define SZFMT ULLFMT
-#define SSZFMT LLFMT
-#else
-#error no definition for SZFMT/SSZFMT
-#endif
+#include "fmt.h"
 
 /* boolean type `bool' and constants `true', `false' */
 #ifdef HAVE_STDBOOL_H


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Monetdb-pf-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/monetdb-pf-checkins

Reply via email to