Changeset 34702
- Timestamp:
- 08/02/09 07:16:24 (4 years ago)
- Location:
- lang/objective-cplusplus/i3/trunk
- Files:
-
- 7 modified
-
src/os-windows/msvc/libintl.h (modified) (1 diff)
-
src/os-windows/wlibintl.h (modified) (1 diff)
-
windows/i3.vcproj (modified) (3 diffs)
-
windows/ix86/libintl-MD.lib (modified) (previous)
-
windows/ix86/libintl-MDd.lib (modified) (previous)
-
windows/ix86/libintl-MT.lib (modified) (previous)
-
windows/ix86/libintl-MTd.lib (modified) (previous)
Legend:
- Unmodified
- Added
- Removed
-
lang/objective-cplusplus/i3/trunk/src/os-windows/msvc/libintl.h
r25302 r34702 410 410 const char *curr_prefix); 411 411 412 /* MS Windows wide character support. */ 413 #if (defined(WIN32) || defined(_WIN32) || defined(_WIN64) || defined(_WIN32_WCE)) \ 414 && !defined(__CYGWIN__) && (defined(UNICODE) || defined(_UNICODE)) 415 416 #define ENABLE_WINDOWS_WCHAR_SUPPORT 417 418 #ifdef _INTL_REDIRECT_INLINE 419 extern wchar_t *libintl_wbindtextdomain (const char *__domainname, 420 const wchar_t *__dirname); 421 static inline wchar_t *wbindtextdomain (const char *__domainname, 422 const wchar_t *__dirname) 423 { 424 return libintl_wbindtextdomain (__domainname, __dirname); 425 } 426 #elif defined _INTL_REDIRECT_MACROS 427 # define wbindtextdomain libintl_wbindtextdomain 428 #endif 429 #endif 412 430 413 431 #ifdef __cplusplus -
lang/objective-cplusplus/i3/trunk/src/os-windows/wlibintl.h
r26337 r34702 26 26 /* wchar_t support */ 27 27 #ifdef _INTL_REDIRECT_INLINE 28 #define W CHAR_LIBINTL_STATIC_INLINE static inline28 #define WLIBINTL_H_FUNCTION_LINKAGE static inline 29 29 #elif defined(_MSC_VER) 30 #define W CHAR_LIBINTL_STATIC_INLINE static _inline30 #define WLIBINTL_H_FUNCTION_LINKAGE static _inline 31 31 #else 32 #define W CHAR_LIBINTL_STATIC_INLINE static32 #define WLIBINTL_H_FUNCTION_LINKAGE static 33 33 #endif 34 34 35 #define wgettext(msgid) wgettext_ (msgid, L##msgid)36 #define dwgettext(domainname, msgid) dwgettext_ (domainname, msgid, L##msgid)37 #define dcwgettext(domainname, msgid, category) dwgettext_ (domainname, msgid, category, L##msgid)38 #define nwgettext(msgid1, msgid2, n) nwgettext_ (msgid1, msgid2, n, L##msgid1, L##msgid2)39 #define dnwgettext(domainname, msgid1, msgid2, n) dnwgettext_ (domainname, msgid1, msgid2, n, L##msgid1, L##msgid2)40 #define dcnwgettext(domainname, msgid1, msgid2, n, category) dnwgettext_ (domainname, msgid1, msgid2, n, L##msgid1, L##msgid2)35 #define wgettext(msgid) wgettext_selecter(msgid, L##msgid) 36 #define dwgettext(domainname, msgid) dwgettext_selecter(domainname, msgid, L##msgid) 37 #define dcwgettext(domainname, msgid, category) dwgettext_selecter(domainname, msgid, category, L##msgid) 38 #define nwgettext(msgid1, msgid2, n) nwgettext_selecter(msgid1, msgid2, n, L##msgid1, L##msgid2) 39 #define dnwgettext(domainname, msgid1, msgid2, n) dnwgettext_selecter(domainname, msgid1, msgid2, n, L##msgid1, L##msgid2) 40 #define dcnwgettext(domainname, msgid1, msgid2, n, category) dnwgettext_selecter(domainname, msgid1, msgid2, n, L##msgid1, L##msgid2) 41 41 42 W CHAR_LIBINTL_STATIC_INLINE43 const wchar_t *wgettext_(const char *msgid, const wchar_t *wmsgid)42 WLIBINTL_H_FUNCTION_LINKAGE 43 wchar_t *wgettext_selecter (const char *msgid, const wchar_t *wmsgid) 44 44 { 45 const char *translated = gettext (msgid); 46 return translated != msgid ? (const wchar_t *)translated : wmsgid; 45 char *translated = gettext (msgid); 46 if (strcmp(msgid, translated) == 0) 47 { 48 return (wchar_t *)wmsgid; 49 } 50 return (wchar_t *)translated; 47 51 } 48 52 49 W CHAR_LIBINTL_STATIC_INLINE50 const wchar_t *dwgettext_(const char *domainname, const char *msgid, const wchar_t *wmsgid)53 WLIBINTL_H_FUNCTION_LINKAGE 54 wchar_t *dwgettext_selecter (const char *domainname, const char *msgid, const wchar_t *wmsgid) 51 55 { 52 const char *translated = dgettext (domainname, msgid); 53 return translated != msgid ? (const wchar_t *)translated : wmsgid; 56 char *translated = dgettext (domainname, msgid); 57 if (strcmp(msgid, translated) == 0) 58 { 59 return (wchar_t *)wmsgid; 60 } 61 return (wchar_t *)translated; 54 62 } 55 63 56 W CHAR_LIBINTL_STATIC_INLINE57 const wchar_t *dcwgettext_(const char *domainname, const char *msgid, int category, const wchar_t *wmsgid)64 WLIBINTL_H_FUNCTION_LINKAGE 65 wchar_t *dcwgettext_selecter (const char *domainname, const char *msgid, int category, const wchar_t *wmsgid) 58 66 { 59 const char *translated = dcgettext (domainname, msgid, category); 60 return translated != msgid ? (const wchar_t *)translated : wmsgid; 67 char *translated = dcgettext (domainname, msgid, category); 68 if (strcmp(msgid, translated) == 0) 69 { 70 return (wchar_t *)wmsgid; 71 } 72 return (wchar_t *)translated; 61 73 } 62 74 63 W CHAR_LIBINTL_STATIC_INLINE64 const wchar_t *nwgettext_(const char *msgid1, const char *msgid2, unsigned long n, const wchar_t *wmsgid1, const wchar_t *wmsgid2)75 WLIBINTL_H_FUNCTION_LINKAGE 76 wchar_t *nwgettext_selecter (const char *msgid1, const char *msgid2, unsigned long n, const wchar_t *wmsgid1, const wchar_t *wmsgid2) 65 77 { 66 const char *translated = ngettext (msgid1, msgid2, n); 67 return translated == msgid1 ? wmsgid1 : (translated == msgid2 ? wmsgid2 : (const wchar_t *)translated); 78 char *translated = ngettext (msgid1, msgid2, n); 79 if (strcmp(msgid1, translated) == 0) 80 { 81 return (wchar_t *)wmsgid1; 82 } 83 else if (strcmp(msgid2, translated) == 0) 84 { 85 return (wchar_t *)wmsgid2; 86 } 87 return (wchar_t *)translated; 68 88 } 69 89 70 W CHAR_LIBINTL_STATIC_INLINE71 const wchar_t *dnwgettext_(const char *domainname, const char *msgid1, const char *msgid2, unsigned long n, const wchar_t *wmsgid1, const wchar_t *wmsgid2)90 WLIBINTL_H_FUNCTION_LINKAGE 91 wchar_t *dnwgettext_selecter (const char *domainname, const char *msgid1, const char *msgid2, unsigned long n, const wchar_t *wmsgid1, const wchar_t *wmsgid2) 72 92 { 73 const char *translated = dngettext (domainname, msgid1, msgid2, n); 74 return translated == msgid1 ? wmsgid1 : (translated == msgid2 ? wmsgid2 : (const wchar_t *)translated); 93 char *translated = dngettext (domainname, msgid1, msgid2, n); 94 if (strcmp(msgid1, translated) == 0) 95 { 96 return (wchar_t *)wmsgid1; 97 } 98 else if (strcmp(msgid2, translated) == 0) 99 { 100 return (wchar_t *)wmsgid2; 101 } 102 return (wchar_t *)translated; 75 103 } 76 104 77 W CHAR_LIBINTL_STATIC_INLINE78 const wchar_t *dcnwgettext_(const char *domainname, const char *msgid1, const char *msgid2, unsigned long n, const wchar_t *wmsgid1, const wchar_t *wmsgid2, int category)105 WLIBINTL_H_FUNCTION_LINKAGE 106 wchar_t *dcnwgettext_selecter (const char *domainname, const char *msgid1, const char *msgid2, unsigned long n, const wchar_t *wmsgid1, const wchar_t *wmsgid2, int category) 79 107 { 80 const char *translated = dcngettext (domainname, msgid1, msgid2, n, category); 81 return translated == msgid1 ? wmsgid1 : (translated == msgid2 ? wmsgid2 : (const wchar_t *)translated); 108 char *translated = dcngettext (domainname, msgid1, msgid2, n, category); 109 if (strcmp(msgid1, translated) == 0) 110 { 111 return (wchar_t *)wmsgid1; 112 } 113 else if (strcmp(msgid2, translated) == 0) 114 { 115 return (wchar_t *)wmsgid2; 116 } 117 return (wchar_t *)translated; 82 118 } 83 119 84 /* MS Windows Wide character support. */ 85 #if (defined(WIN32) || defined(_WIN32) || defined(_WIN64) || defined(_WIN32_WCE)) \ 86 && !defined(__CYGWIN__) && (defined(UNICODE) || defined(_UNICODE)) 87 extern const wchar_t *wbindtextdomain (const char *domainname, const wchar_t *dirname16); 88 #endif 89 90 #undef WCHAR_LIBINTL_STATIC_INLINE 120 #undef WLIBINTL_H_FUNCTION_LINKAGE 91 121 92 122 #ifdef __cplusplus -
lang/objective-cplusplus/i3/trunk/windows/i3.vcproj
r34080 r34702 659 659 </File> 660 660 <File 661 RelativePath="..\src\mil\include\mil\os-windows\Debug.h" 662 > 663 </File> 664 <File 661 665 RelativePath="..\src\mil\include\mil\Debug.h" 662 666 > 663 667 </File> 664 668 <File 665 RelativePath="..\src\mil\include\mil\os-windows\Debug.h"666 >667 </File>668 <File669 669 RelativePath="..\src\mil\include\mil\gui-windows\DummyMessageHandler-inl.h" 670 670 > … … 675 675 </File> 676 676 <File 677 RelativePath="..\src\mil\include\mil\FilterException.h" 678 > 679 </File> 680 <File 677 681 RelativePath="..\src\mil\include\mil\gui-windows\Gui.h" 678 682 > 679 683 </File> 680 684 <File 685 RelativePath="..\src\mil\include\mil\GuiModule.h" 686 > 687 </File> 688 <File 681 689 RelativePath="..\src\mil\include\mil\gui-windows\GuiModule.h" 682 690 > 683 691 </File> 684 692 <File 685 RelativePath="..\src\mil\include\mil\GuiModule.h"686 >687 </File>688 <File689 693 RelativePath="..\src\mil\include\mil\gui-windows\MessageCracker-inl.h" 690 694 > … … 711 715 </File> 712 716 <File 717 RelativePath="..\src\mil\include\mil\PrecompiledHeaders.h" 718 > 719 </File> 720 <File 721 RelativePath="..\src\mil\include\mil\os-windows\PrecompiledHeaders.h" 722 > 723 </File> 724 <File 713 725 RelativePath="..\src\mil\include\mil\gui-windows\PrecompiledHeaders.h" 714 726 > 715 727 </File> 716 728 <File 717 RelativePath="..\src\mil\include\mil\PrecompiledHeaders.h"718 >719 </File>720 <File721 RelativePath="..\src\mil\include\mil\os-windows\PrecompiledHeaders.h"722 >723 </File>724 <File725 729 RelativePath="..\src\mil\include\mil\os-windows\Sleep.h" 726 730 > 727 731 </File> 728 732 <File 733 RelativePath="..\src\mil\include\mil\Thread.h" 734 > 735 </File> 736 <File 729 737 RelativePath="..\src\mil\include\mil\os-windows\Thread.h" 730 >731 </File>732 <File733 RelativePath="..\src\mil\include\mil\Thread.h"734 738 > 735 739 </File>
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)