git.asbjorn.biz
/
swftools.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
dbe6ea0
)
added some more info to the "out of memory" messages.
author
kramm
<kramm>
Fri, 1 Apr 2005 07:59:03 +0000
(07:59 +0000)
committer
kramm
<kramm>
Fri, 1 Apr 2005 07:59:03 +0000
(07:59 +0000)
lib/rfxswf.c
patch
|
blob
|
history
diff --git
a/lib/rfxswf.c
b/lib/rfxswf.c
index
580a55d
..
616be52
100644
(file)
--- a/
lib/rfxswf.c
+++ b/
lib/rfxswf.c
@@
-61,8
+61,8
@@
void* rfx_alloc(int size)
ptr = malloc(size);
if(!ptr) {
ptr = malloc(size);
if(!ptr) {
- fprintf(stderr, "FATAL: Out of memory\n");
- /* TODO: we should send a signal, so that the debugger kicks in */
+ fprintf(stderr, "FATAL: Out of memory (while trying to claim %d bytes)\n", size);
+ /* TODO: we should send a signal, so that the debugger kicks in? */
exit(1);
}
return ptr;
exit(1);
}
return ptr;
@@
-83,8
+83,8
@@
void* rfx_realloc(void*data, int size)
}
if(!ptr) {
}
if(!ptr) {
- fprintf(stderr, "FATAL: Out of memory\n");
- /* TODO: we should send a signal, so that the debugger kicks in */
+ fprintf(stderr, "FATAL: Out of memory (while trying to claim %d bytes)\n", size);
+ /* TODO: we should send a signal, so that the debugger kicks in? */
exit(1);
}
return ptr;
exit(1);
}
return ptr;
@@
-103,8
+103,8
@@
void* rfx_calloc(int size)
ptr = malloc(size);
#endif
if(!ptr) {
ptr = malloc(size);
#endif
if(!ptr) {
- fprintf(stderr, "FATAL: Out of memory\n");
- /* TODO: we should send a signal, so that the debugger kicks in */
+ fprintf(stderr, "FATAL: Out of memory (while trying to claim %d bytes)\n", size);
+ /* TODO: we should send a signal, so that the debugger kicks in? */
exit(1);
}
#ifndef HAVE_CALLOC
exit(1);
}
#ifndef HAVE_CALLOC