new_paths = uTypedRecalloc(context->include_paths,
context->size_include_paths,
new_size,
- typeof(new_paths));
+ char *);
if (!new_paths)
return 0;
context->include_paths = new_paths;
*/
#define UNCONSTIFY(const_ptr) ((void *)(uintptr_t)(const_ptr))
-#define uTypedAlloc(t) malloc(sizeof(t))
-#define uTypedCalloc(n, t) calloc((n), sizeof(t))
-#define uTypedRealloc(pO, n, t) realloc((pO), (n) * sizeof(t))
-#define uTypedRecalloc(pO, o, n, t) recalloc((pO), (o) * sizeof(t), (n) * sizeof(t))
+#define uTypedAlloc(t) ((t*)malloc(sizeof(t)))
+#define uTypedCalloc(n, t) ((t*)calloc((n), sizeof(t)))
+#define uTypedRealloc(pO, n, t) ((t*)realloc((pO), (n) * sizeof(t)))
+#define uTypedRecalloc(pO, o, n, t) ((t*)recalloc((pO), (o) * sizeof(t), (n) * sizeof(t)))
#define uDupString(s) ((s) ? strdup(s) : NULL)
#define uStringText(s) ((s) == NULL ? "<NullString>" : (s))