mirror of
				https://github.com/eledio-devices/thirdparty-tinyexpr.git
				synced 2025-10-31 00:32:38 +01:00 
			
		
		
		
	Changed variable names.
This commit is contained in:
		| @@ -350,11 +350,11 @@ static void optimize(te_expr *n) { | |||||||
| } | } | ||||||
|  |  | ||||||
|  |  | ||||||
| te_expr *te_compile(const char *expression, const te_variable *lookup, int lookup_len, int *error) { | te_expr *te_compile(const char *expression, const te_variable *variables, int var_count, int *error) { | ||||||
|     state s; |     state s; | ||||||
|     s.start = s.next = expression; |     s.start = s.next = expression; | ||||||
|     s.lookup = lookup; |     s.lookup = variables; | ||||||
|     s.lookup_len = lookup_len; |     s.lookup_len = var_count; | ||||||
|  |  | ||||||
|     next_token(&s); |     next_token(&s); | ||||||
|     te_expr *root = expr(&s); |     te_expr *root = expr(&s); | ||||||
|   | |||||||
| @@ -55,7 +55,7 @@ double te_interp(const char *expression, int *error); | |||||||
|  |  | ||||||
| /* Parses the input expression and binds variables. */ | /* Parses the input expression and binds variables. */ | ||||||
| /* Returns NULL on error. */ | /* Returns NULL on error. */ | ||||||
| te_expr *te_compile(const char *expression, const te_variable *lookup, int lookup_len, int *error); | te_expr *te_compile(const char *expression, const te_variable *variables, int var_count, int *error); | ||||||
|  |  | ||||||
| /* Evaluates the expression. */ | /* Evaluates the expression. */ | ||||||
| double te_eval(const te_expr *n); | double te_eval(const te_expr *n); | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user