about summary refs log tree commit diff stats
path: root/wrapperhelper/src/preproc_private.h
diff options
context:
space:
mode:
authorrajdakin <rajdakin@gmail.com>2024-09-10 17:25:37 +0200
committerGitHub <noreply@github.com>2024-09-10 17:25:37 +0200
commit0d6028d83753ce93aff9aecc8443de657663071c (patch)
tree1226447e55b1051262c6c7fc8ff34074471bd2da /wrapperhelper/src/preproc_private.h
parent2127eaea221e89a44ececc87bc74f7d7b44873d0 (diff)
downloadbox64-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.h39
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