Minor project core fixes
This commit is contained in:
parent
209745f525
commit
862e85145c
@ -8,6 +8,7 @@
|
||||
#undef malloc
|
||||
#undef realloc
|
||||
#undef calloc
|
||||
#undef free
|
||||
|
||||
void* libcdsb_aalloc(size_t a, size_t n) {
|
||||
void* x;
|
||||
@ -73,3 +74,7 @@ char* libcdsb_strndup(const char* s, size_t n) {
|
||||
}
|
||||
abort();
|
||||
}
|
||||
|
||||
void libcdsb_free(void* s) {
|
||||
free(s);
|
||||
}
|
||||
|
@ -4,6 +4,7 @@
|
||||
#include <stdlib.h>
|
||||
#include "__internal/include.h"
|
||||
#undef malloc
|
||||
#undef free
|
||||
|
||||
void libcdsb_stack_init(stack_t* x) {
|
||||
memset(x, 0, sizeof(*x));
|
||||
|
@ -26,13 +26,13 @@ static _Thread_local char STRINGIFY_BUFFER[64];
|
||||
/*#####################################################################################################################*/
|
||||
|
||||
|
||||
const size_t LIBCDSB_VTYPE_SIZES[18] = {
|
||||
const size_t LIBCDSB_VTYPE_SIZES[19] = {
|
||||
sizeof(void*), sizeof(bool),
|
||||
sizeof(u8_t), sizeof(u16_t), sizeof(u32_t), sizeof(u64_t),
|
||||
sizeof(s8_t), sizeof(s16_t), sizeof(s32_t), sizeof(s64_t),
|
||||
sizeof(fl_t), sizeof(dbl_t), sizeof(ldbl_t),
|
||||
sizeof(str_t), sizeof(map_t), sizeof(arr_t),
|
||||
sizeof(list_t), sizeof(set_t)
|
||||
sizeof(list_t), sizeof(set_t), sizeof(dict_t)
|
||||
};
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user