summaryrefslogtreecommitdiffstats
path: root/unix/tclAppInit.c
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2019-10-24 10:53:58 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2019-10-24 10:53:58 (GMT)
commit7c54b6f6fd2a99998ce0daa0b32c8940d1ed5eea (patch)
treeb41fc8b52d1f4defdc0daf14b2a04ebe90a6187a /unix/tclAppInit.c
parentc3353d5a645c33f35445ab3c510dfef988897dd2 (diff)
downloadtcl-7c54b6f6fd2a99998ce0daa0b32c8940d1ed5eea.zip
tcl-7c54b6f6fd2a99998ce0daa0b32c8940d1ed5eea.tar.gz
tcl-7c54b6f6fd2a99998ce0daa0b32c8940d1ed5eea.tar.bz2
tclAppInit.c should be built without BUILD_tcl/USE_TCL_STUBS always. All build files should be adapted now to assure that.
Diffstat (limited to 'unix/tclAppInit.c')
-rw-r--r--unix/tclAppInit.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/unix/tclAppInit.c b/unix/tclAppInit.c
index 3587f35..aa060ab 100644
--- a/unix/tclAppInit.c
+++ b/unix/tclAppInit.c
@@ -12,8 +12,9 @@
* this file, and for a DISCLAIMER OF ALL WARRANTIES.
*/
-#undef BUILD_tcl
-#undef STATIC_BUILD
+#if defined(BUILD_tcl) || defined(USE_TCL_STUBS)
+#error "Don't build with BUILD_tcl/USE_TCL_STUBS!"
+#endif
#include "tcl.h"
#ifdef TCL_TEST
@@ -110,7 +111,7 @@ int
Tcl_AppInit(
Tcl_Interp *interp) /* Interpreter for application. */
{
- if ((Tcl_Init)(interp) == TCL_ERROR) {
+ if (Tcl_Init(interp) == TCL_ERROR) {
return TCL_ERROR;
}
@@ -152,10 +153,10 @@ Tcl_AppInit(
*/
#ifdef DJGPP
- (Tcl_ObjSetVar2)(interp, Tcl_NewStringObj("tcl_rcFileName", -1), NULL,
+ Tcl_ObjSetVar2(interp, Tcl_NewStringObj("tcl_rcFileName", -1), NULL,
Tcl_NewStringObj("~/tclsh.rc", -1), TCL_GLOBAL_ONLY);
#else
- (Tcl_ObjSetVar2)(interp, Tcl_NewStringObj("tcl_rcFileName", -1), NULL,
+ Tcl_ObjSetVar2(interp, Tcl_NewStringObj("tcl_rcFileName", -1), NULL,
Tcl_NewStringObj("~/.tclshrc", -1), TCL_GLOBAL_ONLY);
#endif