diff options
author | dec05eba <dec05eba@protonmail.com> | 2019-03-05 18:25:57 +0100 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2020-07-25 14:36:46 +0200 |
commit | 81b6004928015ced29b0b949e35753977aa17606 (patch) | |
tree | 410690c0ddc59b61bb471fe6cea0dcc71e133745 /include/std | |
parent | f41317b598e59eefaa912f0d49fe2b1817573d88 (diff) |
Add ast resolving using multiple threads
Fix issue where not all files are parsed
Diffstat (limited to 'include/std')
-rw-r--r-- | include/std/buffer.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/std/buffer.h b/include/std/buffer.h index 02cc20a..a60def9 100644 --- a/include/std/buffer.h +++ b/include/std/buffer.h @@ -19,5 +19,9 @@ CHECK_RESULT int buffer_init(Buffer *self, struct ScopedAllocator *allocator); CHECK_RESULT int buffer_append(Buffer *self, void *data, usize size); void* buffer_get(Buffer *self, usize index, usize type_size); CHECK_RESULT int buffer_pop(Buffer *self, void *data, usize size); +void* buffer_start(Buffer *self); +void *buffer_end(Buffer *self); +usize __buffer_get_size(Buffer *self, usize type_size); +#define buffer_get_size(self, type) __buffer_get_size((self), sizeof(type)) #endif |