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 documentation in buf.h, and r...



details:   https://anonhg.NetBSD.org/src/rev/1adbc868aea2
branches:  trunk
changeset: 943374:1adbc868aea2
user:      rillig <rillig%NetBSD.org@localhost>
date:      Tue Sep 01 17:38:26 2020 +0000

description:
make(1): clean up documentation in buf.h, and redundant include files

diffstat:

 usr.bin/make/buf.h   |  10 ++++------
 usr.bin/make/parse.c |   8 +++-----
 2 files changed, 7 insertions(+), 11 deletions(-)

diffs (70 lines):

diff -r 6d58f9721ac5 -r 1adbc868aea2 usr.bin/make/buf.h
--- a/usr.bin/make/buf.h        Tue Sep 01 17:12:30 2020 +0000
+++ b/usr.bin/make/buf.h        Tue Sep 01 17:38:26 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: buf.h,v 1.27 2020/08/31 16:42:10 rillig Exp $  */
+/*     $NetBSD: buf.h,v 1.28 2020/09/01 17:38:26 rillig Exp $  */
 
 /*
  * Copyright (c) 1988, 1989, 1990 The Regents of the University of California.
@@ -72,20 +72,18 @@
  *     from: @(#)buf.h 8.1 (Berkeley) 6/6/93
  */
 
-/*-
- * buf.h --
- *     Automatically growing null-terminated buffer of characters.
- */
+/* Automatically growing null-terminated buffers of characters. */
 
 #ifndef MAKE_BUF_H
 #define MAKE_BUF_H
 
 #include <stddef.h>
 
+/* An automatically growing null-terminated buffer of characters. */
 typedef struct Buffer {
     size_t size;       /* Allocated size of the buffer, including the null */
     size_t count;      /* Number of bytes in buffer, excluding the null */
-    char *buffer;      /* The buffer itself (null-terminated) */
+    char *buffer;      /* The buffer itself (always null-terminated) */
 } Buffer;
 
 /* If we aren't on NetBSD, __predict_false() might not be defined. */
diff -r 6d58f9721ac5 -r 1adbc868aea2 usr.bin/make/parse.c
--- a/usr.bin/make/parse.c      Tue Sep 01 17:12:30 2020 +0000
+++ b/usr.bin/make/parse.c      Tue Sep 01 17:38:26 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: parse.c,v 1.274 2020/08/30 11:15:05 rillig Exp $       */
+/*     $NetBSD: parse.c,v 1.275 2020/09/01 17:38:26 rillig Exp $       */
 
 /*
  * Copyright (c) 1988, 1989, 1990, 1993
@@ -69,14 +69,14 @@
  */
 
 #ifndef MAKE_NATIVE
-static char rcsid[] = "$NetBSD: parse.c,v 1.274 2020/08/30 11:15:05 rillig Exp $";
+static char rcsid[] = "$NetBSD: parse.c,v 1.275 2020/09/01 17:38:26 rillig Exp $";
 #else
 #include <sys/cdefs.h>
 #ifndef lint
 #if 0
 static char sccsid[] = "@(#)parse.c    8.3 (Berkeley) 3/19/94";
 #else
-__RCSID("$NetBSD: parse.c,v 1.274 2020/08/30 11:15:05 rillig Exp $");
+__RCSID("$NetBSD: parse.c,v 1.275 2020/09/01 17:38:26 rillig Exp $");
 #endif
 #endif /* not lint */
 #endif
@@ -139,10 +139,8 @@
 #endif
 
 #include "make.h"
-#include "hash.h"
 #include "dir.h"
 #include "job.h"
-#include "buf.h"
 #include "pathnames.h"
 
 /* types and constants */



Home | Main Index | Thread Index | Old Index