allow TclBlend to load Tcl 8.5 into a Java process
Brought to you by:
mdejong
TclBlend was calling Tcl_GetNameOfExecutable() to determine if Tcl_FindExecutable() had been called already. With Tcl 8.5, at least under Windows, this crashes when TclBlend is loaded from Java because Tcl_GetNameOfExecutable() now needs Tcl_FindExecutable() to have already been called as well. What I did instead was check whether TclBlend_Init has been called. If it has, TclBlend was loaded from an interpreter that already existed, so the executable name had to have already been retrieved. If it has not, the Tcl_FindExecutable() is called as before.
patch to allow loading Tcl 8.5 into a Java process