summaryrefslogtreecommitdiffstats
path: root/tetris
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 /tetris
parent5572d7c395d19f949cb8a29c96791307e744681c (diff)
downloadbsdgames-darwin-a43fb158d0c5c90291b792d683aa0221403f1893.tar.gz
bsdgames-darwin-a43fb158d0c5c90291b792d683aa0221403f1893.tar.zst
bsdgames-darwin-a43fb158d0c5c90291b792d683aa0221403f1893.zip
Remove uses of __P.
Diffstat (limited to 'tetris')
-rw-r--r--tetris/input.h8
-rw-r--r--tetris/scores.c12
-rw-r--r--tetris/scores.h6
-rw-r--r--tetris/screen.c10
-rw-r--r--tetris/screen.h16
-rw-r--r--tetris/tetris.c12
-rw-r--r--tetris/tetris.h8
7 files changed, 36 insertions, 36 deletions
diff --git a/tetris/input.h b/tetris/input.h
index 5ff868b7..856c66a8 100644
--- a/tetris/input.h
+++ b/tetris/input.h
@@ -1,4 +1,4 @@
-/* $NetBSD: input.h,v 1.4 2003/08/07 09:37:48 agc Exp $ */
+/* $NetBSD: input.h,v 1.5 2004/01/27 20:30:30 jsm Exp $ */
/*-
* Copyright (c) 1992, 1993
@@ -34,6 +34,6 @@
* @(#)input.h 8.1 (Berkeley) 5/31/93
*/
-int rwait __P((struct timeval *));
-int tgetchar __P((void));
-void tsleep __P((void));
+int rwait(struct timeval *);
+int tgetchar(void);
+void tsleep(void);
diff --git a/tetris/scores.c b/tetris/scores.c
index 9a020083..bf18aa98 100644
--- a/tetris/scores.c
+++ b/tetris/scores.c
@@ -1,4 +1,4 @@
-/* $NetBSD: scores.c,v 1.12 2003/08/07 09:37:48 agc Exp $ */
+/* $NetBSD: scores.c,v 1.13 2004/01/27 20:30:30 jsm Exp $ */
/*-
* Copyright (c) 1992, 1993
@@ -74,11 +74,11 @@ static int nscores;
static int gotscores;
static struct highscore scores[NUMSPOTS];
-static int checkscores __P((struct highscore *, int));
-static int cmpscores __P((const void *, const void *));
-static void getscores __P((FILE **));
-static void printem __P((int, int, struct highscore *, int, const char *));
-static char *thisuser __P((void));
+static int checkscores(struct highscore *, int);
+static int cmpscores(const void *, const void *);
+static void getscores(FILE **);
+static void printem(int, int, struct highscore *, int, const char *);
+static char *thisuser(void);
/*
* Read the score file. Can be called from savescore (before showscores)
diff --git a/tetris/scores.h b/tetris/scores.h
index eac47aa6..2a5baa4f 100644
--- a/tetris/scores.h
+++ b/tetris/scores.h
@@ -1,4 +1,4 @@
-/* $NetBSD: scores.h,v 1.3 2003/08/07 09:37:48 agc Exp $ */
+/* $NetBSD: scores.h,v 1.4 2004/01/27 20:30:30 jsm Exp $ */
/*-
* Copyright (c) 1992, 1993
@@ -48,5 +48,5 @@ struct highscore {
#define MAXSCORES 9 /* maximum high score entries per person */
#define EXPIRATION (5L * 365 * 24 * 60 * 60)
-void savescore __P((int));
-void showscores __P((int));
+void savescore(int);
+void showscores(int);
diff --git a/tetris/screen.c b/tetris/screen.c
index d46423a1..ce561282 100644
--- a/tetris/screen.c
+++ b/tetris/screen.c
@@ -1,4 +1,4 @@
-/* $NetBSD: screen.c,v 1.18 2003/08/07 09:37:48 agc Exp $ */
+/* $NetBSD: screen.c,v 1.19 2004/01/27 20:30:30 jsm Exp $ */
/*-
* Copyright (c) 1992, 1993
@@ -60,10 +60,10 @@ static cell curscreen[B_SIZE]; /* 1 => standout (or otherwise marked) */
static int curscore;
static int isset; /* true => terminal is in game mode */
static struct termios oldtt;
-static void (*tstp) __P((int));
+static void (*tstp)(int);
-static void scr_stop __P((int));
-static void stopset __P((int)) __attribute__((__noreturn__));
+static void scr_stop(int);
+static void stopset(int) __attribute__((__noreturn__));
/*
@@ -252,7 +252,7 @@ scr_set()
struct winsize ws;
struct termios newtt;
sigset_t sigset, osigset;
- void (*ttou) __P((int));
+ void (*ttou)(int);
sigemptyset(&sigset);
sigaddset(&sigset, SIGTSTP);
diff --git a/tetris/screen.h b/tetris/screen.h
index 940fc60e..99779e07 100644
--- a/tetris/screen.h
+++ b/tetris/screen.h
@@ -1,4 +1,4 @@
-/* $NetBSD: screen.h,v 1.7 2003/08/07 09:37:48 agc Exp $ */
+/* $NetBSD: screen.h,v 1.8 2004/01/27 20:30:30 jsm Exp $ */
/*-
* Copyright (c) 1992, 1993
@@ -46,10 +46,10 @@ extern char *SOstr; /* begin standout mode */
#define putpad(s) tputs(s, 1, put)
void moveto(int, int);
-int put __P((int)); /* just calls putchar; for tputs */
-void scr_clear __P((void));
-void scr_end __P((void));
-void scr_init __P((void));
-void scr_msg __P((char *, int));
-void scr_set __P((void));
-void scr_update __P((void));
+int put(int); /* just calls putchar; for tputs */
+void scr_clear(void);
+void scr_end(void);
+void scr_init(void);
+void scr_msg(char *, int);
+void scr_set(void);
+void scr_update(void);
diff --git a/tetris/tetris.c b/tetris/tetris.c
index 5b770cc4..3be171fd 100644
--- a/tetris/tetris.c
+++ b/tetris/tetris.c
@@ -1,4 +1,4 @@
-/* $NetBSD: tetris.c,v 1.16 2003/08/07 09:37:48 agc Exp $ */
+/* $NetBSD: tetris.c,v 1.17 2004/01/27 20:30:30 jsm Exp $ */
/*-
* Copyright (c) 1992, 1993
@@ -74,11 +74,11 @@ gid_t gid, egid;
char key_msg[100];
int showpreview;
-static void elide __P((void));
-static void setup_board __P((void));
- int main __P((int, char **));
- void onintr __P((int)) __attribute__((__noreturn__));
- void usage __P((void)) __attribute__((__noreturn__));
+static void elide(void);
+static void setup_board(void);
+ int main(int, char **);
+ void onintr(int) __attribute__((__noreturn__));
+ void usage(void) __attribute__((__noreturn__));
/*
* Set up the initial board. The bottom display row is completely set,
diff --git a/tetris/tetris.h b/tetris/tetris.h
index 68268f2e..6b3664ba 100644
--- a/tetris/tetris.h
+++ b/tetris/tetris.h
@@ -1,4 +1,4 @@
-/* $NetBSD: tetris.h,v 1.9 2003/08/07 09:37:49 agc Exp $ */
+/* $NetBSD: tetris.h,v 1.10 2004/01/27 20:30:30 jsm Exp $ */
/*-
* Copyright (c) 1992, 1993
@@ -169,6 +169,6 @@ extern gid_t gid, egid;
extern char key_msg[100];
extern int showpreview;
-int fits_in __P((const struct shape *, int));
-void place __P((const struct shape *, int, int));
-void stop __P((const char *)) __attribute__((__noreturn__));
+int fits_in(const struct shape *, int);
+void place(const struct shape *, int, int);
+void stop(const char *) __attribute__((__noreturn__));