diff --git a/src/primitives/array/array.c b/src/primitives/array/array.c index bfbd69e..f172f53 100644 --- a/src/primitives/array/array.c +++ b/src/primitives/array/array.c @@ -1,3 +1,5 @@ +// vim:fileencoding=utf-8:foldmethod=marker + #include "./array.h" #include "../../common/assert/assert.h" #include "../mem_allocator/mem_allocator.h" diff --git a/src/primitives/array/array.h b/src/primitives/array/array.h index 13f4980..b160854 100644 --- a/src/primitives/array/array.h +++ b/src/primitives/array/array.h @@ -1,3 +1,5 @@ +// vim:fileencoding=utf-8:foldmethod=marker + #ifndef ARRAY_H #define ARRAY_H diff --git a/src/primitives/strings/str8/str8.h b/src/primitives/strings/str8/str8.h index 5a958b4..e9abc58 100644 --- a/src/primitives/strings/str8/str8.h +++ b/src/primitives/strings/str8/str8.h @@ -37,14 +37,14 @@ typedef const Str8 Str8RO; #ifdef WAPP_PLATFORM_CPP // Uses a lambda to achieve the same behaviour achieved by the C macro #define wapp_str8_buf(CAPACITY) ([&](){ \ - wapp_persist c8 buf[CAPACITY] = {}; \ + wapp_persist c8 buf[CAPACITY] = {}; \ memset(buf, 0, CAPACITY); \ return Str8{CAPACITY, 0, buf}; \ }()) // Uses a lambda to achieve the same behaviour achieved by the C macro #define wapp_str8_lit(STRING) ([&]() { \ - wapp_persist c8 buf[sizeof(STRING) * 2] = {}; \ + wapp_persist c8 buf[sizeof(STRING) * 2] = {}; \ memcpy(buf, STRING, sizeof(STRING)); \ return Str8{(sizeof(STRING) - 1) * 2, sizeof(STRING) - 1, buf}; \ }())