From 7f4b635bcbe8debfe1b78eccb96643c33f41a59b Mon Sep 17 00:00:00 2001 From: Matthew Fernandez Date: Thu, 4 Aug 2022 18:59:13 -0700 Subject: [PATCH] expr: make 'exccopen', 'exccclose' static These are not used outside of their containing file, and making them private will enable some more impactful clean up. --- lib/expr/excc.c | 8 ++------ lib/expr/expr.h | 2 -- 2 files changed, 2 insertions(+), 8 deletions(-) diff --git a/lib/expr/excc.c b/lib/expr/excc.c index 7b872e311..b2c0a5766 100644 --- a/lib/expr/excc.c +++ b/lib/expr/excc.c @@ -636,9 +636,7 @@ global(Dt_t* table, void* object, void* handle) * open C program generator context */ -Excc_t* -exccopen(Expr_t* expr, Exccdisc_t* disc) -{ +static Excc_t *exccopen(Expr_t *expr, Exccdisc_t *disc) { Excc_t* cc; char* id; @@ -666,9 +664,7 @@ exccopen(Expr_t* expr, Exccdisc_t* disc) * close C program generator context */ -int -exccclose(Excc_t* cc) -{ +static int exccclose(Excc_t *cc) { int r = 0; if (!cc) diff --git a/lib/expr/expr.h b/lib/expr/expr.h index 9c4e91233..6268f0042 100644 --- a/lib/expr/expr.h +++ b/lib/expr/expr.h @@ -265,8 +265,6 @@ struct Excc_s /* excc() state */ extern Exnode_t* excast(Expr_t*, Exnode_t*, int, Exnode_t*, int); extern Exnode_t* exnoncast(Exnode_t *); -extern int exccclose(Excc_t*); -extern Excc_t* exccopen(Expr_t*, Exccdisc_t*); extern void exclose(Expr_t*, int); extern int excomp(Expr_t*, const char*, int, const char*, Sfio_t*); extern char* excontext(Expr_t*, char*, int); -- 2.40.0