aboutsummaryrefslogtreecommitdiffstats
path: root/src/eval.c
diff options
context:
space:
mode:
authorKenichi Handa2012-09-16 20:47:45 +0900
committerKenichi Handa2012-09-16 20:47:45 +0900
commitba13e6168a07a085c0ca8e67c91640b84ee0c1fd (patch)
treea63038205a6803ba06f5e17eda974c3ab23e57fb /src/eval.c
parentdcbd9236f7be9da4e658fd559dfbd7454f4b6018 (diff)
parenta8c729af93b08531e5e3f3fff6f16a55c8baac3f (diff)
downloademacs-ba13e6168a07a085c0ca8e67c91640b84ee0c1fd.tar.gz
emacs-ba13e6168a07a085c0ca8e67c91640b84ee0c1fd.zip
merge trunk
Diffstat (limited to 'src/eval.c')
-rw-r--r--src/eval.c15
1 files changed, 7 insertions, 8 deletions
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
1146DEFUN ("throw", Fthrow, Sthrow, 2, 2, 0, 1145DEFUN ("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 }