| 1 | #ifndef __CIAPI_H |
|---|
| 2 | #define __CIAPI_H |
|---|
| 3 | |
|---|
| 4 | /* |
|---|
| 5 | Uso de las funciones de ciapi desde programas en c. |
|---|
| 6 | tratando de modificar los programas existes lo menos posibles. |
|---|
| 7 | */ |
|---|
| 8 | |
|---|
| 9 | /* |
|---|
| 10 | En los programas en C usar RECSTRU*, TRMSTR0U* y DBXSTRU* como void* |
|---|
| 11 | */ |
|---|
| 12 | |
|---|
| 13 | #if WIN32 |
|---|
| 14 | #define THREADDEC __declspec(thread) |
|---|
| 15 | #endif /* WIN32 */ |
|---|
| 16 | |
|---|
| 17 | #include "cisis.h" |
|---|
| 18 | #include "cirun.h" |
|---|
| 19 | |
|---|
| 20 | //nrecs, vrecp, ntrms, vtrmp |
|---|
| 21 | |
|---|
| 22 | #define nrecs *(cisisnrecs( ciapip )) |
|---|
| 23 | #define vrecp cisisvrecp( ciapip ) |
|---|
| 24 | |
|---|
| 25 | #define ntrms *(cisisntrms( ciapip )) |
|---|
| 26 | #define vtrmp cisisvtrmp( ciapip ) |
|---|
| 27 | |
|---|
| 28 | #define ndbxs *(cisisndbxs( ciapip )) |
|---|
| 29 | |
|---|
| 30 | #define maxnrec cisismaxnrec( ciapip ) |
|---|
| 31 | #define maxntrm cisismaxntrm( ciapip ) |
|---|
| 32 | |
|---|
| 33 | // Uso de las variables TRMxxx |
|---|
| 34 | #define TRMrc *(cisisTermTRMrc( trmp )) |
|---|
| 35 | #define TRMkey cisisTermTRMkey( trmp ) |
|---|
| 36 | #define TRMpmfn *(cisisTermTRMpmfn( trmp )) |
|---|
| 37 | #define TRMptag *(cisisTermTRMptag( trmp )) |
|---|
| 38 | #define TRMpocc *(cisisTermTRMpocc( trmp )) |
|---|
| 39 | #define TRMpcnt *(cisisTermTRMpcnt( trmp )) |
|---|
| 40 | #define TRMpost *(cisisTermTRMpost( trmp )) |
|---|
| 41 | #define TRMlcase *(cisisTermTRMlcase( trmp )) |
|---|
| 42 | #define TRMxytotp *(cisisTermTRMxytotp( trmp )) |
|---|
| 43 | #define TDBname *(cisisTermTDBname( trmp )) |
|---|
| 44 | |
|---|
| 45 | #define VTRMrc(r) *(cisisTermVTRMrc( ciapip, r )) |
|---|
| 46 | #define VTRMkey(r) cisisTermVTRMkey( ciapip, r ) |
|---|
| 47 | #define VTRMxytotp(r) *(cisisTermVTRMxytotp( ciapip, r )) |
|---|
| 48 | |
|---|
| 49 | #define VTRMpmfn(r) *(cisisTermVTRMpmfn( ciapip, r )) |
|---|
| 50 | #define VTRMptag(r) *(cisisTermVTRMptag( ciapip, r )) |
|---|
| 51 | #define VTRMpocc(r) *(cisisTermVTRMpocc( ciapip, r )) |
|---|
| 52 | #define VTRMpcnt(r) *(cisisTermVTRMpcnt( ciapip, r )) |
|---|
| 53 | |
|---|
| 54 | #define VTDBname(r) *(cisisTermVTDBname( ciapip, r )) |
|---|
| 55 | |
|---|
| 56 | // Uso de las variables XXXyyy asociadas a RECSTRU |
|---|
| 57 | #define MF0nxtmfn *(cisisRecordMF0nxtmfn( recp )) |
|---|
| 58 | #define RECrc *(cisisRecordRECrc( recp )) |
|---|
| 59 | #define RECtype *(cisisRecordRECtype( recp )) |
|---|
| 60 | #define RECnbytes *(cisisRecordRECnbytes( recp )) |
|---|
| 61 | #define RECdbxp *(cisisRecordRECdbxp( recp )) |
|---|
| 62 | #define RDBmsmfn *(cisisRecordRDBmsmfn( recp )) |
|---|
| 63 | #define RDBvderp *(cisisRecordRDBvderp( recp )) |
|---|
| 64 | #define RDBname cisisRecordRDBname( recp ) |
|---|
| 65 | #define RDBvgzrp *(cisisRecordRDBvgzrp( recp )) |
|---|
| 66 | #define MFRmfn *(cisisRecordMFRmfn( recp )) |
|---|
| 67 | #define MFRmfrl *(cisisRecordMFRmfrl( recp )) |
|---|
| 68 | #define MFRmfbwb *(cisisRecordMFRmfbwb( recp )) |
|---|
| 69 | #define MFRmfbwp *(cisisRecordMFRmfbwp( recp )) |
|---|
| 70 | #define MFRnvf *(cisisRecordMFRnvf( recp )) |
|---|
| 71 | #define MFRbase *(cisisRecordMFRbase( recp )) |
|---|
| 72 | #define MFRstatus *(cisisRecordMFRstatus( recp )) |
|---|
| 73 | |
|---|
| 74 | // Uso de las variables Vxxx |
|---|
| 75 | #define VRECdbxp( r ) *(cisisRecordVRECdbxp( ciapip, r )) |
|---|
| 76 | #define VRECrc( r ) *(cisisRecordVRECrc( ciapip, r )) |
|---|
| 77 | #define VRECtype( r ) *(cisisRecordVRECtype( ciapip, r )) |
|---|
| 78 | #define VREClock( r ) *(cisisRecordVREClock( ciapip, r )) |
|---|
| 79 | #define VRECwlock( r ) *(cisisRecordVRECwlock( ciapip, r )) |
|---|
| 80 | #define VRECgdbl( r ) *(cisisRecordVRECgdbl( ciapip, r )) |
|---|
| 81 | #define VRECgdbw( r ) *(cisisRecordVRECgdbw( ciapip, r )) |
|---|
| 82 | |
|---|
| 83 | |
|---|
| 84 | #define VMFRmfn( r ) *(cisisRecordVMFRmfn( ciapip, r )) |
|---|
| 85 | #define VMFRstatus( r ) *(cisisRecordVMFRstatus( ciapip, r )) |
|---|
| 86 | #define VMFRnvf( r) *(cisisRecordVMFRnvf( ciapip, r )) |
|---|
| 87 | #define VMFRmfrl( r ) *(cisisRecordVMFRmfrl( ciapip, r )) |
|---|
| 88 | #define VMFRbase( r ) *(cisisRecordVMFRbase( ciapip, r )) |
|---|
| 89 | |
|---|
| 90 | |
|---|
| 91 | #define VDIRtag( r, x ) cisisRecordVDIRtag( ciapip, r, x ) |
|---|
| 92 | #define VDIRlen( r, x ) cisisRecordVDIRlen( ciapip, r, x ) |
|---|
| 93 | #define VFIELDP( irec, xdir ) cisisRecordVFIELDP( ciapip, irec, xdir ) |
|---|
| 94 | |
|---|
| 95 | #define VMF0nxtmfn( r ) *(cisisRecordVMF0nxtmfn( ciapip, r )) |
|---|
| 96 | |
|---|
| 97 | #define VMF0mfcxx1( r ) *(cisisRecordVMF0mfcxx1( ciapip, r )) |
|---|
| 98 | #define VMF0mfcxx2( r ) *(cisisRecordVMF0mfcxx2( ciapip, r )) |
|---|
| 99 | #define VMF0mfcxx3( r ) *(cisisRecordVMF0mfcxx3( ciapip, r )) |
|---|
| 100 | |
|---|
| 101 | #define VMFX( r ) cisisVMFX( ciapip, r ) |
|---|
| 102 | |
|---|
| 103 | #define VRDBname( r ) cisisRecordVRDBname( ciapip, r ) |
|---|
| 104 | #define VRDBnetws( r ) *(cisisRecordVRDBnetws( ciapip, r )) |
|---|
| 105 | #define VRDBdelxx( r ) *(cisisRecordVRDBdelxx( ciapip, r )) |
|---|
| 106 | #define VRDBewlxx( r ) *(cisisRecordVRDBewlxx( ciapip, r )) |
|---|
| 107 | #define VRDBmsopw(r) *(cisisRecordVRDBmsopw( ciapip, r )) |
|---|
| 108 | #define VRDBmsopn(r) *(cisisRecordVRDBmsopn( ciapip, r )) |
|---|
| 109 | |
|---|
| 110 | |
|---|
| 111 | //uso de registro ... |
|---|
| 112 | #define DIRtag(x) cisisRecordDIRtag( recp, x ) |
|---|
| 113 | #define DIRlen(x) cisisRecordDIRlen( recp, x ) |
|---|
| 114 | #define FIELDP(xdir) cisisRecordFIELDP( recp, xdir ) |
|---|
| 115 | |
|---|
| 116 | //equivalente a las funciones de CISIS para creacion de RECSTRU |
|---|
| 117 | #define record(x,dbn,mfn) cisisRecord( ciapip, x, dbn, mfn ) |
|---|
| 118 | #define RECORD(irec,dbn,mfn) recp=vrecp[record(irec,dbn,mfn)] |
|---|
| 119 | #define recallok(irec, nbytes) cisisRecordAlloc( ciapip, irec, nbytes ) |
|---|
| 120 | #define RECFREE(x) cisisRecordDelete( x ) |
|---|
| 121 | #define recmfp() cisisRecordrecmfp( recp ) |
|---|
| 122 | |
|---|
| 123 | #define recwmast(crecp,recp,comb,comp,newblk,wlen) cisisrecwmast(crecp,recp,comb,comp,newblk,wlen) |
|---|
| 124 | #define recxref(recp,mfn,comb,comp) cisisrecxref(recp,mfn,comb,comp) |
|---|
| 125 | |
|---|
| 126 | |
|---|
| 127 | //equivalente a las funciones de CISIS para creacion de TRMSTRU |
|---|
| 128 | #define term(itrm,dbn,key) cisisTerm( ciapip,itrm,dbn,key ) |
|---|
| 129 | #define TERM(itrm,dbn,key) trmp = vtrmp[cisisTerm( ciapip,itrm,dbn,key )] |
|---|
| 130 | #define NXTERM(itrm) trmp = cisisTermNext( ciapip, itrm ) |
|---|
| 131 | #define nxterm(itrm) cisisTermNext( ciapip, itrm ) |
|---|
| 132 | #define posting(itrm,n) cisisTermPosting( ciapip, itrm, n) |
|---|
| 133 | |
|---|
| 134 | #define trmalloc( itrm, nbytes) cisisTermAlloc( ciapip, itrm, nbytes ) |
|---|
| 135 | #define TRMALLOC( itrm, nbytes) trmp = cisisTermAlloc( ciapip, itrm, nbytes ) |
|---|
| 136 | |
|---|
| 137 | //trace |
|---|
| 138 | |
|---|
| 139 | #define dbxtrace *(cisisdbxtrace( ciapip )) |
|---|
| 140 | #define rectrace *(cisisrectrace( ciapip )) |
|---|
| 141 | #define dectrace *(cisisdectrace( ciapip )) |
|---|
| 142 | #define trmtrace *(cisistrmtrace( ciapip )) |
|---|
| 143 | #define multrace *(cisismultrace( ciapip )) |
|---|
| 144 | #define b70trace *(cisisb70trace( ciapip )) |
|---|
| 145 | #define b40trace *(cisisb40trace( ciapip )) |
|---|
| 146 | #define b50trace *(cisisb50trace( ciapip )) |
|---|
| 147 | #define fmttrace *(cisisfmttrace( ciapip )) |
|---|
| 148 | #define fsttrace *(cisisfsttrace( ciapip )) |
|---|
| 149 | #define cgitrace *(cisiscgitrace( ciapip )) |
|---|
| 150 | |
|---|
| 151 | // FMT |
|---|
| 152 | |
|---|
| 153 | #define fmt_gener( pgmpp, fmtp ) cisisfmt_gener( ciapip, pgmpp, fmtp ) |
|---|
| 154 | #define fmt_inter( pgmp, irec, lw, areap, asize ) cisisfmt_inter( ciapip, pgmp,irec, lw, areap, asize) |
|---|
| 155 | #define fmt_free( pgmp ) cisisfmt_free( ciapip, pgmp ) |
|---|
| 156 | |
|---|
| 157 | #define fmterrxy( pgmp ) cisisfmterrxy( ciapip, pgmp ) |
|---|
| 158 | |
|---|
| 159 | #define recfmt(idx,lw,fmt,area,asize) cisisrecfmt(ciapip,vrecp[idx],lw,fmt,area,asize) |
|---|
| 160 | #define recread(recp, mfn) cisisrecread(ciapip, recp, mfn) |
|---|
| 161 | #define recreset(dbnamp, mfn1, mfn2, xrec, parmtell) cisisrecreset(ciapip, dbnamp, mfn1, mfn2, vrecp[xrec], parmtell) |
|---|
| 162 | #define recunlck(irec, option) cisisrecunlck(ciapip, vrecp[irec], option) |
|---|
| 163 | |
|---|
| 164 | |
|---|
| 165 | |
|---|
| 166 | #define recreadl *(cisisrecreadl( ciapip )) |
|---|
| 167 | #define recreadb *(cisisrecreadb( ciapip )) |
|---|
| 168 | #define recreadp *(cisisrecreadp( ciapip )) |
|---|
| 169 | |
|---|
| 170 | #define fmt_fsiz *(cisisfmt_fsiz( ciapip )) |
|---|
| 171 | #define fmt_errof *(cisisfmt_errof( ciapip )) |
|---|
| 172 | #define fmt_error *(cisisfmt_error( ciapip )) |
|---|
| 173 | |
|---|
| 174 | //FST |
|---|
| 175 | |
|---|
| 176 | #define fst_gener(pgmpp, fstspecp) cisisfst_gener( ciapip, (void**)pgmpp, fstspecp ) |
|---|
| 177 | #define fst_inter(pgmp, irec, stwp,area1pp, max1,area2pp, max2, qty1p, qty2p) cisisfst_inter( ciapip,pgmp, vrecp[irec], stwp,area1pp, max1,area2pp, max2,qty1p, qty2p ) |
|---|
| 178 | #define fst_open(gidbnp, filnamp, treecase) cisisfst_open( ciapip,gidbnp, filnamp, treecase) |
|---|
| 179 | #define fst_clos(treecase) cisisfst_clos( ciapip, treecase ) |
|---|
| 180 | #define fst_free(pgmp) cisisfst_free( ciapip, pgmp ) |
|---|
| 181 | |
|---|
| 182 | #define fst_fd cisisfst_fd( ciapip ) |
|---|
| 183 | #define fst_fx cisisfst_fx( ciapip ) |
|---|
| 184 | #define fst_hdrx *(cisisfst_hdrx( ciapip )) |
|---|
| 185 | #define fst_hdru *(cisisfst_hdru( ciapip )) |
|---|
| 186 | #define fst_hdrt *(cisisfst_hdrt( ciapip )) |
|---|
| 187 | #define fst_hdrp *(cisisfst_hdrp( ciapip )) |
|---|
| 188 | #define fst_errl *(cisisfst_errl( ciapip )) |
|---|
| 189 | #define fst_errp *(cisisfst_errp( ciapip )) |
|---|
| 190 | #define fst_error *(cisisfst_error( ciapip )) |
|---|
| 191 | |
|---|
| 192 | #define fst_batchup *(cisisfst_batchup( ciapip )) |
|---|
| 193 | #define fst_batchp *(cisisfst_batchp( ciapip )) |
|---|
| 194 | #define fst_batch0 *(cisisfst_batch0( ciapip )) |
|---|
| 195 | |
|---|
| 196 | #define fst_wlupifnp *(cisisfst_wlupifnp( ciapip )) |
|---|
| 197 | #define fst_wluptrmp *(cisisfst_wluptrmp( ciapip )) |
|---|
| 198 | #define fst_wlupitrm *(cisisfst_wlupitrm( ciapip )) |
|---|
| 199 | |
|---|
| 200 | #define cifstfix *(cisiscifstfix( ciapip )) |
|---|
| 201 | #define cifstfim *(cisiscifstfix( ciapip )) |
|---|
| 202 | |
|---|
| 203 | //IFL |
|---|
| 204 | |
|---|
| 205 | #define ciiflfix *(cisisciiflfix( ciapip )) |
|---|
| 206 | #define ciiflfim *(cisisciiflfix( ciapip )) |
|---|
| 207 | |
|---|
| 208 | #define ifl_balan *(cisisifl_balan( ciapip )) |
|---|
| 209 | |
|---|
| 210 | //ISO |
|---|
| 211 | |
|---|
| 212 | #define iso_open(gidbnp, filnam, lrecb, lrfix, isfix) cisisiso_open( ciapip, gidbnp, filnam, lrecb, lrfix, isfix) |
|---|
| 213 | #define iso_read(crec, irec, ldrtag) cisisiso_read( ciapip, vrecp[irec], ldrtag) |
|---|
| 214 | #define iso_creat(gidbnp, filnam, lrecb, lrfox, isfox) cisisiso_creat( ciapip, gidbnp, filnam, lrecb, lrfox, isfox) |
|---|
| 215 | #define iso_write(recp, isoxfs, isoxgs, ldrtag) cisisiso_write( ciapip, recp, isoxfs, isoxgs, ldrtag) |
|---|
| 216 | #define iso_close() cisisiso_close( ciapip ) |
|---|
| 217 | // miscelaneas ... |
|---|
| 218 | |
|---|
| 219 | #define DBXmsmfn *(cisisDbxDBXmsmfn( dbxp )) |
|---|
| 220 | #define DBXirecs *(cisisDbxDBXirecs( dbxp )) |
|---|
| 221 | #define DBXipadd cisisDbxDBXipadd( dbxp ) |
|---|
| 222 | #define DBXipdel cisisDbxDBXipdel( dbxp ) |
|---|
| 223 | #define DBXvgzrp *(cisisDbxDBXvgzrp( dbxp )) |
|---|
| 224 | #define DBXxryyp *(cisisDbxDBXxryyp( dbxp )) |
|---|
| 225 | #define DBXxropw *(cisisDbxDBXxropw( dbxp )) |
|---|
| 226 | #define DBXxropn *(cisisDbxDBXxropn( dbxp )) |
|---|
| 227 | #define DBXmsopn *(cisisDbxDBXmsopn( dbxp )) |
|---|
| 228 | |
|---|
| 229 | #define VDBXvgzrp( r ) *(cisisDbxVDBXvgzrp( ciapip, r )) |
|---|
| 230 | #define VDBXname( r ) cisisDbxVDBXname( ciapip, r ) |
|---|
| 231 | |
|---|
| 232 | #define dbnp_dbxnetws(p) *(cisisDbnpdbxnetws( ciapip, p )) |
|---|
| 233 | #define dbnp_dbxitrac(p) *(cisisDbnpdbxitrac( ciapip, p )) |
|---|
| 234 | #define dbnp_dbxirecs(p) *(cisisDbnpdbxirecs( ciapip, p )) |
|---|
| 235 | #define dbnp_dbxipadd(p) cisisDbnpdbxipadd( ciapip, p ) |
|---|
| 236 | |
|---|
| 237 | #define DBXxribpxrmfptr cisisDBXxribpxrmfptr( dbxp ) |
|---|
| 238 | #define DBXxribpxrxrpos *(cisisDBXxribpxrxrpos( dbxp )) |
|---|
| 239 | |
|---|
| 240 | #define dbxopt_fatal *(cisisdbxopt_fatal( ciapip )) |
|---|
| 241 | #define dbxopt_ordwr *(cisisdbxopt_ordwr( ciapip )) |
|---|
| 242 | |
|---|
| 243 | #define dbxsleep *(cisisdbxsleep( ciapip )) |
|---|
| 244 | #define dbxewlrc *(cisisdbxewlrc( ciapip )) |
|---|
| 245 | #define dbxfloop *(cisisdbxfloop( ciapip )) |
|---|
| 246 | #define dbxwloop *(cisisdbxwloop( ciapip )) |
|---|
| 247 | #define dbxiloop *(cisisdbxiloop( ciapip )) |
|---|
| 248 | |
|---|
| 249 | #define dbxcdcip *(cisisdbxcdcip( ciapip )) |
|---|
| 250 | |
|---|
| 251 | |
|---|
| 252 | #define cicopyr(namep) cisiscicopyr(namep) |
|---|
| 253 | |
|---|
| 254 | #define dbxopen(gidbnp, dbnamp, extp ) cisisdbxopen( ciapip,gidbnp, dbnamp, extp ) |
|---|
| 255 | #define dbxopenc(gidbnp, filnamp,opnp,opwp,errmsgp, xcreate, xappend) cisisdbxopenc(ciapip, gidbnp, filnamp,opnp,opwp,errmsgp, xcreate, xappend) |
|---|
| 256 | #define dbxopenw(gidbnp, dbnamp,extp,opnp,opwp,errmsgp) cisisdbxopenw( ciapip,gidbnp, dbnamp,extp,opnp,opwp,errmsgp ) |
|---|
| 257 | |
|---|
| 258 | #define dbxcipar(gidbnp, argkey, argchar) cisisdbxcipar( ciapip,gidbnp, argkey, argchar) |
|---|
| 259 | #define subfldp(fldp, dlm, lenp) cisissubfldp( fldp, dlm, lenp ) |
|---|
| 260 | #define subfldn(sfldp, len) cisissubfldn( sfldp, len ) |
|---|
| 261 | #define recisis0( x ) cisisrecisis0( ciapip, x ) |
|---|
| 262 | #define trmisis0( x ) cisistrmisis0( ciapip, x ) |
|---|
| 263 | #define dbxstorp(x) cisisdbxstorp( ciapip, x ) |
|---|
| 264 | #define fldupdat(irec, batchp) cisisfldupdat( vrecp[irec], batchp ) |
|---|
| 265 | #define recupdat(crec,irec) cisisrecupdat( vrecp[irec] ) |
|---|
| 266 | #define nocc(irec, tag) cisisnocc( vrecp[irec], tag ) |
|---|
| 267 | #define fieldx(irec, tag, occ) cisisfieldx( vrecp[irec], tag, occ ) |
|---|
| 268 | #define fldocc(irec, diridx) cisisfldocc( ciapip, vrecp[irec], diridx ) |
|---|
| 269 | |
|---|
| 270 | #define fatal(x) cisisfatal( ciapip, x ) |
|---|
| 271 | |
|---|
| 272 | //#define b70trace *( cisisb70trace( ciapip )) |
|---|
| 273 | |
|---|
| 274 | #define MFX cisisMFX( recp ) |
|---|
| 275 | |
|---|
| 276 | #define loaductb(gidbnp,uctbp,ucfilp) cisisloaductb(ciapip, gidbnp, uctbp, ucfilp) |
|---|
| 277 | #define loadactb(gidbnp,actbp,acfilp) cisisloadactb(ciapip, gidbnp, actbp, acfilp) |
|---|
| 278 | |
|---|
| 279 | //variables de cirun.h |
|---|
| 280 | #define bitmask cisisbitmask( ciapip ) |
|---|
| 281 | #define xx1extp cisisxx1extp( ciapip ) |
|---|
| 282 | |
|---|
| 283 | #define loadfile(gidbnp,at,atp,areap,asize,lf2x) cisisloadfile( ciapip, gidbnp, at, atp, areap, asize, lf2x ) |
|---|
| 284 | |
|---|
| 285 | #define showcore(msg) cisisshowcore(ciapip,msg) |
|---|
| 286 | #define prtfields(recp,mfn) cisisprtfields(recp, mfn) |
|---|
| 287 | |
|---|
| 288 | #define gizmread(gizdbnp, vgizpp, irec ) cisisgizmread(ciapip, gizdbnp, (void*)vgizpp) |
|---|
| 289 | |
|---|
| 290 | #define loadstw(gidbnp, atp,areap,asize,nstws) cisisloadstw(ciapip, gidbnp, atp,areap,asize,nstws) |
|---|
| 291 | |
|---|
| 292 | #define dbxcinet(dbnamp) cisisdbxcinet(ciapip, dbnamp) |
|---|
| 293 | |
|---|
| 294 | #define prtcontrol(recp, dbname) cisisprtcontrol(recp, dbname) |
|---|
| 295 | #define prtxref(recp, mfn) cisisprtxref(ciapip, recp, mfn) |
|---|
| 296 | #define prtleader(recp, mfn) cisisprtleader(recp, mfn) |
|---|
| 297 | #define prtdir(recp, mfn) cisisprtdir(recp, mfn); |
|---|
| 298 | |
|---|
| 299 | |
|---|
| 300 | #define recfgets(crec, irec, line, linsiz, fpconv) cisisrecfgets(ciapip, vrecp[crec], vrecp[irec], line, linsiz, fpconv) |
|---|
| 301 | |
|---|
| 302 | #define recgizmo(irec, vgizmap) cisisrecgizmo(ciapip, vrecp[irec], vgizmap) |
|---|
| 303 | |
|---|
| 304 | |
|---|
| 305 | #define reccopy(upirec, upcrec, recp, mfn) cisisreccopy(ciapip, vrecp[upirec],vrecp[upcrec],recp,mfn) |
|---|
| 306 | |
|---|
| 307 | #define invflush(dbnamp) cisisinvflush(ciapip, dbnamp); |
|---|
| 308 | |
|---|
| 309 | #define invsetup(dbnamp, loadn0x,loadl0x,loadpst) cisisinvsetup(ciapip, dbnamp, loadn0x,loadl0x,loadpst) |
|---|
| 310 | |
|---|
| 311 | #define dbxflush(dbnamp) cisisdbxflush(ciapip, dbnamp) |
|---|
| 312 | |
|---|
| 313 | #define dbxtmpnm(dirtmp, strip, filnamp) cisisdbxtmpnm(ciapip, dirtmp, strip, filnamp) |
|---|
| 314 | #define dbxcipfp *(cisisdbxcipfp(ciapip)) |
|---|
| 315 | #define dbxcipok *(cisisdbxcipok(ciapip)) |
|---|
| 316 | |
|---|
| 317 | #define rec_maxmfrl *(cisisrec_maxmfrl( ciapip )) |
|---|
| 318 | |
|---|
| 319 | #define highv cisishighv( ciapip ) |
|---|
| 320 | |
|---|
| 321 | #define cipnetws *(cisiscipnetws( ciapip )) |
|---|
| 322 | |
|---|
| 323 | #define mx1extp *(cisismx1extp( ciapip )) |
|---|
| 324 | |
|---|
| 325 | #define cicgi0(argc, argv, wwwp, taghxsub, taghpfxp) cisiscicgi0(ciapip, argc, argv, wwwp, taghxsub, taghpfxp) |
|---|
| 326 | //#define cicgi1(argc, argv, entries, nentries, cicgi_p) cisiscicgi1(ciapip, argc, argv, entries, nentries, cicgi_p) |
|---|
| 327 | |
|---|
| 328 | #define upif_end(dbnp, pstflag) cisisupif_end(ciapip, dbnp, pstflag) |
|---|
| 329 | #define upif_init(dbnp) cisisupif_init(ciapip, dbnp) |
|---|
| 330 | |
|---|
| 331 | #define mstsetup(dbnamp, loadxrf, loadmst) cisismstsetup(ciapip, dbnamp, loadxrf, loadmst) |
|---|
| 332 | #define mstflush(dbnamp) cisismstflush(ciapip, dbnamp) |
|---|
| 333 | |
|---|
| 334 | |
|---|
| 335 | #define ifupdat(mdbnp,mfn1,mfn2,idbnp,fstp,stwp,maxlk1,maxlk2,pstflag,endup) cisisifupdat(ciapip,mdbnp,mfn1,mfn2,idbnp,fstp,pstflag,endup) |
|---|
| 336 | |
|---|
| 337 | #define ifupd_reset *(cisisifupd_reset(ciapip)) |
|---|
| 338 | #define ifupd_wrnmsg *(cisisifupd_wrnmsg(ciapip)) |
|---|
| 339 | |
|---|
| 340 | #define svdifupd(lnk1p,qtylk1,lnk2p,qtylk2,olnk1p,oqtylk1,olnk2p,oqtylk2,pstflag,tell) cisisvdifupd(ciapip,lnk1p,qtylk1,lnk2p,qtylk2,olnk1p,oqtylk1,olnk2p,oqtylk2,pstflag,tell) |
|---|
| 341 | |
|---|
| 342 | #define svdifload(dbnp,filekeys_1,filekeys_2,pstflag,tell) cisissvdifload(ciapip,dbnp,filekeys_1,filekeys_2,pstflag,tell) |
|---|
| 343 | |
|---|
| 344 | #define fatal_errcod cisisfatal_errcod(ciapip) |
|---|
| 345 | |
|---|
| 346 | #define recinit() cisisrecinit( ciapip ) |
|---|
| 347 | #define trminit() cisistrminit( ciapip ) |
|---|
| 348 | #define dbxinit() cisisdbxinit( ciapip ) |
|---|
| 349 | |
|---|
| 350 | // Funciones implementadas en CIAPI |
|---|
| 351 | |
|---|
| 352 | #ifdef __WIN32__ |
|---|
| 353 | #include <windows.h> |
|---|
| 354 | #define THREADDEC __declspec(thread) |
|---|
| 355 | #else |
|---|
| 356 | #define CALLBACK |
|---|
| 357 | #define THREADDEC |
|---|
| 358 | #endif |
|---|
| 359 | |
|---|
| 360 | #ifdef __cplusplus |
|---|
| 361 | extern "C" { |
|---|
| 362 | #endif |
|---|
| 363 | |
|---|
| 364 | void* CALLBACK cisisApplication(LONGX xmaxnrec, LONGX xmaxntrm); |
|---|
| 365 | void CALLBACK cisisApplicationDelete(void *ciapip); |
|---|
| 366 | |
|---|
| 367 | LONGX* CALLBACK cisisnrecs(void *xciapip); |
|---|
| 368 | void** CALLBACK cisisvrecp( void *xciapip ); |
|---|
| 369 | |
|---|
| 370 | LONGX* CALLBACK cisisntrms(void *xciapip); |
|---|
| 371 | void** CALLBACK cisisvtrmp( void *xciapip ); |
|---|
| 372 | |
|---|
| 373 | LONGX* CALLBACK cisisndbxs(void *xciapip); |
|---|
| 374 | |
|---|
| 375 | LONGX CALLBACK cisismaxnrec(void *xciapip); |
|---|
| 376 | LONGX CALLBACK cisismaxntrm(void *xciapip); |
|---|
| 377 | |
|---|
| 378 | LONGX CALLBACK cisisRecord(void *ciapip, LONGX irec, char *dbnp, LONGX mfn); |
|---|
| 379 | LONGX CALLBACK cisisRecordAlloc(void *xciapip, LONGX irec, LONGX nbytes); |
|---|
| 380 | void CALLBACK cisisRecordDelete( void *xrecp ); |
|---|
| 381 | int* CALLBACK cisisRecordRECrc(void *xrecp); |
|---|
| 382 | int* CALLBACK cisisRecordRECtype( void *xrecp ); |
|---|
| 383 | LONGX* CALLBACK cisisRecordRECnbytes( void *xrecp ); |
|---|
| 384 | void** CALLBACK cisisRecordRECdbxp( void *xrecp ); |
|---|
| 385 | LONGX* CALLBACK cisisRecordMF0nxtmfn( void *xrecp ); |
|---|
| 386 | char* CALLBACK cisisRecordRDBname( void *xrecp ); |
|---|
| 387 | LONGX* CALLBACK cisisRecordRDBmsmfn( void *xrecp ); |
|---|
| 388 | void** CALLBACK cisisRecordRDBvgzrp( void *xrecp ); |
|---|
| 389 | void** CALLBACK cisisRecordRDBvderp( void *xrecp ); |
|---|
| 390 | LONGX* CALLBACK cisisRecordMFRmfn( void *xrecp ); |
|---|
| 391 | FFI* CALLBACK cisisRecordMFRmfrl( void *xrecp ); |
|---|
| 392 | LONGX* CALLBACK cisisRecordMFRmfbwb( void *xrecp ); |
|---|
| 393 | UWORD* CALLBACK cisisRecordMFRmfbwp( void *xrecp ); |
|---|
| 394 | FFI* CALLBACK cisisRecordMFRbase( void *xrecp ); |
|---|
| 395 | UWORD* CALLBACK cisisRecordMFRnvf( void *xrecp ); |
|---|
| 396 | UWORD* CALLBACK cisisRecordMFRstatus( void *xrecp ); |
|---|
| 397 | |
|---|
| 398 | void* CALLBACK cisisRecordrecmfp( void *xrecp ); |
|---|
| 399 | |
|---|
| 400 | int CALLBACK cisisrecwmast(void *xcrecp, void *xrecp, LONGX b, int p, int nblk, FFI wlen); |
|---|
| 401 | int CALLBACK cisisrecxref(void *xrecp, LONGX mfn, LONGX *comb, int *comp); |
|---|
| 402 | |
|---|
| 403 | UWORD CALLBACK cisisRecordDIRtag( void *xrecp, int x ); |
|---|
| 404 | FFI CALLBACK cisisRecordDIRlen( void *xrecp, int x ); |
|---|
| 405 | char* CALLBACK cisisRecordFIELDP( void *xrecp, int x ); |
|---|
| 406 | |
|---|
| 407 | void** CALLBACK cisisRecordVRECdbxp( void *xciapip, LONGX irec ); |
|---|
| 408 | int* CALLBACK cisisRecordVRECrc( void *xciapip, LONGX irec ); |
|---|
| 409 | int* CALLBACK cisisRecordVRECtype( void *xciapip, LONGX irec ); |
|---|
| 410 | int *CALLBACK cisisRecordVREClock( void *xciapip, LONGX irec ); |
|---|
| 411 | int *CALLBACK cisisRecordVRECwlock( void *xciapip, LONGX irec ); |
|---|
| 412 | int* CALLBACK cisisRecordVRECgdbl( void *xciapip, LONGX irec ); |
|---|
| 413 | int* CALLBACK cisisRecordVRECgdbw( void *xciapip, LONGX irec ); |
|---|
| 414 | |
|---|
| 415 | LONGX* CALLBACK cisisRecordVMFRmfn( void *xciapip, LONGX irec ); |
|---|
| 416 | UWORD* CALLBACK cisisRecordVMFRstatus( void *xciapip, LONGX irec ); |
|---|
| 417 | UWORD* CALLBACK cisisRecordVMFRnvf( void *xciapip, LONGX irec ); |
|---|
| 418 | FFI *CALLBACK cisisRecordVMFRmfrl( void *xciapip, LONGX irec ); |
|---|
| 419 | LONGX* CALLBACK cisisRecordVMF0nxtmfn( void *xciapip, LONGX irec ); |
|---|
| 420 | LONGX* CALLBACK cisisRecordVMF0mfcxx1( void *xciapip, LONGX irec ); |
|---|
| 421 | LONGX* CALLBACK cisisRecordVMF0mfcxx2( void *xciapip, LONGX irec ); |
|---|
| 422 | LONGX* CALLBACK cisisRecordVMF0mfcxx3( void *xciapip, LONGX irec ); |
|---|
| 423 | FFI* CALLBACK cisisRecordVMFRbase( void *xciapip, LONGX irec ); |
|---|
| 424 | |
|---|
| 425 | char* CALLBACK cisisVMFX( void *xciapip, LONGX irec ); |
|---|
| 426 | |
|---|
| 427 | char* CALLBACK cisisRecordVRDBname( void *xciapip, LONGX irec ); |
|---|
| 428 | int* CALLBACK cisisRecordVRDBnetws( void *xciapip, LONGX irec ); |
|---|
| 429 | int* CALLBACK cisisRecordVRDBdelxx( void *xciapip, LONGX irec ); |
|---|
| 430 | int* CALLBACK cisisRecordVRDBewlxx( void *xciapip, LONGX irec ); |
|---|
| 431 | int* CALLBACK cisisRecordVRDBmsopw( void *xciapip, LONGX irec ); |
|---|
| 432 | int* CALLBACK cisisRecordVRDBmsopn( void *xciapip, LONGX irec ); |
|---|
| 433 | |
|---|
| 434 | UWORD CALLBACK cisisRecordVDIRtag( void *xciapip, LONGX irec, int x ); |
|---|
| 435 | FFI CALLBACK cisisRecordVDIRlen( void *xciapip, LONGX irec, int x ); |
|---|
| 436 | char* CALLBACK cisisRecordVFIELDP( void *xciapip, LONGX irec, int x ); |
|---|
| 437 | |
|---|
| 438 | |
|---|
| 439 | LONGX CALLBACK cisisTerm(void *xciapip, LONGX itrm, UCHR *dbnp, UCHR *keyp); |
|---|
| 440 | void* CALLBACK cisisTermAlloc(void *xciapip, LONGX itrm, LONGX nbytes ); |
|---|
| 441 | void* CALLBACK cisisTermNext(void *xciapip, LONGX itrm); |
|---|
| 442 | LONGX* CALLBACK cisisTermTRMrc(void *xtrmp); |
|---|
| 443 | LONGX* CALLBACK cisisTermTRMpost(void *xtrmp); |
|---|
| 444 | int * CALLBACK cisisTermTRMlcase( void *xtrmp); |
|---|
| 445 | LONGX* CALLBACK cisisTermTRMpmfn(void *xtrmp); |
|---|
| 446 | UWORD* CALLBACK cisisTermTRMptag(void *xtrmp); |
|---|
| 447 | UWORD* CALLBACK cisisTermTRMpocc(void *xtrmp); |
|---|
| 448 | UWORD* CALLBACK cisisTermTRMpcnt(void *xtrmp); |
|---|
| 449 | UCHR* CALLBACK cisisTermTRMkey(void *xtrmp); |
|---|
| 450 | LONGX* CALLBACK cisisTermTRMxytotp(void *xtrmp); |
|---|
| 451 | LONGX CALLBACK cisisTermPosting(void *xciapip, LONGX itrm, LONGX nord); |
|---|
| 452 | |
|---|
| 453 | char** CALLBACK cisisTermTDBname(void *xtrmp); |
|---|
| 454 | |
|---|
| 455 | LONGX* CALLBACK cisisTermVTRMrc( void *xciapip, LONGX itrm ); |
|---|
| 456 | UCHR* CALLBACK cisisTermVTRMkey( void *xciapip, LONGX itrm ); |
|---|
| 457 | LONGX* CALLBACK cisisTermVTRMxytotp( void *xciapip, LONGX itrm ); |
|---|
| 458 | |
|---|
| 459 | LONGX* CALLBACK cisisTermVTRMpmfn( void *xciapip, LONGX itrm ); |
|---|
| 460 | UWORD* CALLBACK cisisTermVTRMptag( void *xciapip, LONGX itrm ); |
|---|
| 461 | UWORD* CALLBACK cisisTermVTRMpocc( void *xciapip, LONGX itrm ); |
|---|
| 462 | UWORD* CALLBACK cisisTermVTRMpcnt( void *xciapip, LONGX itrm ); |
|---|
| 463 | |
|---|
| 464 | char** CALLBACK cisisTermVTDBname( void *xciapip, LONGX itrm ); |
|---|
| 465 | |
|---|
| 466 | LONGX* CALLBACK cisisDbxDBXmsmfn( void *xdbxp ); |
|---|
| 467 | LONGX* CALLBACK cisisDbxDBXirecs( void *xdbxp ); |
|---|
| 468 | LONGX* CALLBACK cisisDbxDBXipadd( void *xdbxp ); |
|---|
| 469 | LONGX* CALLBACK cisisDbxDBXipdel( void *xdbxp ); |
|---|
| 470 | void ** CALLBACK cisisDbxDBXvgzrp( void *xdbxp ); |
|---|
| 471 | |
|---|
| 472 | char** CALLBACK cisisDbxDBXxryyp( void *xdbxp ); |
|---|
| 473 | int* CALLBACK cisisDbxDBXxropw( void *xdbxp ); |
|---|
| 474 | int* CALLBACK cisisDbxDBXxropn( void *xdbxp ); |
|---|
| 475 | int* CALLBACK cisisDbxDBXmsopn( void *xdbxp ); |
|---|
| 476 | |
|---|
| 477 | |
|---|
| 478 | void** CALLBACK cisisDbxVDBXvgzrp( void *xciapip, LONGX idbx ); |
|---|
| 479 | char *CALLBACK cisisDbxVDBXname( void *xciapip, LONGX idbx ); |
|---|
| 480 | |
|---|
| 481 | int* CALLBACK cisisDbnpdbxnetws( void *xciapip, char *dbnp ); |
|---|
| 482 | int* CALLBACK cisisDbnpdbxitrac( void *xciapip, char *dbnp ); |
|---|
| 483 | LONGX* CALLBACK cisisDbnpdbxirecs( void *xciapip, char *dbnp ); |
|---|
| 484 | LONGX* CALLBACK cisisDbnpdbxipadd( void *xciapip, char *dbnp ); |
|---|
| 485 | |
|---|
| 486 | XRPTR* CALLBACK cisisDBXxribpxrmfptr( void *xdbxp ); |
|---|
| 487 | XRPTR* CALLBACK cisisDBXxribpxrxrpos( void *xdbxp ); |
|---|
| 488 | |
|---|
| 489 | int* CALLBACK cisisdbxtrace( void *xciapip ); |
|---|
| 490 | int* CALLBACK cisisrectrace( void *xciapip ); |
|---|
| 491 | int* CALLBACK cisisdectrace( void *xciapip ); |
|---|
| 492 | int* CALLBACK cisistrmtrace( void *xciapip ); |
|---|
| 493 | int* CALLBACK cisismultrace( void *xciapip ); |
|---|
| 494 | int* CALLBACK cisisb70trace( void *xciapip ); |
|---|
| 495 | int* CALLBACK cisisb40trace( void *xciapip ); |
|---|
| 496 | int* CALLBACK cisisb50trace( void *xciapip ); |
|---|
| 497 | int* CALLBACK cisisfmttrace( void *xciapip ); |
|---|
| 498 | int* CALLBACK cisisfsttrace( void *xciapip ); |
|---|
| 499 | int* CALLBACK cisiscgitrace( void *xciapip ); |
|---|
| 500 | |
|---|
| 501 | |
|---|
| 502 | LONGX CALLBACK cisisfmt_gener( void *xciapip, void **pgmpp, char *fmtp ); |
|---|
| 503 | LONGX CALLBACK cisisfmt_inter( void *xciapip, void *xpgmp, LONGX irec, LONGX lw, char *areap, LONGX asize); |
|---|
| 504 | void CALLBACK cisisfmt_free( void *xciapip, void *xpgmp); |
|---|
| 505 | |
|---|
| 506 | char* CALLBACK cisisfmterrxy( void *xciapip, void *xpgmp); |
|---|
| 507 | |
|---|
| 508 | LONGX CALLBACK cisisrecfmt(void *xciapip, void *recp,LONGX lw,char *fmt,char *area,LONGX asize); |
|---|
| 509 | int CALLBACK cisisrecread(void *xciapip, void* xrecp, LONGX mfn); |
|---|
| 510 | void CALLBACK cisisrecreset(void *xciapip, char *dbnamp, LONGX mfn1, LONGX mfn2, void* xrecp, LONGX parmtell); |
|---|
| 511 | int CALLBACK cisisrecunlck(void *xciapip, void *xrecp, int option); |
|---|
| 512 | |
|---|
| 513 | |
|---|
| 514 | FFI* CALLBACK cisisrecreadl( void* xciapip ); |
|---|
| 515 | LONGX* CALLBACK cisisrecreadb( void* xciapip ); |
|---|
| 516 | int* CALLBACK cisisrecreadp( void* xciapip ); |
|---|
| 517 | |
|---|
| 518 | LONGX* CALLBACK cisisfmt_fsiz( void *xciapip ); |
|---|
| 519 | LONGX* CALLBACK cisisfmt_errof( void *xciapip ); |
|---|
| 520 | LONGX* CALLBACK cisisfmt_error( void *xciapip ); |
|---|
| 521 | |
|---|
| 522 | LONGX CALLBACK cisisfst_gener( void *xciapip, void **pgmpp, char *fstspecp ); |
|---|
| 523 | LONGX CALLBACK cisisfst_inter( void *xciapip, void *pgmp, void *xrecp, char *stwp,char **area1pp, LONGX max1,char **area2pp, LONGX max2,LONGX *qty1p, LONGX *qty2p ); |
|---|
| 524 | int CALLBACK cisisfst_open( void *xciapip, char *gidbnp, char *filnamp, int treecase ); |
|---|
| 525 | int CALLBACK cisisfst_clos( void *xciapip, int treecase ); |
|---|
| 526 | void CALLBACK cisisfst_free( void *xciapip, void *pgmpp ); |
|---|
| 527 | |
|---|
| 528 | int* CALLBACK cisisfst_fd( void *xciapip ); |
|---|
| 529 | LONGX* CALLBACK cisisfst_fx( void *xciapip ); |
|---|
| 530 | int* CALLBACK cisisfst_hdrx( void *xciapip ); |
|---|
| 531 | int* CALLBACK cisisfst_hdru( void *xciapip ); |
|---|
| 532 | int* CALLBACK cisisfst_hdrt( void *xciapip ); |
|---|
| 533 | char** CALLBACK cisisfst_hdrp( void *xciapip ); |
|---|
| 534 | LONGX* CALLBACK cisisfst_errl( void *xciapip ); |
|---|
| 535 | char** CALLBACK cisisfst_errp( void *xciapip ); |
|---|
| 536 | LONGX* CALLBACK cisisfst_error( void *xciapip ); |
|---|
| 537 | |
|---|
| 538 | char** CALLBACK cisisfst_batchup( void* xciapip ); |
|---|
| 539 | char** CALLBACK cisisfst_batchp( void* xciapip ); |
|---|
| 540 | int* CALLBACK cisisfst_batch0( void* xciapip ); |
|---|
| 541 | |
|---|
| 542 | char** CALLBACK cisisfst_wlupifnp( void *xciapip ); |
|---|
| 543 | TRMSTRU** CALLBACK cisisfst_wluptrmp( void *xciapip ); |
|---|
| 544 | LONGX* CALLBACK cisisfst_wlupitrm( void *xciapip ); |
|---|
| 545 | |
|---|
| 546 | int* CALLBACK cisiscifstfix( void* xciapip ); |
|---|
| 547 | int* CALLBACK cisiscifstfim( void* xciapip ); |
|---|
| 548 | |
|---|
| 549 | int* CALLBACK cisisciiflfix( void* xciapip ); |
|---|
| 550 | int* CALLBACK cisisciiflfim( void* xciapip ); |
|---|
| 551 | int* CALLBACK cisisifl_balan( void* xciapip ); |
|---|
| 552 | |
|---|
| 553 | int CALLBACK cisisiso_open( void* xcisisp, char *gidbnp, unsigned char filnam[], int lrecb, int lrfix, int isfix); |
|---|
| 554 | int CALLBACK cisisiso_read( void* xcisisp, RECSTRU* xrecp, unsigned int ldrtag); |
|---|
| 555 | int CALLBACK cisisiso_creat( void* xcisisp, char *gidbnp, unsigned char filnam[], int lrecb, int lrfox, int isfox); |
|---|
| 556 | int CALLBACK cisisiso_write( void* xcisisp, void *xrecp, unsigned char isoxfs, unsigned char isoxgs, unsigned int ldrtag); |
|---|
| 557 | int CALLBACK cisisiso_close( void* xciapip ); |
|---|
| 558 | |
|---|
| 559 | int* CALLBACK cisisdbxopt_fatal( void *xciapip ); |
|---|
| 560 | |
|---|
| 561 | int* CALLBACK cisisdbxopt_ordwr( void *xciapip ); |
|---|
| 562 | |
|---|
| 563 | int* CALLBACK cisisdbxsleep( void *xciapip ); |
|---|
| 564 | int* CALLBACK cisisdbxewlrc( void *xciapip ); |
|---|
| 565 | int* CALLBACK cisisdbxfloop( void *xciapip ); |
|---|
| 566 | int* CALLBACK cisisdbxwloop( void *xciapip ); |
|---|
| 567 | int* CALLBACK cisisdbxiloop( void *xciapip ); |
|---|
| 568 | |
|---|
| 569 | char** CALLBACK cisisdbxcdcip( void *xciapip ); |
|---|
| 570 | |
|---|
| 571 | char* CALLBACK cisiscicopyr(char *namep); |
|---|
| 572 | int CALLBACK cisisdbxopen( void *xciapip, char *gidbnp, char *dbname, char *extp); |
|---|
| 573 | char* CALLBACK cisisdbxopenc(void *xciapip, char *gidbnp, char *filnamp,int *opnp,int *opwp,char *errmsgp, int xcreate, int xappend); |
|---|
| 574 | int CALLBACK cisisdbxopenw(void *xciapip, char *gidbnp, char *dbnamp,char *extp,int *opnp,int *opwp,char *errmsgp); |
|---|
| 575 | char* CALLBACK cisisdbxcipar( void *xciapip, char *gidbnp,char *argkey,char argchar); |
|---|
| 576 | UBYTE* CALLBACK cisissubfldp( UBYTE *fldp, UBYTE dlm, FFI *lenp ); |
|---|
| 577 | FFI CALLBACK cisissubfldn(UBYTE *sfldp, FFI len); |
|---|
| 578 | int CALLBACK cisisrecisis0(void *xciapip, char *dbname ); |
|---|
| 579 | int CALLBACK cisistrmisis0(void *xciapip, char *dbname ); |
|---|
| 580 | void* CALLBACK cisisdbxstorp(void *ciapip, char *dbnamp); |
|---|
| 581 | char* CALLBACK cisisfldupdat( void *xrecp, char *batchp); |
|---|
| 582 | int CALLBACK cisisrecupdat( void *xrecp); |
|---|
| 583 | int CALLBACK cisisnocc(void* xrecp, int tag); |
|---|
| 584 | int CALLBACK cisisfieldx(void *xrecp, int tag, int occ); |
|---|
| 585 | int CALLBACK cisisfldocc( void *xciapip, void* xrecp, int diridx ); |
|---|
| 586 | |
|---|
| 587 | void CALLBACK cisisfatal(void *xciapip, char *msg); |
|---|
| 588 | |
|---|
| 589 | unsigned char* CALLBACK cisisbitmask( void *xciapip ); |
|---|
| 590 | char* CALLBACK cisisxx1extp( void *xciapip ); |
|---|
| 591 | |
|---|
| 592 | int* CALLBACK cisisb70trace( void *xciapip ); |
|---|
| 593 | |
|---|
| 594 | char* CALLBACK cisisMFX( void *xrecp ); |
|---|
| 595 | |
|---|
| 596 | /* cirun.h */ |
|---|
| 597 | int* CALLBACK cisisNXPAGES( void *xciapip ); |
|---|
| 598 | int* CALLBACK cisisisiswctot( void *xciapip ); |
|---|
| 599 | unsigned char* CALLBACK cisisisiswctab( void *xciapip ); |
|---|
| 600 | unsigned char* CALLBACK cisisisisuctab( void *xciapip ); |
|---|
| 601 | |
|---|
| 602 | char* CALLBACK cisisloaductb(void *xciapip, char *gidbnp,char *uctbp,char *ucfilp); |
|---|
| 603 | char* CALLBACK cisisloadactb(void *xciapip, char *gidbnp,char *actbp,char *acfilp); |
|---|
| 604 | |
|---|
| 605 | char* CALLBACK cisisloadfile( void *xciapip, char *gidbnp, char at, char *atp, char *areap, LONGX asize, char lf2x); |
|---|
| 606 | unsigned LONGX CALLBACK cisisshowcore(void *xciapip, char *msg); |
|---|
| 607 | LONGX CALLBACK cisisprtfields(RECSTRU *recp, LONGX mfn); |
|---|
| 608 | |
|---|
| 609 | int CALLBACK cisisgizmread(void *xciapip, char *gizdbnp, void **vgizpp); |
|---|
| 610 | |
|---|
| 611 | char* CALLBACK cisisloadstw(void *xciapip, char *gidbnp, char *atp,char *areap,LONGX asize,int *nstws); |
|---|
| 612 | |
|---|
| 613 | int CALLBACK cisisdbxcinet(void *xciapip, char *dbnamp); |
|---|
| 614 | |
|---|
| 615 | LONGX CALLBACK cisisprtcontrol(void *xrecp, char dbname[]); |
|---|
| 616 | LONGX CALLBACK cisisprtxref(void *xciapip, RECSTRU *recp, LONGX mfn); |
|---|
| 617 | LONGX CALLBACK cisisprtleader(RECSTRU *recp, LONGX mfn); |
|---|
| 618 | LONGX CALLBACK cisisprtdir(RECSTRU *recp, LONGX mfn); |
|---|
| 619 | |
|---|
| 620 | int CALLBACK cisisrecfgets(void *xciapip, RECSTRU *crec, RECSTRU *irec, char line[], FFI linsiz, FILE *fpconv); |
|---|
| 621 | LONGX CALLBACK cisisrecgizmo(void *xciapip, RECSTRU *recp, VGIZPSTRU *vgizmap); |
|---|
| 622 | |
|---|
| 623 | |
|---|
| 624 | int CALLBACK cisisreccopy(void *xciapip, RECSTRU *upirec,RECSTRU *upcrec,RECSTRU *recp,LONGX mfn); |
|---|
| 625 | |
|---|
| 626 | void CALLBACK cisisinvflush(void *xciapip, char *dbnamp); |
|---|
| 627 | |
|---|
| 628 | void CALLBACK cisisinvsetup(void *xciapip, UCHR *dbnamp, LONGX loadn0x,LONGX loadl0x,LONGX loadpst); |
|---|
| 629 | |
|---|
| 630 | void CALLBACK cisisdbxflush(void *xciapip, char *dbnamp); |
|---|
| 631 | |
|---|
| 632 | char* CALLBACK cisisdbxtmpnm(void *xciapip, char *dirtmp, int strip, char *filnamp); |
|---|
| 633 | FILE** CALLBACK cisisdbxcipfp( void* xciapip ); |
|---|
| 634 | int* CALLBACK cisisdbxcipok( void* xciapip ); |
|---|
| 635 | |
|---|
| 636 | LONGX* CALLBACK cisisrec_maxmfrl(void *xciapip); |
|---|
| 637 | |
|---|
| 638 | char* CALLBACK cisishighv(void *xciapip); |
|---|
| 639 | |
|---|
| 640 | int* CALLBACK cisiscipnetws(void *xciapip); |
|---|
| 641 | |
|---|
| 642 | char** CALLBACK cisismx1extp(void *xciapip); |
|---|
| 643 | |
|---|
| 644 | int CALLBACK cisiscicgi0(void *xciapip, int *argc, char *argv[], char **wwwp, UWORD taghxsub, char *taghpfxp); |
|---|
| 645 | int CALLBACK cisiscicgi1(void *xciapip, int *argc, char *argv[], CICGI_ENTRY entries[], int nentries, char *cicgi_p); |
|---|
| 646 | |
|---|
| 647 | void CALLBACK cisisupif_init(void *xciapip, char *dbnp ); |
|---|
| 648 | int CALLBACK cisisupif_end(void *xciapip, char *dbnp, int pstflag); |
|---|
| 649 | |
|---|
| 650 | void CALLBACK cisismstsetup(void *xciapip, char *dbnamp, LONGX loadxrf, LONGX loadmst); |
|---|
| 651 | void CALLBACK cisismstflush(void *xciapip, char *dbnamp); |
|---|
| 652 | |
|---|
| 653 | int CALLBACK cisisifupdat(void *xciapip, char *mdbnp, LONGX mfn1, LONGX mfn2, char *idbnp, void *xfst, int pstflag, int endup); |
|---|
| 654 | |
|---|
| 655 | int* CALLBACK cisisifupd_reset(void *xciapip); |
|---|
| 656 | int* CALLBACK cisisifupd_wrnmsg(void *xciapip); |
|---|
| 657 | |
|---|
| 658 | |
|---|
| 659 | void CALLBACK cisisvdifupd(void *xciapip,char *lnk1p,LONGX qtylk1,char *lnk2p,LONGX qtylk2,char *olnk1p,LONGX oqtylk1,char *olnk2p,LONGX oqtylk2,int pstflag,LONGX tell); |
|---|
| 660 | |
|---|
| 661 | LONGX CALLBACK cisissvdifload(void *xciapip,char *dbnp,char *filekeys_1,char *filekeys_2,int pstflag,LONGX tell); |
|---|
| 662 | |
|---|
| 663 | int CALLBACK cisisfatal_errcod(void *xciapip); |
|---|
| 664 | |
|---|
| 665 | void CALLBACK cisisrecinit(void *xciapip); |
|---|
| 666 | void CALLBACK cisistrminit(void *xciapip); |
|---|
| 667 | void CALLBACK cisisdbxinit(void *xciapip); |
|---|
| 668 | |
|---|
| 669 | |
|---|
| 670 | #ifdef __cplusplus |
|---|
| 671 | } |
|---|
| 672 | #endif /* extern "C" */ |
|---|
| 673 | |
|---|
| 674 | |
|---|
| 675 | #endif /* __CIAPI_H */ |
|---|