summaryrefslogtreecommitdiffstats
path: root/generic/tclIOUtil.c
diff options
context:
space:
mode:
authordgp <dgp@users.sourceforge.net>2001-09-28 01:21:52 (GMT)
committerdgp <dgp@users.sourceforge.net>2001-09-28 01:21:52 (GMT)
commitb32ac06e6c6eecabdceefee25539d048dcfb00fe (patch)
treeefc77c730c35b6fb82ceecf051d26b598c191f2e /generic/tclIOUtil.c
parentbb9116d73ba9d1c0da04e53d1451fffe964ee876 (diff)
downloadtcl-b32ac06e6c6eecabdceefee25539d048dcfb00fe.zip
tcl-b32ac06e6c6eecabdceefee25539d048dcfb00fe.tar.gz
tcl-b32ac06e6c6eecabdceefee25539d048dcfb00fe.tar.bz2
* More CONST poisoning
fixes from the 2001-09-24 TIP 27 changes. CONST-ified Tcl_FSLoadFile and TclpLoadFile. Report and patch from Kevin Kenny. [Bug 465833]
Diffstat (limited to 'generic/tclIOUtil.c')
-rw-r--r--generic/tclIOUtil.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/generic/tclIOUtil.c b/generic/tclIOUtil.c
index 771b139..f2f3497 100644
--- a/generic/tclIOUtil.c
+++ b/generic/tclIOUtil.c
@@ -17,7 +17,7 @@
* See the file "license.terms" for information on usage and redistribution
* of this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
- * RCS: @(#) $Id: tclIOUtil.c,v 1.20 2001/09/08 14:05:09 vincentdarley Exp $
+ * RCS: @(#) $Id: tclIOUtil.c,v 1.21 2001/09/28 01:21:53 dgp Exp $
*/
#include "tclInt.h"
@@ -2236,7 +2236,7 @@ Tcl_FSLoadFile(interp, pathPtr, sym1, sym2, proc1Ptr, proc2Ptr,
Tcl_Interp *interp; /* Used for error reporting. */
Tcl_Obj *pathPtr; /* Name of the file containing the desired
* code. */
- char *sym1, *sym2; /* Names of two procedures to look up in
+ 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
@@ -2300,8 +2300,9 @@ Tcl_FSLoadFile(interp, pathPtr, sym1, sym2, proc1Ptr, proc2Ptr,
FsDivertLoad *tvdlPtr;
int retVal;
- retVal = Tcl_FSLoadFile(interp, copyToPtr, sym1, sym2, proc1Ptr,
- proc2Ptr, &newClientData, &newUnloadProcPtr);
+ retVal = Tcl_FSLoadFile(interp, copyToPtr, sym1, sym2,
+ proc1Ptr, proc2Ptr, &newClientData,
+ &newUnloadProcPtr);
if (retVal == -1) {
/* The file didn't load successfully */
Tcl_FSDeleteFile(copyToPtr);