aboutsummaryrefslogtreecommitdiff
path: root/src/codegen.hpp
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2019-04-21 17:24:58 -0400
committerAndrew Kelley <andrew@ziglang.org>2019-04-25 00:06:54 -0400
commit976080462cf62f6f112d38176b99e5bb8a57bf37 (patch)
tree0172c0811fc360f49e3c0eeacbd58ece78a30764 /src/codegen.hpp
parent56e07622c692f70eb10836b86c5fda02c53e2394 (diff)
downloadzig-976080462cf62f6f112d38176b99e5bb8a57bf37.tar.gz
zig-976080462cf62f6f112d38176b99e5bb8a57bf37.zip
translate-c: a little closer to self-hosted implementation
Diffstat (limited to 'src/codegen.hpp')
-rw-r--r--src/codegen.hpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/codegen.hpp b/src/codegen.hpp
index d6149bf5d2..88c7353cad 100644
--- a/src/codegen.hpp
+++ b/src/codegen.hpp
@@ -12,6 +12,7 @@
#include "errmsg.hpp"
#include "target.hpp"
#include "libc_installation.hpp"
+#include "userland.h"
#include <stdio.h>
@@ -50,7 +51,7 @@ ZigPackage *codegen_create_package(CodeGen *g, const char *root_src_dir, const c
void codegen_add_assembly(CodeGen *g, Buf *path);
void codegen_add_object(CodeGen *g, Buf *object_path);
-AstNode *codegen_translate_c(CodeGen *g, Buf *path, bool use_userland_implementation);
+void codegen_translate_c(CodeGen *g, Buf *full_path, FILE *out_file, bool use_userland_implementation);
Buf *codegen_generate_builtin_source(CodeGen *g);