aku
ac9f72ef96
Update to trunk work
2016-03-08 19:12:37 +00:00
dgp
c2480e69a5
[bbc304f61a] Avoid event handling when reflected channel has a watch change half-completed. (First half in 1 thread, second in another). When this is allowed to happen, false alarm errors from [chan postevent] are the result when timing is unlucky. See test iocmd.tf-24.17.bug3522560 .
2016-03-08 15:55:51 +00:00
dgp
056d0d2c78
[bbc304f61a] Avoid event handling when reflected channel has a watch
...
change half-completed. (First half in 1 thread, second in another). When
this is allowed to happen, false alarm errors from [chan postevent] are
the result when timing is unlucky. See test iocmd.tf-24.17.bug3522560 .
2016-03-08 15:50:37 +00:00
jan.nijtmans
4ff3a61b82
Eliminate exess spacings in remaining doc pages
2016-03-08 15:31:06 +00:00
jan.nijtmans
ee67bf676a
configure.in -> configure.ac
2016-03-08 13:44:16 +00:00
jan.nijtmans
c2844d65a8
Fix version number in .project file
2016-03-07 08:37:01 +00:00
jan.nijtmans
e85cf6c3a9
(cherry-pick): Fix gcc 5.3 warning: In function ‘NRInterpCmd’: 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
2016-03-04 13:15:08 +00:00
jan.nijtmans
6964ca96c2
Fix gcc 5.3 warning: In function ‘NRInterpCmd’: 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
2016-03-04 13:13:21 +00:00
dgp
4c3f17ea96
Bump trunk to 8.7a0 to accept new feature development.
2016-03-03 19:45:52 +00:00
dgp
aa1d17b6b4
Open branch for continued 8.6.* patching.
2016-03-03 19:29:13 +00:00
dgp
80c9e6511b
[bbc304f61a] Proposed fix for reflected watch race condition.
2016-03-02 15:29:48 +00:00
jan.nijtmans
a312878e5b
Eliminate exess spacings in many doc pages.
2016-03-02 08:49:12 +00:00
dgp
2ed7c8372b
[80304238ac] Prevent RC cycle in the localVarName objtype.
2016-03-01 16:45:01 +00:00
dgp
5be04ec11e
Extra safety against cycles
2016-03-01 16:42:03 +00:00
dgp
22557045ac
Add test for memleak
2016-03-01 16:40:05 +00:00
dgp
dc43669d30
merge trunk
2016-03-01 16:26:34 +00:00
dgp
b3c0cd4c86
merge release
2016-03-01 13:24:49 +00:00
dgp
b1b31a3289
merge trunk
2016-03-01 01:49:04 +00:00
dgp
106d4730fd
Clean up unfired timer handlers or they cause errors in -singleproc 1 test run.
2016-02-26 16:17:12 +00:00
dgp
14bfb4aa23
[80304238ac] Candidate fix for memleak due to RC cycle.
2016-02-26 15:42:33 +00:00
dgp
bd80c9f645
update changes
2016-02-23 14:02:20 +00:00
dgp
12a6b6de59
merge trunk
2016-02-23 13:59:49 +00:00
jan.nijtmans
7fd882e910
Convert remaining env.test test-cases to tcltest-2 format
2016-02-22 12:39:10 +00:00
jan.nijtmans
3f788ef33b
Fix [9b47029467631832]: testing existence of env(some_thing) destroys traces. With test-case demonstrating the problem.
2016-02-22 11:42:09 +00:00
dgp
bd7229a87d
Bump to TclOO 1.0.4. Update changes file.
2016-02-19 16:44:26 +00:00
jan.nijtmans
c0bf770206
Add test-case which demonstrates the problem. This test-case fails in trunk (but passes in core-8-5-branch, as expected).
2016-02-19 14:42:53 +00:00
dgp
d01a3bf002
Update to tzdata2016a.
2016-02-19 13:37:11 +00:00
jan.nijtmans
07418c9b93
Proposed fix for [9b47029467631832]: testing existence of env(some_thing) destroys traces.
...
Was the comment [http://core.tcl.tk/tcl/artifact/f93c0675115b73ce?ln=554 |here] not correct after all?.
2016-02-19 10:49:57 +00:00
dgp
f09740fae5
merge trunk
2016-02-16 18:20:10 +00:00
dkf
a25ea98e5c
Fix a few more very minor formatting glitches.
2016-02-11 09:31:31 +00:00
dkf
4ae2c37a12
Fix minor formatting glitch
2016-02-11 09:27:00 +00:00
dgp
365c85d20f
merge trunk
2016-02-09 18:08:14 +00:00
dkf
902d8b663f
Tweaking some comments for clarity.
2016-02-05 16:31:00 +00:00
dkf
9a802144f5
Clean up the handling of buffer limit exceeding when flushing a zlib transform.
2016-02-05 14:36:28 +00:00
dgp
7a58b59b2d
[cf74deb33c] Plug memleaks in class teardown.
2016-02-04 21:05:02 +00:00
dkf
47c35ac594
[25842c161] Prevent zero-length compress actions in [zlib] streaming API.
2016-02-03 15:29:04 +00:00
dgp
4c3e91b842
merge trunk
2016-01-29 14:22:31 +00:00
jan.nijtmans
8b001f80e4
Implement TIP #440 : Add engine to tcl_platform Array
2016-01-29 13:35:00 +00:00
jan.nijtmans
0fad32deac
Fix gcc'ism. Not all compilers can substract two void pointers.
2016-01-29 09:46:56 +00:00
dgp
f51482578d
Bump to 8.6.5
2016-01-28 17:33:21 +00:00
aku
cec43d41f1
Ticket [6141c15186]. Prelim fix. Necessary test still to do. Passes the existing tests.
2016-01-28 06:46:39 +00:00
jan.nijtmans
727efcf012
Fix "make test" broken by previous commit
2016-01-24 16:52:56 +00:00
Miguel Sofer
4df5497f65
add a test to insure that callbacks run at the correct C-stack depth while unwinding the NRE stack.
2016-01-23 19:46:58 +00:00
jan.nijtmans
37fed62502
Eliminate useless variable assignment.
2016-01-22 10:38:36 +00:00
jan.nijtmans
c3dccf7196
Improve code 'quality' by fixing some harmless clang/cppcheck warnings. Thanks to Gustaf Neumann. No change in functionality.
2016-01-22 10:27:29 +00:00
jan.nijtmans
3aa54d6d7a
merge-mark
2016-01-21 13:15:51 +00:00
jan.nijtmans
af6bc3e860
Fix compiler warnings (discovered on latest clang/gcc6), suggested by Gustaf Neumann. All harmless, no change of functionality.
2016-01-21 13:11:15 +00:00
Joe Mistachkin
8365a58070
Update comment with TIP number.
2016-01-19 17:48:25 +00:00
dgp
8cd2dd2b45
[593baa032c] Stop segfault in class destruction with active namespace.
2016-01-19 13:08:49 +00:00
dgp
ab508359ae
merge trunk
2016-01-19 13:06:40 +00:00
jan.nijtmans
fe1ab20fb7
One more Tcl_GlobalEval() usage.
2016-01-18 15:00:49 +00:00
jan.nijtmans
e52d82d888
Eliminate some usages of Tcl_GlobalEval() and Tcl_Eval(), which are deprecated functions.
2016-01-18 14:32:41 +00:00
jan.nijtmans
c610c39100
Make function TclDisassembleByteCodeObj() static, since it is only used in a single source file.
2016-01-18 12:19:31 +00:00
dkf
76cf0cf48d
Put the file location information that Tcl has into the disassembled code. Important for tclquadcode.
2016-01-18 10:16:35 +00:00
Joe Mistachkin
b25cb7d39a
Add docs and tests.
2016-01-15 00:39:41 +00:00
Joe Mistachkin
02b32be1a7
Add the tcl_platform(engine) element, TIP to be written.
2016-01-14 23:55:45 +00:00
dgp
3e8ea3960b
merge trunk
2016-01-08 14:48:51 +00:00
jan.nijtmans
d533bb6a26
Fix [f01d74dc8c]: DEFAULT_COPY_BLOCK_SIZE has incorrect value
2016-01-07 11:33:02 +00:00
jan.nijtmans
972aafc741
Fix win32 mingw 32-bit build, bug was introduced by [c397433be321e6d9] (wrong zlib1.dll was copied)
2016-01-06 11:15:20 +00:00
dkf
3c9ec7f76f
Document the Tcl_CancelEval function correctly. It was missing its second argument, making using it correctly impossible, especially from C++.
2016-01-01 17:46:45 +00:00
dgp
be81d9e977
[593baa032c] Additional fix for the mixinSubs list.
2015-12-22 19:50:04 +00:00
dgp
044f0ead3d
[593baa032c] Possible fix (with test) for segfault in superclass teardown.
2015-12-22 18:27:23 +00:00
jan.nijtmans
e39b986e81
Code-cleanup: CONST -> const, don't use macro's like __REG_CONST and types like re_void any more. No change in functionality.
2015-12-21 10:27:19 +00:00
jan.nijtmans
605aff99c9
Remove unused static function definition
2015-12-15 13:19:43 +00:00
jan.nijtmans
6df8a636f8
make some MODULE_SCOPE symbols static
2015-12-15 11:13:32 +00:00
jan.nijtmans
72dd32a3ca
Eliminate AuxDataType table: since this table only contains 4 constant entries, it is overkill to use a hash table for that.
2015-12-15 10:33:09 +00:00
dkf
0b00017862
Issue the correct auxType when compiling [array set].
2015-12-12 11:54:33 +00:00
jan.nijtmans
e3a26ef9f6
Fix [c9eb6b0ac01bb8ef96a616c71426a3db4a279bec|c9eb6b0ac0]: ConvertLocalToUTCUsingC fails the first time if TZ is not set
2015-12-11 10:18:03 +00:00
jan.nijtmans
2e57446fb4
Fix [c9eb6b0ac01bb8ef96a616c71426a3db4a279bec|c9eb6b0ac0]: ConvertLocalToUTCUsingC fails the first time if TZ is not set
2015-12-11 10:13:33 +00:00
jan.nijtmans
456e333da9
Fix 64-bit MSVC build without SDK: If the MSVC version is recent enough, compiling without SDK works fine (provided that the build is configured using "--enable-64bit").
2015-12-02 11:30:36 +00:00
jan.nijtmans
6c1d8b86ca
Fix 64-bit MSVC build without SDK: If the MSVC version is recent enough, compiling without SDK works fine (provided that the build is configured using "--enable-64bit").
2015-12-02 11:02:34 +00:00
dgp
a2b2c6bfc4
[32c5740a4d] Have Tcl_ListObjReplace() try to use realloc() for growing when
...
it can do so.
2015-11-30 18:24:03 +00:00
jan.nijtmans
c7c95d77f8
On cygwin, install libtcl8.6.dll.a in the {prefix}/lib directory. On win32, don't create empty {prefix}/lib/tcl8/8.2 and {prefix}/lib/tcl8/8.3 directories any more during installing.
2015-11-26 12:01:35 +00:00
jan.nijtmans
e6fa255ed5
On cygwin, install libtcl8.5.dll.a in the {prefix}/lib directory.
...
On win32, don't create empty {prefix}/lib/tcl8/8.2 and {prefix}/lib/tcl8/8.3 directories any more during installing.
2015-11-26 11:46:02 +00:00
jan.nijtmans
4dd62bd6ed
Fix comments at the top of the *.decls files, which are not correct any more for a long long time
2015-11-24 15:09:16 +00:00
jan.nijtmans
d06ef17019
Fix comments at the top of the *.decls files, which are not correct any more for a long long time.
2015-11-24 15:05:15 +00:00
jan.nijtmans
99ba912ceb
Make ::tcl::tm::roots work for alpha/beta Tcl releases. (backported from "novem", will be needed anyway for whatever future developments)
2015-11-24 09:00:27 +00:00
jan.nijtmans
9782f13f46
Cherrypick [812a81812ebf89d2416059d45fabd27e45603f5e|812a81812e]: Turn off NRE asserts by default. About a 5% speedup on [clock format].
2015-11-22 21:02:29 +00:00
dkf
e922cb1cd3
[3d96b7076e] Prevent crashes when destroying an object's class inside a method call.
2015-11-21 22:22:49 +00:00
dgp
a166c55da0
Tcl_ListObjReplace() early out when > LIST_MAX attempted.
2015-11-20 16:59:55 +00:00
dgp
7e6cdc9cc4
[3293874] Simplified fix (not backport). Also detect >LIST_MAX early.
2015-11-20 16:58:11 +00:00
dgp
94b81dda49
[40f628e8e3] Tcl_ListObjReplace() callers need to handle TCL_ERROR.
2015-11-20 16:42:57 +00:00
dgp
f4b65459ef
[40f628e8e3] Tcl_ListObjReplace() callers need to handle TCL_ERROR.
2015-11-20 15:47:30 +00:00
oehhar
81ee44ac3b
Spanish translation of example corrected
2015-11-17 17:07:33 +00:00
oehhar
c3e6dcaa67
Spanish translation of example corrected
2015-11-17 17:01:58 +00:00
jan.nijtmans
f89b8b1e2d
Fix --enable-symbols build on Cygwin. Reported by François Vogel
2015-11-16 10:55:42 +00:00
jan.nijtmans
4e12f02a75
Fix --enable-symbols build on Cygwin. Reported by François Vogel
2015-11-16 10:32:40 +00:00
jan.nijtmans
8f1f92264a
Fix [ https://www.sqlite.org/src/info/34eb6911afee09e7 |34eb6911af], taken over from SQLite: Fix uses of ctype functions (ex: isspace()) on signed characters in test programs and in some obscure extensions. No changes to the core.
2015-11-13 08:42:30 +00:00
jan.nijtmans
d85dd92c27
Fix [ https://www.sqlite.org/src/info/34eb6911afee09e7 |34eb6911af], taken over from SQLite: Fix uses of ctype functions (ex: isspace()) on signed characters in test programs and in some obscure extensions. No changes to the core.
2015-11-13 08:40:54 +00:00
max
9965b67d8e
Remove unused calculation of the result set size from TclCreateSocketAddress()
2015-11-11 09:56:41 +00:00
dgp
533f349b01
[261a8a79f0] Integer overflow leads to segfault.
2015-11-10 16:34:04 +00:00
dgp
f3a2810d20
[261a8a79f0] Integer overflow leads to segfault.
2015-11-10 16:31:29 +00:00
dkf
04d1b41522
make genstubs
2015-10-28 21:15:52 +00:00
dkf
a2efc41118
Expose some of the TclBN operations through the internal API, so clients of the bignum code don't need to use tclTomMath.h directly.
2015-10-28 21:15:21 +00:00
venkat
91ec2f6354
Merge tzdata2015g from ietf
2015-10-27 23:16:54 +00:00
venkat
f98d4ff859
Update to tzdata2015g from ietf
2015-10-27 23:16:06 +00:00
jan.nijtmans
58e31795d0
re-generate "configure", both for unix and win
2015-10-25 22:47:39 +00:00
jan.nijtmans
2a20e200df
re-generate "configure", both for unix and win
2015-10-25 22:45:39 +00:00
jan.nijtmans
383da62572
Remove use of HAVE_USLEEP. It isn't use anywhere any more
2015-10-25 19:41:29 +00:00
jan.nijtmans
500fbe92e6
Remove use of HAVE_USLEEP. It isn't use anywhere any more.
2015-10-25 19:39:38 +00:00
dkf
3fc99c04f6
A more lenient test; different platforms are more diverse in their correct output.
2015-10-24 16:02:32 +00:00
dkf
56bf715712
A more lenient test; different platforms are more diverse in their correct output.
2015-10-24 16:01:56 +00:00
jan.nijtmans
422eaa2077
Bring back regexp to what it was in latest release. This is the correct fix for the problem noted by kbk. Thanks! And thanks to dkf for the test-case
2015-10-24 07:43:33 +00:00
jan.nijtmans
e8786f8348
Bring back regexp to wat it was in latest release. This is the correct fix for kbk's attempt.
2015-10-24 07:40:30 +00:00
dkf
d1f3fe0de0
Mend problems with [platform::identify] formatting.
2015-10-23 22:44:31 +00:00
dkf
a29de0a577
combine divergence
2015-10-23 22:39:02 +00:00
dkf
116ec0f471
Ensure that at lease the format of the output of the platform package's commands is consistently parsable.
2015-10-23 22:30:57 +00:00
Kevin B Kenny
4028edd571
Correct bad regexp in platform::identify that causes it to return incorrect results everywhere.
2015-10-23 22:29:23 +00:00
dgp
828abac60a
merge mark
2015-10-23 14:59:38 +00:00
dgp
f5599d7f8d
Backout of failed attempt to fix [32ae34e63a] got checked into wrong branch.
2015-10-23 14:57:56 +00:00
oehhar
b421519004
Make test clock-67.4 time zone independent. Bug [4a0c163d24]
2015-10-23 12:52:19 +00:00
oehhar
c6fd11389a
Change "clock scan/format -format %x -locale current" output on msgcat locale change. Bug [4a0c163d24]
2015-10-23 08:12:53 +00:00
oehhar
a231dcf0ac
New test for clock scan, test numbering corrected
2015-10-23 08:08:09 +00:00
oehhar
c0a4d1371a
Change "clock format -format %x -locale current" output on msgcat locale change [4a0c163d24]
2015-10-21 20:30:49 +00:00
dgp
990b376ae1
[1080042][8f245009b0] Big bundle of regexp engine fixes and improvements contributed from Tom Lane of the postgres project.
2015-10-21 14:10:13 +00:00
dgp
7640d1e898
[1080042][8f245009b0] Big bundle of regexp engine fixes and improvements
...
contributed from Tom Lane of the postgres project.
2015-10-21 13:50:55 +00:00
dgp
cf8194b6a0
Adapted new tests contributed from Tom Lane @postgres.
2015-10-21 13:35:48 +00:00
dgp
1636c5d39a
Adaptation of most of the re-mopup.patch from Tom Lane @ postgress.
...
Still should add the new tests.
2015-10-20 20:21:44 +00:00
dgp
33180e74dd
Adaptation of re-memaccounting.patch from Tom Lane @postgres.
2015-10-20 19:53:03 +00:00
dgp
f51da6d726
Adaptation of re-better-pushpull.patch from Tom Lane @postgres
2015-10-20 19:21:53 +00:00
dgp
6c297ad438
Adaptation of re-better-fixempties.patch from Tom Lane @ postgres.
2015-10-20 18:32:25 +00:00
dgp
1ead60af0b
Adaptation of re-oNsquared.patch from Tom Lane @ postgres.
2015-10-19 19:32:04 +00:00
dgp
d5029136c1
Adaptation of the patch re-fixconstraintloops.patch from
...
http://www.postgresql.org/message-id/19394.1444865029@sss.pgh.pa.us
2015-10-19 17:42:43 +00:00
dkf
c0ab3b7128
[154f0982f2] Document that Tcl_NewObjectInstance() really needs to make a namespace.
2015-10-19 14:07:48 +00:00
jan.nijtmans
ef1cf6b99b
typo in comment. Eliminate unnecessary end-of-line spacing.
2015-10-19 13:52:58 +00:00
jan.nijtmans
44deaab456
Bring back Tcl_MutexLock() to exact implementation in Tcl 8.6.4. For details, see [ba44e415a0]: Use of mutexLock causes problem with reactive event handling in AndroWish
2015-10-18 10:34:30 +00:00
jan.nijtmans
dfb834e395
Bring back Tcl_MutexLock() to exact implementation in Tcl 8.5.18. For details, see [ba44e415a0]: Use of mutexLock causes problem with reactive event handling in AndroWish
2015-10-18 10:31:50 +00:00
jan.nijtmans
463aed9329
Proposed fix for [ba44e415a0]: "Use of mutexLock causes problem with reactive event handling in AndroWish".
...
This basically undoes the retry mechamism in Tcl_MutexLock, introduced in [9f8b7bea53]. Does this retry mechamism hurt more than it helps? Feedback requested.
2015-10-17 07:21:19 +00:00
jan.nijtmans
c6511f8d77
Various build fixes, when using Cygwin shell in combination with native MinGW compiler. Contributed by pooryorick.
2015-10-12 11:29:45 +00:00
jan.nijtmans
8f5f70cbb1
Various build fixes, when using Cygwin shell in combination with native MinGW compiler. Contributed by pooryorick.
2015-10-12 09:57:26 +00:00
jan.nijtmans
e19283c7d5
merge-mark
2015-10-10 12:38:24 +00:00
jan.nijtmans
f0ba2933f2
Fix minor msvc compiler warning in tclWinFile.c
2015-10-10 12:37:34 +00:00
jan.nijtmans
0519b566b8
Make autoconf > 2.59 work warning-free
2015-10-09 14:41:51 +00:00
jan.nijtmans
96ba10aa41
Make autoconf > 2.59 work warning-free
2015-10-09 14:40:28 +00:00
stwo
5767ab9581
Tcl/OpenBSD/Sparc needs -fPIC.
2015-10-09 13:30:49 +00:00
stwo
efecaa64e2
Tcl/OpenBSD/Sparc needs -fPIC.
2015-10-09 13:18:48 +00:00
jan.nijtmans
8d774cfa0b
Decorate Tcl_Exit() and Tcl_SetExitProc()'s argument with TCL_NORETURN as appropriate, as already done with Tcl_Panic() earlier.
...
Fix minor msvc compiler warning in tclWinFile.c
2015-10-08 14:41:46 +00:00
jan.nijtmans
fe2ac816b0
Fix [8587cb648c445f7]: clock default format incorrect
2015-10-07 13:34:17 +00:00
jan.nijtmans
ffeedbcbca
Fix [8587cb648c445f7]: clock default format incorrect
2015-10-07 13:32:29 +00:00
jan.nijtmans
aaa3242a11
Where "interp" is only used for error-reporting, it can be allowed to be NULL. This should fix [5da26d4760]: Tcl_LoadFile() segfaults if "interp" is NULL.
2015-10-07 13:14:27 +00:00
jan.nijtmans
6524bed322
Fix surrogate handling in PrintSourceToObj(), differenciating for TCL_UTF_MAX = 6 (androwish) and TCL_UTF_MAX = 4 (tip-389-impl). No effect when TCL_UTF_MAX = 3.
2015-10-07 08:40:23 +00:00
jan.nijtmans
cfea006a9d
Fix [b42a851475]: file normalize ~user returns wrong directory on Windows
2015-10-06 14:49:23 +00:00
jan.nijtmans
3a680cc449
Fix [b42a851475]: file normalize ~user returns wrong directory on Windows
2015-10-06 14:25:36 +00:00
jan.nijtmans
7c5ea5b5f1
Revise content of generate win/tclConfig.sh: Make sure that all entries use windows paths with forward slashes.
2015-10-06 09:36:34 +00:00
jan.nijtmans
601fa19fab
Revise content of generate win/tclConfig.sh: Make sure that all entries use windows paths with forward slashes.
2015-10-06 09:19:18 +00:00
jan.nijtmans
ecd0d69efb
Double '[' and ']', otherwise re-generating "configure" doesn't give the expected result.
2015-10-06 08:21:15 +00:00
jan.nijtmans
ef310f81a0
Double '[' and ']', otherwise re-generating "configure" doesn't give the expected result.
2015-10-06 08:18:46 +00:00
jan.nijtmans
4c6eb20ea5
Use "cygpath -m" in stead of "cygpath -w", so paths (even windows ones) always have forward slashes. Suggested by pooryorick for [ http://core.tcl.tk/tclconfig/tktview/06f1692bbe29449ac3f2161ebf9dd153d0349845 |TEA], but a good idea anyway
2015-10-05 09:26:29 +00:00
jan.nijtmans
6a0634acc9
Use "cygpath -m" in stead of "cygpath -w", so paths (even windows ones) always have forward slashes. Suggested by pooryorick for [ http://core.tcl.tk/tclconfig/tktview/06f1692bbe29449ac3f2161ebf9dd153d0349845 |TEA], but a good idea anyway
2015-10-05 09:23:12 +00:00
dkf
6e716af3b7
[05489ce335] Constrain broken tests.
2015-10-04 10:58:48 +00:00
jan.nijtmans
db1ca42627
Eliminate unnessessary end-of-line spacing. No functional change.
2015-10-04 10:20:05 +00:00
jan.nijtmans
677ffa1104
Eliminate unnessessary end-of-line spacing. No functional change.
2015-10-04 10:10:58 +00:00
jan.nijtmans
a82b49336a
Fix signed<->unsigned compare gcc compiler warning.
2015-10-01 11:18:41 +00:00
jan.nijtmans
e24d246c87
Eliminate a few gcc compiler warnings, when using -Wwrite-strings (tested with the brand-new gcc 5.2.0)
2015-10-01 11:04:19 +00:00
jan.nijtmans
56a99d9dd9
Mutch simpler solution to [219866c1e9]: In stead of filtering out version information from the string, make sure that ::platform::generic doesn't contain this version information in the first place.
2015-09-30 13:45:54 +00:00
jan.nijtmans
4cabc332b4
Mutch simpler solution to [219866c1e9]: In stead of filtering out version information from the string, make sure that ::platform::generic doesn't contain this version information in the first place.
2015-09-30 13:44:52 +00:00
jan.nijtmans
7d9ccac72d
Fix [738bc50e93]: auto_execok doesn't recognise mklink on windows
2015-09-30 12:59:56 +00:00
jan.nijtmans
3449d223d1
Fix [738bc50e93]: auto_execok doesn't recognise mklink on windows. Remove some unnecessary end-of-line spacing.
2015-09-30 12:57:02 +00:00
jan.nijtmans
0036891363
Don't limit Universal runtime support VisualStudio version 14 only, future versions will probably have it as well.
2015-09-30 11:12:45 +00:00
jan.nijtmans
c6f5daec40
Don't limit Universal runtime support VisualStudio version 14 only, future versions will probably have it as well.
2015-09-30 11:11:33 +00:00
jan.nijtmans
9c536234a9
Fix [b1f19286f0]: for command documentation.
...
Minor addendum to previous commit: Make OS version number available in ::platform::generic for Cygwin
2015-09-30 08:29:57 +00:00
jan.nijtmans
0ad034c3c6
Fix [b1f19286f0]: for command documentation.
...
Minor addendum to previous commit: Make OS version number available in ::platform::generic for Cygwin
2015-09-30 08:25:37 +00:00
jan.nijtmans
e39c8e6b26
Fix [219866c1e9]: platform::identify: regexp doesn't match platform -> platform 1.0.14
2015-09-29 07:48:58 +00:00
jan.nijtmans
829e5981d2
Fix [219866c1e9]: platform::identify: regexp doesn't match platform -> platform 1.0.14
2015-09-29 07:46:08 +00:00
jan.nijtmans
b381dafa84
Align comment. Remove some end-of-line spacing. No functional changes.
2015-09-28 11:13:25 +00:00
jan.nijtmans
bb34bee773
align comment, no functional change
2015-09-28 11:11:00 +00:00
dgp
1f6b04d51b
Backout failed attempt to fix [32ae34e63a].
2015-09-25 16:43:05 +00:00
jan.nijtmans
27989920c5
proposed fix for [219866c1e9]: platform::identify: regexp doesn't match platform
2015-09-25 10:39:39 +00:00
jan.nijtmans
faef5b981f
Fix [5d170b5ca5e12743006d737c79f959f3efabc644|5d170b5ca5]: checkin 9f8b7bea5344f1b0 broke netbsd's thread notifier
2015-09-24 11:06:44 +00:00
jan.nijtmans
92b0e12403
Fix [5d170b5ca5e12743006d737c79f959f3efabc644|5d170b5ca5]: checkin 9f8b7bea5344f1b0 broke netbsd's thread notifier
2015-09-24 10:54:07 +00:00
jan.nijtmans
856c560b71
merge trunk
2015-09-24 10:03:20 +00:00
jan.nijtmans
daa0c940b8
merge-mark (almost, just a few cosmetic changes)
2015-09-24 10:01:36 +00:00
jan.nijtmans
c3eea370e5
Clean-up tclUnixNotfy.c, restructure it the same as "trunk" version. No functional changes. This will make upcoming merging work easier.
2015-09-24 09:55:14 +00:00
dgp
c3805dda91
Update tests to new ReflectWatch() behavior.
2015-09-23 17:29:15 +00:00
dgp
02960a691f
[e0a7b3e5f8] Add missing UpdateInterest call in DoRead().
2015-09-23 17:15:53 +00:00
dgp
c222d15bd1
[e0a7b3e5f8] Add missing UpdateInterest call in DoRead().
2015-09-23 17:07:40 +00:00
dgp
93695198d8
[32ae34e63a] Prevent segfaults and data corruption when CopyData() is called recursively.
...
Mark new test io-53.20 as "knownBug". It demos some unknown flaw in MoveBytes().
2015-09-23 16:58:34 +00:00
dgp
f2a99f6167
merge 8.5
2015-09-23 16:37:06 +00:00
dgp
049bb5ecaa
[32ae34e63a] Prevent segfaults and data corruption when CopyData() is called
...
recursively.
2015-09-23 16:29:38 +00:00
dgp
8d4e35dc59
Update tests to account for changed ReflectWatch behavior.
2015-09-23 16:08:30 +00:00
dgp
9bcf18e010
Protect CopyState buffer from conflicting uses when CopyData() is called
...
recursively. Also, have ReflectWatch() always give driver a chance to act.
2015-09-23 16:00:57 +00:00
dgp
df9835efa1
CopyData() now tolerates recursion enough so that io-53.18 does not segfault.
2015-09-23 13:18:32 +00:00
jan.nijtmans
bac8bd28c0
Merge trunk
2015-09-23 12:19:12 +00:00
jan.nijtmans
4067fb322f
Micro-optimization handling Tcl_Panic(), suggested by D. Richard Hipp.
...
As a side-effect, this is as well a fix for [1446864]: segfaults if Tcl_Panic() returns.
2015-09-23 10:29:00 +00:00
dgp
1d9460e1e6
WIP
2015-09-23 09:40:46 +00:00
Miguel Sofer
001513fa18
micro-opt of hash lookups found by drh
2015-09-22 20:57:58 +00:00
dgp
2b9d31917d
Reboot the bug fix.
2015-09-22 19:12:46 +00:00
dgp
cdf813e288
merge 8.5
2015-09-22 18:24:03 +00:00
jan.nijtmans
9b08e4775f
Decorate Tcl_Panic and Tcl_PanicVA with the noreturn option, alowing further optimizations by the C-compiler.
2015-09-22 15:24:11 +00:00
jan.nijtmans
e014381903
Eliminate compiler warnings for MSVC
2015-09-22 11:32:11 +00:00
dgp
256865fe12
[187d7f499b] Sync the regexp engine to the Postgres version.
2015-09-21 19:25:20 +00:00
dgp
4669ea6d0c
[1115587][0e0e150e49] Major fix for regexp handling of quantified backrefs.
...
Contributed by Tom Lane from the Postgres project.
2015-09-21 19:04:40 +00:00
dgp
87744f43c9
[d7ea9f985][a3c3508599] Internal regexp fixes that cleanup and streamline.
2015-09-21 18:50:23 +00:00
dgp
a6f9ef29ae
[d7ea9f985][a3c3508599] Internal regexp fixes that cleanup and streamline.
2015-09-21 18:22:46 +00:00
dgp
d32ca76ec2
[a3c3508599] Fix typo that reversed test sense in prior fix for [3610026].
2015-09-21 17:29:22 +00:00
dgp
0371108cbf
[d7ea9f9853] Contributed patch from tgl with Postgres.
2015-09-21 17:14:52 +00:00
jan.nijtmans
b29f3e80a5
Fix for [5d170b5ca5] now available for widespread testing (incl. HPUX and OSX)
2015-09-07 08:35:42 +00:00
jan.nijtmans
05956b6b36
Merge trunk.
...
"paranoia" patch for the notifier, making sure that thread local data from invalid threads are never accessed by the forked main thread.
2015-09-05 20:10:27 +00:00
jan.nijtmans
1ee459aa14
Document that multi-threading is on by default since 8.6
2015-09-04 12:23:18 +00:00
jan.nijtmans
9f4810e640
Remove unnecessary end-of-line spacing (preparing for some further documentation updates)
2015-09-04 07:23:25 +00:00
jan.nijtmans
85699b47e7
In StartNotifierThread() don't lock mutex if thread is already started.
...
Fix panic message if thread cannot be started.
Remove asserts used for debugging.
2015-09-03 09:39:43 +00:00
jan.nijtmans
0e03c742fa
nonportable -> nonPortable
2015-09-02 13:19:47 +00:00
jan.nijtmans
4c98b8717b
Fix the Cygwin notifier, doing the initialization of the thread-local variables exactly the same as the Unix notifier.
2015-09-02 11:54:58 +00:00
dgp
2841bb1300
merge 8.5
2015-09-02 11:06:01 +00:00
jan.nijtmans
4792d8fa00
Merge trunk.
...
Gustaf's latest and greatest fix.
2015-09-02 09:02:53 +00:00
jan.nijtmans
d9762826b9
Various Unicode handling enhancements, when building with TCL_UTF_MAX > 3, inspired by androwish. No effect if TCL_UTF_MAX=3 (which is the default)
2015-09-01 18:54:58 +00:00
jan.nijtmans
932409d7aa
Whitespace reduction in Tcl scripts. No functional change.
2015-09-01 15:15:46 +00:00
jan.nijtmans
b13ad88718
Merge trunk.
...
Add Gustaf's latest fix for unit-tests.
2015-08-31 10:41:22 +00:00
jan.nijtmans
cdee0fcd74
Some Unicode encoding fixes, only having effect if TCL_UTF_MAX > 4. Backported from androwish
2015-08-31 10:18:31 +00:00
dkf
b3892c4018
[7703ff1082] Improved wording.
2015-08-30 20:21:46 +00:00
dkf
a3c3dc2581
[7703ff1082] Improved wording.
2015-08-30 20:20:09 +00:00
jan.nijtmans
3d8fa193f4
Completing [00189c4afc]: Allow semi-static UCRT build on Windows with VC 14.0. Now for the configure/makefile build.
2015-08-28 10:57:46 +00:00
jan.nijtmans
6dfc99d7f2
Completing [00189c4afc]: Allow semi-static UCRT build on Windows with VC 14.0. Now for the configure/makefile build.
2015-08-28 10:23:30 +00:00
jan.nijtmans
1439f39555
Fix [7703ff1082]: extra argument ?pattern? of parray is not documented
2015-08-27 14:53:11 +00:00
jan.nijtmans
cc771f1b47
Fix [7703ff1082]: extra argument ?pattern? of parray is not documented
2015-08-27 14:49:06 +00:00
dgp
62addcfa82
merge 8.5
2015-08-27 11:48:03 +00:00
jan.nijtmans
6e58473427
merge trunk
2015-08-25 14:07:11 +00:00
jan.nijtmans
570eb6b10d
Fix [0df7a1ec2674a76a]: unix/tclUnixFile.c: return value of call to TclpGetCwd in TclpFindExecutable is not checked, variable cwd is used uninitialized.
2015-08-25 11:35:01 +00:00
jan.nijtmans
f08cbe00fd
Fix [0df7a1ec2674a76a]: unix/tclUnixFile.c: return value of call to TclpGetCwd in TclpFindExecutable is not checked, variable cwd is used uninitialized.
2015-08-25 11:29:58 +00:00
jan.nijtmans
63ba958fe4
Removed "ucrt" as configureable option: If building with VC2014, it's the recommended way to build Tcl.
2015-08-25 10:01:51 +00:00
jan.nijtmans
2974c8e22c
Removed "ucrt" as configureable option: If building with VC2014, it's the recommended way to build Tcl.
2015-08-25 09:39:16 +00:00
jan.nijtmans
2da34cb738
Eliminate (harmless) compiler warning. No functional change.
2015-08-21 11:21:41 +00:00
jan.nijtmans
9f8346d54f
Eliminate some (harmless) compiler warnings. No functional change.
2015-08-21 10:40:48 +00:00
jan.nijtmans
bd0d616070
Fix [00189c4afcb9e2586301d711f71383e48817a72d|00189c4afc]: Allow semi-static UCRT build on Windows with VC 14.0
2015-08-19 15:25:35 +00:00
jan.nijtmans
5dc66dd0c9
Fix [00189c4afcb9e2586301d711f71383e48817a72d|00189c4afc]: Allow semi-static UCRT build on Windows with VC 14.0
2015-08-19 15:23:25 +00:00
jan.nijtmans
023624c3c9
merge trunk.
...
Remove now unused internal functions.
2015-08-19 11:26:52 +00:00
dkf
da2329ba8b
[465213d171] Documentation correction for Tcl_NewMethod.
2015-08-18 13:27:46 +00:00
dkf
6916d195ce
[2c509f6291] Minor documentation correction from Peter Lewerin.
2015-08-18 12:50:08 +00:00
dkf
c892bc1f1d
[d06b029d9d] next(n) documentation examples correction, from Peter Lewerin.
2015-08-18 12:47:01 +00:00
dkf
2e4ba03817
[7a87a9bc5b] Eliminate invalid write, found by Rolf Ade using Valgrind.
2015-08-18 07:01:41 +00:00
jan.nijtmans
b8a93e8423
remove superfluous fprintf to stderr.
2015-08-17 20:35:15 +00:00
jan.nijtmans
5f6beb1bd2
Merge trunk.
...
More notifier code cleanup.
2015-08-17 19:39:16 +00:00
dkf
341ea00aaa
[818a1a51e4] Apply fixes from Andreas Seltenreich (reported to us by Tom Lane) for handling low memory situations. Should not be reachable in Tcl due to ckalloc() panic policy.
2015-08-17 18:23:20 +00:00
dkf
c6028b1641
[818a1a51e4] Apply fixes from Andreas Seltenreich (reported to us by Tom Lane) for handling low memory situations. Should not be reachable in Tcl due to ckalloc() panic policy.
2015-08-17 18:22:18 +00:00
dkf
cdcc22a92d
Proposed fix for invalid write, found by valgrind.
2015-08-17 18:01:16 +00:00
jan.nijtmans
85469aaecf
Merge trunk.
...
Gustaf's latest Unix Notifier improvements, now fixed to work with Cygwin and single-threaded as well.
2015-08-17 15:21:46 +00:00
dkf
3ad3a0eae3
[e424e31ac7]: Corrected documentation of [regexp -indices] to mention all affected arguments.
2015-08-17 12:35:27 +00:00
dgp
57e43137bd
New test attempting to demo Bug [e0a7b3e5f8]. Doesn't work yet.
2015-08-13 19:28:26 +00:00
dgp
ed005a749a
Disable the filtering of ReflectWatch so that every UpdateInterest() call
...
flows through to become a [driver watch] evaluation. This makes new test
io-53.19 pass.
It also makes a collection of 10 test in ioCmd.test start failing, all of
which are recording detailed reflected channel driver command evaluation.
The now unfiltered [driver watch] change this record without (at least
apparently) changing any behavior. Need review.
2015-08-13 17:02:04 +00:00
dgp
1cc03c884b
A bit of code safety, and then a test demonstrating next issue.
2015-08-13 16:45:03 +00:00
dgp
cababb3290
Adjustments to failing tests to account for changed [chan postevent].
2015-08-12 17:49:42 +00:00
dgp
ec3c0c79fb
New test io-53.18 adapted from demo script in [32ae34e63a]. This test
...
segfaults without changes to source code. This checkin also contains
a revised implementationf of [chan postevent] that stops calling
Tcl_NotifyChannel() directly, and queues an event to do it instead.
This stops the segfault, but causes tests iocmd-31.[67] to fail.
Need advice on whether that matters.
2015-08-12 16:37:28 +00:00
venkat
656a0f78c7
Merge tzdata2015f
2015-08-12 05:07:24 +00:00
venkat
b50f18b840
Upgrade to tzdata2015f from IETF.
2015-08-12 05:06:26 +00:00
dgp
32a9dde838
Add the critical missing UpdateInterest() call at the exit of DoRead().
...
(Compare with same approach in DoReadChars()). This involves removing
some other calls that are now replaced by the new one.
Also marked several UpdateInterest() calls throughout tclIO.c with comments
raising the suspicion that they serve no function.
2015-08-10 19:44:56 +00:00
jan.nijtmans
faa471576e
Fix [6f74ac47278f437a]: No man link to Tcl_UtfNcasecmp() during install on unix
2015-08-06 04:25:50 +00:00
jan.nijtmans
de133cb36a
Fix [6f74ac47278f437a]: No man link to Tcl_UtfNcasecmp() during install on unix
2015-08-06 04:24:44 +00:00
jan.nijtmans
c24688ad4f
Gustaf Neumann's experimental Unix notifier improvements.
2015-08-06 03:43:43 +00:00
Miguel Sofer
d1ab32cd40
remove potential crash detected by Coverity (it is a should-never-happen thing)
2015-08-05 19:30:06 +00:00
Miguel Sofer
70c0fd83e8
mark function return as unused, to avoid confusing Coverity
2015-08-05 14:44:19 +00:00
dkf
ff00a132ab
merge mark
2015-08-03 09:57:12 +00:00
dkf
7e228aa961
Fix problems with break and continue in for-step clauses, triggered by reporting
...
of Coverity CID 1251203. Some of these were originally bugs in Tcl 8.0.
2015-08-03 07:21:29 +00:00
dkf
4e411a89fe
Fix the documentation comment.
2015-08-03 07:18:13 +00:00
dkf
9d7f20adc5
Backport the fixes to handling of continue in for-step clauses.
2015-08-03 07:17:27 +00:00
dkf
93b515b360
And another problem with continue in for-step clauses, this time a problem in how TEBC handled an edge case in the semantics.
2015-08-02 16:17:00 +00:00
dkf
034f00bf1b
Fix more problems with break and continue in for-step clauses.
2015-08-02 12:22:02 +00:00
dkf
29603179f4
Fix Coverity CID 1251203: break vs continue in for-step clause
2015-08-01 19:37:04 +00:00
Miguel Sofer
33a7feeefd
explicitly ignore Tcl_PushCallFrame and TclPushStackFrame return value - it is always TCL_OK. Inconsistency found by coverity (CID 1251197)
2015-08-01 19:00:39 +00:00
Miguel Sofer
f795c9e131
fix off-by-one possible buffer overrun when looking for encodings; found by coverity
2015-07-31 22:05:20 +00:00
Miguel Sofer
743ef38cdc
fix typo found by Coverity; no effect on "most" platforms (is there anyone where it would matter?)
2015-07-31 00:01:52 +00:00
Miguel Sofer
b62b6bd490
remove unnecessary checks found by coverity
2015-07-30 22:56:57 +00:00
Miguel Sofer
90beed4f41
remove self-assignment - found by Coverity
2015-07-30 18:57:30 +00:00
sebres
f4fe4153ee
Fix bug [f00009f7ce]: memory (object) leaks in TclNativeCreateNativeRep for windows platform:
...
missing decrement of refCount, because of confusing differently behavior Tcl_FSGetTranslatedPath vs Tcl_FSGetNormalizedPath.
2015-07-30 18:22:27 +00:00
Miguel Sofer
0b6ed354d1
add comment to flag Tcl_Panic as no-return for Coverity Scan static analyzer
2015-07-30 18:10:39 +00:00
sebres
a6c191c2ea
Fix bug [f00009f7ce]: memory (object) leaks in TclNativeCreateNativeRep for windows platform (erroneous Tcl_IncrRefCount removed)
2015-07-30 13:02:49 +00:00
dgp
7dfee7792b
[3e7eca8c8c] Prevent overflow in size values passed to allocators.
2015-07-29 14:56:20 +00:00
dgp
a16827f77e
[3e7eca8c8c] Prevent overflow in size values passed to allocators.
2015-07-29 14:54:13 +00:00
dgp
e91db44e66
[3e7eca8c8c] Prevent overflow in the size value passed to ckrealloc().
2015-07-29 10:03:46 +00:00
dgp
aa7b8f6ccb
[3e7eca8c8c] Prevent overflow in the size value passed to ckrealloc().
2015-07-29 03:06:30 +00:00
jan.nijtmans
7578a2c2bd
Fix bug [57945b574a6df0332efc4ac96b066f7c347b28f7|57945b574a]: lock in forking process under heavy multithreading. Thanks to Joe Mistachkin for the implementation of the fix, and Gustaf Neumann for the original report and testing the fix.
2015-07-23 17:09:58 +00:00
jan.nijtmans
7d2d8c6e11
Fix bug [57945b574a6df0332efc4ac96b066f7c347b28f7|57945b574a]: lock in forking process under heavy multithreading. Thanks to Joe Mistachkin for the implementation of the fix, and Gustaf Neumann for the original report and testing the fix.
2015-07-23 16:53:42 +00:00
dgp
fff7447683
[a3309d01db] Plug memleak in compiled [unset a($i)].
2015-07-18 05:52:57 +00:00
dgp
d17930c875
Add the missing cleanup bits in INST_UNSET_ARRAY.
2015-07-18 05:27:00 +00:00
dgp
dfd5e62014
merge trunk
2015-07-18 02:39:02 +00:00
dgp
c4bd26e054
Fix failing test
2015-07-18 01:45:06 +00:00
dgp
5bb79143c1
merge trunk
2015-07-17 21:22:22 +00:00
dgp
67b1d52de2
Test for original meaning of [unset -nocomplain --]. FAILS!
2015-07-17 21:17:48 +00:00
dgp
dd3c1d71f7
Test for original meaning of [unset -nocomplain --].
2015-07-17 21:15:26 +00:00
dgp
324a884128
[a3309d01db] Test the demonstrates leak in branch off checkin that starts it.
2015-07-17 19:33:08 +00:00
dgp
90fbc0fe78
[9bad630c31] Prevent read outside of buffer bounds.
2015-07-15 17:59:13 +00:00
dgp
db73017a4a
[9bad630c31] Prevent read outside of buffer bounds.
2015-07-15 17:57:34 +00:00
dgp
1a4e6b5d92
[b1534b438b] Prevent read outside buffer boundaries.
2015-07-15 17:20:19 +00:00
dgp
60a6f1779d
[b1534b438b] Prevent read outside buffer boundaries.
2015-07-15 17:17:03 +00:00
jan.nijtmans
7b49d1632e
Increase some counter sizes related to filesystem epoch from int to size_t. And prevent them ever becoming 0 due to an overflow. (backported with variation from androwish)
2015-07-15 14:47:32 +00:00
jan.nijtmans
a7f9c92001
merge trunk
2015-07-15 11:17:12 +00:00
jan.nijtmans
5500c15d8a
Eliminate the definition of L_tmpnam. It isn't used anywhere within Tcl any more. (backported from androwish)
2015-07-15 08:36:46 +00:00
andy
1b5d2f150d
Spell out [info exists] in example code for [exit] command.
2015-07-14 21:38:05 +00:00
dkf
444cb185b8
Implement TIP 436: Improve TclOO isa Introspection
2015-07-10 12:41:57 +00:00
dkf
22932eb228
Added tests.
2015-07-10 12:40:49 +00:00
oehhar
2ee3ddac8a
Documentation: source ignores BOM for unicode files
2015-07-07 14:20:26 +00:00
oehhar
8037d27915
Documentation: source ignores BOM for unicode files
2015-07-07 14:16:07 +00:00
dgp
4ce2c3e6e7
[a0ece9d6d4] The cmd field of a CmdFrame when non-NULL must point within the
...
string of the corresponding codePtr->source.
2015-07-05 16:52:27 +00:00
dgp
b00e732483
Plug leak of two mp_ints.
2015-07-02 13:46:56 +00:00
dgp
20dafdc09e
Revert refcount changes that were not cosmetic.
...
Changing equality testing to inequality testing does more than make code
prettier or clearer. It makes it less strict, and thus more tolerant of
other bugs elsewhere. Such changes deserve separate consideration at least,
not breezy entry in an otherwise "code cleanup" commit.
2015-07-02 12:54:57 +00:00
dgp
9aa3e85104
Revert some refcount changes on I/O structs.
...
These are refcounts on structs, not Tcl_Obj's. Their scheme doesn't suffer
the same difficulties and histories as Tcl_Obj's, and they need not copy
every detail, appropriate or not, from Tcl_Obj refcount management.
The "significant value" -- as dkf puts it -- for the struct refcounting scheme
is 0 not 1.
2015-07-02 12:29:43 +00:00
jan.nijtmans
fb6b7a8d8d
Remove unnecessary end-of-line spacing in compat/*.c
2015-07-02 12:17:26 +00:00
jan.nijtmans
4cd9155ae9
Another round of refCount consistancy improvements.
2015-07-02 08:17:50 +00:00
Miguel Sofer
0918bf8c7b
remove code that was ifdef'ed out for ages (ENABLE_NS_VARNAME_CACHING), has zero hope of being revived and got out of sync anyway
2015-07-02 03:15:21 +00:00
jan.nijtmans
fec1116ba7
Don't use internalRep.otherValuePtr any more, twoPtrValue.ptr1 is always a better idea.
...
A few more consistancies in refcount management.
2015-07-01 13:12:57 +00:00
dkf
261a4a6282
Say what is meant more clearly, put syntax checks before semantic checks.
2015-07-01 09:58:42 +00:00
dkf
bbb80087ae
Implementation of TIP #436 : Improve TclOO isa Introspection
2015-07-01 09:45:04 +00:00
jan.nijtmans
73484694b5
Consistancy in refcount management.
2015-06-30 21:41:18 +00:00
dkf
6af49e65ad
Correct handling of dictionaries in the background error processing code.
2015-06-30 14:39:56 +00:00
dkf
12cc9a424d
merge head
2015-06-30 14:39:17 +00:00
dkf
f63cfcaea3
Correct handling of dictionaries in the background error processing code.
2015-06-30 14:36:24 +00:00
oehhar
502287c9dd
"mcpackagelocale present" is more elegant
2015-06-30 14:32:12 +00:00
jan.nijtmans
63aa951254
Use twoPtrValue in stead of ptrAndLongRep for implementation of some internal Obj types. On most platforms this doesn't make a difference,
...
as (void *) and (long) generially have the same size. The only exception where it makes a difference is win64, as we can now store 64 bits in this field in stead of only 32 bits, exactly what the processor is optimized for.
2015-06-30 08:10:15 +00:00
oehhar
0698861f80
[TIP 412] msgcat dynamic locale change and package private locale (msgcat 1.6.0)
2015-06-29 21:44:12 +00:00
oehhar
352740916d
Added tests for mcforgetpackage, mcpackagelocale and mcpackageconfig
2015-06-29 21:26:24 +00:00
venkat
987b08480c
Merge tzdata2015e from ietf.org
2015-06-28 01:55:06 +00:00
venkat
b87531a583
Summary: Update to tzdata2015e from ietf.org
2015-06-28 01:54:06 +00:00
oehhar
52f920ba57
Tests for mcexists and mcloadedlocales
2015-06-26 15:16:34 +00:00
oehhar
14476f18e0
Manpage, callback fail calls bgerror, clean catalog on packagelocale unset
2015-06-26 13:41:31 +00:00
jan.nijtmans
2b81ec85d4
revert unintended change of .settings/org.eclipse.core.resources.prefs in previous commit
2015-06-25 08:05:18 +00:00
jan.nijtmans
c56e67115f
Fix bug in "make dist" when system-encoding is UTF-8: eolFix will then translate some windows-specific files to UTF-8 too.
...
Solution: commit those files with CRLF line-ending, which eliminates the need for eolFix altgether.
See als: [495120] for the reason why eolFix was introduced in the first place. No longer needed with fossil.
2015-06-25 08:02:17 +00:00
jan.nijtmans
14f9ede961
Fix bug in "make dist" when system-encoding is UTF-8: eolFix will then translate some windows-specific files to UTF-8 too.
...
Solution: commit those files with CRLF line-ending, which eliminates the need for eolFix altgether.
See als: [495120] for the reason why eolFix was introduced in the first place. No longer needed with fossil.
2015-06-25 07:52:36 +00:00
jan.nijtmans
50ccb92ce7
Tcl_GetStringFromObj(..., NULL) -> Tcl_GetString(...). Use size_t in stead of int for more internal variables.
2015-06-24 14:28:47 +00:00
dgp
d150ddf591
Silence compiler warning.
2015-06-24 13:56:36 +00:00
dgp
3ea3c1f2f9
Make sure that an input lying precisely 1/2 ULP between two floating point values is rounded to even.
2015-06-24 13:55:46 +00:00
jan.nijtmans
71ef3ba082
Registry extension 1.3.0 -> 1.3.1: SendMessageTimeoutA -> SendMessageTimeout, so make sure only win32 UNICODE API is used.
2015-06-23 21:47:41 +00:00
jan.nijtmans
51adf20eaf
Member field which should not have been const, because it is dynamically allocated. Some end-of-line spacing in header files.
2015-06-23 20:32:33 +00:00
jan.nijtmans
fde157fe11
Member field which should not have been CONST, because it is dynamically allocated
2015-06-23 19:58:38 +00:00
jan.nijtmans
c793ae92e4
If the file system changes when "cwd" changes, force a filesystem refresh on path objects. Needed for AndroWish/TclKit (???) in obscure situations, harmless on systems which only have a single native filesystem.
2015-06-23 13:04:09 +00:00
oehhar
2972e0894d
Merge trunk
2015-06-22 12:40:27 +00:00
Kevin B Kenny
9c52f7a98a
Make sure that an input lying precisely 1/2 ULP between two floating point values is rounded to even.
2015-06-20 20:44:17 +00:00
dgp
0985259acd
Remove lines of code made obsolete by earlier changes.
2015-06-19 15:35:14 +00:00
dgp
0132d11834
[a4cb3f06c4] Fix edge case handling in lreplace. Many more tests.
2015-06-18 17:33:52 +00:00
dgp
ad6cba5a8e
From aspect, several edge case coverage tests.
2015-06-18 17:26:59 +00:00
jan.nijtmans
f43007cdd8
Upgrade all internal Unicode tables from Unicode 7.0 to Unicode 8.0
2015-06-18 12:54:30 +00:00
jan.nijtmans
e6c567a325
Upgrade all internal Unicode tables from Unicode 7.0 to Unicode 8.0
2015-06-18 12:24:53 +00:00
Joe Mistachkin
7ba021af61
Rename the new API to TclMutexUnlockAndFinalize as it is not platform-specific.
2015-06-17 20:32:01 +00:00
jan.nijtmans
d4bb7bdf65
Change Tcl_MutexUnlockAndFinalize() to internal function TclpMutexUnlockAndFinalize(). This does not require a TIP, and still should fix the reported bug.
2015-06-16 15:24:51 +00:00
jan.nijtmans
5fc6bbc782
Fix [e770d92d76]: Add support for higher baud rates in Tcl
2015-06-16 08:41:38 +00:00
jan.nijtmans
d948ee6daa
Fix [e770d92d76]: Add support for higher baud rates in Tcl
2015-06-16 07:39:37 +00:00
aspect
e008d75c19
lreplace: more tests, doc improvement
2015-06-16 03:33:22 +00:00
aspect
ea9f9ac81e
fix for a4cb3f06c4fe - bug introduced in 32b61592465
2015-06-16 00:41:39 +00:00
Joe Mistachkin
e99979bfcf
Plug memory leaks in the Tcl_ZlibInflate() error handling code. Fix for ticket [478c446889].
2015-06-11 02:47:41 +00:00
hypnotoad
2d6d821ea4
Patch to add support for higher baud rates under Unix Ticket [e770d92d76]]
2015-06-10 21:53:47 +00:00
Joe Mistachkin
5c4acfb73f
The unit for usleep() is microseconds, not milliseconds.
2015-06-08 20:56:50 +00:00
dgp
4c5f334c06
Stop documentation lie about command rename traces and comment lie about
...
what's done with them in TclOO.
2015-06-08 17:19:09 +00:00
dgp
51bbc67659
Stop telling lie about command delete traces.
2015-06-08 17:17:14 +00:00
Joe Mistachkin
0f3896176d
Merge thread test typo fixes from trunk.
2015-06-05 19:59:59 +00:00
Joe Mistachkin
2e30712093
Fix typo in three thread tests.
2015-06-05 19:58:42 +00:00
Joe Mistachkin
9cfa94b1da
Add stress test.
2015-06-05 19:56:12 +00:00
Joe Mistachkin
810baa10b8
Merge updates from trunk.
2015-06-04 20:49:11 +00:00
dgp
6f63d23863
[268b23df11] Revised patch to create phony source string when the
...
original script does not actually contain the command being invoked.
(Example: the tcl::mathfunc::* command invoked via [expr] interpretation)
2015-06-03 19:08:15 +00:00
dgp
aef7e0d6d9
Put the ellipsis inside, not outside, the close quote.
2015-06-03 17:40:10 +00:00
dgp
94d9bfa884
[268b23df11] When GetSrcInfoForPc() returns NULL, make sure it also sets
...
the length to a non-positive value so nothing tries to read offsets from
a NULL pointer.
2015-06-03 12:26:38 +00:00
oehhar
6f959222be
Make all msgcat tests pass
2015-06-01 15:16:58 +00:00
oehhar
8f43773d55
clock.tcl modified that all clock tests pass
2015-05-31 19:03:56 +00:00
oehhar
b4cd8e5d9c
merge trunk
2015-05-31 16:20:06 +00:00
dgp
15c03f09c9
merge trunk
2015-05-28 12:28:48 +00:00
Joe Mistachkin
7f5f2ddc7f
Make sure the necessary mutexes are in a well-known state across calls to fork().
2015-05-28 00:53:33 +00:00
Joe Mistachkin
d249a8af5d
Fix typo in previous check-in.
2015-05-27 22:34:53 +00:00
Joe Mistachkin
e8d057ad67
Make sure the master and mutex locks are in a well-known state across the fork() call.
2015-05-27 22:29:25 +00:00
andreask
450b7aafd0
Make tweak to the mem-debug tracking official. It is now again possible to use regular packages with a mem-debug core without inciting a panic.
2015-05-27 18:35:46 +00:00
andreask
a0d647ab06
Make tweak to the mem-debug tracking official. It is now again possible to use regular packages with a mem-debug core without inciting a panic.
2015-05-27 18:25:38 +00:00
dkf
8c32ef71da
Added missing marker for incompatibility.
2015-05-26 10:16:24 +00:00
jan.nijtmans
756d989440
Remove useless code, trying to sync win32 environment variables with cygwin's. cygwin1.dll is responsible for doing that. Taken over from cygwin's tcl fork.
2015-05-25 20:23:09 +00:00
jan.nijtmans
d93aaadc5e
Remove useless code, trying to sync win32 environment variables with cygwin's. cygwin1.dll is responsible for doing that. Taken over from cygwin's tcl fork.
2015-05-25 19:15:25 +00:00
Joe Mistachkin
17420ef9f0
Minor compilation issue fix, make sure variable declaration (via macro) is first.
2015-05-22 23:26:29 +00:00
andreask
907aebaab8
Moved Tcl_Obj* objThreadMap release tracking to a location where regular packages will call through, enabling their full tracking by the core, and thus avoiding the "expected to create new entry for object map" panic seen otherwise.
2015-05-22 20:21:48 +00:00
Joe Mistachkin
967856b8f8
Additional mutex locking/unlocking during fork() to keep things synchronized.
2015-05-21 17:58:49 +00:00
dgp
2ce1ce01c5
Missed a bit
2015-05-20 15:15:46 +00:00
dgp
babd0b88a0
[29044ba23f] Remove RANLIB as part of library installation. At best it's
...
redundant to the RANLIB already done as part of library build. At worst, it
conflicts with needs of cross-compiling. Thanks Erik Leunissen.
2015-05-20 15:12:50 +00:00
dgp
0f54d7701d
Don't change autoconf version by accident.
2015-05-20 13:45:33 +00:00
dgp
bd81f35273
merge trunk
2015-05-20 13:37:21 +00:00
dkf
deaa520c80
Simplify code generation for a list of literals. Generates slightly simpler bytecode too.
2015-05-19 20:34:10 +00:00
dkf
acdb6bc384
Tidier version.
2015-05-19 20:29:47 +00:00
dgp
6be68f173f
Don't cause string rep generation in [list <lit> <lit> ... <lit>] bytecode.
...
Candidate for merge to trunk to simplify bytecode.
2015-05-19 19:22:48 +00:00
dkf
0ae5b5b3c1
regenerate configure
2015-05-18 20:41:46 +00:00
Joe Mistachkin
0dd03dfef9
First attempt at implementing the necessary auto-magic for usleep.
2015-05-18 20:33:56 +00:00
Joe Mistachkin
2e3d1fac48
Adjust tweaks from the previous check-in to prepare for configure detection of usleep().
2015-05-18 18:23:29 +00:00
dkf
fdf990faf5
[11250a236d] Made the documentation of non-greediness overrides more obvious.
2015-05-18 08:20:43 +00:00
dkf
58f3361635
[c11a51c482] Stop race condition with -accept config option, and allow overriding of it via -headers option.
2015-05-18 07:51:54 +00:00
Joe Mistachkin
282b159f3b
Temporary tweaks to allow Thread package tests to pass on Unix.
2015-05-17 23:45:53 +00:00
Joe Mistachkin
e403d82b18
This should completely fix the race conditions at the cost of more complexity. Also, on Unix, a more reliable means than Tcl_Sleep() of sleeping for a short time is needed.
2015-05-17 22:13:39 +00:00
Joe Mistachkin
c489e47329
Update header file with the TIP number.
2015-05-17 20:13:59 +00:00
Joe Mistachkin
a32cc9b49b
Fix deadlock.
2015-05-17 20:10:47 +00:00
Joe Mistachkin
e3a528bc44
Merge updates from trunk.
2015-05-17 19:49:44 +00:00
Joe Mistachkin
12d28d084d
Fix typo in the previous check-in.
2015-05-17 19:46:04 +00:00
Joe Mistachkin
fc49271c0a
Draft fix for a potential race condition in the new Tcl_MutexUnlockAndFinalize API. Not yet tested.
2015-05-17 18:03:15 +00:00
dkf
8c1c07d4bf
[ad6696285c] Correction of description of filter behaviour with 'unknown'.
2015-05-17 12:56:06 +00:00
dkf
4240cb00f0
[ad6696285c] Demonstrate that filters are not called for destructors.
2015-05-17 12:06:31 +00:00
Joe Mistachkin
1a30606518
Reword and clarify the doc changes from the previous check-in.
2015-05-16 06:59:27 +00:00
Joe Mistachkin
99cc729bd2
First draft of the necessary doc changes.
2015-05-16 06:49:00 +00:00
dkf
9d64916f18
[0f42ff7871] Remove unintentional difference between interpreted and compiled [next].
2015-05-15 14:40:00 +00:00
dkf
c9e70a3901
[9dd1bd7a74] Ensure that [self] returns a sensible value in a destructor even when construction didn't complete.
2015-05-15 13:54:52 +00:00
dgp
c11a7a6b08
Bump to http 2.8.9
2015-05-14 11:19:27 +00:00
dkf
6135265f5c
[6a71dbe6ec] Ensure that compression errors log correctly.
2015-05-14 08:23:52 +00:00
dkf
1913208e18
[b9d0434667] Prefer the gzip encoding for transfers. It's less efficient, but
...
it is far more interoperable and that's a more important metric.
2015-05-14 08:05:37 +00:00
dgp
73deb43f4f
Added contributed tests from aspect
2015-05-12 15:00:16 +00:00
dgp
205345779a
merge trunk
2015-05-12 14:45:48 +00:00
dgp
92ce12cc43
test portability
2015-04-30 15:31:42 +00:00
dgp
1754a9a311
Test portability.
2015-04-30 15:31:17 +00:00
dgp
91d8b69074
merge mark
2015-04-29 20:35:05 +00:00
dgp
d3e04b3a76
Use joinable threads to avoid thread finalization crashes.
2015-04-29 20:34:26 +00:00
dgp
3b743160f6
[894da183c8] Test and fix for regression in flushing blocked channels.
2015-04-29 18:16:36 +00:00
dgp
09d67aff95
[894da183c8] Test and fix for regression in flushing blocked channels.
2015-04-29 18:00:15 +00:00
dgp
227d96bf13
[894da183c8] Fix and test for bug at the point it was introduced.
2015-04-29 16:34:33 +00:00
venkat
fd9d40cb5b
Merge tzdata2015d from ietf.org
2015-04-29 07:56:01 +00:00
venkat
f108505a5b
Update to tzdata2015d from ietf.org
2015-04-29 07:54:51 +00:00
dgp
90b9288358
[879a0747be] Repair handling of incomplete multi-byte chars at the ends of input buffers. Also properly reset input encoding flags when cycling through a fleeting EOF condition.
2015-04-24 20:17:12 +00:00
dgp
5ecd3fa2b6
[879a0747be] Repair handling of incomplete multi-byte chars at the ends
...
of input buffers. Also properly reset input encoding flags when cycling
through a fleeting EOF condition.
2015-04-24 20:06:27 +00:00
dgp
a46cd743dd
Fix UtfToUtfProc() to remove the potential to read beyond end of input buffer.
2015-04-24 15:48:56 +00:00
dgp
ae445193f4
Fix UtfToUtfProc() to remove the potential to read beyond end of input buffer.
2015-04-24 15:47:58 +00:00
oehhar
459a48dc5c
Open linked folder shared on Windows - Patch [19ea026e43]
2015-04-23 12:17:53 +00:00
oehhar
1590eb50c5
Open linked folder shared on Windows - Patch [19ea026e43]
2015-04-23 11:21:41 +00:00
jan.nijtmans
c3f11e7741
Fix [8065d178229d8d335eee64d36ada37c4dedf2579|8065d17822]: Duplicate -DNDEBUG in compiler command with --disable-symbols
2015-04-20 10:35:20 +00:00
Miguel Sofer
9f710e45a9
bring in dgp's improvements to zippy
2015-04-17 20:52:12 +00:00
dgp
c472223773
Reduce the list walking by keeping lastPtr fields.
2015-04-16 12:27:04 +00:00
dgp
7f030a6b44
Revise the zippy dance that pushes Blocks and Tcl_Objs back the shared pool
...
so that the overal operation remains a FIFO. This help preserve cache locality
where it exists. The price (for now) is a bit more time walking to the end
of free lists. If this is important, the addition of a lastPtr field could
fix it without difficulty.
2015-04-15 19:57:41 +00:00
jan.nijtmans
de7a370d58
Fix [a0a251e4e478977334da51e346cddff8ec3fbf52|a0a251e4e4]: tcl 8.6.4 compilation on windows with msys and VS2013 fails
2015-04-10 09:23:39 +00:00
Joe Mistachkin
63f824a7e9
Add new public Tcl C API to allow a mutex to be unlocked and then finalized atomically. Candidate fix for bug [57945b574a].
2015-04-09 19:53:39 +00:00
dkf
805cd597f9
Don't warn about warnings that are suppressed correctly now.
2015-04-09 09:27:00 +00:00
dkf
1f2fb4cf5b
Squelch otherwise-unavoidable OSX warnings. It's like magic!
2015-04-09 09:20:29 +00:00
Miguel Sofer
3d5869fb4b
improve comments for TclMarkTailcall and friends
2015-04-08 19:08:57 +00:00
dgp
6d6afda39d
Correction suggested by miguel. Passes test suite and fixes bug demos.
2015-04-08 16:42:33 +00:00
dgp
7fc61f369b
Proposed fix.
2015-04-08 14:37:58 +00:00
dkf
c6e6569dfe
Don't fetch values we don't need.
2015-04-04 11:47:53 +00:00
dgp
bc7e4c5d68
There's no need to constrain the declaration of Tcl_GetMemoryInfo().
2015-03-24 18:27:09 +00:00
dgp
cd70770139
Tcl source code already assumes the <limits.h> file is available.
...
(See tcl/libtommath/tommath.h .) So dispose of all the configuration
shenanigans pretending we want to support systems that lack one.
2015-03-24 17:34:05 +00:00
Miguel Sofer
63e0947392
fix comments describing tailcall implementation
2015-03-23 16:05:04 +00:00
Miguel Sofer
4ed03a1f4b
fix comments describing tailcall implementation
2015-03-23 13:46:08 +00:00
Miguel Sofer
ee626d5909
more comments
2015-03-23 13:43:37 +00:00
Miguel Sofer
d4166a6b3a
updated, improved tailcall comments
2015-03-23 02:11:30 +00:00
Miguel Sofer
e325a4742e
branch for ordering and grouping the tailcall related code, and especially clean up the comments
2015-03-23 01:01:30 +00:00
Miguel Sofer
2cc11d4918
completing the fix for bug d87cb182053fd79b3
2015-03-23 00:33:07 +00:00
Miguel Sofer
7dbf5ed0b0
adding a test to reveal a problem with the fix of bug d87cb182053fd79b3
2015-03-21 15:08:35 +00:00
dgp
1292a0d927
[d87cb18205] Let compiled ensembles handle tailcalls properly.
2015-03-21 00:31:29 +00:00
dgp
6003e823bf
Remove STRICT directive from public header. It does approximately nothing,
...
and doesn't belong in generic code.
2015-03-20 19:57:13 +00:00
ashok
50426ba9c5
Ticket [e66e444440]. Modified ReadConsoleBytes to handle Ctrl-C / Ctrl-Break
...
and not return 0 bytes indicating EOF for those cases.
2015-03-19 10:41:28 +00:00
dgp
f399206c21
Upon further review, due the order of #include of headers, we do not have
...
a history of a #define STRICT active when the #include "windows.h" in
tclWinPort.h happens. Don't want to start something new now.
2015-03-13 17:14:16 +00:00
dgp
b2c41c81e4
The STRICT directive influences how #include "windows.h" works.
...
This is not a generic concern. Move it over the tclWinPort.h.
2015-03-13 16:55:39 +00:00
dgp
0e5a1e2642
merge release
2015-03-12 14:47:17 +00:00
dgp
74708147ba
update changes
2015-03-11 12:30:39 +00:00
dgp
b199b80ba8
merge trunk
2015-03-11 12:26:36 +00:00
dgp
226278b0ac
merge mark
2015-03-11 12:25:52 +00:00
Kevin Walzer
2c4d707b8f
Fix or at least improvement for Tcl/Tk Cocoa event loop by forcing Tcl_ServiceAll() event processing: http://core.tcl.tk/tk/tktview/3028676fffffffffffffffffffffffffffffffff
2015-03-10 14:44:47 +00:00
Kevin Walzer
544df0c1b8
Fix or at least improvement for Tcl/Tk Cocoa event loop by forcing Tcl_ServiceAll() event processing: http://core.tcl.tk/tk/tktview/3028676fffffffffffffffffffffffffffffffff
2015-03-10 14:41:03 +00:00
dgp
8c7378b541
.RS/.RE balance
2015-03-06 19:55:38 +00:00
dgp
4f07b18244
make html must tolerate bundled packages using configure.ac over configure.in.
2015-03-06 19:48:31 +00:00
dgp
f396811dd5
product of a make dist
2015-03-06 19:43:42 +00:00
dgp
83f6249875
merge mark
2015-03-06 16:39:07 +00:00
dgp
27503d10cd
merge release
2015-03-06 15:26:03 +00:00
dgp
761a093174
repair nroff breakage
2015-03-06 15:06:02 +00:00
dgp
97739f4d09
repair nroff breakage
2015-03-06 14:59:11 +00:00
dgp
f14d6cb130
products of "make dist"
2015-03-06 14:38:38 +00:00
dgp
07bc28e627
update release date
2015-03-06 14:17:48 +00:00
dgp
4a22756b41
update changes
2015-03-03 21:29:08 +00:00
dgp
94f2309f51
merge trunk
2015-03-02 22:38:09 +00:00
ashok
dfc57be3b1
Deleted Win95/98-specific documentation as those platforms have long been unsupported.
2015-03-02 08:54:14 +00:00
dgp
ec9c80bba9
autoconf-2.59
2015-02-26 16:58:52 +00:00
dgp
7e79080ed7
Bump to 8.6.4.
2015-02-26 16:57:59 +00:00
dgp
75e1a82785
update changes
2015-02-24 15:08:02 +00:00
dgp
434f351abc
merge 8.5
2015-02-20 20:22:17 +00:00
dgp
8104f5f53d
[32b6159246] Accept aspect patch for broken [lreplace] bytecode.
...
No more [lreplace {1 2 3} 2 0] => 1 2 2 3
2015-02-20 20:19:48 +00:00
dgp
b3e2027137
[e08c2c407b] The getHandleProc routine in the Tcl_Channel struct is optional. Update the docs to make that clear.
2015-02-20 19:30:48 +00:00
dgp
28fe834bc3
[e08c2c407b] The getHandleProc routine in the Tcl_Channel struct is
...
optional. Update the docs to make that clear.
2015-02-20 19:29:20 +00:00
bch
2919fd5221
per ticket [e08c2c407b053bbfaab] (and stray code related to [84f208762f172e]) adj code to passing test suite
2015-02-19 22:01:36 +00:00
bch
e4089d79b3
Do not fault! Tcl_Panic()! - improvements to handling Tcl_CreateChannel() args
2015-02-19 19:19:42 +00:00
bch
87e36a4aa9
backout backwards-incompatible experiment that was accidentally committed
2015-02-19 19:16:37 +00:00
bch
6d6598bbcb
sync w/ [trunk]
2015-02-19 18:57:26 +00:00
aspect
bb005f26e4
undo erroneous change in [1fa2e32e07]
2015-02-19 06:29:18 +00:00
aspect
b8674e42d2
handle [lreplace l x y ...] where y<x
2015-02-19 02:42:13 +00:00
aspect
48650316e3
(core ticket [32b6159246]) Fix for [lreplace l x y] where y<x-1
2015-02-19 02:34:43 +00:00
dgp
b1ad5d16a7
merge 8.5
2015-02-12 15:13:32 +00:00
venkat
d90a15ace1
merge tzdata2015a from ietf.org
2015-02-11 23:54:00 +00:00
dkf
fc506f9ca9
Even clearer failure messages.
2015-02-11 15:56:27 +00:00
dgp
48bab372b9
merge mark
2015-02-11 03:43:22 +00:00
venkat
f6b7fa43d6
merge tzdata2015a from ietf.org
2015-02-11 00:19:01 +00:00
bch
4214c7a3a9
inputProc and outputProc tests run conditionally on TCL_READABLE, TCL_WRITABLE mask
2015-02-08 05:04:33 +00:00
bch
02cc7437b2
switch raw assert() to Tcl_Panic() per discussion w/ dkf
2015-02-07 21:19:05 +00:00
bch
9d3e75eb7a
merge [trunk]
2015-02-07 21:12:18 +00:00
dgp
4d7ebbdc94
update changes
2015-02-06 19:56:56 +00:00
dgp
22ce6aeb4b
merge 8.5
2015-02-05 19:24:27 +00:00
dgp
2fabe1cead
Backport of channel mem leak fix that got missed before.
2015-02-05 19:23:35 +00:00
dgp
4b3f548c27
Bump to version 8.5.18.
2015-02-05 18:17:07 +00:00
dgp
3f9555d4c2
Fix [08872796bc]
2015-01-29 18:39:11 +00:00
dgp
8acaf40209
Test for bug [08872796bc].
2015-01-29 18:36:45 +00:00
dgp
8ee4bdf94d
Test for bug [08872796bc].
2015-01-29 18:34:50 +00:00
dgp
579463bcec
Protect against extension variable resolvers that fail to play by the post-Var Reform rules.
2015-01-29 17:48:19 +00:00
dgp
2f36a2d349
Protect against extension variable resolvers that fail to play by
...
the post-Var Reform rules.
2015-01-29 17:37:59 +00:00
jan.nijtmans
6a233e935b
Fix [df08482b042a16007f256bfbaaacfbe0def01074|df08482b04]: Double defined INFINITY in regguts.h
2015-01-26 20:56:01 +00:00
jan.nijtmans
4d5ff6cd13
Fix [df08482b042a16007f256bfbaaacfbe0def01074|df08482b04]: Double defined INFINITY in regguts.h
2015-01-26 20:47:23 +00:00
bch
acad581479
truncateProc *can* be NULL
2015-01-21 00:21:18 +00:00
bch
52d37c087d
assert() on missing definitions for Tcl_ChannelCreate() required struct Tcl_ChannelType{} fields.
2015-01-20 23:40:23 +00:00
dgp
5e6453d592
merge mark
2015-01-02 22:43:45 +00:00
dgp
f16ec6e776
Now that we're using TCL_ENCODING_NO_TERMINATE - be careful about acting on
...
the contents of dst -- they could be leftovers. Only check bytes reported
to have been written and take care to get the assertions right.
2015-01-02 22:42:12 +00:00
dgp
42c1a1e15a
Revert use of the install-headers target. Tcl 8.5 has no such target.
2015-01-02 15:19:23 +00:00
dgp
5cd16427f7
Add two new (undocumented) flags to the Tcl_ExternalToUtf() interface.
...
TCL_ENCODING_NO_TERMINATE rejects the default behavior of appending a
terminating NUL byte to the produced Utf output. This permits use of all
of the dstLen bytes provided, and simplifies the buffer size calculations
demanded from callers. Perhaps some callers need or appreciate this default
behavior, but for Tcl's own main use of encodings - conversions within I/O -
this just gets in the way.
TCL_ENCODING_CHAR_LIMIT lets the caller set a limit on the number of chars
to be output to be enforced by the encoding routines themselves. Without
this, callers have to check after the fact for going beyond limits and
make multiple encoding calls in a trial and error approach.
Full compatibility is supported. No defaults are changed, and the flags
have their effect even if an encoding driver has not been written to support
these flags (but greater efficiency is enjoyed if they do!).
All of Tcl's own encoding drivers are updated to support this. Other encoding
drivers may exist somewhere, but I cannot point to any.
A TIP to document this and make it officially supported may come in time.
2014-12-23 18:39:35 +00:00
dgp
1ddabb17f9
Support TCL_ENCODING_CHAR_LIMIT in TableToUtfProc and EscapeToUtfProc drivers.
2014-12-23 17:53:21 +00:00
dgp
a3babfe12a
Support TCL_ENCODING_CHAR_LIMIT in the Iso88591ToUtfProc driver.
2014-12-23 17:48:36 +00:00
dgp
b6fecacc22
Support TCL_ENCODING_CHAR_LIMIT in the UnicodeToUtfProc driver.
2014-12-23 17:46:05 +00:00
dgp
360b5c41ee
Support TCL_ENCODING_CHAR_LIMIT in the UtfToUtfProc driver.
2014-12-23 17:26:07 +00:00
dgp
5a6443d00e
Support TCL_ENCODING_CHAR_LIMIT in the BinaryProc driver.
2014-12-23 17:13:13 +00:00
dgp
7134cd9399
Use the new TCL_ENCODING_CHAR_LIMIT flag to have the encoding system manage
...
the max chars to read constraint.
2014-12-23 16:57:02 +00:00
dgp
1a92fb378c
merge trunk
2014-12-23 03:11:01 +00:00
dgp
ef6f1ba2c3
Use more suitable variable name pushers.
2014-12-23 02:41:54 +00:00
dgp
b0078c8129
Eliminate TclIsLocalScalar(). No callers left.
2014-12-23 02:12:59 +00:00
dgp
49e7d0262b
Revise CompileEachloopCmd() to use LocalScalar() in place of TclIsLocalScalar().
2014-12-23 01:28:30 +00:00
dgp
2cbec4bf44
Convert the LocalScalar*() macros to rest on TclPushVarName rather than on
...
TclIsLocalScalar().
2014-12-22 20:27:14 +00:00
dgp
7ac39417f1
Use (interp == NULL) argument to TclPushVarName() to signal that no compiling
...
is desired. Only a lookup of an index into the compiled variable table.
2014-12-22 20:13:29 +00:00
dgp
3faf4cc3b8
More complete use of the TCL_NO_ELEMENT flag to suppress useless actions.
2014-12-22 19:57:36 +00:00
dgp
9f699d22a2
merge mark
2014-12-22 17:12:50 +00:00
dgp
13667e8096
One more (interp==NULL) shortcut.
2014-12-22 15:35:47 +00:00
dgp
51f7688e96
merge-mark. The compiler machinery has changed too much for any hope for
...
a successful merge. TclIsLocalScalar() elimination will need to be done
on trunk as an independent effort.
2014-12-19 17:57:04 +00:00
dgp
f6d6b394eb
Revise name and interface of new utility routines to match work already
...
in place on the trunk.
2014-12-19 17:09:32 +00:00
dgp
7e44dabec3
[e711ffb458] Eliminate TclIsLocalScalar() and revise all callers to use
...
more appropriate facilities.
2014-12-19 16:09:20 +00:00
dgp
cfefe7127b
New utility routine GetLocalScalarIndex() reduces common caller boilerplate
...
(and fixes a bug!)
2014-12-19 15:55:21 +00:00
dgp
2613112a13
Use interp==NULL argument to PushVarName to signal that only an index into
...
the CLT is sought, and no time should be wasted compiling other cases which
the caller is just going to discard.
2014-12-19 15:13:11 +00:00
dgp
18131f9c09
With no callers left, TclIsLocalScalar() is removed.
2014-12-19 14:21:42 +00:00
dgp
baf649278a
Replace TclIsLocalScalar() with PushVarNameWord() in [dict for] compiler.
2014-12-19 14:17:03 +00:00
dgp
88ec3c9772
Narrow scope of numVars.
2014-12-19 03:31:09 +00:00
dgp
ad19550909
A bit more tidying...
2014-12-18 22:25:27 +00:00
dgp
aed72bee30
No need for a loopIndex.
2014-12-18 22:13:11 +00:00
dgp
f65cb994d8
No need for varvList any more.
2014-12-18 22:00:08 +00:00
dgp
893c9c7302
Fix up the token array passed to PushVarNameWord. Remove string list parse.
2014-12-18 21:29:07 +00:00
dgp
24817641b1
Replace use of TclIsLocalScalar() and late setting of varIndexes with an
...
earlier setting of varIndexes using PushVarNameWord().
2014-12-18 21:08:53 +00:00
dgp
89e6a65411
Simplify creation and storage of temporaries
2014-12-18 20:38:53 +00:00
dgp
f664d633e6
With that shift, varcList is no longer needed.
2014-12-18 20:34:12 +00:00
dgp
d56e61b246
Shift the allocation of AuxData earlier in the [foreach] compiler.
2014-12-18 19:21:31 +00:00
dgp
8dd58baa04
merge 8.5
2014-12-18 18:16:10 +00:00
dgp
559113cc4c
[7c187a3773] Fix error in managing inStatePtr->inQueueTail value in the
...
byte-moving optimized path of [chan copy]. Thanks to Benno.
2014-12-18 18:06:51 +00:00
dgp
5dafefe112
[af08e89777] Rework finalization to stop encoding-24.2 segfault.
2014-12-18 14:38:26 +00:00
dgp
955507f635
Rework the *FinalizeThread*() routines so that the quick exit preference
...
is respected without need to run afoul of encoding finalizations.
tests pass now. All changes are fully internal.
2014-12-17 20:47:58 +00:00
dgp
e942227f6e
Revise encoding finalization so that it does a more complete job of restoring
...
the pre-initialized state. This makes finalization errors more repeatable
and cross-platform.
2014-12-17 19:57:40 +00:00
oehhar
68b5780dde
changes for TIP427
2014-12-17 11:21:16 +00:00
oehhar
3b7664e77f
Include option -connecting in test iocmd-8.15.1
2014-12-17 08:42:24 +00:00
oehhar
b47b88af9b
TIP-427: make "fconfigure $h -connecting" official (client sockets only)
2014-12-17 08:24:33 +00:00
oehhar
d7a9d63520
Documented "fconfigure $h -connecting" on socket man page
2014-12-17 08:22:23 +00:00
oehhar
f716d8815b
Merge trunk
2014-12-17 07:53:41 +00:00
jan.nijtmans
4e0313afe2
85 -> 86
2014-12-15 10:20:39 +00:00
jan.nijtmans
d9b30b94b8
merge-mark
2014-12-14 12:13:30 +00:00
Kevin Walzer
2f8ea1be7c
Add header install flag to OS X GNUMakefile; thanks to Stephan Houben for patch
2014-12-13 02:50:07 +00:00
Kevin Walzer
59cb45cc16
Add header install flag to OS X GNUMakefile; thanks to Stephan Houben for patch
2014-12-13 02:47:25 +00:00
dgp
ee5c231ff5
Similar conversion of the [dict append] compiler.
2014-12-11 16:00:19 +00:00
dgp
604faa265f
Similar conversion for [dict update] compiler.
2014-12-11 15:45:16 +00:00
dgp
8e80c62f6f
Similar revisions to [dict incr] compiler.
2014-12-11 15:19:38 +00:00
dgp
a417c667a5
Get the word number right, even though it has no effect.
2014-12-11 14:41:09 +00:00
dgp
26326004c6
[e711ffb458] Same conversion for [catch] compiler.
2014-12-11 14:40:02 +00:00
venkat
0318c256ed
merge tzdata2014j from ietf.org
2014-12-10 00:37:24 +00:00
venkat
704532c57a
tzdata2014j from ietf.org
2014-12-10 00:35:37 +00:00
dgp
2d415cbf59
[e711ffb458] Replace TclIsLocalScalar() with PushVarNameWord() in the
...
compiler for [dict set].
2014-12-09 20:45:30 +00:00
dgp
916f1716f3
[e711ffb458] Replace TclIsLocalScalar() (which does the wrong thing).... with
...
PushVarNameWord() (which doesn't) in the compiler for [dict lappend].
2014-12-09 20:29:09 +00:00
jan.nijtmans
d297273a13
Fix some gcc compiler warnings (probably cygwin-only)
2014-12-08 16:10:00 +00:00
jan.nijtmans
b27238fbbb
Fix some gcc compiler warnings (probably cygwin-only)
2014-12-08 16:05:19 +00:00
oehhar
7466351c90
test for bug [c6ed4acfd8]: running async socket connect with other connect established will block tcl as it goes in an infinite loop in vwait
2014-12-07 12:17:24 +00:00
ashok
58bde2cb77
Potential fix for [c6ed4acfd8].
...
Simple typo in original fix for [336441ed59]. Was looping on
statePtr->next instead of statePtr2->next. Would result in
an infinite loop. Definitely a bug but whether it completely
fixes the above in all cases needs to be tested.
2014-12-06 11:19:32 +00:00
dgp
40420634aa
Ever since (Tcl)PushVarName() stopped making a recursive call to Tcl_ParseCommand() (in the pre-8.4.0 timeframe), there's been no need for special protections for brace-quoted varname words. A simple word is a simple word is a simple word.
2014-12-05 21:28:00 +00:00
dgp
b52476a5cd
Ever since (Tcl)PushVarName() stopped making a recursive call to
...
Tcl_ParseCommand() (in the pre-8.4.0 timeframe), there's been no need
for special protections for brace-quoted varname words. A simple word
is a simple word is a simple word.
2014-12-05 21:05:17 +00:00
dgp
bc8ffb3922
[d2ffcca163] Limit parsing results that are documented to accept only ASCII chars to actually follow that constraint. This requires not trusting isalnum(.) and isalpha(.) to deliver portable identical results.
2014-12-05 12:28:01 +00:00
dgp
bfb321eb38
[d2ffcca163] Limit parsing results that are documented to accept only
...
ASCII chars to actually follow that constraint. This requires not trusting
isalnum(.) and isalpha(.) to deliver portable identical results.
2014-12-04 22:10:57 +00:00
dgp
5c1b9fefdf
Limit isalpha(.) calls in the expr parser to only apply to known ASCII
...
arguments to make the results portable.
2014-12-04 21:29:18 +00:00
dgp
6d936db4a3
The isalpha(.) calls remaining in the expr parser still bring nonportability.
...
Commit a test that demonstrates that.
2014-12-04 20:45:11 +00:00
dgp
dd4c175c81
Stop using isalnum(.). Its results are not portable. Replace with our
...
own private routine TclIsBareword() that does exactly what we want.
2014-12-04 18:26:31 +00:00
dgp
29b10229de
merge 8.5
2014-12-04 13:02:43 +00:00
dgp
bff00baca2
And then another merge mark to finish.
2014-12-03 23:55:39 +00:00
dgp
7dfd9c5a96
Now make the patch by hand that fossil could not merge.
2014-12-03 23:54:16 +00:00
dgp
05971adca4
Just a merge mark since fossil cannot do it right.
2014-12-03 23:51:36 +00:00
dgp
2f3edeea43
[0c043a175] backport fix from trunk.
2014-12-03 23:46:51 +00:00
Miguel Sofer
0c0be35710
missing unset in new test
2014-12-03 23:34:36 +00:00
Miguel Sofer
137e142be2
fix var($) problem, bug [0c043a175] (thx dgp)
2014-12-03 23:27:45 +00:00
Miguel Sofer
8694763c10
test and fix (thx dgp)
2014-12-03 23:17:16 +00:00
dkf
58cd08bb7d
[0dca3bfa8f] Strengthen validity checks on fast-path string comparison.
2014-12-03 23:05:15 +00:00
Miguel Sofer
730a9a132c
adding a test for the bug
2014-12-03 13:22:53 +00:00
andreask
d7cf041bab
Fix missing export of the "NewForeachInfoType" AuxData structure for tbcload/tclcompiler packages.
2014-12-01 20:17:04 +00:00
dgp
03f0d60f88
Same issue in expr parser also tested and fixed.
2014-11-26 17:00:55 +00:00
dgp
92402afe21
I like this patch better. Retain the byte orientation of the parser.
2014-11-26 16:22:40 +00:00
dgp
d9465a5be2
One way to fix the parser of $-substitution accepting non-ASCII varnames.
2014-11-25 21:24:06 +00:00
dgp
52bcb866e5
merge trunk
2014-11-24 03:11:23 +00:00
dgp
7f5ddf43ee
[e087812465] Trim back operatorStrings array to just the entries that are needed. Trims away the part of the array that was out of sync with the opcodes.
2014-11-24 03:08:50 +00:00
dgp
484de8b987
[e087812465] Trim back operatorStrings array to just the entries that are
...
needed. Trims away the part of the array that was out of sync with the opcodes.
2014-11-24 03:00:03 +00:00
jan.nijtmans
2b3e403550
Fix [743338466549f09e3956d8a86e6f9a8030f227cb|7433384665]: socket error encoding bug.
2014-11-21 13:05:31 +00:00
dgp
fa8d5668aa
merge trunk
2014-11-17 13:00:42 +00:00
dgp
24d57ad4ff
Add to Tcl_ExternalToUtf() a capability to impose a limit on the number
...
of chars produce in the encoding result. When the flag
TCL_ENCODING_CHAR_LIMIT is set and dstCharsPtr is not NULL, then the
initial value of *dstCharsPtr is taken as the max number of chars to produce.
The limit is imposed in a way that does not require the assistance of the
encoding's driver procs, but the flag is passed on to them in case they
can do better when they know they should. No callers updated yet.
No drivers updated yet.
One difficulty is that this necessarily imposes a pre-translation limit,
and the I/O system has a history of wanting to impose only a post-translation
limit.
2014-11-15 21:46:19 +00:00
dgp
3185389da2
With no padding needed for a terminating NUL, there no need for a distinction
...
between the dstNeeded and dstLimit values.
2014-11-15 21:13:52 +00:00
dgp
164250cf86
Tcl_ExternalToUtf appends a terminating NUL to its encoded results.
...
Perhaps this is a welcome convenience for some callers, but not for Tcl's
I/O system, which has no need for that. Added a new flag value
TCL_ENCODING_NO_TERMINATE that callers can use to suppress this behavior.
This means buffers don't require so much padding, and a tiny bit of processing
is saved. Update I/O callers to use the feature.
2014-11-15 21:08:57 +00:00
jan.nijtmans
9c2149012b
Remove a number of eol-spaces. No change in functionality.
2014-11-14 09:44:34 +00:00
jan.nijtmans
6e056b1e14
Simplify NativeIsComPort() implementation: native paths never end in ':', and never use forward slashes (any more), so no need to check for that.
2014-11-13 16:08:47 +00:00
jan.nijtmans
99ee3e86d7
Improve documentation on the use of com ports (remove references to Windows 95, deprecate the use of postfix ':').
...
Allow lpt[5-9] just as com[5-9], and make sure that path normalization works as expected for ports > 4.
2014-11-13 12:52:29 +00:00
jan.nijtmans
3bbc2317b3
Improve documentation on the use of com ports (remove references to Windows 95, deprecate the use of postfix ':').
...
Allow lpt[5-9] just as com[5-9], and make sure that path normalization works as expected for ports > 4.
2014-11-13 12:29:04 +00:00
dgp
7d10d699c7
merge release
2014-11-12 04:35:37 +00:00
dgp
620cf6fa02
Likely fix for channel mem leaks.
2014-11-11 22:23:57 +00:00
dkf
98e4ac55d2
[214cc0eb22] Add tests to make sure that this bug stays fixed.
2014-11-08 07:06:52 +00:00
dgp
eb64ed3cf0
Correct -singleproc 1 testing flaws.
2014-11-07 17:48:31 +00:00
dgp
5e0d1d6bc5
update changes; more test suite polishing.
2014-11-07 14:10:23 +00:00
dgp
7565b9ff1e
Make sure all uses of the [testbytestring] command are constrained.
2014-11-07 13:59:27 +00:00
andreask
10dc783c93
Merged latest trunk work (especially changes to eof handling) into the RC.
2014-11-06 18:38:36 +00:00
dgp
0c027bb706
cleanup global namespace litter
2014-11-06 17:34:40 +00:00
dgp
c658976cc3
[5adc350683] Stop Tcl forcing EOF condition on channels to be permanent. It may be fleeting, and all parts of Tcl channel ecosystem have to deal with that. New assertions and tests to keep us on track.
2014-11-06 16:34:03 +00:00
dgp
1db5ff8c2c
[5adc350683] Stop Tcl forcing EOF condition on channels to be permanent.
...
It may be fleeting, and all parts of Tcl channel ecosystem have to deal
with that. New assertions and tests to keep us on track.
2014-11-06 16:24:02 +00:00
dgp
fbba7d0b1e
merge iogt fixes.
2014-11-06 16:20:44 +00:00
dgp
559b8ab9de
Also test transfroms that delay.
2014-11-06 16:12:26 +00:00
dgp
60ef43cb8c
fix failing test
2014-11-06 15:49:30 +00:00
dgp
5c6717b7d5
New test iogt-7.0 demos bug in [testchannel transform].
2014-11-06 15:06:52 +00:00
dgp
2f8dae1cec
Another test checking that handling when transform returns nothing is right.
2014-11-06 14:52:36 +00:00
dgp
dac552ac0b
New tests iortrans-4.11* demonstrate what was wrong with the "leaky EOF flag"
...
approach in 8.6.1 and earlier. If each level of the channel stack is to have
control over its EOF independently, we have to provide for that, even though
the Filesystem read APIs make it a big pain. Also test robustness against
varing buffer sizes.
2014-11-06 13:38:01 +00:00
dgp
53ae611583
Reflected Transform channel fix. Be sure each EOF on the base channel gets
...
passed up to become an eof of the transform before continuing on to additional
ReadRaw() from the base channel. This way we don't miss fleeting EOFs.
2014-11-05 20:34:03 +00:00
dgp
57de194b09
New test iortrans-4.10 to demo failure of channel transformation to handle
...
fleeting EOF in the base channel. Falls into infinite block. Regression
compared with Tcl 8.6.1.
2014-11-05 16:47:00 +00:00
dgp
5204910c12
merge trunk
2014-11-05 16:39:16 +00:00
dgp
71d27bd9c6
[214cc0eb22] Restore [lappend $var] return value to the 8.6.1- behavior.
...
If this is going to change, lets not do it by accident.
2014-11-05 06:36:07 +00:00
dgp
3fa4ffc77a
Make sure reflected channels do not make a double call to Tcl_ReadRaw(),
...
with the unwarranted assumption that EOF is a permanent condition.
2014-11-03 21:37:37 +00:00
dgp
d2b69b306e
Same patch re-enabling read after EOF, but here applied to 8.6.
...
Likely additional changes needed in the other channel transforms new in 8.6.
2014-11-03 21:04:24 +00:00
dgp
db9946ccc3
merge 8.5
2014-11-03 20:54:12 +00:00
dgp
cb0895755d
[5adc350683] Reworked the management of the EOF states to re-enable the
...
ability to read beyond EOF. Plenty of assert()s to keep thing from going
off track again.
2014-11-03 20:39:25 +00:00
jan.nijtmans
b14c2f49d2
Add test-case for previous commit, which shows that when trying to open a filename with invalid characters gives the right error-message. (same bug existed on UNIX too, which is now fixed)
2014-11-03 12:54:25 +00:00
jan.nijtmans
48ab03f3cd
Add test-case for previous commit, which shows that when trying to open a filename with invalid characters gives the right error-message. (same bug existed on UNIX too, which is now fixed)
2014-11-03 12:44:55 +00:00
jan.nijtmans
de82a1a99e
Better errormessage when file path contains invalid characters.
2014-11-03 10:23:06 +00:00
jan.nijtmans
7ec17e20d3
Better errormessage when file path contains invalid characters. See: [03414f517b7a74].
2014-11-03 10:14:48 +00:00
dgp
d95273cf0e
Disable assertion until tls bug it detects is fixed.
2014-11-01 14:52:55 +00:00
jan.nijtmans
f87735c127
Extend WinIsReserved() to recognize COM[5-9]: as valid com ports as well. Prevent possible buffer-overflow if COM name ends with ':'.
2014-10-31 11:14:24 +00:00
jan.nijtmans
1e769e4b57
Extend WinIsReserved() to recognize COM[5-9]: as valid com ports as well.
2014-10-31 10:57:25 +00:00
jan.nijtmans
a8dc863399
When translating a reserved devicename to native pathname, strip ':' postfix. Possible fix for [dcc03414f5], but anyway a good idea.
2014-10-31 10:20:03 +00:00
jan.nijtmans
476a68cbe5
When translating a reserved devicename to native pathname, strip ':' postfix. Possible fix for [dcc03414f5], but anyway a good idea.
2014-10-31 09:59:36 +00:00
dgp
54d2883694
Base test for [5adc350683].
2014-10-29 14:54:11 +00:00
dgp
5a9b116846
merge 8.5
2014-10-29 13:49:46 +00:00
dgp
df4391e23f
Work in progress restoring ability to [read] after [eof] and get non-empty
...
strings back in those cases where the channel has them to offer. Also
working through all the implications of this possibility on Tcl's more
exotic channel features, like stacking.
2014-10-28 20:10:32 +00:00
dgp
717a98747d
merge trunk
2014-10-28 13:06:56 +00:00
jan.nijtmans
915359ddce
Support for Windows 10
2014-10-26 07:53:23 +00:00
jan.nijtmans
999c88ea06
Support for Windows 10
2014-10-26 07:51:22 +00:00
dgp
790fed46bb
merge mark
2014-10-24 20:10:39 +00:00
dgp
da01ebeabe
merge release
2014-10-24 20:07:52 +00:00
dgp
91d5ac9d0b
by request
2014-10-22 14:46:33 +00:00
dgp
adff5bc1c6
merge trunk
2014-10-18 22:43:06 +00:00
dgp
eee56ee95a
update changes
2014-10-18 20:11:36 +00:00
dgp
9cf7e2a336
merge 8.5
2014-10-18 20:06:02 +00:00
dgp
93082a74a2
[10dc6daa37] New fix for [gets] on non-blocking channel. This time properly accounts for the effects of ENCODING_LINESIZE.
2014-10-18 20:03:08 +00:00
dgp
9f2c3815f7
[10dc6daa37] New fix for [gets] on non-blocking channel. This time
...
properly accounts for the effects of ENCODING_LINESIZE.
2014-10-18 19:50:19 +00:00
dgp
592ab670f3
[10dc6daa37] [gets] on a non-blocking channel must take care so that
...
1) At least one call to the channel driver input proc gets made.
Failure to do this locks up the channel - catastrophic FAIL.
2) After any driver call reports BLOCKED, don't call again.
This is less serious, but FAILs to respect the non-blocking setting.
Code corrections and tests included, to restore 8.5.15 compat.
2014-10-17 15:20:34 +00:00
oehhar
c0e8db49d5
fconfigure -peername and -sockname return empty string while async connect running.
2014-10-17 12:52:15 +00:00
oehhar
d7604e5728
New tests: 14.16: -peername empty while async connect running, 14.17: -sockname
2014-10-17 12:28:55 +00:00
oehhar
8e5b3b87a5
Merge trunk
2014-10-17 10:00:39 +00:00
dgp
d31d858702
Bump to Tcl 8.6.3, TclOO 1.0.3, and update changes file.
2014-10-14 18:12:36 +00:00
dgp
1234267c92
missed a bump
2014-10-13 17:34:12 +00:00
dgp
59491ce8ca
update changes file
2014-10-13 17:15:55 +00:00
dgp
ef89704696
Resolve test conflicts over global vars
2014-10-10 20:37:58 +00:00
dgp
1ce240e90f
Bump to 8.5.17
2014-10-10 20:17:12 +00:00
dgp
c132978e4b
merge mark
2014-10-10 20:02:40 +00:00
dgp
59f2031ac5
backport those tests that can be
2014-10-10 20:02:00 +00:00
dgp
f85490f4e1
[bf7135428c] Restore the Tcl_Write() return value logic.
2014-10-10 19:56:06 +00:00
dgp
c2be2a28e0
[bf7135428c] Restore the Tcl_Write() return value logic.
2014-10-10 19:54:19 +00:00
dgp
4977df535f
[ed29c4da21] Completed fix for [chan copy] handling [chan blocked].
2014-10-10 19:44:54 +00:00
ferrieux
182bace1e3
Add Colin's test for coro floor above street level [Bug #3008307 ]
2014-10-10 19:36:17 +00:00
dgp
1f33c7ae12
Another test so both DoRead and MBRead are covered.
2014-10-10 19:02:37 +00:00
dgp
78c2c1cedf
[ed29c4da21] Merge patch from 8.5, still not a complete fix.
2014-10-10 18:28:31 +00:00
dgp
186ecf8003
[ed29c4da21] Don't let BLOCKED state get converted into a channel error.
2014-10-10 18:24:32 +00:00
dgp
56c0b11912
New test io-53.15 for [ed29c4da21].
2014-10-10 16:13:53 +00:00
dgp
1df1505d69
New test io-53.15 for [ed29c4da21].
2014-10-10 15:38:15 +00:00
dgp
1a08ae6fb4
[2039178] Remove false claims about TCL_INTERP_DESTROYED flag bit in command traces.
2014-10-09 14:56:27 +00:00
dgp
891a0ade43
[2039178] Remove false claims about TCL_INTERP_DESTROYED flag bit in command traces.
2014-10-09 14:52:48 +00:00
jan.nijtmans
29d06499aa
Fix [59a2e78e54d3361c33b8cd6eef55d384d8abecd7|59a2e78e54] : tclWinTime.c does not compile with MSVC14.
...
Eliminate use of __MINGW32__ macro everywhere, as it is deprecated.
2014-10-08 07:11:53 +00:00
jan.nijtmans
ea97de415f
Fix [59a2e78e54d3361c33b8cd6eef55d384d8abecd7|59a2e78e54] : tclWinTime.c does not compile with MSVC14.
...
Eliminate use of __MINGW32__ macro everywhare, as it is deprecated.
2014-10-08 07:02:34 +00:00
dgp
b327c90dcc
fix [bc1a96407a]
2014-10-03 20:20:12 +00:00
dgp
cd1372b52d
test cases
2014-10-03 15:47:38 +00:00
dgp
3b4cf982e3
Possible fix for testing.
2014-10-02 21:40:13 +00:00
dgp
7c4da917a7
[bc1a96407a] Partial solution should avoid crash, but may lead to wrong behavior.
2014-10-02 17:43:16 +00:00
dgp
e36d384130
[bc5b790099] Improper calculation of new dstLimit value. New test io-12.7.
2014-10-02 14:46:54 +00:00
dgp
5e53c4c296
[bc5b790099] Improper calculation of new dstLimit value. New test io-12.7.
2014-10-02 14:43:10 +00:00
Miguel Sofer
78fcaa3580
Backing out commit [cddbfc3081], fix for bug [82521bfb6734f891dd]
...
The "optimisation" in that commit assumes that the last byte in the
generated bytecodes is an INST_TRY_CONVERT if it equals 64. This is an
invalid assumption, it could be 64 and not be an instruction.
2014-09-27 21:36:06 +00:00
ferrieux
11db57d058
Applied patch by Andreas Leitgeb so that [string cat]'s compiled bytecode optimally groups args by 255 for INSTR_STR_CONCAT1.
2014-09-27 20:28:47 +00:00
oehhar
822a2b50f7
Implemented tip-427: socket fconfigure option -connecting plus no -peername,-sockname when still connecting.
2014-09-26 12:05:30 +00:00
dgp
fc21aee814
comment fix
2014-09-25 18:47:32 +00:00
dkf
d06897f3ea
Added a script-readable bytecode disassembler in tcl::unsupported.
2014-09-20 12:37:19 +00:00
dkf
1598658a83
Tidy things up a bit more.
2014-09-20 11:40:35 +00:00
jan.nijtmans
192fa71096
merge-mark
2014-09-17 10:47:21 +00:00
stwo
76db7c5c04
Better pic flag for OpenBSD.
2014-09-16 15:52:44 +00:00
stwo
85f3786d9c
Better pic flag for OpenBSD.
2014-09-16 15:48:48 +00:00
dkf
5e0835667d
whitespace tweak
2014-09-14 17:11:33 +00:00
dkf
26fe5fff38
merge trunk
2014-09-14 16:51:49 +00:00
dgp
d75135cca1
[cee90e4e88] Correct error in stack depth checking.
2014-09-10 22:17:21 +00:00
dkf
a5dd225e78
[2486824] Improve error message; not all that upvars is an upvar.
2014-09-10 08:24:59 +00:00
dkf
5f9519213f
[2486824] Improve error message; not all that upvars is an upvar.
2014-09-10 08:20:46 +00:00
dkf
7bce68fe3b
[84af1192f5]: [regsub] compiler no longer confused by quantification handling.
2014-09-09 19:49:08 +00:00
ferrieux
600ace1c4b
Refine TclFinalizeThreadData so that the quick-exit optimization really only affects exit.
2014-09-08 22:50:11 +00:00
dgp
62004c9fb4
Exceptional handling of oo::class has to be consistent throughout.
2014-09-08 21:22:05 +00:00
stwo
976c48a7f1
Change one '#ifdef' to '#if defined()' for improved consistency within the file,
...
as in checkin [211aa43013].
2014-09-08 00:37:22 +00:00
dgp
a3b501f125
Remove unused macros.
2014-09-05 19:04:43 +00:00
dgp
13d8cae724
Make corrections to long-false comments.
2014-09-05 18:30:57 +00:00
dkf
303cced03d
[ccc2c2cc98]: lreplace edge case
2014-09-05 10:05:05 +00:00
dgp
3f8809d6ec
Remove ChannelHandlerEvent struct, which has never been used in all of
...
recorded Tcl history.
Still need to purge comments of mentions of ChannelHandlerEventProc()
which is similarly pre-historic.
2014-09-04 22:05:21 +00:00
ferrieux
b47df5123e
Distinguish hanging from crashing in exit tests.
2014-09-03 19:44:29 +00:00
ashok
996c102b1f
[132fad6fde]. Fixed GetCache to use TclpSysAlloc+memset instead
...
of calloc. Now consistent with tclWinThrd.c which no longer
uses malloc in its TclpSysAlloc implementation.
2014-09-03 15:48:56 +00:00
ferrieux
a024a52335
Refrain from calling TclFinalizeThreadData() in quick-exit case as it is useless (just memory freeing). Superficially fixes [Bug 132fad6f]; that bug is still exerciseable thanks to recent additions to the test suite that exercise full finalization.
2014-09-02 22:00:03 +00:00
ferrieux
2e4f40528b
Add test cases in very first position for hang-on-exit, both in (normal) quick-exit and TCL_FINALIZE_ON_EXIT=1 modes.
2014-09-02 21:57:20 +00:00
jan.nijtmans
8964b0101f
Combine TCL_SHLIB_LD_EXTRAS+TK_SHLIB_LD_EXTRAS (for Cygwin and FreeBSD) to a single SHLIB_LD_LIBS usable for both Tcl and Tk
2014-09-01 08:17:49 +00:00
jan.nijtmans
6d02d4e9dc
Combine TCL_SHLIB_LD_EXTRAS+TK_SHLIB_LD_EXTRAS (for Cygwin and FreeBSD) to a single SHLIB_LD_LIBS usable for both Tcl and Tk.
2014-09-01 08:11:52 +00:00
dkf
2e512ffbe8
merge trunk
2014-08-30 08:30:00 +00:00
dgp
6e00c594ea
Use TclpSys* macros, not direct system calls.
2014-08-29 17:33:06 +00:00
dkf
77e18bafa5
[b9e1a3032e] Implement the documented method search order for TclOO.
...
This corrects the relative positions of object-defined methods and class mixins.
2014-08-28 07:53:24 +00:00
dgp
bcdc8e8a6d
merge release
2014-08-27 20:34:04 +00:00
dgp
7cd4eb1657
merge trunk; update changes
2014-08-25 21:43:21 +00:00
dgp
a562752936
TIP 429 implementation. New command [string cat].
2014-08-25 21:37:58 +00:00
dgp
46346effdc
merge-mark
2014-08-25 15:40:01 +00:00
dgp
6c10f6324b
merge release
2014-08-25 15:36:16 +00:00
dgp
ae0f801eaf
Do not let fossil README droppings leak into distribuion
2014-08-25 13:51:31 +00:00
dgp
a9c6d78680
make dist allowed README-* fossil droppings to leak into the distribution.
2014-08-25 13:31:10 +00:00
dgp
dbacb46d52
Bump to zlib 2.0.1.
2014-08-22 22:11:13 +00:00
dgp
7ab1ebdc32
Bump to TclOO 1.0.2
2014-08-22 21:52:37 +00:00
dgp
3ca10397cf
merge trunk; stamp release date.
2014-08-22 17:28:46 +00:00
dgp
13e336e4cd
merge 8.5; fix notifier mask bug and Tcl_Read performance regression
2014-08-22 13:48:50 +00:00
dgp
80604a93c1
merge 8.5; stamp release date
2014-08-22 13:44:23 +00:00
dgp
aa8f4d27ac
Correct performance regression in a series of short binary reads from a
...
socket. Many thanks to Eric Boudaillier for the report and testing support.
2014-08-22 13:23:04 +00:00
dgp
b08dc28c80
Same results; simpler logic.
2014-08-22 13:20:21 +00:00
dgp
92f9aca55f
Test fix for likely cause of reported I/O slowdown.
...
In a DoRead() revision, it came to favor making every effort to fill
buffers, in preference to a more sensible goal of favoring avoiding calls
out to the driver if there's already enough data in the buffers to satisfy
the read operation. Result is many more calls out to recv() than are
a good idea. Ought to show up most glaringly when many Tcl_Read() calls
asking for small numbers of bytes (compared to buffer size) each, and that
matches the reported case.
2014-08-21 23:07:34 +00:00
andreask
ce04ed5ad3
Fix reviewed and accepted.
2014-08-20 18:59:31 +00:00
dgp
eda831ff7e
Make test io-36.1.1 more portable.
2014-08-20 18:40:07 +00:00
dgp
bc9dca8ca6
Docs for Tcl_CreateChannelHandler() state that the registered handler proc
...
will be called back with a mask value. "Mask is an integer mask indicating
which of the requested conditions actually exists for the channel; it will
contain ***a subset of the bits from the mask argument*** to
Tcl_CreateChannelHandler when the handler was created." (emhpasis added).
Tcl_NotifyChannel is not honoring this. It passes a mask value that may
contain bits not in common with the mask argument to T_CCH().
This commit is a one-liner patch adding in the masking step to make things
behave as documented. Thanks to apn for digging this out. (In combination
with other questionable code, this led to a hang in test http-4.6 on Windows)
Tcl_NotifyChannel() has had this error in all of recorded Tcl history.
It's hard to imagine any code dependent on it though. If any exists, it
can be revised to pass the mask value it truly needs to T_CCH() and end up
with code suitable both before and after this change.
If you concur, please merge to core-8-5-branch, and I'll take it from there.
2014-08-20 17:50:41 +00:00
dgp
f8a968fdb8
Additions to changes.
2014-08-20 14:28:36 +00:00
jan.nijtmans
72fee4f1c7
[74e073599e5e7c5eb535e2f60f1b06feb468eaae|74e073599e]: tclsh is using old style dialogs when Tk is loaded on Windows
2014-08-20 11:23:09 +00:00
jan.nijtmans
71f6f450b2
[74e073599e5e7c5eb535e2f60f1b06feb468eaae|74e073599e]: tclsh is using old style dialogs when Tk is loaded on Windows
2014-08-20 11:13:29 +00:00
ferrieux
f2225b9dc1
merge trunk
2014-08-19 20:35:16 +00:00
dgp
344b547cd4
Update changes file.
2014-08-19 18:34:09 +00:00
dgp
60125626dc
merge trunk
2014-08-19 13:39:19 +00:00
dgp
36c74f5033
Improved credit
2014-08-18 13:28:58 +00:00
dkf
02b159d09e
[7d52e1101b] oo::object should know that oo::class is a subclass.
2014-08-17 15:23:49 +00:00
dgp
d5113635d3
Reconcile changes file with 8.6.1.
2014-08-14 16:48:08 +00:00
dgp
7cfbfdffd3
merge 8.5
2014-08-14 16:36:44 +00:00
jan.nijtmans
a0e133cb07
Put back SystemV timezone files, which were removed in previous commit. Don't know if that was by accident, but seems unwise in a Tcl patch release.
2014-08-13 09:06:09 +00:00
jan.nijtmans
e4a9f37030
Put back SystemV timezone files, which were removed in previous commit. Don't know if that was by accident, but seems unwise in a Tcl patch release.
2014-08-13 09:04:55 +00:00
dgp
459724f70a
merge 8.5, update changes
2014-08-13 02:54:31 +00:00
Kevin B Kenny
7f8321b616
merge tzdata2014f from ietf.org
2014-08-13 01:45:39 +00:00
Kevin B Kenny
ac5fa7c959
tzdata2014f from ietf.org
2014-08-13 01:42:17 +00:00
dgp
8c3d28816c
Update changes file
2014-08-12 21:41:29 +00:00
dgp
13828f74ee
merge 8.5
2014-08-12 15:51:06 +00:00
dgp
822b0d469e
merge trunk
2014-08-12 15:47:20 +00:00
dgp
8755613114
merge-mark. Do not accommodate udp bugs in Tcl 8.6.2.
2014-08-12 15:46:20 +00:00
dgp
c93483448e
Accommodate the "udp" package, and any other Tcl package that expects a
...
[read] on a channel @ EOF to attempt another pass through the channel drivers
instead of immediately returning an empty string. Correcting this misbehavior
appears too disruptive in a patch release to a long stable branch.
2014-08-12 15:28:09 +00:00
andreask
582c164dc3
Fixed type conversion warnings which break a Win32 debug build (MSVC).
2014-08-06 18:20:56 +00:00
ferrieux
91b9c5690e
Fix comment inaccuracy.
2014-08-05 22:10:58 +00:00
ferrieux
d544f36344
More aggressive constant folding in [string cat]. Thanks AndreasK for kicking.
2014-08-05 18:20:48 +00:00
ferrieux
796e087b9c
Better organize [string cat] by chunks of 255 args.
2014-08-05 11:29:16 +00:00
ferrieux
76e87312ed
Add constant folding to [string cat]. Mixed-quote idiom is now compiled to a single push.
2014-08-05 10:34:10 +00:00
ferrieux
5863c1e1b9
More optimized non-BC [string cat] using Tcl_AppendObjToObj() - thx Donal
2014-08-05 09:55:54 +00:00
ferrieux
50f00c62f2
Hum. Really merge trunk.
2014-08-04 14:06:13 +00:00
ferrieux
2918630e90
merge trunk
2014-08-04 14:02:53 +00:00
dgp
00ee522067
merge trunk
2014-08-04 13:37:22 +00:00
dgp
87724ab09f
Add tclsh.exe.manifest.in to the distribution
2014-08-04 13:36:57 +00:00
dgp
43aaaf34e5
merge 8.5
2014-08-04 13:35:47 +00:00
dgp
67fcf44a82
Add tclsh.exe.manifest.in to the distribution.
2014-08-04 13:35:06 +00:00
dkf
239374cbb8
Tidy up the docs
2014-08-03 22:43:42 +00:00
Kevin B Kenny
aa2667b729
merge trunk
2014-08-02 19:20:06 +00:00
ferrieux
25860d9071
Don't use [pid] in tests, stick to constant literals.
2014-08-02 15:26:46 +00:00
ferrieux
1cecac9cad
TIP 429 Implementation: [string cat]
2014-08-02 13:04:16 +00:00
dgp
23b2b428b6
merge trunk
2014-08-02 04:38:36 +00:00
dgp
9c45b517dc
Another Preserve/Release on channels is needed during IO finalization.
2014-08-02 04:36:39 +00:00
dgp
f70b625cf3
merge 8.5
2014-08-02 04:29:41 +00:00
dgp
592bd0b065
Another Preserve/Release on channels is needed during IO finalization.
2014-08-02 04:25:27 +00:00
dgp
f4f511dbae
merge 8.5
2014-08-02 00:06:21 +00:00
andreask
a3cfa0d708
Addition of a cast in tclWinFile.c to match types in a comparison, and
...
fix of a TRACE string literal in tclExecute.c with a bogus escape. Both
would otherwise bug a Windows debug build (where warnings are errors).
2014-08-01 20:07:40 +00:00
andreask
6563197fa8
Updated package "platform" to version 1.0.13. Separated the
...
identifiers "macosx*-i386-x86_64" and "macosx-universal" as
incompatible with each other.
2014-08-01 19:50:11 +00:00
dgp
08c2327777
merge-mark
2014-08-01 19:29:20 +00:00
andreask
0b7630c23f
Updated package "platform" to version 1.0.13. Separated the
...
identifiers "macosx*-i386-x86_64" and "macosx-universal" as
incompatible with each other.
Plus addition of a cast in tclIO.c to match types in a comparison
which otherwise bugs a Windows debug build (warnings are errors).
2014-08-01 18:36:50 +00:00
dgp
b425d2c241
merge trunk
2014-08-01 17:18:21 +00:00
dgp
bd2e4fe97f
merge 8.5
2014-08-01 17:17:24 +00:00
dgp
bed95cfaf7
Backport the cheaper Preserve/Release on channels.
2014-08-01 17:16:35 +00:00
dgp
a745e85067
[e75fabac06] Teardown line information after failed ensemble subcommand
...
compile attempts. Copy/paste from CompileCmdCompileProc(). May be
refactor opportunity here.
2014-08-01 16:01:30 +00:00
dgp
232336fbee
Correction and commentary in the details of ensemble compiling.
2014-08-01 14:36:30 +00:00
jan.nijtmans
c62d8b25aa
Fix part of [d19aef1487] (broken --disable-load on MacOSX), broken by [4d417791c9]
2014-07-31 21:23:45 +00:00
dgp
179c36fd48
merge trunk
2014-07-31 20:00:40 +00:00
dgp
5191ece516
[a84a720966] Protect against double free in TclOO classChainCache teardown.
2014-07-31 19:58:53 +00:00
dgp
f1e1a92d13
merge trunk
2014-07-31 15:49:44 +00:00
dgp
6c55284908
[3757cdf808] More clock refactoring with spooky impact on [string match]
...
performance.
2014-07-30 16:41:24 +00:00
dgp
fd5a54c8dd
Complete transformation off Tcl_Preserve() legacy onto ref counting.
2014-07-30 02:58:27 +00:00
dgp
d9ab63098e
Reduce the cost of Preserve/Release on channels
2014-07-30 00:22:33 +00:00
dgp
2cbe892d48
[3757cdf808] Refactoring seems to reduce (maybe somewhat kinda sorta) a
...
bizarre performance regression. Still not what it was. Damn Heisenbugs.
2014-07-29 00:22:32 +00:00
dgp
cfb0ea03ec
Bump to 8.6.2 for release.
2014-07-28 14:50:06 +00:00
dgp
5ec61dacf7
merge 8.5
2014-07-28 12:53:19 +00:00
dgp
c6eb718dfd
An alternative implementation of [chan copy] that operates in precisely
...
those circumstances where the incumbent implementation is known to perform
a byte-for-byte copy from input channel to output channel.
In that case, the new implementation ceases the activity of copying every
byte from buffer to buffer to buffer to buffer to effect the copy. Instead
it arranges for the very same buffer the input channel read driver read into
to be the buffer the output channel write driver writes out from. No data
copying (or even examining) at all. When the proper conditions apply, this
ought to be noticeably faster.
2014-07-28 02:06:53 +00:00
dgp
a1bd6bc434
merge trunk
2014-07-28 01:53:01 +00:00
dgp
51be2107ea
Revise MBRead() to be used in both sync and async modes.
2014-07-28 01:42:42 +00:00
dgp
cf106cdda6
Push MBWrite() differences out to callers.
2014-07-27 22:53:01 +00:00
jan.nijtmans
e98326383b
merge-mark
2014-07-27 22:47:48 +00:00
jan.nijtmans
1db9d005b6
correct EOLFIX macro, broken by [a803608ed5]
2014-07-27 22:44:36 +00:00
dgp
3eb6318d9b
Rework MBWrite() so it can be used in both sync and async modes.
...
Reduce code duplication.
2014-07-27 17:20:32 +00:00
dgp
19d6bd367d
Use common MBError() routine for sync and async operations.
2014-07-26 15:44:32 +00:00
dgp
7f4563705c
Extend the "move buffer" implementation to cover the async case.
2014-07-26 15:02:09 +00:00
dgp
b627af851c
merge trunk
2014-07-24 17:19:28 +00:00
dgp
ef647d7ccd
[9d19af7adb] Make sure all timer events get canceled.
2014-07-24 17:17:41 +00:00
dgp
0a9367fbc9
simplify moveBytes selection logic
2014-07-24 15:34:05 +00:00
dgp
841ecebfa5
Make sure MoveBytes error reporting reproduces what CopyData does. Bugward compatibility!
2014-07-24 15:24:11 +00:00
dgp
b3bdbd342b
merge trunk
2014-07-24 15:17:55 +00:00
dgp
bfe912517c
Test format of write error messages during binary [chan copy]
2014-07-24 15:17:19 +00:00
dgp
97d74c549d
Make sure MoveBytes records read error messages.
2014-07-24 15:02:09 +00:00
dgp
595290e064
merge trunk
2014-07-24 15:01:16 +00:00
dgp
631849ea86
Test read error during binary [chan copy].
2014-07-24 15:00:07 +00:00
dgp
213c040089
Extend the buffer move optimization to the "same encodings" case.
2014-07-23 17:10:26 +00:00
dgp
0bc839ec64
Revert the EOLFIX changes of checkin [a803608ed5] (2013-10-28).
...
They do not work on the one machine where they must -- the release managers!
Appears that the NATIVE_TCLSH support isn't found on the 8.5 branch, so we
shouldn't expect to use it.
2014-07-23 13:10:34 +00:00
dgp
72c15c0c4e
Bump to 8.5.16 for release.
2014-07-23 12:26:21 +00:00
dgp
df7b610caf
merge trunk
2014-07-22 20:27:59 +00:00
dgp
2ad2aba317
Workaround [info frame] troubles with -singleproc 1 testing operations.
2014-07-22 19:57:51 +00:00
dgp
5eaa219754
Avoid [thread::exit]; Using it leads to memleaks.
2014-07-22 18:12:27 +00:00
dgp
2c10c359b5
[12b0997ce7] Plug memleak in iocmd.tf-32.0 .
2014-07-22 17:04:15 +00:00
dgp
bfab4c718b
[12b0997ce7] Plug memleak in iocmd.tf-32.0 .
2014-07-22 16:44:38 +00:00
dgp
d19b7190cb
[e6477e1b0f] Plug memleak in AtForkChild() detected in iocmd-11.4.
2014-07-21 14:26:56 +00:00
dgp
97d610fbfe
[75b8433707] Revised fix for memleak in oo instance list management.
2014-07-19 16:35:59 +00:00
dkf
4e4b5a7e53
[75b8433707] Plug a subtle memory leak in TclOO.
...
Test suite very unhappy with this. Shoving into
a mistake branch until that's sorted.
2014-07-18 22:05:16 +00:00
dkf
6cd3ffa246
[b43f2b49f7] New compilation strategy for lappend that allows multi-value
...
lappend to not have quadratic performance (through better reference management).
2014-07-18 12:18:44 +00:00
jan.nijtmans
d2d54ff3de
Finally, use correct octal notation which works in Tcl 9 as well.
2014-07-17 18:43:55 +00:00
jan.nijtmans
eaf423b505
merge fork
2014-07-17 17:52:27 +00:00
dgp
f345a78f27
Revised fix for memleak in [info frame]. Still pretty ugly, but not more
...
so than a lot of TIP 280 machinery.
2014-07-17 15:48:59 +00:00
jan.nijtmans
5203cce0e0
Convert TesteventloopCmd and TestchmodCmd to Tcl_Obj-API form.
2014-07-17 15:15:28 +00:00
jan.nijtmans
f07fe1c911
Make sure that all "testchmod" arguments start with '0', making it more obvious that the value is octal.
...
dgp: Isn't the better way to make it obvious the values
are octal to use the explicit octal notation?
For example, [testchmod 0o777 $path] ?
Really seems like a bad idea to me to introduce *more*
incompatibilities for the planned conversion for
having the value 0777 stop meaning 255 and start
meaning 777 in Tcl 9.
Answer (Jan). You guessed exactly what's my follow-up plan. This was an intermediate step which keeps all test-cases running.
2014-07-17 14:08:30 +00:00
jan.nijtmans
7571df843a
Fix [3cdcfa40809ffd2b9d3d71f77dc57da615243730|3cdcfa4080]: tclWinFile.c does not compile with Win VC6
2014-07-17 11:02:03 +00:00
jan.nijtmans
f7c255fa17
Convert some non-ASCII characters in testcase comments - which were mangled by my editor in [79ace7b793] - to valid UTF-8: This way my editor will not mangle them again, and fossil will show in the UI which characters are supposed to be there.
2014-07-17 07:39:00 +00:00
dgp
07d1de7a4f
[9969cf8ca6] Move the bailout when the ->rewind flag is set down after all
...
the housekeeping matters tearing down frames (trace data) is complete.
2014-07-17 04:24:23 +00:00
dgp
d586b47d44
Backout checkin that broke test io-39.1.
2014-07-16 23:58:54 +00:00
dgp
b58f928be5
Repair improper assertion.
2014-07-16 22:01:57 +00:00
dgp
6f05041d3f
Assert an equality test, not an assignment
2014-07-16 21:48:18 +00:00
dgp
0d27a4b905
Assert an equality test, not an assignment.
2014-07-16 21:46:30 +00:00
dgp
4870917293
[6a2d339e50] Plug memleak in INST_STR_REPLACE instruction.
2014-07-16 15:59:00 +00:00
jan.nijtmans
1797998aed
Modify the "gettimes" test-command to use the Tcl_Obj API.
...
New "testbytestring" command which can be used to replace the (to-be-deprecated) "bytestring" command from tcltest and/or the "indentity" encoding.
Adapt many testcases to use the "testbytestring" command.
2014-07-16 10:02:02 +00:00
dgp
0fac79a0fb
[726349fab8] Stop leaking compression dictionary on zlib xform channel close.
2014-07-15 15:10:32 +00:00
dgp
8825fb59d7
Suppress valgrind warnings about uninitialized values.
2014-07-11 20:40:24 +00:00
dgp
5af71fcbff
[1211aceef2] Fix refcount management of TclpTempFileName() that caused leak.
2014-07-11 18:20:42 +00:00
dgp
431189b805
[9b352768e6] Plug memleak in INST_DICT_FIRST.
2014-07-11 15:44:42 +00:00
dgp
4822b65c03
Stop memleak in [info frame].
2014-07-11 12:56:16 +00:00
jan.nijtmans
b58baa4ff6
Starting with Unicode 6.3, the mongolian vowel separator (U+180e) is no longer a whitespace, but for Tcl it still is.
...
Update documentation accordingly, and extend test-cases for Unicode 7 compliance.
2014-07-11 10:43:15 +00:00
jan.nijtmans
0a0d095f20
Starting with Unicode 6.3, the mongolian vowel separator (U+180e) is no longer a whitespace, but for Tcl it still is.
...
"NEL/Next Line" (U+0085) should have been a Unicode whitespace, but never was in Tcl. This is corrected in Tcl 8.6, but for legacy reasons not in Tcl 8.5.
Update documentation accordingly, and extend test-cases for Unicode 7 compliance.
2014-07-11 10:38:55 +00:00
dgp
dbed3f8089
[3479689] Plug memory leak due to incomplete bug fix.
2014-07-11 04:49:49 +00:00
dgp
d6605e9057
makeFile / removeFile balance.
2014-07-10 18:17:28 +00:00
dgp
0992240c65
makeFile / removeFile balance
2014-07-10 18:11:39 +00:00
dgp
0e96637923
dup test name
2014-07-10 18:02:45 +00:00
dgp
8fd7a48012
dup test name
2014-07-10 18:00:42 +00:00
dgp
b406c00842
[f652ae79ed] Close sockets used in tests, so as not to corrupt other
...
tests in the suite.
2014-07-10 17:21:23 +00:00
dgp
31eb3eebb7
[7368d225a6] Extend the auto-cleanup of zero ref count values passed in to
...
the Tcl_*SetVar*() family of routines to cover the missing case where the
flags value of TCL_APPEND_VALUE is passed in alone.
*** POTENTIAL INCOMAPTIBILITY***
2014-07-10 16:40:30 +00:00
dgp
b81d871afb
[7368d225a6] Extend the auto-cleanup of zero ref count values passed in
...
to the Tcl_*SetVar*() family of routines to cover the missing case where
the flags value of TCL_APPEND_VALUE is passed in alone.
*** POTENTIAL INCOMAPTIBILITY***
2014-07-10 15:45:32 +00:00
dgp
cf1f2fb61e
Repair buffer indexing error in Tcl_ReadRaw().
2014-07-10 12:59:24 +00:00
dgp
61f8119019
Repair buffer indexing error in Tcl_ReadRaw() exposed by iogt-6.0 and valgrind.
2014-07-10 12:52:10 +00:00
jan.nijtmans
a072994389
Don't use Tcl_GetCommandInfo when Tcl_FindCommand suffices.
2014-07-09 18:49:38 +00:00
dgp
da31ff7eb8
First draft of using buffer moves in place of buffer copies to create an
...
efficient [chan copy].
2014-07-09 14:44:13 +00:00
dgp
d5ffff6214
The write and flush operations of reflected transforms ([chan push]) have
...
been converting all lower level channel errors from Tcl_WriteRaw() into
EINVAL. Generally this is a perplexing discard of useful information, but
worse it interferes with the EAGAIN signalling that is required to manage
the BLOCKED state of a nonblocking channel. Thanks to aspect for demo
scripts that pointed to the bug.
2014-07-08 13:45:09 +00:00
jan.nijtmans
e1b54e0e11
Update Unicode tables to Unicode 7.0
2014-07-04 12:49:40 +00:00
jan.nijtmans
53df9e36da
Update Unicode tables to Unicode 7.0
2014-07-04 12:47:21 +00:00
dgp
8d68951021
Clarify http::config and http::geturl -headers roles in setting request headers.
2014-07-02 20:22:43 +00:00
dgp
4b4b642fe6
[c31ca233ca] Fix TclGetsObjBinary() so that each [gets] rediscovers whether
...
a nonblocking channel is blocked.
2014-07-02 16:30:41 +00:00
dgp
0cf246c174
[c31ca233ca] Fix TclGetsObjBinary() so that each [gets] rediscovers whether
...
a nonblocking channel is blocked.
2014-07-02 16:20:30 +00:00
Kevin B Kenny
0bab3624a9
merge trunk
2014-06-29 02:20:31 +00:00
dgp
ee896008d0
Fix mismatch of Tcl_Preserve() / Tcl_Release().
2014-06-26 16:01:05 +00:00
dgp
6bc046c0bc
Fix mismatch of Tcl_Preserve() / Tcl_Release().
2014-06-26 15:59:27 +00:00
dgp
58f92b6316
Simplify / refactor Tcl_ReadRaw(). No need for CopyBuffer().
2014-06-24 16:46:12 +00:00
dgp
ddeb3ab35c
Simplify / refactor Tcl_ReadRaw(). No need for CopyBuffer().
2014-06-24 16:34:05 +00:00
jan.nijtmans
0d9a8edf22
Fix execute-6.5 test failure on trunk: the "preserveCore" part of tcltest::test assumes that the cleanup is done first, so moving the cleanup means the the "preserverCore" part needs to move with it.
2014-06-23 12:49:41 +00:00
jan.nijtmans
6ab9c80ea1
Fix execute-6.5 test failure on trunk: the "preserveCore" part of tcltest::test assumes that the cleanup is done first, so moving the cleanup means the the "preserverCore" part needs to move with it.
2014-06-23 12:48:16 +00:00
jan.nijtmans
aa6f0b1cab
ticket [2f9df4c4fa]: tcltest - request to move -cleanup script execution until after -output compare.
...
tcltest -> version 2.3.8
2014-06-22 16:17:12 +00:00
jan.nijtmans
c7510fa5b9
ticket [2f9df4c4fa]: tcltest - request to move -cleanup script execution until after -output compare
...
tcltest -> version 2.3.8
2014-06-22 16:15:43 +00:00
jan.nijtmans
efcc225259
previous commit was not quite right, this one should be better
2014-06-20 20:50:48 +00:00
jan.nijtmans
24b0f264c3
ticket [2f9df4c4fa]: tcltest - request to move -cleanup script execution until after -output compare
2014-06-20 20:21:50 +00:00
aku
3cd11c535e
[b47b176adf] Stop possible segfaults when variability in mutex lock
...
schedules cause a ForwardingResult to remain on the forwardList after
it has been processed (IORChan is the origin of the code in IORTrans).
2014-06-20 05:14:43 +00:00
aku
f326f97897
[b47b176adf] Stop possible segfaults when variability in mutex lock
...
schedules cause a ForwardingResult to remain on the forwardList after
it has been processed (IORChan is the origin of the code in IORTrans).
2014-06-20 05:05:21 +00:00
dgp
7834f2fe96
[b47b176adf] Stop segfault when variability in mutex lock schedules cause
...
a ForwardingResult to remain on the forwardList after it has been
processed.
2014-06-19 16:38:33 +00:00
dkf
7bde946742
[f0f876c141] Improve consistency in error messages.
2014-06-17 14:30:06 +00:00
dgp
fce6982a3e
[1758a0b603] socket_*-2.13 : Workaround the broken select() in some Linux
...
kernels that fails to report a writable state on a socket when an error
condition (or remote close) is present.
2014-06-16 13:38:26 +00:00
dgp
52af4f6df3
[1758a0b603] socket-2.13 : Workaround the broken select() in some Linux
...
kernels that fails to report a writable state on a socket when an error
condition (or remote close) is present.
2014-06-16 12:44:13 +00:00
dgp
908fc261b6
merge socket test from 8.5
2014-06-16 12:19:30 +00:00
dgp
eab2f47c2c
merge 8.5
2014-06-16 12:09:32 +00:00
dkf
ab6933ef6b
[311e61d12a] Generate error code in *all* places where commands are looked up.
2014-06-16 09:24:39 +00:00
dkf
c20374dfa6
[cb042d294e] Improve consistency of [dict] wrong-args error messages.
2014-06-15 16:50:32 +00:00
dkf
5f82234293
[1b0266d8bb] Make [dict replace] and [dict remove] have canonicalization semantics close to [lrange] and [lreplace]. [dict merge] is also improved, but is not as strict.
2014-06-15 16:14:18 +00:00
dkf
17751a998c
Some more cleaning up
2014-06-15 16:11:56 +00:00
dkf
08d9096362
Make [dict replace] and [dict remove] guarantee result canonicality.
2014-06-15 07:52:57 +00:00
dgp
2621d5a21a
Draft test for [1758a0b603].
2014-06-13 21:15:13 +00:00
dgp
4e3fe86fc2
Additional check for an error condition on the socket.
2014-06-12 13:36:18 +00:00
dgp
86b84b6d21
Workaround the broken select() in some Linux kernels that fails to report
...
a writable state on a socket when an error condition (or remote close) is
present. Would be good to add actual test suite tests for this, but until
then see demo scripts in the ticket 1758a0b603.
2014-06-11 17:24:58 +00:00
dkf
6a99b9a546
Improved the error messages.
...
We do not want parsing an invalid dictionary to give errors about lists!
As compensation, we get greater precision in the errorcode.
2014-06-07 14:18:40 +00:00
dkf
e5104aa3dc
merge trunk
2014-06-06 08:47:28 +00:00
dkf
fae85d1af5
merge trunk
2014-06-06 08:46:58 +00:00
dgp
bb40f1cd2c
Tests socket*-2.12 test for DiscardOutput() updates.
2014-06-05 19:13:09 +00:00
dgp
bb4c894bca
Test socket-2.12 covers the DiscardOutput() update.
2014-06-05 19:06:08 +00:00
dgp
b4cc0cbac8
When too many chars are read by ReadChars() and we trim the limits to get it right on the next pass, don't forget the TCL_UTF_MAX padding demanded by Tcl_ExternalToUtf(). (Thanks for finding that, aku!) Fix the factorPtr management. It was just totaly wrong. The factor should be a ratio of the record of bytes read to the record of chars read. With those fixes, new test io-12.6 covers the "too many chars" code.
2014-06-05 15:20:59 +00:00
dgp
16b3c54eb0
merge fork
2014-06-05 15:20:03 +00:00
dgp
3eb959fc93
When too many chars are read by ReadChars() and we trim the limits to
...
get it right on the next pass, don't forget the TCL_UTF_MAX padding
demanded by Tcl_ExternalToUtf(). (Thanks for finding that, aku!)
Fix the factorPtr management. It was just totaly wrong. The factor should
be a ratio of the record of bytes read to the record of chars read.
With those fixes, new test io-12.6 covers the "too many chars" code.
2014-06-05 15:17:29 +00:00
andreask
ba7b49d9c4
Fixed a tricky interaction of IO system and encodings which could
...
result in a panic.
The relevant function is ReadChars() (short RC in the following).
When the encoding and translation transforms deliver more characters
than were requested the iterative algorithm used by RC reduces the
value of "dstLimit" (= the number of bytes allowed to be copied into
the destination buffer) to force the next round to deliver less
characters, hopefully the number requested.
The existing code used the byte located just after the last wanted
character to determine the new limit. The resulting value could
_undershoot_ the best possible limit because Tcl_ExternalToUtf would
effectively reduce this limit further, by TCL_UTF_MAX+1, to have
enough space for a single multi-byte character in the buffer, and a
closing '\0' as well.
One effect of this were additional calls to ReadChars() to retrieve
the characters missed by a call with an undershot limit.
In the limit (sic) however this was also able to cause a full-blown
"Buffer Underflow" panic if the original request was for less than
TCL_UTF_MAX characters (*), and we are using a single-byte encoding
like iso-8859-1. Because then the undershot dstLimit would prevent the
next round from copying anything, and causing it to try and
consolidate the current buffer with the next buffer, thinking that it
had to merge a multi-byte character split across buffer boundaries.
(Ad *) For example because the previous call had undershot already and
left only such a small amount of characters behind!
The basic fix to the problem is to add TCL_UTF_MAX back to the limit,
like is done in all the (three) other places in RC setting a new
one. Note however that this naive fix may generate a new limit which
is the same as the old, or possibly larger. If that happens we act
very conservatively and reduce the limit by only one byte instead.
While I believe that this last conservative approach will never reduce
the limit to TCL_UTF_MAX or less before reaching a state where it
returnds the exact amount of requested characters I still added a
check against this situation anyway, causing a new panic if triggered.
2014-06-05 00:22:59 +00:00
andy
45fd54872f
Add missing calls to Tcl_DecrRefCount() in string object man page examples.
2014-06-04 21:45:29 +00:00
dgp
cb1e14e0eb
Revise DiscardOutput() to account for revisions to the loop in FlushChannel() which is its only caller. We need to discard the curOutPtr buffer as well, and not count on another pass through the loop to attempt to flush it (and raise the same failure again?).
2014-06-04 16:42:21 +00:00
dgp
3189f48d19
Revise DiscardOutput() to account for revisions to the loop in FlushChannel()
...
which is its only caller. We need to discard the curOutPtr buffer as well,
and not count on another pass through the loop to attempt to flush it
(and raise the same failure again?).
2014-06-04 16:36:25 +00:00
dkf
6a91e192f8
more tests, cleaning up the code a bit
2014-06-04 08:15:26 +00:00
dgp
3334cf2103
Valgrind doesn't like use of uninitialized variables.
2014-06-04 03:25:44 +00:00
dgp
518ffe037f
merge fork of 8.5 branch
2014-06-03 19:57:31 +00:00
dgp
2691f4b9a9
[734138ded8] Revisions so that unreported errors don't get lost during
...
the close of a channel.
2014-06-03 17:47:23 +00:00
dgp
93b55b0dc4
Backport I/O core fixes made known by async socket work on trunk.
2014-06-03 17:32:33 +00:00
dkf
1e37d8beb0
merge trunk
2014-06-03 08:13:58 +00:00
dkf
10caa9b482
[1b0266d8bb] Working towards ensuring that all dict operations are sufficiently strict.
2014-06-03 07:26:11 +00:00
oehhar
312e71eff4
win socket -async: do not loose connect notification by temporarily stop connect monitoring. Bug [336441ed59]
2014-05-30 10:36:01 +00:00
oehhar
78bb5378e9
Try not to loose FD_CONNECT by switching monitoring off.
2014-05-29 14:56:10 +00:00
oehhar
bf498960d9
merge core-8-5-branch
2014-05-29 14:53:45 +00:00
dkf
c0726f8f4f
merge trunk
2014-02-08 07:54:21 +00:00
dkf
39ddd8c91b
improve the testing of the disassembly commands
2014-02-08 07:54:04 +00:00
dkf
d69c1d382b
merge trunk
2014-02-08 07:41:17 +00:00
dkf
14b32b82e1
merge trunk
2014-02-04 09:09:06 +00:00
dkf
3f60452ac2
merge trunk
2014-02-03 22:29:31 +00:00
dkf
75b361386e
merge trunk
2014-01-09 21:20:23 +00:00
dkf
f3dba34e63
merge trunk
2013-09-26 16:32:21 +00:00
dkf
36a7db47de
merge trunk
2013-09-20 13:02:29 +00:00
dkf
97323cd8a0
merge trunk
2013-08-22 07:09:21 +00:00
dkf
8fa124afba
merge trunk
2013-07-07 11:57:55 +00:00
dkf
df623b6abe
Properly encode more operand types to reduce the number of special cases in the disassembler.
2013-06-20 11:05:20 +00:00
dkf
3ef97fba38
merge trunk
2013-06-19 22:46:10 +00:00
dkf
a261f7d413
Remove extra scribblings not normally needed. Thanks to jdc for suggestion.
2013-06-17 14:04:28 +00:00
dkf
50cc521ee3
Improved rendering of some opcode arguments and auxdata.
2013-06-13 21:21:22 +00:00
dkf
48205fa50d
merge trunk
2013-06-13 08:31:24 +00:00
dkf
9fb06ec1c9
Extract more of the info from the bytecode.
2013-06-12 08:55:15 +00:00
dkf
f9e188bad3
merge trunk
2013-06-11 21:40:51 +00:00
dkf
6b65756937
Code-readable disassembler: tcl::unsupported::getbytecode
2013-06-11 21:33:33 +00:00
dkf
a74538b064
merge trunk
2013-06-11 08:34:09 +00:00
dkf
55787f4f08
Move the disassembler to its own file.
2013-06-11 08:19:56 +00:00
dkf
0d59c187fe
merge trunk
2013-06-09 17:38:20 +00:00
dkf
4d2add8f0f
merge trunk
2013-06-08 13:42:46 +00:00
oehhar
a4ced94ae6
clock uses new msgcat features
2012-09-20 09:53:02 +00:00
oehhar
496eb965ff
(proposal) msgcat with dynamic mc file load on locale change
2012-09-19 20:40:14 +00:00
oehhar
c2423634f2
TIP#399 implementation: mcconfig may add additional glob pattern for mcload
2012-09-19 20:31:48 +00:00