Re: [Monetdb-developers] [Monetdb-checkins] clients/src/examples/C sample0.c, Aug2009, 1.9, 1.9.2.1 sample1.c, Aug2009, 1.9, 1.9.2.1 sample2.c, Aug2009, 1.9, 1.9.2.1 sample3.c, Aug2009, 1.11, 1.11.2.1 sample4.c, Aug2009, 1.10
Could this also be fixed with the same construction? Stefan On Thu, 13 Aug 2009, Sjoerd Mullender wrote:
Update of /cvsroot/monetdb/clients/src/examples/C In directory 23jxhf1.ch3.sourceforge.com:/tmp/cvs-serv30784/src/examples/C
Modified Files: Tag: Aug2009 sample0.c sample1.c sample2.c sample3.c sample4.c smack00.c smack01.c Log Message: We don't need clients_config.h for HAVE_LONG_LONG/HAVE___INT64 anymore, but we do need to define LLFMT.
U sample0.c Index: sample0.c =================================================================== RCS file: /cvsroot/monetdb/clients/src/examples/C/sample0.c,v retrieving revision 1.9 retrieving revision 1.9.2.1 diff -u -d -r1.9 -r1.9.2.1 --- sample0.c 26 Jul 2009 07:47:10 -0000 1.9 +++ sample0.c 13 Aug 2009 14:28:00 -0000 1.9.2.1 @@ -17,7 +17,6 @@ * All Rights Reserved. */
-#include
#include #include #include U smack00.c Index: smack00.c =================================================================== RCS file: /cvsroot/monetdb/clients/src/examples/C/smack00.c,v retrieving revision 1.12 retrieving revision 1.12.2.1 diff -u -d -r1.12 -r1.12.2.1 --- smack00.c 28 Jul 2009 09:08:16 -0000 1.12 +++ smack00.c 13 Aug 2009 14:28:00 -0000 1.12.2.1 @@ -17,7 +17,6 @@ * All Rights Reserved. */
-#include
#include #include #include U smack01.c Index: smack01.c =================================================================== RCS file: /cvsroot/monetdb/clients/src/examples/C/smack01.c,v retrieving revision 1.11 retrieving revision 1.11.2.1 diff -u -d -r1.11 -r1.11.2.1 --- smack01.c 28 Jul 2009 08:20:06 -0000 1.11 +++ smack01.c 13 Aug 2009 14:28:00 -0000 1.11.2.1 @@ -17,7 +17,6 @@ * All Rights Reserved. */
-#include
#include #include #include U sample4.c Index: sample4.c =================================================================== RCS file: /cvsroot/monetdb/clients/src/examples/C/sample4.c,v retrieving revision 1.10 retrieving revision 1.10.2.1 diff -u -d -r1.10 -r1.10.2.1 --- sample4.c 29 Jul 2009 08:03:37 -0000 1.10 +++ sample4.c 13 Aug 2009 14:28:00 -0000 1.10.2.1 @@ -17,13 +17,15 @@ * All Rights Reserved. */
-#include
#include #include #include #include #ifdef _MSC_VER #define snprintf _snprintf +#define LLFMT "%I64d" +#else +#define LLFMT "%lld" #endif #define die(dbh,hdl) do { \
U sample1.c Index: sample1.c =================================================================== RCS file: /cvsroot/monetdb/clients/src/examples/C/sample1.c,v retrieving revision 1.9 retrieving revision 1.9.2.1 diff -u -d -r1.9 -r1.9.2.1 --- sample1.c 26 Jul 2009 07:47:10 -0000 1.9 +++ sample1.c 13 Aug 2009 14:28:00 -0000 1.9.2.1 @@ -17,7 +17,6 @@ * All Rights Reserved. */
-#include
#include #include #include U sample2.c Index: sample2.c =================================================================== RCS file: /cvsroot/monetdb/clients/src/examples/C/sample2.c,v retrieving revision 1.9 retrieving revision 1.9.2.1 diff -u -d -r1.9 -r1.9.2.1 --- sample2.c 26 Jul 2009 07:47:10 -0000 1.9 +++ sample2.c 13 Aug 2009 14:28:00 -0000 1.9.2.1 @@ -17,7 +17,6 @@ * All Rights Reserved. */
-#include
#include #include #include U sample3.c Index: sample3.c =================================================================== RCS file: /cvsroot/monetdb/clients/src/examples/C/sample3.c,v retrieving revision 1.11 retrieving revision 1.11.2.1 diff -u -d -r1.11 -r1.11.2.1 --- sample3.c 29 Jul 2009 10:40:17 -0000 1.11 +++ sample3.c 13 Aug 2009 14:28:00 -0000 1.11.2.1 @@ -17,13 +17,15 @@ * All Rights Reserved. */
-#include
#include #include #include #include #ifdef _MSC_VER #define snprintf _snprintf +#define LLFMT "%I64d" +#else +#define LLFMT "%lld" #endif #define die(dbh,hdl) do { \
------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ Monetdb-checkins mailing list Monetdb-checkins@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/monetdb-checkins
Stefan de Konink wrote:
Could this also be fixed with the same construction?
Could what be fixed?
Stefan
On Thu, 13 Aug 2009, Sjoerd Mullender wrote:
Update of /cvsroot/monetdb/clients/src/examples/C In directory 23jxhf1.ch3.sourceforge.com:/tmp/cvs-serv30784/src/examples/C
Modified Files: Tag: Aug2009 sample0.c sample1.c sample2.c sample3.c sample4.c smack00.c smack01.c Log Message: We don't need clients_config.h for HAVE_LONG_LONG/HAVE___INT64 anymore, but we do need to define LLFMT.
U sample0.c Index: sample0.c =================================================================== RCS file: /cvsroot/monetdb/clients/src/examples/C/sample0.c,v retrieving revision 1.9 retrieving revision 1.9.2.1 diff -u -d -r1.9 -r1.9.2.1 --- sample0.c 26 Jul 2009 07:47:10 -0000 1.9 +++ sample0.c 13 Aug 2009 14:28:00 -0000 1.9.2.1 @@ -17,7 +17,6 @@ * All Rights Reserved. */
-#include
#include #include #include U smack00.c Index: smack00.c =================================================================== RCS file: /cvsroot/monetdb/clients/src/examples/C/smack00.c,v retrieving revision 1.12 retrieving revision 1.12.2.1 diff -u -d -r1.12 -r1.12.2.1 --- smack00.c 28 Jul 2009 09:08:16 -0000 1.12 +++ smack00.c 13 Aug 2009 14:28:00 -0000 1.12.2.1 @@ -17,7 +17,6 @@ * All Rights Reserved. */
-#include
#include #include #include U smack01.c Index: smack01.c =================================================================== RCS file: /cvsroot/monetdb/clients/src/examples/C/smack01.c,v retrieving revision 1.11 retrieving revision 1.11.2.1 diff -u -d -r1.11 -r1.11.2.1 --- smack01.c 28 Jul 2009 08:20:06 -0000 1.11 +++ smack01.c 13 Aug 2009 14:28:00 -0000 1.11.2.1 @@ -17,7 +17,6 @@ * All Rights Reserved. */
-#include
#include #include #include U sample4.c Index: sample4.c =================================================================== RCS file: /cvsroot/monetdb/clients/src/examples/C/sample4.c,v retrieving revision 1.10 retrieving revision 1.10.2.1 diff -u -d -r1.10 -r1.10.2.1 --- sample4.c 29 Jul 2009 08:03:37 -0000 1.10 +++ sample4.c 13 Aug 2009 14:28:00 -0000 1.10.2.1 @@ -17,13 +17,15 @@ * All Rights Reserved. */
-#include
#include #include #include #include #ifdef _MSC_VER #define snprintf _snprintf +#define LLFMT "%I64d" +#else +#define LLFMT "%lld" #endif #define die(dbh,hdl) do { \
U sample1.c Index: sample1.c =================================================================== RCS file: /cvsroot/monetdb/clients/src/examples/C/sample1.c,v retrieving revision 1.9 retrieving revision 1.9.2.1 diff -u -d -r1.9 -r1.9.2.1 --- sample1.c 26 Jul 2009 07:47:10 -0000 1.9 +++ sample1.c 13 Aug 2009 14:28:00 -0000 1.9.2.1 @@ -17,7 +17,6 @@ * All Rights Reserved. */
-#include
#include #include #include U sample2.c Index: sample2.c =================================================================== RCS file: /cvsroot/monetdb/clients/src/examples/C/sample2.c,v retrieving revision 1.9 retrieving revision 1.9.2.1 diff -u -d -r1.9 -r1.9.2.1 --- sample2.c 26 Jul 2009 07:47:10 -0000 1.9 +++ sample2.c 13 Aug 2009 14:28:00 -0000 1.9.2.1 @@ -17,7 +17,6 @@ * All Rights Reserved. */
-#include
#include #include #include U sample3.c Index: sample3.c =================================================================== RCS file: /cvsroot/monetdb/clients/src/examples/C/sample3.c,v retrieving revision 1.11 retrieving revision 1.11.2.1 diff -u -d -r1.11 -r1.11.2.1 --- sample3.c 29 Jul 2009 10:40:17 -0000 1.11 +++ sample3.c 13 Aug 2009 14:28:00 -0000 1.11.2.1 @@ -17,13 +17,15 @@ * All Rights Reserved. */
-#include
#include #include #include #include #ifdef _MSC_VER #define snprintf _snprintf +#define LLFMT "%I64d" +#else +#define LLFMT "%lld" #endif #define die(dbh,hdl) do { \
------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ Monetdb-checkins mailing list Monetdb-checkins@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/monetdb-checkins
------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ Monetdb-checkins mailing list Monetdb-checkins@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/monetdb-checkins
-- Sjoerd Mullender
On Thu, 13 Aug 2009, Sjoerd Mullender wrote:
Stefan de Konink wrote:
Could this also be fixed with the same construction?
Could what be fixed?
#ifdef _MSC_VER #define snprintf _snprintf +#define LLFMT "%I64d" +#else +#define LLFMT "%lld" #endif
Or is that only required for one single demo? Stefan
Stop talking in riddles. Explain what you mean with "this" in the first quote. "This" refers to something, but you don't make clear what you are referring to, and I refuse to guess. Stefan de Konink wrote:
On Thu, 13 Aug 2009, Sjoerd Mullender wrote:
Stefan de Konink wrote:
Could this also be fixed with the same construction? Could what be fixed?
#ifdef _MSC_VER #define snprintf _snprintf +#define LLFMT "%I64d" +#else +#define LLFMT "%lld" #endif
Or is that only required for one single demo?
This quoted construct is for the program it is used in. The LLFMT is to print a 64 bit integer which must be done differently on different systems.
Stefan
------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ Monetdb-developers mailing list Monetdb-developers@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/monetdb-developers
-- Sjoerd Mullender
participants (2)
-
Sjoerd Mullender
-
Stefan de Konink