summaryrefslogtreecommitdiff
path: root/math/fityk/files/patch-fityk__eparser.cpp
blob: 6a07e37aed839860860cbe87e1a5b6b995dbba6d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
--- fityk/eparser.cpp.orig	2015-05-25 17:42:29 UTC
+++ fityk/eparser.cpp
@@ -154,7 +154,7 @@ int get_function_narg(int op)
     }
 }
 
-bool is_function(int op)
+bool my_is_funcion(int op)
 {
     return get_function_narg(op) != 0;
 }
@@ -878,7 +878,7 @@ void ExpressionParser::parse_expr(Lexer&
                 // check if this is closing bracket of func()
                 if (!opstack_.empty()) {
                     int top = opstack_.back();
-                    if (is_function(top)) {
+                    if (my_is_funcion(top)) {
                         pop_onto_que();
                         int n = opstack_.back() + 1;
                         opstack_.pop_back();
@@ -911,7 +911,7 @@ void ExpressionParser::parse_expr(Lexer&
                     lex.throw_syntax_error("unexpected ',' after '?'");
                 // if we are here, opstack_.back() == OP_OPEN_ROUND
                 else if (opstack_.size() < 3 ||
-                         !is_function(*(opstack_.end() - 2)))
+                         !my_is_funcion(*(opstack_.end() - 2)))
                     lex.throw_syntax_error("',' outside of function");
                 else
                     // don't pop OP_OPEN_ROUND from the stack