/* simulate `sbrk' with an array in .bss, for `unexec' support for Cygwin;
complete rewrite of xemacs Cygwin `unexec' code
- Copyright (C) 2004-2014 Free Software Foundation, Inc.
+ Copyright (C) 2004-2016 Free Software Foundation, Inc.
This file is part of GNU Emacs.
GNU Emacs is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
-the Free Software Foundation, either version 3 of the License, or
-(at your option) any later version.
+the Free Software Foundation, either version 3 of the License, or (at
+your option) any later version.
GNU Emacs is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
#include <config.h>
#include <stdio.h>
-
#include "lisp.h"
-
#include <unistd.h>
+#include <stdlib.h> /* for exit */
-#ifdef __x86_64__
#ifdef ENABLE_CHECKING
#define STATIC_HEAP_SIZE (28 * 1024 * 1024)
#else
#define STATIC_HEAP_SIZE (19 * 1024 * 1024)
#endif
-#else /* x86 */
-#ifdef ENABLE_CHECKING
-#define STATIC_HEAP_SIZE (18 * 1024 * 1024)
-#else
-#define STATIC_HEAP_SIZE (13 * 1024 * 1024)
-#endif
-#endif /* x86 */
int debug_sheap = 0;