summaryrefslogtreecommitdiffstats
path: root/win/tclWinFCmd.c
Commit message (Collapse)AuthorAgeFilesLines
* Eliminate many tclWinProcs-> indirect calls, which are no longer needed.nijtmans2010-10-121-78/+75
| | | | Fix some MSVC 6.0 warnings
* [Bug 3069278]: Breakage on head Windows triggered by install-tzdata, final fixnijtmans2010-09-211-14/+6
|
* Eliminate tclWinProcs->useWide everywhere, since the value is always "1" on ↵dogeen_assembler_splitnijtmans2010-09-201-63/+22
| | | | platforms >win95
* [Bug 3069278]: breakage on head Windows triggerednijtmans2010-09-181-4/+12
| | | | by install-tzdata. Temporary don't compile this with -DUNICODE, while investigating this bug.
* * win/tclWinChan.c: #ifdef protections to permit builds withdgp2010-09-081-17/+23
| | | | | * win/tclWinFCmd.c: mingw on amd64 systems. Thanks to "mescalinum" for reporting and testing. [Bug 3059922]
* [Freq 2965056]: Windows build with -DUNICODEnijtmans2010-08-301-6/+5
|
* [Patch #2994165] Change signature of Tcl_FSGetNativePath and TclpDeleteFilenijtmans2010-08-141-10/+11
|
* Move TCHAR fallback typedef from tcl.h to tclPlatDecls.h (as suggested by dgp)nijtmans2010-04-221-4/+4
| | | | Eliminate various unnecessary type casts.
* test that tclOO stubs are present in stub librarynijtmans2010-03-071-8/+8
| | | | | | | | Applied missing part of [Patch 2961556] Change all tclWinProcs signatures to use TCHAR* in stead of WCHAR*. This is meant as preparation to make [Enh 2965056] possible at all.
* Eliminate all internal Tcl_WinUtfToTCharnijtmans2010-02-151-8/+8
| | | | | and Tcl_WinTCharToUtf calls, needed for mslu support.
* reverted earlier rename from tcl*Stubs tonijtmans2010-02-151-6/+6
| | | | | | | | tcl*ConstStubs, it's not necessary at all. tclEnsemble.c: Fix signed-unsigned mismatch make tclWinProcs "const" Add first part of mslu support, See [Feature Request #2819611]
* eliminate TclWinResetInterfaceEncodings, becausenijtmans2009-08-021-3/+3
| | | | | | it does exactly the same as TclWinEncodingsCleanup, make sure that tclWinProcs and tclWinTCharEncoding are always set and reset concurrently.
* - eliminate some unnessary type castsnijtmans2009-02-031-3/+3
| | | | | - some internal const decorations - spacing
* eliminate -Wwrite-strings warnings in enable-threads build.nijtmans2008-12-161-2/+2
| | | | use TclNewLiteralStringObj()
* Style improvements - invoking callbacks without visual junk.dkf2008-10-261-60/+60
|
* * doc/FileSystem.3: CONSTified Tcl_FSFileAttrStringsProcnijtmans2008-10-051-2/+2
| | | | | | | | | | | | | | | * generic/tclFCmd.c: and tclpFileAttrStrings. This allows * generic/tclIOUtil.c: FileSystems to report their attributes * generic/tclTest.c: as const strings, without worrying that * unix/tclUnixFCmd.c: Tcl modifies them (which Tcl should not * win/tclWinFCmd.c: do anyway, but the API didn't indicate that) * generic/tcl.decls * generic/tclDecls.h: regenerated * generic/tcl.h: make sure that if CONST84 is defined as empty, CONST86 should be defined as empty as well (unless overridden). This change complies with TIP #27 *** POTENTIAL INCOMPATIBILITY ***
* Get rid of pre-C89-isms (esp. CONST vs const).dkf2008-04-271-34/+32
|
* fixed [ 1548263 ] NULL return from Tcl_FSGetNormalizedPath segvcoldstore2006-08-291-2/+9
|
* Export stubs for libtommath; fix mingw compiler warningsKevin B Kenny2005-12-131-4/+4
|
* ANSIfydkf2005-11-041-19/+19
|
* Typo (spotted by George Staplin)dkf2005-08-051-2/+2
|
* D'oh! [Bug 1244358]dkf2005-07-251-3/+3
|
* Getting more systematic about styledkf2005-07-241-540/+587
|
* bug 1225957Kevin B Kenny2005-06-231-207/+189
|
* Merged kennykb-numerics-branch back to the head; TIPs 132 and 232Kevin B Kenny2005-05-101-1/+1
|
* * win/tclWinFCmd.c (TraverseWinTree): use wcslen on wchar, nothobbs2005-02-171-3/+3
| | | | Tcl_UniCharLen.
* * generic/tclBasic.c:dgp2004-10-061-13/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * generic/tclBinary.c: * generic/tclCmdAH.c: * generic/tclCmdIL.c: * generic/tclCmdMZ.c: * generic/tclCompExpr.c: * generic/tclDictObj.c: * generic/tclEncoding.c: * generic/tclExecute.c: * generic/tclFCmd.c: * generic/tclHistory.c: * generic/tclIndexObj.c: * generic/tclInterp.c: * generic/tclIO.c: * generic/tclIOCmd.c: * generic/tclNamesp.c: * generic/tclObj.c: * generic/tclPkg.c: * generic/tclResult.c: * generic/tclScan.c: * generic/tclTimer.c: * generic/tclTrace.c: * generic/tclUtil.c: * generic/tclVar.c: * unix/tclUnixFCmd.c: * unix/tclUnixPipe.c: * win/tclWinDde.c: * win/tclWinFCmd.c: * win/tclWinPipe.c: It is a poor practice to directly set or append to the value of the objResult of an interp, because that value might be shared, and in that circumstance a Tcl_Panic() will be the result. Searched for example of this practice and replaced with safer alternatives, often using the Tcl_AppendResult() routine that dkf just rehabilitated. * library/dde/pkgIndex.tcl: Bump to dde 1.3.1
* Style guide fixes (braces for if, etc.)dkf2004-10-061-23/+29
|
* * win/tclWin32Dll.c (DllMain, _except_dllmain_detach_handler,mdejong2004-06-211-12/+68
| | | | | | | | | | | | | | | TclpCheckStackSpace, _except_checkstackspace_handler, TclWinCPUID, _except_TclWinCPUID_detach_handler): * win/tclWinChan.c (Tcl_MakeFileChannel, _except_makefilechannel_handler): * win/tclWinFCmd.c (DoRenameFile, _except_dorenamefile_handler, DoCopyFile, _except_docopyfile_handler): Rework pushing of exception handler function pointer so that compiling with gcc -O3 works. Remove empty function call to avoid compiler warning. Mark the DllMain function as noinline to avoid compiler error from duplicated asm labels in generated code.
* filesystem optimisation -- Three main issues accomplished: (1) cleaned up ↵vincentdarley2004-01-211-7/+25
| | | | variable names in
* All uses of 'panic' (the macro) changeddavygrvy2003-12-241-7/+7
| | | | | | | to 'Tcl_Panic' (the function). The #define of panic in tcl.h clearly states it is deprecated in the comments. [Patch 865264]
* fix to file normalization with relative linksvincentdarley2003-12-171-5/+42
|
* filesystem bug fixesvincentdarley2003-10-131-9/+22
|
* fix to WinTcl file rename error messagevincentdarley2003-06-021-2/+10
|
* first speedups to Win filesystemvincentdarley2003-02-071-2/+3
|
* finalization and test fixesvincentdarley2003-02-041-7/+6
|
* * win/tclWin32Dll.c (TclpCheckStackSpace, squelch_warnings):mdejong2003-01-251-45/+88
| | | | | | | | | | | | | | * win/tclWinChan.c (Tcl_MakeFileChannel, squelch_warnings): * win/tclWinFCmd.c (DoRenameFile, DoCopyFile, squelch_warnings): Re-implement inline ASM SEH handlers for gcc. The esp and ebp registers are now saved on the stack instead of in global variables so that the code is thread safe. Add additional checks when TCL_MEM_DEBUG is defined to be sure the values were recovered from the stack properly. Remove squelch_warnings functions and add a dummy call in the handler methods to squelch compiler warnings.
* * win/tclWin32Dll.c (squelch_warnings): Squelchmdejong2003-01-161-4/+20
| | | | | | | | | | | | | | | | | | | | | | compiler warnings from SEH ASM code. * win/tclWinChan.c (squelch_warnings): Squelch compiler warnings from SEH ASM code. * win/tclWinDde.c: Add casts to avoid compiler warnings. Pass pointer to DWORD instead of int to avoid compiler warnings. * win/tclWinFCmd.c (squelch_warnings): Add casts and fixup decls to avoid compiler warnings. Squelch compiler warnings from SEH ASM code. * win/tclWinFile.c: Add casts and fixup decls to avoid compiler warnings. Remove unused variable. * win/tclWinNotify.c: Declare as DWORD instead of int to avoid compiler warning. * win/tclWinReg.c: Add casts to avoid compiler warning. Fix assignment in if expression bug. * win/tclWinSerial.c: Add casts to avoid compiler warnings. Remove unused variable. * win/tclWinSock.c: Add casts and fixup decls to avoid compiler warnings.
* static internal functionvincentdarley2002-07-151-3/+3
|
* fs clarification and windows fixesvincentdarley2002-06-121-285/+26
|
* * win/tclWinFCmd.c (DoDeleteFile): check return of setattr APIhobbs2002-04-221-5/+8
| | | | calls in file deletion for correct Win32 API handling.
* 4 fs fixesvincentdarley2002-03-241-9/+33
|
* * win/configure: Regen.mdejong2002-03-151-2/+87
| | | | | | | | | | | | | | * win/configure.in: Add configure time test for SEH support in the compiler. * win/tclWin32Dll.c (ESP, EBP, TclpCheckStackSpace, _except_checkstackspace_handler): * win/tclWinChan.c (ESP, EBP, Tcl_MakeFileChannel, _except_makefilechannel_handler): * win/tclWinFCmd.c (ESP, EBP, DoRenameFile, _except_dorenamefile_handler, DoCopyFile, _except_docopyfile_handler): Implement SEH support under gcc using inline asm. Tcl and Tk should now compile with Mingw 1.1. [Patch 525746]
* * win/tclWinFCmd.c (DoRenameFile, DoCopyFile): Handlemdejong2002-03-141-3/+3
| | | | | | | | an SEH exception with EXCEPTION_EXECUTE_HANDLER instead of restarting the faulting instruction with EXCEPTION_CONTINUE_EXECUTION. Bug 466102 provides an example of how restarting could send Tcl into an infinite loop. [Patch 525746]
* * win/tclWinFCmd.c (DoRenameFile, DoCopyFile, DoDeleteFile,mdejong2002-03-121-59/+35
| | | | | | DoRemoveJustDirectory): Make sure we don't pass NULL or "" as a path name to Win32 API functions since this was crashing under Windows 98.
* (DoCopyFile): correctly set retval to TCL_OKhobbs2002-03-081-2/+2
|
* * win/tclWin32Dll.c (TclpCheckStackSpace):mdejong2002-03-081-9/+24
| | | | | | | * win/tclWinFCmd.c (DoRenameFile, DoCopyFile): Replace hard coded constants with Win32 symbolic names. Move control flow statements out of __try blocks since the documentation indicates it is frowned upon.
* * Partial TIP 27 rollback. Following routinesdgp2002-02-081-3/+2
| | | | | | | | | | | | | restored to return (char *): Tcl_DStringAppend, Tcl_DStringAppendElement, Tcl_JoinPath, Tcl_TranslateFileName, Tcl_ExternalToUtfDString, Tcl_UtfToExternalDString, Tcl_UniCharToUtfDString, Tcl_GetCwd, Tcl_WinTCharToUtf. Also restored Tcl_WinUtfToTChar to return (TCHAR *) and Tcl_UtfToUniCharDString to return (Tcl_UniChar *). Modified some callers. This change recognizes that Tcl_DStrings are de-facto white-box objects. * generic/tclCmdMZ.c: corrected use of C++-style comment.
* * win/tclWinFCmd.c: TIP 27: Applied patch fixing CONST warnings onuid375472002-01-311-5/+8
| | | | behalf of Don Porter <dgp@users.sourceforge.net>.
* * [Patch 505630] Updated interfaces of generic/tclBasic.cc (TIP 27).dgp2002-01-251-2/+2
| | | | | | | * [Patch 506818] Updated interfaces of generic/tclHash.c (TIP 27). * [Patch 506807] Updated interfaces of generic/tclObj.c (TIP 27). * [Patch 507304] Updated interfaces of win/tclWin32.c (TIP 27). * Update all callers.