~sircmpwn/harec

954733acb2335cd87744e765b5d265e44fa95cf8 — Sebastian 1 year, 28 days ago ba8d4ca
check: make resolve_const and resolve_decl static

Signed-off-by: Sebastian <sebastian@sebsite.pw>
2 files changed, 5 insertions(+), 5 deletions(-)

M include/check.h
M src/check.c
M include/check.h => include/check.h +0 -3
@@ 136,9 136,6 @@ void resolve_dimensions(struct context *ctx,
void resolve_type(struct context *ctx,
		struct incomplete_declaration *idecl);

void resolve_decl(struct context *ctx,
		struct incomplete_declaration *idecl);

void wrap_resolver(struct context *ctx,
	const struct scope_object *obj, resolvefn resolver);


M src/check.c => src/check.c +5 -2
@@ 171,6 171,9 @@ lower_implicit_cast(struct context *ctx,
	return cast;
}

static void resolve_decl(struct context *ctx,
	struct incomplete_declaration *idecl);

static void
check_expr_access(struct context *ctx,
	const struct ast_expression *aexpr,


@@ 3865,7 3868,7 @@ check_exported_type(struct context *ctx,
	}
}

void
static void
resolve_const(struct context *ctx, struct incomplete_declaration *idecl)
{
	const struct ast_global_decl *decl = &idecl->decl.constant;


@@ 4444,7 4447,7 @@ scan_decl(struct context *ctx, struct scope *imports, struct ast_decl *decl)
	}
}

void
static void
resolve_decl(struct context *ctx, struct incomplete_declaration *idecl)
{
	switch (idecl->type) {