Source-Changes-HG archive

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

[src/trunk]: src/usr.bin/make make(1): clean up comments in hash.c



details:   https://anonhg.NetBSD.org/src/rev/f20faa6ba6fd
branches:  trunk
changeset: 945307:f20faa6ba6fd
user:      rillig <rillig%NetBSD.org@localhost>
date:      Sun Oct 25 18:40:00 2020 +0000

description:
make(1): clean up comments in hash.c

diffstat:

 usr.bin/make/hash.c |  13 ++++---------
 1 files changed, 4 insertions(+), 9 deletions(-)

diffs (38 lines):

diff -r 574157c273fc -r f20faa6ba6fd usr.bin/make/hash.c
--- a/usr.bin/make/hash.c       Sun Oct 25 18:37:08 2020 +0000
+++ b/usr.bin/make/hash.c       Sun Oct 25 18:40:00 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: hash.c,v 1.52 2020/10/25 18:37:08 rillig Exp $ */
+/*     $NetBSD: hash.c,v 1.53 2020/10/25 18:40:00 rillig Exp $ */
 
 /*
  * Copyright (c) 1988, 1989, 1990 The Regents of the University of California.
@@ -69,17 +69,12 @@
  * SUCH DAMAGE.
  */
 
-/*
- * This module contains routines to manipulate a hash table.
- * See hash.h for a definition of the structure of the hash
- * table.  Hash tables grow automatically as the amount of
- * information increases.
- */
+/* Hash tables with string keys. */
 
 #include "make.h"
 
 /*     "@(#)hash.c     8.1 (Berkeley) 6/6/93"  */
-MAKE_RCSID("$NetBSD: hash.c,v 1.52 2020/10/25 18:37:08 rillig Exp $");
+MAKE_RCSID("$NetBSD: hash.c,v 1.53 2020/10/25 18:40:00 rillig Exp $");
 
 /*
  * The ratio of # entries to # buckets at which we rebuild the table to
@@ -87,7 +82,7 @@
  */
 #define rebuildLimit 3
 
-/* This hash function matches Gosling's emacs. */
+/* This hash function matches Gosling's emacs and java.lang.String. */
 static unsigned int
 hash(const char *key, size_t *out_keylen)
 {



Home | Main Index | Thread Index | Old Index