]> granicus.if.org Git - postgresql/blob - src/interfaces/ecpg/include/ecpg_informix.h
1b71735e79d71bd15216e51434b4a40fb763ab06
[postgresql] / src / interfaces / ecpg / include / ecpg_informix.h
1 /*
2  * This file contains stuff needed to be as compatible to Informix as possible.
3  */
4
5 #include <decimal.h>
6 #include <datetime.h>
7 #include <ecpglib.h>
8
9 #define SQLNOTFOUND 100
10
11 #ifndef date
12 #define date long
13 #endif   /* ! date */
14
15 extern int      rdatestr(date, char *);
16 extern void rtoday(date *);
17 extern int      rjulmdy(date, short *);
18 extern int      rdefmtdate(date *, char *, char *);
19 extern int      rfmtdate(date, char *, char *);
20 extern int      rmdyjul(short *, date *);
21 extern int      rstrdate(char *, date *);
22 extern int      rdayofweek(date);
23
24 extern int      rfmtlong(long, char *, char *);
25 extern int      rgetmsg(int, char *, int);
26 extern int      risnull(int, char *);
27 extern int      rsetnull(int, char *);
28 extern int      rtypalign(int, int);
29 extern int      rtypmsize(int, int);
30 extern int      rtypwidth(int, int);
31 extern void     rupshift(char *);
32
33 extern int      byleng(char *, int);
34 extern void ldchar(char *, int, char *);
35
36 extern void ECPG_informix_set_var(int, void *, int);
37 extern void *ECPG_informix_get_var(int);