Lines Matching refs:x3a
4130 static struct s_x3 *x3a; variable
4134 if( x3a ) return; in State_init()
4135 x3a = (struct s_x3*)malloc( sizeof(struct s_x3) ); in State_init()
4136 if( x3a ){ in State_init()
4137 x3a->size = 128; in State_init()
4138 x3a->count = 0; in State_init()
4139 x3a->tbl = (x3node*)malloc( in State_init()
4141 if( x3a->tbl==0 ){ in State_init()
4142 free(x3a); in State_init()
4143 x3a = 0; in State_init()
4146 x3a->ht = (x3node**)&(x3a->tbl[128]); in State_init()
4147 for(i=0; i<128; i++) x3a->ht[i] = 0; in State_init()
4161 if( x3a==0 ) return 0;
4163 h = ph & (x3a->size-1);
4164 np = x3a->ht[h];
4173 if( x3a->count>=x3a->size ){
4177 array.size = size = x3a->size*2;
4178 array.count = x3a->count;
4184 for(i=0; i<x3a->count; i++){
4186 oldnp = &(x3a->tbl[i]);
4196 free(x3a->tbl);
4197 *x3a = array;
4200 h = ph & (x3a->size-1);
4201 np = &(x3a->tbl[x3a->count++]);
4204 if( x3a->ht[h] ) x3a->ht[h]->from = &(np->next);
4205 np->next = x3a->ht[h];
4206 x3a->ht[h] = np;
4207 np->from = &(x3a->ht[h]);
4219 if( x3a==0 ) return 0;
4220 h = statehash(key) & (x3a->size-1);
4221 np = x3a->ht[h];
4236 if( x3a==0 ) return 0; in State_arrayof()
4237 size = x3a->count; in State_arrayof()
4240 for(i=0; i<size; i++) array[i] = x3a->tbl[i].data; in State_arrayof()