diff options
| author | Fabrice <fabrice@schaub-dev.xyz> | 2026-03-02 12:43:25 +0100 |
|---|---|---|
| committer | Fabrice <fabrice@schaub-dev.xyz> | 2026-03-02 12:43:25 +0100 |
| commit | 01fe9f2eeab8b54487a4673e74851160adb1718d (patch) | |
| tree | d95bcb5c81a76660c01fa8434bf59613b6ac7586 /src/voidc.cc | |
| parent | ef816e31ba15bbda487298339c5ca88456c31d33 (diff) | |
working on array implementation
Diffstat (limited to 'src/voidc.cc')
| -rw-r--r-- | src/voidc.cc | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/src/voidc.cc b/src/voidc.cc index 69dc4ed..d536acb 100644 --- a/src/voidc.cc +++ b/src/voidc.cc @@ -1,9 +1,9 @@ #include <cstdlib> #include <cstring> -#include "source.cc" #include "common.cc" #include "memory.cc" +#include "source.cc" static const char* SOURCE = R"( #include <stdlib.h> @@ -19,10 +19,14 @@ static const char* SOURCE_FILE = "source.c"; int main() { String source(SOURCE); String file(SOURCE_FILE); - + + Buffer_Manager manager = buffer_manager_init(heap_allocator()); + Buffer buffer{}; bool ret = buffer_init(&buffer, heap_allocator(), &source, &file); - if(!ret) return EXIT_FAILURE; + if (!ret) return EXIT_FAILURE; buffer_deinit(&buffer); + + buffer_manager_deinit(&manager); } |
