Merge branch 'master' of github.com:graphitemaster/gmqcc

This commit is contained in:
Dale Weiler 2013-06-17 20:12:02 +00:00
commit 7e76b42f11

View file

@ -1690,6 +1690,8 @@ static bool parser_close_paren(parser_t *parser, shunt *sy)
static void parser_reclassify_token(parser_t *parser) static void parser_reclassify_token(parser_t *parser)
{ {
size_t i; size_t i;
if (parser->tok >= TOKEN_START)
return;
for (i = 0; i < operator_count; ++i) { for (i = 0; i < operator_count; ++i) {
if (!strcmp(parser_tokval(parser), operators[i].op)) { if (!strcmp(parser_tokval(parser), operators[i].op)) {
parser->tok = TOKEN_OPERATOR; parser->tok = TOKEN_OPERATOR;