link-grammar-5.8.0/link-grammar/parse/fast-match.c
/**
 * Push a match-list element into the match-list array.
 */
Push a match-list element into the match-list array.
Push a match - list element into the match - list array .
static void push_match_list_element(fast_matcher_t *ctxt, Disjunct *d)
{
	if (ctxt->match_list_end >= ctxt->match_list_size)
	{
		ctxt->match_list_size *= MATCH_LIST_SIZE_INC;
		ctxt->match_list = realloc(ctxt->match_list,
		                      ctxt->match_list_size * sizeof(*ctxt->match_list));
	}
	ctxt->match_list[ctxt->match_list_end++] = d;
}
static void push_match_list_element ( fast_matcher_t * ctxt , Disjunct * d ) { if ( ctxt -> match_list_end >= ctxt -> match_list_size ) { ctxt -> match_list_size *= MATCH_LIST_SIZE_INC ; ctxt -> match_list = realloc ( ctxt -> match_list , ctxt -> match_list_size * sizeof ( * ctxt -> match_list ) ) ; } ctxt -> match_list [ ctxt -> match_list_end ++ ] = d ; }
Push a match-list element into the match-list array.
Push a match - list element into the match - list array .
/* XXX the realloc clobbers xalloc count */