-/* $NetBSD: getpar.h,v 1.7 2003/08/07 09:37:51 agc Exp $ */
+/* $NetBSD: getpar.h,v 1.12 2009/05/25 00:39:45 dholland Exp $ */
/*
* Copyright (c) 1980, 1993
* @(#)getpar.h 8.1 (Berkeley) 5/31/93
*/
-typedef void (*cmdfun) __P((int));
-struct cvntab /* used for getcodpar() paramater list */
-{
- const char *abrev;
+typedef void (*cmdfun)(int);
+
+/* used for getcodpar() parameter list */
+struct cvntab {
+ const char *abbrev;
const char *full;
cmdfun value;
int value2;
};
-int getintpar __P((const char *));
-double getfltpar __P((const char *));
-int getynpar __P((const char *));
-const struct cvntab *getcodpar __P((const char *, const struct cvntab[]));
-void getstrpar __P((const char *, char *, int, const char *));
-int testnl __P((void));
-void skiptonl __P((int));
-int readdelim __P((int));
+extern const struct cvntab Skitab[];
+extern const struct cvntab Lentab[];
+
+int getintpar(const char *);
+double getfltpar(const char *);
+int getynpar(const char *);
+const struct cvntab *getcodpar(const char *, const struct cvntab[]);
+void getstrpar(const char *, char *, int, const char *);
+int testnl(void);
+void skiptonl(int);
+int readdelim(int);