symbol_user_token_number_set (symbol_t *symbol,
int user_token_number, location_t location)
{
- assert (symbol->class == token_sym);
+ if (symbol->class != token_sym)
+ abort ();
if (symbol->user_token_number != USER_NUMBER_UNDEFINED
&& symbol->user_token_number != user_token_number)
/* symbol and symval combined are only one symbol */
nsyms--;
ntokens--;
- assert (ntokens == symbol->number || ntokens == symval->number);
+ if (ntokens != symbol->number && ntokens != symval->number)
+ abort ();
symbol->number = symval->number =
(symval->number < symbol->number) ? symval->number : symbol->number;
}
this->number = this->alias->number = 0;
else
{
- assert (this->alias->number != NUMBER_UNDEFINED);
+ if (this->alias->number == NUMBER_UNDEFINED)
+ abort ();
this->number = this->alias->number;
}
}
}
else /* this->class == token_sym */
{
- assert (this->number != NUMBER_UNDEFINED);
+ if (this->number == NUMBER_UNDEFINED)
+ abort ();
}
symbols[this->number] = this;