aboutsummaryrefslogtreecommitdiff
path: root/compile.h
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2024-09-17 16:20:30 -0400
committerBruce Hill <bruce@bruce-hill.com>2024-09-17 16:20:30 -0400
commit03a7d5f44dfd8c455706b2c5c23217fd140f18c2 (patch)
tree55cca3cb1c1772af5a74a5b779bb22580d449c9b /compile.h
parentaaa51fc734dde35ab8109bad04e478cdf4fff950 (diff)
Overhaul of header logic so it now uses topological ordering and
deduplication for libraries with multiple files.
Diffstat (limited to 'compile.h')
-rw-r--r--compile.h7
1 files changed, 3 insertions, 4 deletions
diff --git a/compile.h b/compile.h
index d53262da..37ed3f45 100644
--- a/compile.h
+++ b/compile.h
@@ -10,16 +10,15 @@
#include "environment.h"
CORD expr_as_text(env_t *env, CORD expr, type_t *t, CORD color);
-CORD compile_header(env_t *env, ast_t *ast);
CORD compile_file(env_t *env, ast_t *ast);
+CORD compile_file_header(env_t *env, ast_t *ast);
CORD compile_declaration(type_t *t, const char *name);
CORD compile_type(type_t *t);
CORD compile(env_t *env, ast_t *ast);
void compile_namespace(env_t *env, const char *ns_name, ast_t *block);
-CORD compile_namespace_definitions(env_t *env, const char *ns_name, ast_t *block);
+CORD compile_namespace_header(env_t *env, const char *ns_name, ast_t *block);
CORD compile_statement(env_t *env, ast_t *ast);
-CORD compile_statement_typedefs(env_t *env, ast_t *ast);
-CORD compile_statement_definitions(env_t *env, ast_t *ast);
+CORD compile_statement_header(env_t *env, ast_t *ast);
CORD compile_type_info(env_t *env, type_t *t);
CORD compile_cli_arg_call(env_t *env, CORD fn_name, type_t *fn_type);