ctype tweaks

None of these explains the Windows assertion failure.
 end.c - post-3.6.0
 options.c - in #else block of #if win32
 winmenu.c - X11
This commit is contained in:
PatR
2016-05-28 17:18:51 -07:00
parent bbe02dca2b
commit a102ee9a1a
3 changed files with 9 additions and 11 deletions

View File

@@ -38,7 +38,6 @@
#include "hack.h"
#include "winX.h"
#include <ctype.h>
static void FDECL(menu_select, (Widget, XtPointer, XtPointer));
static void FDECL(invert_line, (struct xwindow *, x11_menu_item *, int, long));
@@ -251,7 +250,7 @@ Cardinal *num_params;
select_none(wp);
} else if (ch == '\n' || ch == '\r') {
; /* accept */
} else if (isdigit(ch)) {
} else if (digit(ch)) {
/* special case: '0' is also the default ball class */
if (ch == '0' && !menu_info->counting
&& index(menu_info->curr_menu.gacc, ch))