diff options
| author | Luc Van Oostenryck <luc.vanoostenryck@gmail.com> | 2017-12-07 10:57:02 +0100 |
|---|---|---|
| committer | Luc Van Oostenryck <luc.vanoostenryck@gmail.com> | 2018-01-07 16:09:53 +0100 |
| commit | 58a12b842938b41cd237ac5c973ce6d9d66e1121 (patch) | |
| tree | 30c7312e1bc4a19146251f45d7bd60a1ceca50b0 /inline.c | |
| parent | e742c98f83d488780a5df62a2cffe2ee1b1969c6 (diff) | |
| download | sparse-dev-58a12b842938b41cd237ac5c973ce6d9d66e1121.tar.gz | |
cleanup: make some functions static
These functions are clearly meant to be used locally.
Furthermore, some have no prototypes.
Make these functions static and remove the prototype
when one was present.
Signed-off-by: Luc Van Oostenryck <luc.vanoostenryck@gmail.com>
Diffstat (limited to 'inline.c')
| -rw-r--r-- | inline.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -33,6 +33,8 @@ #include "symbol.h" #include "expression.h" +static void copy_statement(struct statement *src, struct statement *dst); + static struct expression * dup_expression(struct expression *expr) { struct expression *dup = alloc_expression(expr->pos, expr->type); @@ -463,7 +465,7 @@ static struct statement *copy_one_statement(struct statement *stmt) * This doesn't do the symbol replacement right: it's not * re-entrant. */ -void copy_statement(struct statement *src, struct statement *dst) +static void copy_statement(struct statement *src, struct statement *dst) { struct statement *stmt; |
