summaryrefslogtreecommitdiffstats
path: root/macosx
Commit message (Collapse)AuthorAgeFilesLines
...
| | * * macosx/tclMacOSXNotify.c: implemented pthread_atfork() handler thatdas2006-05-271-3/+112
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * unix/tcl.m4 (Darwin): recreates CoreFoundation state and notifier thread in the child after a fork(). Note that pthread_atfork() is available starting with Tiger only. Because vfork() is used by the core on Darwin, [exec]/[open] are not affected by this fix, only extensions or embedders that call fork() directly (such as TclX). However, this only makes fork() safe from corefoundation tcl with --disable-threads; as on all platforms, forked children may deadlock in threaded tcl due to the potential for stale locked mutexes in the child. [Patch 923072] * unix/configure: autoconf-2.59
| | * cosmetic fix to 'install' targetsdas2006-04-121-1/+3
| | |
| | * * unix/tcl.m4 (Darwin): add 64bit support, check for Tiger copyfile(),das2005-11-277-393/+967
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | add CFLAGS to SHLIB_LD to support passing -isysroot in env(CFLAGS) to configure (flag can't be present twice, so can't be in both CFLAGS and LDFLAGS during configure), don't use -prebind when deploying on 10.4, define TCL_IO_TRACK_OS_FOR_DRIVER_WITH_BAD_BLOCKING (rdar://3171542). (SC_ENABLE_LANGINFO, SC_TIME_HANDLER): add/fix caching, fix obsolete autoconf macros. Sync with tk/unix/tcl.m4, sync whitespace with HEAD. * unix/configure.in: fix obsolete autoconf macros, sync gratuitous formatting/ordering differences with tk/unix/configure.in. * unix/Makefile.in: add CFLAGS to tclsh/tcltest link to make executable linking the same as during configure (needed to avoid loosing any linker relevant flags in CFLAGS, in particular flags that can't be in LDFLAGS). Avoid concurrent linking of tclsh and compiling of tclTestInit.o or xtTestInit.o during parallel make. (checkstubs, checkdoc, checkexports): dependency and Darwin fixes * unix/tclLoadDyld.c (TclpDlopen): use NSADDIMAGE_OPTION_WITH_SEARCHING on second NSAddImage only. [Bug 1204237] (TclGuessPackageName): should not be MODULE_SCOPE. (TclpLoadMemory): ppc64 and endian (i386) fixes, add support for loading universal (fat) bundles from memory. * unix/tclUnixPort.h: * unix/tclUnixFCmd.c: add support for new Tiger copyfile() API to enable copying of xattrs & ACLs by [file copy]. * generic/tcl.h: add Darwin specifc configure overrides for TCL_WIDE defines to support fat compiles of ppc and ppc64 at the same time, (replaces Darwin CVS fix by emoy, rdar://3693001). add/correct location of version numbers in macosx files. * generic/tclInt.h: clarify fat compile comment. * unix/tclUnixPort.h: add Darwin specifc configure overrides to support fat compiles, where configure runs only once for multiple architectures (replaces Darwin CVS fix by emoy, rdar://3693001). * macosx/tclMacOSXBundle.c: * macosx/tclMacOSXNotify.c: * unix/tclUnixNotfy.c: * unix/tclUnixPort.h: fix #include order to support compile time override of HAVE_COREFOUNDATION in tclUnixPort.h when building for ppc64 * macosx/Tcl.pbproj/default.pbxuser (new file): * macosx/Tcl.pbproj/jingham.pbxuser: * macosx/Tcl.pbproj/project.pbxproj: sync with HEAD. * macosx/README: clarification/cleanup, sync with HEAD, document universal (fat) builds via CFLAGS (i.e. all of ppc ppc64 i386 at once). * macosx/Makefile: add support for reusing configure cache, build target fixes, remove GENERIC_FLAGS override now handled by tcl.m4. * generic/tclIOUtil.c: * generic/tclRegexp.c: * generic/tclVar.c: declare globals used only in own file as static (sync with HEAD). * generic/rege_dfa.c (getvacant): * generic/regexec.c (cfind): * generic/tclCompExpr.c (CompileSubExpr): * unix/tclUnixChan.c (TclUnixWaitForFile): initialise variables to silence gcc 4 warnings. * generic/regguts.h: only #define NDEBUG if not already #defined. * macosx/tclMacOSXNotify.c: sync whitespace & comments with HEAD * unix/configure: regen.
| | * * macosx/Makefile: fixed 'embedded' target.das2005-06-031-4/+3
| | |
| | * * macosx/Makefile: moved & corrected EMBEDDED_BUILD check.das2005-05-261-6/+7
| | | | | | | | | | | | | | | | | | * unix/configure.in: corrected framework finalization to softlink stub library to Versions/8.x subdir instead of Versions/Current. * unix/configure: autoconf-2.59
| | * * macosx/Makefile:das2005-05-243-128/+112
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * macosx/README: * macosx/Tcl-Info.plist.in (new file): * unix/Makefile.in: * unix/configure.in: * unix/tcl.m4: * unix/tclUnixInit.c: moved all Darwin framework build support from macosx/Makefile into the standard unix configure/make buildsystem, the macosx/Makefile is no longer required to build Tcl.framework (but its functionality is still available for backwards compatibility). * unix/configure: autoconf-2.13
| | * * macosx/tclMacOSXNotify.c (Tcl_InitNotifier): fixed crashingdas2005-05-201-2/+2
| | | | | | | | | | | | | | | | | | CFRelease of runLoopSource in Tcl_InitNotifier (reported by Zoran): CFRunLoopAddSource doesn't CFRetain, so can only CFRelease the runLoopSource in Tcl_FinalizeNotifier.
| | * * macosx/tclMacOSXNotify.c (Tcl_InitNotifier): fixed crashingdas2005-05-191-2/+2
| | | | | | | | | | | | | | | | | | CFRelease of runLoopSource in Tcl_InitNotifier (reported by Zoran): CFRunLoopAddSource doesn't CFRetain, so can only CFRelease the runLoopSource in Tcl_FinalizeNotifier.
| | * * macosx/tclMacOSXBundle.c:das2005-05-142-1/+1038
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * unix/tclUnixInit.c: * unix/tcl.m4 (Darwin): made use of CoreFoundation API configurable and added test of CoreFoundation availablility to allow building on ppc64, replaced HAVE_CFBUNDLE by HAVE_COREFOUNDATION; test for availability of Tiger or later OSSpinLockLock API. * unix/tclUnixNotfy.c: * unix/Makefile.in: * macosx/tclMacOSXNotify.c (new file): when CoreFoundation is available, use new CFRunLoop based notifier: allows easy integration with other event loops on Mac OS X, in particular the TkAqua Carbon event loop is now integrated via a standard tcl event source (instead of TkAqua upon loading having to finalize the exsting notifier and replace it with its custom version). [Patch 1202052] * tests/unixNotfy.test: don't run unthreaded tests on Darwin since notifier may be using threads even in unthreaded core. * unix/tclUnixPort.h: * unix/tcl.m4 (Darwin): test for thread-unsafe realpath durning configure, as Darwin 7 and later realpath is threadsafe. * macosx/tclMacOSXBundle.c: * unix/tclLoadDyld.c: * unix/tclUnixInit.c: fixed gcc 4.0 warnings. * unix/configure: autoconf-2.13
| | * * macosx/README: updated requirements for OS & developer tooldas2005-04-091-11/+11
| | | | | | | | | | | | versions + other small fixes/cleanup.
| | * * macosx/Makefile:das2004-11-191-3/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * unix/configure.in: * unix/tclUnixInit.c (MacOSXGetLibraryPath): changed detection of tcl framework build when determining tclLibPath from overloaded TCL_LIBRARY to configuration define TCL_FRAMEWORK. [Bug 1068088] * unix/configure: autoconf-2.13 * tests/unixInit.test (7.1): fixed failure when running tests with -tmpdir arg not set to working dir.
| | * * macosx/Makefile: corrected path to html help inside framework.das2004-11-111-2/+4
| | | | | | | | | | | | | | | Prevent parallel make from building several targets at the same time.
| | * * macosx/tclMacOSXBundle.c: dynamically acquire address fordas2004-07-201-2/+20
| | | | | | | | | | | | | | | CFBundleOpenBundleResourceMap symbol, since it is only present in full CoreFoundation on Mac OS X and not in CFLite on pure Darwin.
| | * * macosx/Makefile: fixed copyright year in Tcl.framework Info.plistdas2004-02-261-2/+3
| | |
| | * * macosx/Makefile: optimized builds define NDEBUG to turn offdas2003-11-061-2/+3
| | | | | | | | | | | | ThreadAlloc range checking.
| | * * macosx/Makefile: added 'test' target.das2003-11-041-2/+9
| | |
| | * * macosx/Makefile: fixed redo prebinding bug when DESTDIR="".das2003-10-011-3/+3
| | | | | | | | | | | | * mac/tclMacResource.c: fixed possible NULL dereference (bdesgraupes).
| | * * macosx/Makefile: ensure SYMROOT exists if OBJROOT is overriddendas2003-09-251-6/+5
| | | | | | | | | | | | on command line. Replaced explict use of /usr/bin by ${BINDIR}.
| | * * macosx/Makefile: added option to allow installing manpagesdas2003-07-191-6/+15
| | | | | | | | | | | | in addition to default html help.
| | * * macosx/Makefile: added var to allow overriding of tclsh useddas2003-07-181-2/+3
| | | | | | | | | | | | during html help building (Landon Fuller).
| | * * macosx/Makefile: Rewrote buildsystem for Mac OS X framework builddas2003-07-154-781/+414
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | to be purely make driven; in order to become independent of Apple's closed-source IDE and build tool. The changes are intended to be transparent to the Makefile user, all existing make targets and cmd line variable overrides should continue to work. Changed build to only include tcl specific html help in Tcl.framework, the tk specific html help is now included in Tk.framework. * macosx/Tcl.pbproj/project.pbxproj: * macosx/Tcl.pbproj/jingham.pbxuser: Changed to purely call through to the make driven buildsystem; Tcl.framework is no longer assembled by ProjectBuilder. Set default SYMROOT in target options to simplify setting up PB (manually setting common build folder for tcl & tk no longer needed). * tools/tcltk-man2html.tcl: Added options to allow building only the tcl or tk html help files; the default behaviour with none of the new options is to build both, as before. * unix/Makefile.in: Added targets for building only the tcl or tk help. * macosx/README (new): Tcl specific excerpts of tk/macosx/README. * generic/tcl.h: Updated reminder comment about editing macosx/Tcl.pbproj/project.pbxproj when version number changes.
| | * * macosx/tclMacOSXBundle.c: fixed a problem that caused only thedas2003-05-221-0/+10
| | | | | | | | | | | | | | | | | | first call to Tcl_MacOSXOpenVersionedBundleResources() for a given bundle identifier to succeed. This caused the tcl runtime library not to be found in all interps created after the inital one.
| | * * macosx/Tcl.pbproj/project.pbxproj: changed tclConfig.sh locationdas2003-05-191-1/+1
| | | | | | | | | | | | | | | | | | in versioned framework subdirectories to be identical to location in framework toplevel; fixed stub library symbolic links to be tcl version specific.
| | * 2003-05-16 Daniel Steffen <das@users.sourceforge.net>das2003-05-161-1/+1
| | | | | | | | | | | | * macosx/Tcl.pbproj/project.pbxproj: updated copyright year.
| | * bumped version to 8.4.3hobbs2003-05-151-2/+2
| | |
| | * * generic/tcl.decls:das2003-05-131-12/+70
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * macosx/tclMacOSXBundle.c: added extended version of the Tcl_MacOSXOpenBundleResources() API taking an extra version number argument: Tcl_MacOSXOpenVersionedBundleResources(). This is needed to be able to access bundle resources in versioned frameworks such as Tcl and Tk, otherwise if multiple versions were installed, only the latest version's resources could be accessed. [Bug 736774] * unix/tclUnixInit.c (Tcl_MacOSXGetLibraryPath): use new versioned bundle resource API to get tcl runtime library for TCL_VERSION. [Bug 736774] * generic/tclPlatDecls.h: * generic/tclStubInit.c: regen. * unix/tclUnixPort.h: worked around the issue of realpath() not being thread-safe on Mac OS X by defining NO_REALPATH for threaded builds on Mac OS X. [Bug 711232]
| * | * macosx/tclMacOSXBundle.c: Workaround CF memory managment bug indas2009-10-051-11/+18
| | | | | | | | | | | | * unix/tclUnixInit.c: Mac OS X 10.4 & earlier. [Bug 2569449]
| * | * macosx/tclMacOSXNotify.c: fix multiple issues with nested event loopsdas2009-08-241-27/+52
| | | | | | | | | | | | | | | when CoreFoundation notifier is running in embedded mode. (fixes problems in TkAqua Cocoa reported by Youness Alaoui on tcl-mac)
| * | update Apple copyright notice for 2009-04-10 changesdas2009-04-144-51/+13
| | |
| * | fix warningdas2009-04-101-1/+3
| | |
| * | * unix/tclUnixChan.c: TclUnixWaitForFile(): use FD_* macrosdas2009-04-101-34/+31
| | | | | | | | | | | | | | | * macosx/tclMacOSXNotify.c: to manipulate select masks (Cassoff). [Bug 1960647]
| * | * macosx/tclMacOSXNotify.c: revise CoreFoundation notifier to allowdas2009-04-101-400/+1016
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * unix/tclUnixChan.c: embedding into applications that * unix/tclUnixEvent.c: already have a CFRunLoop running and want to run the tcl event loop via Tcl_ServiceModeHook(TCL_SERVICE_ALL). * macosx/tclMacOSXNotify.c: add CFRunLoop based Tcl_Sleep() and * unix/tclUnixChan.c: TclUnixWaitForFile() implementations * unix/tclUnixEvent.c: and disable select() based ones in CoreFoundation builds. * unix/tclUnixNotify.c: simplify, sync with tclMacOSXNotify.c. * generic/tclInt.decls: add TclMacOSXNotifierAddRunLoopMode() * generic/tclIntPlatDecls.h: internal API, regen. * generic/tclStubInit.c:
| * | * macosx/tclMacOSXBundle.c: on Mac OS X 10.4 and later, replacedas2009-04-101-8/+79
| | | | | | | | | | | | deprecated NSModule API by dlfcn API.
| * | Tcl_MacOSXOpenVersionedBundleResources: Fix leak, simplify logicdas2008-12-071-28/+36
| | |
| * | * macosx/Tcl.xcodeproj/project.pbxproj: add debug configs with gcov,das2008-06-123-71/+292
| | | | | | | | | | | | | | | | | | | | | and with corefoundation disabled; updates and cleanup for Xcode 3.1 and for Leopard. * macosx/Tcl.xcode/project.pbxproj: sync Tcl.xcodeproj changes. * macosx/README: document new build configs.
| * | fix Makefile dependencydas2008-05-061-2/+2
| | |
| * | sync with Tcl.xcodeprojdas2008-04-151-2/+15
| | |
* | | * generic/tclBasic.c, generic/tclClock.c, generic/tclEncoding.c,dkf2010-10-011-3/+5
| | | | | | | | | | | | | | | | | | | | | | | | * generic/tclEnv.c, generic/tclLoad.c, generic/tclNamesp.c, * generic/tclObj.c, generic/tclRegexp.c, generic/tclResolve.c, * generic/tclResult.c, generic/tclUtil.c, macosx/tclMacOSXFCmd.c: More purging of strcpy() from locations where we already know the length of the data being copied.
* | | * macosx/tclMacOSXBundle.c (OpenResourceMap): [Bug 2981528]: Onlydkf2010-04-041-4/+11
| | | | | | | | | | | | define this function when HAVE_COREFOUNDATION is defined.
* | | * macosx/tclMacOSXBundle.c, macosx/tclMacOSXFCmd.c:dkf2010-03-253-294/+342
| | | | | | | | | | | | | | | | | | | | | * macosx/tclMacOSXNotify.c: Reduce the level of ifdeffery in the functions of these files to improve readability. They need to be audited for whether complexity can be removed based on the minimum supported version of OSX, but that requires a real expert.
* | | Code Audit results:dkf2010-03-051-9/+10
| | | | | | | | | | | | | | | | | | | | | | | | * use do { ... } while (0) in macros * avoid shadowing one local variable with another * use clearer 'foo.bar++;' instead of '++foo.bar;' where result not required (i.e., semantically equivalent) * follow Engineering Manual rules on spacing and declarations
* | | * macosx/tclMacOSXBundle.c: Workaround CF memory managment bug indas2009-10-051-11/+18
| | | | | | | | | | | | * unix/tclUnixInit.c: Mac OS X 10.4 & earlier. [Bug 2569449]
* | | workaround llvm LTO bug on ppcdas2009-08-281-1/+2
| | |
* | | * macosx/tclMacOSXNotify.c: fix multiple issues with nested event loopsdas2009-08-241-26/+51
| | | | | | | | | | | | | | | when CoreFoundation notifier is running in embedded mode. (fixes problems in TkAqua Cocoa reported by Youness Alaoui on tcl-mac)
* | | * macosx/tclMacOSXFCmd.c: CONST -> constnijtmans2009-07-221-3/+3
| | | | | | | | | | | | | | | | | | * generic/tclGetDate.y: * generic/tclDate.c: * generic/tclLiteral.c: (char *) cast in ckfree call
* | | * macosx/Tcl-Common.xcconfig: update projects for Xcode 3.1 and 3.2,das2009-06-269-2667/+721
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * macosx/Tcl.xcode/*: standardize on gcc 4.2, remove obsolete * macosx/Tcl.xcodeproj/*: configurations and pre-Xcode project. * macosx/Tcl.pbproj/* (removed): * macosx/README: update project docs, cleanup. * unix/Makefile.in: update dist target for project changes.
* | | update Apple copyright notice for 2009-04-10 changesdas2009-04-144-51/+13
| | |
* | | fix warningdas2009-04-101-1/+3
| | |
* | | * unix/tclUnixChan.c: TclUnixWaitForFile(): use FD_* macrosdas2009-04-101-34/+31
| | | | | | | | | | | | | | | * macosx/tclMacOSXNotify.c: to manipulate select masks (Cassoff). [Bug 1960647]
* | | * macosx/tclMacOSXNotify.c: revise CoreFoundation notifier to allowdas2009-04-101-392/+991
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * unix/tclUnixChan.c: embedding into applications that * unix/tclUnixEvent.c: already have a CFRunLoop running and want to run the tcl event loop via Tcl_ServiceModeHook(TCL_SERVICE_ALL). * macosx/tclMacOSXNotify.c: add CFRunLoop based Tcl_Sleep() and * unix/tclUnixChan.c: TclUnixWaitForFile() implementations * unix/tclUnixEvent.c: and disable select() based ones in CoreFoundation builds. * unix/tclUnixNotify.c: simplify, sync with tclMacOSXNotify.c. * generic/tclInt.decls: add TclMacOSXNotifierAddRunLoopMode() * generic/tclIntPlatDecls.h: internal API, regen. * generic/tclStubInit.c: