diff options
author | certus certus@31f1291d-b8d6-0310-a050-a5561fc1590b <certus certus@31f1291d-b8d6-0310-a050-a5561fc1590b@5417fbe8-f217-4b02-8779-1006273d7864> | 2006-03-23 13:06:24 +0000 |
---|---|---|
committer | certus certus@31f1291d-b8d6-0310-a050-a5561fc1590b <certus certus@31f1291d-b8d6-0310-a050-a5561fc1590b@5417fbe8-f217-4b02-8779-1006273d7864> | 2006-03-23 13:06:24 +0000 |
commit | 660e2e9e8adabebb9a017ce113421a44f2c965fb (patch) | |
tree | 50ae49bd37138ab4948b1803d9dd9fe2fa6730b6 /src/memory.c | |
parent | c14bdc3d690a9d912239d6412fa7c269c4fe2c31 (diff) |
# BUILD : 1.7.13 (1019) # BUGS 390 : # NOTES : fixed some obsolete defines. hopefully :P
git-svn-id: svn://svn.anope.org/anope/trunk@1019 31f1291d-b8d6-0310-a050-a5561fc1590b
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@744 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'src/memory.c')
-rw-r--r-- | src/memory.c | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/src/memory.c b/src/memory.c index 6c1d8dda7..c602a1827 100644 --- a/src/memory.c +++ b/src/memory.c @@ -37,15 +37,11 @@ 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; } @@ -66,15 +62,11 @@ 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; } @@ -95,15 +87,11 @@ 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; } @@ -127,15 +115,11 @@ char *sstrdup(const char *src) ret = strdup(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) |