-/* $NetBSD: misc.c,v 1.9 2000/04/27 00:33:49 jdc Exp $ */
+/* $NetBSD: misc.c,v 1.12 2009/05/25 23:24:54 dholland Exp $ */
/*
* Copyright (c) 1983, 1993
* 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[] = "@(#)misc.c 8.1 (Berkeley) 5/31/93";
#else
-__RCSID("$NetBSD: misc.c,v 1.9 2000/04/27 00:33:49 jdc Exp $");
+__RCSID("$NetBSD: misc.c,v 1.12 2009/05/25 23:24:54 dholland Exp $");
#endif
#endif /* not lint */
#include <sys/file.h>
#include <termios.h>
-#if __STDC__
-#include <stdarg.h>
-#else
-#include <varargs.h>
-#endif
+#include <stdarg.h>
#include "mille.h"
#ifndef unctrl
#define NUMSAFE 4
bool
-#if __STDC__
error(const char *str, ...)
-#else
-error(str, va_alist)
- const char *str;
- va_dcl
-#endif
{
va_list ap;
-#if __STDC__
va_start(ap, str);
-#else
- va_start(ap);
-#endif
wmove(Score, ERR_Y, ERR_X);
vwprintw(Score, str, ap);
wclrtoeol(Score);
}
CARD
-getcard()
+getcard(void)
{
int c, c1;
}
int
-check_ext(forcomp)
- bool forcomp;
+check_ext(bool forcomp)
{
* also allowed. Return TRUE if the answer was yes, FALSE if no.
*/
int
-getyn(promptno)
- int promptno;
+getyn(int promptno)
{
char c;
* it. Exit appropriately.
*/
void
-check_more()
+check_more(void)
{
On_exit = TRUE;
if (Player[PLAYER].total >= 5000 || Player[COMP].total >= 5000)
}
int
-readch()
+readch(void)
{
int cnt;
static char c;