eliminate dependancy of compat/*.h on tcl.h
eliminate dependancy of compat/*.h on tcl.h
[Bug 3598580]: Tcl_ListObjReplace may release deleted elements too earl
[Bug 3598580]: Tcl_ListObjReplace may release deleted elements too early
[Bug 3598580]: Tcl_ListObjReplace may release deleted elements too early
restore old refcounts in TCL_ERROR case.
For Tcl9, do a real Tcl_DecrRefCount
restore refcounts as they were before the Tcl_ListObjReplace call, in the error situation.
In Tcl9, make this a true Tcl_DecrRefCount, which properly cleans objects with refCount 0
restore refcounts as they were before the Tcl_ListObjReplace call, in the error situation. 
In Tcl9, make this a true Tcl_DecrRefCount, which properly cleans objects with refCount 0
Marked some string subcommands as obsolete, following discussion on tcl-core.
test Tcl_GetErrorLine() forwards/backwards compatibility in pkgb.so as well
Marked some string subcommands as obsolete, following discussion on tcl-core.
Don't free ctrl.script if thread creation fails: it is a constant string "testthread wait" normally.
test Tcl_GetErrorLine() forwards/backwards compatibility in pkgb.so as well. 
Marked some string subcommands as obsolete, following discussion on tcl-core. 
Don't free ctrl.script if thread creation fails: it is a constant string "testthread wait" normally.
test Tcl_GetErrorLine() forwards/backwards compatibility in pkgb.so as well. 
Don't free ctrl.script if thread creation fails: it is a constant string "testthread wait" normally.
All tests pass except one; not sure what's wrong there.
merge trunk