diff options
| author | Paul Eggert | 2016-11-21 08:42:12 -0800 |
|---|---|---|
| committer | Paul Eggert | 2016-11-21 08:42:49 -0800 |
| commit | 9de7c6752bffa99535bb42320a2a1936118a4515 (patch) | |
| tree | c51ff6775294aa172d27245ba6c9b57eefd6417b /src | |
| parent | 209d85fe5691a9334e14bc63b0c836880831a054 (diff) | |
| download | emacs-9de7c6752bffa99535bb42320a2a1936118a4515.tar.gz emacs-9de7c6752bffa99535bb42320a2a1936118a4515.zip | |
Fix another CANNOT_DUMP problem
Reported by Robert Pluim in:
http://lists.gnu.org/archive/html/emacs-devel/2016-11/msg00468.html
* src/emacs.c (might_dump) [CANNOT_DUMP]: Move enum decl from here ...
* src/lisp.h: ... to here.
Diffstat (limited to 'src')
| -rw-r--r-- | src/emacs.c | 4 | ||||
| -rw-r--r-- | src/lisp.h | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/emacs.c b/src/emacs.c index 48df53390b3..f633f09098d 100644 --- a/src/emacs.c +++ b/src/emacs.c | |||
| @@ -130,9 +130,7 @@ Lisp_Object Vlibrary_cache; | |||
| 130 | on subsequent starts. */ | 130 | on subsequent starts. */ |
| 131 | bool initialized; | 131 | bool initialized; |
| 132 | 132 | ||
| 133 | #ifdef CANNOT_DUMP | 133 | #ifndef CANNOT_DUMP |
| 134 | enum { might_dump = false }; | ||
| 135 | #else | ||
| 136 | /* Set to true if this instance of Emacs might dump. */ | 134 | /* Set to true if this instance of Emacs might dump. */ |
| 137 | # ifndef DOUG_LEA_MALLOC | 135 | # ifndef DOUG_LEA_MALLOC |
| 138 | static | 136 | static |
diff --git a/src/lisp.h b/src/lisp.h index e087828d94f..b4ddad1b2a6 100644 --- a/src/lisp.h +++ b/src/lisp.h | |||
| @@ -603,8 +603,10 @@ extern void char_table_set (Lisp_Object, int, Lisp_Object); | |||
| 603 | extern _Noreturn Lisp_Object wrong_type_argument (Lisp_Object, Lisp_Object); | 603 | extern _Noreturn Lisp_Object wrong_type_argument (Lisp_Object, Lisp_Object); |
| 604 | extern _Noreturn void wrong_choice (Lisp_Object, Lisp_Object); | 604 | extern _Noreturn void wrong_choice (Lisp_Object, Lisp_Object); |
| 605 | 605 | ||
| 606 | #ifdef CANNOT_DUMP | ||
| 607 | enum { might_dump = false }; | ||
| 608 | #elif defined DOUG_LEA_MALLOC | ||
| 606 | /* Defined in emacs.c. */ | 609 | /* Defined in emacs.c. */ |
| 607 | #ifdef DOUG_LEA_MALLOC | ||
| 608 | extern bool might_dump; | 610 | extern bool might_dump; |
| 609 | #endif | 611 | #endif |
| 610 | /* True means Emacs has already been initialized. | 612 | /* True means Emacs has already been initialized. |