Reverted removal of 'const' from TagItem arrays/pointers in r50147
[AROS.git] / compiler / purify / src / util.c
blobed94d1913bf5f2d8439404130563a9b968fef37b
1 /*
2 Copyright © 1995-2014, The AROS Development Team. All rights reserved.
3 $Id$
4 */
6 #include <stdlib.h>
7 #include <stdio.h>
8 #include "util.h"
10 void * xmalloc (int size)
12 void * ptr = malloc (size);
14 if (!ptr)
16 fprintf (stderr, "Out of memory\n");
17 exit (20);
20 return ptr;
23 void xfree (void * ptr)
25 if (ptr)
26 free (ptr);
27 else
28 fprintf (stderr, "Warning: free (NULL);\n");