aboutsummaryrefslogtreecommitdiffstats
path: root/src/ralloc.c
diff options
context:
space:
mode:
authorPaul Eggert2018-12-17 09:31:08 -0800
committerPaul Eggert2018-12-17 09:31:53 -0800
commit4d77c4ac3b9c40c62b1505bcaa1e0377d63a4956 (patch)
tree6ee9aff2af6310152d545996fbc52dee6915d884 /src/ralloc.c
parent739dca7818514f1b7c318fd195f90535a416f57f (diff)
downloademacs-4d77c4ac3b9c40c62b1505bcaa1e0377d63a4956.tar.gz
emacs-4d77c4ac3b9c40c62b1505bcaa1e0377d63a4956.zip
Assume ‘emacs’ is defined in Emacs-only code
* src/charset.c, src/coding.c, src/coding.h, src/gmalloc.c: * src/ralloc.c, src/regex-emacs.c: Simplify slightly by assuming that ‘emacs’ is defined. These modules have long been specific to Emacs, and are not used elsewhere.
Diffstat (limited to 'src/ralloc.c')
-rw-r--r--src/ralloc.c12
1 files changed, 4 insertions, 8 deletions
diff --git a/src/ralloc.c b/src/ralloc.c
index 046d5507342..4dc9fe348b0 100644
--- a/src/ralloc.c
+++ b/src/ralloc.c
@@ -26,11 +26,9 @@ along with GNU Emacs. If not, see <https://www.gnu.org/licenses/>. */
26 26
27#include <stddef.h> 27#include <stddef.h>
28 28
29#ifdef emacs 29#include "lisp.h"
30# include "lisp.h" 30#include "blockinput.h"
31# include "blockinput.h" 31#include <unistd.h>
32# include <unistd.h>
33#endif
34 32
35#include "getpagesize.h" 33#include "getpagesize.h"
36 34
@@ -924,9 +922,7 @@ r_alloc_free (void **ptr)
924 free_bloc (dead_bloc); 922 free_bloc (dead_bloc);
925 *ptr = 0; 923 *ptr = 0;
926 924
927#ifdef emacs
928 refill_memory_reserve (); 925 refill_memory_reserve ();
929#endif
930} 926}
931 927
932/* Given a pointer at address PTR to relocatable data, resize it to SIZE. 928/* Given a pointer at address PTR to relocatable data, resize it to SIZE.
@@ -1000,7 +996,7 @@ r_re_alloc (void **ptr, size_t size)
1000} 996}
1001 997
1002 998
1003#if defined (emacs) && defined (DOUG_LEA_MALLOC) 999#ifdef DOUG_LEA_MALLOC
1004 1000
1005/* Reinitialize the morecore hook variables after restarting a dumped 1001/* Reinitialize the morecore hook variables after restarting a dumped
1006 Emacs. This is needed when using Doug Lea's malloc from GNU libc. */ 1002 Emacs. This is needed when using Doug Lea's malloc from GNU libc. */