Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/games/hack Don't use <sys/cdefs.h> __COPYRIGHT/__RCSID macro...



details:   https://anonhg.NetBSD.org/src/rev/e015a08780df
branches:  trunk
changeset: 495550:e015a08780df
user:      simonb <simonb%NetBSD.org@localhost>
date:      Mon Jul 31 11:35:03 2000 +0000

description:
Don't use <sys/cdefs.h> __COPYRIGHT/__RCSID macros for host programs -
use portable ANSI constructs instead.

Patches from Chris Demetriou.

diffstat:

 games/hack/makedefs.c |  22 +++++++++++-----------
 1 files changed, 11 insertions(+), 11 deletions(-)

diffs (43 lines):

diff -r a06172b8d3c8 -r e015a08780df games/hack/makedefs.c
--- a/games/hack/makedefs.c     Mon Jul 31 11:32:33 2000 +0000
+++ b/games/hack/makedefs.c     Mon Jul 31 11:35:03 2000 +0000
@@ -1,12 +1,12 @@
-/*     $NetBSD: makedefs.c,v 1.5 1997/10/19 16:59:36 christos Exp $    */
+/* $NetBSD: makedefs.c,v 1.6 2000/07/31 11:35:03 simonb Exp $ */
 
 /*
  * Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985.
  */
 
-#include <sys/cdefs.h>
 #ifndef lint
-__RCSID("$NetBSD: makedefs.c,v 1.5 1997/10/19 16:59:36 christos Exp $");
+static char rcsid[] =
+    "$NetBSD: makedefs.c,v 1.6 2000/07/31 11:35:03 simonb Exp $";
 #endif                         /* not lint */
 
 #include <stdio.h>
@@ -21,15 +21,15 @@
 int             fd;
 char            string[STRSZ];
 
-static void readline __P((void));
-static char nextchar __P((void));
-static int skipuntil __P((char *));
-static int getentry __P((void));
-static void capitalize __P((char *));
-static int letter __P((int));
-static int digit __P((int));
+static void readline(void);
+static char nextchar(void);
+static int skipuntil(char *);
+static int getentry(void);
+static void capitalize(char *);
+static int letter(int);
+static int digit(int);
 
-int main __P((int, char **));
+int main(int, char **);
 
 int
 main(argc, argv)



Home | Main Index | Thread Index | Old Index