Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(63)

Side by Side Diff: bison/src/bison/2.4.1/bison-2.4.1-src/lib/wchar.in.h

Issue 10807020: Add native Windows binary for bison. (Closed) Base URL: svn://chrome-svn/chrome/trunk/deps/third_party/
Patch Set: Created 8 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
Property Changes:
Added: svn:eol-style
+ LF
OLDNEW
(Empty)
1 /* -*- buffer-read-only: t -*- vi: set ro: */
2 /* DO NOT EDIT! GENERATED AUTOMATICALLY! */
3 /* A substitute for ISO C99 <wchar.h>, for platforms that have issues.
4
5 Copyright (C) 2007-2008 Free Software Foundation, Inc.
6
7 This program is free software; you can redistribute it and/or modify
8 it under the terms of the GNU General Public License as published by
9 the Free Software Foundation; either version 3, or (at your option)
10 any later version.
11
12 This program is distributed in the hope that it will be useful,
13 but WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 GNU General Public License for more details.
16
17 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. */
20
21 /* Written by Eric Blake. */
22
23 /*
24 * ISO C 99 <wchar.h> for platforms that have issues.
25 * <http://www.opengroup.org/susv3xbd/wchar.h.html>
26 *
27 * For now, this just ensures proper prerequisite inclusion order and
28 * the declaration of wcwidth().
29 */
30
31 #if __GNUC__ >= 3
32 @PRAGMA_SYSTEM_HEADER@
33 #endif
34
35 #ifdef __need_mbstate_t
36 /* Special invocation convention inside uClibc header files. */
37
38 #@INCLUDE_NEXT@ @NEXT_WCHAR_H@
39
40 #else
41 /* Normal invocation convention. */
42
43 #ifndef _GL_WCHAR_H
44
45 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
46 <wchar.h>.
47 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
48 included before <wchar.h>. */
49 #include <stddef.h>
50 #include <stdio.h>
51 #include <time.h>
52
53 /* Include the original <wchar.h> if it exists.
54 Some builds of uClibc lack it. */
55 /* The include_next requires a split double-inclusion guard. */
56 #if @HAVE_WCHAR_H@
57 # @INCLUDE_NEXT@ @NEXT_WCHAR_H@
58 #endif
59
60 #ifndef _GL_WCHAR_H
61 #define _GL_WCHAR_H
62
63 /* The definition of GL_LINK_WARNING is copied here. */
64
65 #ifdef __cplusplus
66 extern "C" {
67 #endif
68
69
70 /* Define wint_t. (Also done in wctype.in.h.) */
71 #if !@HAVE_WINT_T@ && !defined wint_t
72 # define wint_t int
73 #endif
74
75
76 /* Return the number of screen columns needed for WC. */
77 #if @GNULIB_WCWIDTH@
78 # if @REPLACE_WCWIDTH@
79 # undef wcwidth
80 # define wcwidth rpl_wcwidth
81 extern int wcwidth (wchar_t);
82 # else
83 # if !defined wcwidth && !@HAVE_DECL_WCWIDTH@
84 /* wcwidth exists but is not declared. */
85 extern int wcwidth (int /* actually wchar_t */);
86 # endif
87 # endif
88 #elif defined GNULIB_POSIXCHECK
89 # undef wcwidth
90 # define wcwidth(w) \
91 (GL_LINK_WARNING ("wcwidth is unportable - " \
92 "use gnulib module wcwidth for portability"), \
93 wcwidth (w))
94 #endif
95
96
97 #ifdef __cplusplus
98 }
99 #endif
100
101 #endif /* _GL_WCHAR_H */
102 #endif /* _GL_WCHAR_H */
103 #endif
OLDNEW
« no previous file with comments | « bison/src/bison/2.4.1/bison-2.4.1-src/lib/verify.h ('k') | bison/src/bison/2.4.1/bison-2.4.1-src/lib/wctype.in.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698