aboutsummaryrefslogtreecommitdiffhomepage
path: root/util.cpp
diff options
context:
space:
mode:
authorGravatar ridiculousfish <corydoras@ridiculousfish.com>2012-07-20 22:11:05 -0700
committerGravatar ridiculousfish <corydoras@ridiculousfish.com>2012-07-20 22:11:05 -0700
commit261bf12c91286ffca9fcb0bf761d6d1666359dc7 (patch)
tree4b6d388843bad1aadae666fa8597c9f0d50488b0 /util.cpp
parentb08fb866378693d2e75f17fdfe5e60401a29136a (diff)
Lots of miscellaneous cleanup. Unified the path_get_cd_path, path_allocate_cd_path, etc. functions
Diffstat (limited to 'util.cpp')
-rw-r--r--util.cpp35
1 files changed, 0 insertions, 35 deletions
diff --git a/util.cpp b/util.cpp
index 5343f332..ce36bd66 100644
--- a/util.cpp
+++ b/util.cpp
@@ -47,41 +47,6 @@
*/
#define SB_MAX_SIZE (128*1024*1024)
-/**
- Handle oom condition. Default action is to print a stack trace and
- exit, but an alternative action can be specified.
- */
-#define oom_handler( p ) \
- { \
- if( oom_handler_internal == util_die_on_oom ) \
- { \
- DIE_MEM(); \
- } \
- oom_handler_internal( p ); \
- } \
-
-
-
-void util_die_on_oom( void * p);
-
-void (*oom_handler_internal)(void *) = &util_die_on_oom;
-
-void (*util_set_oom_handler( void (*h)(void *) ))(void *)
-{
- void (*old)(void *) = oom_handler_internal;
-
- if( h )
- oom_handler_internal = h;
- else
- oom_handler_internal = &util_die_on_oom;
-
- return old;
-}
-
-void util_die_on_oom( void *p )
-{
-}
-
int mini( int a,
int b )
{