-/* $NetBSD: store.c,v 1.7 1998/08/30 09:19:38 veego Exp $ */
+/* $NetBSD: store.c,v 1.10 2004/01/27 20:30:30 jsm Exp $ */
/*-
* Copyright (c) 1988 The Regents of the University of California.
* 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
- * 3. All advertising materials mentioning features or use of this software
- * must display the following acknowledgement:
- * This product includes software developed by the University of
- * California, Berkeley and its contributors.
- * 4. Neither the name of the University nor the names of its contributors
+ * 3. Neither the name of the University nor the names of its contributors
* may be used to endorse or promote products derived from this software
* without specific prior written permission.
*
#if 0
static char sccsid[] = "@(#)store.c 5.4 (Berkeley) 5/13/91";
#else
-__RCSID("$NetBSD: store.c,v 1.7 1998/08/30 09:19:38 veego Exp $");
+__RCSID("$NetBSD: store.c,v 1.10 2004/01/27 20:30:30 jsm Exp $");
#endif
#endif /* not lint */
#include "header.h"
#include "extern.h"
-static void handsfull __P((void));
-static void outofstock __P((void));
-static void nogold __P((void));
-static void dnditem __P((int));
-static void banktitle __P((char *));
-static void otradhead __P((void));
+static void handsfull(void);
+static void outofstock(void);
+static void nogold(void);
+static void dnditem(int);
+static void banktitle(char *);
+static void otradhead(void);
static int dndcount = 0, dnditm = 0;
lflush();
i = 0;
while (i != '\33')
- i = getchar();
+ i = lgetchar();
drawscreen();
nosignal = 0; /* enable signals */
return;
lprcat(" to leave]? ");
i = 0;
while ((i < 'a' || i > 'z') && (i != ' ') && (i != '\33') && (i != 12))
- i = getchar();
+ i = lgetchar();
if (i == 12) {
clear();
dnd_2hed();
yrepcount = 0;
i = 0;
while ((i < 'a' || i > 'h') && (i != '\33') && (i != 12))
- i = getchar();
+ i = lgetchar();
if (i == 12) {
sch_hed();
continue;
lflush();
i = 0;
while (i != '\33')
- i = getchar();
+ i = lgetchar();
drawscreen();
nosignal = 0; /* enable signals */
return;
yrepcount = 0;
i = 0;
while (i != 'd' && i != 'w' && i != 's' && i != '\33')
- i = getchar();
+ i = lgetchar();
switch (i) {
case 'd':
lprcat("deposit\nHow much? ");
lprcat("\nWhich stone would you like to sell? ");
i = 0;
while ((i < 'a' || i > 'z') && i != '*')
- i = getchar();
+ i = lgetchar();
if (i == '*')
for (i = 0; i < 26; i++) {
if (gemvalue[i]) {
lprcat("] ? ");
i = 0;
while (i > 'z' || (i < 'a' && i != '*' && i != '\33' && i != '.'))
- i = getchar();
+ i = lgetchar();
if (i == '\33') {
setscroll();
recalc();
yrepcount = 0;
i = 0;
while (i != 'p' && i != '\33')
- i = getchar();
+ i = lgetchar();
switch (i) {
case 'p':
lprcat("pay taxes\nHow much? ");