diff options
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); } |
