~p-ch-e/gnuhello/gnuhello

« back to all changes in this revision

Viewing changes to gnulib/lib/wctype.in.h

  • Committer: Reuben Thomas
  • Date: 2011-12-17 11:23:38 UTC
  • Revision ID: rrt@sc3d.org-20111217112338-kurwdy8nu69g3t6f
Update gnulib and convert .cvsignore to .bzrignore.

        * gnulib: Update.
        * .bzrignore: Add.
        * .cvsignore: Remove.
        * contrib/.cvsignore: Likewise.
        * doc/.cvsignore: Likewise.
        * man/.cvsignore: Likewise.
        * po/.cvsignore: Likewise.
        * src/.cvsignore: Likewise.
        * tests/.cvsignore: Likewise.
        * build/mkinstalldirs: Remove: no longer needed.
        * po: Update.

Show diffs side-by-side

added added

removed removed

Lines of Context:
26
26
 * wctrans_t, and wctype_t are not yet implemented.
27
27
 */
28
28
 
29
 
#ifndef _GL_WCTYPE_H
 
29
#ifndef _@GUARD_PREFIX@_WCTYPE_H
30
30
 
31
31
#if __GNUC__ >= 3
32
32
@PRAGMA_SYSTEM_HEADER@
52
52
# @INCLUDE_NEXT@ @NEXT_WCTYPE_H@
53
53
#endif
54
54
 
55
 
#ifndef _GL_WCTYPE_H
56
 
#define _GL_WCTYPE_H
 
55
#ifndef _@GUARD_PREFIX@_WCTYPE_H
 
56
#define _@GUARD_PREFIX@_WCTYPE_H
57
57
 
58
58
/* The definitions of _GL_FUNCDECL_RPL etc. are copied here.  */
59
59
 
60
60
/* The definition of _GL_WARN_ON_USE is copied here.  */
61
61
 
 
62
/* Solaris 2.6 <wctype.h> includes <widec.h> which includes <euc.h> which
 
63
   #defines a number of identifiers in the application namespace.  Revert
 
64
   these #defines.  */
 
65
#ifdef __sun
 
66
# undef multibyte
 
67
# undef eucw1
 
68
# undef eucw2
 
69
# undef eucw3
 
70
# undef scrw1
 
71
# undef scrw2
 
72
# undef scrw3
 
73
#endif
 
74
 
62
75
/* Define wint_t and WEOF.  (Also done in wchar.in.h.)  */
63
76
#if !@HAVE_WINT_T@ && !defined wint_t
64
77
# define wint_t int
66
79
#  define WEOF -1
67
80
# endif
68
81
#else
 
82
/* MSVC defines wint_t as 'unsigned short' in <crtdefs.h>.
 
83
   This is too small: ISO C 99 section 7.24.1.(2) says that wint_t must be
 
84
   "unchanged by default argument promotions".  Override it.  */
 
85
# if defined _MSC_VER
 
86
#  if !GNULIB_defined_wint_t
 
87
#   include <crtdefs.h>
 
88
typedef unsigned int rpl_wint_t;
 
89
#   undef wint_t
 
90
#   define wint_t rpl_wint_t
 
91
#   define GNULIB_defined_wint_t 1
 
92
#  endif
 
93
# endif
69
94
# ifndef WEOF
70
95
#  define WEOF ((wint_t) -1)
71
96
# endif
115
140
#    define iswspace rpl_iswspace
116
141
#    define iswupper rpl_iswupper
117
142
#    define iswxdigit rpl_iswxdigit
 
143
#   endif
 
144
#  endif
 
145
#  if @REPLACE_TOWLOWER@
 
146
#   if !(defined __cplusplus && defined GNULIB_NAMESPACE)
118
147
#    define towlower rpl_towlower
119
148
#    define towupper rpl_towupper
120
149
#   endif
258
287
}
259
288
 
260
289
static inline wint_t
261
 
#  if @REPLACE_ISWCNTRL@
 
290
#  if @REPLACE_TOWLOWER@
262
291
rpl_towlower
263
292
#  else
264
293
towlower
269
298
}
270
299
 
271
300
static inline wint_t
272
 
#  if @REPLACE_ISWCNTRL@
 
301
#  if @REPLACE_TOWLOWER@
273
302
rpl_towupper
274
303
#  else
275
304
towupper
416
445
# endif
417
446
#endif
418
447
 
419
 
#if @REPLACE_ISWCNTRL@ || defined __MINGW32__
 
448
#if @REPLACE_TOWLOWER@ || defined __MINGW32__
420
449
_GL_CXXALIAS_RPL (towlower, wint_t, (wint_t wc));
421
450
_GL_CXXALIAS_RPL (towupper, wint_t, (wint_t wc));
422
451
#else
466
495
#endif
467
496
 
468
497
 
469
 
#endif /* _GL_WCTYPE_H */
470
 
#endif /* _GL_WCTYPE_H */
 
498
#endif /* _@GUARD_PREFIX@_WCTYPE_H */
 
499
#endif /* _@GUARD_PREFIX@_WCTYPE_H */