Disable pointer arithmetic

This commit is contained in:
gingerBill committed 2018-05-13 16:10:02 +01:00
1 parent 319aca3101
commit de9a4b5164
6 files changed
+60 -48

No files matched your search

+1 -1
View File
@@ -1,6 +1,6 @@
#define USE_THREADED_PARSER 1
// #define NO_ARRAY_BOUNDS_CHECK
// #define NO_POINTER_ARITHMETIC
#define NO_POINTER_ARITHMETIC
#include "common.cpp"
#include "timings.cpp"
+1 -2
View File
@@ -1785,8 +1785,7 @@ struct TypePath {
void type_path_init(TypePath *tp) {
// TODO(bill): Use an allocator that uses a backing array if it can and then use alternative allocator when exhausted
array_init(&tp->path, heap_allocator());
tp->path.allocator = heap_allocator();
}
void type_path_free(TypePath *tp) {