More efficient end of template bracket (>>) handling

This commit is contained in:
William S Fulton 2014-04-07 07:27:06 +01:00
commit 5feaa79176

View file

@ -549,9 +549,7 @@ static int look(Scanner *s) {
else if (c == '}') else if (c == '}')
return SWIG_TOKEN_RBRACE; return SWIG_TOKEN_RBRACE;
else if (c == '{') { else if (c == '{') {
/* Reset count to zero */ brackets_reset(s);
brackets_pop(s);
brackets_push(s);
return SWIG_TOKEN_LBRACE; return SWIG_TOKEN_LBRACE;
} }
else if (c == '=') else if (c == '=')