aboutsummaryrefslogtreecommitdiffstats
path: root/src/gmalloc.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/gmalloc.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/gmalloc.c')
-rw-r--r--src/gmalloc.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/src/gmalloc.c b/src/gmalloc.c
index ebba789f610..c07ead741e6 100644
--- a/src/gmalloc.c
+++ b/src/gmalloc.c
@@ -36,9 +36,7 @@ License along with this library. If not, see <https://www.gnu.org/licenses/>.
36#include <pthread.h> 36#include <pthread.h>
37#endif 37#endif
38 38
39#ifdef emacs 39#include "lisp.h"
40# include "lisp.h"
41#endif
42 40
43#include "ptr-bounds.h" 41#include "ptr-bounds.h"
44 42
@@ -2022,11 +2020,7 @@ mabort (enum mcheck_status status)
2022#else 2020#else
2023 fprintf (stderr, "mcheck: %s\n", msg); 2021 fprintf (stderr, "mcheck: %s\n", msg);
2024 fflush (stderr); 2022 fflush (stderr);
2025# ifdef emacs
2026 emacs_abort (); 2023 emacs_abort ();
2027# else
2028 abort ();
2029# endif
2030#endif 2024#endif
2031} 2025}
2032 2026