[BACK]Return to io.c CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / src / games / cribbage

Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.

Diff for /src/games/cribbage/io.c between version 1.10 and 1.11

version 1.10, 1997/10/10 12:32:32 version 1.11, 1999/09/08 21:17:47
Line 69  __RCSID("$NetBSD$");
Line 69  __RCSID("$NetBSD$");
   
 char    linebuf[LINESIZE];  char    linebuf[LINESIZE];
   
 char   *rankname[RANKS] = {  const char   *const rankname[RANKS] = {
         "ACE", "TWO", "THREE", "FOUR", "FIVE", "SIX", "SEVEN",          "ACE", "TWO", "THREE", "FOUR", "FIVE", "SIX", "SEVEN",
         "EIGHT", "NINE", "TEN", "JACK", "QUEEN", "KING"          "EIGHT", "NINE", "TEN", "JACK", "QUEEN", "KING"
 };  };
   
 char   *rankchar[RANKS] = {  const char   *const rankchar[RANKS] = {
         "A", "2", "3", "4", "5", "6", "7", "8", "9", "T", "J", "Q", "K"          "A", "2", "3", "4", "5", "6", "7", "8", "9", "T", "J", "Q", "K"
 };  };
   
 char   *suitname[SUITS] = {"SPADES", "HEARTS", "DIAMONDS", "CLUBS"};  const char *const suitname[SUITS] = {"SPADES", "HEARTS", "DIAMONDS", "CLUBS"};
   
 char   *suitchar[SUITS] = {"S", "H", "D", "C"};  const char   *const suitchar[SUITS] = {"S", "H", "D", "C"};
   
 /*  /*
  * msgcard:   * msgcard:
Line 105  int
Line 105  int
 msgcrd(c, brfrank, mid, brfsuit)  msgcrd(c, brfrank, mid, brfsuit)
         CARD c;          CARD c;
         BOOLEAN brfrank, brfsuit;          BOOLEAN brfrank, brfsuit;
         char *mid;          const char *mid;
 {  {
         if (c.rank == EMPTY || c.suit == EMPTY)          if (c.rank == EMPTY || c.suit == EMPTY)
                 return (FALSE);                  return (FALSE);
Line 169  prcard(win, y, x, c, blank)
Line 169  prcard(win, y, x, c, blank)
  */   */
 void  void
 prhand(h, n, win, blank)  prhand(h, n, win, blank)
         CARD h[];          const CARD h[];
         int n;          int n;
         WINDOW *win;          WINDOW *win;
         BOOLEAN blank;          BOOLEAN blank;
Line 189  prhand(h, n, win, blank)
Line 189  prhand(h, n, win, blank)
  */   */
 int  int
 infrom(hand, n, prompt)  infrom(hand, n, prompt)
         CARD hand[];          const CARD hand[];
         int n;          int n;
         char *prompt;          const char *prompt;
 {  {
         int i, j;          int i, j;
         CARD crd;          CARD crd;
Line 348  getuchar()
Line 348  getuchar()
 int  int
 number(lo, hi, prompt)  number(lo, hi, prompt)
         int lo, hi;          int lo, hi;
         char *prompt;          const char *prompt;
 {  {
         char *p;          char *p;
         int sum;          int sum;
Line 496  endmsg()
Line 496  endmsg()
 void  void
 do_wait()  do_wait()
 {  {
         static char prompt[] = {'-', '-', 'M', 'o', 'r', 'e', '-', '-', '\0'};          static const char prompt[] = {'-', '-', 'M', 'o', 'r', 'e', '-', '-', '\0'};
   
         if (Mpos + sizeof prompt < MSG_X)          if (Mpos + sizeof prompt < MSG_X)
                 wmove(Msgwin, Lineno > 0 ? Lineno - 1 : MSG_Y - 1, Mpos);                  wmove(Msgwin, Lineno > 0 ? Lineno - 1 : MSG_Y - 1, Mpos);

Legend:
Removed from v.1.10  
changed lines
  Added in v.1.11

CVSweb <webmaster@jp.NetBSD.org>