link-grammar-5.8.0/link-grammar/parse/count.c
/* sent_length is used only as a hint for the hash table size ... */
sent_length is used only as a hint for the hash table size
sent_length is used only as a hint for the hash table size
count_context_t * alloc_count_context(Sentence sent)
{
	count_context_t *ctxt = (count_context_t *) xalloc (sizeof(count_context_t));
	memset(ctxt, 0, sizeof(count_context_t));
	ctxt->sent = sent;
	if (NULL != sent->Table_connector_pool)
	{
		pool_reuse(sent->Table_connector_pool);
	}
	else
	{
		sent->Table_connector_pool =
			pool_new(__func__, "Table_connector",
			         10240, sizeof(Table_connector),
			         false, false, false);
	}
	init_table(ctxt, sent->length);
	return ctxt;
}
count_context_t * alloc_count_context ( Sentence sent ) { count_context_t * ctxt = ( count_context_t * ) xalloc ( sizeof ( count_context_t ) ) ; memset ( ctxt , 0 , sizeof ( count_context_t ) ) ; ctxt -> sent = sent ; if ( NULL != sent -> Table_connector_pool ) { pool_reuse ( sent -> Table_connector_pool ) ; } else { sent -> Table_connector_pool = pool_new ( __func__ , " " , 10240 , sizeof ( Table_connector ) , false , false , false ) ; } init_table ( ctxt , sent -> length ) ; return ctxt ; }
sent_length is used only as a hint for the hash table size ...
sent_length is used only as a hint for the hash table size ...
/* consecutive blocks of this many words are considered as
	 * one null link. */ /* ctxt->null_block = 1; */ /*num_elements*/ /*zero_out*/ /*align*/ /*exact*/