commit 9cab79aaa7dc457cd5fc9af7bcde33c1c3430d9f
parent d5d992c355e13cde1a2306d9902561c9e0d7d39a
Author: Sebastian <sebastian@sebsite.pw>
Date: Thu, 5 Jan 2023 17:59:51 -0500
eval: make functions static
Signed-off-by: Sebastian <sebastian@sebsite.pw>
Diffstat:
1 file changed, 8 insertions(+), 8 deletions(-)
diff --git a/src/eval.c b/src/eval.c
@@ -162,7 +162,7 @@ ftrunc(const struct type *type, double val)
return val;
}
-enum eval_result
+static enum eval_result
eval_binarithm(struct context *ctx, struct expression *in, struct expression *out)
{
struct expression lvalue = {0}, rvalue = {0};
@@ -363,7 +363,7 @@ eval_binarithm(struct context *ctx, struct expression *in, struct expression *ou
return EVAL_OK;
}
-enum eval_result
+static enum eval_result
eval_const(struct context *ctx, struct expression *in, struct expression *out)
{
enum type_storage storage = type_dealias(out->result)->storage;
@@ -459,7 +459,7 @@ eval_expand_array(struct context *ctx,
}
}
-enum eval_result
+static enum eval_result
eval_type_assertion(struct context *ctx, struct expression *in,
struct expression *out)
{
@@ -480,7 +480,7 @@ eval_type_assertion(struct context *ctx, struct expression *in,
}
}
-enum eval_result
+static enum eval_result
eval_type_test(struct context *ctx, struct expression *in,
struct expression *out)
{
@@ -498,7 +498,7 @@ eval_type_test(struct context *ctx, struct expression *in,
return EVAL_OK;
}
-enum eval_result
+static enum eval_result
eval_cast(struct context *ctx, struct expression *in, struct expression *out)
{
struct expression val = {0};
@@ -612,7 +612,7 @@ eval_cast(struct context *ctx, struct expression *in, struct expression *out)
assert(0); // Unreachable
}
-enum eval_result
+static enum eval_result
eval_measurement(struct context *ctx, struct expression *in, struct expression *out)
{
assert(in->type == EXPR_MEASURE);
@@ -747,7 +747,7 @@ count_struct_fields(const struct type *type)
return n;
}
-void
+static void
autofill_struct(struct context *ctx, const struct type *type, struct struct_constant **fields)
{
assert(type->storage == STORAGE_STRUCT || type->storage == STORAGE_UNION);
@@ -776,7 +776,7 @@ autofill_struct(struct context *ctx, const struct type *type, struct struct_cons
}
}
-enum eval_result
+static enum eval_result
eval_struct(struct context *ctx, struct expression *in, struct expression *out)
{
assert(in->type == EXPR_STRUCT);