Mercurial > octave
changeset 33104:4bf13433d79d
* oct-parse.yy (file): Eliminate code duplication.
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Wed, 28 Feb 2024 10:12:08 -0500 |
parents | f3eb27de36cf |
children | b0640dacc4ef 63cf01d7c543 |
files | libinterp/parse-tree/oct-parse.yy |
diffstat | 1 files changed, 3 insertions(+), 6 deletions(-) [+] |
line wrap: on
line diff
--- a/libinterp/parse-tree/oct-parse.yy Wed Feb 28 10:11:31 2024 -0500 +++ b/libinterp/parse-tree/oct-parse.yy Wed Feb 28 10:12:08 2024 -0500 @@ -1530,9 +1530,6 @@ lexer.m_symtab_context.pop (); delete $3; - - if (! parser.validate_primary_fcn ()) - YYABORT; } else { @@ -1541,11 +1538,11 @@ $4->beg_pos (), $4->end_pos ()); parser.make_script ($3, end_of_script); - - if (! parser.validate_primary_fcn ()) - YYABORT; } + if (! parser.validate_primary_fcn ()) + YYABORT; + $$ = nullptr; } | begin_file opt_nl classdef parsing_local_fcns opt_sep opt_fcn_list END_OF_INPUT