WSL/SLF GitLab Repository

Commit 38d07713 authored by Michael Reisecker's avatar Michael Reisecker
Browse files

Update tinyexpr external library

parent 4597fb74
/*
* TINYEXPR - Tiny recursive descent parser and evaluation engine in C
*
* Copyright (c) 2015-2018 Lewis Van Winkle
* Copyright (c) 2015-2020 Lewis Van Winkle
*
* http://CodePlea.com
*
......@@ -418,7 +418,6 @@ static te_expr *factor(state *s) {
te_expr *ret = power(s);
int neg = 0;
te_expr *insertion = 0;
if (ret->type == (TE_FUNCTION1 | TE_FLAG_PURE) && ret->function == negate) {
te_expr *se = ret->parameters[0];
......@@ -427,6 +426,8 @@ static te_expr *factor(state *s) {
neg = 1;
}
te_expr *insertion = 0;
while (s->type == TOK_INFIX && (s->function == pow)) {
te_fun2 t = s->function;
next_token(s);
......
/*
* TINYEXPR - Tiny recursive descent parser and evaluation engine in C
*
* Copyright (c) 2015-2018 Lewis Van Winkle
* Copyright (c) 2015-2020 Lewis Van Winkle
*
* http://CodePlea.com
*
......@@ -22,8 +22,8 @@
* 3. This notice may not be removed or altered from any source distribution.
*/
#ifndef __TINYEXPR_H__
#define __TINYEXPR_H__
#ifndef TINYEXPR_H
#define TINYEXPR_H
#ifdef __cplusplus
......@@ -83,4 +83,4 @@ void te_free(te_expr *n);
}
#endif
#endif /*__TINYEXPR_H__*/
#endif /*TINYEXPR_H*/
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment