summaryrefslogtreecommitdiffstats
path: root/generic/tclThreadTest.c
Commit message (Collapse)AuthorAgeFilesLines
* Use INT2PTR/PTR2INT macro's as appropriatejan.nijtmans2022-04-081-5/+5
|
* Omit -Wdeclaration-after-statement from CFLAGS: No longer needed since we ↵jan.nijtmans2021-01-081-2/+2
| | | | | stopped support for MSVC 6++ Change Tcl_WideInt -> long long in various places: Tcl_WideInt could be a 128-bit type, we don't want that everywhere.
* Undo one change from previous commit: this gives a warning on mingw-w64jan.nijtmans2020-12-171-1/+1
|
* Simplifications when assuming VS 2015 or laterjan.nijtmans2020-12-171-1/+1
|
* Add -finput-charset=UTF-8 and -fextended-identifiers to gcc (and clang). All ↵jan.nijtmans2020-12-081-2/+2
| | | | C sources can now use UTF-8, as far as gcc/clang/msvc support it. Not used yet
* Eliminate many usages of Tcl_NewObj (-> TclNewObj) and Tcl_NewIntObj (-> ↵jan.nijtmans2020-09-171-1/+1
| | | | TclNewIntObj or Tcl_NewWideIntObj)
* Merge 8.6jan.nijtmans2020-09-011-2/+2
|\
* \ Merge 8.6jan.nijtmans2020-08-111-2/+2
|\ \ | |/
| * Eliminate many unnecessary type-casts, mostly (size_t) when value is already ↵jan.nijtmans2020-08-111-2/+2
| | | | | | | | size_t or int
* | TIP 569 - remove lint commentsdgp2020-03-171-5/+0
| |
* | More TCL_UNUSEDdgp2020-03-091-7/+3
| |
* | Mark more unused parametersjan.nijtmans2019-09-031-1/+5
| |
* | Experiment: compile Tcl with C++ compiler. WIPjan.nijtmans2019-07-041-22/+22
| |
* | Add entry for Tcl_StaticPackage in internal stub table, since the public one ↵jan.nijtmans2018-11-151-1/+1
| | | | | | | | | | is deprecated and will be removed in 9.0 Clean-up a lot of type-casts, which are not necessary any more.
* | merge 8.6dgp2018-06-261-9/+8
|\ \ | |/
| * Use a thread exit handler, and not a custom exit proc for package cleanup.dgp2018-06-261-9/+8
| |
* | merge 8.6jan.nijtmans2018-06-251-0/+8
|\ \ | |/
| * Fix function signature of TclThreadTestFinalize.pooryorick2018-06-211-1/+2
| |
| * Add custom exit procedure for tcltests executable.pooryorick2018-06-211-0/+7
| |
* | Simplify usage of TCL_THREAD, along the lines of ↵jan.nijtmans2018-05-221-1/+1
| | | | | | | | [eeddb0693a950be980a66de3811630a00c7bab54|eeddb0693a]. Suggested by DKF
* | TIP #491 implementation: Threading Support: phasing out non-threaded buildsjan.nijtmans2018-05-171-1/+1
| |
* | [89dfecb6b7] Make thread IDs in testing commands consistent.dgp2018-02-221-2/+2
|\ \ | |/
| * [89dfecb6b7] Make thread IDs in testing commands consistent.dgp2018-02-221-2/+2
| |
* | Improve comment on TCL_WIDE_INT_IS_LONG, making it less misleading. jan.nijtmans2017-03-271-1/+1
|\ \ | |/ | | In tclThreadTest.c, allow mainThreadId to be >32 bits.
| * Improve comment on TCL_WIDE_INT_IS_LONG, making it less misleading. jan.nijtmans2017-03-271-1/+1
| | | | | | In tclThreadTest.c, allow mainThreadId to be >32 bits.
| * (cherry-pick): Fix gcc 5.3 warning: In function ‘NRInterpCmd’: ↵jan.nijtmans2016-03-041-2/+2
| | | | | | | | | | | | tclInterp.c:726:5: warning: assuming signed overflow does not occur when assuming that (X + c) < X is always false [-Wstrict-overflow] if ((i + 2) < objc) { Remove some excessive spacing
* | Use portable %p modifier in "generic/tclThreadTest.c", in stead of more ↵jan.nijtmans2017-03-231-1/+1
| | | | | | | | complicated TCL_LL_MODIFIER.
* | Tcl_SetVar -> Tcl_SetVar2 and comparable replacements, eliminating functions ↵jan.nijtmans2016-06-291-3/+3
| | | | | | | | which are deprecated.
* | Fix gcc 5.3 warning: In function ‘NRInterpCmd’: tclInterp.c:726:5: ↵jan.nijtmans2016-03-041-2/+2
|/ | | | | | warning: assuming signed overflow does not occur when assuming that (X + c) < X is always false [-Wstrict-overflow] if ((i + 2) < objc) { Remove some excessive spacing
* Eliminate some usages of Tcl_GlobalEval() and Tcl_Eval(), which are ↵jan.nijtmans2016-01-181-3/+3
| | | | deprecated functions.
* Fix env.test when running mingw-w64 (AMD64 build) test-suite on wine64. jan.nijtmans2013-06-131-9/+9
|\ | | | | Fix some gcc warnings which become visible with -Wextra
| * Fix some gcc warnings which become visible with -Wextrajan.nijtmans2013-06-131-11/+11
| |
* | Another memory leak, and one Tcl_Free -> ckfreejan.nijtmans2013-01-251-0/+1
| |
* | Eliminate some unneeded usages of Tcl_SetResult, Tcl_AddObjErrorInfojan.nijtmans2013-01-251-1/+1
| | | | | | Fix "make test-packages" on cygwin
* | test Tcl_GetErrorLine() forwards/backwards compatibility in pkgb.so as well. jan.nijtmans2013-01-021-1/+0
|\ \ | |/ | | Don't free ctrl.script if thread creation fails: it is a constant string "testthread wait" normally.
| * test Tcl_GetErrorLine() forwards/backwards compatibility in pkgb.so as well. jan.nijtmans2013-01-021-9/+8
| |\ | | | | | | | | | Marked some string subcommands as obsolete, following discussion on tcl-core. Don't free ctrl.script if thread creation fails: it is a constant string "testthread wait" normally.
| | * Don't free ctrl.script if thread creation fails: it is a constant string ↵jan.nijtmans2013-01-021-1/+0
| | | | | | | | | | | | "testthread wait" normally.
* | | For [testthread cancel], avoid creating a new Tcl_Obj when the default ↵Joe Mistachkin2011-11-181-1/+2
| | | | | | | | | | | | script cancellation result is desired.
* | | Revise the thread exit handling of the [testthread] command so that itdgp2011-09-211-3/+9
| | | | | | | | | | | | properly maintains the per-process data structures even when the thread exits for reasons other than the [testthread exit] command.
* | | Adjust ckalloc/ckfree macros to greatly reduce number of explicit casts indkf2011-03-121-9/+9
| | | | | | | | | rest of Tcl source code. No ABI change. API change *should* be harmless.
* | | Now that we're no longer using SCM based on RCS, the RCS Keyword linesdgp2011-03-021-2/+0
|\ \ \ | |/ / | | | cause more harm than good. Purged them (except in zlib files).
| * | 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.
| | * Fix [Bug 1562528]dkf2006-09-221-2/+2
| | |
| | * * tests/compile.test (compile-12.4): Backport test for Bug 1001997.dgp2004-10-261-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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.
* | | fix gcc 64-bit warnings: cast from pointer to integer of different sizenijtmans2010-12-011-11/+11
| | | | | | | | | | | | fix gcc(-4.5.2) warning: 'static' is not at beginning of declaration
* | | #undef STATIC_BUILD in tclWin(Dde|Reg).c, in order to makenijtmans2009-11-231-37/+31
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* | | * generic/tclThreadTest.c (NewTestThread): [Bug 2901803]Kevin B Kenny2009-11-231-2/+2
| | | | | | | | | | | | | | | Further machinations to get NewTestThread actually to launch the thread, not just compile.
* | | [Bug 2901803]: Fix silly error.dkf2009-11-231-14/+16
| | |
* | | Fix [Bug 2883850]: pkgIndex.tcl doesn'tnijtmans2009-11-181-5/+11
| | | | | | | | | | | | get created with static Tcl build