summaryrefslogtreecommitdiff
path: root/src/voidc.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/voidc.cc')
-rw-r--r--src/voidc.cc9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/voidc.cc b/src/voidc.cc
index e69b8a6..8110184 100644
--- a/src/voidc.cc
+++ b/src/voidc.cc
@@ -1,7 +1,8 @@
-#include "memory.cc"
-#include "common.cc"
#include <cstring>
+#include "common.cc"
+#include "memory.cc"
+
static const char* SOURCE = R"(
#include <stdlib.h>
@@ -10,13 +11,13 @@ int main() {
}
)";
-static const String SOURCE_STRING = { (u8*)SOURCE, strlen(SOURCE) };
+static const String SOURCE_STRING = {(u8*)SOURCE, strlen(SOURCE)};
int main() {
String source;
slice_copy(heap_allocator(), &SOURCE_STRING, &source);
slice_write(&source, stdout);
-
+
slice_deallocate(heap_allocator(), &source);
}