Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/usr.bin/make Note in comment that Str_Match() does not detec...



details:   https://anonhg.NetBSD.org/src/rev/2dec256e6ae8
branches:  trunk
changeset: 777774:2dec256e6ae8
user:      dholland <dholland%NetBSD.org@localhost>
date:      Sat Mar 03 23:16:47 2012 +0000

description:
Note in comment that Str_Match() does not detect or report invalid
patterns. This is not critical, since for the moment both possible
cases (unclosed [], and \ at the end of the string) are handled more
or less sanely.

diffstat:

 usr.bin/make/str.c |  8 +++++---
 1 files changed, 5 insertions(+), 3 deletions(-)

diffs (35 lines):

diff -r 1c64fcabf09d -r 2dec256e6ae8 usr.bin/make/str.c
--- a/usr.bin/make/str.c        Sat Mar 03 21:35:32 2012 +0000
+++ b/usr.bin/make/str.c        Sat Mar 03 23:16:47 2012 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: str.c,v 1.33 2009/02/25 21:17:21 sno Exp $     */
+/*     $NetBSD: str.c,v 1.34 2012/03/03 23:16:47 dholland Exp $        */
 
 /*-
  * Copyright (c) 1988, 1989, 1990, 1993
@@ -69,14 +69,14 @@
  */
 
 #ifndef MAKE_NATIVE
-static char rcsid[] = "$NetBSD: str.c,v 1.33 2009/02/25 21:17:21 sno Exp $";
+static char rcsid[] = "$NetBSD: str.c,v 1.34 2012/03/03 23:16:47 dholland 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.33 2009/02/25 21:17:21 sno Exp $");
+__RCSID("$NetBSD: str.c,v 1.34 2012/03/03 23:16:47 dholland Exp $");
 #endif
 #endif                         /* not lint */
 #endif
@@ -319,6 +319,8 @@
  * matching operation permits the following special characters in the
  * pattern: *?\[] (see the man page for details on what these mean).
  *
+ * XXX this function does not detect or report malformed patterns.
+ *
  * Side effects: None.
  */
 int



Home | Main Index | Thread Index | Old Index