Lines Matching refs:x1a
3762 static struct s_x1 *x1a; variable
3766 if( x1a ) return; in Strsafe_init()
3767 x1a = (struct s_x1*)malloc( sizeof(struct s_x1) ); in Strsafe_init()
3768 if( x1a ){ in Strsafe_init()
3769 x1a->size = 1024; in Strsafe_init()
3770 x1a->count = 0; in Strsafe_init()
3771 x1a->tbl = (x1node*)malloc( in Strsafe_init()
3773 if( x1a->tbl==0 ){ in Strsafe_init()
3774 free(x1a); in Strsafe_init()
3775 x1a = 0; in Strsafe_init()
3778 x1a->ht = (x1node**)&(x1a->tbl[1024]); in Strsafe_init()
3779 for(i=0; i<1024; i++) x1a->ht[i] = 0; in Strsafe_init()
3792 if( x1a==0 ) return 0;
3794 h = ph & (x1a->size-1);
3795 np = x1a->ht[h];
3804 if( x1a->count>=x1a->size ){
3808 array.size = size = x1a->size*2;
3809 array.count = x1a->count;
3815 for(i=0; i<x1a->count; i++){
3817 oldnp = &(x1a->tbl[i]);
3826 free(x1a->tbl);
3827 *x1a = array;
3830 h = ph & (x1a->size-1);
3831 np = &(x1a->tbl[x1a->count++]);
3833 if( x1a->ht[h] ) x1a->ht[h]->from = &(np->next);
3834 np->next = x1a->ht[h];
3835 x1a->ht[h] = np;
3836 np->from = &(x1a->ht[h]);
3848 if( x1a==0 ) return 0;
3849 h = strhash(key) & (x1a->size-1);
3850 np = x1a->ht[h];