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): make documentation of CachedDir.refCou...
details: https://anonhg.NetBSD.org/src/rev/20a76ec66ffe
branches: trunk
changeset: 957476:20a76ec66ffe
user: rillig <rillig%NetBSD.org@localhost>
date: Sun Nov 29 11:17:41 2020 +0000
description:
make(1): make documentation of CachedDir.refCount more precise
diffstat:
usr.bin/make/dir.c | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diffs (34 lines):
diff -r 014b1e55db95 -r 20a76ec66ffe usr.bin/make/dir.c
--- a/usr.bin/make/dir.c Sun Nov 29 10:57:16 2020 +0000
+++ b/usr.bin/make/dir.c Sun Nov 29 11:17:41 2020 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: dir.c,v 1.233 2020/11/29 10:57:16 rillig Exp $ */
+/* $NetBSD: dir.c,v 1.234 2020/11/29 11:17:41 rillig Exp $ */
/*
* Copyright (c) 1988, 1989, 1990 The Regents of the University of California.
@@ -136,7 +136,7 @@
#include "job.h"
/* "@(#)dir.c 8.2 (Berkeley) 1/2/94" */
-MAKE_RCSID("$NetBSD: dir.c,v 1.233 2020/11/29 10:57:16 rillig Exp $");
+MAKE_RCSID("$NetBSD: dir.c,v 1.234 2020/11/29 11:17:41 rillig Exp $");
#define DIR_DEBUG0(text) DEBUG0(DIR, text)
#define DIR_DEBUG1(fmt, arg1) DEBUG1(DIR, fmt, arg1)
@@ -225,6 +225,7 @@
/*
* The number of SearchPaths that refer to this directory.
* Plus the number of global variables that refer to this directory.
+ * References from openDirs do not count though.
*
* TODO: Check the reference counting; see Dir_Expand, partPath.
*/
@@ -1521,6 +1522,7 @@
(void)HashSet_Add(&dir->files, dp->d_name);
}
(void)closedir(d);
+
OpenDirs_Add(&openDirs, dir);
if (path != NULL)
Lst_Append(path, dir);
Home |
Main Index |
Thread Index |
Old Index