summaryrefslogtreecommitdiffstats
path: root/win/tclWinFCmd.c
Commit message (Collapse)AuthorAgeFilesLines
* Now that we're no longer using SCM based on RCS, the RCS Keyword lines causedgp2011-03-021-2/+0
|\ | | | | more harm than good. Purged them.
| * Now that we're no longer using SCM based on RCS, the RCS Keyword lines causedgp2011-03-011-2/+0
| | | | | | more harm than good. Purged them.
| * * win/tclWinFCmd.c: [Bug 1548263] Added test for NULL returnhobbs2006-08-301-1/+10
| | | | | | | | | | * generic/tclIOUtil.c: from Tcl_FSGetNormalizedPath which was causing segv's
| * bug #1225957Kevin B Kenny2005-06-231-201/+189
| |
| * * win/tclWinFCmd.c (TraverseWinTree): use wcslen on wchar, nothobbs2005-02-171-3/+3
| | | | | | | | Tcl_UniCharLen.
| * * 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.
| * backporting of filesystem tests, docsvincentdarley2003-10-031-9/+22
| |
* | fix gcc warnings: unused variable 'registration'nijtmans2010-11-191-3/+3
| |
* | * win/tclWin32Dll.c: #ifdef protections to permit builds withdgp2010-09-081-17/+23
| | | | | | | | | | * win/tclWinChan.c: mingw on amd64 systems. Thanks to "mescalinum" * win/tclWinFCmd.c: for reporting and testing.
* | 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.
* * Overlooked callers of Tcl_FSGetNativePathdgp2002-01-181-3/+3
|
* * More TIP 27 updates in tclIOUtil.c and tclIndexObj.c that weredgp2002-01-171-3/+3
| | | | | | | overlooked before. Updated callers. ***POTENTIAL INCOMPATIBILITY*** Includes a source incompatibility in the tablePtr arguments of the Tcl_GetIndexFromObj* routines.
* Fix a coredump in the filename normalizer code for Win95/98.drh2001-11-281-3/+2
|
* win fs fixesvincentdarley2001-11-191-55/+237
|
* small win fixvincentdarley2001-10-221-1/+15
|
* normalize fixvincentdarley2001-09-281-2/+2
|
* * More CONST poisoningdgp2001-09-281-3/+3
| | | | | | fixes from the 2001-09-24 TIP 27 changes. CONST-ified Tcl_FSLoadFile and TclpLoadFile. Report and patch from Kevin Kenny. [Bug 465833]
* minor fs, vfs fixesvincentdarley2001-09-041-5/+5
|