36 fprintf (stderr,
"%s - Aborting\n", msg);
49 mptr = calloc (1, size);
51 fprintf (stderr,
"Cannot allocate %d bytes of memory - Aborting\n", size);
71 if (pslockfree !=
NULL) {
72 pslockfree = pslockfree->
psnext;
73 memset (pslock, 0,
sizeof (
struct VBLOCK));
92 if (pstreefree ==
NULL) {
95 pstreefree = pstreefree->
psnext;
99 memset (pstree, 0,
sizeof (
struct VBTREE));
129 ilength = psvbptr->
pskeydesc[ikeynumber]->k_len;
137 memset (pskey, 0, (
sizeof (
struct VBKEY) + ilength));
146 struct VBKEY *pskeycurr;
147 struct VBKEY *pskeynext;
155 pskeynext = pskeycurr->
psnext;
161 psvbptr->
pskeyfree[ikeynumber] = pskeycurr;
163 pskeycurr = pskeynext;
199 struct VBKEY *pskeycurr;
205 pskeycurr = psvbptr->
pskeyfree[ikeynumber];
213 pskeycurr = psvbptr->
pskeyfree[ikeynumber];
static struct VBTREE * pstreefree
void vvblockfree(struct VBLOCK *pslock)
struct VBLOCK * psvblockallocate(const int ihandle)
struct VBTREE * psvbtreeallocate(const int ihandle)
void * pvvbmalloc(const size_t size)
EC ARGUMENT EC EC BOUND EC BOUND EC BOUND EC BOUND TABLE EC DATA EC DATA EC DATA PTR NULL
struct VBKEY * pskeyfree[32]
struct DICTINFO * psvbfile[128+1]
static struct VBLOCK * pslockfree
struct VBTREE * pstree[32]
void vvbkeyfree(const int ihandle, const int ikeynumber, struct VBKEY *pskey)
void vvbtreeallfree(const int ihandle, const int ikeynumber, struct VBTREE *pstree)
struct VBKEY * pskeyfirst
void vvbkeyallfree(const int ihandle, const int ikeynumber, struct VBTREE *pstree)
struct VBKEY * psvbkeyallocate(const int ihandle, const int ikeynumber)
struct keydesc * pskeydesc[32]
void vvbkeyunmalloc(const int ihandle, const int ikeynumber)