summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2011-04-06 13:10:05 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2011-04-06 13:10:05 (GMT)
commit7207d9a57abd342956e228d594c8e4a70a03030a (patch)
treecec3e67a847416bd537847c4250e0ef9f14be0f3
parent963891f74c97d0fecfcf5b4825bd5148f67a103c (diff)
downloadtcl-7207d9a57abd342956e228d594c8e4a70a03030a.zip
tcl-7207d9a57abd342956e228d594c8e4a70a03030a.tar.gz
tcl-7207d9a57abd342956e228d594c8e4a70a03030a.tar.bz2
Make symbols "main" and "Tcl_AppInit" MODULE_SCOPE: there is absolutely no reason for exporting them.
-rw-r--r--ChangeLog5
-rw-r--r--unix/tclAppInit.c5
2 files changed, 9 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 197deaf..3ac06bd 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2011-04-06 Jan Nijtmans <nijtmans@users.sf.net>
+
+ * unix/tclAppInit.c: Make symbols "main" and "Tcl_AppInit"
+ MODULE_SCOPE: there is absolutely no reason for exporting them.
+
2011-04-06 Donal K. Fellows <dkf@users.sf.net>
* generic/tclFCmd.c, macosx/tclMacOSXFCmd.c, unix/tclUnixChan.c,
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