summaryrefslogtreecommitdiffstats
path: root/generic/tclEncoding.c
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2013-03-31 20:17:46 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2013-03-31 20:17:46 (GMT)
commit449ea437180bc44e39e63c8126f8f654aeb98b0a (patch)
tree8605c4cb1e2d105904e3f8e5486415b6629ed2a5 /generic/tclEncoding.c
parent11593d64b8c9f241f43da823c00c9999cf84fcd5 (diff)
parent260c2634b9c296b79c7c6adc8326214233e38d87 (diff)
downloadtcl-449ea437180bc44e39e63c8126f8f654aeb98b0a.zip
tcl-449ea437180bc44e39e63c8126f8f654aeb98b0a.tar.gz
tcl-449ea437180bc44e39e63c8126f8f654aeb98b0a.tar.bz2
Going forward trying to define a better Tcl_InitStubsystems()
Diffstat (limited to 'generic/tclEncoding.c')
-rw-r--r--generic/tclEncoding.c24
1 files changed, 5 insertions, 19 deletions
diff --git a/generic/tclEncoding.c b/generic/tclEncoding.c
index 9905eaa..e57272f 100644
--- a/generic/tclEncoding.c
+++ b/generic/tclEncoding.c
@@ -1442,28 +1442,14 @@ static const struct {
};
#undef Tcl_FindExecutable
-Tcl_Interp *
-Tcl_InitSubsystems(int flags, ...)
+const char *
+Tcl_InitSubsystems(Tcl_PanicProc *panicProc)
{
- va_list argList;
- Tcl_Interp *interp = (Tcl_Interp *) &dummyInterp;
-
- va_start(argList, flags);
- if (flags & TCL_INIT_PANIC) {
- Tcl_SetPanicProc(va_arg(argList, Tcl_PanicProc *));
+ if (panicProc) {
+ Tcl_SetPanicProc(panicProc);
}
TclInitSubsystems();
- if (flags & TCL_INIT_CUSTOM) {
- ClientData clientData = va_arg(argList, ClientData);
- void (*fn)(Tcl_Interp *, ClientData) = va_arg(argList,
- void (*)(Tcl_Interp *, ClientData));
- fn(interp, clientData);
- }
- va_end(argList);
-
- TclpSetInitialEncodings();
- TclpFindExecutable(NULL);
- return interp;
+ return dummyInterp.version;
}
void