diff options
| author | Joakim Verona | 2013-08-12 12:29:06 +0200 |
|---|---|---|
| committer | Joakim Verona | 2013-08-12 12:29:06 +0200 |
| commit | 5ff84f8a17c73bf63cc7532e14149380d9f83b3f (patch) | |
| tree | 501ac3b99a49aaa25adedc516bb4ea7a34c22a5c /src/eval.c | |
| parent | c39e73975f7371a6458cd63967d39ba77a1e871a (diff) | |
| parent | 7a67e06b99a85ae700a7ccc75468397d53af59ed (diff) | |
| download | emacs-5ff84f8a17c73bf63cc7532e14149380d9f83b3f.tar.gz emacs-5ff84f8a17c73bf63cc7532e14149380d9f83b3f.zip | |
merge from trunk
Diffstat (limited to 'src/eval.c')
| -rw-r--r-- | src/eval.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/eval.c b/src/eval.c index 8ee259110f4..566be0c2a83 100644 --- a/src/eval.c +++ b/src/eval.c | |||
| @@ -3302,6 +3302,16 @@ clear_unwind_protect (ptrdiff_t count) | |||
| 3302 | previous value without invoking it. */ | 3302 | previous value without invoking it. */ |
| 3303 | 3303 | ||
| 3304 | void | 3304 | void |
| 3305 | set_unwind_protect (ptrdiff_t count, void (*func) (Lisp_Object), | ||
| 3306 | Lisp_Object arg) | ||
| 3307 | { | ||
| 3308 | union specbinding *p = specpdl + count; | ||
| 3309 | p->unwind.kind = SPECPDL_UNWIND; | ||
| 3310 | p->unwind.func = func; | ||
| 3311 | p->unwind.arg = arg; | ||
| 3312 | } | ||
| 3313 | |||
| 3314 | void | ||
| 3305 | set_unwind_protect_ptr (ptrdiff_t count, void (*func) (void *), void *arg) | 3315 | set_unwind_protect_ptr (ptrdiff_t count, void (*func) (void *), void *arg) |
| 3306 | { | 3316 | { |
| 3307 | union specbinding *p = specpdl + count; | 3317 | union specbinding *p = specpdl + count; |