aboutsummaryrefslogtreecommitdiffstats
path: root/src/alloc.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/alloc.c')
-rw-r--r--src/alloc.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/alloc.c b/src/alloc.c
index 9c81ae2eedf..bb47a24d905 100644
--- a/src/alloc.c
+++ b/src/alloc.c
@@ -3610,6 +3610,17 @@ make_save_ptr_int (void *a, ptrdiff_t b)
3610 return val; 3610 return val;
3611} 3611}
3612 3612
3613Lisp_Object
3614make_save_int_obj (ptrdiff_t a, Lisp_Object b)
3615{
3616 Lisp_Object val = allocate_misc (Lisp_Misc_Save_Value);
3617 struct Lisp_Save_Value *p = XSAVE_VALUE (val);
3618 p->save_type = SAVE_TYPE_INT_OBJ;
3619 p->data[0].integer = a;
3620 p->data[1].object = b;
3621 return val;
3622}
3623
3613#if ! (defined USE_X_TOOLKIT || defined USE_GTK) 3624#if ! (defined USE_X_TOOLKIT || defined USE_GTK)
3614Lisp_Object 3625Lisp_Object
3615make_save_ptr_ptr (void *a, void *b) 3626make_save_ptr_ptr (void *a, void *b)