Create or destroy expressions.
More...
Create or destroy expressions.
- Since
- version
1.0.0
Blank expressions can be created with expression_alloc(). Any expression created via expression_alloc() can be destroyed with expression_free(). An expression can be copied with expression_copy().
It is also possible to directly create constant expressions from:
- Warning
- It is strongly advised not to use expression_init() and expression_clean() unless you know what you are doing!
Allocate and initialize an expression.
- Since
- version
1.0.0
- Returns
- A pointer to the newly allocated expression.
- Note
- It is not needed to initialize the resulting expression using expression_init().
Clean an expression.
- Since
- version
1.0.0
- Parameters
-
| e | A pointer to the expression to clean. |
- Note
- This function is already called by expression_free().
Copy an expression.
- Since
- version
1.0.0
- Parameters
-
| e | A pointer to the expression to copy. |
- Returns
- A pointer to the copy.
Free an expression.
- Since
- version
1.0.0
- Parameters
-
| e | A pointer to the expression to free. |
| expression * expression_from_boolean |
( |
bool |
boolean | ) |
|
|
related |
Create an expression from a boolean.
- Since
- version
1.0.0
- Parameters
-
- Returns
- The resulting expression.
| expression * expression_from_identifier |
( |
const char * |
identifier | ) |
|
|
related |
Create an expression from an identifier.
- Since
- version
1.0.0
- Parameters
-
| identifier | Input identifier. |
- Returns
- The resulting expression.
| expression * expression_from_number |
( |
long int |
number | ) |
|
|
related |
Create an expression from a number.
- Since
- version
1.0.0
- Parameters
-
- Returns
- The resulting expression.
Initialize an expression.
- Since
- version
1.0.0
- Parameters
-
| e | A pointer to the expression to initialize. |
- Note
- This function is already called by expression_alloc().