Colored debugging...

FossilOrigin-Name: 153201cffee624726d6bcd3e428c0d69d7cc9e9cba6a84a5687de94a850550dd
This commit is contained in:
7u83@mail.ru
2015-04-11 17:00:51 +00:00
parent 4460a959b9
commit 73aba62d2b
66 changed files with 890 additions and 688 deletions

View File

@ -137,11 +137,12 @@ static int cw_action_out_cmp(const void *elem1, const void *elem2)
*/
void *cw_actionlist_add(struct avltree *t, void *a, size_t s)
{
void *r = avltree_replace_data(t, a, sizeof(struct cw_action_in));
if (r)
return r;
void *an = malloc(sizeof(struct cw_action_in));
void *an = malloc(s);
if (!an)
return NULL;