changeset 3939:3dd8d3dc28d4

[project @ 2002-05-16 16:34:20 by jwe]
author jwe
date Thu, 16 May 2002 16:34:20 +0000
parents 028eb74026bc
children 1b58576bdaa6
files src/ChangeLog src/parse.y
diffstat 2 files changed, 5 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,5 +1,8 @@
 2002-05-16  John W. Eaton  <jwe@bevo.che.wisc.edu>
 
+	* parse.y (function_end): Also accept end of input as end of
+	function if input is coming from an eval string.
+
 	* pr-output.cc (pr_any_float): Don't convert -0 to 0.
 
 2002-05-15  John W. Eaton  <jwe@bevo.che.wisc.edu>
--- a/src/parse.y
+++ b/src/parse.y
@@ -1251,7 +1251,8 @@
 		  }
 		| END_OF_INPUT
 		  {
-		    if (! (reading_fcn_file || reading_script_file))
+		    if (! (reading_fcn_file || reading_script_file
+			   || get_input_from_eval_string))
 		      YYABORT;
 		  }
 		;