diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2013-04-12 11:22:43 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2013-04-12 11:22:43 (GMT) |
commit | 05aa6581cccb3435b6e1e24b98d0f6f5a9df56eb (patch) | |
tree | 17e79aba97d2060fe04dd26148f10bb53a7c857e /unix | |
parent | 160878c61416b18aa1689427fb56ef63863948d3 (diff) | |
parent | 98fc2e08c445e88c982282eba4b2f7da09a583e9 (diff) | |
download | tcl-05aa6581cccb3435b6e1e24b98d0f6f5a9df56eb.zip tcl-05aa6581cccb3435b6e1e24b98d0f6f5a9df56eb.tar.gz tcl-05aa6581cccb3435b6e1e24b98d0f6f5a9df56eb.tar.bz2 |
Implement Tcl_Pkg* functions as macro's around Tcl_Pkg*Ex. This saves stack space, is (marginally) faster, while still being fully up/down compatible. It makes pkgb.so loadable in "novem" without the need to change the Tcl_PkgProvide() call to Tcl_PkgProvideEx().
Diffstat (limited to 'unix')
-rw-r--r-- | unix/dltest/pkgb.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/unix/dltest/pkgb.c b/unix/dltest/pkgb.c index 039ad91..4d8cdab 100644 --- a/unix/dltest/pkgb.c +++ b/unix/dltest/pkgb.c @@ -124,7 +124,7 @@ Pkgb_Init( } Tcl_ResetResult(interp); } - code = Tcl_PkgProvideEx(interp, "Pkgb", "2.3", NULL); + code = Tcl_PkgProvide(interp, "Pkgb", "2.3"); if (code != TCL_OK) { return code; } @@ -165,7 +165,7 @@ Pkgb_SafeInit( } Tcl_ResetResult(interp); } - code = Tcl_PkgProvideEx(interp, "Pkgb", "2.3", NULL); + code = Tcl_PkgProvide(interp, "Pkgb", "2.3"); if (code != TCL_OK) { return code; } |