projects
/
deliverable
/
binutils-gdb.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
import gdb-1999-12-21 snapshot
[deliverable/binutils-gdb.git]
/
gdb
/
utils.c
diff --git
a/gdb/utils.c
b/gdb/utils.c
index cbaf0cc9dfd3e251095130e0f2146e0bde267263..596c0aee3b99bdc1b3de617a97054ef52053bb16 100644
(file)
--- a/
gdb/utils.c
+++ b/
gdb/utils.c
@@
-931,6
+931,12
@@
request_quit (signo)
#if !defined (USE_MMALLOC)
#if !defined (USE_MMALLOC)
+void *
+mcalloc (void *md, size_t number, size_t size)
+{
+ return calloc (number, size);
+}
+
PTR
mmalloc (md, size)
PTR md;
PTR
mmalloc (md, size)
PTR md;
@@
-1092,6
+1098,17
@@
xmalloc (size)
return (xmmalloc ((PTR) NULL, size));
}
return (xmmalloc ((PTR) NULL, size));
}
+/* Like calloc but get error if no storage available */
+
+PTR
+xcalloc (size_t number, size_t size)
+{
+ void *mem = mcalloc (NULL, number, size);
+ if (mem == NULL)
+ nomem (number * size);
+ return mem;
+}
+
/* Like mrealloc but get error if no storage available. */
PTR
/* Like mrealloc but get error if no storage available. */
PTR
This page took
0.026007 seconds
and
4
git commands to generate.