Module Name: src Committed By: rillig Date: Fri Jun 23 06:08:56 UTC 2023
Modified Files: src/usr.bin/make: parse.c Log Message: make: sync a comment with reality No binary change. To generate a diff of this commit: cvs rdiff -u -r1.703 -r1.704 src/usr.bin/make/parse.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/parse.c diff -u src/usr.bin/make/parse.c:1.703 src/usr.bin/make/parse.c:1.704 --- src/usr.bin/make/parse.c:1.703 Wed Jun 21 14:33:36 2023 +++ src/usr.bin/make/parse.c Fri Jun 23 06:08:56 2023 @@ -1,4 +1,4 @@ -/* $NetBSD: parse.c,v 1.703 2023/06/21 14:33:36 rillig Exp $ */ +/* $NetBSD: parse.c,v 1.704 2023/06/23 06:08:56 rillig Exp $ */ /* * Copyright (c) 1988, 1989, 1990, 1993 @@ -105,7 +105,7 @@ #include "pathnames.h" /* "@(#)parse.c 8.3 (Berkeley) 3/19/94" */ -MAKE_RCSID("$NetBSD: parse.c,v 1.703 2023/06/21 14:33:36 rillig Exp $"); +MAKE_RCSID("$NetBSD: parse.c,v 1.704 2023/06/23 06:08:56 rillig Exp $"); /* Detects a multiple-inclusion guard in a makefile. */ typedef enum { @@ -133,7 +133,7 @@ typedef struct IncludedFile { Buffer buf; /* the file's content or the body of the .for * loop; either empty or ends with '\n' */ - char *buf_ptr; /* next char to be read */ + char *buf_ptr; /* next char to be read from buf */ char *buf_end; /* buf_end[-1] == '\n' */ GuardState guardState; @@ -426,8 +426,8 @@ IsEscaped(const char *line, const char * } /* - * Add the filename and lineno to the GNode so that we remember where it - * was first defined. + * Add the filename and lineno to the GNode so that we remember where its + * last command was added or where it was mentioned in a .depend file. */ static void RememberLocation(GNode *gn)