Mercurial > octave
changeset 28773:9cd5d348d36c stable
use xunput consistently in lexer
* lex.ll: Always use base_lexer::xunput; avoid calling unput directly.
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Tue, 22 Sep 2020 09:37:35 -0400 |
parents | 20b4bd415083 |
children | d2ad5e0e5aca 2893db10b8d2 0d6795d0373d |
files | libinterp/parse-tree/lex.ll |
diffstat | 1 files changed, 4 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/libinterp/parse-tree/lex.ll Tue Sep 22 09:29:36 2020 -0400 +++ b/libinterp/parse-tree/lex.ll Tue Sep 22 09:37:35 2020 -0400 @@ -264,7 +264,7 @@ || curr_lexer->previous_token_is_binop ())) \ { \ yyless (0); \ - unput (','); \ + curr_lexer->xunput (','); \ } \ else \ { \ @@ -1228,7 +1228,7 @@ || curr_lexer->previous_token_is_binop ())) { yyless (0); - unput (','); + curr_lexer->xunput (','); } else { @@ -1263,7 +1263,7 @@ || curr_lexer->previous_token_is_binop ())) { yyless (0); - unput (','); + curr_lexer->xunput (','); } else { @@ -1428,7 +1428,7 @@ || curr_lexer->previous_token_is_binop ())) { yyless (0); - unput (','); + curr_lexer->xunput (','); } else {