Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/bin/sh un-__P functions declared in parser.h. host programs...
details: https://anonhg.NetBSD.org/src/rev/99206382b6aa
branches: trunk
changeset: 495382:99206382b6aa
user: cgd <cgd%NetBSD.org@localhost>
date: Thu Jul 27 04:09:27 2000 +0000
description:
un-__P functions declared in parser.h. host programs include parser.h,
and so it shouldn't use __P. (this should probably be done better, by
not declaring the parser functions in headers used by host programs,
but this works well enough.)
diffstat:
bin/sh/parser.c | 18 ++++++------------
bin/sh/parser.h | 10 +++++-----
2 files changed, 11 insertions(+), 17 deletions(-)
diffs (81 lines):
diff -r fa7fb5025a91 -r 99206382b6aa bin/sh/parser.c
--- a/bin/sh/parser.c Thu Jul 27 04:06:49 2000 +0000
+++ b/bin/sh/parser.c Thu Jul 27 04:09:27 2000 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: parser.c,v 1.44 2000/01/27 23:39:40 christos Exp $ */
+/* $NetBSD: parser.c,v 1.45 2000/07/27 04:09:27 cgd Exp $ */
/*-
* Copyright (c) 1991, 1993
@@ -41,7 +41,7 @@
#if 0
static char sccsid[] = "@(#)parser.c 8.7 (Berkeley) 5/16/95";
#else
-__RCSID("$NetBSD: parser.c,v 1.44 2000/01/27 23:39:40 christos Exp $");
+__RCSID("$NetBSD: parser.c,v 1.45 2000/07/27 04:09:27 cgd Exp $");
#endif
#endif /* not lint */
@@ -125,8 +125,7 @@
*/
union node *
-parsecmd(interact)
- int interact;
+parsecmd(int interact)
{
int t;
@@ -604,10 +603,7 @@
return n;
}
-void fixredir(n, text, err)
- union node *n;
- const char *text;
- int err;
+void fixredir(union node *n, const char *text, int err)
{
TRACE(("Fix redir %s %d\n", text, err));
if (!err)
@@ -1490,8 +1486,7 @@
*/
int
-goodname(name)
- char *name;
+goodname(char *name)
{
char *p;
@@ -1557,8 +1552,7 @@
* should be added here.
*/
const char *
-getprompt(unused)
- void *unused;
+getprompt(void *unused)
{
switch (whichprompt) {
case 0:
diff -r fa7fb5025a91 -r 99206382b6aa bin/sh/parser.h
--- a/bin/sh/parser.h Thu Jul 27 04:06:49 2000 +0000
+++ b/bin/sh/parser.h Thu Jul 27 04:09:27 2000 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: parser.h,v 1.13 1999/07/09 03:05:50 christos Exp $ */
+/* $NetBSD: parser.h,v 1.14 2000/07/27 04:09:28 cgd Exp $ */
/*-
* Copyright (c) 1991, 1993
@@ -77,7 +77,7 @@
extern int whichprompt; /* 1 == PS1, 2 == PS2 */
-union node *parsecmd __P((int));
-void fixredir __P((union node *, const char *, int));
-int goodname __P((char *));
-const char *getprompt __P((void *));
+union node *parsecmd(int);
+void fixredir(union node *, const char *, int);
+int goodname(char *);
+const char *getprompt(void *);
Home |
Main Index |
Thread Index |
Old Index