[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Changes to gnats/libiberty/fnmatch.c
From: |
Milan Zamazal |
Subject: |
Changes to gnats/libiberty/fnmatch.c |
Date: |
Mon, 10 Dec 2001 18:04:20 -0500 |
Index: gnats/libiberty/fnmatch.c
diff -c gnats/libiberty/fnmatch.c:1.2 gnats/libiberty/fnmatch.c:1.3
*** gnats/libiberty/fnmatch.c:1.2 Tue Oct 26 03:10:16 1999
--- gnats/libiberty/fnmatch.c Mon Dec 10 18:03:26 2001
***************
*** 1,7 ****
/* Copyright (C) 1991, 1992, 1993 Free Software Foundation, Inc.
! NOTE: The canonical source of this file is maintained with the GNU C Library.
! Bugs can be reported to address@hidden
This program is free software; you can redistribute it and/or modify it
under the terms of the GNU General Public License as published by the
--- 1,7 ----
/* Copyright (C) 1991, 1992, 1993 Free Software Foundation, Inc.
! NOTE: This source is derived from an old version taken from the GNU C
! Library (glibc).
This program is free software; you can redistribute it and/or modify it
under the terms of the GNU General Public License as published by the
***************
*** 45,52 ****
#include <errno.h>
#include <fnmatch.h>
! #include <ctype.h>
!
/* Comment out all this code if we are using the GNU C Library, and are not
actually compiling the library itself. This code is part of the GNU C
--- 45,51 ----
#include <errno.h>
#include <fnmatch.h>
! #include <safe-ctype.h>
/* Comment out all this code if we are using the GNU C Library, and are not
actually compiling the library itself. This code is part of the GNU C
***************
*** 74,81 ****
register const char *p = pattern, *n = string;
register unsigned char c;
! /* Note that this evalutes C many times. */
! #define FOLD(c) ((flags & FNM_CASEFOLD) && isupper (c) ? tolower (c) :
(c))
while ((c = *p++) != '\0')
{
--- 73,79 ----
register const char *p = pattern, *n = string;
register unsigned char c;
! #define FOLD(c) ((flags & FNM_CASEFOLD) ? TOLOWER (c) : (c))
while ((c = *p++) != '\0')
{
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Changes to gnats/libiberty/fnmatch.c,
Milan Zamazal <=