| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
| |
rest of Tcl source code. No ABI change. API change *should* be harmless.
FossilOrigin-Name: 5574bdd262b2672cde48771787370c12854cecf4
|
|\
| |
| |
| |
| | |
cause more harm than good. Purged them (except in zlib files).
FossilOrigin-Name: c64f310d38b977e7ae26a48bcf8bb8c50e453af7
|
| |\
| | |
| | |
| | |
| | | |
more harm than good. Purged them.
FossilOrigin-Name: 79367df0f0e01a96f037f893e889e7cb9b807847
|
| | |
| | |
| | |
| | |
| | | |
more harm than good. Purged them.
FossilOrigin-Name: 90b4acd7bdab65433169a232124967885c18d972
|
| | |
| | |
| | | |
FossilOrigin-Name: 1f72f1dc049e51205cf3f66fd1765a8fe80025c2
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
* tests/timer.test (timer-10.1): Backport test for Bug 1016167.
* tests/tcltest.test (tcltest-12.3,4): Backport setup corrections.
* tests/error.test (error-6.3,4,7,9): Backport of some tests.
* tests/basic.test (basic-49.*):
* tests/namespace.test (namespace-8.7):
* tests/init.test (init-2.8): Updated to not rely on http package.
* generic/tclThreadTest.c (ThreadEventProc): Corrected subtle
bug where the returned (char *) from Tcl_GetStringResult(interp)
continued to be used without copying or refcounting, while
activity on the interp continued.
FossilOrigin-Name: bc0a9e3a5cdbb7a967d8d3d45a035100899ccb72
|
| | |
| | |
| | |
| | |
| | |
| | | |
fix gcc(-4.5.2) warning: 'static' is not at beginning of declaration
FossilOrigin-Name: 10b83db14ed5883178f726096ac9c95ecf489e73
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
sure that Xxxxx_Init is always exported even when Tcl is built
static (otherwise we cannot create a DLL).
tclThreadTest.c: Make all functions static, except TclThread_Init.
fCmd.test Enable fCmd-30.1 when registry is available.
tcl.m4 Fix ${SHLIB_LD_LIBS} definition, fix conflicts
configure.in between static libraries and import library on windows.
configure (regenerated)
Makefile.in Simplifications related to tcl.m4 changes.
FossilOrigin-Name: 0f53c33f6377e38993f5f9cd89f7065e94f002ee
|
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Further machinations to get NewTestThread actually to launch
the thread, not just compile.
FossilOrigin-Name: 61219b1dbeec0bdd2f51ecd2353ea690cfa95713
|
| | |
| | |
| | | |
FossilOrigin-Name: 5d8705006e9cdd6faabd81eb40fd1b2ea2caf1d6
|
| | |
| | |
| | |
| | |
| | |
| | | |
get created with static Tcl build
FossilOrigin-Name: 39268397d9e495cccd1fe6168edc5d0eb62e8db4
|
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
- some internal const decorations
- spacing
FossilOrigin-Name: a45c7b126b9137976cd91960cb3e2ecb5201d222
|
| | |
| | |
| | |
| | |
| | | |
etc.)
FossilOrigin-Name: cd3c38f00ada216d7bc93560d3d70012c2918343
|
| | |
| | |
| | |
| | |
| | |
| | | |
use TclNewLiteralStringObj()
FossilOrigin-Name: 8b27ea6ef2061066796b2dcd78574ef79813b1c6
|
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Tcl_SetResult(......, TCL_VOLATILE), in preparation
for TIP #340
FossilOrigin-Name: a75210e18b94fd3963b38f1cc8beece128651e98
|
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
const tables. No functional
or API change.
FossilOrigin-Name: f03d2e2d83be42035c4aad3b01bbd09f5a967c1b
|
| | |
| | |
| | | |
FossilOrigin-Name: 1e5261316ed076ff5ff69f2a720e8eff30fcf66e
|
|/ /
| |
| | |
FossilOrigin-Name: 505c316922f01840b9fed6a409f5ca5786f5ad7d
|
| |
| |
| | |
FossilOrigin-Name: 9a6f412e815875bef6bb3b0f398664e48f3fd7d9
|
| |
| |
| | |
FossilOrigin-Name: d7327b2b332669015c31924dbaedfa4405b587a3
|
| |
| |
| |
| |
| |
| |
| |
| | |
[kennykb-numerics-branch] Resynchronized with the HEAD; at this
checkpoint [-rkennykb-numerics-branch-20051008], the HEAD and
kennykb-numerics-branch contain identical code.
FossilOrigin-Name: 83fdb360a9aec952bc3ad040afe39106bf9e5ec3
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
{Cut,Splice}Channel for internal use, and created new public
functions for Tcl_{Cut,Splice}Channel which walk the whole stack
of transformations and invoke the necessary thread actions.
Added code to Tcl_(Un)StackChannel to properly invoke the thread
actions when pushing and popping transformations on/from a
channel.
FossilOrigin-Name: fd26ccea747d6aaf886aec2f93cdf42d91135ac5
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
* doc/SetChanErr.3: ** New File **. Documentation of the new
channel API functions.
* generic/tcl.decls: Stub declarations of the new channel API.
* generic/tclDecls.h: Regenerated
* generic/tclStubInit.c:
* tclIORChan.c: ** New File **. Implementation of the reflected
channel.
* generic/tclInt.h: Integration of reflected channel and new error
* generic/tclIO.c: propagation into the generic I/O core.
* generic/tclIOCmd.c:
* generic/tclIO.h:
* library/init.tcl:
* tests/io.test: Extended testsuite.
* tests/ioCmd.test:
* tests/chan.test:
* generic/tclTest.c:
* generic/tclThreadTest.c:
* unix/Makefile.in: Integration into the build machinery.
* win/Makefile.in:
* win/Makefile.vc:
FossilOrigin-Name: d936ddccf8636a3ce65f75ce4732b434bb0a4b73
|
| |
| |
| | |
FossilOrigin-Name: 1cc2336920c70c6b9f7825b88dec87fc223f2c4e
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
* generic/tclInt.h: tclCompile.h to tclInt.h. Should have
been done as part of the 1115904 bug fix on 2005-03-18.
* generic/tclThreadTest.c: Stop providing the phony package
"Thread 1.0" when the [::testthread] command is defined. It's
never used by anything, and conflicts with loading the real
"Thread" package.
FossilOrigin-Name: 81f6285c30fddf7aa4fb916522da67dccab8c5b7
|
|/
|
|
|
|
|
|
|
|
| |
bug where the returned (char *) from Tcl_GetStringResult(interp)
continued to be used without copying or refcounting, while
activity on the interp continued. That's not safe, and recent
changes demonstrated the lack of safety with failing tests
thread-4.3 and thread-4.5.
FossilOrigin-Name: c2f8e0ceb4066a44b025c196bbea315ddb1d87aa
|
|
|
|
|
|
| |
longer needed after the TIP 27 effort.
FossilOrigin-Name: 4bca1d26dbe0eea4e2c7807477efc846faa7ca75
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
| |
* 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
|
|
|
| |
FossilOrigin-Name: 4285daaddf38750874e778cbfeb5241e14b05bd0
|
|
|
|
|
|
|
|
| |
** changes for 8.4, some already backported to 8.3.4 (patch #435658)
see ChangeLog for details
FossilOrigin-Name: 2211e7f47d524b40b088c25aae6fabdd9e704dca
|
|
|
| |
FossilOrigin-Name: 6dcd4ef52968d0d2e8fc707db3b1b7f8f123fe41
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* 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
|
|
|
|
|
|
| |
macros for declaring the NewThread callback proc.
FossilOrigin-Name: 3013a54849797beb3691e2aa78193867fef90af0
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* Overall change: Definition of a public API for the creation of
new threads.
* generic/tclInt.h (line 1802f): Removed the definition of
'TclpThreadCreate'. (line 793f) Removed the definition of
'Tcl_ThreadCreateProc'.
* generic/tcl.h (line 388f): Readded the definition of
'Tcl_ThreadCreateProc'. Added Win32 stuff send in by David
Graveraux <davygrvy@bigfoot.com> to that too (__stdcall,
...). Added macros for the default stacksize and allowed flags.
* generic/tcl.decls (line 1356f): Added definition of
'Tcl_CreateThread', slot 393 of the stub table. Two new
arguments in the public API, for stacksize and flags.
* win/tclWinThrd.c:
* mac/tclMacThrd.c: Renamed TclpThreadCreate to Tcl_CreateThread,
added handling of the stacksize. Flags are currently ignored.
* unix/tclUnixThrd.c: See above, but handles joinable
flag. Ignores the specified stacksize if the macro
HAVE_PTHREAD_ATTR_SETSTACKSIZE is not defined.
* generic/tclThreadTest.c (line 363): See below.
* unix/tclUnixNotfy.c (line 210): Adapted to the changes
above. Uses default stacksize and no flags now.
* unic/tcl.m4 (line 382f): Added a check for
'pthread_attr_setstacksize' to detect platforms not implementing
this feature of pthreads. If it is implemented, configure will
define the macro HAVE_PTHREAD_ATTR_SETSTACKSIZE (See
unix/tclUnixThrd.c too).
* doc/Thread.3: Added Tcl_CreateThread and its arguments to the
list of described functions. Removed stuff about not providing a
public C-API for thread-creation.
FossilOrigin-Name: 51f6c167f66056d7bb0b2490b8ac04ec0d454733
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* Overall change: Definition of public API's for the finalization
of conditions and mutexes. [Bug: 4199].
* generic/tclInt.h: Removed definitions of TclFinalizeMutex and
TclFinalizeCondition.
* generic/tcl.decls: Added declarations of Tcl_MutexFinalize and
Tcl_ConditionFinalize.
* generic/tclThread.c: Renamed TclFinalizeMutex to
Tcl_MutexFinalize. Renamed TclFinalizeCondition to
Tcl_ConditionFinalize.
* generic/tclNotify.c: Changed usage of TclFinalizeMutex to
Tcl_MutexFinalize.
* unix/tclUnixNotfy.c:
* generic/tclThreadTest.c: Changed usages of TclFinalizeCondition to
Tcl_ConditionFinalize.
* generic/tcl.h: Added empty macros for Tcl_MutexFinalize and
Tcl_ConditionFinalize, to be used when the core is compiled
without threads.
* doc/Thread.3: Added description the new API's.
FossilOrigin-Name: 861e460865376cec8a58d5ada51246e862a3ada4
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
values [Bug: 1806]
* generic/tclThreadTest.c: upped a buffer size to hold double
* tests/info.test:
* generic/tclCmdIL.c: fixed 'info procs ::namesp::*' behavior (Dejong)
* generic/tclNamesp.c: made imported commands also import their
compile proc [Bug: 2100]
FossilOrigin-Name: 665ebd74dfb529dd964b2d4cab19c4271a36b284
|
|
|
|
|
|
| |
* generic/tclThreadTest.c: changed thread ids to longs [Bug: 3902]
FossilOrigin-Name: 473262218eb6ca36ad27491f313c7eb07273bbd5
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
making triggerPipe non-blocking
* library/tcltest1.0/tcltest.tcl:
* generic/tclThreadTest.c: fixed mem leaks in threads
* generic/tclResult.c: fixed Tcl_AppendResultVA so it only
iterates once over the va_list (avoiding a memcpy of it,
which is not portable).
* generic/regc_color.c: fixed mem leak and assertion, from HS
* generic/tclCompile.c: removed savedChar trick that appeared to
be causing a segv when the literal table was released
* tests/string.test:
* generic/tclCmdMZ.c: fixed [string index] to return ByteArrayObj
when indexing into one (test case string-5.16) [Bug: 2871]
FossilOrigin-Name: 1a3cca95e40ce5a3da207f356810b264e211a9c1
|
|
|
|
|
|
|
|
| |
win/tclWinSock.c: Fixed hang in WinNT socket driver, now wakes up
the socket thread to check for events that didn't
trigger the WSAEvent.
FossilOrigin-Name: b14f0363ecd8d934bd5a695c50d18bd480009c43
|
|
FossilOrigin-Name: f3b32fb71c9011ac220779bd9dbe5617c9dc87d9
|