diff options
| author | Andrew Kelley <superjoe30@gmail.com> | 2016-01-31 01:20:47 -0700 |
|---|---|---|
| committer | Andrew Kelley <superjoe30@gmail.com> | 2016-01-31 01:20:47 -0700 |
| commit | 3c2093fec64c38b2895fb162b7fe58e6ec232bc6 (patch) | |
| tree | 0c4dbb7cf5667d6e972035798fe5d9f1cf20d4c9 /src/parseh.hpp | |
| parent | 436e35516ac997ec5fc0d769386d9b1128195b16 (diff) | |
| download | zig-3c2093fec64c38b2895fb162b7fe58e6ec232bc6.tar.gz zig-3c2093fec64c38b2895fb162b7fe58e6ec232bc6.zip | |
parseh understands types better and handles some situations better
See #88
Also, includes partial implementation of typedef top level declaration.
See #95
Also, fix function types. Previously the way we were deduping function type
pointers was incorrect.
Diffstat (limited to 'src/parseh.hpp')
| -rw-r--r-- | src/parseh.hpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/parseh.hpp b/src/parseh.hpp index f3a6c8371f..3efaafcfa7 100644 --- a/src/parseh.hpp +++ b/src/parseh.hpp @@ -11,10 +11,10 @@ #include "all_types.hpp" -int parse_h_file(ImportTableEntry *out_import, ZigList<ErrorMsg *> *out_errs, - ZigList<const char *> *clang_argv, bool warnings_on, uint32_t *next_node_index); -int parse_h_buf(ImportTableEntry *out_import, ZigList<ErrorMsg *> *out_errs, - Buf *source, const char **args, int args_len, const char *libc_include_path, - bool warnings_on, uint32_t *next_node_index); +int parse_h_file(ImportTableEntry *import, ZigList<ErrorMsg *> *errors, const char *target_file, + CodeGen *codegen, AstNode *source_node); + +int parse_h_buf(ImportTableEntry *import, ZigList<ErrorMsg *> *errors, Buf *source, + CodeGen *codegen, AstNode *source_node); #endif |
