link-grammar-5.8.0/link-grammar/parse/count.c
/**
 *  Clamp the given count to INT_MAX.
 *  The returned value is normally unused by the callers
 *  (to be used when debugging overflows).
 */
Clamp the given count to INT_MAX.
The returned value is normally unused by the callers
(to be used when debugging overflows).
Clamp the given count to INT_MAX . The returned value is normally unused by the callers ( to be used when debugging overflows ) .
static bool parse_count_clamp(Count_bin *total)
{
	if (INT_MAX < hist_total(total))
	{
#ifdef PERFORM_COUNT_HISTOGRAMMING
		total->total = INT_MAX;
#else
		*total = INT_MAX;
#endif 
		return true;
	}
	return false;
}
static bool parse_count_clamp ( Count_bin * total ) { if ( INT_MAX < hist_total ( total ) ) { #ifdef PERFORM_COUNT_HISTOGRAMMING total -> total = INT_MAX ; #else * total = INT_MAX ; #endif return true ; } return false ; }
Clamp the given count to INT_MAX.
Clamp the given count to INT_MAX .
/*  Sigh. Overflows can and do occur, esp for the ANY language. */ /* PERFORM_COUNT_HISTOGRAMMING */