Next: , Previous: , Up: Functions   [Index]


3.22.3.21 x1f4_rule_expression

extern int x1f4_rule_expression
    (void *expression, unsigned bits,
     const struct x1f4_maginine_type *maginine);

The x1f4_rule_expression function performs various expression optimizations on expression. The second and third arguments are not yet used, and for forward compatibility they should be 0 and not NULL, respectively.

See Optimizing Expressions.

It returns 0 for success, non zero otherwise.

If the function fails for whatever reason the expression parsed representation is still valid, hence ignoring the result is safe. Nonetheless, the expression parsed representation may be changed by the x1f4_rule_expression execution, even when function fails to complete successfully.

The expresion evaluation stack memory requirements may be changed as a result of expression optimizations, though the new requirements should always be smaller than the former ones.

See Managing Stacks.

See x1f4_line_expression.