~ubuntu-branches/ubuntu/trusty/patch/trusty-security

« back to all changes in this revision

Viewing changes to lib/wctype.in.h

  • Committer: Package Import Robot
  • Author(s): Christoph Berg
  • Date: 2013-01-03 17:34:45 UTC
  • mto: (6.1.5 experimental)
  • mto: This revision was merged to the branch mainline in revision 12.
  • Revision ID: package-import@ubuntu.com-20130103173445-5vf8qmnfgd7ug67h
Tags: upstream-2.7.1
ImportĀ upstreamĀ versionĀ 2.7.1

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
1
/* A substitute for ISO C99 <wctype.h>, for platforms that lack it.
4
2
 
5
 
   Copyright (C) 2006-2011 Free Software Foundation, Inc.
 
3
   Copyright (C) 2006-2012 Free Software Foundation, Inc.
6
4
 
7
5
   This program is free software; you can redistribute it and/or modify
8
6
   it under the terms of the GNU General Public License as published by
15
13
   GNU General Public License for more details.
16
14
 
17
15
   You should have received a copy of the GNU General Public License
18
 
   along with this program; if not, write to the Free Software Foundation,
19
 
   Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.  */
 
16
   along with this program; if not, see <http://www.gnu.org/licenses/>.  */
20
17
 
21
18
/* Written by Bruno Haible and Paul Eggert.  */
22
19
 
28
25
 * wctrans_t, and wctype_t are not yet implemented.
29
26
 */
30
27
 
31
 
#ifndef _GL_WCTYPE_H
 
28
#ifndef _@GUARD_PREFIX@_WCTYPE_H
32
29
 
33
30
#if __GNUC__ >= 3
34
31
@PRAGMA_SYSTEM_HEADER@
54
51
# @INCLUDE_NEXT@ @NEXT_WCTYPE_H@
55
52
#endif
56
53
 
57
 
#ifndef _GL_WCTYPE_H
58
 
#define _GL_WCTYPE_H
 
54
#ifndef _@GUARD_PREFIX@_WCTYPE_H
 
55
#define _@GUARD_PREFIX@_WCTYPE_H
59
56
 
60
57
/* The definitions of _GL_FUNCDECL_RPL etc. are copied here.  */
61
58
 
62
59
/* The definition of _GL_WARN_ON_USE is copied here.  */
63
60
 
 
61
/* Solaris 2.6 <wctype.h> includes <widec.h> which includes <euc.h> which
 
62
   #defines a number of identifiers in the application namespace.  Revert
 
63
   these #defines.  */
 
64
#ifdef __sun
 
65
# undef multibyte
 
66
# undef eucw1
 
67
# undef eucw2
 
68
# undef eucw3
 
69
# undef scrw1
 
70
# undef scrw2
 
71
# undef scrw3
 
72
#endif
 
73
 
64
74
/* Define wint_t and WEOF.  (Also done in wchar.in.h.)  */
65
75
#if !@HAVE_WINT_T@ && !defined wint_t
66
76
# define wint_t int
68
78
#  define WEOF -1
69
79
# endif
70
80
#else
 
81
/* MSVC defines wint_t as 'unsigned short' in <crtdefs.h>.
 
82
   This is too small: ISO C 99 section 7.24.1.(2) says that wint_t must be
 
83
   "unchanged by default argument promotions".  Override it.  */
 
84
# if defined _MSC_VER
 
85
#  if !GNULIB_defined_wint_t
 
86
#   include <crtdefs.h>
 
87
typedef unsigned int rpl_wint_t;
 
88
#   undef wint_t
 
89
#   define wint_t rpl_wint_t
 
90
#   define GNULIB_defined_wint_t 1
 
91
#  endif
 
92
# endif
71
93
# ifndef WEOF
72
94
#  define WEOF ((wint_t) -1)
73
95
# endif
117
139
#    define iswspace rpl_iswspace
118
140
#    define iswupper rpl_iswupper
119
141
#    define iswxdigit rpl_iswxdigit
 
142
#   endif
 
143
#  endif
 
144
#  if @REPLACE_TOWLOWER@
 
145
#   if !(defined __cplusplus && defined GNULIB_NAMESPACE)
120
146
#    define towlower rpl_towlower
121
147
#    define towupper rpl_towupper
122
148
#   endif
260
286
}
261
287
 
262
288
static inline wint_t
263
 
#  if @REPLACE_ISWCNTRL@
 
289
#  if @REPLACE_TOWLOWER@
264
290
rpl_towlower
265
291
#  else
266
292
towlower
271
297
}
272
298
 
273
299
static inline wint_t
274
 
#  if @REPLACE_ISWCNTRL@
 
300
#  if @REPLACE_TOWLOWER@
275
301
rpl_towupper
276
302
#  else
277
303
towupper
418
444
# endif
419
445
#endif
420
446
 
421
 
#if @REPLACE_ISWCNTRL@ || defined __MINGW32__
 
447
#if @REPLACE_TOWLOWER@ || defined __MINGW32__
422
448
_GL_CXXALIAS_RPL (towlower, wint_t, (wint_t wc));
423
449
_GL_CXXALIAS_RPL (towupper, wint_t, (wint_t wc));
424
450
#else
468
494
#endif
469
495
 
470
496
 
471
 
#endif /* _GL_WCTYPE_H */
472
 
#endif /* _GL_WCTYPE_H */
 
497
#endif /* _@GUARD_PREFIX@_WCTYPE_H */
 
498
#endif /* _@GUARD_PREFIX@_WCTYPE_H */