From b21dcaa349be79feb1b05ce44ca5a5e9572a0fe5 Mon Sep 17 00:00:00 2001 From: Matthew Fernandez Date: Tue, 3 Jan 2023 20:18:02 -0800 Subject: [PATCH] expr exccopen: remove shadowing of 'expr' global --- lib/expr/excc.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/expr/excc.c b/lib/expr/excc.c index 006bdf59d..c12ff1053 100644 --- a/lib/expr/excc.c +++ b/lib/expr/excc.c @@ -648,7 +648,7 @@ global(Dt_t* table, void* object, void* handle) * open C program generator context */ -static Excc_t *exccopen(Expr_t *expr, Exccdisc_t *disc) { +static Excc_t *exccopen(Expr_t *ex, Exccdisc_t *disc) { Excc_t* cc; char* id; @@ -656,8 +656,8 @@ static Excc_t *exccopen(Expr_t *expr, Exccdisc_t *disc) { id = ""; if (!(cc = newof(0, Excc_t, 1, strlen(id) + 2))) return 0; - cc->expr = expr; - cc->disc = expr->disc; + cc->expr = ex; + cc->disc = ex->disc; cc->id = (char*)(cc + 1); cc->ccdisc = disc; if (!(disc->flags & EX_CC_DUMP)) @@ -667,7 +667,7 @@ static Excc_t *exccopen(Expr_t *expr, Exccdisc_t *disc) { if (*id) snprintf(cc->id, strlen(id) + 2, "%s_", id); agxbputc(disc->text, '\n'); - dtwalk(expr->symbols, global, disc->text); + dtwalk(ex->symbols, global, disc->text); } return cc; } -- 2.50.1