Angband
z-expression.h
Go to the documentation of this file.
1 
19 #ifndef INCLUDED_Z_EXPRESSION_H
20 #define INCLUDED_Z_EXPRESSION_H
21 
22 #include "h-basic.h"
23 
30 };
31 
33 typedef struct expression_s expression_t;
35 
37 void expression_free(expression_t *expression);
40  expression_base_value_f function);
41 s32b expression_evaluate(expression_t const * const expression);
43  const char *string);
44 bool expression_test_copy(const expression_t *a, const expression_t *b);
45 
46 #endif /* INCLUDED_Z_EXPRESSION_H */
expression_err_e
Definition: z-expression.h:24
typedef void(PNGAPI *png_error_ptr) PNGARG((png_structp
Definition: z-expression.h:27
Definition: z-expression.c:28
void expression_set_base_value(expression_t *expression, expression_base_value_f function)
Set the base value function that the operations operate on.
Definition: z-expression.c:206
Definition: z-expression.h:26
Definition: z-expression.c:23
void expression_free(expression_t *expression)
Deallocate an expression object.
Definition: z-expression.c:154
The lowest level header.
expression_t * expression_new(void)
Allocate and initialize a new expression object.
Definition: z-expression.c:130
s32b(* expression_base_value_f)(void)
Definition: z-expression.h:34
s32b expression_evaluate(expression_t const *const expression)
Evaluate the given expression.
Definition: z-expression.c:216
int16_t s16b
Definition: h-basic.h:170
Definition: z-expression.h:29
s16b expression_add_operations_string(expression_t *expression, const char *string)
Parse a string and add operations and operands to an expression.
Definition: z-expression.c:280
Definition: z-expression.h:25
Definition: z-expression.h:28
expression_t * expression_copy(const expression_t *source)
Return a deep copy of the given expression.
Definition: z-expression.c:170
int32_t s32b
Definition: h-basic.h:173
bool expression_test_copy(const expression_t *a, const expression_t *b)
Test to make sure that the deep copy from expression_copy() is equal in value.
Definition: z-expression.c:391
Definition: source.h:7