about summary refs log tree commit diff stats
path: root/wrapperhelper/src/prepare.h
diff options
context:
space:
mode:
authorrajdakin <rajdakin@gmail.com>2024-09-06 15:07:38 +0200
committerGitHub <noreply@github.com>2024-09-06 15:07:38 +0200
commit6044feb7fd58ff69f63f5418f516b1f3ded346e9 (patch)
tree9935288f145df5b80f6d118c8a487b0a10afb1e8 /wrapperhelper/src/prepare.h
parent7dc59ac342d315dbb352becbeabc4e7057992de0 (diff)
downloadbox64-6044feb7fd58ff69f63f5418f516b1f3ded346e9.tar.gz
box64-6044feb7fd58ff69f63f5418f516b1f3ded346e9.zip
Wrapper helper (#1799)
* [WRAPPERHELPER] Added wrapperhelper v0.1, tested on libc

* [WRAPPED] Removed updates to libc from this branch

* [WRAPPERHELPER] Removed GPL header and added modified LGPL header, added notes about licensing issues
Diffstat (limited to 'wrapperhelper/src/prepare.h')
-rw-r--r--wrapperhelper/src/prepare.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/wrapperhelper/src/prepare.h b/wrapperhelper/src/prepare.h
new file mode 100644
index 00000000..ccb57a5f
--- /dev/null
+++ b/wrapperhelper/src/prepare.h
@@ -0,0 +1,18 @@
+#pragma once
+
+#ifndef PREPARE_H
+#define PREPARE_H
+
+#include <stdio.h>
+
+#include "cstring.h"
+#include "lang.h"
+
+typedef struct prepare_s prepare_t;
+
+prepare_t *prepare_new_file(FILE *f, const char *filename); // Takes ownership of f
+void prepare_del(prepare_t *src);
+preproc_token_t pre_next_token(prepare_t *src, int allow_comments);
+preproc_token_t pre_next_newline_token(prepare_t *src); // In a comment ignore everything until the EOL or EOF
+
+#endif // PREPARE_H