/* 
 * This file contains stuff needed to be as compatible to Informix as possible.
 */

#include <decimal.h>
#include <datetime.h>
#include <ecpglib.h>

#define SQLNOTFOUND 100

#ifndef Date
#define Date long
#endif /* ! Date */

extern int rdatestr (Date, char *);
extern void rtoday (Date *);
extern int rjulmdy (Date, short *);
extern int rdefmtdate (Date *, char *, char *);
extern int rfmtdate (Date, char *, char *);
extern int rmdyjul (short *, Date *);
extern int rstrdate (char *, Date *);
extern int rdayofweek(Date);

extern int rfmtlong(long, char *, char *);
extern int rgetmsg(int, char *, int);
extern int risnull(int, char *);
extern int rsetnull(int, char *);
extern int rtypalign(int, int);
extern int rtypmsize(int, int);
extern int rtypwidth(int, int);
extern void rupshift(char *);

extern int byleng(char *, int);
extern void ldchar(char *, int, char *);

extern bool ECPGconnect_informix(int, const char *, const char *, const char *, const char *, int);
extern void ECPG_informix_set_var(int, void *, int);
extern void *ECPG_informix_get_var(int);
