#include "ppport.h"
#if defined(get_no_modify) && !defined(PL_no_modify)
# define PL_no_modify PL_no_modify
# endif
#define unless(e) if (!(e))
#include <fdesc.h>
#include <rhli.h>
#include <rhlierr.h>
typedef
unsigned
char
byte;
char
*atold (
char
*buf, UTP_HDTE *ldate);
int
ldtoa (UTP_HDTE ldate,
char
*buf);
char
*atotime (
char
*buf,
short
*
time
);
char
*timetoa (
short
time
);
char
*ufchmsg (USTATUS errnum, USTATUS *status);
int
uinimsg (
char
*programname, USTATUS *status);
extern
USTATUS SQLCODE;
typedef
struct
imp_fld_st imp_fld_t;
#ifndef UEXTERN
# define UEXTERN
# define UINIT0
# endif
UEXTERN
short
n_dbh UINIT0;
struct
imp_drh_st {
dbih_drc_t com;
};
struct
imp_dbh_st {
dbih_dbc_t com;
short
id;
int
unicode;
int
nchildren;
imp_sth_t **children;
};
#define ST_STAT_ALLOCP 0x01
#define ST_STAT_ALLOCC 0x02
#define ST_STAT_ALLOCI 0x04
#define ST_STAT_ALLOCO 0x08
#define ST_STAT_OPEN 0x10
struct
imp_sth_st {
dbih_stc_t com;
short
id;
short
stat;
char
*statement;
imp_fld_t *fld;
imp_fld_t *prm;
int
dbd_verbose;
int
unicode;
};
struct
imp_fld_st {
char
fnm[48];
int
ftp;
int
fln;
int
fpr;
int
fic;
int
fsc;
int
fnl;
SV *val;
};
#define dbd_init uni_init
#define dbd_db_login uni_db_login
#define dbd_db_do uni_db_do
#define dbd_db_commit uni_db_commit
#define dbd_db_rollback uni_db_rollback
#define dbd_db_disconnect uni_db_disconnect
#define dbd_db_destroy uni_db_destroy
#define dbd_db_STORE_attrib uni_db_STORE_attrib
#define dbd_db_FETCH_attrib uni_db_FETCH_attrib
#define dbd_st_prepare uni_st_prepare
#define dbd_st_rows uni_st_rows
#define dbd_st_execute uni_st_execute
#define dbd_st_fetch uni_st_fetch
#define dbd_st_finish uni_st_finish
#define dbd_st_destroy uni_st_destroy
#define dbd_st_blob_read uni_st_blob_read
#define dbd_st_STORE_attrib uni_st_STORE_attrib
#define dbd_st_FETCH_attrib uni_st_FETCH_attrib
#define dbd_describe uni_describe
#define dbd_bind_ph uni_bind_ph