From f4e891b5a89a773600a329bae75cd615f3c8e0a2 Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Sun, 21 Jul 2013 08:56:55 -0700 Subject: [PATCH] * alloc.c (make_save_ptr_ptr): Define this function. It was inadvertently omitted. It's needed only if HAVE_MENUS && ! (USE_X_TOOLKIT || USE_GTK). --- src/ChangeLog | 6 ++++++ src/alloc.c | 13 +++++++++++++ 2 files changed, 19 insertions(+) diff --git a/src/ChangeLog b/src/ChangeLog index fb2d875eb26..d3c5ffaff58 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,9 @@ +2013-07-21 Paul Eggert + + * alloc.c (make_save_ptr_ptr): Define this function. + It was inadvertently omitted. It's needed only if + HAVE_MENUS && ! (USE_X_TOOLKIT || USE_GTK). + 2013-07-21 Jan Djärv * nsterm.m (sendEvent:): Skip mouse moved if no dialog and no Emacs diff --git a/src/alloc.c b/src/alloc.c index 4c924f72384..e6e06794dbc 100644 --- a/src/alloc.c +++ b/src/alloc.c @@ -3394,6 +3394,19 @@ make_save_ptr_int (void *a, ptrdiff_t b) return val; } +#if defined HAVE_MENUS && ! (defined USE_X_TOOLKIT || defined USE_GTK) +Lisp_Object +make_save_ptr_ptr (void *a, void *b) +{ + Lisp_Object val = allocate_misc (Lisp_Misc_Save_Value); + struct Lisp_Save_Value *p = XSAVE_VALUE (val); + p->save_type = SAVE_TYPE_PTR_PTR; + p->data[0].pointer = a; + p->data[1].pointer = b; + return val; +} +#endif + Lisp_Object make_save_funcptr_ptr_obj (void (*a) (void), void *b, Lisp_Object c) { -- 2.39.2