diff options
author | nijtmans <nijtmans@noemail.net> | 2010-11-04 21:48:22 (GMT) |
---|---|---|
committer | nijtmans <nijtmans@noemail.net> | 2010-11-04 21:48:22 (GMT) |
commit | 3e30f0b03ddd557f9455bf7a542409cd437ea129 (patch) | |
tree | eca4cf58389348cf58a44d588d60ff77e45cbcba /generic/tclDecls.h | |
parent | ffea060a3389ef61c9a0aecc772eff545eb306c7 (diff) | |
download | tcl-3e30f0b03ddd557f9455bf7a542409cd437ea129.zip tcl-3e30f0b03ddd557f9455bf7a542409cd437ea129.tar.gz tcl-3e30f0b03ddd557f9455bf7a542409cd437ea129.tar.bz2 |
[FRQ 491789]: "setargv() doesn't support a unicode cmdline" implemented for Tcl on MSVC++
FossilOrigin-Name: 6bbdcbed5f95b356226feffd40241ca184266694
Diffstat (limited to 'generic/tclDecls.h')
-rw-r--r-- | generic/tclDecls.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/generic/tclDecls.h b/generic/tclDecls.h index fc9e082..a0453f3 100644 --- a/generic/tclDecls.h +++ b/generic/tclDecls.h @@ -8,7 +8,7 @@ * See the file "license.terms" for information on usage and redistribution * of this file, and for a DISCLAIMER OF ALL WARRANTIES. * - * RCS: @(#) $Id: tclDecls.h,v 1.187 2010/09/23 21:40:46 nijtmans Exp $ + * RCS: @(#) $Id: tclDecls.h,v 1.188 2010/11/04 21:48:23 nijtmans Exp $ */ #ifndef _TCLDECLS @@ -3787,8 +3787,14 @@ extern const TclStubs *tclStubsPtr; # define Tcl_SetVar(interp, varName, newValue, flags) \ (tclStubsPtr->tcl_SetVar(interp, varName, newValue, flags)) #endif + #if defined(_WIN32) && defined(UNICODE) # define Tcl_FindExecutable(arg) ((Tcl_FindExecutable)((const char *)(arg))) +# define Tcl_MainEx Tcl_MainExW + EXTERN void Tcl_MainExW(int argc, wchar_t **argv, + Tcl_AppInitProc *appInitProc, Tcl_Interp *interp); +# define Tcl_Main(argc, argv, proc) Tcl_MainExW(argc, argv, proc, \ + (Tcl_FindExecutable(argv[0]), (Tcl_CreateInterp)())) #endif #undef TCL_STORAGE_CLASS |