X-Git-Url: http://git.hcoop.net/bpt/guile.git/blobdiff_plain/adf06a72d53821d34e14fa69b20b10e2f809f593..HEAD:/libguile/gc-malloc.c diff --git a/libguile/gc-malloc.c b/libguile/gc-malloc.c index 63e670564..894ca0668 100644 --- a/libguile/gc-malloc.c +++ b/libguile/gc-malloc.c @@ -1,5 +1,6 @@ /* Copyright (C) 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, - * 2004, 2006, 2008, 2009, 2010, 2011, 2012, 2013 Free Software Foundation, Inc. + * 2004, 2006, 2008, 2009, 2010, 2011, 2012, 2013, + * 2014 Free Software Foundation, Inc. * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public License @@ -56,9 +57,7 @@ extern unsigned long * __libc_ia64_register_backing_store_base; #include "libguile/debug-malloc.h" #endif -#ifdef HAVE_UNISTD_H #include -#endif /* INIT_MALLOC_LIMIT is the initial amount of malloc usage which will @@ -138,7 +137,10 @@ scm_realloc (void *mem, size_t size) if (ptr) return ptr; - scm_memory_error ("realloc"); + scm_report_out_of_memory (); + + /* Not reached. */ + return NULL; } void *