summaryrefslogtreecommitdiffstats
path: root/unix/dltest/pkge.c
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2021-05-21 07:07:21 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2021-05-21 07:07:21 (GMT)
commit703055871b9c9615284dc69dd2dcf07a05b454f5 (patch)
treece87a801501e59207d9055fe03d9dd7a3700861a /unix/dltest/pkge.c
parent7476029a046978c3dc59b34a88d3be4c6e153613 (diff)
downloadtcl-703055871b9c9615284dc69dd2dcf07a05b454f5.zip
tcl-703055871b9c9615284dc69dd2dcf07a05b454f5.tar.gz
tcl-703055871b9c9615284dc69dd2dcf07a05b454f5.tar.bz2
Make all "pkg?" package names lowercase (was: ""Pkg?"), as we now recommend lowercase package names. Let's provide good examples then.
Diffstat (limited to 'unix/dltest/pkge.c')
-rw-r--r--unix/dltest/pkge.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/unix/dltest/pkge.c b/unix/dltest/pkge.c
index abd2359..b16acde 100644
--- a/unix/dltest/pkge.c
+++ b/unix/dltest/pkge.c
@@ -12,7 +12,6 @@
*/
#include "tcl.h"
-
/*
*----------------------------------------------------------------------
@@ -31,15 +30,15 @@
*----------------------------------------------------------------------
*/
-int
+DLLEXPORT int
Pkge_Init(
Tcl_Interp *interp) /* Interpreter in which the package is to be
* made available. */
{
- static char script[] = "if 44 {open non_existent}";
+ static const char script[] = "if 44 {open non_existent}";
- if (Tcl_InitStubs(interp, TCL_VERSION, 0) == NULL) {
+ if (Tcl_InitStubs(interp, "8.4", 0) == NULL) {
return TCL_ERROR;
}
- return Tcl_Eval(interp, script);
+ return Tcl_EvalEx(interp, script, -1, 0);
}