| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
static modifier in declaration and definition of function.
* unix/tclUnixChan.c (FileTruncateProc): Synchronized use of
static modifier in declaration and definition of function.
* generic/tclResult.c (ReleaseKeys): Synchronized use of static
modifier in declaration and definition of function.
* generic/tclListObj.c (NewListIntRep): Synchronized use of static
modifier in declaration and definition of function.
* generic/tclEncoding.c (InitializeEncodingSearchPath):
Synchronized use of static modifier in declaration and
definition of function.
* generic/tclEncoding.c (FillEncodingFileMap): Synchronized use of
static modifier in declaration and definition of function.
* generic/tclIORChan.c (RcNewHandle): Synchronized use of static
modifier in declaration and definition of function.
FossilOrigin-Name: 5b652caf778a9ddb208ca2f07ce55c65fc33d061
|
|
|
| |
FossilOrigin-Name: 0c5cea4d810d972d3fc068b559c281718525451f
|
|
|
|
|
|
| |
It's crude (especially in the tests and docs department) and incomplete (no truncation on non-POSIX platforms).
FossilOrigin-Name: 3280056391a69ec28c5ea78944729c2ada97777e
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* generic/tclTest.c:
* generic/tclUtil.c:
* win/tclWin32Dll.c: fixed link error due to direct access by
tclTest.c to the MODULE_SCOPE tclPlatform global: renamed existing
TclWinGetPlatform() accessor to TclGetPlatform() and moved it to
generic code so that it can be used by on all platforms where
MODULE_SCOPE is enforced.
* macosx/tclMacOSXBundle.c:
* 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/Makefile: enable configure caching.
* unix/configure.in: wrap tclConfig.h header in #ifndef _TCLCONFIG so
that it can be included more than once without warnings from gcc4.0
(as happens e.g. when including both tclInt.h and tclPort.h)
* macosx/tclMacOSXBundle.c:
* unix/tclUnixChan.c:
* unix/tclLoadDyld.c:
* unix/tclUnixInit.c: fixed gcc 4.0 warnings.
* unix/configure: autoconf-2.59
* unix/tclConfig.h.in: autoheader-2.59
* generic/tclIntDecls.h:
* generic/tclIntPlatDecls.h:
* generic/tclStubInit.c: make genstubs
FossilOrigin-Name: 7ff2693241fa7879db699d629adeab83f4711017
|
|
|
| |
FossilOrigin-Name: 1cc2336920c70c6b9f7825b88dec87fc223f2c4e
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* doc/Environment.3: public C API to avoid conflict/confusion with
* doc/Eval.3: the std::string of C++.
* doc/ExprLong.3, doc/ExprLongObj.3, doc/GetInt.3, doc/GetOpnFl.3:
* doc/ParseCmd.3, doc/RegExp.3, doc/SetResult.3, doc/StrMatch.3:
* doc/Utf.3, generic/tcl.decls, generic/tclBasic.c, generic/tclEnv.c:
* generic/tclGet.c, generic/tclParse.c, generic/tclParseExpr.c:
* generic/tclRegexp.c, generic/tclResult.c, generic/tclUtf.c:
* generic/tclUtil.c, unix/tclUnixChan.c:
* generic/tclDecls.h: `make genstubs`
FossilOrigin-Name: 83aa957ebe8d942b417ec080d6731e06e930ba73
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* 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:
FossilOrigin-Name: 0162fae7ad3682c467402cc48ddb8a9ee7982424
|
|
|
|
|
|
| |
-ttycontrol on a channel. [Bug 1067708]
FossilOrigin-Name: 3026fd5b76112b4cda23250ecdcd3f43986eefc9
|
|
|
|
|
|
|
| |
DEPRECATED. This code has not been used in over a year now, and
we have no complaints.
FossilOrigin-Name: 885b9e49d8663f2aa09076f693afb9bd55f60277
|
|
|
| |
FossilOrigin-Name: 5baf20fb871ffac27ad354cb4ea220e448d155ad
|
|
|
|
|
|
| |
Also added support for [FRQ 951168] but left that switched off by default.
FossilOrigin-Name: 3c862df4ab341834a0bf1d1cb26934d12ae2e837
|
|
|
|
|
|
|
| |
TtySetOptionProc. Report and Patch provided by Stuart
Cassoff <stwo@users.sf.net>.
FossilOrigin-Name: c3c471c6f5c8b5330ada53971d932c849a34e6a3
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* generic/tclInt.h: Reworked the Tcl header files into a clean
* unix/tclUnixPort.h: hierarchy where tcl.h < tclPort.h < tclInt.h
* win/tclWinInt.h: and every C source file should #include
* win/tclWinPort.h: at most one of those files to satisfy its
declaration needs. tclWinInt.h and tclWinPort.h also better organized
so that tclWinPort.h includes the Windows implementation of
cross-platform declarations, while tclWinInt.h makes declarations that
are available on Windows only.
* generic/tclBinary.c (TCL_NO_MATH): Deleted the generic/tclMath.h
* generic/tclMath.h (removed): header file. The internal Tcl
* macosx/Makefile (PRIVATE_HEADERS): header, tclInt.h, has a
* win/tcl.dsp: #include <math.h> directly,
and file external to Tcl needing libm should do the same.
* win/Makefile.in (WIN_OBJS): Deleted the win/tclWinMtherr.c file.
* win/makefile.bc (TCLOBJS): It's a vestige from matherr() days
* win/makefile.vc (TCLOBJS): gone by.
* win/tcl.dsp:
* win/tclWinMtherr.c (removed):
FossilOrigin-Name: 2e5b18c85c944b46540edfdd6580648e32645e2b
|
|
|
|
|
|
|
| |
* generic/tclStubLib.c: around warnings related to
* unix/tclUnixChan.c: strict aliasing with GCC 3.3.
FossilOrigin-Name: fd479acbdb9ca3a268076d52426e817edc9416f1
|
|
|
| |
FossilOrigin-Name: 0a8ace07cad52f998304e440d59eb53253363353
|
|
|
|
|
|
|
|
|
| |
to 'Tcl_Panic' (the function). The #define
of panic in tcl.h clearly states it is
deprecated in the comments.
[Patch 865264]
FossilOrigin-Name: 524a53e3b36111f085cdb216a27da061773239ae
|
|
|
| |
FossilOrigin-Name: c34a3f8b131fd2830b6b930ab03e2cd53d40f100
|
|
|
|
|
|
|
|
| |
fixing [Bug 813087]. Detection of sockets was off for Mac OS X
which implements pipes as local sockets. The new code ensures
that only IP sockets are detected as such.
FossilOrigin-Name: 5b68e65f6c0be8869159591d9806a3baaa9b4437
|
|
|
|
|
|
|
|
| |
MakeTcpClientChannelMode that takes actual mode flags to avoid
hang on OS X (may be OS X bug, but patch works x-plat).
[Bug #689835] (steffen)
FossilOrigin-Name: 8353e05256afc1ec9557b25ed883000d8e3fc25d
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Invoke TclpCutFileChannel and TclpSpliceFileChannel.
* generic/tclInt.h: Declare TclpCutFileChannel
and TclpSpliceFileChannel.
* unix/tclUnixChan.c (FileCloseProc, TclpOpenFileChannel,
Tcl_MakeFileChannel, TclpCutFileChannel,
TclpSpliceFileChannel): Implement thread load data
cut and splice for file channels. This avoids
an invalid memory ref when compiled with -DDEPRECATED.
* win/tclWinChan.c (FileCloseProc, TclpCutFileChannel,
TclpSpliceFileChannel): Implement thread load data
cut and splice for file channels. This avoids
an invalid memory ref that was showing up in the
thread extension.
FossilOrigin-Name: 40bc638062775760b85fbf7679e73c0e285d1cb0
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
| |
flags field of TcpState ptr to 0.
FossilOrigin-Name: c92bd9a23da39b1ab3495ef26f43c1afc23c2043
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
configure's stdin is not a tty.
* unix/tclUnixPort.h:
* generic/tclIOSock.c: Changed size_t to socklen_t in
socket-related function calls.
* unix/configure.in: Added test and fallback definition
for socklen_t.
* unix/configure: generated.
FossilOrigin-Name: 80c49e7297b81e82f637ec2fca76beb148658fcc
|
|
|
| |
FossilOrigin-Name: 45301e8feb5748c8e31942fdc39c49988db39820
|
|
|
|
|
|
| |
names were really badly chosen. Also prevented a double-#def.
FossilOrigin-Name: 049b4fa9e2b895d0b8b0426cc3ec95483f99fd29
|
|
|
|
|
|
| |
new TIP#72-enabled Tcl. See http://purl.org/tcl/tip/91 for details.
FossilOrigin-Name: b14125cf9e3409cbff0e8719ce96264cf311a363
|
|
|
| |
FossilOrigin-Name: 240fda68166af049eec5135710e9bd34427b9c54
|
|
|
|
|
|
| |
observed to be either signed (Solaris) or unsigned (Linux)...
FossilOrigin-Name: 49996f43a2f402a36e8e303d60c2462dc009e773
|
|
|
|
|
|
|
|
| |
problem introduced by TIP #35. This may not satisfy true serial
channels, but it restores the correct flushing of std* channels on
exit.
FossilOrigin-Name: 8713966f20d11108877421175f48be0cef16011f
|
|
|
|
|
|
|
|
|
|
|
|
| |
"/dev/tty" (by name) and to not handle it as tty / serial
line. This is the controlling terminal and is special. Setting
it into raw mode as is done for other tty's is a bad idea. This
is a hackish fix for expect SGF Bug #520624. The fix has
limitation: Tcl_MakeFileChannel handles tty's specially too, but
is unable to recognize /dev/tty as it only gets a file
descriptor, and no name for it.
FossilOrigin-Name: 018e902b0070e49059b717f34e7b5ef3bc2d26ae
|
|
|
|
|
|
| |
port support. [Patch #438509] (schroedter)
FossilOrigin-Name: 1935c2998fdb256ba7a7351ff05832973d71e9d2
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
| |
by Dale Talcott <daletalcott@users.sourceforge.net>. Avoid to
write nothing into a file as STREAM based implementations will
consider this a EOF (if the file is a pipe). Not done in the
generic layer as this type of writing is actually useful to
check the state of a socket.
FossilOrigin-Name: 6e2600e273de8b16227685852ec889945fbd61f5
|
|
|
| |
FossilOrigin-Name: f28c83d8177682188fa236daceaec9eb7aa8109e
|
|
|
|
|
|
|
|
|
| |
overlooked before. Updated callers.
***POTENTIAL INCOMPATIBILITY***
Includes a source incompatibility in the tablePtr arguments of
the Tcl_GetIndexFromObj* routines.
FossilOrigin-Name: 28b6020550dd9e62f46b824e4c2ba2a6302657f6
|
|
|
|
|
|
| |
according to the guidelines of TIP 27. Updated callers. [Patch 499196]
FossilOrigin-Name: c606fbd2dad0ac555e745eb90871648eef4ce0db
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
| |
This deprecates TclpGetTime in favor of new Tcl_GetTime.
FossilOrigin-Name: ad0e26f63b8c18f13f7c0131933099e11df86010
|
|
|
|
|
|
| |
updated their settings first.
FossilOrigin-Name: 43b94debc0e5be0b6df57b8a38b9b1dcba949203
|
|
|
| |
FossilOrigin-Name: 63ee4e7a09d028fa707389d63a2bdc197a342ce1
|
|
|
|
|
|
| |
A couple of nasty faults/assumptions in unixInit.test are fixed too.
FossilOrigin-Name: 38f90883a6fce563e5f94488f4f262582f8139ce
|
|
|
|
|
|
|
| |
TCL_CHANNEL_VERSION_2 style to avoid compiler warnings. They work
either way, but this avoids compiler warnings (that worries people).
FossilOrigin-Name: af55bc2b2d5b34e57661090cb5f336b8f37058a8
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* Overall changes:
(1) Implementation of joinable threads for all platforms.
(2) Additional API's for channels. Required to allow the
thread extension to move channels between threads.
* generic/tcl.decls (lines 1360f): Added Tcl_JoinThread,
Tcl_IsChannelShared, Tcl_IsChannelRegistered, Tcl_CutChannel,
Tcl_SpliceChannel, Tcl_IsChannelExisting and
Tcl_ClearChannelHandlers (slots 394 to 400).
* generic/tclIO.c: Implemented Tcl_IsChannelRegistered,
Tcl_IsChannelShared, Tcl_CutChannel, Tcl_SpliceChannel,
Tcl_IsChannelExisting and Tcl_ClearChannelHandlers.
Tcl_CutChannel uses code from CloseChannel. Replaced this code
by a call to Tcl_CutChannel. Replaced several code fragments
adding channels to the channel list with calls to
Tcl_SpliceChannel. Removed now unused variables from
CloseChannel and Tcl_UnstackChannel. Tcl_ClearChannelHandlers
uses code from Tcl_Close. Replaced this code by a call to
Tcl_ClearChannelHandlers. Removed now unused variables from
Tcl_Close. Added the subcommands 'cut', 'forgetch', 'splice' and
'isshared' to the test code
(TclTestChannelCmd).
* unix/tclUnixThread.c: Implemented Tcl_JoinThread using the
pthread-functionality.
* win/tclWinThrd.c: Fixed several small typos in comments.
Implemented Tcl_JoinThread using a platform independent
emulation layer (see generic/tclThreadJoin.c below). Added
'joinLock' to serialize Tcl_CreateThread and TclpExitThread to
prevent a race for joinable threads.
* mac/tclMacThrd.c: Implemented Tcl_JoinThread using a platform
independent emulation layer (see generic/tclThreadJoin.c
below). Due to the cooperative nature of threading on this
platform the race mentioned above is not present.
* generic/tclThreadJoin.c: New file. Contains a platform
independent emulation layer helping in the implementation of
joinable threads for the win and mac platforms.
* generic/tclInt.h: Added declarations for TclJoinThread,
TclRememberJoinableThread and TclSignalExitThread. These
procedures define the API of the emulation layer for joinable
threads (see generic/tclThreadJoin.c above).
* win/Makefile.in:
* win/makefile.vc: Added generic/tclTheadJoin.o to the rules.
* mac/: I don't know to which file generic/tclTheadJoin.o has to
be added to so that it compiles. Sorry.
* unix/tclUnixChan.c: #ifdef'd the thread-local list of file
channels as it prevents us from transfering channels. To restore
this we may need an extended interface to drivers in the
future. Target: 9.0. Found while testing the new transfer of
channels. The information in this list for a channel was left
behind and then crashed the system during finalization.
* generic/tclThreadTest.c: Added -joinable flag to 'testthread
create'. Added subcommand 'testthread join'.
* doc/CrtChannel.3: Added documentation for Tcl_IsChannelRegistered,
Tcl_IsChannelShared, Tcl_CutChannel, Tcl_SpliceChannel,
Tcl_IsChannelExisting and Tcl_ClearChannelHandlers.
* doc/Thread.3: Added documentation for Tcl_JoinThread.
* tests/thread.test: Added tests for joining of threads.
FossilOrigin-Name: cdf262856d1872c95cf12baf78d90874dae1b03f
|
|
|
| |
FossilOrigin-Name: 8e5dea52531e71d9738f66897426029786436634
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* generic/tcl.h:
* tools/tcl.wse.in:
* unix/configure.in:
* unix/tcl.spec:
* win/configure.in:
* win/README.binary: bumped version to 8.3.1
* win/tcl.hpj.in: updated copyright date
* generic/tclEnv.c: environment support for Mac OS/X
* unix/tclUnixPort.h: environment support for Mac OS/X
* unix/tclLoadDyld.c: new file for Mac OS/X dl functions
* unix/Makefile.in: added install-strip target; bindir, libdir,
mandir, includedir vars; tclLoadDyld.c target [Bug: 2527]
* unix/tclUnixChan.c (CreateSocket): force a socket back into
blocking mode (default state) after a -async connect succeeds.
[Bug: 4388]
* generic/tclEvent.c (TclInitSubsystems): Moved tclLibraryPath to
thread-local storage to prevent thread-related race condition.
[Bug: 5033]
* unix/tclAppInit.c (main): removed #ifdef TCL_TEST that sets the
library path as it was unnecessary and conflicts with move of
tclLibraryPath to thread-local storage.
FossilOrigin-Name: 2bb0593bdff552c313069e7eaf4fc17d4e269b63
|
|
|
|
|
|
| |
parity on platforms that support it [Bug: 5089]
FossilOrigin-Name: 64dd87f4a7a03359e960cb857660fbcf574a0f76
|
|
|
|
|
|
|
|
|
|
| |
[Bug: 4409].
* unix/tclLoadAout.c:
* unix/tclUnixPipe.c: Added (off_t) type casts in lseek() calls
[Bug: 4410].
FossilOrigin-Name: 30a242b059029eb7c6e354ef874565872499766c
|
|
|
|
|
|
|
|
|
|
| |
OSF1-V* and ULTRIX-4.* when not using gcc. Also added higher min
stack size for OSF1-V* when building with threads. [Bug: 4063]
* unix/tclUnixChan.c (CreateSocketAddress): changed comparison
with -1 to 0xFFFFFFFF, to ensure 32 bit comparison even on 64 bit
systems. [Bug: 3878]
FossilOrigin-Name: 4eda7886fc3ad99a10f0a580e51c6fa1a0f73763
|
|
|
|
|
|
|
|
|
|
| |
systems (UTS) require sys/types.h to be included first [Bug: 4031]
* unix/tclUnixChan.c (CreateSocketAddress): changed comparison
with -1 to 0xFFFFFFFFFFFFFFF, which is the pedantic way to say -1
for both 32 bit and 64 bit systems. [Bug: 3878]
FossilOrigin-Name: 383590b98af9e385b1ea8a9796635b8a72835b26
|
|
|
|
|
|
| |
* unix/aclocal.m4: made it just include tcl.m4
FossilOrigin-Name: dedc005e01f21e50138ad289f7770e9669d88f6c
|