summaryrefslogtreecommitdiffstats
path: root/generic/tclTest.c
diff options
context:
space:
mode:
authorvincentdarley <vincentdarley@noemail.net>2002-07-22 16:57:47 (GMT)
committervincentdarley <vincentdarley@noemail.net>2002-07-22 16:57:47 (GMT)
commitd4ffc05a5d2c16fa609be70320d813796a8df5b1 (patch)
tree1f9f319166b40cfef0ca01389dcb06b397137202 /generic/tclTest.c
parent0c82ce7afc69f51a8325b338d2fd55df6590a311 (diff)
downloadtcl-d4ffc05a5d2c16fa609be70320d813796a8df5b1.zip
tcl-d4ffc05a5d2c16fa609be70320d813796a8df5b1.tar.gz
tcl-d4ffc05a5d2c16fa609be70320d813796a8df5b1.tar.bz2
removed load-related clientData, made filesystem static
FossilOrigin-Name: f182692e41e6729ff8120fb59e8549bfbe294fe1
Diffstat (limited to 'generic/tclTest.c')
-rw-r--r--generic/tclTest.c23
1 files changed, 8 insertions, 15 deletions
diff --git a/generic/tclTest.c b/generic/tclTest.c
index 1928dc7..2c952e8 100644
--- a/generic/tclTest.c
+++ b/generic/tclTest.c
@@ -13,7 +13,7 @@
* See the file "license.terms" for information on usage and redistribution
* of this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
- * RCS: @(#) $Id: tclTest.c,v 1.54 2002/07/08 10:11:22 vincentdarley Exp $
+ * RCS: @(#) $Id: tclTest.c,v 1.55 2002/07/22 16:57:47 vincentdarley Exp $
*/
#define TCL_TEST
@@ -364,10 +364,8 @@ static int TestReportCopyDirectory _ANSI_ARGS_ ((Tcl_Obj *src,
static int TestReportRemoveDirectory _ANSI_ARGS_ ((Tcl_Obj *path,
int recursive, Tcl_Obj **errorPtr));
static int TestReportLoadFile _ANSI_ARGS_ ((Tcl_Interp *interp,
- Tcl_Obj *fileName, CONST char *sym1,
- CONST char *sym2, Tcl_PackageInitProc **proc1Ptr,
- Tcl_PackageInitProc **proc2Ptr,
- ClientData *clientDataPtr,
+ Tcl_Obj *fileName,
+ Tcl_LoadHandle *handlePtr,
Tcl_FSUnloadFileProc **unloadProcPtr));
static Tcl_Obj * TestReportLink _ANSI_ARGS_ ((Tcl_Obj *path,
Tcl_Obj *to, int linkType));
@@ -5828,17 +5826,12 @@ TestReportChdir(dirName)
return Tcl_FSChdir(TestReportGetNativePath(dirName));
}
static int
-TestReportLoadFile(interp, fileName, sym1, sym2, proc1Ptr, proc2Ptr,
- clientDataPtr, unloadProcPtr)
+TestReportLoadFile(interp, fileName,
+ handlePtr, unloadProcPtr)
Tcl_Interp *interp; /* Used for error reporting. */
Tcl_Obj *fileName; /* Name of the file containing the desired
* code. */
- CONST char *sym1, *sym2; /* Names of two procedures to look up in
- * the file's symbol table. */
- Tcl_PackageInitProc **proc1Ptr, **proc2Ptr;
- /* Where to return the addresses corresponding
- * to sym1 and sym2. */
- ClientData *clientDataPtr; /* Filled with token for dynamically loaded
+ Tcl_LoadHandle *handlePtr; /* Filled with token for dynamically loaded
* file which will be passed back to
* (*unloadProcPtr)() to unload the file. */
Tcl_FSUnloadFileProc **unloadProcPtr;
@@ -5847,8 +5840,8 @@ TestReportLoadFile(interp, fileName, sym1, sym2, proc1Ptr, proc2Ptr,
* this file. */
{
TestReport("loadfile",fileName,NULL);
- return Tcl_FSLoadFile(interp, TestReportGetNativePath(fileName), sym1, sym2,
- proc1Ptr, proc2Ptr, clientDataPtr, unloadProcPtr);
+ return Tcl_FSLoadFile(interp, TestReportGetNativePath(fileName), NULL, NULL,
+ NULL, NULL, handlePtr, unloadProcPtr);
}
static Tcl_Obj *
TestReportLink(path, to, linkType)