diff options
author | Miles Bader <[email protected]> | 2007-10-15 05:03:21 +0000 |
---|---|---|
committer | Miles Bader <[email protected]> | 2007-10-15 05:03:21 +0000 |
commit | 63655c83146b773b4ef3d9220b4a9d61545fd050 (patch) | |
tree | 2161d262bba2c99b0db2ed8b322eddcafeadd247 /src/xmenu.c | |
parent | ce8f7ca45fabe11ce32a9ced2b8e7c1987c0d997 (diff) | |
parent | b2529d56b5126319a1659dc1530d6fc102cc21d6 (diff) |
Merge from emacs--devo--0
Patches applied:
* emacs--devo--0 (patch 887-889)
- Update from CVS
- Merge from emacs--rel--22
* emacs--rel--22 (patch 116-121)
- Update from CVS
Revision: [email protected]/emacs--unicode--0--patch-268
Diffstat (limited to 'src/xmenu.c')
-rw-r--r-- | src/xmenu.c | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/src/xmenu.c b/src/xmenu.c index 4e7f07c375..15aab98f9c 100644 --- a/src/xmenu.c +++ b/src/xmenu.c @@ -354,15 +354,8 @@ save_menu_items () static void grow_menu_items () { - Lisp_Object old; - int old_size = menu_items_allocated; - old = menu_items; - menu_items_allocated *= 2; - - menu_items = Fmake_vector (make_number (menu_items_allocated), Qnil); - bcopy (XVECTOR (old)->contents, XVECTOR (menu_items)->contents, - old_size * sizeof (Lisp_Object)); + menu_items = larger_vector (menu_items, menu_items_allocated, Qnil); } /* Begin a submenu. */ |