From 064a422245f2ef4e881f50350dbbf686283ae310 Mon Sep 17 00:00:00 2001 From: Pixel Date: Wed, 2 May 2001 00:18:08 +0000 Subject: Pouet --- lib/parser.c | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'lib/parser.c') diff --git a/lib/parser.c b/lib/parser.c index 1e7347e..ef3f0e9 100644 --- a/lib/parser.c +++ b/lib/parser.c @@ -175,8 +175,7 @@ static char *getword(char *line, char *p) } line++; } - while (((*line) && (*line != ')') - && (*line != ';') && (get_func(*line) == -1) + while (((*line) && (*line != ')') && (*line != ';') && (get_func(*line) == -1) && (get_func(o) == -1)) || (instring)); *p = '\0'; return line; @@ -233,9 +232,8 @@ void parse_line(char *line) exception(1, _("Parse error: too much left parenthesis")); act_pile(get_func(op)); } - popcontext(); - popcontext(); - return; + move_to_resultat_pile(); + break; case ')': /* Fin de parenthese (Appel de fonction ou expression mathématique) */ while (1) { @@ -273,5 +271,4 @@ void parse_line(char *line) popcontext(); } popcontext(); - move_to_resultat_pile(); } -- cgit v1.2.3