summaryrefslogtreecommitdiff
path: root/source/kit/input_stream.h
diff options
context:
space:
mode:
Diffstat (limited to 'source/kit/input_stream.h')
-rw-r--r--source/kit/input_stream.h11
1 files changed, 5 insertions, 6 deletions
diff --git a/source/kit/input_stream.h b/source/kit/input_stream.h
index d60e37e..95a6187 100644
--- a/source/kit/input_stream.h
+++ b/source/kit/input_stream.h
@@ -18,17 +18,16 @@ typedef struct {
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_string(kit_str_t string,
+ kit_allocator_t *alloc);
-kit_is_handle_t kit_is_wrap_file(FILE *f, 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), kit_alloc_default())
+#define KIT_IS_WRAP_STRING(string) kit_is_wrap_string((string), NULL)
-#define KIT_IS_WRAP_FILE(f) kit_is_wrap_file((f), kit_alloc_default())
+#define KIT_IS_WRAP_FILE(f) kit_is_wrap_file((f), NULL)
#define KIT_IS_READ(in, destination) \
(in).read((in).state, (destination))