~ubuntu-branches/ubuntu/utopic/coreutils/utopic-proposed

« back to all changes in this revision

Viewing changes to lib/fnmatch.c

  • Committer: Package Import Robot
  • Author(s): Colin Watson
  • Date: 2012-11-28 03:03:42 UTC
  • mfrom: (8.3.4 sid)
  • Revision ID: package-import@ubuntu.com-20121128030342-21zanj8354gas5gr
Tags: 8.20-3ubuntu1
* Resynchronise with Debian.  Remaining changes:
  - Make 'uname -i -p' return the real processor/hardware, instead of
    unknown.
  - Build-depend on gettext:any instead of on gettext, so that apt-get can
    properly resolve build-dependencies on the tool when cross-building.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* -*- buffer-read-only: t -*- vi: set ro: */
2
 
/* DO NOT EDIT! GENERATED AUTOMATICALLY! */
3
 
/* Copyright (C) 1991-1993, 1996-2007, 2009-2011 Free Software Foundation, Inc.
 
1
/* Copyright (C) 1991-1993, 1996-2007, 2009-2012 Free Software Foundation, Inc.
4
2
 
5
3
   This program is free software; you can redistribute it and/or modify
6
4
   it under the terms of the GNU General Public License as published by
13
11
   GNU General Public License for more details.
14
12
 
15
13
   You should have received a copy of the GNU General Public License
16
 
   along with this program; if not, write to the Free Software Foundation,
17
 
   Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.  */
 
14
   along with this program; if not, see <http://www.gnu.org/licenses/>.  */
18
15
 
19
16
#ifndef _LIBC
20
17
# include <config.h>
44
41
  (HAVE_WCTYPE_H && HAVE_BTOWC && HAVE_ISWCTYPE \
45
42
   && HAVE_WMEMCHR && (HAVE_WMEMCPY || HAVE_WMEMPCPY))
46
43
 
47
 
/* For platform which support the ISO C amendement 1 functionality we
 
44
/* For platform which support the ISO C amendment 1 functionality we
48
45
   support user defined character classes.  */
49
46
#if defined _LIBC || WIDE_CHAR_SUPPORT
50
47
# include <wctype.h>
80
77
   Library, but also included in many other GNU distributions.  Compiling
81
78
   and linking in this code is a waste when using the GNU C library
82
79
   (especially if it is a shared library).  Rather than having every GNU
83
 
   program understand `configure --with-gnu-libc' and omit the object files,
 
80
   program understand 'configure --with-gnu-libc' and omit the object files,
84
81
   it is simpler to just do this in the source for each such file.  */
85
82
 
86
83
#if defined _LIBC || !defined __GNU_LIBRARY__ || !HAVE_FNMATCH_GNU
94
91
 
95
92
# if defined _LIBC || WIDE_CHAR_SUPPORT
96
93
/* The GNU C library provides support for user-defined character classes
97
 
   and the functions from ISO C amendement 1.  */
 
94
   and the functions from ISO C amendment 1.  */
98
95
#  ifdef CHARCLASS_NAME_MAX
99
96
#   define CHAR_CLASS_MAX_LENGTH CHARCLASS_NAME_MAX
100
97
#  else
121
118
#  endif
122
119
 
123
120
# else
124
 
#  define CHAR_CLASS_MAX_LENGTH  6 /* Namely, `xdigit'.  */
 
121
#  define CHAR_CLASS_MAX_LENGTH  6 /* Namely, 'xdigit'.  */
125
122
 
126
123
#  define IS_CHAR_CLASS(string)                                               \
127
124
   (STREQ (string, "alpha") || STREQ (string, "upper")                        \
170
167
#  endif
171
168
# endif
172
169
# define MEMCHR(S, C, N) memchr (S, C, N)
173
 
# define STRCOLL(S1, S2) strcoll (S1, S2)
174
170
# include "fnmatch_loop.c"
175
171
 
176
172
 
198
194
#   endif
199
195
#  endif
200
196
#  define MEMCHR(S, C, N) wmemchr (S, C, N)
201
 
#  define STRCOLL(S1, S2) wcscoll (S1, S2)
202
197
#  define WIDE_CHAR_VERSION 1
203
198
 
204
199
#  undef IS_CHAR_CLASS