summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--doc/Tcl_Main.36
-rw-r--r--generic/tclProc.c2
-rw-r--r--win/Makefile.in4
-rw-r--r--win/makefile.vc1
4 files changed, 8 insertions, 5 deletions
diff --git a/doc/Tcl_Main.3 b/doc/Tcl_Main.3
index 904ecbe..6a37cda 100644
--- a/doc/Tcl_Main.3
+++ b/doc/Tcl_Main.3
@@ -85,8 +85,10 @@ that does nothing but invoke \fBTcl_Main\fR.
.PP
\fBTcl_Main\fR is not provided by the public interface of Tcl's
stub library. Programs that call \fBTcl_Main\fR must be linked
-against the standard Tcl library. Extensions (stub-enabled or
-not) are not intended to call \fBTcl_Main\fR.
+against the standard Tcl library. If the standard Tcl library is
+a dll (so, not a static .lib/.a) , then the program must be linked
+against the stub library as well. Extensions
+(stub-enabled or not) are not intended to call \fBTcl_Main\fR.
.PP
\fBTcl_Main\fR is not thread-safe. It should only be called by
a single main thread of a multi-threaded application. This
diff --git a/generic/tclProc.c b/generic/tclProc.c
index f2dd98a..17635e7 100644
--- a/generic/tclProc.c
+++ b/generic/tclProc.c
@@ -2277,7 +2277,7 @@ TclUpdateReturnInfo(
Tcl_ObjCmdProc *
TclGetObjInterpProc(void)
{
- return (Tcl_ObjCmdProc *) TclObjInterpProc;
+ return TclObjInterpProc;
}
/*
diff --git a/win/Makefile.in b/win/Makefile.in
index 8fef0cc..cf1ea7b 100644
--- a/win/Makefile.in
+++ b/win/Makefile.in
@@ -573,9 +573,9 @@ ${TCL_DLL_FILE}: ${TCL_OBJS} tcl.$(RES) @ZLIB_DLL_FILE@ @TOMMATH_DLL_FILE@ ${TCL
|| echo 'ignore zip-error by adjust sfx process (not executable?)'; \
fi
-${TCL_LIB_FILE}: ${TCL_OBJS}
+${TCL_LIB_FILE}: ${TCL_OBJS} tclWinPanic.$(OBJEXT) ${DDE_OBJS} ${REG_OBJS}
@$(RM) ${TCL_LIB_FILE}
- @MAKE_LIB@ ${TCL_OBJS} ${DDE_OBJS} ${REG_OBJS}
+ @MAKE_LIB@ ${TCL_OBJS} tclWinPanic.$(OBJEXT) ${DDE_OBJS} ${REG_OBJS}
@POST_MAKE_LIB@
${DDE_DLL_FILE}: ${TCL_STUB_LIB_FILE} ${DDE_OBJS}
diff --git a/win/makefile.vc b/win/makefile.vc
index 6ff6118..7c61580 100644
--- a/win/makefile.vc
+++ b/win/makefile.vc
@@ -428,6 +428,7 @@ PLATFORMOBJS = \
$(TMP_DIR)\tclWinThrd.obj \
$(TMP_DIR)\tclWinTime.obj \
!if $(STATIC_BUILD)
+ $(TMP_DIR)\tclWinPanic.obj \
$(TMP_DIR)\tclWinReg.obj \
$(TMP_DIR)\tclWinDde.obj \
!else