diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2019-04-25 08:35:28 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-04-25 08:35:28 -0400 |
| commit | 92d9cef07116da8639ac33b7fd83ba1b35f0750c (patch) | |
| tree | b76b7924fb16a2313721b7a294b04f75db621bcb /src/codegen.hpp | |
| parent | 56e07622c692f70eb10836b86c5fda02c53e2394 (diff) | |
| parent | 17ffe166c286de5ff0ef4d67f60267abba5f6e12 (diff) | |
| download | zig-92d9cef07116da8639ac33b7fd83ba1b35f0750c.tar.gz zig-92d9cef07116da8639ac33b7fd83ba1b35f0750c.zip | |
Merge pull request #2332 from ziglang/translate-c-userland
beginnings of implementing translate-c in userland
Diffstat (limited to 'src/codegen.hpp')
| -rw-r--r-- | src/codegen.hpp | 3 |
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); |
