aboutsummaryrefslogtreecommitdiff
path: root/src/compile.h
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2025-08-09 15:16:27 -0400
committerBruce Hill <bruce@bruce-hill.com>2025-08-09 15:16:27 -0400
commit57154250c71aee7d7827afd3c608ba876f51206a (patch)
tree00a6e6b7a24107c7c95dde5405989c4b1b2c44a0 /src/compile.h
parentd1f967ffb4dc099a34f54434be10a58eb33b81f7 (diff)
Deprecate cords from the gc library in favor of dogfooding Text from the
Tomo standard library.
Diffstat (limited to 'src/compile.h')
-rw-r--r--src/compile.h25
1 files changed, 12 insertions, 13 deletions
diff --git a/src/compile.h b/src/compile.h
index f4452288..2e866cc2 100644
--- a/src/compile.h
+++ b/src/compile.h
@@ -2,24 +2,23 @@
// Compilation functions
-#include <gc/cord.h>
#include <gc.h>
#include <stdio.h>
#include "environment.h"
#include "stdlib/datatypes.h"
-CORD expr_as_text(CORD expr, type_t *t, CORD color);
-CORD compile_file(env_t *env, ast_t *ast);
-CORD compile_file_header(env_t *env, Path_t header_path, 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);
-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_type_header(env_t *env, Path_t header_path, ast_t *ast);
-CORD compile_statement_namespace_header(env_t *env, Path_t header_path, ast_t *ast);
-CORD compile_type_info(type_t *t);
-CORD compile_cli_arg_call(env_t *env, CORD fn_name, type_t *fn_type, const char *version);
+Text_t expr_as_text(Text_t expr, type_t *t, Text_t color);
+Text_t compile_file(env_t *env, ast_t *ast);
+Text_t compile_file_header(env_t *env, Path_t header_path, ast_t *ast);
+Text_t compile_declaration(type_t *t, Text_t name);
+Text_t compile_type(type_t *t);
+Text_t compile(env_t *env, ast_t *ast);
+Text_t compile_namespace_header(env_t *env, const char *ns_name, ast_t *block);
+Text_t compile_statement(env_t *env, ast_t *ast);
+Text_t compile_statement_type_header(env_t *env, Path_t header_path, ast_t *ast);
+Text_t compile_statement_namespace_header(env_t *env, Path_t header_path, ast_t *ast);
+Text_t compile_type_info(type_t *t);
+Text_t compile_cli_arg_call(env_t *env, Text_t fn_name, type_t *fn_type, const char *version);
// vim: ts=4 sw=0 et cino=L2,l1,(0,W4,m1,\:0