From: Joe E. <jen...@fl...> - 2012-10-16 20:00:11
|
Jan Nijtmans wrote: > Brian Griffin wrote: > >> If it's not too difficult, can you point me to this bit of history? > > "Removed" is probably an exaggeration. The change was from: > > tclInt.h:EXTERN void TclInitSubsystems(CONST char *argv0 > > to > > tclInt.h:MODULE_SCOPE void TclInitSubsystems(void); > > It's been well over a year since I had to deal with this, but I think MODUL > E_SCOPE caused some linking issues for us. That plus the argument change req > uired ifdefery in our code, so I implemented what is now patch 3577650. > > Isn't the function Tcl_FindExecutable(argv0) then what you > want? It is in the public API, and TclInitSubsystems() is the > first function it calls. Tcl_FindExecutable() also does a bunch of other stuff that's not appropriate for applications that embed tcl. --JE |