![]() |
Ansel 0.0
A darktable fork - bloat + design vision
|
Go to the source code of this file.
Functions | |
float | dt_calculator_solve (const float x, const char *formula) |
float dt_calculator_solve | ( | const float | x, |
const char * | formula | ||
) |
solve the mathematical expression in formula, the only allowed variable is 'x'
the public interface
References token_t::data, get_token(), O_DEC, O_INC, token_data_t::operator, parser_state_t::p, parse_expression(), T_OPERATOR, parser_state_t::token, token_t::type, and parser_state_t::x.
Referenced by _sanitize_confgen(), dt_bauhaus_popup_key_press(), dt_conf_get_float_fast(), dt_conf_get_int64_fast(), dt_conf_get_int_fast(), dt_confgen_get_float(), dt_confgen_get_int(), and dt_confgen_get_int64().