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 of Str_Match



details:   https://anonhg.NetBSD.org/src/rev/9eeb4977670f
branches:  trunk
changeset: 935444:9eeb4977670f
user:      rillig <rillig%NetBSD.org@localhost>
date:      Fri Jul 03 06:25:23 2020 +0000

description:
make(1): clean up documentation of Str_Match

diffstat:

 usr.bin/make/str.c |  19 +++++++++----------
 1 files changed, 9 insertions(+), 10 deletions(-)

diffs (49 lines):

diff -r 5d564f5d6951 -r 9eeb4977670f usr.bin/make/str.c
--- a/usr.bin/make/str.c        Fri Jul 03 06:22:48 2020 +0000
+++ b/usr.bin/make/str.c        Fri Jul 03 06:25:23 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: str.c,v 1.48 2020/06/15 14:46:28 rillig Exp $  */
+/*     $NetBSD: str.c,v 1.49 2020/07/03 06:25:23 rillig Exp $  */
 
 /*-
  * Copyright (c) 1988, 1989, 1990, 1993
@@ -69,14 +69,14 @@
  */
 
 #ifndef MAKE_NATIVE
-static char rcsid[] = "$NetBSD: str.c,v 1.48 2020/06/15 14:46:28 rillig Exp $";
+static char rcsid[] = "$NetBSD: str.c,v 1.49 2020/07/03 06:25:23 rillig Exp $";
 #else
 #include <sys/cdefs.h>
 #ifndef lint
 #if 0
 static char     sccsid[] = "@(#)str.c  5.8 (Berkeley) 6/1/90";
 #else
-__RCSID("$NetBSD: str.c,v 1.48 2020/06/15 14:46:28 rillig Exp $");
+__RCSID("$NetBSD: str.c,v 1.49 2020/07/03 06:25:23 rillig Exp $");
 #endif
 #endif                         /* not lint */
 #endif
@@ -320,16 +320,15 @@
 }
 
 /*
- * Str_Match --
- *
- * See if a particular string matches a particular pattern.
- *
- * Results: Non-zero is returned if string matches pattern, 0 otherwise. The
- * matching operation permits the following special characters in the
- * pattern: *?\[] (see the man page for details on what these mean).
+ * Str_Match -- Test if a string matches a pattern.
  *
  * XXX this function does not detect or report malformed patterns.
  *
+ * Results:
+ *     Non-zero is returned if string matches the pattern, 0 otherwise. The
+ *     matching operation permits the following special characters in the
+ *     pattern: *?\[] (as in glob(3)).
+ *
  * Side effects: None.
  */
 int



Home | Main Index | Thread Index | Old Index