diff options
| author | rajdakin <rajdakin@gmail.com> | 2024-09-08 22:26:35 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-09-08 22:26:35 +0200 |
| commit | 26b7a49d8279984a01ea5dc19b05cefff0693e35 (patch) | |
| tree | 3ff9f05a2fb11b0e21ad7cf1829c5a9992ce7728 /wrapperhelper/src/lang.h | |
| parent | fa8a5a20336a64e5b53ea9a151c23941073381c4 (diff) | |
| download | box64-26b7a49d8279984a01ea5dc19b05cefff0693e35.tar.gz box64-26b7a49d8279984a01ea5dc19b05cefff0693e35.zip | |
[WRAPPERHELPER] Fixed preprocessor logic, moved type validation to machine (#1808)
Diffstat (limited to 'wrapperhelper/src/lang.h')
| -rw-r--r-- | wrapperhelper/src/lang.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/wrapperhelper/src/lang.h b/wrapperhelper/src/lang.h index 682bbdda..f5807f97 100644 --- a/wrapperhelper/src/lang.h +++ b/wrapperhelper/src/lang.h @@ -5,10 +5,9 @@ #include "cstring.h" #include "khash.h" +#include "machine.h" #include "vector.h" -#define LONG_IS_32BITS 0 - enum token_sym_type_e { SYM_LBRACKET, SYM_RBRACKET, @@ -191,7 +190,7 @@ typedef struct num_constant_s { uint64_t u64; } val; } num_constant_t; -int num_constant_convert(string_t *str, num_constant_t *cst); +int num_constant_convert(string_t *str, num_constant_t *cst, int ptr_is_32bits); KHASH_MAP_DECLARE_STR(const_map, num_constant_t) typedef struct expr_s { @@ -381,6 +380,7 @@ typedef struct st_member_s { type_t *typ; _Bool is_bitfield; size_t bitfield_width; + // TODO: add byte_offset then check in generator against both archs for every named members } st_member_t; typedef struct struct_s { string_t *tag; @@ -421,7 +421,7 @@ typedef struct file_s { khash_t(const_map) *const_map; khash_t(type_set) *type_set; } file_t; -file_t *file_new(void); +file_t *file_new(machine_t *target); void file_del(file_t *f); extern const char *sym2str[LAST_SYM + 1]; |