mirror of
				https://github.com/eledio-devices/thirdparty-tinyexpr.git
				synced 2025-10-31 00:32:38 +01:00 
			
		
		
		
	Got optimize working. Added TE_FLAG_PURE.
This commit is contained in:
		
							
								
								
									
										10
									
								
								tinyexpr.h
									
									
									
									
									
								
							
							
						
						
									
										10
									
								
								tinyexpr.h
									
									
									
									
									
								
							| @@ -41,10 +41,14 @@ typedef struct te_expr { | ||||
|  | ||||
| enum { | ||||
|     TE_VARIABLE = 0, | ||||
|     TE_FUNCTION0 = 2, TE_FUNCTION1, TE_FUNCTION2, TE_FUNCTION3, | ||||
|  | ||||
|     TE_FUNCTION0 = 8, TE_FUNCTION1, TE_FUNCTION2, TE_FUNCTION3, | ||||
|     TE_FUNCTION4, TE_FUNCTION5, TE_FUNCTION6, TE_FUNCTION7, | ||||
|     TE_CLOSURE0, TE_CLOSURE1, TE_CLOSURE2, TE_CLOSURE3, | ||||
|     TE_CLOSURE4, TE_CLOSURE5, TE_CLOSURE6, TE_CLOSURE7 | ||||
|  | ||||
|     TE_CLOSURE0 = 16, TE_CLOSURE1, TE_CLOSURE2, TE_CLOSURE3, | ||||
|     TE_CLOSURE4, TE_CLOSURE5, TE_CLOSURE6, TE_CLOSURE7, | ||||
|  | ||||
|     TE_FLAG_PURE = 32 | ||||
| }; | ||||
|  | ||||
| typedef struct te_variable { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user