[BACK]Return to fnmatch.c CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / src / lib / libc / gen

Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.

Diff for /src/lib/libc/gen/fnmatch.c between version 1.11 and 1.12

version 1.11, 1995/02/27 03:43:06 version 1.12, 1997/07/13 18:57:26
Line 36 
Line 36 
  * SUCH DAMAGE.   * SUCH DAMAGE.
  */   */
   
   #include <sys/cdefs.h>
 #if defined(LIBC_SCCS) && !defined(lint)  #if defined(LIBC_SCCS) && !defined(lint)
 #if 0  #if 0
 static char sccsid[] = "@(#)fnmatch.c   8.2 (Berkeley) 4/16/94";  static char sccsid[] = "@(#)fnmatch.c   8.2 (Berkeley) 4/16/94";
 #else  #else
 static char rcsid[] = "$NetBSD$";  __RCSID("$NetBSD$");
 #endif  #endif
 #endif /* LIBC_SCCS and not lint */  #endif /* LIBC_SCCS and not lint */
   
Line 153  rangematch(pattern, test, flags)
Line 154  rangematch(pattern, test, flags)
          * consistency with the regular expression syntax.           * consistency with the regular expression syntax.
          * J.T. Conklin (conklin@ngai.kaleida.com)           * J.T. Conklin (conklin@ngai.kaleida.com)
          */           */
         if (negate = (*pattern == '!' || *pattern == '^'))          if ((negate = (*pattern == '!' || *pattern == '^')) != 0)
                 ++pattern;                  ++pattern;
   
         for (ok = 0; (c = *pattern++) != ']';) {          for (ok = 0; (c = *pattern++) != ']';) {

Legend:
Removed from v.1.11  
changed lines
  Added in v.1.12

CVSweb <webmaster@jp.NetBSD.org>