* alloc.c: Do not define struct catchtag.
* eval.c: Move struct catchtag definition ... * lisp.h: ... here. * image.c: Move png.h #include earlier to avoid warnings. * xterm.c: * xsmfns.c: * xselect.c: * xrdb.c: * xmenu.c: * xftfont.c: * xfont.c: * xfns.c: * xfaces.c: * xdisp.c: * window.c: * widget.c: * w32xfns.c: * w32uniscribe.c: * w32term.c: * w32select.c: * w32reg.c: * w32proc.c: * w32menu.c: * w32inevt.c: * w32heap.c: * w32font.c: * w32fns.c: * w32console.c: * w32.c: * w16select.c: * vm-limit.c: * unexsol.c: * unexec.c: * unexcw.c: * unexaix.c: * undo.c: * tparam.c: * textprop.c: * terminfo.c: * terminal.c: * termcap.c: * term.c: * syntax.c: * sound.c: * sheap.c: * search.c: * scroll.c: * region-cache.c: * regex.c: * ralloc.c: * process.c: * print.c: * msdos.c: * minibuf.c: * menu.c: * marker.c: * macros.c: * keymap.c: * keyboard.c: * intervals.c: * insdel.c: * indent.c: * gtkutil.c: * ftxfont.c: * ftfont.c: * fringe.c: * frame.c: * fontset.c: * font.c: * fns.c: * floatfns.c: * filelock.c: * fileio.c: * emacs.c: * editfns.c: * dosfns.c: * doprnt.c: * doc.c: * dispnew.c: * dired.c: * dbusbind.c: * data.c: * composite.c: * coding.c: * cmds.c: * cm.c: * chartab.c: * charset.c: * character.c: * ccl.c: * category.c: * casetab.c: * casefiddle.c: * callproc.c: * callint.c: * bytecode.c: * buffer.c: * atimer.c: Include setjmp.h. (Bug#4643) * xlwmenu.c: * lwlib.c: * lwlib-utils.c: * lwlib-Xm.c: * lwlib-Xlw.c: * lwlib-Xaw.c: Include setjmp.h.
This commit is contained in:
parent
a9e7f03da3
commit
d7306fe6b1
106 changed files with 258 additions and 49 deletions
|
@ -1,3 +1,12 @@
|
|||
2009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
|
||||
|
||||
* xlwmenu.c:
|
||||
* lwlib.c:
|
||||
* lwlib-utils.c:
|
||||
* lwlib-Xm.c:
|
||||
* lwlib-Xlw.c:
|
||||
* lwlib-Xaw.c: Include setjmp.h.
|
||||
|
||||
2009-06-21 Chong Yidong <cyd@stupidchicken.com>
|
||||
|
||||
* Branch for 23.1.
|
||||
|
|
|
@ -25,6 +25,7 @@ Boston, MA 02110-1301, USA. */
|
|||
#endif
|
||||
|
||||
#include <stdio.h>
|
||||
#include <setjmp.h>
|
||||
|
||||
#include "../src/lisp.h"
|
||||
|
||||
|
|
|
@ -24,6 +24,7 @@ Boston, MA 02110-1301, USA. */
|
|||
#include <config.h>
|
||||
#endif
|
||||
|
||||
#include <setjmp.h>
|
||||
#include "lisp.h"
|
||||
|
||||
#include "lwlib-Xlw.h"
|
||||
|
|
|
@ -26,6 +26,7 @@ Boston, MA 02110-1301, USA. */
|
|||
|
||||
#include <unistd.h>
|
||||
#include <stdio.h>
|
||||
#include <setjmp.h>
|
||||
|
||||
#include <X11/StringDefs.h>
|
||||
#include <X11/IntrinsicP.h>
|
||||
|
|
|
@ -31,6 +31,7 @@ Boston, MA 02110-1301, USA. */
|
|||
#undef index
|
||||
#undef rindex
|
||||
|
||||
#include <setjmp.h>
|
||||
#include "../src/lisp.h"
|
||||
|
||||
#include <X11/Xatom.h>
|
||||
|
|
|
@ -24,6 +24,7 @@ Boston, MA 02110-1301, USA. */
|
|||
#include <config.h>
|
||||
#endif
|
||||
|
||||
#include <setjmp.h>
|
||||
#include "../src/lisp.h"
|
||||
|
||||
#include <sys/types.h>
|
||||
|
|
|
@ -26,6 +26,7 @@ Boston, MA 02110-1301, USA. */
|
|||
#include <config.h>
|
||||
#endif
|
||||
|
||||
#include <setjmp.h>
|
||||
#include "lisp.h"
|
||||
|
||||
#include <stdio.h>
|
||||
|
|
103
src/ChangeLog
103
src/ChangeLog
|
@ -1,3 +1,106 @@
|
|||
2009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
|
||||
|
||||
* alloc.c: Do not define struct catchtag.
|
||||
* eval.c: Move struct catchtag definition ...
|
||||
* lisp.h: ... here.
|
||||
|
||||
* image.c: Move png.h #include earlier to avoid warnings.
|
||||
|
||||
* xterm.c:
|
||||
* xsmfns.c:
|
||||
* xselect.c:
|
||||
* xrdb.c:
|
||||
* xmenu.c:
|
||||
* xftfont.c:
|
||||
* xfont.c:
|
||||
* xfns.c:
|
||||
* xfaces.c:
|
||||
* xdisp.c:
|
||||
* window.c:
|
||||
* widget.c:
|
||||
* w32xfns.c:
|
||||
* w32uniscribe.c:
|
||||
* w32term.c:
|
||||
* w32select.c:
|
||||
* w32reg.c:
|
||||
* w32proc.c:
|
||||
* w32menu.c:
|
||||
* w32inevt.c:
|
||||
* w32heap.c:
|
||||
* w32font.c:
|
||||
* w32fns.c:
|
||||
* w32console.c:
|
||||
* w32.c:
|
||||
* w16select.c:
|
||||
* vm-limit.c:
|
||||
* unexsol.c:
|
||||
* unexec.c:
|
||||
* unexcw.c:
|
||||
* unexaix.c:
|
||||
* undo.c:
|
||||
* tparam.c:
|
||||
* textprop.c:
|
||||
* terminfo.c:
|
||||
* terminal.c:
|
||||
* termcap.c:
|
||||
* term.c:
|
||||
* syntax.c:
|
||||
* sound.c:
|
||||
* sheap.c:
|
||||
* search.c:
|
||||
* scroll.c:
|
||||
* region-cache.c:
|
||||
* regex.c:
|
||||
* ralloc.c:
|
||||
* process.c:
|
||||
* print.c:
|
||||
* msdos.c:
|
||||
* minibuf.c:
|
||||
* menu.c:
|
||||
* marker.c:
|
||||
* macros.c:
|
||||
* keymap.c:
|
||||
* keyboard.c:
|
||||
* intervals.c:
|
||||
* insdel.c:
|
||||
* indent.c:
|
||||
* gtkutil.c:
|
||||
* ftxfont.c:
|
||||
* ftfont.c:
|
||||
* fringe.c:
|
||||
* frame.c:
|
||||
* fontset.c:
|
||||
* font.c:
|
||||
* fns.c:
|
||||
* floatfns.c:
|
||||
* filelock.c:
|
||||
* fileio.c:
|
||||
* emacs.c:
|
||||
* editfns.c:
|
||||
* dosfns.c:
|
||||
* doprnt.c:
|
||||
* doc.c:
|
||||
* dispnew.c:
|
||||
* dired.c:
|
||||
* dbusbind.c:
|
||||
* data.c:
|
||||
* composite.c:
|
||||
* coding.c:
|
||||
* cmds.c:
|
||||
* cm.c:
|
||||
* chartab.c:
|
||||
* charset.c:
|
||||
* character.c:
|
||||
* ccl.c:
|
||||
* category.c:
|
||||
* casetab.c:
|
||||
* casefiddle.c:
|
||||
* callproc.c:
|
||||
* callint.c:
|
||||
* bytecode.c:
|
||||
* buffer.c:
|
||||
* atimer.c: Include setjmp.h. (Bug#4643)
|
||||
|
||||
2009-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
|
||||
|
||||
Remove leftover table unibyte_to_multibyte_table.
|
||||
|
|
|
@ -21,6 +21,7 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
|
|||
#include <config.h>
|
||||
#include <stdio.h>
|
||||
#include <limits.h> /* For CHAR_BIT. */
|
||||
#include <setjmp.h>
|
||||
|
||||
#ifdef STDC_HEADERS
|
||||
#include <stddef.h> /* For offsetof, used by PSEUDOVECSIZE. */
|
||||
|
@ -4939,13 +4940,6 @@ staticpro (varaddress)
|
|||
abort ();
|
||||
}
|
||||
|
||||
struct catchtag
|
||||
{
|
||||
Lisp_Object tag;
|
||||
Lisp_Object val;
|
||||
struct catchtag *next;
|
||||
};
|
||||
|
||||
|
||||
/***********************************************************************
|
||||
Protection from GC
|
||||
|
|
|
@ -20,6 +20,7 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
|
|||
#include <config.h>
|
||||
#include <signal.h>
|
||||
#include <stdio.h>
|
||||
#include <setjmp.h>
|
||||
#include <lisp.h>
|
||||
#include <syssignal.h>
|
||||
#include <systime.h>
|
||||
|
|
|
@ -26,6 +26,7 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
|
|||
#include <sys/param.h>
|
||||
#include <errno.h>
|
||||
#include <stdio.h>
|
||||
#include <setjmp.h>
|
||||
|
||||
#ifndef USE_CRT_DLL
|
||||
extern int errno;
|
||||
|
|
|
@ -34,6 +34,7 @@ by Hallvard:
|
|||
*/
|
||||
|
||||
#include <config.h>
|
||||
#include <setjmp.h>
|
||||
#include "lisp.h"
|
||||
#include "buffer.h"
|
||||
#include "character.h"
|
||||
|
|
|
@ -20,6 +20,7 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
|
|||
|
||||
|
||||
#include <config.h>
|
||||
#include <setjmp.h>
|
||||
|
||||
#include "lisp.h"
|
||||
#include "buffer.h"
|
||||
|
|
|
@ -23,6 +23,7 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
|
|||
#include <signal.h>
|
||||
#include <errno.h>
|
||||
#include <stdio.h>
|
||||
#include <setjmp.h>
|
||||
|
||||
#ifndef USE_CRT_DLL
|
||||
extern int errno;
|
||||
|
|
|
@ -19,6 +19,7 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
|
|||
|
||||
|
||||
#include <config.h>
|
||||
#include <setjmp.h>
|
||||
#include "lisp.h"
|
||||
#include "buffer.h"
|
||||
#include "character.h"
|
||||
|
|
|
@ -20,6 +20,7 @@ You should have received a copy of the GNU General Public License
|
|||
along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
|
||||
|
||||
#include <config.h>
|
||||
#include <setjmp.h>
|
||||
#include "lisp.h"
|
||||
#include "buffer.h"
|
||||
#include "character.h"
|
||||
|
|
|
@ -30,6 +30,7 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
|
|||
|
||||
#include <config.h>
|
||||
#include <ctype.h>
|
||||
#include <setjmp.h>
|
||||
#include "lisp.h"
|
||||
#include "buffer.h"
|
||||
#include "character.h"
|
||||
|
|
|
@ -27,6 +27,7 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
|
|||
#include <config.h>
|
||||
|
||||
#include <stdio.h>
|
||||
#include <setjmp.h>
|
||||
|
||||
#include "lisp.h"
|
||||
#include "character.h"
|
||||
|
|
|
@ -34,6 +34,7 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
|
|||
#ifdef emacs
|
||||
|
||||
#include <sys/types.h>
|
||||
#include <setjmp.h>
|
||||
#include "lisp.h"
|
||||
#include "character.h"
|
||||
#include "buffer.h"
|
||||
|
|
|
@ -31,6 +31,7 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
|
|||
#include <unistd.h>
|
||||
#include <ctype.h>
|
||||
#include <sys/types.h>
|
||||
#include <setjmp.h>
|
||||
#include "lisp.h"
|
||||
#include "character.h"
|
||||
#include "charset.h"
|
||||
|
|
|
@ -19,6 +19,7 @@ You should have received a copy of the GNU General Public License
|
|||
along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
|
||||
|
||||
#include <config.h>
|
||||
#include <setjmp.h>
|
||||
#include "lisp.h"
|
||||
#include "character.h"
|
||||
#include "charset.h"
|
||||
|
|
1
src/cm.c
1
src/cm.c
|
@ -21,6 +21,7 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
|
|||
|
||||
#include <config.h>
|
||||
#include <stdio.h>
|
||||
#include <setjmp.h>
|
||||
|
||||
#include "lisp.h"
|
||||
#include "frame.h"
|
||||
|
|
|
@ -20,6 +20,7 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
|
|||
|
||||
|
||||
#include <config.h>
|
||||
#include <setjmp.h>
|
||||
#include "lisp.h"
|
||||
#include "commands.h"
|
||||
#include "buffer.h"
|
||||
|
|
|
@ -289,6 +289,7 @@ encode_coding_XXX (coding)
|
|||
|
||||
#include <config.h>
|
||||
#include <stdio.h>
|
||||
#include <setjmp.h>
|
||||
|
||||
#include "lisp.h"
|
||||
#include "buffer.h"
|
||||
|
|
|
@ -24,6 +24,7 @@ You should have received a copy of the GNU General Public License
|
|||
along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
|
||||
|
||||
#include <config.h>
|
||||
#include <setjmp.h>
|
||||
#include "lisp.h"
|
||||
#include "buffer.h"
|
||||
#include "character.h"
|
||||
|
|
|
@ -22,6 +22,7 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
|
|||
#include <config.h>
|
||||
#include <signal.h>
|
||||
#include <stdio.h>
|
||||
#include <setjmp.h>
|
||||
#include "lisp.h"
|
||||
#include "puresize.h"
|
||||
#include "character.h"
|
||||
|
|
|
@ -22,6 +22,7 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
|
|||
#include <stdlib.h>
|
||||
#include <stdio.h>
|
||||
#include <dbus/dbus.h>
|
||||
#include <setjmp.h>
|
||||
#include "lisp.h"
|
||||
#include "frame.h"
|
||||
#include "termhooks.h"
|
||||
|
|
|
@ -23,6 +23,7 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
|
|||
#include <stdio.h>
|
||||
#include <sys/types.h>
|
||||
#include <sys/stat.h>
|
||||
#include <setjmp.h>
|
||||
|
||||
#ifdef HAVE_PWD_H
|
||||
#include <pwd.h>
|
||||
|
|
|
@ -22,6 +22,7 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
|
|||
#include <signal.h>
|
||||
#include <stdio.h>
|
||||
#include <ctype.h>
|
||||
#include <setjmp.h>
|
||||
|
||||
#ifdef HAVE_UNISTD_H
|
||||
#include <unistd.h>
|
||||
|
|
|
@ -24,6 +24,7 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
|
|||
#include <sys/types.h>
|
||||
#include <sys/file.h> /* Must be after sys/types.h for USG*/
|
||||
#include <ctype.h>
|
||||
#include <setjmp.h>
|
||||
|
||||
#ifdef HAVE_FCNTL_H
|
||||
#include <fcntl.h>
|
||||
|
|
|
@ -23,6 +23,7 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
|
|||
#include <config.h>
|
||||
#include <stdio.h>
|
||||
#include <ctype.h>
|
||||
#include <setjmp.h>
|
||||
|
||||
#ifdef STDC_HEADERS
|
||||
#include <float.h>
|
||||
|
|
|
@ -26,6 +26,7 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
|
|||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
#include <dos.h>
|
||||
#include <setjmp.h>
|
||||
#include "lisp.h"
|
||||
#include "buffer.h"
|
||||
#include "termchar.h"
|
||||
|
|
|
@ -22,6 +22,7 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
|
|||
#include <config.h>
|
||||
#include <sys/types.h>
|
||||
#include <stdio.h>
|
||||
#include <setjmp.h>
|
||||
|
||||
#ifdef HAVE_PWD_H
|
||||
#include <pwd.h>
|
||||
|
|
|
@ -26,6 +26,7 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
|
|||
|
||||
#include <sys/types.h>
|
||||
#include <sys/file.h>
|
||||
#include <setjmp.h>
|
||||
|
||||
#ifdef HAVE_UNISTD_H
|
||||
#include <unistd.h>
|
||||
|
|
37
src/eval.c
37
src/eval.c
|
@ -20,12 +20,12 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
|
|||
|
||||
|
||||
#include <config.h>
|
||||
#include <setjmp.h>
|
||||
#include "lisp.h"
|
||||
#include "blockinput.h"
|
||||
#include "commands.h"
|
||||
#include "keyboard.h"
|
||||
#include "dispextern.h"
|
||||
#include <setjmp.h>
|
||||
|
||||
#if HAVE_X_WINDOWS
|
||||
#include "xterm.h"
|
||||
|
@ -49,41 +49,6 @@ struct backtrace
|
|||
|
||||
struct backtrace *backtrace_list;
|
||||
|
||||
/* This structure helps implement the `catch' and `throw' control
|
||||
structure. A struct catchtag contains all the information needed
|
||||
to restore the state of the interpreter after a non-local jump.
|
||||
|
||||
Handlers for error conditions (represented by `struct handler'
|
||||
structures) just point to a catch tag to do the cleanup required
|
||||
for their jumps.
|
||||
|
||||
catchtag structures are chained together in the C calling stack;
|
||||
the `next' member points to the next outer catchtag.
|
||||
|
||||
A call like (throw TAG VAL) searches for a catchtag whose `tag'
|
||||
member is TAG, and then unbinds to it. The `val' member is used to
|
||||
hold VAL while the stack is unwound; `val' is returned as the value
|
||||
of the catch form.
|
||||
|
||||
All the other members are concerned with restoring the interpreter
|
||||
state. */
|
||||
|
||||
struct catchtag
|
||||
{
|
||||
Lisp_Object tag;
|
||||
Lisp_Object val;
|
||||
struct catchtag *next;
|
||||
struct gcpro *gcpro;
|
||||
jmp_buf jmp;
|
||||
struct backtrace *backlist;
|
||||
struct handler *handlerlist;
|
||||
int lisp_eval_depth;
|
||||
int pdlcount;
|
||||
int poll_suppress_count;
|
||||
int interrupt_input_blocked;
|
||||
struct byte_stack *byte_stack;
|
||||
};
|
||||
|
||||
struct catchtag *catchlist;
|
||||
|
||||
#ifdef DEBUG_GCPRO
|
||||
|
|
|
@ -28,6 +28,7 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
|
|||
#include <stdio.h>
|
||||
#include <sys/types.h>
|
||||
#include <sys/stat.h>
|
||||
#include <setjmp.h>
|
||||
|
||||
#ifdef HAVE_UNISTD_H
|
||||
#include <unistd.h>
|
||||
|
|
|
@ -24,6 +24,7 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
|
|||
#include <sys/stat.h>
|
||||
#include <signal.h>
|
||||
#include <stdio.h>
|
||||
#include <setjmp.h>
|
||||
|
||||
#ifdef HAVE_PWD_H
|
||||
#include <pwd.h>
|
||||
|
|
|
@ -48,6 +48,7 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
|
|||
|
||||
#include <config.h>
|
||||
#include <signal.h>
|
||||
#include <setjmp.h>
|
||||
#include "lisp.h"
|
||||
#include "syssignal.h"
|
||||
|
||||
|
|
|
@ -24,6 +24,7 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
|
|||
#include <unistd.h>
|
||||
#endif
|
||||
#include <time.h>
|
||||
#include <setjmp.h>
|
||||
|
||||
/* Note on some machines this defines `vector' as a typedef,
|
||||
so make sure we don't use that name in this file. */
|
||||
|
|
|
@ -23,6 +23,7 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
|
|||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <ctype.h>
|
||||
#include <setjmp.h>
|
||||
|
||||
#include "lisp.h"
|
||||
#include "buffer.h"
|
||||
|
|
|
@ -28,6 +28,7 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
|
|||
|
||||
#include <config.h>
|
||||
#include <stdio.h>
|
||||
#include <setjmp.h>
|
||||
|
||||
#include "lisp.h"
|
||||
#include "blockinput.h"
|
||||
|
|
|
@ -21,6 +21,7 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
|
|||
|
||||
#include <stdio.h>
|
||||
#include <ctype.h>
|
||||
#include <setjmp.h>
|
||||
#include "lisp.h"
|
||||
#include "character.h"
|
||||
#ifdef HAVE_X_WINDOWS
|
||||
|
|
|
@ -20,6 +20,7 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
|
|||
|
||||
#include <config.h>
|
||||
#include <stdio.h>
|
||||
#include <setjmp.h>
|
||||
|
||||
#include "lisp.h"
|
||||
#include "frame.h"
|
||||
|
|
|
@ -21,6 +21,7 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
|
|||
|
||||
#include <config.h>
|
||||
#include <stdio.h>
|
||||
#include <setjmp.h>
|
||||
|
||||
#include <fontconfig/fontconfig.h>
|
||||
#include <fontconfig/fcfreetype.h>
|
||||
|
|
|
@ -21,6 +21,7 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
|
|||
|
||||
#include <config.h>
|
||||
#include <stdio.h>
|
||||
#include <setjmp.h>
|
||||
#include <X11/Xlib.h>
|
||||
|
||||
#include "lisp.h"
|
||||
|
|
|
@ -23,6 +23,7 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
|
|||
#include <string.h>
|
||||
#include <signal.h>
|
||||
#include <stdio.h>
|
||||
#include <setjmp.h>
|
||||
#include "lisp.h"
|
||||
#include "xterm.h"
|
||||
#include "blockinput.h"
|
||||
|
|
14
src/image.c
14
src/image.c
|
@ -27,6 +27,14 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
|
|||
#include <unistd.h>
|
||||
#endif
|
||||
|
||||
#ifdef HAVE_PNG
|
||||
#if defined HAVE_LIBPNG_PNG_H
|
||||
# include <libpng/png.h>
|
||||
#else
|
||||
# include <png.h>
|
||||
#endif
|
||||
#endif
|
||||
|
||||
/* This makes the fields of a Display accessible, in Xlib header files. */
|
||||
|
||||
#define XLIB_ILLEGAL_ACCESS
|
||||
|
@ -5787,12 +5795,6 @@ png_image_p (object)
|
|||
|
||||
#ifdef HAVE_PNG
|
||||
|
||||
#if defined HAVE_LIBPNG_PNG_H
|
||||
# include <libpng/png.h>
|
||||
#else
|
||||
# include <png.h>
|
||||
#endif
|
||||
|
||||
#ifdef HAVE_NTGUI
|
||||
/* PNG library details. */
|
||||
|
||||
|
|
|
@ -20,6 +20,7 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
|
|||
|
||||
#include <config.h>
|
||||
#include <stdio.h>
|
||||
#include <setjmp.h>
|
||||
|
||||
#include "lisp.h"
|
||||
#include "buffer.h"
|
||||
|
|
|
@ -20,6 +20,7 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
|
|||
|
||||
|
||||
#include <config.h>
|
||||
#include <setjmp.h>
|
||||
#include "lisp.h"
|
||||
#include "intervals.h"
|
||||
#include "buffer.h"
|
||||
|
|
|
@ -39,6 +39,7 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
|
|||
|
||||
|
||||
#include <config.h>
|
||||
#include <setjmp.h>
|
||||
#include "lisp.h"
|
||||
#include "intervals.h"
|
||||
#include "buffer.h"
|
||||
|
|
|
@ -21,6 +21,7 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
|
|||
#include <config.h>
|
||||
#include <signal.h>
|
||||
#include <stdio.h>
|
||||
#include <setjmp.h>
|
||||
#include "lisp.h"
|
||||
#include "termchar.h"
|
||||
#include "termopts.h"
|
||||
|
|
|
@ -21,6 +21,7 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
|
|||
|
||||
#include <config.h>
|
||||
#include <stdio.h>
|
||||
#include <setjmp.h>
|
||||
#if HAVE_ALLOCA_H
|
||||
# include <alloca.h>
|
||||
#endif
|
||||
|
|
35
src/lisp.h
35
src/lisp.h
|
@ -1826,6 +1826,41 @@ struct handler
|
|||
|
||||
extern struct handler *handlerlist;
|
||||
|
||||
/* This structure helps implement the `catch' and `throw' control
|
||||
structure. A struct catchtag contains all the information needed
|
||||
to restore the state of the interpreter after a non-local jump.
|
||||
|
||||
Handlers for error conditions (represented by `struct handler'
|
||||
structures) just point to a catch tag to do the cleanup required
|
||||
for their jumps.
|
||||
|
||||
catchtag structures are chained together in the C calling stack;
|
||||
the `next' member points to the next outer catchtag.
|
||||
|
||||
A call like (throw TAG VAL) searches for a catchtag whose `tag'
|
||||
member is TAG, and then unbinds to it. The `val' member is used to
|
||||
hold VAL while the stack is unwound; `val' is returned as the value
|
||||
of the catch form.
|
||||
|
||||
All the other members are concerned with restoring the interpreter
|
||||
state. */
|
||||
|
||||
struct catchtag
|
||||
{
|
||||
Lisp_Object tag;
|
||||
Lisp_Object val;
|
||||
struct catchtag *next;
|
||||
struct gcpro *gcpro;
|
||||
jmp_buf jmp;
|
||||
struct backtrace *backlist;
|
||||
struct handler *handlerlist;
|
||||
int lisp_eval_depth;
|
||||
int pdlcount;
|
||||
int poll_suppress_count;
|
||||
int interrupt_input_blocked;
|
||||
struct byte_stack *byte_stack;
|
||||
};
|
||||
|
||||
extern struct catchtag *catchlist;
|
||||
extern struct backtrace *backtrace_list;
|
||||
|
||||
|
|
|
@ -19,6 +19,7 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
|
|||
|
||||
|
||||
#include <config.h>
|
||||
#include <setjmp.h>
|
||||
#include "lisp.h"
|
||||
#include "macros.h"
|
||||
#include "commands.h"
|
||||
|
|
|
@ -19,6 +19,7 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
|
|||
|
||||
|
||||
#include <config.h>
|
||||
#include <setjmp.h>
|
||||
#include "lisp.h"
|
||||
#include "buffer.h"
|
||||
#include "character.h"
|
||||
|
|
|
@ -19,6 +19,7 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
|
|||
|
||||
#include <config.h>
|
||||
#include <stdio.h>
|
||||
#include <setjmp.h>
|
||||
|
||||
#include "lisp.h"
|
||||
#include "keyboard.h"
|
||||
|
|
|
@ -21,6 +21,7 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
|
|||
|
||||
#include <config.h>
|
||||
#include <stdio.h>
|
||||
#include <setjmp.h>
|
||||
|
||||
#include "lisp.h"
|
||||
#include "commands.h"
|
||||
|
|
|
@ -26,6 +26,7 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
|
|||
#include <config.h>
|
||||
|
||||
#ifdef MSDOS
|
||||
#include <setjmp.h>
|
||||
#include "lisp.h"
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
|
|
|
@ -21,6 +21,7 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
|
|||
|
||||
#include <config.h>
|
||||
#include <stdio.h>
|
||||
#include <setjmp.h>
|
||||
#include "lisp.h"
|
||||
#include "buffer.h"
|
||||
#include "character.h"
|
||||
|
|
|
@ -38,6 +38,7 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
|
|||
#include <sys/types.h> /* some typedefs are used in sys/file.h */
|
||||
#include <sys/file.h>
|
||||
#include <sys/stat.h>
|
||||
#include <setjmp.h>
|
||||
#ifdef HAVE_INTTYPES_H
|
||||
#include <inttypes.h>
|
||||
#endif
|
||||
|
@ -7641,6 +7642,7 @@ The variable takes effect when `start-process' is called. */);
|
|||
#include <sys/stat.h>
|
||||
#include <stdlib.h>
|
||||
#include <fcntl.h>
|
||||
#include <setjmp.h>
|
||||
#ifdef HAVE_UNISTD_H
|
||||
#include <unistd.h>
|
||||
#endif
|
||||
|
|
|
@ -26,6 +26,7 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
|
|||
#ifdef emacs
|
||||
|
||||
#include <config.h>
|
||||
#include <setjmp.h>
|
||||
#include "lisp.h" /* Needed for VALBITS. */
|
||||
#include "blockinput.h"
|
||||
|
||||
|
|
|
@ -117,6 +117,7 @@
|
|||
that make sense only in Emacs. */
|
||||
#ifdef emacs
|
||||
|
||||
# include <setjmp.h>
|
||||
# include "lisp.h"
|
||||
# include "buffer.h"
|
||||
|
||||
|
|
|
@ -20,6 +20,7 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
|
|||
|
||||
#include <config.h>
|
||||
#include <stdio.h>
|
||||
#include <setjmp.h>
|
||||
|
||||
#include "lisp.h"
|
||||
#include "buffer.h"
|
||||
|
|
|
@ -21,6 +21,7 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
|
|||
#include <config.h>
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
#include <setjmp.h>
|
||||
#include "lisp.h"
|
||||
#include "termchar.h"
|
||||
#include "dispextern.h"
|
||||
|
|
|
@ -20,6 +20,7 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
|
|||
|
||||
|
||||
#include <config.h>
|
||||
#include <setjmp.h>
|
||||
#include "lisp.h"
|
||||
#include "syntax.h"
|
||||
#include "category.h"
|
||||
|
|
|
@ -20,6 +20,7 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
|
|||
|
||||
#include <config.h>
|
||||
#include <stdio.h>
|
||||
#include <setjmp.h>
|
||||
#include "lisp.h"
|
||||
|
||||
#include <unistd.h>
|
||||
|
|
|
@ -44,6 +44,7 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
|
|||
#include <unistd.h>
|
||||
#include <sys/types.h>
|
||||
#include <errno.h>
|
||||
#include <setjmp.h>
|
||||
#include "lisp.h"
|
||||
#include "dispextern.h"
|
||||
#include "atimer.h"
|
||||
|
|
|
@ -21,6 +21,7 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
|
|||
|
||||
#include <config.h>
|
||||
#include <ctype.h>
|
||||
#include <setjmp.h>
|
||||
#include "lisp.h"
|
||||
#include "commands.h"
|
||||
#include "buffer.h"
|
||||
|
|
|
@ -37,6 +37,7 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
|
|||
|
||||
#include <signal.h>
|
||||
#include <stdarg.h>
|
||||
#include <setjmp.h>
|
||||
|
||||
#include "lisp.h"
|
||||
#include "termchar.h"
|
||||
|
|
|
@ -24,6 +24,7 @@ Boston, MA 02110-1301, USA. */
|
|||
|
||||
#ifdef emacs
|
||||
|
||||
#include <setjmp.h>
|
||||
#include <lisp.h> /* xmalloc is here */
|
||||
/* Get the O_* definitions for open et al. */
|
||||
#include <sys/file.h>
|
||||
|
|
|
@ -18,6 +18,7 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
|
|||
|
||||
#include <config.h>
|
||||
#include <stdio.h>
|
||||
#include <setjmp.h>
|
||||
|
||||
#include "lisp.h"
|
||||
#include "frame.h"
|
||||
|
|
|
@ -18,6 +18,7 @@ You should have received a copy of the GNU General Public License
|
|||
along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
|
||||
|
||||
#include <config.h>
|
||||
#include <setjmp.h>
|
||||
#include "lisp.h"
|
||||
|
||||
/* Define these variables that serve as global parameters to termcap,
|
||||
|
|
|
@ -18,6 +18,7 @@ You should have received a copy of the GNU General Public License
|
|||
along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
|
||||
|
||||
#include <config.h>
|
||||
#include <setjmp.h>
|
||||
#include "lisp.h"
|
||||
#include "intervals.h"
|
||||
#include "buffer.h"
|
||||
|
|
|
@ -23,6 +23,7 @@ Boston, MA 02110-1301, USA. */
|
|||
#endif
|
||||
|
||||
#ifdef emacs
|
||||
#include <setjmp.h>
|
||||
#include "lisp.h" /* for xmalloc */
|
||||
#else
|
||||
|
||||
|
|
|
@ -19,6 +19,7 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
|
|||
|
||||
|
||||
#include <config.h>
|
||||
#include <setjmp.h>
|
||||
#include "lisp.h"
|
||||
#include "buffer.h"
|
||||
#include "commands.h"
|
||||
|
|
|
@ -104,6 +104,7 @@ static int adjust_lnnoptrs (int, int, char *);
|
|||
static int pagemask;
|
||||
|
||||
#ifdef emacs
|
||||
#include <setjmp.h>
|
||||
#include "lisp.h"
|
||||
|
||||
static void
|
||||
|
|
|
@ -19,6 +19,7 @@ You should have received a copy of the GNU General Public License
|
|||
along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
|
||||
|
||||
#include <config.h>
|
||||
#include <setjmp.h>
|
||||
#include <lisp.h>
|
||||
#include <stdio.h>
|
||||
#include <fcntl.h>
|
||||
|
|
|
@ -204,6 +204,7 @@ static int pagemask;
|
|||
|
||||
#ifdef emacs
|
||||
|
||||
#include <setjmp.h>
|
||||
#include "lisp.h"
|
||||
|
||||
static
|
||||
|
|
|
@ -3,6 +3,7 @@
|
|||
#include <config.h>
|
||||
#include <stdlib.h>
|
||||
#include <dlfcn.h>
|
||||
#include <setjmp.h>
|
||||
|
||||
#include "lisp.h"
|
||||
#include "buffer.h"
|
||||
|
|
|
@ -19,6 +19,7 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
|
|||
|
||||
#ifdef emacs
|
||||
#include <config.h>
|
||||
#include <setjmp.h>
|
||||
#include "lisp.h"
|
||||
#endif
|
||||
|
||||
|
|
|
@ -32,6 +32,7 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
|
|||
#include <dpmi.h>
|
||||
#include <go32.h>
|
||||
#include <sys/farptr.h>
|
||||
#include <setjmp.h>
|
||||
#include "lisp.h"
|
||||
#include "dispextern.h" /* frame.h seems to want this */
|
||||
#include "frame.h" /* Need this to get the X window of selected_frame */
|
||||
|
|
|
@ -34,6 +34,7 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
|
|||
#include <sys/utime.h>
|
||||
#include <mbstring.h> /* for _mbspbrk */
|
||||
#include <math.h>
|
||||
#include <setjmp.h>
|
||||
|
||||
/* must include CRT headers *before* config.h */
|
||||
|
||||
|
|
|
@ -29,6 +29,7 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
|
|||
#include <stdio.h>
|
||||
#include <windows.h>
|
||||
#include <string.h>
|
||||
#include <setjmp.h>
|
||||
|
||||
#include "lisp.h"
|
||||
#include "character.h"
|
||||
|
|
|
@ -27,6 +27,7 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
|
|||
#include <limits.h>
|
||||
#include <errno.h>
|
||||
#include <math.h>
|
||||
#include <setjmp.h>
|
||||
|
||||
#include "lisp.h"
|
||||
#include "w32term.h"
|
||||
|
|
|
@ -21,6 +21,7 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
|
|||
#include <math.h>
|
||||
#include <ctype.h>
|
||||
#include <commdlg.h>
|
||||
#include <setjmp.h>
|
||||
|
||||
#include "lisp.h"
|
||||
#include "w32term.h"
|
||||
|
|
|
@ -27,6 +27,7 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
|
|||
|
||||
#include <stdlib.h>
|
||||
#include <stdio.h>
|
||||
#include <setjmp.h>
|
||||
|
||||
#include "w32heap.h"
|
||||
#include "lisp.h" /* for VALMASK */
|
||||
|
|
|
@ -30,6 +30,7 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
|
|||
#include <stdlib.h>
|
||||
#include <stdio.h>
|
||||
#include <windows.h>
|
||||
#include <setjmp.h>
|
||||
|
||||
#ifndef MOUSE_MOVED
|
||||
#define MOUSE_MOVED 1
|
||||
|
|
|
@ -23,6 +23,7 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
|
|||
#include <signal.h>
|
||||
#include <stdio.h>
|
||||
#include <mbstring.h>
|
||||
#include <setjmp.h>
|
||||
|
||||
#include "lisp.h"
|
||||
#include "keyboard.h"
|
||||
|
|
|
@ -29,6 +29,7 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
|
|||
#include <fcntl.h>
|
||||
#include <signal.h>
|
||||
#include <sys/file.h>
|
||||
#include <setjmp.h>
|
||||
|
||||
/* must include CRT headers *before* config.h */
|
||||
|
||||
|
|
|
@ -20,6 +20,7 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
|
|||
/* Written by Kevin Gallo */
|
||||
|
||||
#include <config.h>
|
||||
#include <setjmp.h>
|
||||
#include "lisp.h"
|
||||
#include "w32term.h"
|
||||
#include "blockinput.h"
|
||||
|
|
|
@ -73,6 +73,7 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
|
|||
*/
|
||||
|
||||
#include <config.h>
|
||||
#include <setjmp.h>
|
||||
#include "lisp.h"
|
||||
#include "w32term.h" /* for all of the w32 includes */
|
||||
#include "w32heap.h" /* os_subtype */
|
||||
|
|
|
@ -22,6 +22,7 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
|
|||
#include <signal.h>
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <setjmp.h>
|
||||
#include "lisp.h"
|
||||
#include "blockinput.h"
|
||||
#include "w32term.h"
|
||||
|
|
|
@ -27,6 +27,7 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
|
|||
#define _WIN32_WINNT 0x500
|
||||
#include <windows.h>
|
||||
#include <usp10.h>
|
||||
#include <setjmp.h>
|
||||
|
||||
#include "lisp.h"
|
||||
#include "w32term.h"
|
||||
|
|
|
@ -20,6 +20,7 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
|
|||
#include <config.h>
|
||||
#include <signal.h>
|
||||
#include <stdio.h>
|
||||
#include <setjmp.h>
|
||||
#include "lisp.h"
|
||||
#include "keyboard.h"
|
||||
#include "frame.h"
|
||||
|
|
|
@ -31,6 +31,7 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
|
|||
|
||||
#include <config.h>
|
||||
#include <stdio.h>
|
||||
#include <setjmp.h>
|
||||
#include "lisp.h"
|
||||
#include "xterm.h"
|
||||
|
||||
|
|
|
@ -21,6 +21,7 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
|
|||
|
||||
#include <config.h>
|
||||
#include <stdio.h>
|
||||
#include <setjmp.h>
|
||||
|
||||
#include "lisp.h"
|
||||
#include "buffer.h"
|
||||
|
|
|
@ -168,6 +168,7 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
|
|||
#include <config.h>
|
||||
#include <stdio.h>
|
||||
#include <limits.h>
|
||||
#include <setjmp.h>
|
||||
|
||||
#include "lisp.h"
|
||||
#include "keyboard.h"
|
||||
|
|
|
@ -204,6 +204,7 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
|
|||
#include <sys/types.h>
|
||||
#include <sys/stat.h>
|
||||
#include <stdio.h> /* This needs to be before termchar.h */
|
||||
#include <setjmp.h>
|
||||
|
||||
#include "lisp.h"
|
||||
#include "character.h"
|
||||
|
|
|
@ -21,6 +21,7 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
|
|||
#include <config.h>
|
||||
#include <stdio.h>
|
||||
#include <math.h>
|
||||
#include <setjmp.h>
|
||||
|
||||
#ifdef HAVE_UNISTD_H
|
||||
#include <unistd.h>
|
||||
|
|
|
@ -22,6 +22,7 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
|
|||
#include <config.h>
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <setjmp.h>
|
||||
#include <X11/Xlib.h>
|
||||
|
||||
#include "lisp.h"
|
||||
|
|
Some files were not shown because too many files have changed in this diff Show more
Loading…
Add table
Reference in a new issue