summaryrefslogtreecommitdiffstats
path: root/boggle
diff options
context:
space:
mode:
authorjsm <jsm@NetBSD.org>2004-01-27 20:30:28 +0000
committerjsm <jsm@NetBSD.org>2004-01-27 20:30:28 +0000
commita43fb158d0c5c90291b792d683aa0221403f1893 (patch)
treeabc8b57813f81300bc2b7a4ad80223e666d05d7d /boggle
parent5572d7c395d19f949cb8a29c96791307e744681c (diff)
downloadbsdgames-darwin-a43fb158d0c5c90291b792d683aa0221403f1893.tar.gz
bsdgames-darwin-a43fb158d0c5c90291b792d683aa0221403f1893.tar.zst
bsdgames-darwin-a43fb158d0c5c90291b792d683aa0221403f1893.zip
Remove uses of __P.
Diffstat (limited to 'boggle')
-rw-r--r--boggle/boggle/bog.c8
-rw-r--r--boggle/boggle/extern.h74
-rw-r--r--boggle/boggle/mach.c20
-rw-r--r--boggle/boggle/prtable.c12
-rw-r--r--boggle/boggle/timer.c6
5 files changed, 60 insertions, 60 deletions
diff --git a/boggle/boggle/bog.c b/boggle/boggle/bog.c
index d1231a64..f0012ca8 100644
--- a/boggle/boggle/bog.c
+++ b/boggle/boggle/bog.c
@@ -1,4 +1,4 @@
-/* $NetBSD: bog.c,v 1.17 2003/08/07 09:37:05 agc Exp $ */
+/* $NetBSD: bog.c,v 1.18 2004/01/27 20:30:29 jsm Exp $ */
/*-
* Copyright (c) 1993
@@ -42,7 +42,7 @@ __COPYRIGHT("@(#) Copyright (c) 1993\n\
#if 0
static char sccsid[] = "@(#)bog.c 8.2 (Berkeley) 5/4/95";
#else
-__RCSID("$NetBSD: bog.c,v 1.17 2003/08/07 09:37:05 agc Exp $");
+__RCSID("$NetBSD: bog.c,v 1.18 2004/01/27 20:30:29 jsm Exp $");
#endif
#endif /* not lint */
@@ -57,8 +57,8 @@ __RCSID("$NetBSD: bog.c,v 1.17 2003/08/07 09:37:05 agc Exp $");
#include "bog.h"
#include "extern.h"
-static int compar __P((const void *, const void *));
- int main __P((int, char *[]));
+static int compar(const void *, const void *);
+ int main(int, char *[]);
struct dictindex dictindex[26];
diff --git a/boggle/boggle/extern.h b/boggle/boggle/extern.h
index fa2a0ab9..ba365615 100644
--- a/boggle/boggle/extern.h
+++ b/boggle/boggle/extern.h
@@ -1,4 +1,4 @@
-/* $NetBSD: extern.h,v 1.7 2003/08/07 09:37:05 agc Exp $ */
+/* $NetBSD: extern.h,v 1.8 2004/01/27 20:30:29 jsm Exp $ */
/*-
* Copyright (c) 1993
@@ -33,39 +33,39 @@
#include <time.h>
-void addword __P((const char *));
-void badword __P((void));
-char *batchword __P((FILE *));
-void checkdict __P((void));
-int checkword __P((const char *, int, int *));
-void cleanup __P((void));
-void delay __P((int));
-long dictseek __P((FILE *, long, int));
-void findword __P((void));
-void flushin __P((FILE *));
-char *getline __P((char *));
-void getword __P((char *));
-int help __P((void));
-int inputch __P((void));
-int loaddict __P((FILE *));
-int loadindex __P((const char *));
-void newgame __P((const char *));
-char *nextword __P((FILE *));
-FILE *opendict __P((const char *));
-void playgame __P((void));
-void prompt __P((const char *));
-void prtable __P((const char *const [],
- int, int, int, void (*)(const char *const [], int), int (*)(const char *const [], int)));
-void putstr __P((const char *));
-void redraw __P((void));
-void results __P((void));
-int setup __P((int, time_t));
-void showboard __P((const char *));
-void showstr __P((const char *, int));
-void showword __P((int));
-void starttime __P((void));
-void startwords __P((void));
-void stoptime __P((void));
-int timerch __P((void));
-void usage __P((void)) __attribute__((__noreturn__));
-int validword __P((const char *));
+void addword(const char *);
+void badword(void);
+char *batchword(FILE *);
+void checkdict(void);
+int checkword(const char *, int, int *);
+void cleanup(void);
+void delay(int);
+long dictseek(FILE *, long, int);
+void findword(void);
+void flushin(FILE *);
+char *getline(char *);
+void getword(char *);
+int help(void);
+int inputch(void);
+int loaddict(FILE *);
+int loadindex(const char *);
+void newgame(const char *);
+char *nextword(FILE *);
+FILE *opendict(const char *);
+void playgame(void);
+void prompt(const char *);
+void prtable(const char *const [],
+ int, int, int, void (*)(const char *const [], int), int (*)(const char *const [], int));
+void putstr(const char *);
+void redraw(void);
+void results(void);
+int setup(int, time_t);
+void showboard(const char *);
+void showstr(const char *, int);
+void showword(int);
+void starttime(void);
+void startwords(void);
+void stoptime(void);
+int timerch(void);
+void usage(void) __attribute__((__noreturn__));
+int validword(const char *);
diff --git a/boggle/boggle/mach.c b/boggle/boggle/mach.c
index e6202dd6..b6b76401 100644
--- a/boggle/boggle/mach.c
+++ b/boggle/boggle/mach.c
@@ -1,4 +1,4 @@
-/* $NetBSD: mach.c,v 1.12 2003/08/07 09:37:05 agc Exp $ */
+/* $NetBSD: mach.c,v 1.13 2004/01/27 20:30:29 jsm Exp $ */
/*-
* Copyright (c) 1993
@@ -37,7 +37,7 @@
#if 0
static char sccsid[] = "@(#)mach.c 8.1 (Berkeley) 6/11/93";
#else
-__RCSID("$NetBSD: mach.c,v 1.12 2003/08/07 09:37:05 agc Exp $");
+__RCSID("$NetBSD: mach.c,v 1.13 2004/01/27 20:30:29 jsm Exp $");
#endif
#endif /* not lint */
@@ -73,14 +73,14 @@ extern int usedbits, wordpath[];
extern time_t start_t;
extern int debug;
-static void cont_catcher __P((int));
-static int prwidth __P((const char *const [], int));
-static void prword __P((const char *const [], int));
-static void stop_catcher __P((int));
-static void tty_cleanup __P((void));
-static int tty_setup __P((void));
-static void tty_showboard __P((const char *));
-static void winch_catcher __P((int));
+static void cont_catcher(int);
+static int prwidth(const char *const [], int);
+static void prword(const char *const [], int);
+static void stop_catcher(int);
+static void tty_cleanup(void);
+static int tty_setup(void);
+static void tty_showboard(const char *);
+static void winch_catcher(int);
/*
* Do system dependent initialization
diff --git a/boggle/boggle/prtable.c b/boggle/boggle/prtable.c
index 6c3d507a..2326f875 100644
--- a/boggle/boggle/prtable.c
+++ b/boggle/boggle/prtable.c
@@ -1,4 +1,4 @@
-/* $NetBSD: prtable.c,v 1.7 2003/08/07 09:37:05 agc Exp $ */
+/* $NetBSD: prtable.c,v 1.8 2004/01/27 20:30:29 jsm Exp $ */
/*-
* Copyright (c) 1993
@@ -36,7 +36,7 @@
#include <sys/cdefs.h>
#ifndef lint
-__RCSID("$NetBSD: prtable.c,v 1.7 2003/08/07 09:37:05 agc Exp $");
+__RCSID("$NetBSD: prtable.c,v 1.8 2004/01/27 20:30:29 jsm Exp $");
#endif /* not lint */
#include <curses.h>
@@ -45,7 +45,7 @@ __RCSID("$NetBSD: prtable.c,v 1.7 2003/08/07 09:37:05 agc Exp $");
#define NCOLS 5
-static int get_maxlen __P((const char *const [], int, int (*)(const char *const *, int)));
+static int get_maxlen(const char *const [], int, int (*)(const char *const *, int));
/*
* Routine to print a table
@@ -66,8 +66,8 @@ void
prtable(base, num, d_cols, width, prentry, length)
const char *const base[];
int num, d_cols, width;
- void (*prentry) __P((const char *const [], int));
- int (*length) __P((const char *const [], int));
+ void (*prentry)(const char *const [], int);
+ int (*length)(const char *const [], int);
{
int c, j;
int a, b, cols, loc, maxlen, nrows, z;
@@ -117,7 +117,7 @@ static int
get_maxlen(base, num, length)
const char *const base[];
int num;
- int (*length) __P((const char *const *, int));
+ int (*length)(const char *const *, int);
{
int i, len, max;
diff --git a/boggle/boggle/timer.c b/boggle/boggle/timer.c
index 0d015fac..569d9aee 100644
--- a/boggle/boggle/timer.c
+++ b/boggle/boggle/timer.c
@@ -1,4 +1,4 @@
-/* $NetBSD: timer.c,v 1.8 2003/08/07 09:37:06 agc Exp $ */
+/* $NetBSD: timer.c,v 1.9 2004/01/27 20:30:29 jsm Exp $ */
/*-
* Copyright (c) 1993
@@ -37,7 +37,7 @@
#if 0
static char sccsid[] = "@(#)timer.c 8.2 (Berkeley) 2/22/94";
#else
-__RCSID("$NetBSD: timer.c,v 1.8 2003/08/07 09:37:06 agc Exp $");
+__RCSID("$NetBSD: timer.c,v 1.9 2004/01/27 20:30:29 jsm Exp $");
#endif
#endif /* not lint */
@@ -54,7 +54,7 @@ __RCSID("$NetBSD: timer.c,v 1.8 2003/08/07 09:37:06 agc Exp $");
#include "bog.h"
#include "extern.h"
-static int waitch __P((int));
+static int waitch(int);
extern int tlimit;
extern time_t start_t;