1 /* SPDX-License-Identifier: GPL-2.0 */
5 #define EXPR_MAX_OTHER 15
6 #define MAX_PARSE_ID EXPR_MAX_OTHER
15 struct parse_id ids
[MAX_PARSE_ID
];
18 void expr__ctx_init(struct parse_ctx
*ctx
);
19 void expr__add_id(struct parse_ctx
*ctx
, const char *id
, double val
);
21 int expr__parse(double *final_val
, struct parse_ctx
*ctx
, const char **pp
);
23 int expr__find_other(const char *p
, const char *one
, const char ***other
,