Module Name:    src
Committed By:   rillig
Date:           Sun Dec  5 10:11:31 UTC 2021

Modified Files:
        src/usr.bin/make: cond.c lst.h

Log Message:
make: fix comments


To generate a diff of this commit:
cvs rdiff -u -r1.280 -r1.281 src/usr.bin/make/cond.c
cvs rdiff -u -r1.98 -r1.99 src/usr.bin/make/lst.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/usr.bin/make/cond.c
diff -u src/usr.bin/make/cond.c:1.280 src/usr.bin/make/cond.c:1.281
--- src/usr.bin/make/cond.c:1.280	Sun Sep 26 03:23:06 2021
+++ src/usr.bin/make/cond.c	Sun Dec  5 10:11:31 2021
@@ -1,4 +1,4 @@
-/*	$NetBSD: cond.c,v 1.280 2021/09/26 03:23:06 rillig Exp $	*/
+/*	$NetBSD: cond.c,v 1.281 2021/12/05 10:11:31 rillig Exp $	*/
 
 /*
  * Copyright (c) 1988, 1989, 1990 The Regents of the University of California.
@@ -95,7 +95,7 @@
 #include "dir.h"
 
 /*	"@(#)cond.c	8.2 (Berkeley) 1/2/94"	*/
-MAKE_RCSID("$NetBSD: cond.c,v 1.280 2021/09/26 03:23:06 rillig Exp $");
+MAKE_RCSID("$NetBSD: cond.c,v 1.281 2021/12/05 10:11:31 rillig Exp $");
 
 /*
  * The parsing of conditional expressions is based on this grammar:
@@ -1055,7 +1055,7 @@ CondParser_Eval(CondParser *par, bool *o
  *	COND_PARSE	if the condition was valid grammatically
  *	COND_INVALID	if not a valid conditional.
  *
- *	(*value) is set to the boolean value of the condition
+ *	*out_value	is set to the boolean value of the condition
  */
 static CondEvalResult
 CondEvalExpression(const char *cond, bool *out_value, bool plain,
@@ -1230,7 +1230,7 @@ Cond_EvalLine(const char *line)
 		if (p[1] != 'l') {
 			/*
 			 * Unknown directive.  It might still be a
-			 * transformation rule like '.elisp.scm',
+			 * transformation rule like '.err.txt',
 			 * therefore no error message here.
 			 */
 			return COND_INVALID;

Index: src/usr.bin/make/lst.h
diff -u src/usr.bin/make/lst.h:1.98 src/usr.bin/make/lst.h:1.99
--- src/usr.bin/make/lst.h:1.98	Sat Apr  3 11:08:40 2021
+++ src/usr.bin/make/lst.h	Sun Dec  5 10:11:31 2021
@@ -1,4 +1,4 @@
-/*	$NetBSD: lst.h,v 1.98 2021/04/03 11:08:40 rillig Exp $	*/
+/*	$NetBSD: lst.h,v 1.99 2021/12/05 10:11:31 rillig Exp $	*/
 
 /*
  * Copyright (c) 1988, 1989, 1990 The Regents of the University of California.
@@ -137,9 +137,9 @@ ListNode *Lst_FindDatum(List *, const vo
 
 /* Insert a datum before the given node. */
 void Lst_InsertBefore(List *, ListNode *, void *);
-/* Place a datum at the front of the list. */
+/* Add a datum at the front of the list. */
 void Lst_Prepend(List *, void *);
-/* Place a datum at the end of the list. */
+/* Add a datum at the end of the list. */
 void Lst_Append(List *, void *);
 /* Remove the node from the list. */
 void Lst_Remove(List *, ListNode *);

Reply via email to