summaryrefslogtreecommitdiffstats
path: root/mac/tclMacFile.c
diff options
context:
space:
mode:
authordas <das>2002-04-08 09:02:00 (GMT)
committerdas <das>2002-04-08 09:02:00 (GMT)
commit0a15882ec2062a8b32ec855925a73e5644108f40 (patch)
tree862099671ae61cb7366e579a4a370691d8ae40fc /mac/tclMacFile.c
parent99e8896f2e7f6cdf266ea20b486a1587ba574dba (diff)
downloadtcl-0a15882ec2062a8b32ec855925a73e5644108f40.zip
tcl-0a15882ec2062a8b32ec855925a73e5644108f40.tar.gz
tcl-0a15882ec2062a8b32ec855925a73e5644108f40.tar.bz2
2002-04-08 Daniel Steffen <das@users.sourceforge.net>
* generic/tcl.h: no <sys/types.h> on mac. * mac/tclMacFile.c: minor fixes to Vince's changes from 03-24. * mac/tclMacOSA.c: * mac/tclMacResource.c: added missing Tcl_UtfToExternalDString conversions of resource file names. * mac/tclMacSock.c (TcpGetOptionProc): fixed bug introduced by Andreas on 02-25; changed strcmp's to strncmp's so that option comparison behaves like on other platforms. * mac/tcltkMacBuildSupport.sea.hqx (CW Pro6 changes): added support to allow Tk to hookup C library stderr/stdout to TkConsole. * tests/basic.test: * tests/cmdAH.test: * tests/encoding.test: * tests/fileSystem.test: * tests/ioCmd.test: fixed tests failing on mac: check for existence of [exec], changed some result strings.
Diffstat (limited to 'mac/tclMacFile.c')
-rw-r--r--mac/tclMacFile.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/mac/tclMacFile.c b/mac/tclMacFile.c
index 7bea890..243127c 100644
--- a/mac/tclMacFile.c
+++ b/mac/tclMacFile.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: tclMacFile.c,v 1.18 2002/03/24 11:41:50 vincentdarley Exp $
+ * RCS: @(#) $Id: tclMacFile.c,v 1.19 2002/04/08 09:02:43 das Exp $
*/
/*
@@ -177,10 +177,10 @@ TclpMatchInDirectory(interp, resultPtr, pathPtr, pattern, types)
}
if (NativeMatchType(fileNamePtr, types, paramBlock.hFileInfo,
- okType, okCreator) {
- int len;
- char *fname = Tcl_GetStringFromObj(pathPtr,&len);
- if ((len > 1) && (strchr(fname+1, ':') == NULL)) {
+ okType, okCreator)) {
+ int fnameLen;
+ char *fname = Tcl_GetStringFromObj(pathPtr,&fnameLen);
+ if ((fnameLen > 1) && (strchr(fname+1, ':') == NULL)) {
Tcl_ListObjAppendElement(interp, resultPtr,
Tcl_NewStringObj(fname+1, fnameLen-1));
} else {
@@ -292,7 +292,7 @@ TclpMatchInDirectory(interp, resultPtr, pathPtr, pattern, types)
/* Is the type acceptable? */
if (NativeMatchType(tempName, types, pb.hFileInfo,
- okType, okCreator) {
+ okType, okCreator)) {
if ((fnameLen > 1) && (strchr(fname+1, ':') == NULL)) {
Tcl_ListObjAppendElement(interp, resultPtr,
Tcl_NewStringObj(fname+1, fnameLen-1));
@@ -405,7 +405,7 @@ NativeMatchType(
return 0;
}
}
- return 1
+ return 1;
}