Lines Matching refs:_nodes

3060 	TRexNode *_nodes;  member
3084 new_nodes = (TRexNode *)realloc(exp->_nodes, exp->_nallocated * sizeof(TRexNode)); in trex_newnode()
3087 exp->_nodes = new_nodes; in trex_newnode()
3089 exp->_nodes[exp->_nsize++] = n; in trex_newnode()
3125 exp->_nodes[n].left = classid; in trex_charclass()
3151 exp->_nodes[node].left = *exp->_p; in trex_charnode()
3185 …if(exp->_nodes[first].type == OP_CCLASS) trex_error(exp,_SC("cannot use character classes in range… in trex_class()
3186 exp->_nodes[r].left = exp->_nodes[first].type; in trex_class()
3188 exp->_nodes[r].right = t; in trex_class()
3189 exp->_nodes[chain].next = r; in trex_class()
3196 exp->_nodes[chain].next = c; in trex_class()
3207 exp->_nodes[chain].next = c; in trex_class()
3212 exp->_nodes[ret].left = exp->_nodes[ret].next; in trex_class()
3213 exp->_nodes[ret].next = -1; in trex_class()
3248 exp->_nodes[expr].left = newn; in trex_element()
3299 exp->_nodes[nnode].left = ret; in trex_element()
3300 exp->_nodes[nnode].right = ((p0)<<16)|p1; in trex_element()
3306 exp->_nodes[ret].next = nnode; in trex_element()
3321 exp->_nodes[ret].next = e; in trex_list()
3329 exp->_nodes[temp].left = ret; in trex_list()
3331 exp->_nodes[temp].right = tright; in trex_list()
3394 } while((node->next != -1) && (node = &exp->_nodes[node->next])); in trex_matchclass()
3410 greedystop = &exp->_nodes[node->next]; in trex_matchnode()
3419 if(!(s = trex_matchnode(exp,&exp->_nodes[node->left],s,greedystop))) in trex_matchnode()
3431 gnext = &exp->_nodes[greedystop->next]; in trex_matchnode()
3433 gnext = &exp->_nodes[next->next]; in trex_matchnode()
3455 TRexNode *temp=&exp->_nodes[node->left]; in trex_matchnode()
3458 temp = &exp->_nodes[temp->next]; in trex_matchnode()
3463 temp = &exp->_nodes[node->right]; in trex_matchnode()
3466 temp = &exp->_nodes[temp->next]; in trex_matchnode()
3475 TRexNode *n = &exp->_nodes[node->left]; in trex_matchnode()
3487 subnext = &exp->_nodes[n->next]; in trex_matchnode()
3498 } while((n->next != -1) && (n = &exp->_nodes[n->next])); in trex_matchnode()
3523 …if(trex_matchclass(exp,&exp->_nodes[node->left],*str)?(type == OP_CLASS?TRex_True:TRex_False):(typ… in trex_matchnode()
3564 exp->_nodes = (TRexNode *)malloc(exp->_nallocated * sizeof(TRexNode)); in trex_compile()
3565 if (!exp->_nodes) break; in trex_compile()
3576 exp->_nodes[exp->_first].left = res; in trex_compile()
3584 t = &exp->_nodes[0]; in trex_compile()
3587 if(exp->_nodes[i].type>MAX_CHAR) in trex_compile()
3588 scprintf(_SC("[%02d] %10s "),i,g_nnames[exp->_nodes[i].type-MAX_CHAR]); in trex_compile()
3590 scprintf(_SC("[%02d] %10c "),i,exp->_nodes[i].type); in trex_compile()
3591 …cprintf(_SC("left %02d right %02d next %02d\n"),exp->_nodes[i].left,exp->_nodes[i].right,exp->_nod… in trex_compile()
3613 if(exp->_nodes) free(exp->_nodes); in trex_free()
3626 res = trex_matchnode(exp,exp->_nodes,text,NULL); in trex_match()
3643 cur = trex_matchnode(exp,&exp->_nodes[node],cur,NULL); in trex_searchrange()
3646 node = exp->_nodes[node].next; in trex_searchrange()