diff options
| author | trystan trystan@31f1291d-b8d6-0310-a050-a5561fc1590b <trystan trystan@31f1291d-b8d6-0310-a050-a5561fc1590b@5417fbe8-f217-4b02-8779-1006273d7864> | 2005-02-06 19:18:15 +0000 |
|---|---|---|
| committer | trystan trystan@31f1291d-b8d6-0310-a050-a5561fc1590b <trystan trystan@31f1291d-b8d6-0310-a050-a5561fc1590b@5417fbe8-f217-4b02-8779-1006273d7864> | 2005-02-06 19:18:15 +0000 |
| commit | 9b3a357193a020c53624b29f84e0bca4795722f0 (patch) | |
| tree | be1a500c8a469dad8164a72d1266780ac8c28510 /src/memory.c | |
| parent | f8ac398b86ea6a26dba62064d9810796466e4118 (diff) | |
BUILD : 1.7.8 (565) BUGS : 293 NOTES : Merge of Win32 branch into the main, support for Unreal +I, German language updated, fixed bug vidents not updating, Setting and Removal of sqlines on forbid or drop
git-svn-id: svn://svn.anope.org/anope/trunk@567 31f1291d-b8d6-0310-a050-a5561fc1590b
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@417 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'src/memory.c')
| -rw-r--r-- | src/memory.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/memory.c b/src/memory.c index 415853416..6c1d8dda7 100644 --- a/src/memory.c +++ b/src/memory.c @@ -38,10 +38,14 @@ void *smalloc(long size) buf = malloc(size); if (!buf) #if !defined(USE_THREADS) || !defined(LINUX20) +#ifndef _WIN32 raise(SIGUSR1); #else abort(); #endif +#else + abort(); +#endif return buf; } @@ -63,10 +67,14 @@ void *scalloc(long elsize, long els) buf = calloc(elsize, els); if (!buf) #if !defined(USE_THREADS) || !defined(LINUX20) +#ifndef _WIN32 raise(SIGUSR1); #else abort(); #endif +#else + abort(); +#endif return buf; } @@ -88,10 +96,14 @@ void *srealloc(void *oldptr, long newsize) buf = realloc(oldptr, newsize); if (!buf) #if !defined(USE_THREADS) || !defined(LINUX20) +#ifndef _WIN32 raise(SIGUSR1); #else abort(); #endif +#else + abort(); +#endif return buf; } @@ -116,10 +128,14 @@ char *sstrdup(const char *src) #endif if (!ret) #if !defined(USE_THREADS) || !defined(LINUX20) +#ifndef _WIN32 raise(SIGUSR1); #else abort(); #endif +#else + abort(); +#endif } else { alog("sstrdup() called with NULL-arg"); if (debug) |
