diff options
Diffstat (limited to 'bootstrap')
| -rw-r--r-- | bootstrap/apichk.c | 6 | ||||
| -rw-r--r-- | bootstrap/funccall.c | 6 | ||||
| -rw-r--r-- | bootstrap/main.c | 2 | ||||
| -rw-r--r-- | bootstrap/typechk.c | 2 |
4 files changed, 8 insertions, 8 deletions
diff --git a/bootstrap/apichk.c b/bootstrap/apichk.c index 12c20f7..c3180e2 100644 --- a/bootstrap/apichk.c +++ b/bootstrap/apichk.c @@ -248,9 +248,9 @@ static void feed_varlist(blake2s_state *state, const struct Var *vars, static void compute_api_hash(struct VersionDecl *ver) { blake2s_state state; - struct Type *t; - struct Func *f; - struct VarInVersion *v; + const struct Type *t; + const struct Func *f; + const struct VarInVersion *v; blake2s_init(&state, 32); feed_string(&state, "SLUL API definition to be hashed", 32); diff --git a/bootstrap/funccall.c b/bootstrap/funccall.c index 1302816..8a488c4 100644 --- a/bootstrap/funccall.c +++ b/bootstrap/funccall.c @@ -9,10 +9,10 @@ #include "compiler.h" #include "semchk.h" -static void check_args(struct ExprCall *call, struct Func *func) +static void check_args(const struct ExprCall *call, const struct Func *func) { - struct CallArg *arg; - struct Var *param; + const struct CallArg *arg; + const struct Var *param; arg = call->args; param = func->params; diff --git a/bootstrap/main.c b/bootstrap/main.c index b2a5deb..2fe02bf 100644 --- a/bootstrap/main.c +++ b/bootstrap/main.c @@ -167,7 +167,7 @@ static void parse_core_interface(void) static void parse_dependency_interfaces(void) { char filename[50+5+1]; /* "<modulename>.slul\0" */ - struct DependencyInfo *dep; + const struct DependencyInfo *dep; for (dep = dependencies_list; dep; dep = dep->next) { size_t namelen = dep->node.length; diff --git a/bootstrap/typechk.c b/bootstrap/typechk.c index bc886f0..d3becdf 100644 --- a/bootstrap/typechk.c +++ b/bootstrap/typechk.c @@ -31,7 +31,7 @@ struct IdMapEntry { }; -static int max_subexpr_id(struct Expr *expr) +static int max_subexpr_id(const struct Expr *expr) { int max = -1; for (; expr != NULL; expr = expr->rpnnext) { |
