summaryrefslogtreecommitdiff
path: root/source/kit/input_stream.h
diff options
context:
space:
mode:
authorMitya Selivanov <automainint@guattari.tech>2024-07-14 21:12:37 +0200
committerMitya Selivanov <automainint@guattari.tech>2024-07-14 21:12:37 +0200
commit30740ca4131d1f574718262451b4410207dc8d4e (patch)
treefc88b16a216079397ad85b9c6b1a1c1c5712a814 /source/kit/input_stream.h
parent5e3c99bb1cf1d03ea006300121265571f5008fd2 (diff)
downloadsaw-30740ca4131d1f574718262451b4410207dc8d4e.zip
Reworking the build system
Diffstat (limited to 'source/kit/input_stream.h')
-rw-r--r--source/kit/input_stream.h47
1 files changed, 0 insertions, 47 deletions
diff --git a/source/kit/input_stream.h b/source/kit/input_stream.h
deleted file mode 100644
index 51a7520..0000000
--- a/source/kit/input_stream.h
+++ /dev/null
@@ -1,47 +0,0 @@
-#ifndef KIT_INPUT_STREAM_H
-#define KIT_INPUT_STREAM_H
-
-#include "allocator.h"
-#include "string_ref.h"
-
-#include <stdio.h>
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-typedef i64 (*kit_is_read_fn)(void *state, kit_str_t destination);
-
-typedef struct {
- void *state;
- kit_is_read_fn read;
-} kit_is_handle_t;
-
-kit_is_handle_t kit_is_wrap_string(kit_str_t string,
- kit_allocator_t *alloc);
-
-kit_is_handle_t kit_is_wrap_file(FILE *f, kit_allocator_t *alloc);
-
-void kit_is_destroy(kit_is_handle_t in);
-
-#define KIT_IS_WRAP_STRING(string) kit_is_wrap_string((string), NULL)
-
-#define KIT_IS_WRAP_FILE(f) kit_is_wrap_file((f), NULL)
-
-#define KIT_IS_READ(in, destination) \
- (in).read((in).state, (destination))
-
-#ifdef __cplusplus
-}
-#endif
-
-#define is_read_fn kit_is_read_fn
-#define is_handle_t kit_is_handle_t
-#define is_wrap_string kit_is_wrap_string
-#define is_wrap_file kit_is_wrap_file
-#define is_destroy kit_is_destroy
-#define IS_WRAP_STRING KIT_IS_WRAP_STRING
-#define IS_WRAP_FILE KIT_IS_WRAP_FILE
-#define IS_READ KIT_IS_READ
-
-#endif