Mercurial > octave-dspies
diff src/parse.y @ 3765:e10451597802
[project @ 2001-01-17 18:41:29 by jwe]
author | jwe |
---|---|
date | Wed, 17 Jan 2001 18:41:30 +0000 |
parents | b7d997d593d9 |
children | 4f1a26a730fd |
line wrap: on
line diff
--- a/src/parse.y Wed Jan 17 03:41:39 2001 +0000 +++ b/src/parse.y Wed Jan 17 18:41:30 2001 +0000 @@ -2786,6 +2786,13 @@ static void safe_fclose (void *f) { + // XXX FIXME XXX -- comments at the end of an input file are + // discarded (otherwise, they would be appended to the next + // statement, possibly from the command line or another file, which + // can be quite confusing). + + octave_comment_buffer::get_comment (); + if (f) fclose (static_cast<FILE *> (f)); }