mirror of
https://github.com/urbit/shrub.git
synced 2024-12-26 05:23:35 +03:00
move markdown jet to u3a_calloc
This commit is contained in:
parent
d57fbc9fcc
commit
3baefceab3
5
n/a.c
5
n/a.c
@ -526,8 +526,6 @@ u3a_calloc(size_t num_i, size_t len_i)
|
||||
c3_w* out_w = u3a_malloc(byt_i);
|
||||
memset(out_w, 0, byt_i);
|
||||
|
||||
fprintf(stderr,"callocing %d %d\r\n",num_i,len_i);
|
||||
|
||||
return out_w;
|
||||
}
|
||||
|
||||
@ -623,6 +621,9 @@ u3a_realloc2(void* lag_v, size_t old_i, size_t new_i)
|
||||
void
|
||||
u3a_free(void* tox_v)
|
||||
{
|
||||
if (NULL == tox_v)
|
||||
return;
|
||||
|
||||
c3_w* tox_w = tox_v;
|
||||
c3_w pad_w = tox_w[-1];
|
||||
c3_w* org_w = tox_w - (pad_w + 1);
|
||||
|
@ -16,7 +16,7 @@
|
||||
#define CMARK_ATTRIBUTE(list)
|
||||
#endif
|
||||
|
||||
#if 0
|
||||
#if 1
|
||||
#ifndef U3_ALL
|
||||
#define U3_ALL
|
||||
#define malloc(a) u3a_malloc(a)
|
||||
|
Loading…
Reference in New Issue
Block a user