comparison src/menubar-msw.c @ 647:b39c14581166

[xemacs-hg @ 2001-08-13 04:45:47 by ben] removal of unsigned, size_t, etc.
author ben
date Mon, 13 Aug 2001 04:46:48 +0000
parents 5fd7ba8b56e7
children fdefd0186b75
comparison
equal deleted inserted replaced
646:00c54252fe4f 647:b39c14581166
217 /* #### This is junk. Need correct handling of sizes. Use a Bufbyte_dynarr, 217 /* #### This is junk. Need correct handling of sizes. Use a Bufbyte_dynarr,
218 not a static buffer. */ 218 not a static buffer. */
219 static char* 219 static char*
220 displayable_menu_item (Lisp_Object gui_item, int bar_p, Emchar *accel) 220 displayable_menu_item (Lisp_Object gui_item, int bar_p, Emchar *accel)
221 { 221 {
222 unsigned int ll; 222 Bytecount ll;
223 223
224 /* We construct the name in a static buffer. That's fine, because 224 /* We construct the name in a static buffer. That's fine, because
225 menu items longer than 128 chars are probably programming errors, 225 menu items longer than 128 chars are probably programming errors,
226 and better be caught than displayed! */ 226 and better be caught than displayed! */
227 227
235 XGUI_ITEM (gui_item)->name); 235 XGUI_ITEM (gui_item)->name);
236 236
237 /* Right flush part, unless we're at the top-level where it's not allowed */ 237 /* Right flush part, unless we're at the top-level where it's not allowed */
238 if (!bar_p) 238 if (!bar_p)
239 { 239 {
240 unsigned int lr; 240 Bytecount lr;
241 241
242 assert (MAX_MENUITEM_LENGTH > ll + 1); 242 assert (MAX_MENUITEM_LENGTH > ll + 1);
243 lr = gui_item_display_flush_right (gui_item, buf + ll + 1, 243 lr = gui_item_display_flush_right (gui_item, buf + ll + 1,
244 MAX_MENUITEM_LENGTH - ll - 1); 244 MAX_MENUITEM_LENGTH - ll - 1);
245 if (lr) 245 if (lr)