summaryrefslogtreecommitdiffstats
path: root/gl/regex_internal.h
diff options
context:
space:
mode:
Diffstat (limited to 'gl/regex_internal.h')
-rw-r--r--gl/regex_internal.h12
1 files changed, 7 insertions, 5 deletions
diff --git a/gl/regex_internal.h b/gl/regex_internal.h
index f96291d..ac34811 100644
--- a/gl/regex_internal.h
+++ b/gl/regex_internal.h
@@ -1,5 +1,6 @@
1/* Extended regular expression matching and search library. 1/* Extended regular expression matching and search library.
2 Copyright (C) 2002, 2003, 2004, 2005, 2006, 2007 Free Software Foundation, Inc. 2 Copyright (C) 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009
3 Free Software Foundation, Inc.
3 This file is part of the GNU C Library. 4 This file is part of the GNU C Library.
4 Contributed by Isamu Hasegawa <isamu@yamato.ibm.com>. 5 Contributed by Isamu Hasegawa <isamu@yamato.ibm.com>.
5 6
@@ -84,7 +85,7 @@
84# define SIZE_MAX ((size_t) -1) 85# define SIZE_MAX ((size_t) -1)
85#endif 86#endif
86 87
87#if (defined MB_CUR_MAX && HAVE_LOCALE_H && HAVE_WCTYPE_H && HAVE_ISWCTYPE && HAVE_WCRTOMB && HAVE_MBRTOWC && HAVE_WCSCOLL) || _LIBC 88#if (defined MB_CUR_MAX && HAVE_LOCALE_H && HAVE_WCTYPE_H && HAVE_ISWCTYPE && HAVE_WCSCOLL) || _LIBC
88# define RE_ENABLE_I18N 89# define RE_ENABLE_I18N
89#endif 90#endif
90 91
@@ -115,6 +116,7 @@
115# define __iswctype iswctype 116# define __iswctype iswctype
116# define __btowc btowc 117# define __btowc btowc
117# define __wcrtomb wcrtomb 118# define __wcrtomb wcrtomb
119# define __mbrtowc mbrtowc
118# define __regfree regfree 120# define __regfree regfree
119# define attribute_hidden 121# define attribute_hidden
120#endif /* not _LIBC */ 122#endif /* not _LIBC */
@@ -161,9 +163,9 @@ typedef unsigned long int bitset_word_t;
161 instead, deduce it directly from BITSET_WORD_MAX. Avoid 163 instead, deduce it directly from BITSET_WORD_MAX. Avoid
162 greater-than-32-bit integers and unconditional shifts by more than 164 greater-than-32-bit integers and unconditional shifts by more than
163 31 bits, as they're not portable. */ 165 31 bits, as they're not portable. */
164#if BITSET_WORD_MAX == 0xffffffff 166#if BITSET_WORD_MAX == 0xffffffffUL
165# define BITSET_WORD_BITS 32 167# define BITSET_WORD_BITS 32
166#elif BITSET_WORD_MAX >> 31 >> 5 == 1 168#elif BITSET_WORD_MAX >> 31 >> 4 == 1
167# define BITSET_WORD_BITS 36 169# define BITSET_WORD_BITS 36
168#elif BITSET_WORD_MAX >> 31 >> 16 == 1 170#elif BITSET_WORD_MAX >> 31 >> 16 == 1
169# define BITSET_WORD_BITS 48 171# define BITSET_WORD_BITS 48
@@ -421,7 +423,7 @@ struct re_dfa_t;
421typedef struct re_dfa_t re_dfa_t; 423typedef struct re_dfa_t re_dfa_t;
422 424
423#ifndef _LIBC 425#ifndef _LIBC
424# ifdef __i386__ 426# if defined __i386__ && !defined __EMX__
425# define internal_function __attribute ((regparm (3), stdcall)) 427# define internal_function __attribute ((regparm (3), stdcall))
426# else 428# else
427# define internal_function 429# define internal_function