diff options
| author | rajdakin <rajdakin@gmail.com> | 2024-09-07 15:20:17 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-09-07 15:20:17 +0200 |
| commit | f0d7582845e124ed61b86f43da30a7b3f3f0c3f5 (patch) | |
| tree | 2ee0c53821805b33ca47e0919fea95ccb920cd52 /wrapperhelper/src/machine.h | |
| parent | 75bdb328284b8e5b6827eeb7d5cedef26222e7db (diff) | |
| download | box64-f0d7582845e124ed61b86f43da30a7b3f3f0c3f5.tar.gz box64-f0d7582845e124ed61b86f43da30a7b3f3f0c3f5.zip | |
Upgraded the wrapper helper (#1803)
* [WRAPPERHELPER] Fixed unsigned comparison in macros, added macro expanding in include commands, added -I option * [WRAPPERHELPER] Forgot the README
Diffstat (limited to 'wrapperhelper/src/machine.h')
| -rw-r--r-- | wrapperhelper/src/machine.h | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/wrapperhelper/src/machine.h b/wrapperhelper/src/machine.h new file mode 100644 index 00000000..0f850fef --- /dev/null +++ b/wrapperhelper/src/machine.h @@ -0,0 +1,33 @@ +#pragma once + +#ifndef MACHINE_H +#define MACHINE_H + +#include "cstring.h" +#include "khash.h" +#include "vector.h" + +struct macro_s; // preproc_private.h + +typedef struct machine_s { + // Preprocessor + size_t npaths; + char **include_path; + + size_t npredefs; + char **predef_macros_name; + struct macro_s **predef_macros; + + // Parsing + size_t size_long; + // TODO: also have info on unnamed bitfields, etc +} machine_t; + +extern machine_t machine_x86_64; +// extern machine_t machine_x86; +// extern machine_t machine_arm64; + +int init_machines(size_t npaths, const char *const *extra_include_path); +void del_machines(void); + +#endif // MACHINE_H |