summaryrefslogtreecommitdiffstats
path: root/unix/tclAppInit.c
diff options
context:
space:
mode:
authornijtmans@users.sourceforge.net <jan.nijtmans>2011-04-06 13:10:05 (GMT)
committernijtmans@users.sourceforge.net <jan.nijtmans>2011-04-06 13:10:05 (GMT)
commit94cb0432ec98c35996036f5cbfa5beaa48b59533 (patch)
treecec3e67a847416bd537847c4250e0ef9f14be0f3 /unix/tclAppInit.c
parent8c4e5de56c4e113bd542e651dc0fa986a34ca82d (diff)
downloadtcl-94cb0432ec98c35996036f5cbfa5beaa48b59533.zip
tcl-94cb0432ec98c35996036f5cbfa5beaa48b59533.tar.gz
tcl-94cb0432ec98c35996036f5cbfa5beaa48b59533.tar.bz2
Make symbols "main" and "Tcl_AppInit" MODULE_SCOPE: there is absolutely no reason for exporting them.
Diffstat (limited to 'unix/tclAppInit.c')
-rw-r--r--unix/tclAppInit.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/unix/tclAppInit.c b/unix/tclAppInit.c
index 11ab0d1..0d2a6c4 100644
--- a/unix/tclAppInit.c
+++ b/unix/tclAppInit.c
@@ -12,6 +12,8 @@
* this file, and for a DISCLAIMER OF ALL WARRANTIES.
*/
+#undef BUILD_tcl
+#undef STATIC_BUILD
#include "tcl.h"
#ifdef TCL_TEST
@@ -33,7 +35,8 @@ extern int Tclxttest_Init(Tcl_Interp *interp);
#ifndef TCL_LOCAL_APPINIT
#define TCL_LOCAL_APPINIT Tcl_AppInit
#endif
-extern int TCL_LOCAL_APPINIT(Tcl_Interp *interp);
+MODULE_SCOPE int TCL_LOCAL_APPINIT(Tcl_Interp *);
+MODULE_SCOPE int main(int, char **);
/*
* The following #if block allows you to change how Tcl finds the startup