aboutsummaryrefslogtreecommitdiff
path: root/src/compile/structs.h
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2025-08-24 15:10:41 -0400
committerBruce Hill <bruce@bruce-hill.com>2025-08-24 15:10:41 -0400
commit634d1ad756fca46e1e8aec93a265998232dd58a6 (patch)
treebe05e440db02d4c76890026982aa6978f212f9bd /src/compile/structs.h
parente30c0f06d55cd7b27c5d012a96989920f586e4a1 (diff)
Move structs/enums into the right folder
Diffstat (limited to 'src/compile/structs.h')
-rw-r--r--src/compile/structs.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/compile/structs.h b/src/compile/structs.h
new file mode 100644
index 00000000..f24ed15a
--- /dev/null
+++ b/src/compile/structs.h
@@ -0,0 +1,12 @@
+#pragma once
+
+// Compilation of user-defined structs
+
+#include "../ast.h"
+#include "../environment.h"
+
+Text_t compile_struct_typeinfo(env_t *env, type_t *t, const char *name, arg_ast_t *fields, bool is_secret,
+ bool is_opaque);
+Text_t compile_struct_header(env_t *env, ast_t *ast);
+
+// vim: ts=4 sw=0 et cino=L2,l1,(0,W4,m1,\:0