Module Name:    src
Committed By:   rillig
Date:           Mon Feb  1 19:39:31 UTC 2021

Modified Files:
        src/usr.bin/make: lst.c main.c

Log Message:
make: clean up comments


To generate a diff of this commit:
cvs rdiff -u -r1.103 -r1.104 src/usr.bin/make/lst.c
cvs rdiff -u -r1.520 -r1.521 src/usr.bin/make/main.c

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/lst.c
diff -u src/usr.bin/make/lst.c:1.103 src/usr.bin/make/lst.c:1.104
--- src/usr.bin/make/lst.c:1.103	Mon Feb  1 18:55:15 2021
+++ src/usr.bin/make/lst.c	Mon Feb  1 19:39:31 2021
@@ -1,4 +1,4 @@
-/* $NetBSD: lst.c,v 1.103 2021/02/01 18:55:15 rillig Exp $ */
+/* $NetBSD: lst.c,v 1.104 2021/02/01 19:39:31 rillig Exp $ */
 
 /*
  * Copyright (c) 1988, 1989, 1990, 1993
@@ -34,7 +34,7 @@
 
 #include "make.h"
 
-MAKE_RCSID("$NetBSD: lst.c,v 1.103 2021/02/01 18:55:15 rillig Exp $");
+MAKE_RCSID("$NetBSD: lst.c,v 1.104 2021/02/01 19:39:31 rillig Exp $");
 
 static ListNode *
 LstNodeNew(ListNode *prev, ListNode *next, void *datum)
@@ -276,7 +276,7 @@ Vector_Push(Vector *v)
 }
 
 /*
- * Return the pointer to the last item in the vector.
+ * Remove the last item from the vector, return the pointer to it.
  * The returned data is valid until the next modifying operation.
  */
 void *

Index: src/usr.bin/make/main.c
diff -u src/usr.bin/make/main.c:1.520 src/usr.bin/make/main.c:1.521
--- src/usr.bin/make/main.c:1.520	Sat Jan 30 21:25:10 2021
+++ src/usr.bin/make/main.c	Mon Feb  1 19:39:31 2021
@@ -1,4 +1,4 @@
-/*	$NetBSD: main.c,v 1.520 2021/01/30 21:25:10 rillig Exp $	*/
+/*	$NetBSD: main.c,v 1.521 2021/02/01 19:39:31 rillig Exp $	*/
 
 /*
  * Copyright (c) 1988, 1989, 1990, 1993
@@ -73,18 +73,19 @@
  *
  * Utility functions defined in this file:
  *
- *	Main_ParseArgLine	Parse and process command line arguments from
- *				a single string.  Used to implement the
- *				special targets .MFLAGS and .MAKEFLAGS.
+ *	Main_ParseArgLine
+ *			Parse and process command line arguments from a
+ *			single string.  Used to implement the special targets
+ *			.MFLAGS and .MAKEFLAGS.
  *
- *	Error			Print a tagged error message.
+ *	Error		Print a tagged error message.
  *
- *	Fatal			Print an error message and exit.
+ *	Fatal		Print an error message and exit.
  *
- *	Punt			Abort all jobs and exit with a message.
+ *	Punt		Abort all jobs and exit with a message.
  *
- *	Finish			Finish things up by printing the number of
- *				errors which occurred, and exit.
+ *	Finish		Finish things up by printing the number of errors
+ *			that occurred, and exit.
  */
 
 #include <sys/types.h>
@@ -110,7 +111,7 @@
 #include "trace.h"
 
 /*	"@(#)main.c	8.3 (Berkeley) 3/19/94"	*/
-MAKE_RCSID("$NetBSD: main.c,v 1.520 2021/01/30 21:25:10 rillig Exp $");
+MAKE_RCSID("$NetBSD: main.c,v 1.521 2021/02/01 19:39:31 rillig Exp $");
 #if defined(MAKE_NATIVE) && !defined(lint)
 __COPYRIGHT("@(#) Copyright (c) 1988, 1989, 1990, 1993 "
 	    "The Regents of the University of California.  "
@@ -344,9 +345,7 @@ debug_setbuf:
 	}
 }
 
-/*
- * does path contain any relative components
- */
+/* Is path relative, or does it contain any relative component "." or ".."? */
 static Boolean
 is_relpath(const char *path)
 {

Reply via email to