/****************************************************************************
- * Copyright (c) 1998-2006,2008 Free Software Foundation, Inc. *
+ * Copyright (c) 1998-2008,2009 Free Software Foundation, Inc. *
* *
* Permission is hereby granted, free of charge, to any person obtaining a *
* copy of this software and associated documentation files (the *
* results, use the ncurses(3) library. On non-Intel machines, SVr4 curses is
* just as good.
*
- * $Id: blue.c,v 1.30 2008/08/03 18:20:27 tom Exp $
+ * $Id: blue.c,v 1.33 2009/10/24 21:03:35 tom Exp $
*/
#include <test.priv.h>
if (selection[i] != NOCARD) {
move(BASEROW + (selection[i] / GRID_WIDTH) * 2 + 3,
(selection[i] % GRID_WIDTH) * 5);
- (void) printw(" %c ", *lp++ = 'a' + i);
+ (void) printw(" %c ", (*lp++ = (char) ('a' + i)));
}
};
*lp = '\0';
clrtoeol();
(void) addch(' ');
} while
- (((c = getch()) < 'a' || c > 'd') && (c != 'r') && (c != 'q'));
+ (((c = (char) getch()) < 'a' || c > 'd')
+ && (c != 'r')
+ && (c != 'q'));
}
for (j = 0; j < 4; j++)
}
move(PROMPTROW, 0);
- standout();
+ (void) standout();
(void) printw("Finished deal %d - type any character to continue...", deal_number);
- standend();
+ (void) standend();
(void) getch();
}
{
clear();
(void) printw("You finished the game in %d deals. This is ", deal);
- standout();
+ (void) standout();
if (deal < 2)
(void) addstr("excellent");
else if (deal < 4)
(void) addstr("average");
else
(void) addstr("poor");
- standend();
+ (void) standend();
(void) addstr(". ");
refresh();
}