summaryrefslogtreecommitdiff
path: root/lib/parser.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/parser.c')
-rw-r--r--lib/parser.c9
1 files changed, 3 insertions, 6 deletions
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();
}