Diff
Not logged in

Differences From Artifact [f209b7fbfe]:

To Artifact [b7be5f8bb5]:


119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134

#if defined(USE_TCL_STUBS) && (defined(_WIN32) || defined(__CYGWIN__))\
	&& ((TCL_UTF_MAX > 4) || defined(TCL_NO_DEPRECATED))
#undef Tcl_WinUtfToTChar
#undef Tcl_WinTCharToUtf
#ifdef _WIN32
#define Tcl_WinUtfToTChar(string, len, dsPtr) ((Tcl_DStringInit(dsPtr), (string) != NULL) \
		? (TCHAR *)Tcl_UtfToUtf16DString((string), (len), (dsPtr)) \
		: ((void)(len), NULL))
#define Tcl_WinTCharToUtf(string, len, dsPtr) ((Tcl_DStringInit(dsPtr), (string) != NULL) \
		? (char *)Tcl_Utf16ToUtfDString((string), ((int)(len) >> 1), (dsPtr)) \
		: ((void)(len), NULL))
#endif
#endif

#endif /* _TCLPLATDECLS */







|


|





119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134

#if defined(USE_TCL_STUBS) && (defined(_WIN32) || defined(__CYGWIN__))\
	&& ((TCL_UTF_MAX > 4) || defined(TCL_NO_DEPRECATED))
#undef Tcl_WinUtfToTChar
#undef Tcl_WinTCharToUtf
#ifdef _WIN32
#define Tcl_WinUtfToTChar(string, len, dsPtr) ((Tcl_DStringInit(dsPtr), (string) != NULL) \
		? (TCHAR *)Tcl_UtfToWCharDString((string), (len), (dsPtr)) \
		: ((void)(len), NULL))
#define Tcl_WinTCharToUtf(string, len, dsPtr) ((Tcl_DStringInit(dsPtr), (string) != NULL) \
		? (char *)Tcl_WCharToUtfDString((string), ((int)(len) >> 1), (dsPtr)) \
		: ((void)(len), NULL))
#endif
#endif

#endif /* _TCLPLATDECLS */