diff options
| author | Paul Eggert | 2012-09-15 00:06:56 -0700 |
|---|---|---|
| committer | Paul Eggert | 2012-09-15 00:06:56 -0700 |
| commit | 0328b6de4a92676b4ad4616095ce19a4f51d1c4d (patch) | |
| tree | fba6da827e1383b3ff6ee4b738d2ac74a5956dde /src | |
| parent | 823751606a90e3850551b43e707d58bbf58033dc (diff) | |
| download | emacs-0328b6de4a92676b4ad4616095ce19a4f51d1c4d.tar.gz emacs-0328b6de4a92676b4ad4616095ce19a4f51d1c4d.zip | |
Port better to POSIX hosts lacking _setjmp.
* configure.ac (HAVE__SETJMP, HAVE_SIGSETJMP): New symbols.
(_setjmp, _longjmp): Remove.
* src/lisp.h: Include <setjmp.h> here, since we use its symbols here.
All instances of '#include <setjmp.h>' removed, if the
only reason for the instance was because "lisp.h" was included.
(sys_jmp_buf, sys_setjmp, sys_longjmp): New symbols.
Unless otherwise specified, replace all uses of jmp_buf, _setjmp,
and _longjmp with the new symbols. Emacs already uses _setjmp if
available, so this change affects only POSIXish hosts that have
sigsetjmp but not _setjmp, such as some versions of Solaris and
Unixware. (Also, POSIX-2008 marks _setjmp as obsolescent.)
* src/image.c (_setjmp, _longjmp) [HAVE_PNG && !HAVE__SETJMP]: New macros.
(png_load_body) [HAVE_PNG]:
(PNG_LONGJMP) [HAVE_PNG && PNG_LIBPNG_VER < 10500]:
(PNG_JMPBUF) [HAVE_PNG && PNG_LIBPNG_VER >= 10500]:
Use _setjmp and _longjmp rather than sys_setjmp and sys_longjmp,
since PNG requires jmp_buf. This is the only exception to the
general rule that we now use sys_setjmp and sys_longjmp.
This exception is OK since this code does not change the signal
mask or longjmp out of a signal handler.
Fixes: debbugs:12446
Diffstat (limited to 'src')
98 files changed, 108 insertions, 137 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index b1b4dc8bbcd..fb59e9e24dc 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,25 @@ | |||
| 1 | 2012-09-15 Paul Eggert <eggert@cs.ucla.edu> | ||
| 2 | |||
| 3 | Port better to POSIX hosts lacking _setjmp (Bug#12446). | ||
| 4 | * lisp.h: Include <setjmp.h> here, since we use its symbols here. | ||
| 5 | All instances of '#include <setjmp.h>' removed, if the | ||
| 6 | only reason for the instance was because "lisp.h" was included. | ||
| 7 | (sys_jmp_buf, sys_setjmp, sys_longjmp): New symbols. | ||
| 8 | Unless otherwise specified, replace all uses of jmp_buf, _setjmp, | ||
| 9 | and _longjmp with the new symbols. Emacs already uses _setjmp if | ||
| 10 | available, so this change affects only POSIXish hosts that have | ||
| 11 | sigsetjmp but not _setjmp, such as some versions of Solaris and | ||
| 12 | Unixware. (Also, POSIX-2008 marks _setjmp as obsolescent.) | ||
| 13 | * image.c (_setjmp, _longjmp) [HAVE_PNG && !HAVE__SETJMP]: New macros. | ||
| 14 | (png_load_body) [HAVE_PNG]: | ||
| 15 | (PNG_LONGJMP) [HAVE_PNG && PNG_LIBPNG_VER < 10500]: | ||
| 16 | (PNG_JMPBUF) [HAVE_PNG && PNG_LIBPNG_VER >= 10500]: | ||
| 17 | Use _setjmp and _longjmp rather than sys_setjmp and sys_longjmp, | ||
| 18 | since PNG requires jmp_buf. This is the only exception to the | ||
| 19 | general rule that we now use sys_setjmp and sys_longjmp. | ||
| 20 | This exception is OK since this code does not change the signal | ||
| 21 | mask or longjmp out of a signal handler. | ||
| 22 | |||
| 1 | 2012-09-14 Paul Eggert <eggert@cs.ucla.edu> | 23 | 2012-09-14 Paul Eggert <eggert@cs.ucla.edu> |
| 2 | 24 | ||
| 3 | * alloc.c [!SYSTEM_MALLOC && !SYNC_INPUT && HAVE_PTHREAD]: | 25 | * alloc.c [!SYSTEM_MALLOC && !SYNC_INPUT && HAVE_PTHREAD]: |
diff --git a/src/alloc.c b/src/alloc.c index 25cf03dfa2e..0bfbb0c88b1 100644 --- a/src/alloc.c +++ b/src/alloc.c | |||
| @@ -24,7 +24,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 24 | 24 | ||
| 25 | #include <stdio.h> | 25 | #include <stdio.h> |
| 26 | #include <limits.h> /* For CHAR_BIT. */ | 26 | #include <limits.h> /* For CHAR_BIT. */ |
| 27 | #include <setjmp.h> | ||
| 28 | 27 | ||
| 29 | #ifdef ENABLE_CHECKING | 28 | #ifdef ENABLE_CHECKING |
| 30 | #include <signal.h> /* For SIGABRT. */ | 29 | #include <signal.h> /* For SIGABRT. */ |
| @@ -45,7 +44,7 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 45 | #include "frame.h" | 44 | #include "frame.h" |
| 46 | #include "blockinput.h" | 45 | #include "blockinput.h" |
| 47 | #include "termhooks.h" /* For struct terminal. */ | 46 | #include "termhooks.h" /* For struct terminal. */ |
| 48 | #include <setjmp.h> | 47 | |
| 49 | #include <verify.h> | 48 | #include <verify.h> |
| 50 | 49 | ||
| 51 | /* GC_CHECK_MARKED_OBJECTS means do sanity checks on allocated objects. | 50 | /* GC_CHECK_MARKED_OBJECTS means do sanity checks on allocated objects. |
| @@ -4764,14 +4763,14 @@ test_setjmp (void) | |||
| 4764 | { | 4763 | { |
| 4765 | char buf[10]; | 4764 | char buf[10]; |
| 4766 | register int x; | 4765 | register int x; |
| 4767 | jmp_buf jbuf; | 4766 | sys_jmp_buf jbuf; |
| 4768 | 4767 | ||
| 4769 | /* Arrange for X to be put in a register. */ | 4768 | /* Arrange for X to be put in a register. */ |
| 4770 | sprintf (buf, "1"); | 4769 | sprintf (buf, "1"); |
| 4771 | x = strlen (buf); | 4770 | x = strlen (buf); |
| 4772 | x = 2 * x - 1; | 4771 | x = 2 * x - 1; |
| 4773 | 4772 | ||
| 4774 | _setjmp (jbuf); | 4773 | sys_setjmp (jbuf); |
| 4775 | if (longjmps_done == 1) | 4774 | if (longjmps_done == 1) |
| 4776 | { | 4775 | { |
| 4777 | /* Came here after the longjmp at the end of the function. | 4776 | /* Came here after the longjmp at the end of the function. |
| @@ -4796,7 +4795,7 @@ test_setjmp (void) | |||
| 4796 | ++longjmps_done; | 4795 | ++longjmps_done; |
| 4797 | x = 2; | 4796 | x = 2; |
| 4798 | if (longjmps_done == 1) | 4797 | if (longjmps_done == 1) |
| 4799 | _longjmp (jbuf, 1); | 4798 | sys_longjmp (jbuf, 1); |
| 4800 | } | 4799 | } |
| 4801 | 4800 | ||
| 4802 | #endif /* not GC_SAVE_REGISTERS_ON_STACK && not GC_SETJMP_WORKS */ | 4801 | #endif /* not GC_SAVE_REGISTERS_ON_STACK && not GC_SETJMP_WORKS */ |
| @@ -4902,7 +4901,7 @@ mark_stack (void) | |||
| 4902 | /* jmp_buf may not be aligned enough on darwin-ppc64 */ | 4901 | /* jmp_buf may not be aligned enough on darwin-ppc64 */ |
| 4903 | union aligned_jmpbuf { | 4902 | union aligned_jmpbuf { |
| 4904 | Lisp_Object o; | 4903 | Lisp_Object o; |
| 4905 | jmp_buf j; | 4904 | sys_jmp_buf j; |
| 4906 | } j; | 4905 | } j; |
| 4907 | volatile bool stack_grows_down_p = (char *) &j > (char *) stack_base; | 4906 | volatile bool stack_grows_down_p = (char *) &j > (char *) stack_base; |
| 4908 | #endif | 4907 | #endif |
| @@ -4938,7 +4937,7 @@ mark_stack (void) | |||
| 4938 | } | 4937 | } |
| 4939 | #endif /* GC_SETJMP_WORKS */ | 4938 | #endif /* GC_SETJMP_WORKS */ |
| 4940 | 4939 | ||
| 4941 | _setjmp (j.j); | 4940 | sys_setjmp (j.j); |
| 4942 | end = stack_grows_down_p ? (char *) &j + sizeof j : (char *) &j; | 4941 | end = stack_grows_down_p ? (char *) &j + sizeof j : (char *) &j; |
| 4943 | #endif /* not GC_SAVE_REGISTERS_ON_STACK */ | 4942 | #endif /* not GC_SAVE_REGISTERS_ON_STACK */ |
| 4944 | #endif /* not HAVE___BUILTIN_UNWIND_INIT */ | 4943 | #endif /* not HAVE___BUILTIN_UNWIND_INIT */ |
diff --git a/src/atimer.c b/src/atimer.c index 34731920af5..80b813fe4fe 100644 --- a/src/atimer.c +++ b/src/atimer.c | |||
| @@ -18,7 +18,7 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 18 | 18 | ||
| 19 | #include <config.h> | 19 | #include <config.h> |
| 20 | #include <stdio.h> | 20 | #include <stdio.h> |
| 21 | #include <setjmp.h> | 21 | |
| 22 | #include "lisp.h" | 22 | #include "lisp.h" |
| 23 | #include "syssignal.h" | 23 | #include "syssignal.h" |
| 24 | #include "systime.h" | 24 | #include "systime.h" |
diff --git a/src/bidi.c b/src/bidi.c index 4186a46e19e..af0209565e2 100644 --- a/src/bidi.c +++ b/src/bidi.c | |||
| @@ -56,7 +56,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 56 | 56 | ||
| 57 | #include <config.h> | 57 | #include <config.h> |
| 58 | #include <stdio.h> | 58 | #include <stdio.h> |
| 59 | #include <setjmp.h> | ||
| 60 | 59 | ||
| 61 | #include "lisp.h" | 60 | #include "lisp.h" |
| 62 | #include "character.h" | 61 | #include "character.h" |
diff --git a/src/buffer.c b/src/buffer.c index d512547d34e..b020edb9962 100644 --- a/src/buffer.c +++ b/src/buffer.c | |||
| @@ -26,7 +26,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 26 | #include <sys/param.h> | 26 | #include <sys/param.h> |
| 27 | #include <errno.h> | 27 | #include <errno.h> |
| 28 | #include <stdio.h> | 28 | #include <stdio.h> |
| 29 | #include <setjmp.h> | ||
| 30 | #include <unistd.h> | 29 | #include <unistd.h> |
| 31 | 30 | ||
| 32 | #include <verify.h> | 31 | #include <verify.h> |
diff --git a/src/bytecode.c b/src/bytecode.c index 97730636d0e..b151078f60f 100644 --- a/src/bytecode.c +++ b/src/bytecode.c | |||
| @@ -33,7 +33,7 @@ by Hallvard: | |||
| 33 | */ | 33 | */ |
| 34 | 34 | ||
| 35 | #include <config.h> | 35 | #include <config.h> |
| 36 | #include <setjmp.h> | 36 | |
| 37 | #include "lisp.h" | 37 | #include "lisp.h" |
| 38 | #include "character.h" | 38 | #include "character.h" |
| 39 | #include "buffer.h" | 39 | #include "buffer.h" |
diff --git a/src/callint.c b/src/callint.c index b11545ddea2..c4c087e83d7 100644 --- a/src/callint.c +++ b/src/callint.c | |||
| @@ -19,7 +19,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 19 | 19 | ||
| 20 | 20 | ||
| 21 | #include <config.h> | 21 | #include <config.h> |
| 22 | #include <setjmp.h> | ||
| 23 | 22 | ||
| 24 | #include "lisp.h" | 23 | #include "lisp.h" |
| 25 | #include "character.h" | 24 | #include "character.h" |
diff --git a/src/callproc.c b/src/callproc.c index a92959a1559..9171337ee76 100644 --- a/src/callproc.c +++ b/src/callproc.c | |||
| @@ -21,7 +21,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 21 | #include <config.h> | 21 | #include <config.h> |
| 22 | #include <errno.h> | 22 | #include <errno.h> |
| 23 | #include <stdio.h> | 23 | #include <stdio.h> |
| 24 | #include <setjmp.h> | ||
| 25 | #include <sys/types.h> | 24 | #include <sys/types.h> |
| 26 | #include <unistd.h> | 25 | #include <unistd.h> |
| 27 | 26 | ||
diff --git a/src/casefiddle.c b/src/casefiddle.c index 1102054b153..e3654627576 100644 --- a/src/casefiddle.c +++ b/src/casefiddle.c | |||
| @@ -19,7 +19,7 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 19 | 19 | ||
| 20 | 20 | ||
| 21 | #include <config.h> | 21 | #include <config.h> |
| 22 | #include <setjmp.h> | 22 | |
| 23 | #include "lisp.h" | 23 | #include "lisp.h" |
| 24 | #include "character.h" | 24 | #include "character.h" |
| 25 | #include "buffer.h" | 25 | #include "buffer.h" |
diff --git a/src/casetab.c b/src/casetab.c index 3e22d0d0b77..a84bc9202d0 100644 --- a/src/casetab.c +++ b/src/casetab.c | |||
| @@ -19,7 +19,7 @@ You should have received a copy of the GNU General Public License | |||
| 19 | along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | 19 | along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ |
| 20 | 20 | ||
| 21 | #include <config.h> | 21 | #include <config.h> |
| 22 | #include <setjmp.h> | 22 | |
| 23 | #include "lisp.h" | 23 | #include "lisp.h" |
| 24 | #include "character.h" | 24 | #include "character.h" |
| 25 | #include "buffer.h" | 25 | #include "buffer.h" |
diff --git a/src/category.c b/src/category.c index 80dc6938d8b..01a6f54ad17 100644 --- a/src/category.c +++ b/src/category.c | |||
| @@ -32,7 +32,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 32 | 32 | ||
| 33 | #define CATEGORY_INLINE EXTERN_INLINE | 33 | #define CATEGORY_INLINE EXTERN_INLINE |
| 34 | 34 | ||
| 35 | #include <setjmp.h> | ||
| 36 | #include "lisp.h" | 35 | #include "lisp.h" |
| 37 | #include "character.h" | 36 | #include "character.h" |
| 38 | #include "buffer.h" | 37 | #include "buffer.h" |
| @@ -26,7 +26,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 26 | #include <config.h> | 26 | #include <config.h> |
| 27 | 27 | ||
| 28 | #include <stdio.h> | 28 | #include <stdio.h> |
| 29 | #include <setjmp.h> | ||
| 30 | #include <limits.h> | 29 | #include <limits.h> |
| 31 | 30 | ||
| 32 | #include "lisp.h" | 31 | #include "lisp.h" |
diff --git a/src/character.c b/src/character.c index 37963d1878c..def1ad090fd 100644 --- a/src/character.c +++ b/src/character.c | |||
| @@ -36,7 +36,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 36 | #ifdef emacs | 36 | #ifdef emacs |
| 37 | 37 | ||
| 38 | #include <sys/types.h> | 38 | #include <sys/types.h> |
| 39 | #include <setjmp.h> | ||
| 40 | #include <intprops.h> | 39 | #include <intprops.h> |
| 41 | #include "lisp.h" | 40 | #include "lisp.h" |
| 42 | #include "character.h" | 41 | #include "character.h" |
diff --git a/src/charset.c b/src/charset.c index 972a0598059..d8c38e5ea3b 100644 --- a/src/charset.c +++ b/src/charset.c | |||
| @@ -32,7 +32,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 32 | #include <unistd.h> | 32 | #include <unistd.h> |
| 33 | #include <limits.h> | 33 | #include <limits.h> |
| 34 | #include <sys/types.h> | 34 | #include <sys/types.h> |
| 35 | #include <setjmp.h> | ||
| 36 | #include <c-ctype.h> | 35 | #include <c-ctype.h> |
| 37 | #include "lisp.h" | 36 | #include "lisp.h" |
| 38 | #include "character.h" | 37 | #include "character.h" |
diff --git a/src/chartab.c b/src/chartab.c index c14df0ebac6..e864514e336 100644 --- a/src/chartab.c +++ b/src/chartab.c | |||
| @@ -19,7 +19,7 @@ You should have received a copy of the GNU General Public License | |||
| 19 | along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | 19 | along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ |
| 20 | 20 | ||
| 21 | #include <config.h> | 21 | #include <config.h> |
| 22 | #include <setjmp.h> | 22 | |
| 23 | #include "lisp.h" | 23 | #include "lisp.h" |
| 24 | #include "character.h" | 24 | #include "character.h" |
| 25 | #include "charset.h" | 25 | #include "charset.h" |
| @@ -20,7 +20,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 20 | 20 | ||
| 21 | #include <config.h> | 21 | #include <config.h> |
| 22 | #include <stdio.h> | 22 | #include <stdio.h> |
| 23 | #include <setjmp.h> | ||
| 24 | 23 | ||
| 25 | #include "lisp.h" | 24 | #include "lisp.h" |
| 26 | #include "frame.h" | 25 | #include "frame.h" |
diff --git a/src/cmds.c b/src/cmds.c index 90d3cd6dced..45f7df948ae 100644 --- a/src/cmds.c +++ b/src/cmds.c | |||
| @@ -19,7 +19,7 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 19 | 19 | ||
| 20 | 20 | ||
| 21 | #include <config.h> | 21 | #include <config.h> |
| 22 | #include <setjmp.h> | 22 | |
| 23 | #include "lisp.h" | 23 | #include "lisp.h" |
| 24 | #include "commands.h" | 24 | #include "commands.h" |
| 25 | #include "character.h" | 25 | #include "character.h" |
diff --git a/src/coding.c b/src/coding.c index 94a2d9fea80..4b3d22f956c 100644 --- a/src/coding.c +++ b/src/coding.c | |||
| @@ -285,7 +285,6 @@ encode_coding_XXX (struct coding_system *coding) | |||
| 285 | 285 | ||
| 286 | #include <config.h> | 286 | #include <config.h> |
| 287 | #include <stdio.h> | 287 | #include <stdio.h> |
| 288 | #include <setjmp.h> | ||
| 289 | 288 | ||
| 290 | #include "lisp.h" | 289 | #include "lisp.h" |
| 291 | #include "character.h" | 290 | #include "character.h" |
diff --git a/src/composite.c b/src/composite.c index eddabb66d33..ae46df0a573 100644 --- a/src/composite.c +++ b/src/composite.c | |||
| @@ -26,7 +26,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 26 | 26 | ||
| 27 | #define COMPOSITE_INLINE EXTERN_INLINE | 27 | #define COMPOSITE_INLINE EXTERN_INLINE |
| 28 | 28 | ||
| 29 | #include <setjmp.h> | ||
| 30 | #include "lisp.h" | 29 | #include "lisp.h" |
| 31 | #include "character.h" | 30 | #include "character.h" |
| 32 | #include "buffer.h" | 31 | #include "buffer.h" |
diff --git a/src/data.c b/src/data.c index 5d7f036b70d..72d7c8ccf9a 100644 --- a/src/data.c +++ b/src/data.c | |||
| @@ -20,7 +20,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 20 | 20 | ||
| 21 | #include <config.h> | 21 | #include <config.h> |
| 22 | #include <stdio.h> | 22 | #include <stdio.h> |
| 23 | #include <setjmp.h> | ||
| 24 | 23 | ||
| 25 | #include <intprops.h> | 24 | #include <intprops.h> |
| 26 | 25 | ||
diff --git a/src/dbusbind.c b/src/dbusbind.c index 901820648cb..c2eefd605bb 100644 --- a/src/dbusbind.c +++ b/src/dbusbind.c | |||
| @@ -21,7 +21,7 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 21 | #ifdef HAVE_DBUS | 21 | #ifdef HAVE_DBUS |
| 22 | #include <stdio.h> | 22 | #include <stdio.h> |
| 23 | #include <dbus/dbus.h> | 23 | #include <dbus/dbus.h> |
| 24 | #include <setjmp.h> | 24 | |
| 25 | #include "lisp.h" | 25 | #include "lisp.h" |
| 26 | #include "frame.h" | 26 | #include "frame.h" |
| 27 | #include "termhooks.h" | 27 | #include "termhooks.h" |
diff --git a/src/dired.c b/src/dired.c index 9af5f76821b..3aa27ecf920 100644 --- a/src/dired.c +++ b/src/dired.c | |||
| @@ -22,7 +22,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 22 | #include <stdio.h> | 22 | #include <stdio.h> |
| 23 | #include <sys/types.h> | 23 | #include <sys/types.h> |
| 24 | #include <sys/stat.h> | 24 | #include <sys/stat.h> |
| 25 | #include <setjmp.h> | ||
| 26 | 25 | ||
| 27 | #ifdef HAVE_PWD_H | 26 | #ifdef HAVE_PWD_H |
| 28 | #include <pwd.h> | 27 | #include <pwd.h> |
diff --git a/src/dispnew.c b/src/dispnew.c index f6186e86048..5827316a7b7 100644 --- a/src/dispnew.c +++ b/src/dispnew.c | |||
| @@ -22,7 +22,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 22 | #define DISPEXTERN_INLINE EXTERN_INLINE | 22 | #define DISPEXTERN_INLINE EXTERN_INLINE |
| 23 | 23 | ||
| 24 | #include <stdio.h> | 24 | #include <stdio.h> |
| 25 | #include <setjmp.h> | ||
| 26 | #include <unistd.h> | 25 | #include <unistd.h> |
| 27 | 26 | ||
| 28 | #include "lisp.h" | 27 | #include "lisp.h" |
| @@ -22,7 +22,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 22 | 22 | ||
| 23 | #include <sys/types.h> | 23 | #include <sys/types.h> |
| 24 | #include <sys/file.h> /* Must be after sys/types.h for USG*/ | 24 | #include <sys/file.h> /* Must be after sys/types.h for USG*/ |
| 25 | #include <setjmp.h> | ||
| 26 | #include <fcntl.h> | 25 | #include <fcntl.h> |
| 27 | #include <unistd.h> | 26 | #include <unistd.h> |
| 28 | 27 | ||
diff --git a/src/doprnt.c b/src/doprnt.c index 3b7391f07d4..caa56d6ae88 100644 --- a/src/doprnt.c +++ b/src/doprnt.c | |||
| @@ -102,7 +102,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 102 | 102 | ||
| 103 | #include <config.h> | 103 | #include <config.h> |
| 104 | #include <stdio.h> | 104 | #include <stdio.h> |
| 105 | #include <setjmp.h> | ||
| 106 | #include <float.h> | 105 | #include <float.h> |
| 107 | #include <unistd.h> | 106 | #include <unistd.h> |
| 108 | #include <limits.h> | 107 | #include <limits.h> |
diff --git a/src/dosfns.c b/src/dosfns.c index 21676f4b4f5..3c649f4d534 100644 --- a/src/dosfns.c +++ b/src/dosfns.c | |||
| @@ -30,7 +30,7 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 30 | #include <dos.h> | 30 | #include <dos.h> |
| 31 | #undef gettime | 31 | #undef gettime |
| 32 | #undef settime | 32 | #undef settime |
| 33 | #include <setjmp.h> | 33 | |
| 34 | #include "lisp.h" | 34 | #include "lisp.h" |
| 35 | #include "character.h" | 35 | #include "character.h" |
| 36 | #include "buffer.h" | 36 | #include "buffer.h" |
diff --git a/src/editfns.c b/src/editfns.c index 299cad07fd7..c6744648bc5 100644 --- a/src/editfns.c +++ b/src/editfns.c | |||
| @@ -21,7 +21,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 21 | #include <config.h> | 21 | #include <config.h> |
| 22 | #include <sys/types.h> | 22 | #include <sys/types.h> |
| 23 | #include <stdio.h> | 23 | #include <stdio.h> |
| 24 | #include <setjmp.h> | ||
| 25 | 24 | ||
| 26 | #ifdef HAVE_PWD_H | 25 | #ifdef HAVE_PWD_H |
| 27 | #include <pwd.h> | 26 | #include <pwd.h> |
diff --git a/src/emacs.c b/src/emacs.c index e8150631311..1416bf76c43 100644 --- a/src/emacs.c +++ b/src/emacs.c | |||
| @@ -25,7 +25,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 25 | 25 | ||
| 26 | #include <sys/types.h> | 26 | #include <sys/types.h> |
| 27 | #include <sys/file.h> | 27 | #include <sys/file.h> |
| 28 | #include <setjmp.h> | ||
| 29 | #include <unistd.h> | 28 | #include <unistd.h> |
| 30 | 29 | ||
| 31 | #include "lisp.h" | 30 | #include "lisp.h" |
diff --git a/src/emacsgtkfixed.c b/src/emacsgtkfixed.c index c0d29a640ed..d10185072cc 100644 --- a/src/emacsgtkfixed.c +++ b/src/emacsgtkfixed.c | |||
| @@ -22,7 +22,7 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 22 | 22 | ||
| 23 | #include "emacsgtkfixed.h" | 23 | #include "emacsgtkfixed.h" |
| 24 | #include <stdio.h> | 24 | #include <stdio.h> |
| 25 | #include <setjmp.h> | 25 | |
| 26 | #include "lisp.h" | 26 | #include "lisp.h" |
| 27 | #include "frame.h" | 27 | #include "frame.h" |
| 28 | #include "xterm.h" | 28 | #include "xterm.h" |
diff --git a/src/eval.c b/src/eval.c index 3c0c65e9366..6cca13a8fda 100644 --- a/src/eval.c +++ b/src/eval.c | |||
| @@ -19,7 +19,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 19 | 19 | ||
| 20 | #include <config.h> | 20 | #include <config.h> |
| 21 | #include <limits.h> | 21 | #include <limits.h> |
| 22 | #include <setjmp.h> | ||
| 23 | #include <stdio.h> | 22 | #include <stdio.h> |
| 24 | #include "lisp.h" | 23 | #include "lisp.h" |
| 25 | #include "blockinput.h" | 24 | #include "blockinput.h" |
| @@ -1072,7 +1071,7 @@ internal_catch (Lisp_Object tag, Lisp_Object (*func) (Lisp_Object), Lisp_Object | |||
| 1072 | catchlist = &c; | 1071 | catchlist = &c; |
| 1073 | 1072 | ||
| 1074 | /* Call FUNC. */ | 1073 | /* Call FUNC. */ |
| 1075 | if (! _setjmp (c.jmp)) | 1074 | if (! sys_setjmp (c.jmp)) |
| 1076 | c.val = (*func) (arg); | 1075 | c.val = (*func) (arg); |
| 1077 | 1076 | ||
| 1078 | /* Throw works by a longjmp that comes right here. */ | 1077 | /* Throw works by a longjmp that comes right here. */ |
| @@ -1140,7 +1139,7 @@ unwind_to_catch (struct catchtag *catch, Lisp_Object value) | |||
| 1140 | backtrace_list = catch->backlist; | 1139 | backtrace_list = catch->backlist; |
| 1141 | lisp_eval_depth = catch->lisp_eval_depth; | 1140 | lisp_eval_depth = catch->lisp_eval_depth; |
| 1142 | 1141 | ||
| 1143 | _longjmp (catch->jmp, 1); | 1142 | sys_longjmp (catch->jmp, 1); |
| 1144 | } | 1143 | } |
| 1145 | 1144 | ||
| 1146 | DEFUN ("throw", Fthrow, Sthrow, 2, 2, 0, | 1145 | DEFUN ("throw", Fthrow, Sthrow, 2, 2, 0, |
| @@ -1246,7 +1245,7 @@ internal_lisp_condition_case (volatile Lisp_Object var, Lisp_Object bodyform, | |||
| 1246 | c.interrupt_input_blocked = interrupt_input_blocked; | 1245 | c.interrupt_input_blocked = interrupt_input_blocked; |
| 1247 | c.gcpro = gcprolist; | 1246 | c.gcpro = gcprolist; |
| 1248 | c.byte_stack = byte_stack_list; | 1247 | c.byte_stack = byte_stack_list; |
| 1249 | if (_setjmp (c.jmp)) | 1248 | if (sys_setjmp (c.jmp)) |
| 1250 | { | 1249 | { |
| 1251 | if (!NILP (h.var)) | 1250 | if (!NILP (h.var)) |
| 1252 | specbind (h.var, c.val); | 1251 | specbind (h.var, c.val); |
| @@ -1301,7 +1300,7 @@ internal_condition_case (Lisp_Object (*bfun) (void), Lisp_Object handlers, | |||
| 1301 | c.interrupt_input_blocked = interrupt_input_blocked; | 1300 | c.interrupt_input_blocked = interrupt_input_blocked; |
| 1302 | c.gcpro = gcprolist; | 1301 | c.gcpro = gcprolist; |
| 1303 | c.byte_stack = byte_stack_list; | 1302 | c.byte_stack = byte_stack_list; |
| 1304 | if (_setjmp (c.jmp)) | 1303 | if (sys_setjmp (c.jmp)) |
| 1305 | { | 1304 | { |
| 1306 | return (*hfun) (c.val); | 1305 | return (*hfun) (c.val); |
| 1307 | } | 1306 | } |
| @@ -1339,7 +1338,7 @@ internal_condition_case_1 (Lisp_Object (*bfun) (Lisp_Object), Lisp_Object arg, | |||
| 1339 | c.interrupt_input_blocked = interrupt_input_blocked; | 1338 | c.interrupt_input_blocked = interrupt_input_blocked; |
| 1340 | c.gcpro = gcprolist; | 1339 | c.gcpro = gcprolist; |
| 1341 | c.byte_stack = byte_stack_list; | 1340 | c.byte_stack = byte_stack_list; |
| 1342 | if (_setjmp (c.jmp)) | 1341 | if (sys_setjmp (c.jmp)) |
| 1343 | { | 1342 | { |
| 1344 | return (*hfun) (c.val); | 1343 | return (*hfun) (c.val); |
| 1345 | } | 1344 | } |
| @@ -1381,7 +1380,7 @@ internal_condition_case_2 (Lisp_Object (*bfun) (Lisp_Object, Lisp_Object), | |||
| 1381 | c.interrupt_input_blocked = interrupt_input_blocked; | 1380 | c.interrupt_input_blocked = interrupt_input_blocked; |
| 1382 | c.gcpro = gcprolist; | 1381 | c.gcpro = gcprolist; |
| 1383 | c.byte_stack = byte_stack_list; | 1382 | c.byte_stack = byte_stack_list; |
| 1384 | if (_setjmp (c.jmp)) | 1383 | if (sys_setjmp (c.jmp)) |
| 1385 | { | 1384 | { |
| 1386 | return (*hfun) (c.val); | 1385 | return (*hfun) (c.val); |
| 1387 | } | 1386 | } |
| @@ -1425,7 +1424,7 @@ internal_condition_case_n (Lisp_Object (*bfun) (ptrdiff_t, Lisp_Object *), | |||
| 1425 | c.interrupt_input_blocked = interrupt_input_blocked; | 1424 | c.interrupt_input_blocked = interrupt_input_blocked; |
| 1426 | c.gcpro = gcprolist; | 1425 | c.gcpro = gcprolist; |
| 1427 | c.byte_stack = byte_stack_list; | 1426 | c.byte_stack = byte_stack_list; |
| 1428 | if (_setjmp (c.jmp)) | 1427 | if (sys_setjmp (c.jmp)) |
| 1429 | { | 1428 | { |
| 1430 | return (*hfun) (c.val, nargs, args); | 1429 | return (*hfun) (c.val, nargs, args); |
| 1431 | } | 1430 | } |
diff --git a/src/fileio.c b/src/fileio.c index f0b3f0cc2fd..ca71af7ed95 100644 --- a/src/fileio.c +++ b/src/fileio.c | |||
| @@ -23,7 +23,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 23 | #include <stdio.h> | 23 | #include <stdio.h> |
| 24 | #include <sys/types.h> | 24 | #include <sys/types.h> |
| 25 | #include <sys/stat.h> | 25 | #include <sys/stat.h> |
| 26 | #include <setjmp.h> | ||
| 27 | #include <unistd.h> | 26 | #include <unistd.h> |
| 28 | 27 | ||
| 29 | #ifdef HAVE_PWD_H | 28 | #ifdef HAVE_PWD_H |
diff --git a/src/filelock.c b/src/filelock.c index 1f599c68912..17f3f253249 100644 --- a/src/filelock.c +++ b/src/filelock.c | |||
| @@ -23,7 +23,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 23 | #include <sys/stat.h> | 23 | #include <sys/stat.h> |
| 24 | #include <signal.h> | 24 | #include <signal.h> |
| 25 | #include <stdio.h> | 25 | #include <stdio.h> |
| 26 | #include <setjmp.h> | ||
| 27 | 26 | ||
| 28 | #ifdef HAVE_PWD_H | 27 | #ifdef HAVE_PWD_H |
| 29 | #include <pwd.h> | 28 | #include <pwd.h> |
diff --git a/src/floatfns.c b/src/floatfns.c index 66d7ca4af2c..4fe209fcb61 100644 --- a/src/floatfns.c +++ b/src/floatfns.c | |||
| @@ -29,7 +29,7 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 29 | */ | 29 | */ |
| 30 | 30 | ||
| 31 | #include <config.h> | 31 | #include <config.h> |
| 32 | #include <setjmp.h> | 32 | |
| 33 | #include "lisp.h" | 33 | #include "lisp.h" |
| 34 | #include "syssignal.h" | 34 | #include "syssignal.h" |
| 35 | 35 | ||
| @@ -21,7 +21,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 21 | 21 | ||
| 22 | #include <unistd.h> | 22 | #include <unistd.h> |
| 23 | #include <time.h> | 23 | #include <time.h> |
| 24 | #include <setjmp.h> | ||
| 25 | 24 | ||
| 26 | #include <intprops.h> | 25 | #include <intprops.h> |
| 27 | 26 | ||
diff --git a/src/font.c b/src/font.c index 49a09bced28..da8c5ae52fc 100644 --- a/src/font.c +++ b/src/font.c | |||
| @@ -23,7 +23,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 23 | #include <config.h> | 23 | #include <config.h> |
| 24 | #include <float.h> | 24 | #include <float.h> |
| 25 | #include <stdio.h> | 25 | #include <stdio.h> |
| 26 | #include <setjmp.h> | ||
| 27 | 26 | ||
| 28 | #include <c-ctype.h> | 27 | #include <c-ctype.h> |
| 29 | 28 | ||
diff --git a/src/fontset.c b/src/fontset.c index 2b955fe6b11..35d4bfb367e 100644 --- a/src/fontset.c +++ b/src/fontset.c | |||
| @@ -26,7 +26,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 26 | 26 | ||
| 27 | #include <config.h> | 27 | #include <config.h> |
| 28 | #include <stdio.h> | 28 | #include <stdio.h> |
| 29 | #include <setjmp.h> | ||
| 30 | 29 | ||
| 31 | #include "lisp.h" | 30 | #include "lisp.h" |
| 32 | #include "blockinput.h" | 31 | #include "blockinput.h" |
diff --git a/src/frame.c b/src/frame.c index d10969692ee..6930dac3ce8 100644 --- a/src/frame.c +++ b/src/frame.c | |||
| @@ -24,7 +24,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 24 | #include <stdio.h> | 24 | #include <stdio.h> |
| 25 | #include <errno.h> | 25 | #include <errno.h> |
| 26 | #include <limits.h> | 26 | #include <limits.h> |
| 27 | #include <setjmp.h> | ||
| 28 | 27 | ||
| 29 | #include <c-ctype.h> | 28 | #include <c-ctype.h> |
| 30 | 29 | ||
diff --git a/src/fringe.c b/src/fringe.c index 0c2109a0f8e..6e6deeddb08 100644 --- a/src/fringe.c +++ b/src/fringe.c | |||
| @@ -18,7 +18,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 18 | 18 | ||
| 19 | #include <config.h> | 19 | #include <config.h> |
| 20 | #include <stdio.h> | 20 | #include <stdio.h> |
| 21 | #include <setjmp.h> | ||
| 22 | 21 | ||
| 23 | #include "lisp.h" | 22 | #include "lisp.h" |
| 24 | #include "frame.h" | 23 | #include "frame.h" |
diff --git a/src/ftfont.c b/src/ftfont.c index a85773a9a21..f07ad6f33c7 100644 --- a/src/ftfont.c +++ b/src/ftfont.c | |||
| @@ -21,8 +21,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 21 | 21 | ||
| 22 | #include <config.h> | 22 | #include <config.h> |
| 23 | #include <stdio.h> | 23 | #include <stdio.h> |
| 24 | #include <setjmp.h> | ||
| 25 | |||
| 26 | #include <fontconfig/fontconfig.h> | 24 | #include <fontconfig/fontconfig.h> |
| 27 | #include <fontconfig/fcfreetype.h> | 25 | #include <fontconfig/fcfreetype.h> |
| 28 | 26 | ||
diff --git a/src/ftxfont.c b/src/ftxfont.c index c705ede62c4..466250bd43f 100644 --- a/src/ftxfont.c +++ b/src/ftxfont.c | |||
| @@ -21,7 +21,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 21 | 21 | ||
| 22 | #include <config.h> | 22 | #include <config.h> |
| 23 | #include <stdio.h> | 23 | #include <stdio.h> |
| 24 | #include <setjmp.h> | ||
| 25 | #include <X11/Xlib.h> | 24 | #include <X11/Xlib.h> |
| 26 | 25 | ||
| 27 | #include "lisp.h" | 26 | #include "lisp.h" |
diff --git a/src/gnutls.c b/src/gnutls.c index a2573f6bd99..1c4693aee32 100644 --- a/src/gnutls.c +++ b/src/gnutls.c | |||
| @@ -18,7 +18,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 18 | 18 | ||
| 19 | #include <config.h> | 19 | #include <config.h> |
| 20 | #include <errno.h> | 20 | #include <errno.h> |
| 21 | #include <setjmp.h> | ||
| 22 | 21 | ||
| 23 | #include "lisp.h" | 22 | #include "lisp.h" |
| 24 | #include "process.h" | 23 | #include "process.h" |
diff --git a/src/gtkutil.c b/src/gtkutil.c index 884574e1062..1eb4b2cabdf 100644 --- a/src/gtkutil.c +++ b/src/gtkutil.c | |||
| @@ -22,7 +22,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 22 | #ifdef USE_GTK | 22 | #ifdef USE_GTK |
| 23 | #include <float.h> | 23 | #include <float.h> |
| 24 | #include <stdio.h> | 24 | #include <stdio.h> |
| 25 | #include <setjmp.h> | ||
| 26 | 25 | ||
| 27 | #include <c-ctype.h> | 26 | #include <c-ctype.h> |
| 28 | 27 | ||
diff --git a/src/image.c b/src/image.c index d4e54fb7dcd..6803dbe8f00 100644 --- a/src/image.c +++ b/src/image.c | |||
| @@ -5514,6 +5514,13 @@ init_png_functions (Lisp_Object libraries) | |||
| 5514 | 5514 | ||
| 5515 | #endif /* HAVE_NTGUI */ | 5515 | #endif /* HAVE_NTGUI */ |
| 5516 | 5516 | ||
| 5517 | /* Possibly inefficient/inexact substitutes for _setjmp and _longjmp. | ||
| 5518 | Do not use sys_setjmp, as PNG supports only jmp_buf. The _longjmp | ||
| 5519 | substitute may munge the signal mask, but that should be OK here. */ | ||
| 5520 | #ifndef HAVE__SETJMP | ||
| 5521 | # define _setjmp(j) setjmp (j) | ||
| 5522 | # define _longjmp longjmp | ||
| 5523 | #endif | ||
| 5517 | 5524 | ||
| 5518 | #if (PNG_LIBPNG_VER < 10500) | 5525 | #if (PNG_LIBPNG_VER < 10500) |
| 5519 | #define PNG_LONGJMP(ptr) (_longjmp ((ptr)->jmpbuf, 1)) | 5526 | #define PNG_LONGJMP(ptr) (_longjmp ((ptr)->jmpbuf, 1)) |
| @@ -5593,7 +5600,7 @@ png_read_from_file (png_structp png_ptr, png_bytep data, png_size_t length) | |||
| 5593 | 5600 | ||
| 5594 | struct png_load_context | 5601 | struct png_load_context |
| 5595 | { | 5602 | { |
| 5596 | /* These are members so that _longjmp doesn't munge local variables. */ | 5603 | /* These are members so that longjmp doesn't munge local variables. */ |
| 5597 | png_struct *png_ptr; | 5604 | png_struct *png_ptr; |
| 5598 | png_info *info_ptr; | 5605 | png_info *info_ptr; |
| 5599 | png_info *end_info; | 5606 | png_info *end_info; |
| @@ -6129,9 +6136,9 @@ jpeg_resync_to_restart_wrapper (j_decompress_ptr cinfo, int desired) | |||
| 6129 | struct my_jpeg_error_mgr | 6136 | struct my_jpeg_error_mgr |
| 6130 | { | 6137 | { |
| 6131 | struct jpeg_error_mgr pub; | 6138 | struct jpeg_error_mgr pub; |
| 6132 | jmp_buf setjmp_buffer; | 6139 | sys_jmp_buf setjmp_buffer; |
| 6133 | 6140 | ||
| 6134 | /* The remaining members are so that _longjmp doesn't munge local | 6141 | /* The remaining members are so that longjmp doesn't munge local |
| 6135 | variables. */ | 6142 | variables. */ |
| 6136 | struct jpeg_decompress_struct cinfo; | 6143 | struct jpeg_decompress_struct cinfo; |
| 6137 | enum | 6144 | enum |
| @@ -6151,7 +6158,7 @@ my_error_exit (j_common_ptr cinfo) | |||
| 6151 | { | 6158 | { |
| 6152 | struct my_jpeg_error_mgr *mgr = (struct my_jpeg_error_mgr *) cinfo->err; | 6159 | struct my_jpeg_error_mgr *mgr = (struct my_jpeg_error_mgr *) cinfo->err; |
| 6153 | mgr->failure_code = MY_JPEG_ERROR_EXIT; | 6160 | mgr->failure_code = MY_JPEG_ERROR_EXIT; |
| 6154 | _longjmp (mgr->setjmp_buffer, 1); | 6161 | sys_longjmp (mgr->setjmp_buffer, 1); |
| 6155 | } | 6162 | } |
| 6156 | 6163 | ||
| 6157 | 6164 | ||
| @@ -6401,7 +6408,7 @@ jpeg_load_body (struct frame *f, struct image *img, | |||
| 6401 | error is detected. This function will perform a longjmp. */ | 6408 | error is detected. This function will perform a longjmp. */ |
| 6402 | mgr->cinfo.err = fn_jpeg_std_error (&mgr->pub); | 6409 | mgr->cinfo.err = fn_jpeg_std_error (&mgr->pub); |
| 6403 | mgr->pub.error_exit = my_error_exit; | 6410 | mgr->pub.error_exit = my_error_exit; |
| 6404 | if (_setjmp (mgr->setjmp_buffer)) | 6411 | if (sys_setjmp (mgr->setjmp_buffer)) |
| 6405 | { | 6412 | { |
| 6406 | switch (mgr->failure_code) | 6413 | switch (mgr->failure_code) |
| 6407 | { | 6414 | { |
| @@ -6460,14 +6467,14 @@ jpeg_load_body (struct frame *f, struct image *img, | |||
| 6460 | if (!check_image_size (f, width, height)) | 6467 | if (!check_image_size (f, width, height)) |
| 6461 | { | 6468 | { |
| 6462 | mgr->failure_code = MY_JPEG_INVALID_IMAGE_SIZE; | 6469 | mgr->failure_code = MY_JPEG_INVALID_IMAGE_SIZE; |
| 6463 | _longjmp (mgr->setjmp_buffer, 1); | 6470 | sys_longjmp (mgr->setjmp_buffer, 1); |
| 6464 | } | 6471 | } |
| 6465 | 6472 | ||
| 6466 | /* Create X image and pixmap. */ | 6473 | /* Create X image and pixmap. */ |
| 6467 | if (!x_create_x_image_and_pixmap (f, width, height, 0, &ximg, &img->pixmap)) | 6474 | if (!x_create_x_image_and_pixmap (f, width, height, 0, &ximg, &img->pixmap)) |
| 6468 | { | 6475 | { |
| 6469 | mgr->failure_code = MY_JPEG_CANNOT_CREATE_X; | 6476 | mgr->failure_code = MY_JPEG_CANNOT_CREATE_X; |
| 6470 | _longjmp (mgr->setjmp_buffer, 1); | 6477 | sys_longjmp (mgr->setjmp_buffer, 1); |
| 6471 | } | 6478 | } |
| 6472 | 6479 | ||
| 6473 | /* Allocate colors. When color quantization is used, | 6480 | /* Allocate colors. When color quantization is used, |
diff --git a/src/indent.c b/src/indent.c index c60315a7f6e..053643e6319 100644 --- a/src/indent.c +++ b/src/indent.c | |||
| @@ -19,7 +19,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 19 | 19 | ||
| 20 | #include <config.h> | 20 | #include <config.h> |
| 21 | #include <stdio.h> | 21 | #include <stdio.h> |
| 22 | #include <setjmp.h> | ||
| 23 | 22 | ||
| 24 | #include "lisp.h" | 23 | #include "lisp.h" |
| 25 | #include "character.h" | 24 | #include "character.h" |
diff --git a/src/insdel.c b/src/insdel.c index bfb2327a696..87010cd8251 100644 --- a/src/insdel.c +++ b/src/insdel.c | |||
| @@ -19,7 +19,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 19 | 19 | ||
| 20 | 20 | ||
| 21 | #include <config.h> | 21 | #include <config.h> |
| 22 | #include <setjmp.h> | ||
| 23 | 22 | ||
| 24 | #include <intprops.h> | 23 | #include <intprops.h> |
| 25 | 24 | ||
diff --git a/src/intervals.c b/src/intervals.c index e508f968963..5a47cacb2dd 100644 --- a/src/intervals.c +++ b/src/intervals.c | |||
| @@ -41,7 +41,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 41 | 41 | ||
| 42 | #define INTERVALS_INLINE EXTERN_INLINE | 42 | #define INTERVALS_INLINE EXTERN_INLINE |
| 43 | 43 | ||
| 44 | #include <setjmp.h> | ||
| 45 | #include <intprops.h> | 44 | #include <intprops.h> |
| 46 | #include "lisp.h" | 45 | #include "lisp.h" |
| 47 | #include "intervals.h" | 46 | #include "intervals.h" |
diff --git a/src/keyboard.c b/src/keyboard.c index 45638bc412b..d164083fb86 100644 --- a/src/keyboard.c +++ b/src/keyboard.c | |||
| @@ -22,7 +22,7 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 22 | #define KEYBOARD_INLINE EXTERN_INLINE | 22 | #define KEYBOARD_INLINE EXTERN_INLINE |
| 23 | 23 | ||
| 24 | #include <stdio.h> | 24 | #include <stdio.h> |
| 25 | #include <setjmp.h> | 25 | |
| 26 | #include "lisp.h" | 26 | #include "lisp.h" |
| 27 | #include "termchar.h" | 27 | #include "termchar.h" |
| 28 | #include "termopts.h" | 28 | #include "termopts.h" |
| @@ -145,7 +145,7 @@ static ptrdiff_t before_command_echo_length; | |||
| 145 | 145 | ||
| 146 | /* For longjmp to where kbd input is being done. */ | 146 | /* For longjmp to where kbd input is being done. */ |
| 147 | 147 | ||
| 148 | static jmp_buf getcjmp; | 148 | static sys_jmp_buf getcjmp; |
| 149 | 149 | ||
| 150 | /* True while doing kbd input. */ | 150 | /* True while doing kbd input. */ |
| 151 | int waiting_for_input; | 151 | int waiting_for_input; |
| @@ -434,8 +434,8 @@ static Lisp_Object modify_event_symbol (ptrdiff_t, int, Lisp_Object, | |||
| 434 | Lisp_Object *, ptrdiff_t); | 434 | Lisp_Object *, ptrdiff_t); |
| 435 | static Lisp_Object make_lispy_switch_frame (Lisp_Object); | 435 | static Lisp_Object make_lispy_switch_frame (Lisp_Object); |
| 436 | static int help_char_p (Lisp_Object); | 436 | static int help_char_p (Lisp_Object); |
| 437 | static void save_getcjmp (jmp_buf); | 437 | static void save_getcjmp (sys_jmp_buf); |
| 438 | static void restore_getcjmp (jmp_buf); | 438 | static void restore_getcjmp (sys_jmp_buf); |
| 439 | static Lisp_Object apply_modifiers (int, Lisp_Object); | 439 | static Lisp_Object apply_modifiers (int, Lisp_Object); |
| 440 | static void clear_event (struct input_event *); | 440 | static void clear_event (struct input_event *); |
| 441 | static Lisp_Object restore_kboard_configuration (Lisp_Object); | 441 | static Lisp_Object restore_kboard_configuration (Lisp_Object); |
| @@ -2315,8 +2315,8 @@ read_char (int commandflag, ptrdiff_t nmaps, Lisp_Object *maps, | |||
| 2315 | { | 2315 | { |
| 2316 | volatile Lisp_Object c; | 2316 | volatile Lisp_Object c; |
| 2317 | ptrdiff_t jmpcount; | 2317 | ptrdiff_t jmpcount; |
| 2318 | jmp_buf local_getcjmp; | 2318 | sys_jmp_buf local_getcjmp; |
| 2319 | jmp_buf save_jump; | 2319 | sys_jmp_buf save_jump; |
| 2320 | volatile int key_already_recorded = 0; | 2320 | volatile int key_already_recorded = 0; |
| 2321 | Lisp_Object tem, save; | 2321 | Lisp_Object tem, save; |
| 2322 | volatile Lisp_Object previous_echo_area_message; | 2322 | volatile Lisp_Object previous_echo_area_message; |
| @@ -2562,7 +2562,7 @@ read_char (int commandflag, ptrdiff_t nmaps, Lisp_Object *maps, | |||
| 2562 | it *must not* be in effect when we call redisplay. */ | 2562 | it *must not* be in effect when we call redisplay. */ |
| 2563 | 2563 | ||
| 2564 | jmpcount = SPECPDL_INDEX (); | 2564 | jmpcount = SPECPDL_INDEX (); |
| 2565 | if (_setjmp (local_getcjmp)) | 2565 | if (sys_setjmp (local_getcjmp)) |
| 2566 | { | 2566 | { |
| 2567 | /* Handle quits while reading the keyboard. */ | 2567 | /* Handle quits while reading the keyboard. */ |
| 2568 | /* We must have saved the outer value of getcjmp here, | 2568 | /* We must have saved the outer value of getcjmp here, |
| @@ -3394,13 +3394,13 @@ record_char (Lisp_Object c) | |||
| 3394 | See read_process_output. */ | 3394 | See read_process_output. */ |
| 3395 | 3395 | ||
| 3396 | static void | 3396 | static void |
| 3397 | save_getcjmp (jmp_buf temp) | 3397 | save_getcjmp (sys_jmp_buf temp) |
| 3398 | { | 3398 | { |
| 3399 | memcpy (temp, getcjmp, sizeof getcjmp); | 3399 | memcpy (temp, getcjmp, sizeof getcjmp); |
| 3400 | } | 3400 | } |
| 3401 | 3401 | ||
| 3402 | static void | 3402 | static void |
| 3403 | restore_getcjmp (jmp_buf temp) | 3403 | restore_getcjmp (sys_jmp_buf temp) |
| 3404 | { | 3404 | { |
| 3405 | memcpy (getcjmp, temp, sizeof getcjmp); | 3405 | memcpy (getcjmp, temp, sizeof getcjmp); |
| 3406 | } | 3406 | } |
| @@ -10979,7 +10979,7 @@ quit_throw_to_read_char (int from_signal) | |||
| 10979 | do_switch_frame (make_lispy_switch_frame (internal_last_event_frame), | 10979 | do_switch_frame (make_lispy_switch_frame (internal_last_event_frame), |
| 10980 | 0, 0, Qnil); | 10980 | 0, 0, Qnil); |
| 10981 | 10981 | ||
| 10982 | _longjmp (getcjmp, 1); | 10982 | sys_longjmp (getcjmp, 1); |
| 10983 | } | 10983 | } |
| 10984 | 10984 | ||
| 10985 | DEFUN ("set-input-interrupt-mode", Fset_input_interrupt_mode, | 10985 | DEFUN ("set-input-interrupt-mode", Fset_input_interrupt_mode, |
diff --git a/src/keymap.c b/src/keymap.c index d79ff89ed67..66fb52061f9 100644 --- a/src/keymap.c +++ b/src/keymap.c | |||
| @@ -40,7 +40,7 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 40 | 40 | ||
| 41 | #include <config.h> | 41 | #include <config.h> |
| 42 | #include <stdio.h> | 42 | #include <stdio.h> |
| 43 | #include <setjmp.h> | 43 | |
| 44 | #include "lisp.h" | 44 | #include "lisp.h" |
| 45 | #include "commands.h" | 45 | #include "commands.h" |
| 46 | #include "character.h" | 46 | #include "character.h" |
diff --git a/src/lisp.h b/src/lisp.h index ca22ca81228..335ed8ba831 100644 --- a/src/lisp.h +++ b/src/lisp.h | |||
| @@ -20,6 +20,7 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 20 | #ifndef EMACS_LISP_H | 20 | #ifndef EMACS_LISP_H |
| 21 | #define EMACS_LISP_H | 21 | #define EMACS_LISP_H |
| 22 | 22 | ||
| 23 | #include <setjmp.h> | ||
| 23 | #include <stdalign.h> | 24 | #include <stdalign.h> |
| 24 | #include <stdarg.h> | 25 | #include <stdarg.h> |
| 25 | #include <stdbool.h> | 26 | #include <stdbool.h> |
| @@ -1963,7 +1964,24 @@ extern void defvar_kboard (struct Lisp_Kboard_Objfwd *, const char *, int); | |||
| 1963 | static struct Lisp_Kboard_Objfwd ko_fwd; \ | 1964 | static struct Lisp_Kboard_Objfwd ko_fwd; \ |
| 1964 | defvar_kboard (&ko_fwd, lname, offsetof (KBOARD, vname ## _)); \ | 1965 | defvar_kboard (&ko_fwd, lname, offsetof (KBOARD, vname ## _)); \ |
| 1965 | } while (0) | 1966 | } while (0) |
| 1966 | 1967 | ||
| 1968 | /* Save and restore the instruction and environment pointers, | ||
| 1969 | without affecting the signal mask. */ | ||
| 1970 | |||
| 1971 | #ifdef HAVE__SETJMP | ||
| 1972 | typedef jmp_buf sys_jmp_buf; | ||
| 1973 | # define sys_setjmp(j) _setjmp (j) | ||
| 1974 | # define sys_longjmp(j, v) _longjmp (j, v) | ||
| 1975 | #elif defined HAVE_SIGSETJMP | ||
| 1976 | typedef sigjmp_buf sys_jmp_buf; | ||
| 1977 | # define sys_setjmp(j) sigsetjmp (j, 0) | ||
| 1978 | # define sys_longjmp(j, v) siglongjmp (j, v) | ||
| 1979 | #else | ||
| 1980 | /* A non-POSIX platform; assume longjmp does not affect the sigmask. */ | ||
| 1981 | typedef jmp_buf sys_jmp_buf; | ||
| 1982 | # define sys_setjmp(j) setjmp (j) | ||
| 1983 | # define sys_longjmp(j, v) longjmp (j, v) | ||
| 1984 | #endif | ||
| 1967 | 1985 | ||
| 1968 | 1986 | ||
| 1969 | /* Structure for recording Lisp call stack for backtrace purposes. */ | 1987 | /* Structure for recording Lisp call stack for backtrace purposes. */ |
| @@ -2056,7 +2074,7 @@ struct catchtag | |||
| 2056 | Lisp_Object volatile val; | 2074 | Lisp_Object volatile val; |
| 2057 | struct catchtag *volatile next; | 2075 | struct catchtag *volatile next; |
| 2058 | struct gcpro *gcpro; | 2076 | struct gcpro *gcpro; |
| 2059 | jmp_buf jmp; | 2077 | sys_jmp_buf jmp; |
| 2060 | struct backtrace *backlist; | 2078 | struct backtrace *backlist; |
| 2061 | struct handler *handlerlist; | 2079 | struct handler *handlerlist; |
| 2062 | EMACS_INT lisp_eval_depth; | 2080 | EMACS_INT lisp_eval_depth; |
diff --git a/src/lread.c b/src/lread.c index 08a2e856c00..08d5f97292b 100644 --- a/src/lread.c +++ b/src/lread.c | |||
| @@ -25,7 +25,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 25 | #include <sys/file.h> | 25 | #include <sys/file.h> |
| 26 | #include <errno.h> | 26 | #include <errno.h> |
| 27 | #include <limits.h> /* For CHAR_BIT. */ | 27 | #include <limits.h> /* For CHAR_BIT. */ |
| 28 | #include <setjmp.h> | ||
| 29 | #include <stat-time.h> | 28 | #include <stat-time.h> |
| 30 | #include "lisp.h" | 29 | #include "lisp.h" |
| 31 | #include "intervals.h" | 30 | #include "intervals.h" |
diff --git a/src/macros.c b/src/macros.c index e81068181b9..a507f12e343 100644 --- a/src/macros.c +++ b/src/macros.c | |||
| @@ -19,7 +19,7 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 19 | 19 | ||
| 20 | 20 | ||
| 21 | #include <config.h> | 21 | #include <config.h> |
| 22 | #include <setjmp.h> | 22 | |
| 23 | #include "lisp.h" | 23 | #include "lisp.h" |
| 24 | #include "macros.h" | 24 | #include "macros.h" |
| 25 | #include "commands.h" | 25 | #include "commands.h" |
diff --git a/src/marker.c b/src/marker.c index bfbb161a71d..0c4e8cb3b55 100644 --- a/src/marker.c +++ b/src/marker.c | |||
| @@ -18,7 +18,7 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 18 | 18 | ||
| 19 | 19 | ||
| 20 | #include <config.h> | 20 | #include <config.h> |
| 21 | #include <setjmp.h> | 21 | |
| 22 | #include "lisp.h" | 22 | #include "lisp.h" |
| 23 | #include "character.h" | 23 | #include "character.h" |
| 24 | #include "buffer.h" | 24 | #include "buffer.h" |
diff --git a/src/menu.c b/src/menu.c index bfdc68ca118..7b01d1faefc 100644 --- a/src/menu.c +++ b/src/menu.c | |||
| @@ -20,7 +20,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 20 | 20 | ||
| 21 | #include <config.h> | 21 | #include <config.h> |
| 22 | #include <stdio.h> | 22 | #include <stdio.h> |
| 23 | #include <setjmp.h> | ||
| 24 | #include <limits.h> /* for INT_MAX */ | 23 | #include <limits.h> /* for INT_MAX */ |
| 25 | 24 | ||
| 26 | #include "lisp.h" | 25 | #include "lisp.h" |
diff --git a/src/minibuf.c b/src/minibuf.c index 4ed480a8408..8a1e0ddde86 100644 --- a/src/minibuf.c +++ b/src/minibuf.c | |||
| @@ -21,7 +21,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 21 | #include <config.h> | 21 | #include <config.h> |
| 22 | #include <errno.h> | 22 | #include <errno.h> |
| 23 | #include <stdio.h> | 23 | #include <stdio.h> |
| 24 | #include <setjmp.h> | ||
| 25 | 24 | ||
| 26 | #include "lisp.h" | 25 | #include "lisp.h" |
| 27 | #include "commands.h" | 26 | #include "commands.h" |
diff --git a/src/nsfns.m b/src/nsfns.m index f73086eeee9..ed8d44014d5 100644 --- a/src/nsfns.m +++ b/src/nsfns.m | |||
| @@ -31,7 +31,6 @@ GNUstep port and post-20 update by Adrian Robert (arobert@cogsci.ucsd.edu) | |||
| 31 | #include <config.h> | 31 | #include <config.h> |
| 32 | 32 | ||
| 33 | #include <math.h> | 33 | #include <math.h> |
| 34 | #include <setjmp.h> | ||
| 35 | #include <c-strcase.h> | 34 | #include <c-strcase.h> |
| 36 | 35 | ||
| 37 | #include "lisp.h" | 36 | #include "lisp.h" |
diff --git a/src/nsfont.m b/src/nsfont.m index 1c9976ec6cc..eba1eb04765 100644 --- a/src/nsfont.m +++ b/src/nsfont.m | |||
| @@ -23,7 +23,6 @@ Author: Adrian Robert (arobert@cogsci.ucsd.edu) | |||
| 23 | /* This should be the first include, as it may set up #defines affecting | 23 | /* This should be the first include, as it may set up #defines affecting |
| 24 | interpretation of even the system includes. */ | 24 | interpretation of even the system includes. */ |
| 25 | #include <config.h> | 25 | #include <config.h> |
| 26 | #include <setjmp.h> | ||
| 27 | 26 | ||
| 28 | #include "lisp.h" | 27 | #include "lisp.h" |
| 29 | #include "dispextern.h" | 28 | #include "dispextern.h" |
diff --git a/src/nsimage.m b/src/nsimage.m index 8a8a3ddaae4..668664c7a20 100644 --- a/src/nsimage.m +++ b/src/nsimage.m | |||
| @@ -28,7 +28,6 @@ GNUstep port and post-20 update by Adrian Robert (arobert@cogsci.ucsd.edu) | |||
| 28 | /* This should be the first include, as it may set up #defines affecting | 28 | /* This should be the first include, as it may set up #defines affecting |
| 29 | interpretation of even the system includes. */ | 29 | interpretation of even the system includes. */ |
| 30 | #include <config.h> | 30 | #include <config.h> |
| 31 | #include <setjmp.h> | ||
| 32 | 31 | ||
| 33 | #include "lisp.h" | 32 | #include "lisp.h" |
| 34 | #include "dispextern.h" | 33 | #include "dispextern.h" |
diff --git a/src/nsmenu.m b/src/nsmenu.m index d0f3e45e939..3057f4f6a20 100644 --- a/src/nsmenu.m +++ b/src/nsmenu.m | |||
| @@ -24,7 +24,6 @@ Carbon version by Yamamoto Mitsuharu. */ | |||
| 24 | /* This should be the first include, as it may set up #defines affecting | 24 | /* This should be the first include, as it may set up #defines affecting |
| 25 | interpretation of even the system includes. */ | 25 | interpretation of even the system includes. */ |
| 26 | #include <config.h> | 26 | #include <config.h> |
| 27 | #include <setjmp.h> | ||
| 28 | 27 | ||
| 29 | #include "lisp.h" | 28 | #include "lisp.h" |
| 30 | #include "window.h" | 29 | #include "window.h" |
diff --git a/src/nsselect.m b/src/nsselect.m index e0bbfe58636..95bc1a95957 100644 --- a/src/nsselect.m +++ b/src/nsselect.m | |||
| @@ -28,7 +28,6 @@ GNUstep port and post-20 update by Adrian Robert (arobert@cogsci.ucsd.edu) | |||
| 28 | /* This should be the first include, as it may set up #defines affecting | 28 | /* This should be the first include, as it may set up #defines affecting |
| 29 | interpretation of even the system includes. */ | 29 | interpretation of even the system includes. */ |
| 30 | #include <config.h> | 30 | #include <config.h> |
| 31 | #include <setjmp.h> | ||
| 32 | 31 | ||
| 33 | #include "lisp.h" | 32 | #include "lisp.h" |
| 34 | #include "nsterm.h" | 33 | #include "nsterm.h" |
diff --git a/src/nsterm.m b/src/nsterm.m index f9611fd1210..f1f23ad4479 100644 --- a/src/nsterm.m +++ b/src/nsterm.m | |||
| @@ -35,7 +35,6 @@ GNUstep port and post-20 update by Adrian Robert (arobert@cogsci.ucsd.edu) | |||
| 35 | #include <time.h> | 35 | #include <time.h> |
| 36 | #include <signal.h> | 36 | #include <signal.h> |
| 37 | #include <unistd.h> | 37 | #include <unistd.h> |
| 38 | #include <setjmp.h> | ||
| 39 | 38 | ||
| 40 | #include <c-ctype.h> | 39 | #include <c-ctype.h> |
| 41 | #include <c-strcase.h> | 40 | #include <c-strcase.h> |
diff --git a/src/print.c b/src/print.c index 16116643ad0..aae13bb6764 100644 --- a/src/print.c +++ b/src/print.c | |||
| @@ -21,7 +21,7 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 21 | 21 | ||
| 22 | #include <config.h> | 22 | #include <config.h> |
| 23 | #include <stdio.h> | 23 | #include <stdio.h> |
| 24 | #include <setjmp.h> | 24 | |
| 25 | #include "lisp.h" | 25 | #include "lisp.h" |
| 26 | #include "character.h" | 26 | #include "character.h" |
| 27 | #include "buffer.h" | 27 | #include "buffer.h" |
diff --git a/src/process.c b/src/process.c index b4b05a4b2e2..6dbff6f4b16 100644 --- a/src/process.c +++ b/src/process.c | |||
| @@ -25,12 +25,9 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 25 | 25 | ||
| 26 | #include <stdio.h> | 26 | #include <stdio.h> |
| 27 | #include <errno.h> | 27 | #include <errno.h> |
| 28 | #include <setjmp.h> | ||
| 29 | #include <sys/types.h> /* Some typedefs are used in sys/file.h. */ | 28 | #include <sys/types.h> /* Some typedefs are used in sys/file.h. */ |
| 30 | #include <sys/file.h> | 29 | #include <sys/file.h> |
| 31 | #include <sys/stat.h> | 30 | #include <sys/stat.h> |
| 32 | #include <setjmp.h> | ||
| 33 | |||
| 34 | #include <unistd.h> | 31 | #include <unistd.h> |
| 35 | #include <fcntl.h> | 32 | #include <fcntl.h> |
| 36 | 33 | ||
| @@ -5421,7 +5418,7 @@ read_process_output (Lisp_Object proc, register int channel) | |||
| 5421 | 5418 | ||
| 5422 | /* Sending data to subprocess */ | 5419 | /* Sending data to subprocess */ |
| 5423 | 5420 | ||
| 5424 | static jmp_buf send_process_frame; | 5421 | static sys_jmp_buf send_process_frame; |
| 5425 | static Lisp_Object process_sent_to; | 5422 | static Lisp_Object process_sent_to; |
| 5426 | 5423 | ||
| 5427 | static _Noreturn void | 5424 | static _Noreturn void |
| @@ -5431,7 +5428,7 @@ handle_pipe_signal (int sig) | |||
| 5431 | sigemptyset (&unblocked); | 5428 | sigemptyset (&unblocked); |
| 5432 | sigaddset (&unblocked, SIGPIPE); | 5429 | sigaddset (&unblocked, SIGPIPE); |
| 5433 | pthread_sigmask (SIG_UNBLOCK, &unblocked, 0); | 5430 | pthread_sigmask (SIG_UNBLOCK, &unblocked, 0); |
| 5434 | _longjmp (send_process_frame, 1); | 5431 | sys_longjmp (send_process_frame, 1); |
| 5435 | } | 5432 | } |
| 5436 | 5433 | ||
| 5437 | static void | 5434 | static void |
| @@ -5640,7 +5637,7 @@ send_process (volatile Lisp_Object proc, const char *volatile buf, | |||
| 5640 | /* 2000-09-21: Emacs 20.7, sparc-sun-solaris-2.6, GCC 2.95.2, | 5637 | /* 2000-09-21: Emacs 20.7, sparc-sun-solaris-2.6, GCC 2.95.2, |
| 5641 | CFLAGS="-g -O": The value of the parameter `proc' is clobbered | 5638 | CFLAGS="-g -O": The value of the parameter `proc' is clobbered |
| 5642 | when returning with longjmp despite being declared volatile. */ | 5639 | when returning with longjmp despite being declared volatile. */ |
| 5643 | if (!_setjmp (send_process_frame)) | 5640 | if (!sys_setjmp (send_process_frame)) |
| 5644 | { | 5641 | { |
| 5645 | p = XPROCESS (proc); /* Repair any setjmp clobbering. */ | 5642 | p = XPROCESS (proc); /* Repair any setjmp clobbering. */ |
| 5646 | process_sent_to = proc; | 5643 | process_sent_to = proc; |
diff --git a/src/ralloc.c b/src/ralloc.c index 74834333aa3..b0134ea730a 100644 --- a/src/ralloc.c +++ b/src/ralloc.c | |||
| @@ -25,7 +25,7 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 25 | #ifdef emacs | 25 | #ifdef emacs |
| 26 | 26 | ||
| 27 | #include <config.h> | 27 | #include <config.h> |
| 28 | #include <setjmp.h> | 28 | |
| 29 | #include "lisp.h" /* Needed for VALBITS. */ | 29 | #include "lisp.h" /* Needed for VALBITS. */ |
| 30 | #include "blockinput.h" | 30 | #include "blockinput.h" |
| 31 | 31 | ||
diff --git a/src/regex.c b/src/regex.c index 472ef727979..92264ccae23 100644 --- a/src/regex.c +++ b/src/regex.c | |||
| @@ -126,7 +126,6 @@ | |||
| 126 | that make sense only in Emacs. */ | 126 | that make sense only in Emacs. */ |
| 127 | #ifdef emacs | 127 | #ifdef emacs |
| 128 | 128 | ||
| 129 | # include <setjmp.h> | ||
| 130 | # include "lisp.h" | 129 | # include "lisp.h" |
| 131 | # include "character.h" | 130 | # include "character.h" |
| 132 | # include "buffer.h" | 131 | # include "buffer.h" |
diff --git a/src/region-cache.c b/src/region-cache.c index c3eb087aade..832f4bfd214 100644 --- a/src/region-cache.c +++ b/src/region-cache.c | |||
| @@ -21,7 +21,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 21 | 21 | ||
| 22 | #include <config.h> | 22 | #include <config.h> |
| 23 | #include <stdio.h> | 23 | #include <stdio.h> |
| 24 | #include <setjmp.h> | ||
| 25 | 24 | ||
| 26 | #include "lisp.h" | 25 | #include "lisp.h" |
| 27 | #include "character.h" | 26 | #include "character.h" |
diff --git a/src/scroll.c b/src/scroll.c index 79dd464b29e..71ce43b2e48 100644 --- a/src/scroll.c +++ b/src/scroll.c | |||
| @@ -21,7 +21,7 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 21 | 21 | ||
| 22 | #include <config.h> | 22 | #include <config.h> |
| 23 | #include <stdio.h> | 23 | #include <stdio.h> |
| 24 | #include <setjmp.h> | 24 | |
| 25 | #include "lisp.h" | 25 | #include "lisp.h" |
| 26 | #include "termchar.h" | 26 | #include "termchar.h" |
| 27 | #include "dispextern.h" | 27 | #include "dispextern.h" |
diff --git a/src/search.c b/src/search.c index 72bd5605709..99fd7971e4c 100644 --- a/src/search.c +++ b/src/search.c | |||
| @@ -20,7 +20,7 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 20 | 20 | ||
| 21 | 21 | ||
| 22 | #include <config.h> | 22 | #include <config.h> |
| 23 | #include <setjmp.h> | 23 | |
| 24 | #include "lisp.h" | 24 | #include "lisp.h" |
| 25 | #include "syntax.h" | 25 | #include "syntax.h" |
| 26 | #include "category.h" | 26 | #include "category.h" |
diff --git a/src/sheap.c b/src/sheap.c index 3ae14b5daec..f6022ea3ce7 100644 --- a/src/sheap.c +++ b/src/sheap.c | |||
| @@ -20,7 +20,7 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 20 | 20 | ||
| 21 | #include <config.h> | 21 | #include <config.h> |
| 22 | #include <stdio.h> | 22 | #include <stdio.h> |
| 23 | #include <setjmp.h> | 23 | |
| 24 | #include "lisp.h" | 24 | #include "lisp.h" |
| 25 | 25 | ||
| 26 | #include <unistd.h> | 26 | #include <unistd.h> |
| @@ -93,4 +93,3 @@ report_sheap_usage (int die_if_pure_storage_exceeded) | |||
| 93 | bss_sbrk_ptr - bss_sbrk_buffer, STATIC_HEAP_SIZE); | 93 | bss_sbrk_ptr - bss_sbrk_buffer, STATIC_HEAP_SIZE); |
| 94 | message ("%s", buf); | 94 | message ("%s", buf); |
| 95 | } | 95 | } |
| 96 | |||
diff --git a/src/sound.c b/src/sound.c index fe48bb277b2..0ee85312fd3 100644 --- a/src/sound.c +++ b/src/sound.c | |||
| @@ -44,7 +44,7 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 44 | #include <unistd.h> | 44 | #include <unistd.h> |
| 45 | #include <sys/types.h> | 45 | #include <sys/types.h> |
| 46 | #include <errno.h> | 46 | #include <errno.h> |
| 47 | #include <setjmp.h> | 47 | |
| 48 | #include "lisp.h" | 48 | #include "lisp.h" |
| 49 | #include "dispextern.h" | 49 | #include "dispextern.h" |
| 50 | #include "atimer.h" | 50 | #include "atimer.h" |
diff --git a/src/syntax.c b/src/syntax.c index fdd9353bb87..91ef4e66663 100644 --- a/src/syntax.c +++ b/src/syntax.c | |||
| @@ -21,7 +21,7 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 21 | #include <config.h> | 21 | #include <config.h> |
| 22 | 22 | ||
| 23 | #include <sys/types.h> | 23 | #include <sys/types.h> |
| 24 | #include <setjmp.h> | 24 | |
| 25 | #include "lisp.h" | 25 | #include "lisp.h" |
| 26 | #include "commands.h" | 26 | #include "commands.h" |
| 27 | #include "character.h" | 27 | #include "character.h" |
diff --git a/src/sysdep.c b/src/sysdep.c index b8f35e79146..9065b38d6fc 100644 --- a/src/sysdep.c +++ b/src/sysdep.c | |||
| @@ -23,7 +23,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 23 | 23 | ||
| 24 | #include <execinfo.h> | 24 | #include <execinfo.h> |
| 25 | #include <stdio.h> | 25 | #include <stdio.h> |
| 26 | #include <setjmp.h> | ||
| 27 | #ifdef HAVE_PWD_H | 26 | #ifdef HAVE_PWD_H |
| 28 | #include <pwd.h> | 27 | #include <pwd.h> |
| 29 | #include <grp.h> | 28 | #include <grp.h> |
diff --git a/src/term.c b/src/term.c index 47bde5ac240..f4117d67dec 100644 --- a/src/term.c +++ b/src/term.c | |||
| @@ -25,7 +25,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 25 | #include <sys/file.h> | 25 | #include <sys/file.h> |
| 26 | #include <sys/time.h> | 26 | #include <sys/time.h> |
| 27 | #include <unistd.h> | 27 | #include <unistd.h> |
| 28 | #include <setjmp.h> | ||
| 29 | 28 | ||
| 30 | #include "lisp.h" | 29 | #include "lisp.h" |
| 31 | #include "termchar.h" | 30 | #include "termchar.h" |
diff --git a/src/termcap.c b/src/termcap.c index d1b05e8df94..e494cd113d9 100644 --- a/src/termcap.c +++ b/src/termcap.c | |||
| @@ -19,7 +19,6 @@ Boston, MA 02110-1301, USA. */ | |||
| 19 | 19 | ||
| 20 | /* Emacs config.h may rename various library functions such as malloc. */ | 20 | /* Emacs config.h may rename various library functions such as malloc. */ |
| 21 | #include <config.h> | 21 | #include <config.h> |
| 22 | #include <setjmp.h> | ||
| 23 | #include <sys/file.h> | 22 | #include <sys/file.h> |
| 24 | #include <fcntl.h> | 23 | #include <fcntl.h> |
| 25 | #include <unistd.h> | 24 | #include <unistd.h> |
diff --git a/src/terminal.c b/src/terminal.c index c51a18dfa61..719c2a36111 100644 --- a/src/terminal.c +++ b/src/terminal.c | |||
| @@ -21,7 +21,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 21 | #define TERMHOOKS_INLINE EXTERN_INLINE | 21 | #define TERMHOOKS_INLINE EXTERN_INLINE |
| 22 | 22 | ||
| 23 | #include <stdio.h> | 23 | #include <stdio.h> |
| 24 | #include <setjmp.h> | ||
| 25 | 24 | ||
| 26 | #include "lisp.h" | 25 | #include "lisp.h" |
| 27 | #include "frame.h" | 26 | #include "frame.h" |
diff --git a/src/terminfo.c b/src/terminfo.c index ca2d89a000b..124c452a4a9 100644 --- a/src/terminfo.c +++ b/src/terminfo.c | |||
| @@ -19,7 +19,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 19 | #include <config.h> | 19 | #include <config.h> |
| 20 | #include "tparam.h" | 20 | #include "tparam.h" |
| 21 | 21 | ||
| 22 | #include <setjmp.h> | ||
| 23 | #include "lisp.h" | 22 | #include "lisp.h" |
| 24 | 23 | ||
| 25 | /* Define these variables that serve as global parameters to termcap, | 24 | /* Define these variables that serve as global parameters to termcap, |
diff --git a/src/textprop.c b/src/textprop.c index 2a9efba1c45..872912ea706 100644 --- a/src/textprop.c +++ b/src/textprop.c | |||
| @@ -17,7 +17,7 @@ You should have received a copy of the GNU General Public License | |||
| 17 | along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | 17 | along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ |
| 18 | 18 | ||
| 19 | #include <config.h> | 19 | #include <config.h> |
| 20 | #include <setjmp.h> | 20 | |
| 21 | #include "lisp.h" | 21 | #include "lisp.h" |
| 22 | #include "intervals.h" | 22 | #include "intervals.h" |
| 23 | #include "character.h" | 23 | #include "character.h" |
diff --git a/src/tparam.c b/src/tparam.c index 58a825c90d7..164f61d471b 100644 --- a/src/tparam.c +++ b/src/tparam.c | |||
| @@ -19,7 +19,7 @@ Boston, MA 02110-1301, USA. */ | |||
| 19 | 19 | ||
| 20 | /* Emacs config.h may rename various library functions such as malloc. */ | 20 | /* Emacs config.h may rename various library functions such as malloc. */ |
| 21 | #include <config.h> | 21 | #include <config.h> |
| 22 | #include <setjmp.h> | 22 | |
| 23 | #include "lisp.h" /* for xmalloc */ | 23 | #include "lisp.h" /* for xmalloc */ |
| 24 | #include "tparam.h" | 24 | #include "tparam.h" |
| 25 | 25 | ||
diff --git a/src/undo.c b/src/undo.c index 9cd1d5f9f67..e878ef4dcf9 100644 --- a/src/undo.c +++ b/src/undo.c | |||
| @@ -18,7 +18,7 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 18 | 18 | ||
| 19 | 19 | ||
| 20 | #include <config.h> | 20 | #include <config.h> |
| 21 | #include <setjmp.h> | 21 | |
| 22 | #include "lisp.h" | 22 | #include "lisp.h" |
| 23 | #include "character.h" | 23 | #include "character.h" |
| 24 | #include "buffer.h" | 24 | #include "buffer.h" |
diff --git a/src/unexaix.c b/src/unexaix.c index c09156296f7..c01a22a79f6 100644 --- a/src/unexaix.c +++ b/src/unexaix.c | |||
| @@ -89,7 +89,6 @@ static int adjust_lnnoptrs (int, int, const char *); | |||
| 89 | 89 | ||
| 90 | static int pagemask; | 90 | static int pagemask; |
| 91 | 91 | ||
| 92 | #include <setjmp.h> | ||
| 93 | #include "lisp.h" | 92 | #include "lisp.h" |
| 94 | 93 | ||
| 95 | static void | 94 | static void |
diff --git a/src/unexcoff.c b/src/unexcoff.c index e83042a379d..966dd58cb6e 100644 --- a/src/unexcoff.c +++ b/src/unexcoff.c | |||
| @@ -120,7 +120,6 @@ static int pagemask; | |||
| 120 | 120 | ||
| 121 | #define ADDR_CORRECT(x) ((char *)(x) - (char*)0) | 121 | #define ADDR_CORRECT(x) ((char *)(x) - (char*)0) |
| 122 | 122 | ||
| 123 | #include <setjmp.h> | ||
| 124 | #include "lisp.h" | 123 | #include "lisp.h" |
| 125 | 124 | ||
| 126 | static void | 125 | static void |
diff --git a/src/unexcw.c b/src/unexcw.c index eae534cf4dd..96c4b4a9aec 100644 --- a/src/unexcw.c +++ b/src/unexcw.c | |||
| @@ -21,7 +21,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 21 | #include <config.h> | 21 | #include <config.h> |
| 22 | #include "unexec.h" | 22 | #include "unexec.h" |
| 23 | 23 | ||
| 24 | #include <setjmp.h> | ||
| 25 | #include <lisp.h> | 24 | #include <lisp.h> |
| 26 | #include <stdio.h> | 25 | #include <stdio.h> |
| 27 | #include <fcntl.h> | 26 | #include <fcntl.h> |
diff --git a/src/unexsol.c b/src/unexsol.c index 336f3b4faea..470206d5838 100644 --- a/src/unexsol.c +++ b/src/unexsol.c | |||
| @@ -4,7 +4,6 @@ | |||
| 4 | #include "unexec.h" | 4 | #include "unexec.h" |
| 5 | 5 | ||
| 6 | #include <dlfcn.h> | 6 | #include <dlfcn.h> |
| 7 | #include <setjmp.h> | ||
| 8 | 7 | ||
| 9 | #include "lisp.h" | 8 | #include "lisp.h" |
| 10 | #include "character.h" | 9 | #include "character.h" |
diff --git a/src/vm-limit.c b/src/vm-limit.c index cf697b56fdf..8de0acd1bb2 100644 --- a/src/vm-limit.c +++ b/src/vm-limit.c | |||
| @@ -17,7 +17,6 @@ You should have received a copy of the GNU General Public License | |||
| 17 | along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | 17 | along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ |
| 18 | 18 | ||
| 19 | #include <config.h> | 19 | #include <config.h> |
| 20 | #include <setjmp.h> | ||
| 21 | #include <unistd.h> /* for 'environ', on AIX */ | 20 | #include <unistd.h> /* for 'environ', on AIX */ |
| 22 | #include "lisp.h" | 21 | #include "lisp.h" |
| 23 | #include "mem-limits.h" | 22 | #include "mem-limits.h" |
diff --git a/src/widget.c b/src/widget.c index 0100acc8143..fd5ad167125 100644 --- a/src/widget.c +++ b/src/widget.c | |||
| @@ -30,7 +30,7 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 30 | 30 | ||
| 31 | #include <config.h> | 31 | #include <config.h> |
| 32 | #include <stdio.h> | 32 | #include <stdio.h> |
| 33 | #include <setjmp.h> | 33 | |
| 34 | #include "lisp.h" | 34 | #include "lisp.h" |
| 35 | #include "xterm.h" | 35 | #include "xterm.h" |
| 36 | 36 | ||
diff --git a/src/window.c b/src/window.c index 18a550782e8..b3db1292e5c 100644 --- a/src/window.c +++ b/src/window.c | |||
| @@ -23,7 +23,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 23 | #define WINDOW_INLINE EXTERN_INLINE | 23 | #define WINDOW_INLINE EXTERN_INLINE |
| 24 | 24 | ||
| 25 | #include <stdio.h> | 25 | #include <stdio.h> |
| 26 | #include <setjmp.h> | ||
| 27 | 26 | ||
| 28 | #include "lisp.h" | 27 | #include "lisp.h" |
| 29 | #include "character.h" | 28 | #include "character.h" |
diff --git a/src/xdisp.c b/src/xdisp.c index 320998a5713..8e0975cf65a 100644 --- a/src/xdisp.c +++ b/src/xdisp.c | |||
| @@ -273,7 +273,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 273 | #include <config.h> | 273 | #include <config.h> |
| 274 | #include <stdio.h> | 274 | #include <stdio.h> |
| 275 | #include <limits.h> | 275 | #include <limits.h> |
| 276 | #include <setjmp.h> | ||
| 277 | 276 | ||
| 278 | #include "lisp.h" | 277 | #include "lisp.h" |
| 279 | #include "keyboard.h" | 278 | #include "keyboard.h" |
diff --git a/src/xfaces.c b/src/xfaces.c index c113c1a37b7..c240a05c6c0 100644 --- a/src/xfaces.c +++ b/src/xfaces.c | |||
| @@ -204,7 +204,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 204 | #include <sys/types.h> | 204 | #include <sys/types.h> |
| 205 | #include <sys/stat.h> | 205 | #include <sys/stat.h> |
| 206 | #include <stdio.h> /* This needs to be before termchar.h */ | 206 | #include <stdio.h> /* This needs to be before termchar.h */ |
| 207 | #include <setjmp.h> | ||
| 208 | 207 | ||
| 209 | #include "lisp.h" | 208 | #include "lisp.h" |
| 210 | #include "character.h" | 209 | #include "character.h" |
diff --git a/src/xfns.c b/src/xfns.c index 90b54d12345..8304a3df04f 100644 --- a/src/xfns.c +++ b/src/xfns.c | |||
| @@ -20,7 +20,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 20 | #include <config.h> | 20 | #include <config.h> |
| 21 | #include <stdio.h> | 21 | #include <stdio.h> |
| 22 | #include <math.h> | 22 | #include <math.h> |
| 23 | #include <setjmp.h> | ||
| 24 | #include <unistd.h> | 23 | #include <unistd.h> |
| 25 | 24 | ||
| 26 | /* This makes the fields of a Display accessible, in Xlib header files. */ | 25 | /* This makes the fields of a Display accessible, in Xlib header files. */ |
diff --git a/src/xfont.c b/src/xfont.c index 7755b780815..1f2fd13f1b7 100644 --- a/src/xfont.c +++ b/src/xfont.c | |||
| @@ -21,7 +21,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 21 | 21 | ||
| 22 | #include <config.h> | 22 | #include <config.h> |
| 23 | #include <stdio.h> | 23 | #include <stdio.h> |
| 24 | #include <setjmp.h> | ||
| 25 | #include <X11/Xlib.h> | 24 | #include <X11/Xlib.h> |
| 26 | 25 | ||
| 27 | #include "lisp.h" | 26 | #include "lisp.h" |
diff --git a/src/xftfont.c b/src/xftfont.c index 404b9124099..9f52eb8b233 100644 --- a/src/xftfont.c +++ b/src/xftfont.c | |||
| @@ -21,7 +21,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 21 | 21 | ||
| 22 | #include <config.h> | 22 | #include <config.h> |
| 23 | #include <stdio.h> | 23 | #include <stdio.h> |
| 24 | #include <setjmp.h> | ||
| 25 | #include <X11/Xlib.h> | 24 | #include <X11/Xlib.h> |
| 26 | #include <X11/Xft/Xft.h> | 25 | #include <X11/Xft/Xft.h> |
| 27 | 26 | ||
diff --git a/src/xgselect.c b/src/xgselect.c index 5f4c7edfb79..c161564a322 100644 --- a/src/xgselect.c +++ b/src/xgselect.c | |||
| @@ -19,14 +19,12 @@ along with GNU Emacs. If not, see <http§://www.gnu.org/licenses/>. */ | |||
| 19 | 19 | ||
| 20 | #include <config.h> | 20 | #include <config.h> |
| 21 | 21 | ||
| 22 | #include <setjmp.h> | ||
| 23 | #include "xgselect.h" | 22 | #include "xgselect.h" |
| 24 | 23 | ||
| 25 | #if defined (USE_GTK) || defined (HAVE_GCONF) || defined (HAVE_GSETTINGS) | 24 | #if defined (USE_GTK) || defined (HAVE_GCONF) || defined (HAVE_GSETTINGS) |
| 26 | 25 | ||
| 27 | #include <glib.h> | 26 | #include <glib.h> |
| 28 | #include <errno.h> | 27 | #include <errno.h> |
| 29 | #include <setjmp.h> | ||
| 30 | #include "xterm.h" | 28 | #include "xterm.h" |
| 31 | 29 | ||
| 32 | int | 30 | int |
diff --git a/src/xmenu.c b/src/xmenu.c index 605db13e149..d03a4bc974b 100644 --- a/src/xmenu.c +++ b/src/xmenu.c | |||
| @@ -33,7 +33,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 33 | #include <config.h> | 33 | #include <config.h> |
| 34 | 34 | ||
| 35 | #include <stdio.h> | 35 | #include <stdio.h> |
| 36 | #include <setjmp.h> | ||
| 37 | 36 | ||
| 38 | #include "lisp.h" | 37 | #include "lisp.h" |
| 39 | #include "keyboard.h" | 38 | #include "keyboard.h" |
| @@ -20,7 +20,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 20 | 20 | ||
| 21 | #ifdef HAVE_LIBXML2 | 21 | #ifdef HAVE_LIBXML2 |
| 22 | 22 | ||
| 23 | #include <setjmp.h> | ||
| 24 | #include <libxml/tree.h> | 23 | #include <libxml/tree.h> |
| 25 | #include <libxml/parser.h> | 24 | #include <libxml/parser.h> |
| 26 | #include <libxml/HTMLparser.h> | 25 | #include <libxml/HTMLparser.h> |
diff --git a/src/xrdb.c b/src/xrdb.c index 624bafa5e92..73672c9617c 100644 --- a/src/xrdb.c +++ b/src/xrdb.c | |||
| @@ -26,7 +26,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 26 | #include <epaths.h> | 26 | #include <epaths.h> |
| 27 | 27 | ||
| 28 | #include <stdio.h> | 28 | #include <stdio.h> |
| 29 | #include <setjmp.h> | ||
| 30 | 29 | ||
| 31 | #include "lisp.h" | 30 | #include "lisp.h" |
| 32 | 31 | ||
diff --git a/src/xselect.c b/src/xselect.c index 5a3b7452c6d..ab199e0b9b9 100644 --- a/src/xselect.c +++ b/src/xselect.c | |||
| @@ -22,7 +22,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 22 | #include <config.h> | 22 | #include <config.h> |
| 23 | #include <limits.h> | 23 | #include <limits.h> |
| 24 | #include <stdio.h> /* termhooks.h needs this */ | 24 | #include <stdio.h> /* termhooks.h needs this */ |
| 25 | #include <setjmp.h> | ||
| 26 | 25 | ||
| 27 | #ifdef HAVE_SYS_TYPES_H | 26 | #ifdef HAVE_SYS_TYPES_H |
| 28 | #include <sys/types.h> | 27 | #include <sys/types.h> |
diff --git a/src/xsettings.c b/src/xsettings.c index a28d75d9422..58c84495489 100644 --- a/src/xsettings.c +++ b/src/xsettings.c | |||
| @@ -21,7 +21,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 21 | 21 | ||
| 22 | #include <float.h> | 22 | #include <float.h> |
| 23 | #include <limits.h> | 23 | #include <limits.h> |
| 24 | #include <setjmp.h> | ||
| 25 | #include <fcntl.h> | 24 | #include <fcntl.h> |
| 26 | #include "lisp.h" | 25 | #include "lisp.h" |
| 27 | #include "xterm.h" | 26 | #include "xterm.h" |
| @@ -711,12 +710,12 @@ apply_xft_settings (struct x_display_info *dpyinfo, | |||
| 711 | if (send_event_p) | 710 | if (send_event_p) |
| 712 | store_config_changed_event (Qfont_render, | 711 | store_config_changed_event (Qfont_render, |
| 713 | XCAR (dpyinfo->name_list_element)); | 712 | XCAR (dpyinfo->name_list_element)); |
| 714 | Vxft_settings | 713 | Vxft_settings |
| 715 | = make_formatted_string (buf, format, | 714 | = make_formatted_string (buf, format, |
| 716 | oldsettings.aa, oldsettings.hinting, | 715 | oldsettings.aa, oldsettings.hinting, |
| 717 | oldsettings.rgba, oldsettings.lcdfilter, | 716 | oldsettings.rgba, oldsettings.lcdfilter, |
| 718 | oldsettings.hintstyle, oldsettings.dpi); | 717 | oldsettings.hintstyle, oldsettings.dpi); |
| 719 | 718 | ||
| 720 | } | 719 | } |
| 721 | else | 720 | else |
| 722 | FcPatternDestroy (pat); | 721 | FcPatternDestroy (pat); |
diff --git a/src/xsmfns.c b/src/xsmfns.c index cddbb2aae86..8067899f931 100644 --- a/src/xsmfns.c +++ b/src/xsmfns.c | |||
| @@ -29,7 +29,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 29 | #include <unistd.h> | 29 | #include <unistd.h> |
| 30 | #include <sys/param.h> | 30 | #include <sys/param.h> |
| 31 | #include <stdio.h> | 31 | #include <stdio.h> |
| 32 | #include <setjmp.h> | ||
| 33 | 32 | ||
| 34 | #include "lisp.h" | 33 | #include "lisp.h" |
| 35 | #include "systime.h" | 34 | #include "systime.h" |
diff --git a/src/xterm.c b/src/xterm.c index 54d4f14bdd0..900a1d78b80 100644 --- a/src/xterm.c +++ b/src/xterm.c | |||
| @@ -22,7 +22,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 22 | 22 | ||
| 23 | #include <config.h> | 23 | #include <config.h> |
| 24 | #include <stdio.h> | 24 | #include <stdio.h> |
| 25 | #include <setjmp.h> | ||
| 26 | 25 | ||
| 27 | #ifdef HAVE_X_WINDOWS | 26 | #ifdef HAVE_X_WINDOWS |
| 28 | 27 | ||
| @@ -47,7 +46,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 47 | 46 | ||
| 48 | #include <fcntl.h> | 47 | #include <fcntl.h> |
| 49 | #include <errno.h> | 48 | #include <errno.h> |
| 50 | #include <setjmp.h> | ||
| 51 | #include <sys/stat.h> | 49 | #include <sys/stat.h> |
| 52 | /* Caused redefinition of DBL_DIG on Netbsd; seems not to be needed. */ | 50 | /* Caused redefinition of DBL_DIG on Netbsd; seems not to be needed. */ |
| 53 | /* #include <sys/param.h> */ | 51 | /* #include <sys/param.h> */ |