move markdown jet to u3a_calloc

This commit is contained in:
Philip C Monk 2014-12-08 16:00:56 -05:00
parent d57fbc9fcc
commit 3baefceab3
2 changed files with 4 additions and 3 deletions

5
n/a.c
View File

@ -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);

View File

@ -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)