summaryrefslogtreecommitdiff
path: root/games/trek/getpar.h
diff options
context:
space:
mode:
Diffstat (limited to 'games/trek/getpar.h')
-rw-r--r--games/trek/getpar.h17
1 files changed, 14 insertions, 3 deletions
diff --git a/games/trek/getpar.h b/games/trek/getpar.h
index f7ae0d8cffa..ce8cb129198 100644
--- a/games/trek/getpar.h
+++ b/games/trek/getpar.h
@@ -1,3 +1,4 @@
+/* $OpenBSD: getpar.h,v 1.2 1998/08/19 07:41:38 pjanzen Exp $ */
/* $NetBSD: getpar.h,v 1.3 1995/04/22 10:58:59 cgd Exp $ */
/*
@@ -35,13 +36,23 @@
* @(#)getpar.h 8.1 (Berkeley) 5/31/93
*/
+#include <sys/cdefs.h>
+
+typedef void (*cmdfun) __P((int));
+
struct cvntab /* used for getcodpar() paramater list */
{
char *abrev;
char *full;
- int (*value)();
+ cmdfun value;
int value2;
};
-extern double getfltpar();
-extern struct cvntab *getcodpar();
+int getintpar __P((char *));
+double getfltpar __P((char *));
+int getynpar __P((char *));
+struct cvntab *getcodpar __P((char *, struct cvntab[]));
+void getstrpar __P((char *, char *, int, char *));
+int testnl __P((void));
+void skiptonl __P((int));
+int readdelim __P((int));