"h+emheaders",
"modules+headers",
"modules/src/alloc+lib",
+ "modules/src/data+lib",
"modules/src/em_code+lib_k",
"modules/src/em_data+lib",
"modules/src/idf+lib",
-#include "mcg.h"
+#include <stdlib.h>
+#include <stdbool.h>
#include "array.h"
void array_append(void*** array, int* count, int* max, void* value)
{
int newmax = (*max == 0) ? 8 : (*max * 2);
void** newarray = realloc(*array, newmax * sizeof(void*));
- if (!newarray)
- fatal("memory allocation failure");
*max = newmax;
*array = newarray;