link-grammar-5.8.0/link-grammar/parse/prune.c
/**
 * Count null words and mark their location.
 * Optional words are not checked, as they cannot contribute to the null
 * word count.
 *
 * If word w is a new null word, mark its location in pc->is_null_word and
 * increment pc->null_word.
 * @return \c true iff a new null word increases the count to be over the
 * requested maximum pc->null_links.
 */
Count null words and mark their location.
Optional words are not checked, as they cannot contribute to the null
word count.

If word w is a new null word, mark its location in pc->is_null_word and
increment pc->null_word.
@return \c true iff a new null word increases the count to be over the
requested maximum pc->null_links.
Count null words and mark their location . Optional words are not checked as they cannot contribute to the null word count . If word w is a new null word mark its location in pc - > is_null_word and increment pc - > null_word . @return \ c true iff a new null word increases the count to be over the requested maximum pc - > null_links .
static bool check_null_word(prune_context *pc, int w)
{
	if (pc->always_parse) return false;
	Word *word = &pc->sent->word[w];
	if ((word->d == NULL) && !word->optional && !pc->is_null_word[w])
	{
		pc->null_words++;
		pc->is_null_word[w] = true;
		if (pc->null_words > pc->null_links) return true;
	}
	return false;
}
static bool check_null_word ( prune_context * pc , int w ) { if ( pc -> always_parse ) return false ; Word * word = & pc -> sent -> word [ w ] ; if ( ( word -> d == NULL ) && ! word -> optional && ! pc -> is_null_word [ w ] ) { pc -> null_words ++ ; pc -> is_null_word [ w ] = true ; if ( pc -> null_words > pc -> null_links ) return true ; } return false ; }
Count null words and mark their location.
Count null words and mark their location .