summaryrefslogtreecommitdiffstats
path: root/mac
Commit message (Collapse)AuthorAgeFilesLines
* Finalization of the sockets is now solely done invasiljevic2006-03-101-13/+11
| | | | | | | | | TclpFinalizeSockets() and not over the thread-exit handler, because the order of actions the Tcl generic core will impose may result in cores/hangs if the thread exit handler tears down socket subsystem too early (See Tcl Bug #1437595). FossilOrigin-Name: f79750f1ba666703a4c13da105b3316cbb740180
* * README: refer to macosx/README instead of mac/README.das2005-12-041-1/+13
| | | | | | * mac/README: add note that mac classic port is no longer supported. FossilOrigin-Name: c38172cd35dd38596c09dd93257921af5a9d78c0
* * generic/tclBasic.c:msofer2005-10-231-1/+3
| | | | | | | | | | | | | | | | | | | | | | | * generic/tclBinary.c: * generic/tclCmdAH.c: * generic/tclCmdIL.c: * generic/tclCmdMZ.c: * generic/tclExecute.c: * generic/tclLink.c: * generic/tclMain.c: * generic/tclProc.c: * generic/tclScan.c: * generic/tclTest.c: * generic/tclVar.c: * mac/tclMacInit.c: * unix/tclUnixInit.c: * win/tclWinInit.c: Insure that the core never calls TclPtrSetVar, Tcl_SetVar2Ex, Tcl_ObjSetVar2 or Tcl_SetObjErrorCode with a 0-ref new value. It is not possible to handle error returns correctly in that case [Bug 1334947], one has the choice of leaking the object in some cases, or else risk crashing in some others. FossilOrigin-Name: 8761ab798f625b66cadb3eaf8fafdedce6553a02
* TIP#218 IMPLEMENTATIONandreas_kupries2005-01-271-71/+46
| | | | | | | | | | | | | | | | | | | | | | | * generic/tclDecls.h: Regenerated from tcl.decls. * generic/tclStubInit.c: * doc/CrtChannel.3: Documentation of extended API, * generic/tcl.decls: extended testsuite, and * generic/tcl.h: implementation. Removal of old * generic/tclIO.c: driver-specific TclpCut/Splice * generic/tclInt.h: functions. Replaced with generic * tests/io.test: thread-action calls through the * unix/tclUnixChan.c: new hooks. Update of all builtin * unix/tclUnixPipe.c: channel drivers to version 4. * unix/tclUnixSock.c: Windows drivers extended to * win/tclWinChan.c: manage thread state in a thread * win/tclWinConsole.c: action handler. * win/tclWinPipe.c: * win/tclWinSerial.c: * win/tclWinSock.c: * mac/tclMacChan.c: FossilOrigin-Name: 1621430b8bd8ba1f234e7b963155cd20e9a5decc
* * generic/tclInt.h:hobbs2004-03-291-3/+6
| | | | | | | | | | | * generic/tclEncoding.c (TclFindEncodings, Tcl_FindExecutable): * mac/tclMacInit.c (TclpInitLibraryPath): Correct handling of UTF * unix/tclUnixInit.c (TclpInitLibraryPath): data that is actually * win/tclWinFile.c (TclpFindExecutable): "clean", allowing the * win/tclWinInit.c (TclpInitLibraryPath): loading of Tcl from paths that contain multi-byte chars on Windows [Bug 920667] FossilOrigin-Name: 9621fb37c566cca5e966df8c2374a579b279e63a
* backporting of filesystem tests, docsvincentdarley2003-10-031-1/+6
| | | FossilOrigin-Name: 9cc6cd11c033e2c40d3aba0f11cb4f1ce995b1cb
* * macosx/Makefile: fixed redo prebinding bug when DESTDIR="".das2003-10-011-2/+2
| | | | | | * mac/tclMacResource.c: fixed possible NULL dereference (bdesgraupes). FossilOrigin-Name: 318932202bc081f5073fde491823b1888ebf2634
* fix for [Bug 732477]mistachkin2003-05-131-6/+6
| | | FossilOrigin-Name: 5cf8febf6428b69bc476d6cb420ffaae33f1c97f
* * generic/tclInt.h (tclOriginalNotifier):dgp2003-03-211-3/+4
| | | | | | | | | | | | | | | | | * generic/tclStubInit.c (tclOriginalNotifier): * mac/tclMacNotify.c (Tcl_SetTimer,Tcl_WaitForEvent): * unix/tclUnixNotfy.c (Tcl_SetTimer,Tcl_WaitForEvent, Tcl_CreateFileHandler,Tcl_DeleteFileHandler): * win/tclWinNotify.c (Tcl_SetTimer,Tcl_WaitForEvent): Some linkers apparently use a different representation for a pointer to a function within the same compilation unit and a pointer to a function in a different compilation unit. This causes checks like those in the original notifier procedures to fall into infinite loops. The fix is to store pointers to the original notifier procedures in a struct defined in the same compilation unit as the stubs tables, and compare against those values. [Bug 707174] FossilOrigin-Name: 02b5df7fe137f2f4d06abffd31cdb72fe0d0065e
* Mac OS Classic specific fixes:core-8-4-2das2003-03-034-33/+98
| | | | | | | | | | | | | | | * generic/tclIOUtil.c (TclNewFSPathObj): on TCL_PLATFORM_MAC, skip potential directory separator at the beginning of addStrRep. * mac/tclMacChan.c (OpenFileChannel, CommonWatch): followup fixes to cut and splice implementation for file channels. * mac/tclMacFile.c (TclpUtime): pass native path to utime(). * mac/tclMacFile.c (TclpObjLink): correctly implemented creation of alias files via new static proc CreateAliasFile(). * mac/tclMacPort.h: define S_ISLNK macro to fix stat'ing of links. * mac/tclMacUtil.c (FSpLocationFromPathAlias): fix to enable stat'ing of broken links. FossilOrigin-Name: 5b384d430a594360e945f02e50b3338018bc6508
* * mac/tclMacChan.c (TclpCutFileChannel, TclpSpliceFileChannel):das2003-02-211-1/+92
| | | | | | Implemented missing cut and splice procs for file channels. FossilOrigin-Name: d15cdab1e9df413f12ebc853eacde64475898318
* finalization and test fixesvincentdarley2003-02-041-6/+5
| | | FossilOrigin-Name: 1bf7a8241117b168c3fb8a4ed4398c3f1317b2fa
* non-ascii chars in file mtime fixvincentdarley2003-01-091-1/+30
| | | FossilOrigin-Name: f53b3ba4dad59d84f37be2a959429127c30f8536
* * generic/tclEvent.c (TclInExit, TclInThreadExit):mdejong2002-11-071-2/+2
| | | | | | | | | | | | | | | | | Split out functionality of TclInExit to make it clear which one should be called in each situation. * generic/tclInt.decls: Declare TclInThreadExit. * generic/tclIntDecls.h: Regen. * generic/tclStubInit.c: Regen. * mac/tclMacChan.c (StdIOClose): * unix/tclUnixChan.c (FileCloseProc): * win/tclWinChan.c (FileCloseProc): * win/tclWinConsole.c (ConsoleCloseProc): * win/tclWinPipe.c (TclpCloseFile): * win/tclWinSerial.c (SerialCloseProc): Invoke the new TclInThreadExit method instead of TclInExit. FossilOrigin-Name: de2cfbf168c353f2de6ec6db06bfb347b0ce9640
* * generic/tclInt.decls: made TclSetPreInitScript() declarationdas2002-10-0911-8161/+7848
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | generic as it is used on mac & aqua as well. * generic/tclIntDecls.h: * generic/tclStubInit.c: regen. * generic/tclCompile.h: added prototype for TclCompileVariableCmd. * mac/tclMacPort.h: removed incorrect <fcntl.h> definitions and obsolete <stat.h> definitions. * mac/tclMacChan.c: removed obsolete GetOpenMode() and replaced associated constants with the <fcntl.h> analogues (they existing defs were inconsistent with <fcntl.h> which was causing havoc when Tcl_GetOpenMode was used instead of private GetOpenMode). * mac/tclMacFCmd.c: removed GenerateUniqueName(), use equivalent (and identiaclly named) routine from MoreFiles instead. * mac/tclMacLoad.c: CONSTification, fixes to Vince's last changes. * mac/tclMacFile.c: * mac/tclMacTest.c: * mac/tclMacUnix.c: CONSTification. * mac/tclMacOSA.c: CONSTificcation, sprintf fixes, UH 3.4.x changes; fix for missing autoname token from TclOSACompileCmd. (bdesgraupes) * mac/AppleScript.html(AppleScript delete): doc fix. (bdesgraupes) * mac/tcltkMacBuildSupport.sea.hqx: updated MoreFiles to 1.5.3, updated build instructions for 8.4. * mac/tclMacProjects.sea.hqx: rebuilt archive. FossilOrigin-Name: 27bd094e6887403e239add591d9da8eb59fc3812
* * generic/tcl.h:das2002-09-123-6/+6
| | | | | | | | | | * mac/tclMacApplication.r: * mac/tclMacLibrary.r: * mac/tclMacResource.r: unified use of the two equivalent resource compiler header inclusion defines RC_INVOKED and RESOURCE_INCLUDED, now use RC_INVOKED throughout. FossilOrigin-Name: cde9830052dea1e3650a061f82805e5ff159fb55
* * doc/CmdCmplt.3: Applied Patch 585105 to fully CONST-ifydgp2002-08-051-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * doc/Concat.3: all remaining public interfaces of Tcl. * doc/CrtCommand.3: Notably, the parser no longer writes on * doc/CrtSlave.3: the string it is parsing, so it is no * doc/CrtTrace.3: longer necessary for Tcl_Eval() to be * doc/Eval.3: given a writable string. Also, the * doc/ExprLong.3: refactoring of the Tcl_*Var* routines * doc/LinkVar.3: by Miguel Sofer is included, so that the * doc/ParseCmd.3: "part1" argument for them no longer needs * doc/SetVar.3: to be writable either. * doc/TraceVar.3: * doc/UpVar.3: Compatibility support has been enhanced so * generic/tcl.decls that a #define of USE_NON_CONST will remove * generic/tcl.h all possible source incompatibilities with * generic/tclBasic.c the 8.3 version of the header file(s). * generic/tclCmdMZ.c The new #define of USE_COMPAT_CONST now does * generic/tclCompCmds.c what USE_NON_CONST used to do -- disable * generic/tclCompExpr.c only those new CONST's that introduce * generic/tclCompile.c irreconcilable incompatibilities. * generic/tclCompile.h * generic/tclDecls.h Several bugs are also fixed by this patch. * generic/tclEnv.c [Bugs 584051,580433] [Patches 585105,582429] * generic/tclEvent.c * generic/tclInt.decls * generic/tclInt.h * generic/tclIntDecls.h * generic/tclInterp.c * generic/tclLink.c * generic/tclObj.c * generic/tclParse.c * generic/tclParseExpr.c * generic/tclProc.c * generic/tclTest.c * generic/tclUtf.c * generic/tclUtil.c * generic/tclVar.c * mac/tclMacTest.c * tests/expr-old.test * tests/parseExpr.test * unix/tclUnixTest.c * unix/tclXtTest.c * win/tclWinTest.c FossilOrigin-Name: e476c22fecaa0dd7fea635d29d8ea1d5579365a1
* Tcl_LoadHandle usagevincentdarley2002-07-181-5/+5
| | | FossilOrigin-Name: 9fb2f4b2d3b817b5cd6de4d3091f889bb7e4e990
* load comments and clientData replacementvincentdarley2002-07-181-6/+36
| | | FossilOrigin-Name: 9e000cc9a78336ebdde8f8c29f77a326a511042a
* load internals refactoringvincentdarley2002-07-171-70/+116
| | | FossilOrigin-Name: bbffcec48d3efc0e02e13b0bbdcdb98281bf431f
* mac TclpObjlink implementationvincentdarley2002-07-151-2/+25
| | | FossilOrigin-Name: fe515d89e28e8e6e6cce0b2ca99a3ead3127f2b7
* fs cleanupvincentdarley2002-07-081-10/+3
| | | FossilOrigin-Name: 45301e8feb5748c8e31942fdc39c49988db39820
* tip99vincentdarley2002-06-211-7/+27
| | | FossilOrigin-Name: e0671d6019fef310429006d7d45b2766e15c4dbc
* vfs, winfs testsuitevincentdarley2002-06-131-2/+3
| | | FossilOrigin-Name: 494e81b676070f623d387cd1d1104b404dba7803
* * generic/tclFileName.c (TclGlob): mac specific fix todas2002-06-053-13/+26
| | | | | | | | | | | recent changes in 'glob -tails' handling. * mac/tclMacPort.h: * mac/tclMacChan.c: fixed TIP#91 bustage. * mac/tclMacResource.c (Tcl_MacConvertTextResource): added utf conversion of text resource contents. * tests/macFCmd.test (macFCmd-1.2): allow CWIE creator. FossilOrigin-Name: a996da49e4d12db666e2ec8f299e2a27724925a9
* TIP#91 implementation; makes old style channels binary compatible withdkf2002-05-241-5/+5
| | | | | | new TIP#72-enabled Tcl. See http://purl.org/tcl/tip/91 for details. FossilOrigin-Name: b14125cf9e3409cbff0e8719ce96264cf311a363
* * generic/tclInt.h: added prototype for TclpFilesystemPathType().das2002-05-201-2/+8
| | | | | | | * mac/tclMacChan.c: use MSL provided creator type if available instead of the default 'MPW '. FossilOrigin-Name: 66a3c8ac714c2252159e30c1745015514625729c
* fix to 551306vincentdarley2002-05-021-1/+28
| | | FossilOrigin-Name: 34f2d6b9b0d26247061284641dd6ecddda35a5ca
* * mac/tclMacResource.r: added check ofdas2002-04-231-1/+3
| | | | | | | | TCLTK_NO_LIBRARY_TEXT_RESOURCES #define to allow disabling the inclusion of the tcl library code in the resource fork of Tcl executables and shared libraries. FossilOrigin-Name: f86ce486a9e0a2dfc1903407d04186648638e676
* 2002-04-20 Daniel Steffen <das@users.sourceforge.net>das2002-04-193-19/+100
| | | | | | | | | | | | | | | | * generic/tclInt.decls: * generic/tclIntPlatDecls.h: * generic/tclStubInit.c: * mac/tclMacFCmd.c: * mac/tclMacFile.c: * mac/tclMacUtil.c: Modified TclpObjNormalizePath to be alias file aware, and replaced various calls to FSpLocationFrom*Path by calls to new alias file aware versions FSpLLocationFrom*Path. The alias file aware routines don't resolve the last component of a path if it is an alias. This allows [file copy/delete] etc. to act correctly on alias files. (c.f. discussion in Bug #511666) FossilOrigin-Name: 9a1332b8f123537d15b41b398ad86e08bf252943
* 2002-04-08 Daniel Steffen <das@users.sourceforge.net>das2002-04-085-3985/+3965
| | | | | | | | | | | | | | | | | | | | | * 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. FossilOrigin-Name: 3ae45d9135ce87686a3e3b1927650b352481bc93
* 4 fs fixesvincentdarley2002-03-241-184/+242
| | | FossilOrigin-Name: d33368661952a4384e657612e1b3b49a2bd6b278
* updated to use www.tcl.tk URLhobbs2002-03-041-6/+6
| | | FossilOrigin-Name: 0d217a15e45d1bb42a73d5f2ebb373f80ed65d2e
* * mac/tclMacSock.c (TcpGetOptionProc): Changed to recognize theandreas_kupries2002-02-261-3/+27
| | | | | | | option "-error". Essentially ignores the option, always returning an empty string. FossilOrigin-Name: aa1de44a3e0a0a56a31db01e1d1e3def222359a6
* TIP#72 implementation. See ChangeLog for details.dkf2002-02-152-20/+18
| | | | | | | This version builds clean on Solaris/SPARC, with GCC and CC, both with and without threads and both in 32-bit and 64-bit mode. FossilOrigin-Name: 8d82de1905ada4c5d06f5fb967721e8b681b7c82
* * 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. FossilOrigin-Name: bb1a244cde9f05a5477cf5dd8e8ab44cd978459f
* * generic/tclInt.decls:das2002-01-277-50/+59
| | | | | | | | | | | | | | | | | * generic/tclIntPlatDecls.h: * mac/tclMacChan.c: * mac/tclMacFCmd.c: * mac/tclMacFile.c: * mac/tclMacInit.c: * mac/tclMacLoad.c: * mac/tclMacResource.c: * mac/tclMacSock.c: TIP 27 CONSTification induced changes * tests/event.test: * tests/main.test: added catches/constraints to test that use features that don't exist on the mac. FossilOrigin-Name: 02f6dcb5d2e40852b7e678559c5f3964c826593e
* * Sought out and eliminated instances of CONST-casting that are nodgp2002-01-262-5/+5
| | | | | | longer needed after the TIP 27 effort. FossilOrigin-Name: 4bca1d26dbe0eea4e2c7807477efc846faa7ca75
* * Updated interfaces of generic/tclEncoding, generic/tclFilename.c,dgp2002-01-255-22/+24
| | | | | | | | | | | | | generic/tclIOUtil.c, generic/tclPipe.c, generic/tclResult.c, generic/tclUtil.c, generic/tclVar.c and mac/tclMacResource.c according to TIP 27. Tcl_TranslateFileName rewritten as wrapper around VFS-aware version. Updated callers. ***POTENTIAL INCOMPATIBILITY*** Includes source incompatibilities: argv arguments of Tcl_Concat, Tcl_JoinPath, Tcl_OpenCommandChannel, Tcl_Merge; argvPtr arguments of Tcl_SplitList and Tcl_SplitPath. FossilOrigin-Name: fceed15544ad472b748cdf463c3b4005e83b5e8f
* * Updated socket interfaces according to TIP 27. Updated callers.dgp2002-01-231-11/+11
| | | FossilOrigin-Name: f28c83d8177682188fa236daceaec9eb7aa8109e
* * generic/tclThreadTest.c:das2002-01-185-16/+16
| | | | | | | | | | | * mac/tclMacChan.c: * mac/tclMacFCmd.c: * mac/tclMacFile.c: * mac/tclMacLoad.c: * mac/tclMacResource.c: TIP 27 CONSTification broke the mac build in a number of places. FossilOrigin-Name: 07c625a70c1fc0e3b59bea26efef040c319a8bbe
* * More TIP 27 updates in tclIOUtil.c and tclIndexObj.c that weredgp2002-01-171-2/+2
| | | | | | | | | overlooked before. Updated callers. ***POTENTIAL INCOMPATIBILITY*** Includes a source incompatibility in the tablePtr arguments of the Tcl_GetIndexFromObj* routines. FossilOrigin-Name: 28b6020550dd9e62f46b824e4c2ba2a6302657f6
* * Updated APIs in generic/tclUtf.c and generic/tclRegexp.c accordingdgp2002-01-171-3/+4
| | | | | | to the guidelines of TIP 27. Updated callers. FossilOrigin-Name: 17ade1570084cb2d14c947ac65b1832f709d3bb6
* * Updated APIs in generic/tclIOUtil.c and generic/tclPosixStr.cdgp2002-01-151-2/+2
| | | | | | according to the guidelines of TIP 27. Updated callers. [Patch 499196] FossilOrigin-Name: c606fbd2dad0ac555e745eb90871648eef4ce0db
* * Updated APIs in the file generic/tclIO.c according to the guidelinesdgp2002-01-152-11/+11
| | | | | | | | | | | | | of TIP 27. Several minor documentation corrections as well. * Updated channel driver interface according to the guidelines of TIP 27. See also [Bug 500348]. * Moved Tcl_EolTranslation enum declaration from generic/tcl.h to generic/tclInt.h (renamed to TclEolTranslation). It is not used anywhere in Tcl's public interface. FossilOrigin-Name: 9c9edf24ebc9ced7a348fbf0bc524fa36c851598
* Updated APIs in the files */tcl*Load*.c according to the guidelineskennykb2002-01-091-2/+2
| | | | | | of TIP 27. FossilOrigin-Name: ce9573a39cb9f42da11beec368b354ada882cbdd
* * mac/tclMacTime.c (TclpGetTZName): fix for daylight savings TZName bugdas2002-01-041-1/+4
| | | FossilOrigin-Name: 5f2bddc4fb81fae10e67018e24899481f18d6dd1
* * generic/tclCkalloc.c (MemoryCmd, TclFinalizeMemorySubsystem):dgp2001-12-281-58/+1
| | | | | | | | | | | | | | | | | | | | | Added the [memory onexit] command, intended to replace [checkmem]. * doc/DumpActiveMemory.3: * doc/memory.n: Updated documentation for [memory] and related matters. [Bug 487677] * mac/tclMacBOAMain.c (Tcl_Main, CheckmemCmd): Removed all the machinery for the [checkmem] command that is completely duplicated by code in generic/tclCkalloc.c. * generic/tclBinary.c: * generic/tclListObj.c: * generic/tclObj.c: * generic/tclStringObj.c: Removed references to [checkmem] in comments, referencing [memory active] instead, since it is documented. FossilOrigin-Name: cf5397db4364827cf4ff5352a5842283b5d194a1
* * mac/tclMacInit.c:das2001-12-276-58/+80
| | | | | | | | | | | | | | | | * mac/tclMacTclCode.r: synced up tclInit features to unix/win: implemented TclSetPreInitScript support, use of existing tclInit proc if defined, check of default encoding dir if set. Changed script library resource names to lowercase (i.e. same as corresponding files). Used Tcl_JoinPath instead of string append. Check that system encoding could be loaded before utf translating the LibraryPath. * mac/tclMacApplication.r: * mac/tclMacLibrary.r: * mac/tclMacOSA.r: * mac/tclMacResource.r: minor version resources cleanup FossilOrigin-Name: 82a9adf6788cc57ad79dbb56d32260154bcc9756
* ** upport to 8.4 of mac code changes for 8.3.3 & various newdas2001-11-2332-1495/+600
| | | | | | | | ** changes for 8.4, some already backported to 8.3.4 (patch #435658) see ChangeLog for details FossilOrigin-Name: 2211e7f47d524b40b088c25aae6fabdd9e704dca