summaryrefslogtreecommitdiffstats
path: root/usr.bin/m4/look.c
diff options
context:
space:
mode:
authorjmallett <jmallett@FreeBSD.org>2002-05-01 21:37:29 +0000
committerjmallett <jmallett@FreeBSD.org>2002-05-01 21:37:29 +0000
commit5f1aa32acdce931e10e3cd0e1dd84731952356e4 (patch)
treed85fa95b409710d3bf105653c1d994be0966de9b /usr.bin/m4/look.c
parent798c53d495a4eb1c10dc65a1d2ca87e2cb12f8df (diff)
downloadFreeBSD-src-5f1aa32acdce931e10e3cd0e1dd84731952356e4.zip
FreeBSD-src-5f1aa32acdce931e10e3cd0e1dd84731952356e4.tar.gz
Merge local changes again, against ANSIfied m4(1).
Diffstat (limited to 'usr.bin/m4/look.c')
-rw-r--r--usr.bin/m4/look.c23
1 files changed, 9 insertions, 14 deletions
diff --git a/usr.bin/m4/look.c b/usr.bin/m4/look.c
index 6333639..ed9039c 100644
--- a/usr.bin/m4/look.c
+++ b/usr.bin/m4/look.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: look.c,v 1.9 2002/02/16 21:27:48 millert Exp $ */
+/* $OpenBSD: look.c,v 1.10 2002/04/26 16:15:16 espie Exp $ */
/*
* Copyright (c) 1989, 1993
@@ -37,7 +37,8 @@
*/
#include <sys/cdefs.h>
-__SCCSID("@(#)look.c 8.1 (Berkeley) 6/6/93");
+__SCCSID("@(#)look.c 8.1 (Berkeley) 6/6/93");
+__RCSID_SOURCE("$OpenBSD: look.c,v 1.10 2002/04/26 16:15:16 espie Exp $");
__FBSDID("$FreeBSD$");
/*
@@ -57,9 +58,8 @@ __FBSDID("$FreeBSD$");
static void freent(ndptr);
-unsigned
-hash(name)
- const char *name;
+unsigned int
+hash(const char *name)
{
unsigned int h = 0;
while (*name)
@@ -71,8 +71,7 @@ hash(name)
* find name in the hash table
*/
ndptr
-lookup(name)
- const char *name;
+lookup(const char *name)
{
ndptr p;
unsigned int h;
@@ -89,8 +88,7 @@ lookup(name)
* The new entry is added in front of a hash bucket.
*/
ndptr
-addent(name)
- const char *name;
+addent(const char *name)
{
unsigned int h;
ndptr p;
@@ -105,8 +103,7 @@ addent(name)
}
static void
-freent(p)
- ndptr p;
+freent(ndptr p)
{
free((char *) p->name);
if (p->defn != null)
@@ -118,9 +115,7 @@ freent(p)
* remove an entry from the hashtable
*/
void
-remhash(name, all)
- const char *name;
- int all;
+remhash(const char *name, int all)
{
unsigned int h;
ndptr xp, tp, mp;
OpenPOWER on IntegriCloud