extwin = newwin(1, w - 2, y0 + 1, x0 + 1);
if (w - 4 < maxlen)
maxlen = w - 4;
+ nhUse(h); /* needed only to give getmaxyx three arguments */
} else {
curses_get_window_xy(MESSAGE_WIN, &winx, &winy);
curses_get_window_size(MESSAGE_WIN, &messageh, &messagew);
tmpchoice[count] = toupper(tmpchoice[count]);
}
- sprintf(choice, "%s%s", choice, tmpchoice);
+ strcat(choice, tmpchoice);
/* prevent an unnecessary prompt */
rigid_role_checks();
prev_x = mx, prev_y = my;
blink = 0;
}
- moreattr = !iflags.wc2_guicolor ? A_REVERSE : NONE;
+ moreattr = !iflags.wc2_guicolor ? (int) A_REVERSE : NONE;
curses_toggle_color_attr(win, MORECOLOR, moreattr, ON);
if (blink) {
wattron(win, A_BLINK);
int
curses_read_char()
{
- int ch, tmpch;
+ int ch;
+#if defined(ALT_0) || defined(ALT_9) || defined(ALT_A) || defined(ALT_Z)
+ int tmpch;
+#endif
/* cancel message suppression; all messages have had a chance to be read */
curses_got_input();
ch = getch();
+#if defined(ALT_0) || defined(ALT_9) || defined(ALT_A) || defined(ALT_Z)
tmpch = ch;
+#endif
ch = curses_convert_keys(ch);
if (ch == 0) {
int strsize = strlen(str) + 1;
#if __STDC_VERSION__ >= 199901L
char substr[strsize];
- char curstr[strsize];
char tmpstr[strsize];
strcpy(substr, str);
#define BUFSZ 256
#endif
char substr[BUFSZ * 2];
- char curstr[BUFSZ * 2];
char tmpstr[BUFSZ * 2];
if (strsize > (BUFSZ * 2) - 1) {
if (last_space == 0) { /* No spaces found */
last_space = count - 1;
}
- for (count = 0; count < last_space; count++) {
- curstr[count] = substr[count];
- }
- curstr[count] = '\0';
if (substr[count] == '\0') {
break;
}
curs_reset_windows(TRUE, TRUE);
win = curses_get_nhwin(STATUS_WIN);
}
+ nhUse(ax); /* getmaxyx macro isn't sufficient */
}
werase(win);
conditions would go if they were on this line */
condstart += (cap_and_hunger == 2) ? spacing[BL_CAP]
: (cap_and_hunger == 0) ? 1 : 0;
+ nhUse(conddummy); /* getyx needed 3 args */
}
if (!(cap_and_hunger & 1))
continue;
t = (width - (border ? 0 : 1)) - (ex - 1);
ebuf[max(t, 2)] = '\0'; /* might still wrap... */
}
+ nhUse(ey); /* getyx needed 3 args */
}
break;
case BL_SCORE: