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

Modified Files:
        Makefile.ag 
Added Files:
        fmt.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: Makefile.ag
===================================================================
RCS file: /cvsroot/monetdb/pathfinder/compiler/include/Makefile.ag,v
retrieving revision 1.43
retrieving revision 1.44
diff -u -d -r1.43 -r1.44
--- Makefile.ag 5 Nov 2007 16:41:53 -0000       1.43
+++ Makefile.ag 26 Nov 2007 20:38:48 -0000      1.44
@@ -43,6 +43,7 @@
        coreprint.h \
        env.h \
        fs.h \
+       fmt.h \
        func_chk.h \
        functions.h \
        heuristic.h \

--- NEW FILE: fmt.h ---
/**
 * Copyright Notice:
 * -----------------
 *
 * The contents of this file are subject to the Pathfinder Public License
 * Version 1.1 (the "License"); you may not use this file except in
 * compliance with the License.  You may obtain a copy of the License at
 * http://monetdb.cwi.nl/Legal/PathfinderLicense-1.1.html
 *
 * Software distributed under the License is distributed on an "AS IS"
 * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied.  See
 * the License for the specific language governing rights and limitations
 * under the License.
 *
 * The Original Code is the Pathfinder system.
 *
 * The Original Code has initially been developed by the Database &
 * Information Systems Group at the University of Konstanz, Germany and
 * is now maintained by the Database Systems Group at the Technische
 * Universitaet Muenchen, Germany.  Portions created by the University of
 * Konstanz and the Technische Universitaet Muenchen are Copyright (C)
 * 2000-2005 University of Konstanz and (C) 2005-2007 Technische
 * Universitaet Muenchen, respectively.  All Rights Reserved.
 *
 * $Id: fmt.h,v 1.1 2007/11/26 20:38:48 stmane Exp $
 */

#ifndef FMT_H
#define FMT_H

/* 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

#endif /* FMT_H */

/* vim:set shiftwidth=4 expandtab: */


-------------------------------------------------------------------------
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