summaryrefslogtreecommitdiffstats
path: root/unix/tclLoadShl.c
diff options
context:
space:
mode:
authorvincentdarley <vincentdarley@noemail.net>2001-08-30 08:53:13 (GMT)
committervincentdarley <vincentdarley@noemail.net>2001-08-30 08:53:13 (GMT)
commit0a869d9ec691af644dcea5c22ae9a6ef6b3600fb (patch)
treecf952115d99a903d3c817b01278505ed6aaff55d /unix/tclLoadShl.c
parentae04acdf71b78c227a384109d001ad75dd83d8f8 (diff)
downloadtcl-0a869d9ec691af644dcea5c22ae9a6ef6b3600fb.zip
tcl-0a869d9ec691af644dcea5c22ae9a6ef6b3600fb.tar.gz
tcl-0a869d9ec691af644dcea5c22ae9a6ef6b3600fb.tar.bz2
filesystem
FossilOrigin-Name: 63ee4e7a09d028fa707389d63a2bdc197a342ce1
Diffstat (limited to 'unix/tclLoadShl.c')
-rw-r--r--unix/tclLoadShl.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/unix/tclLoadShl.c b/unix/tclLoadShl.c
index 0623986..0d7c648 100644
--- a/unix/tclLoadShl.c
+++ b/unix/tclLoadShl.c
@@ -10,7 +10,7 @@
* See the file "license.terms" for information on usage and redistribution
* of this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
- * RCS: @(#) $Id: tclLoadShl.c,v 1.4 2001/04/09 23:09:58 kennykb Exp $
+ * RCS: @(#) $Id: tclLoadShl.c,v 1.5 2001/08/30 08:53:15 vincentdarley Exp $
*/
#include <dl.h>
@@ -47,9 +47,9 @@
*/
int
-TclpLoadFile(interp, fileName, sym1, sym2, proc1Ptr, proc2Ptr, clientDataPtr)
+TclpLoadFile(interp, pathPtr, sym1, sym2, proc1Ptr, proc2Ptr, clientDataPtr)
Tcl_Interp *interp; /* Used for error reporting. */
- char *fileName; /* Name of the file containing the desired
+ Tcl_Obj *pathPtr; /* Name of the file containing the desired
* code. */
char *sym1, *sym2; /* Names of two procedures to look up in
* the file's symbol table. */
@@ -62,7 +62,8 @@ TclpLoadFile(interp, fileName, sym1, sym2, proc1Ptr, proc2Ptr, clientDataPtr)
{
shl_t handle;
Tcl_DString newName;
-
+ char *fileName = Tcl_GetString(pathPtr);
+
/*
* The flags below used to be BIND_IMMEDIATE; they were changed at
* the suggestion of Wolfgang Kechel (wolfgang@prs.de): "This