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/ChangeLog | |
| 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/ChangeLog')
| -rw-r--r-- | src/ChangeLog | 22 |
1 files changed, 22 insertions, 0 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]: |