]> granicus.if.org Git - postgresql/commitdiff
The remaining files ...
authorMichael Meskes <meskes@postgresql.org>
Wed, 25 Jun 2003 17:55:50 +0000 (17:55 +0000)
committerMichael Meskes <meskes@postgresql.org>
Wed, 25 Jun 2003 17:55:50 +0000 (17:55 +0000)
src/interfaces/ecpg/pgtypeslib/datetime.c
src/interfaces/ecpg/pgtypeslib/dt.h
src/interfaces/ecpg/pgtypeslib/dt_common.c
src/interfaces/ecpg/pgtypeslib/extern.h
src/interfaces/ecpg/pgtypeslib/interval.c
src/interfaces/ecpg/pgtypeslib/timestamp.c

index 1249a606fdbbe24fd2535eb06f230776d968b38b..e0354abf2df203e4e683440d5b683ced8eefc04a 100644 (file)
@@ -6,8 +6,8 @@
 #include <stdio.h>
 #include <string.h>
 
-#include "dt.h"
 #include "extern.h"
+#include "dt.h"
 #include "pgtypes_error.h"
 #include "pgtypes_date.h"
 
index 2294cb2a8e8b8956bcfdcad7658ed7ed14674675..ce40bf9a759dae5ec4d4301946d19df50633b26d 100644 (file)
@@ -15,18 +15,6 @@ typedef double fsec_t;
 #define JROUND(j) (rint(((double) (j))*TIME_PREC_INV)/TIME_PREC_INV)
 #endif
 
-#ifndef bool
-#define bool char
-#endif   /* ndef bool */
-
-#ifndef FALSE
-#define FALSE   0
-#endif   /* FALSE */
-
-#ifndef TRUE
-#define TRUE       1
-#endif  /* TRUE */
-
 #define USE_POSTGRES_DATES              0
 #define USE_ISO_DATES                   1
 #define USE_SQL_DATES                   2
index 229ec270a0c8a0c8f41bda62a3a6806250f2d7be..c610163d3b99db84646a78f5c0de093ee6863d4b 100644 (file)
@@ -7,8 +7,8 @@
 #include <string.h>
 #include <math.h>
 
-#include "dt.h"
 #include "extern.h"
+#include "dt.h"
 
 static int day_tab[2][13] = {
                {31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31, 0},
index 222128767bba1a99b51587569da47ba9fd8d528b..90125ffd4525d420bc8bc29c18ef1f2535d6dd61 100644 (file)
@@ -35,6 +35,17 @@ int pgtypes_fmt_replace(union un_fmt_replace, int, char**, int*);
 char *pgtypes_alloc(long);
 char *pgtypes_strdup(char *);
 
+#ifndef bool
+#define bool char
+#endif   /* ndef bool */
+
+#ifndef FALSE
+#define FALSE   0
+#endif   /* FALSE */
+
+#ifndef TRUE
+#define TRUE       1
+#endif  /* TRUE */
 
 #endif /* __PGTYPES_COMMON_H__ */
 
index 62a3141a4ed2d21692f36bbb1a30682eebca2e11..361eb08610213c22bf0428a1b94ceeee34f4327f 100644 (file)
@@ -10,8 +10,8 @@
 #error -ffast-math is known to break this code
 #endif
 
-#include "dt.h"
 #include "extern.h"
+#include "dt.h"
 #include "pgtypes_error.h"
 #include "pgtypes_interval.h"
 #include "datetime.h"
index 59449941eafa7b8c2bc19465c27a498e2e9b493b..e65929b0d2652725574566a1938c9c3706eff0df 100644 (file)
@@ -9,8 +9,8 @@
 #error -ffast-math is known to break this code
 #endif
 
-#include "dt.h"
 #include "extern.h"
+#include "dt.h"
 #include "pgtypes_timestamp.h"
 #include "pgtypes_date.h"
 #include "datetime.h"