summaryrefslogtreecommitdiff
path: root/src/util.c
diff options
context:
space:
mode:
authorIan C <ianc@noddybox.co.uk>2004-01-13 02:21:06 +0000
committerIan C <ianc@noddybox.co.uk>2004-01-13 02:21:06 +0000
commit44ffbe36a8e7eaab7d7851bb79f229c4383c6545 (patch)
tree5ec706c58e940047021c0fd8665e96c6d3d50c58 /src/util.c
parent25bc35fbadebbf28eed3c89978e435d2df557b42 (diff)
Added breakpoints to memory menu and added extra GUI items. Plus general fixes.
Diffstat (limited to 'src/util.c')
-rw-r--r--src/util.c17
1 files changed, 14 insertions, 3 deletions
diff --git a/src/util.c b/src/util.c
index c3396eb..a8a037d 100644
--- a/src/util.c
+++ b/src/util.c
@@ -42,12 +42,23 @@ static const char ident_h[]=ESPEC_UTIL_H;
*/
void *Malloc(size_t size)
{
- void *p=malloc(size);
+ void *new=malloc(size);
- if (!p)
+ if (!new)
Exit("malloc failed for %lu bytes\n",(unsigned long)size);
- return p;
+ return new;
+}
+
+
+void *Realloc(void *p, size_t size)
+{
+ void *new=realloc(p,size);
+
+ if (!new)
+ Exit("realloc failed for %lu bytes\n",(unsigned long)size);
+
+ return new;
}