Changeset 1841
- Timestamp:
- Mar 13, 2005, 12:00:07 PM (20 years ago)
- Location:
- trunk/src/emx/src/lib/lgpl/intl
- Files:
-
- 22 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/emx/src/lib/lgpl/intl/bindtextdom.c
-
Property cvs2svn:cvs-rev
changed from
1.1
to1.2
r1840 r1841 26 26 #include <string.h> 27 27 28 #if def _LIBC28 #if defined(_LIBC) || defined(IN_INNOTEK_LIBC) 29 29 # include <libintl.h> 30 30 #else … … 46 46 names than the internal variables in GNU libc, otherwise programs 47 47 using libintl.a cannot be linked statically. */ 48 #if !defined _LIBC 48 #if !defined(_LIBC) 49 # ifdef IN_INNOTEK_LIBC 50 # define _nl_default_dirname __libc_nl_default_dirname 51 # define _nl_domain_bindings __libc_nl_domain_bindings 52 # else 49 53 # define _nl_default_dirname libintl_nl_default_dirname 50 54 # define _nl_domain_bindings libintl_nl_domain_bindings 55 # endif 51 56 #endif 52 57 … … 75 80 code is also used in GNU C Library where the names have a __ 76 81 prefix. So we have to make a difference here. */ 77 #if def _LIBC82 #if defined(_LIBC) || defined(IN_INNOTEK_LIBC) 78 83 # define BINDTEXTDOMAIN __bindtextdomain 79 84 # define BIND_TEXTDOMAIN_CODESET __bind_textdomain_codeset -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/emx/src/lib/lgpl/intl/dcgettext.c
-
Property cvs2svn:cvs-rev
changed from
1.1
to1.2
r1840 r1841 23 23 24 24 #include "gettextP.h" 25 #if def _LIBC25 #if defined(_LIBC) || defined(IN_INNOTEK_LIBC) 26 26 # include <libintl.h> 27 27 #else … … 35 35 code is also used in GNU C Library where the names have a __ 36 36 prefix. So we have to make a difference here. */ 37 #if def _LIBC37 #if defined(_LIBC) || defined(IN_INNOTEK_LIBC) 38 38 # define DCGETTEXT __dcgettext 39 39 # define DCIGETTEXT __dcigettext -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/emx/src/lib/lgpl/intl/dcigettext.c
-
Property cvs2svn:cvs-rev
changed from
1.1
to1.2
r1840 r1841 72 72 #include "gettextP.h" 73 73 #include "plural-exp.h" 74 #if def _LIBC74 #if defined(_LIBC) || defined(IN_INNOTEK_LIBC) 75 75 # include <libintl.h> 76 76 #else … … 90 90 # define __libc_rwlock_rdlock(NAME) 91 91 # define __libc_rwlock_unlock(NAME) 92 # define __libc_rwlock_wrlock(NAME) 92 93 #endif 93 94 … … 103 104 names than the internal variables in GNU libc, otherwise programs 104 105 using libintl.a cannot be linked statically. */ 105 #if !defined _LIBC 106 #if !defined(_LIBC) 107 # ifdef IN_INNOTEK_LIBC 108 # define _nl_default_default_domain __libc_nl_default_default_domain 109 # define _nl_current_default_domain __libc_nl_current_default_domain 110 # define _nl_default_dirname __libc_nl_default_dirname 111 # define _nl_domain_bindings __libc_nl_domain_bindings 112 # else 106 113 # define _nl_default_default_domain libintl_nl_default_default_domain 107 114 # define _nl_current_default_domain libintl_nl_current_default_domain 108 115 # define _nl_default_dirname libintl_nl_default_dirname 109 116 # define _nl_domain_bindings libintl_nl_domain_bindings 117 # endif 110 118 #endif 111 119 … … 171 179 #ifndef PATH_MAX 172 180 # define PATH_MAX _POSIX_PATH_MAX 181 #endif 182 183 /* Pathname support. 184 ISSLASH(C) tests whether C is a directory separator character. 185 IS_ABSOLUTE_PATH(P) tests whether P is an absolute path. If it is not, 186 it may be concatenated to a directory pathname. 187 IS_PATH_WITH_DIR(P) tests whether P contains a directory specification. 188 */ 189 #if defined _WIN32 || defined __WIN32__ || defined __EMX__ || defined __DJGPP__ 190 /* Win32, OS/2, DOS */ 191 # define ISSLASH(C) ((C) == '/' || (C) == '\\') 192 # define HAS_DEVICE(P) \ 193 ((((P)[0] >= 'A' && (P)[0] <= 'Z') || ((P)[0] >= 'a' && (P)[0] <= 'z')) \ 194 && (P)[1] == ':') 195 # define IS_ABSOLUTE_PATH(P) (ISSLASH ((P)[0]) || HAS_DEVICE (P)) 196 # define IS_PATH_WITH_DIR(P) \ 197 (strchr (P, '/') != NULL || strchr (P, '\\') != NULL || HAS_DEVICE (P)) 198 #else 199 /* Unix */ 200 # define ISSLASH(C) ((C) == '/') 201 # define IS_ABSOLUTE_PATH(P) ISSLASH ((P)[0]) 202 # define IS_PATH_WITH_DIR(P) (strchr (P, '/') != NULL) 173 203 #endif 174 204 … … 333 363 code is also used in GNU C Library where the names have a __ 334 364 prefix. So we have to make a difference here. */ 335 #if def _LIBC365 #if defined(_LIBC) || defined(IN_INNOTEK_LIBC) 336 366 # define DCIGETTEXT __dcigettext 337 367 #else … … 487 517 if (binding == NULL) 488 518 dirname = (char *) _nl_default_dirname; 489 else if ( binding->dirname[0] == '/')519 else if (IS_ABSOLUTE_PATH(binding->dirname)) 490 520 dirname = binding->dirname; 491 521 else … … 572 602 /* When this is a SUID binary we must not allow accessing files 573 603 outside the dedicated directories. */ 574 if (ENABLE_SECURE && strchr (single_locale, '/') != NULL)604 if (ENABLE_SECURE && IS_PATH_WITH_DIR (single_locale)) 575 605 /* Ingore this entry. */ 576 606 continue; … … 1127 1157 function is available, though. Also allow the symbol HAVE_STPCPY 1128 1158 to be defined. */ 1129 #if !_LIBC&& !HAVE_STPCPY1159 #if (!defined(_LIBC) || !_LIBC) && !HAVE_STPCPY 1130 1160 static char * 1131 1161 stpcpy (dest, src) … … 1139 1169 #endif 1140 1170 1141 #if !_LIBC&& !HAVE_MEMPCPY1171 #if (!defined(_LIBC) || !_LIBC) && !HAVE_MEMPCPY 1142 1172 static void * 1143 1173 mempcpy (dest, src, n) -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/emx/src/lib/lgpl/intl/dcngettext.c
-
Property cvs2svn:cvs-rev
changed from
1.1
to1.2
r1840 r1841 23 23 24 24 #include "gettextP.h" 25 #if def _LIBC25 #if defined(_LIBC) || defined(IN_INNOTEK_LIBC) 26 26 # include <libintl.h> 27 27 #else … … 35 35 code is also used in GNU C Library where the names have a __ 36 36 prefix. So we have to make a difference here. */ 37 #if def _LIBC37 #if defined(_LIBC) || defined(IN_INNOTEK_LIBC) 38 38 # define DCNGETTEXT __dcngettext 39 39 # define DCIGETTEXT __dcigettext -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/emx/src/lib/lgpl/intl/dgettext.c
-
Property cvs2svn:cvs-rev
changed from
1.1
to1.2
r1840 r1841 25 25 26 26 #include "gettextP.h" 27 #if def _LIBC27 #if defined(_LIBC) || defined(IN_INNOTEK_LIBC) 28 28 # include <libintl.h> 29 29 #else … … 37 37 code is also used in GNU C Library where the names have a __ 38 38 prefix. So we have to make a difference here. */ 39 #if def _LIBC39 #if defined(_LIBC) || defined(IN_INNOTEK_LIBC) 40 40 # define DGETTEXT __dgettext 41 41 # define DCGETTEXT INTUSE(__dcgettext) -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/emx/src/lib/lgpl/intl/dngettext.c
-
Property cvs2svn:cvs-rev
changed from
1.1
to1.2
r1840 r1841 25 25 26 26 #include "gettextP.h" 27 #if def _LIBC27 #if defined(_LIBC) || defined(IN_INNOTEK_LIBC) 28 28 # include <libintl.h> 29 29 #else … … 37 37 code is also used in GNU C Library where the names have a __ 38 38 prefix. So we have to make a difference here. */ 39 #if def _LIBC39 #if defined(_LIBC) || defined(IN_INNOTEK_LIBC) 40 40 # define DNGETTEXT __dngettext 41 41 # define DCNGETTEXT __dcngettext -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/emx/src/lib/lgpl/intl/finddomain.c
-
Property cvs2svn:cvs-rev
changed from
1.1
to1.2
r1840 r1841 34 34 35 35 #include "gettextP.h" 36 #if defined(_LIBC) || defined(IN_INNOTEK_LIBC) 37 # include <libintl.h> 38 #else 39 # include "libgnuintl.h" 40 #endif 41 36 42 #ifdef _LIBC 37 # include <libintl.h>38 43 # include <bits/libc-lock.h> 39 44 #else 40 # include "libgnuintl.h" 45 # define __libc_rwlock_define_initialized(a,b) do {} while (0) 46 #define __libc_rwlock_rdlock(l) do {} while (0) 47 #define __libc_rwlock_wrlock(l) do {} while (0) 48 #define __libc_rwlock_unlock(l) do {} while (0) 41 49 #endif 42 50 -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/emx/src/lib/lgpl/intl/gettext.c
-
Property cvs2svn:cvs-rev
changed from
1.1
to1.2
r1840 r1841 30 30 31 31 #include "gettextP.h" 32 #if def _LIBC32 #if defined(_LIBC) || defined(IN_INNOTEK_LIBC) 33 33 # include <libintl.h> 34 34 #else … … 42 42 code is also used in GNU C Library where the names have a __ 43 43 prefix. So we have to make a difference here. */ 44 #if def _LIBC44 #if defined(_LIBC) || defined(IN_INNOTEK_LIBC) 45 45 # define GETTEXT __gettext 46 46 # define DCGETTEXT INTUSE(__dcgettext) -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/emx/src/lib/lgpl/intl/gettextP.h
-
Property cvs2svn:cvs-rev
changed from
1.1
to1.2
r1840 r1841 35 35 36 36 #include "gmo.h" /* Get nls_uint32. */ 37 38 #include <locale.h> //bird hack 37 39 38 40 /* @@ end of prolog @@ */ … … 140 142 /* We want to allocate a string at the end of the struct. But ISO C 141 143 doesn't allow zero sized arrays. */ 142 #if def __GNUC__144 #if defined(__GNUC__) && !defined(IN_INNOTEK_LIBC) 143 145 # define ZERO 0 144 146 #else … … 166 168 #endif 167 169 170 #define _nl_find_domain __libc_nl_find_domain /* bird */ 168 171 struct loaded_l10nfile *_nl_find_domain PARAMS ((const char *__dirname, 169 172 char *__locale, … … 171 174 struct binding *__domainbinding)) 172 175 internal_function; 176 #define _nl_load_domain __libc_nl_load_domain /* bird */ 173 177 void _nl_load_domain PARAMS ((struct loaded_l10nfile *__domain, 174 178 struct binding *__domainbinding)) 175 179 internal_function; 180 #define _nl_init_domain_conv __libc_nl_init_domain_conv /* bird */ 176 181 const char *_nl_init_domain_conv PARAMS ((struct loaded_l10nfile *__domain_file, 177 182 struct loaded_domain *__domain, 178 183 struct binding *__domainbinding)) 179 184 internal_function; 185 #define _nl_free_domain_conv __libc_nl_free_domain_conv /* bird */ 180 186 void _nl_free_domain_conv PARAMS ((struct loaded_domain *__domain)) 181 187 internal_function; 182 188 189 #define _nl_find_msg __libc_nl_find_msg /* bird */ 183 190 char *_nl_find_msg PARAMS ((struct loaded_l10nfile *domain_file, 184 191 struct binding *domainbinding, … … 186 193 internal_function; 187 194 188 #if def _LIBC195 #if defined(_LIBC) || defined(IN_INNOTEK_LIBC) 189 196 extern char *__gettext PARAMS ((const char *__msgid)); 190 197 extern char *__dgettext PARAMS ((const char *__domainname, -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/emx/src/lib/lgpl/intl/hash-string.h
-
Property cvs2svn:cvs-rev
changed from
1.1
to1.2
r1840 r1841 31 31 #define HASHWORDBITS 32 32 32 33 #ifndef attribute_hidden 34 #define attribute_hidden 35 #endif 36 37 #define __hash_string __libc_hash_string //bird 33 38 34 39 /* Defines the so called `hashpjw' function by P.J. Weinberger -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/emx/src/lib/lgpl/intl/intl.smak
-
Property cvs2svn:cvs-rev
changed from
1.1
to1.2
r1840 r1841 1 libc.TSRC += $( wildcard src/lib/lgpl/intl/*.c)1 libc.TSRC += $(filter-out %plural-eval.c,$(wildcard src/lib/lgpl/intl/*.c)) 2 2 3 3 #$(foreach srcfile,$(wildcard src/lib/lgpl/intl/*.c), \ -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/emx/src/lib/lgpl/intl/l10nflist.c
-
Property cvs2svn:cvs-rev
changed from
1.1
to1.2
r1840 r1841 370 370 function is available, though. Also allow the symbol HAVE_STPCPY 371 371 to be defined. */ 372 #if !_LIBC&& !HAVE_STPCPY372 #if (!defined(_LIBC) || !_LIBC) && !HAVE_STPCPY 373 373 static char * 374 374 stpcpy (dest, src) -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/emx/src/lib/lgpl/intl/loadinfo.h
-
Property cvs2svn:cvs-rev
changed from
1.1
to1.2
r1840 r1841 51 51 #endif 52 52 53 /* Separator in PATH like lists of pathnames. */ 54 #if defined _WIN32 || defined __WIN32__ || defined __EMX__ || defined __DJGPP__ 55 /* Win32, OS/2, DOS */ 56 # define PATH_SEPARATOR ';' 57 #else 58 /* Unix */ 59 # define PATH_SEPARATOR ':' 60 #endif 61 53 62 /* Encoding of locale name parts. */ 54 63 #define XPG_NORM_CODESET 1 … … 74 83 names. The return value is dynamically allocated and has to be 75 84 freed by the caller. */ 85 #define _nl_normalize_codeset __libc_nl_normalize_codeset //bird 76 86 extern const char *_nl_normalize_codeset PARAMS ((const char *codeset, 77 87 size_t name_len)); 78 88 89 90 #define _nl_make_l10nflist __libc__nl_make_l10nflist //bird 79 91 extern struct loaded_l10nfile * 80 92 _nl_make_l10nflist PARAMS ((struct loaded_l10nfile **l10nfile_list, … … 87 99 88 100 101 #define _nl_expand_alias __libc_nl_expand_alias //bird 89 102 extern const char *_nl_expand_alias PARAMS ((const char *name)); 90 103 91 104 /* normalized_codeset is dynamically allocated and has to be freed by 92 105 the caller. */ 106 #define _nl_explode_name __libc_nl_explode_name //bird 93 107 extern int _nl_explode_name PARAMS ((char *name, const char **language, 94 108 const char **modifier, -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/emx/src/lib/lgpl/intl/loadmsgcat.c
-
Property cvs2svn:cvs-rev
changed from
1.1
to1.2
r1840 r1841 60 60 #endif 61 61 62 #if def _LIBC62 #if defined(_LIBC) || defined(IN_INNOTEK_LIBC) 63 63 # include <langinfo.h> 64 64 # include <locale.h> … … 72 72 #else 73 73 # undef HAVE_MMAP 74 #endif 74 # ifdef IN_INNOTEK_LIBC 75 # define MAP_FAILED ((void *)-1) 76 # define TEMP_FAILURE_RETRY(expression) \ 77 (__extension__ \ 78 ({ long int __result; \ 79 do __result = (long int) (expression); \ 80 while (__result == -1L && errno == EINTR); \ 81 __result; })) 82 # endif 83 #endif 84 75 85 76 86 #if defined HAVE_STDINT_H_WITH_UINTMAX || defined _LIBC … … 90 100 # include <not-cancel.h> 91 101 # include <bits/libc-lock.h> 92 #endif 102 #else 103 # define __libc_lock_define_initialized_recursive(a,b) do {} while (0) 104 # define __libc_lock_lock_recursive(l) do {} while (0) 105 # define __libc_lock_unlock_recursive(l) do {} while (0) 106 #endif 107 #include "localecharset.h" 93 108 94 109 /* Provide fallback values for macros that ought to be defined in <inttypes.h>. … … 740 755 if (name[0] == 'I' && name[1] == '\0') 741 756 { 742 #if defined _LIBC || __GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 2)757 #if defined _LIBC || (defined (__GLIBC__) && (__GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 2))) 743 758 /* The 'I' flag, in numeric format directives, replaces ASCII digits 744 759 with the 'outdigits' defined in the LC_CTYPE locale facet. This is … … 824 839 # else 825 840 # if HAVE_ICONV 826 extern const char *locale_charset PARAMS ((void));841 //extern const char *locale_charset PARAMS ((void)); 827 842 outcharset = locale_charset (); 828 843 # endif … … 843 858 /* When using GNU libc >= 2.2 or GNU libiconv >= 1.5, 844 859 we want to use transliteration. */ 845 # if ( __GLIBC__ == 2 && __GLIBC_MINOR__ >= 2) || __GLIBC__ > 2\846 || _LIBICONV_VERSION >= 0x0105860 # if (defined (__GLIBC__) && ( (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 2) || __GLIBC__ > 2)) \ 861 || (defined (_LIBICONV_VERSION) && _LIBICONV_VERSION >= 0x0105) 847 862 if (strchr (outcharset, '/') == NULL) 848 863 { -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/emx/src/lib/lgpl/intl/localealias.c
-
Property cvs2svn:cvs-rev
changed from
1.1
to1.2
r1840 r1841 179 179 const char *start; 180 180 181 while (locale_alias_path[0] == ':')181 while (locale_alias_path[0] == PATH_SEPARATOR) 182 182 ++locale_alias_path; 183 183 start = locale_alias_path; 184 184 185 while (locale_alias_path[0] != '\0' && locale_alias_path[0] != ':') 185 while (locale_alias_path[0] != '\0' 186 && locale_alias_path[0] != PATH_SEPARATOR) 186 187 ++locale_alias_path; 187 188 -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/emx/src/lib/lgpl/intl/localecharset.c
-
Property cvs2svn:cvs-rev
changed from
1.1
to1.2
r1840 r1841 25 25 26 26 /* Specification. */ 27 #include "local charset.h"27 #include "localecharset.h" 28 28 29 29 #if HAVE_STDDEF_H … … 68 68 #endif 69 69 70 #if ENABLE_RELOCATABLE70 #if defined(ENABLE_RELOCATABLE) && ENABLE_RELOCATABLE 71 71 # include "relocatable.h" 72 72 #else … … 274 274 const char *aliases; 275 275 276 #if ! (defined WIN32 || defined OS2)276 #if !defined WIN32 277 277 278 278 # if HAVE_LANGINFO_CODESET … … 319 319 codeset = buf; 320 320 321 #elif defined OS2322 323 const char *locale;324 static char buf[2 + 10 + 1];325 ULONG cp[3];326 ULONG cplen;327 328 /* Allow user to override the codeset, as set in the operating system,329 with standard language environment variables. */330 locale = getenv ("LC_ALL");331 if (locale == NULL || locale[0] == '\0')332 {333 locale = getenv ("LC_CTYPE");334 if (locale == NULL || locale[0] == '\0')335 locale = getenv ("LANG");336 }337 if (locale != NULL && locale[0] != '\0')338 {339 /* If the locale name contains an encoding after the dot, return it. */340 const char *dot = strchr (locale, '.');341 342 if (dot != NULL)343 {344 const char *modifier;345 346 dot++;347 /* Look for the possible @... trailer and remove it, if any. */348 modifier = strchr (dot, '@');349 if (modifier == NULL)350 return dot;351 if (modifier - dot < sizeof (buf))352 {353 memcpy (buf, dot, modifier - dot);354 buf [modifier - dot] = '\0';355 return buf;356 }357 }358 359 /* Resolve through the charset.alias file. */360 codeset = locale;361 }362 else363 {364 /* OS/2 has a function returning the locale's codepage as a number. */365 if (DosQueryCp (sizeof (cp), cp, &cplen))366 codeset = "";367 else368 {369 sprintf (buf, "CP%u", cp[0]);370 codeset = buf;371 }372 }373 374 321 #endif 375 322 -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/emx/src/lib/lgpl/intl/localecharset.h
-
Property cvs2svn:cvs-rev
changed from
1.1
to1.2
r1840 r1841 26 26 #endif 27 27 28 #define locale_charset __libc_locale_charset //bird 28 29 29 30 /* Determine the current locale's character encoding, and canonicalize it -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/emx/src/lib/lgpl/intl/localename.c
-
Property cvs2svn:cvs-rev
changed from
1.1
to1.2
r1840 r1841 26 26 #include <stdlib.h> 27 27 #include <locale.h> 28 29 #include "gettextP.h" 28 30 29 31 #if defined _WIN32 || defined __WIN32__ … … 769 771 #endif 770 772 } 773 -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/emx/src/lib/lgpl/intl/ngettext.c
-
Property cvs2svn:cvs-rev
changed from
1.1
to1.2
r1840 r1841 30 30 31 31 #include "gettextP.h" 32 #if def _LIBC32 #if defined(_LIBC) || defined(IN_INNOTEK_LIBC) 33 33 # include <libintl.h> 34 34 #else … … 44 44 code is also used in GNU C Library where the names have a __ 45 45 prefix. So we have to make a difference here. */ 46 #if def _LIBC46 #if defined(_LIBC) || defined(IN_INNOTEK_LIBC) 47 47 # define NGETTEXT __ngettext 48 48 # define DCNGETTEXT __dcngettext -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/emx/src/lib/lgpl/intl/plural-exp.h
-
Property cvs2svn:cvs-rev
changed from
1.1
to1.2
r1840 r1841 94 94 must follow ANSI C and not start with __. 95 95 So we have to distinguish the three cases. */ 96 #if def _LIBC96 #if defined(_LIBC) || defined(IN_INNOTEK_LIBC) 97 97 # define FREE_EXPRESSION __gettext_free_exp 98 98 # define PLURAL_PARSE __gettextparse … … 120 120 internal_function; 121 121 122 #if 0 //bird 122 123 #if !defined (_LIBC) && !defined (IN_LIBINTL) 123 124 extern unsigned long int plural_eval PARAMS ((struct expression *pexp, 124 125 unsigned long int n)); 125 126 #endif 127 #endif //bird 126 128 127 129 #endif /* _PLURAL_EXP_H */ -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/emx/src/lib/lgpl/intl/plural.c
-
Property cvs2svn:cvs-rev
changed from
1.1
to1.2
r1840 r1841 57 57 /* The main function generated by the parser is called __gettextparse, 58 58 but we want it to be called PLURAL_PARSE. */ 59 #if ndef _LIBC59 #if !defined(_LIBC) && !defined(IN_INNOTEK_LIBC) 60 60 # define __gettextparse PLURAL_PARSE 61 61 #endif … … 249 249 static const char *const yytname[] = 250 250 { 251 "$", "error", "$undefined.", "'?'", "'|'", "'&'", "EQUOP2", "CMPOP2", 252 "ADDOP2", "MULOP2", "'!'", "NUMBER", "':'", "'n'", "'('", "')'", 251 "$", "error", "$undefined.", "'?'", "'|'", "'&'", "EQUOP2", "CMPOP2", 252 "ADDOP2", "MULOP2", "'!'", "NUMBER", "':'", "'n'", "'('", "')'", 253 253 "start", "exp", 0 254 254 }; -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/emx/src/lib/lgpl/intl/textdomain.c
-
Property cvs2svn:cvs-rev
changed from
1.1
to1.2
r1840 r1841 25 25 #include <string.h> 26 26 27 #if def _LIBC27 #if defined(_LIBC) || defined(IN_INNOTEK_LIBC) 28 28 # include <libintl.h> 29 29 #else … … 45 45 names than the internal variables in GNU libc, otherwise programs 46 46 using libintl.a cannot be linked statically. */ 47 #if !defined _LIBC 47 #if !defined(_LIBC) 48 # ifdef IN_INNOTEK_LIBC 49 # define _nl_default_default_domain __libc_nl_default_default_domain 50 # define _nl_current_default_domain __libc_nl_current_default_domain 51 # else 48 52 # define _nl_default_default_domain libintl_nl_default_default_domain 49 53 # define _nl_current_default_domain libintl_nl_current_default_domain 54 # endif 50 55 #endif 51 56 … … 63 68 code is also used in GNU C Library where the names have a __ 64 69 prefix. So we have to make a difference here. */ 65 #if def _LIBC70 #if defined(_LIBC) || defined(IN_INNOTEK_LIBC) 66 71 # define TEXTDOMAIN __textdomain 67 72 # ifndef strdup -
Property cvs2svn:cvs-rev
changed from
Note:
See TracChangeset
for help on using the changeset viewer.