retab everything to use tabs

This commit is contained in:
2025-12-03 19:38:43 +01:00
parent 1b33ace698
commit 9214b986ac
12 changed files with 473 additions and 443 deletions
+12 -12
View File
@@ -1,27 +1,27 @@
#include "cig.h"
static void *forever_alloc(void *this, size_t bytes) {
(void)this;
return malloc(bytes);
(void)this;
return malloc(bytes);
}
static void *forever_resize(void *this, void *old_ptr, size_t bytes) {
(void)this;
return realloc(old_ptr, bytes);
(void)this;
return realloc(old_ptr, bytes);
}
static void forever_no_op(void *this) {
(void)this;
(void)this;
}
static const allocator_vtbl_t forever_vtbl = {
.alloc = forever_alloc,
.resize = forever_resize,
.reset = forever_no_op,
.alloc = forever_alloc,
.resize = forever_resize,
.reset = forever_no_op,
};
allocator_t forever_allocator() {
return (allocator_t) {
.this=NULL,
.vtbl=&forever_vtbl,
};
return (allocator_t) {
.this=NULL,
.vtbl=&forever_vtbl,
};
}