(svn r12420) -Cleanup: Fix the indentation, improve a variable name, and add a NOT_REACHED to DeterminePluralForm.

This commit is contained in:
maedhros 2008-03-25 19:56:16 +00:00
parent 82eebc20c0
commit 97fb7fb8d9

View File

@ -400,19 +400,20 @@ static char *FormatGenericCurrency(char *buff, const CurrencySpec *spec, Money n
return buff;
}
static int DeterminePluralForm(int64 cnt)
static int DeterminePluralForm(int64 count)
{
uint64 n = cnt;
/* The absolute value determines plurality */
if (cnt < 0) n = -cnt;
uint64 n = abs(count);
switch (_langpack->plural_form) {
default:
NOT_REACHED();
/* Two forms, singular used for one only
* Used in:
* Danish, Dutch, English, German, Norwegian, Swedish, Estonian, Finnish,
* Greek, Hebrew, Italian, Portuguese, Spanish, Esperanto */
case 0:
default:
return n != 1;
/* Only one form