no libc, start on socket x11
This commit is contained in:
+3
-2
@@ -5,8 +5,9 @@
|
||||
#include <stdlib.h>
|
||||
#include <tgmath.h>
|
||||
|
||||
void *com_std_realloc(void *ptr, size_t size) { return realloc(ptr, size); }
|
||||
void com_std_free(void *ptr) { free(ptr); }
|
||||
void *com_std_alloc(void *ptr, size_t size) {
|
||||
return size != 0 ? realloc(ptr, size) : (free(ptr), NULL);
|
||||
}
|
||||
void com_std_assert(bool holds) { assert(holds); }
|
||||
void com_std_printf(char const *fmt, ...) {
|
||||
va_list args;
|
||||
|
||||
Reference in New Issue
Block a user