Lines Matching refs:x1a
3765 static struct s_x1 *x1a;
3769 if( x1a ) return;
3770 x1a = (struct s_x1*)malloc( sizeof(struct s_x1) );
3771 if( x1a ){
3772 x1a->size = 1024;
3773 x1a->count = 0;
3774 x1a->tbl = (x1node*)malloc(
3776 if( x1a->tbl==0 ){
3777 free(x1a);
3778 x1a = 0;
3781 x1a->ht = (x1node**)&(x1a->tbl[1024]);
3782 for(i=0; i<1024; i++) x1a->ht[i] = 0;
3795 if( x1a==0 ) return 0;
3797 h = ph & (x1a->size-1);
3798 np = x1a->ht[h];
3807 if( x1a->count>=x1a->size ){
3811 array.size = size = x1a->size*2;
3812 array.count = x1a->count;
3818 for(i=0; i<x1a->count; i++){
3820 oldnp = &(x1a->tbl[i]);
3829 free(x1a->tbl);
3830 *x1a = array;
3833 h = ph & (x1a->size-1);
3834 np = &(x1a->tbl[x1a->count++]);
3836 if( x1a->ht[h] ) x1a->ht[h]->from = &(np->next);
3837 np->next = x1a->ht[h];
3838 x1a->ht[h] = np;
3839 np->from = &(x1a->ht[h]);
3851 if( x1a==0 ) return 0;
3852 h = strhash(key) & (x1a->size-1);
3853 np = x1a->ht[h];