GnuCOBOL
2.0
A free COBOL compiler
|
#include "isinternal.h"
Go to the source code of this file.
Macros | |
#define | VB_MAX_OFF_T (off_t)9223372036854775807LL |
Functions | |
static int | itreeload (const int ihandle, const int ikeynumber, const int ilength, unsigned char *pckeyvalue, off_t tdupnumber) |
void | vvbmakekey (const struct keydesc *pskeydesc, char *pcrow_buffer, unsigned char *pckeyvalue) |
int | ivbkeycompare (const int ihandle, const int ikeynumber, int ilength, unsigned char *pckey1, unsigned char *pckey2) |
int | ivbkeysearch (const int ihandle, const int imode, const int ikeynumber, int ilength, unsigned char *pckeyvalue, off_t tdupnumber) |
int | ivbkeylocaterow (const int ihandle, const int ikeynumber, off_t trownumber) |
int | ivbkeyload (const int ihandle, const int ikeynumber, const int imode, const int isetcurr, struct VBKEY **ppskey) |
void | vvbkeyvalueset (const int ihigh, struct keydesc *pskeydesc, unsigned char *pckeyvalue) |
int | ivbkeyinsert (const int ihandle, struct VBTREE *pstree, const int ikeynumber, unsigned char *pckeyvalue, off_t trownode, off_t tdupnumber, struct VBTREE *pschild) |
int | ivbkeydelete (const int ihandle, const int ikeynumber) |
#define VB_MAX_OFF_T (off_t)9223372036854775807LL |
Definition at line 23 of file vbkeysio.c.
Referenced by ivbkeysearch().
|
static |
Definition at line 31 of file vbkeysio.c.
References VBKEY::ckey, DICTINFO::iindexchanged, VBKEY::iisdummy, VBTREE::iiseof, VBKEY::iishigh, VBTREE::iisroot, VBTREE::iistof, VBTREE::ikeysinnode, VBTREE::ilevel, iserrno, ivbkeycompare(), ivbnodeload(), NULL, VBKEY::pschild, VBTREE::pskeycurr, DICTINFO::pskeycurr, DICTINFO::pskeydesc, VBTREE::pskeyfirst, VBTREE::pskeylast, VBTREE::pskeylist, VBKEY::psnext, VBKEY::psparent, VBTREE::psparent, VBKEY::psprev, DICTINFO::pstree, psvbfile, psvbtreeallocate(), VBKEY::tdupnumber, VBTREE::tnodenumber, VBKEY::trownode, and vvbtreeallfree().
Referenced by ivbkeysearch().
int ivbkeycompare | ( | const int | ihandle, |
const int | ikeynumber, | ||
int | ilength, | ||
unsigned char * | pckey1, | ||
unsigned char * | pckey2 | ||
) |
Definition at line 230 of file vbkeysio.c.
References inl_ldint(), inl_ldlong(), inl_ldquad(), lddbl(), ldfloat(), DICTINFO::pskeydesc, psvbfile, and QUADSIZE.
Referenced by ichecktree(), itreeload(), and ivbkeylocaterow().
int ivbkeydelete | ( | const int | ihandle, |
const int | ikeynumber | ||
) |
Definition at line 777 of file vbkeysio.c.
References VBKEY::iisdummy, VBTREE::iiseof, VBKEY::iishigh, VBTREE::iisroot, VBTREE::iistof, VBTREE::ikeysinnode, VBTREE::ilevel, ivbnodefree(), ivbnodeload(), ivbnodesave(), NULL, VBKEY::pschild, VBTREE::pskeycurr, DICTINFO::pskeycurr, DICTINFO::pskeydesc, VBTREE::pskeyfirst, VBTREE::pskeylist, VBKEY::psnext, VBKEY::psparent, VBTREE::psparent, VBKEY::psprev, DICTINFO::pstree, psvbfile, VBKEY::tdupnumber, VBTREE::tnodenumber, VBKEY::trownode, vvbkeyfree(), and vvbtreeallfree().
Referenced by irowdelete(), and irowupdate().
int ivbkeyinsert | ( | const int | ihandle, |
struct VBTREE * | pstree, | ||
const int | ikeynumber, | ||
unsigned char * | pckeyvalue, | ||
off_t | trownode, | ||
off_t | tdupnumber, | ||
struct VBTREE * | pschild | ||
) |
Definition at line 727 of file vbkeysio.c.
References VBKEY::ckey, VBKEY::iisnew, VBTREE::ikeysinnode, ivbnodesave(), VBKEY::pschild, VBTREE::pskeycurr, DICTINFO::pskeycurr, DICTINFO::pskeydesc, VBTREE::pskeyfirst, VBTREE::pskeylist, VBKEY::psnext, VBKEY::psparent, VBKEY::psprev, psvbfile, psvbkeyallocate(), VBKEY::tdupnumber, VBTREE::tnodenumber, and VBKEY::trownode.
Referenced by imakekeysfromdata(), inodesplit(), irowinsert(), irowupdate(), and vaddkeyforrow().
int ivbkeyload | ( | const int | ihandle, |
const int | ikeynumber, | ||
const int | imode, | ||
const int | isetcurr, | ||
struct VBKEY ** | ppskey | ||
) |
Definition at line 503 of file vbkeysio.c.
References DICTINFO::iindexchanged, VBKEY::iisdummy, VBTREE::iiseof, VBTREE::iistof, VBTREE::ilevel, ivbnodeload(), NULL, VBKEY::pschild, VBTREE::pskeycurr, DICTINFO::pskeycurr, VBTREE::pskeyfirst, VBTREE::pskeylast, VBKEY::psnext, VBKEY::psparent, VBTREE::psparent, VBKEY::psprev, psvbfile, psvbtreeallocate(), VBKEY::trownode, and vvbtreeallfree().
Referenced by imakekeysfromdata(), irowinsert(), irowupdate(), isread(), isstart(), ivbkeylocaterow(), ivbkeysearch(), and vaddkeyforrow().
int ivbkeylocaterow | ( | const int | ihandle, |
const int | ikeynumber, | ||
off_t | trownumber | ||
) |
Definition at line 435 of file vbkeysio.c.
References VBKEY::ckey, iserrno, ivbkeycompare(), ivbkeyload(), ivbkeysearch(), DICTINFO::ppcrowbuffer, VBKEY::pschild, VBTREE::pskeycurr, DICTINFO::pskeycurr, DICTINFO::pskeydesc, VBTREE::pskeyfirst, VBKEY::psnext, VBKEY::psparent, VBTREE::psparent, psvbfile, VBKEY::trownode, and vvbmakekey().
Referenced by irowdelete(), irowupdate(), and isread().
int ivbkeysearch | ( | const int | ihandle, |
const int | imode, | ||
const int | ikeynumber, | ||
int | ilength, | ||
unsigned char * | pckeyvalue, | ||
off_t | tdupnumber | ||
) |
Definition at line 372 of file vbkeysio.c.
References iserrno, itreeload(), ivbkeyload(), DICTINFO::pskeydesc, psvbfile, VB_MAX_OFF_T, and vvbkeyvalueset().
Referenced by imakekeysfromdata(), irowinsert(), irowupdate(), isdelete(), isread(), isrewrite(), isstart(), ivbkeylocaterow(), and vaddkeyforrow().
void vvbkeyvalueset | ( | const int | ihigh, |
struct keydesc * | pskeydesc, | ||
unsigned char * | pckeyvalue | ||
) |
Definition at line 659 of file vbkeysio.c.
References inl_stint(), inl_stlong(), QUADSIZE, stdbl(), and stfloat().
Referenced by inewroot(), ivbkeysearch(), and ivbnodeload().
void vvbmakekey | ( | const struct keydesc * | pskeydesc, |
char * | pcrow_buffer, | ||
unsigned char * | pckeyvalue | ||
) |
Definition at line 212 of file vbkeysio.c.
Referenced by imakekeysfromdata(), irowinsert(), irowupdate(), isdelete(), isread(), isrewrite(), isstart(), ivbkeylocaterow(), and vaddkeyforrow().