From 68e76238749fb238bf92e7dc8903fed15a86aa1b Mon Sep 17 00:00:00 2001 From: Florian Westphal Date: Fri, 8 Feb 2019 17:02:19 +0100 Subject: src: expr: add and use expr_name helper Currently callers use expr->ops->name, but follouwp patch will remove the ops pointer from struct expr. So add this helper and use it everywhere. Signed-off-by: Florian Westphal Acked-by: Pablo Neira Ayuso --- include/expression.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'include') diff --git a/include/expression.h b/include/expression.h index f018c958..8a4cf5b1 100644 --- a/include/expression.h +++ b/include/expression.h @@ -406,6 +406,8 @@ extern struct expr *symbol_expr_alloc(const struct location *loc, enum symbol_types type, struct scope *scope, const char *identifier); +const char *expr_name(const struct expr *e); + static inline void symbol_expr_set_type(struct expr *expr, const struct datatype *dtype) { -- cgit v1.2.3