Lines Matching refs:x4a
4279 static struct s_x4 *x4a; variable
4283 if( x4a ) return; in Configtable_init()
4284 x4a = (struct s_x4*)malloc( sizeof(struct s_x4) ); in Configtable_init()
4285 if( x4a ){ in Configtable_init()
4286 x4a->size = 64; in Configtable_init()
4287 x4a->count = 0; in Configtable_init()
4288 x4a->tbl = (x4node*)malloc( in Configtable_init()
4290 if( x4a->tbl==0 ){ in Configtable_init()
4291 free(x4a); in Configtable_init()
4292 x4a = 0; in Configtable_init()
4295 x4a->ht = (x4node**)&(x4a->tbl[64]); in Configtable_init()
4296 for(i=0; i<64; i++) x4a->ht[i] = 0; in Configtable_init()
4309 if( x4a==0 ) return 0;
4311 h = ph & (x4a->size-1);
4312 np = x4a->ht[h];
4321 if( x4a->count>=x4a->size ){
4325 array.size = size = x4a->size*2;
4326 array.count = x4a->count;
4332 for(i=0; i<x4a->count; i++){
4334 oldnp = &(x4a->tbl[i]);
4343 free(x4a->tbl);
4344 *x4a = array;
4347 h = ph & (x4a->size-1);
4348 np = &(x4a->tbl[x4a->count++]);
4350 if( x4a->ht[h] ) x4a->ht[h]->from = &(np->next);
4351 np->next = x4a->ht[h];
4352 x4a->ht[h] = np;
4353 np->from = &(x4a->ht[h]);
4365 if( x4a==0 ) return 0;
4366 h = confighash(key) & (x4a->size-1);
4367 np = x4a->ht[h];
4381 if( x4a==0 || x4a->count==0 ) return;
4382 if( f ) for(i=0; i<x4a->count; i++) (*f)(x4a->tbl[i].data);
4383 for(i=0; i<x4a->size; i++) x4a->ht[i] = 0;
4384 x4a->count = 0;