]> git.eshelyaron.com Git - emacs.git/commitdiff
(xmenu_show, menubar_selection_callback): Move declaration
authorKarl Heuer <kwzh@gnu.org>
Tue, 2 May 1995 04:50:07 +0000 (04:50 +0000)
committerKarl Heuer <kwzh@gnu.org>
Tue, 2 May 1995 04:50:07 +0000 (04:50 +0000)
of entry to an outer block, to guarantee its value is preserved.

src/xmenu.c

index 5ac3ca80951ac71d5df3783070d4422fa8be049c..aaa098d55adf84a54e1a5655c0a70a6fe8182333 100644 (file)
@@ -1148,7 +1148,7 @@ menubar_selection_callback (widget, id, client_data)
      LWLIB_ID id;
      XtPointer client_data;
 {
-  Lisp_Object prefix;
+  Lisp_Object prefix, entry;
   FRAME_PTR f = XFRAME (XVECTOR (frame_vector)->contents[id]);
   Lisp_Object vector;
   Lisp_Object *subprefix_stack;
@@ -1163,8 +1163,6 @@ menubar_selection_callback (widget, id, client_data)
   i = 0;
   while (i < f->menu_bar_items_used)
     {
-      Lisp_Object entry;
-
       if (EQ (XVECTOR (vector)->contents[i], Qnil))
        {
          subprefix_stack[submenu_depth++] = prefix;
@@ -1840,14 +1838,12 @@ xmenu_show (f, x, y, for_click, keymaps, title, error)
      the proper value.  */
   if (menu_item_selection != 0)
     {
-      Lisp_Object prefix;
+      Lisp_Object prefix, entry;
 
       prefix = Qnil;
       i = 0;
       while (i < menu_items_used)
        {
-         Lisp_Object entry;
-
          if (EQ (XVECTOR (menu_items)->contents[i], Qnil))
            {
              subprefix_stack[submenu_depth++] = prefix;