diff options
| author | rajdakin <rajdakin@gmail.com> | 2024-09-10 17:25:37 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-09-10 17:25:37 +0200 |
| commit | 0d6028d83753ce93aff9aecc8443de657663071c (patch) | |
| tree | 1226447e55b1051262c6c7fc8ff34074471bd2da /wrapperhelper/src/preproc_private.h | |
| parent | 2127eaea221e89a44ececc87bc74f7d7b44873d0 (diff) | |
| download | box64-0d6028d83753ce93aff9aecc8443de657663071c.tar.gz box64-0d6028d83753ce93aff9aecc8443de657663071c.zip | |
[WRAPPERHELPER] Added per-arch override, always include 'stdc-predef.h', better parsing (#1813)
Diffstat (limited to 'wrapperhelper/src/preproc_private.h')
| -rw-r--r-- | wrapperhelper/src/preproc_private.h | 39 |
1 files changed, 0 insertions, 39 deletions
diff --git a/wrapperhelper/src/preproc_private.h b/wrapperhelper/src/preproc_private.h deleted file mode 100644 index d1b5f804..00000000 --- a/wrapperhelper/src/preproc_private.h +++ /dev/null @@ -1,39 +0,0 @@ -#pragma once - -#ifndef PREPROC_PRIVATE_H -#define PREPROC_PRIVATE_H - -#include <stdio.h> - -#include "lang.h" - -typedef struct mtoken_s { - enum mtoken_e { - MTOK_TOKEN, - MTOK_ARG, - MTOK_STRINGIFY, - MTOK_CONCAT, - } typ; - union { - preproc_token_t tok; - unsigned argid; - struct { struct mtoken_s *l, *r; } concat; - } val; -} mtoken_t; - -VECTOR_DECLARE(mtoken, mtoken_t*) - -typedef struct macro_s { - int is_funlike; - int has_varargs; - unsigned nargs; - VECTOR(mtoken) *toks; -} macro_t; - -mtoken_t *mtoken_new_token(preproc_token_t tok); -mtoken_t *mtoken_new_arg(unsigned argid, int as_string); -mtoken_t *mtoken_new_concat(mtoken_t *l, mtoken_t *r); -void mtoken_del(mtoken_t *tok); -void macro_del(macro_t *m); - -#endif // PREPROC_PRIVATE_H |