Mercurial > emacs
comparison src/xmenu.c @ 91053:a0e466c4d599
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
author | Miles Bader <miles@gnu.org> |
---|---|
date | Mon, 15 Oct 2007 05:03:21 +0000 |
parents | bdb3fe0ba9fa a2daf11c89b5 |
children | 606f2d163a64 |
comparison
equal
deleted
inserted
replaced
91052:72adb6e72b67 | 91053:a0e466c4d599 |
---|---|
352 /* Make the menu_items vector twice as large. */ | 352 /* Make the menu_items vector twice as large. */ |
353 | 353 |
354 static void | 354 static void |
355 grow_menu_items () | 355 grow_menu_items () |
356 { | 356 { |
357 Lisp_Object old; | |
358 int old_size = menu_items_allocated; | |
359 old = menu_items; | |
360 | |
361 menu_items_allocated *= 2; | 357 menu_items_allocated *= 2; |
362 | 358 menu_items = larger_vector (menu_items, menu_items_allocated, Qnil); |
363 menu_items = Fmake_vector (make_number (menu_items_allocated), Qnil); | |
364 bcopy (XVECTOR (old)->contents, XVECTOR (menu_items)->contents, | |
365 old_size * sizeof (Lisp_Object)); | |
366 } | 359 } |
367 | 360 |
368 /* Begin a submenu. */ | 361 /* Begin a submenu. */ |
369 | 362 |
370 static void | 363 static void |