diff options
author | Miles Bader <miles@gnu.org> | 2007-10-15 05:03:21 +0000 |
---|---|---|
committer | Miles Bader <miles@gnu.org> | 2007-10-15 05:03:21 +0000 |
commit | 63655c83146b773b4ef3d9220b4a9d61545fd050 (patch) | |
tree | 2161d262bba2c99b0db2ed8b322eddcafeadd247 /src/w32menu.c | |
parent | ce8f7ca45fabe11ce32a9ced2b8e7c1987c0d997 (diff) | |
parent | b2529d56b5126319a1659dc1530d6fc102cc21d6 (diff) | |
download | emacs-63655c83146b773b4ef3d9220b4a9d61545fd050.tar.gz |
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: emacs@sv.gnu.org/emacs--unicode--0--patch-268
Diffstat (limited to 'src/w32menu.c')
-rw-r--r-- | src/w32menu.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/src/w32menu.c b/src/w32menu.c index d4c92d4dcd5..986832b3e7c 100644 --- a/src/w32menu.c +++ b/src/w32menu.c @@ -319,14 +319,8 @@ discard_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. */ |