aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorLuc Van Oostenryck <luc.vanoostenryck@gmail.com>2018-01-20 15:20:10 +0100
committerLuc Van Oostenryck <luc.vanoostenryck@gmail.com>2020-12-29 14:39:38 +0100
commita9444f64ed60b14b0cb379091be0e5e05d3fffa8 (patch)
tree9f092726322f8b9c33352ac8af537013d17bbe14
parentbb584698495ee1ed2a9e4184a055f63cdbd5e614 (diff)
downloadsparse-a9444f64ed60b14b0cb379091be0e5e05d3fffa8.tar.gz
apply_ctype: move up its declaration
apply_ctype() will be needed earlier in the code. So, move it's prototype up. Signed-off-by: Luc Van Oostenryck <luc.vanoostenryck@gmail.com>
-rw-r--r--parse.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/parse.c b/parse.c
index f106444f..d6343f0e 100644
--- a/parse.c
+++ b/parse.c
@@ -669,6 +669,8 @@ struct statement *alloc_statement(struct position pos, int type)
static struct token *struct_declaration_list(struct token *token, struct symbol_list **list);
+static void apply_ctype(struct position pos, struct ctype *dst, struct ctype *src);
+
static void apply_modifiers(struct position pos, struct decl_state *ctx)
{
struct symbol *ctype;
@@ -1043,8 +1045,6 @@ static struct token *enum_specifier(struct token *token, struct symbol *sym, str
return ret;
}
-static void apply_ctype(struct position pos, struct ctype *dst, struct ctype *src);
-
static struct token *typeof_specifier(struct token *token, struct symbol *sym, struct decl_state *ctx)
{