andy
aa12f7d709
Merge trunk
2016-12-13 01:27:25 +00:00
andy
a7909595ec
Commit changes received from Brad Lanam via email
2016-12-12 04:42:52 +00:00
andy
0cd0bb6862
Avoid "warning: format '%llu' expects argument of type 'long long unsigned int', but argument 2 has type 'long unsigned int'" on platforms where TCL_WIDE_INT_IS_LONG. Warning introduced by check-in [e3ba334a42] which was merged to trunk by [eac13870dc]. This fix also was made by [418b169207] which has not yet been merged to trunk.
2016-12-02 21:08:15 +00:00
dgp
0714cd9321
Added long comment explaining history and work in progress making bytearray
...
interfaces usable.
2016-12-02 18:18:59 +00:00
dgp
e9d4e1005e
Relocate the cmdEpoch bumps during command deletion so that command resolution
...
caching works properly in deletion callbacks (destructors!) and delete traces.
2016-12-02 15:39:31 +00:00
jan.nijtmans
74c17b45b2
Implement %ll (WideInt) handling for Tcl_ObjPrintf(). Use it in some places. (now without edit-error in tcl.h, thanks Don!)
2016-12-02 14:52:11 +00:00
dgp
c4e63fa109
Repair what appears to be a stray edit error. This restores ability to
...
build on a TCL_WIDE_INT_IS_LONG platform, but leaves code in tclStringObj.c
raising compiler warnings. Suspect things still need some reconciliation
in the TCL_WIDE_INT_IS_LONG scenario.
2016-12-02 14:17:40 +00:00
jan.nijtmans
ef88cbd89e
Implement %ll (WideInt) handling for Tcl_ObjPrintf(). Use it in some places.
...
Moved to feature branch temporarily. Breaks build.
2016-12-02 13:50:29 +00:00
dgp
674aeae3b0
Remove dup line.
2016-12-02 13:26:08 +00:00
dgp
72c1f925db
Reports from NSF that command epoch bumping isn't properly timed.
...
http://paste.tclers.tk/4030
Since the epoch should bump to indicate when Tcl_FindCommand() would
produce a different result from the cached value, the bump ought to be
connected to the state change that would have that effect. This checkin
appears to be the more correct answer, and it makes the Delete path get
into agreement with the Rename path. Review would be good.
2016-12-01 20:13:10 +00:00
dgp
e42f5d61b2
So long as we register only one, we can have multiple Tcl_ObjTypes with
...
the same name. This smooths migration. See obj-2.2 and tclsqlite usage.
2016-12-01 17:25:40 +00:00
dgp
a8e3472731
Created a new "proper bytearray" Tcl_ObjType so we can use bytearrays
...
as bytearrays without all this fussing about over purity.
2016-12-01 13:20:47 +00:00
jan.nijtmans
95d020a657
compatability -> compatibility
2016-12-01 11:44:23 +00:00
jan.nijtmans
6d7abfd8a9
compatability -> compatibility
2016-12-01 11:42:07 +00:00
jan.nijtmans
bbaecb023a
compatability -> compatibility
2016-12-01 11:39:40 +00:00
dgp
c25e21b7bb
Route all [string repeat] operations through a common implementation.
...
Code that to preserve bytearrays, eliminate unnecessary string rep
generation, increase efficiency, and encapsulate access to internal rep
details.
2016-11-30 03:08:24 +00:00
dgp
3489a76210
Where feasible, convert concatenation panics into errors.
2016-11-29 18:46:41 +00:00
jan.nijtmans
357515037a
Minor simplifications. Eliminate FUNCPRT from regexp engine. Fix compile-error (non-debug) in tclDictObj.c, from previous commit
2016-11-29 13:03:15 +00:00
jan.nijtmans
a435d9e14b
more internal use of size_t (in stead of int)
2016-11-29 11:10:10 +00:00
jan.nijtmans
df537d0dfb
Eliminate some macros that are no longer used/needed.
2016-11-25 11:47:54 +00:00
andy
1000af34fa
Allow [array names -regexp] to use backreferences. This capability was broken by [71270e9141]. See also bug [1366683].
2016-11-25 07:31:46 +00:00
andy
d37425bc05
Remove spurious article in comments
2016-11-25 01:39:13 +00:00
andy
5e9f624428
Partially backout [ef4da65408] because AppendPrintfToObjVA() (used indirectly by [tcl::unsupported::disassemble]) does not yet support wide and bignum arguments. This fixes a SIGSEGV in compile.test and makes [disassemble] work again.
2016-11-24 19:21:12 +00:00
dkf
7d753e316a
Implementation of [array for] from Brad Lanam. See https://github.com/flightaware/Tcl-bounties/issues/12 for details.
2016-11-24 13:47:47 +00:00
jan.nijtmans
c2f9601344
Make compileEpoch "unsigned int", and start counting at 1.
2016-11-24 13:33:32 +00:00
jan.nijtmans
c8d9ab8790
typos
2016-11-24 10:26:28 +00:00
dkf
f096df2170
Corrections to misleading comments.
2016-11-22 15:04:28 +00:00
jan.nijtmans
990d6fd6f1
More internal use of size_t in stead of int.
2016-11-21 10:15:24 +00:00
dkf
da608f8c61
Minor: fix the indentation of comments.
2016-11-18 15:51:27 +00:00
jan.nijtmans
c58016090f
Fix mp_cnt_lsb() signature, so it matches the signature used in Tcl
2016-11-18 10:53:45 +00:00
jan.nijtmans
e7f46501e2
Fix mp_cnt_lsb() signature, so it matches the signature used in Tcl. Add two missing "static" keywords in tclUnixNotfy.c. Remove some more files in libtommath directory which are not useful for Tcl.
2016-11-18 10:23:24 +00:00
jan.nijtmans
13a2801fd7
Fix [e6f27aa56fa51bfc1752ce768bf0d301c60bfd2c|e6f27aa56f]: Update libtommath to 1.0
2016-11-18 09:50:37 +00:00
andy
995aaf8bfd
Remove extra space in documentation for [file stat]
2016-11-18 03:34:32 +00:00
jan.nijtmans
d7da846591
Fix libtommath's mp_radix_size() function such that it returns 2 for single-digit numbers. Add testcases for mp_radix_size() and mp_iseven(). Undo useless change in bn_mp_add_d.c (bring back libtommath's version).
2016-11-17 16:26:50 +00:00
jan.nijtmans
2287394ba1
Fix libtommath's mp_radix_size() function such that it returns 2 for single-digit numbers. Add testcases for mp_radix_size() and mp_iseven(). Undo useless change in bn_mp_add_d.c (bring back libtommath's version).
2016-11-17 16:24:37 +00:00
jan.nijtmans
8d1caeae4d
Fix libtommath's mp_radix_size() function such that it returns 2 for single-digit numbers. Add testcases for mp_radix_size() and mp_iseven(). Undo useless change in bn_mp_add_d.c (bring back libtommath's version).
2016-11-17 16:12:14 +00:00
jan.nijtmans
1be35f340f
Restore bn_mp_radix_size.c to exact copy of libtommath-1.0 version: Since the radix_size of "9" should return 2, not 3. Add test-case to prove that.
2016-11-17 15:30:32 +00:00
jan.nijtmans
ca471eb748
Restore bn_mp_add_d.c to exact copy of libtommath-1.0 version: Since the mp_clamp() function already restores the sign of it's argument to positive if c->used ==0, it is not necessary to do that twice. Therefore, the original version of the code is correct.
2016-11-17 13:18:17 +00:00
jan.nijtmans
538960215f
Add test-case for mp_iseven(). If mp_iseven(0) ever returns 0, we will be warned that we are using the wrong mp_iseven() function.
2016-11-17 11:38:13 +00:00
jan.nijtmans
1375c96d2f
Bring in fix for mp_iseven().... almost missed that .... This should be given a dedicated test-case. Now everything taken from "gahr-ticket-e6f27aa56f" branch is handled.
2016-11-17 11:03:39 +00:00
jan.nijtmans
8f07b4a94c
Merge trunk. Re-generate tclTomMath.h. Use faster exponentiation-function from libtommath 1.0 (in tclExecute.c).
2016-11-17 10:46:09 +00:00
jan.nijtmans
2edb1dcd83
Remove subdirectories of "libtommath", and various individual related files, not taking any part in the Tcl build. Makes the Tcl distribution smaller without sacrificing anything.
...
And remove the TCL_TOMMATH define, which was never used for anything.
2016-11-17 09:33:08 +00:00
jan.nijtmans
37f6932c0a
Remove subdirectories of "libtommath", and various individual related files, not taking any part in the Tcl build. Makes the Tcl distribution smaller without sacrificing anything.
2016-11-17 09:24:05 +00:00
jan.nijtmans
9e7c15f53e
merge trunk
2016-11-16 15:59:40 +00:00
jan.nijtmans
f850132635
(experimental) Upgrade to libtommath 1.0 (actually by merging all changes between libtommath 0.42.0 and 1.0). Still to be tested thourougly, before doing anything with it.
2016-11-16 15:22:26 +00:00
jan.nijtmans
f10147dbfe
import libtommath 1.0
2016-11-16 13:04:26 +00:00
jan.nijtmans
0dd529776d
Use more "size_t" in stead of "int" internall. Also eliminate a lot of type-casts which are not necessary any more.
2016-11-16 10:55:40 +00:00
dkf
ea1423a2ab
See Itcl Bug [1b28657c0e]. Make methodNameType honor the Tcl_ObjType contract.
2016-11-15 13:33:35 +00:00
dkf
5b71bf5ea8
See Itcl Bug [1b28657c0e]. Make methodNameType honor the Tcl_ObjType contract.
2016-11-15 13:32:51 +00:00
dkf
a5538d84c4
Slightly more efficient version as this is Hot Path code.
2016-11-15 13:31:02 +00:00
dgp
addd1694e0
See Itcl Bug [1b28657c0e]. The methodNameType fails to honor the Tcl_ObjType
...
contract. Need dkf review on suitability of this fix.
2016-11-14 17:01:37 +00:00
jan.nijtmans
7cdd87e4f1
Merge core-8-6-branch
2016-11-14 14:26:38 +00:00
jan.nijtmans
0b9cb76206
Better fix for the usability of TCL_NO_DEPRECATED on MacOSX
2016-11-14 14:25:13 +00:00
jan.nijtmans
99fd1215e2
Better fix for the usability of TCL_NO_DEPRECATED on MacOSX.
2016-11-14 14:20:13 +00:00
venkat
6e380ef6e9
Merge tzdata2016i from IETF
2016-11-12 11:19:52 +00:00
venkat
ae6e14e33c
Merge tzdata2016i from IETF
2016-11-12 11:19:26 +00:00
venkat
bc5ffbb3b2
Update to tzdata2016i from IETF
2016-11-12 11:18:31 +00:00
jan.nijtmans
92b58040dd
Fix harmless gcc warning message: using "unsigned" doesn't serve any purpose, actually.
2016-11-11 14:53:58 +00:00
jan.nijtmans
fcc907b2a6
Fix [79614fb8b61983ac8ef30ea8752c310465798fc7|79614fb8b6]: "glob", "encoding system" and encoding-free filesystems
2016-11-11 10:58:54 +00:00
jan.nijtmans
25ba428ff9
Fix [79614fb8b61983ac8ef30ea8752c310465798fc7|79614fb8b6]: "glob", "encoding system" and encoding-free filesystems
2016-11-11 10:55:45 +00:00
jan.nijtmans
2020e9be61
Fix [79614fb8b61983ac8ef30ea8752c310465798fc7|79614fb8b6]: "glob", "encoding system" and encoding-free filesystems
2016-11-11 10:53:10 +00:00
jan.nijtmans
6497c6c6ee
On OSX, there is a conflict with the "define panic" and definitions in "mach.h".
2016-11-10 14:21:41 +00:00
jan.nijtmans
31647bcceb
On OSX, there is a conflict with the "define panic" and definitions in "mach.h".
2016-11-10 14:19:28 +00:00
dgp
3555752d45
Route all [string last] operations through a common implementation.
2016-11-08 02:56:11 +00:00
dgp
37fb43ad48
Purge disabled code.
2016-11-07 20:18:30 +00:00
dgp
cd2858d1d0
Refactor to channel all [string first] functions through a single implementation.
2016-11-07 20:11:11 +00:00
dgp
790b302275
Optimize case of all single-byte chars.
2016-11-07 20:04:22 +00:00
dgp
dc11ffbbdb
Consolidate the "find empty string" cases.
2016-11-07 19:41:15 +00:00
dgp
1571dc01bb
Implement direct eval [string first] with the refactored engine.
2016-11-07 19:28:25 +00:00
dgp
4dc2505e43
First draft refactoring the [string first] functionality.
2016-11-04 21:29:30 +00:00
dgp
18a2ebc51d
[824752f10e] Use LIST_MAX instead of INT_MAX for unknown number of elements to the end of the list.
2016-11-04 14:56:19 +00:00
dgp
da3723c942
[8245752f10e] Use LIST_MAX instead of INT_MAX for unknown number of elements
...
to the end of the list.
2016-11-04 14:54:38 +00:00
dgp
27ef344b9c
merge mark
2016-11-04 14:49:22 +00:00
dgp
885ced5608
[824752f10e] More robust, portable check for integer overflow.
2016-11-04 14:48:36 +00:00
dgp
b1fe66323b
close fork
2016-11-04 14:42:14 +00:00
dgp
a188ceee21
[824752f10e] More robust, portable check for integer overflow.
2016-11-04 14:40:54 +00:00
dgp
eb87ed60f6
close fork
2016-11-04 14:39:00 +00:00
dgp
bc94a394c9
[824752f10e] More robust, portable check for integer overflow.
2016-11-04 14:37:50 +00:00
gahr
46d871617f
merge core-8-5-branch ([824752f10e] Avoid calling Tcl_SetObjResult if interp is NULL)
2016-11-04 14:24:42 +00:00
gahr
d654ce6429
merge core-8-5-branch ([824752f10e] Avoid calling Tcl_SetObjResult if interp is NULL)
2016-11-04 14:23:43 +00:00
gahr
452f14ebb5
[824752f10e] Avoid calling Tcl_SetObjResult if interp is NULL
2016-11-04 14:21:04 +00:00
jan.nijtmans
0a7d5ef6ed
Fix the generated copyright sections in the HTML help file
2016-11-04 11:51:22 +00:00
jan.nijtmans
f785a01764
Fix the generated copyright sections in the HTML help file.
2016-11-04 11:50:22 +00:00
jan.nijtmans
274f081025
Make packages msgcat and tcltest work unmodified in "novem". Make more test-cases work unmodified in "novem".
2016-11-04 11:38:09 +00:00
jan.nijtmans
76ed3d5b55
Make packages msgcat and tcltest work unmodified in "novem".
2016-11-04 11:32:44 +00:00
jan.nijtmans
fba10e8615
merge core-8-6-branch (http package version update)
2016-11-02 12:45:47 +00:00
jan.nijtmans
1f0c1b800d
Update http version number to 2.8.10, due to [838e99a76d]
2016-11-02 12:44:32 +00:00
jan.nijtmans
a7e97de50a
Update http version number to 2.7.14, due to [838e99a76d]
2016-11-02 12:41:04 +00:00
Joe Mistachkin
ea11870f5b
Fix the generated copyright sections in the HTML help file.
2016-11-02 01:42:49 +00:00
dgp
95b511bac2
Refactor to channel all [string cat] functions through a single implementation.
2016-11-01 16:18:08 +00:00
dgp
17e1ea228c
Replace indexing with pointer increments.
2016-11-01 15:42:50 +00:00
dgp
53abdcc518
Trim away obsolete code.
2016-11-01 15:12:07 +00:00
dgp
d963b1acb7
Expand all the cases of the [string cat] engine.
2016-11-01 15:07:30 +00:00
dgp
04432d4dd1
Reduce copies in the pure binary implementation of [string cat].
2016-10-31 18:10:21 +00:00
dgp
3e4f5907b6
Complete the "pure binary" implementation of the [string cat] engine.
2016-10-31 16:15:16 +00:00
dgp
4a159c5199
merge trunk
2016-10-31 14:18:03 +00:00
dgp
b53cf6d38c
Coverage tests for INST_STR_CONCAT1 byterarray ops.
2016-10-31 14:17:31 +00:00
dkf
779b8dad76
[253ba6e818] Improved description of [variable] behaviour.
2016-10-30 16:52:50 +00:00
dkf
cd428c1a44
[253ba6e818] Improved description of [variable] behaviour.
2016-10-30 16:16:29 +00:00
dkf
16dbe3f5a2
[1ae12987cb] Ensure that deleting the [history] command deletes its storage.
2016-10-30 08:31:21 +00:00
dkf
7b989f0312
[1ae12987cb] Ensure that deleting the [history] command deletes its storage.
2016-10-30 08:22:13 +00:00
dkf
994e1d8062
One more place where the internal API change can be used easily.
2016-10-30 05:07:47 +00:00
dkf
de8e3be492
[b26e38a3e4] Ensure that compressing streams manage buffers correctly in all cases.
2016-10-30 05:05:46 +00:00
dkf
d44a63b65b
[b26e38a3e4] Ensure that compressing streams manage buffers correctly in all cases.
2016-10-30 05:04:54 +00:00
dkf
423d995e0d
Fix the bug. Make use of zlib API in this area more like a Tcl API with wrapper function.
2016-10-30 05:02:46 +00:00
dkf
5c37d95180
Added test for bug
2016-10-29 21:03:25 +00:00
dgp
970922295a
WIP
2016-10-28 20:33:55 +00:00
dgp
31690ce7fb
revise [dict append] to make use of common [string cat] engine.
2016-10-28 16:55:44 +00:00
dgp
630d4b9211
merge trunk
2016-10-28 15:47:07 +00:00
dgp
7faf4f27a4
Add optimization to [dict append].
2016-10-28 15:46:49 +00:00
dgp
dd1c28a788
When appropriate, implement [join] with the common [string cat] engine.
2016-10-28 14:59:27 +00:00
dgp
afd6d5649f
Add obvious optimizations to [join] implementation.
2016-10-28 14:45:54 +00:00
dgp
e9d7b07476
merge trunk
2016-10-28 14:28:40 +00:00
dgp
b8ffbb14c4
Add warning commentary making important assumptions explicit.
2016-10-28 14:27:59 +00:00
dgp
39dbbd57af
Add warning commentary making important assumptions explicit.
2016-10-28 14:26:18 +00:00
dgp
bbfc83c86f
Add warning commentary making important assumptions explicit.
2016-10-28 14:23:25 +00:00
dgp
d31beb3e7f
merge trunk
2016-10-28 14:06:36 +00:00
dgp
aa3b157338
Add obvious optimization to Tcl_GetCharLength().
2016-10-28 14:06:15 +00:00
dgp
bf27b64405
Convert INST_STR_CONCAT1 to the common string cat implementation.
2016-10-27 20:06:36 +00:00
dgp
76b6b03be7
Start bringing all string cat operations into one place so it can be coded
...
correctly one time instead of badly multiple times.
2016-10-27 19:39:49 +00:00
venkat
c205f272f7
Merge timezone data tzdata2016h
2016-10-26 08:04:36 +00:00
venkat
0551ecffd6
Merge timezone data tzdata2016h
2016-10-26 08:04:10 +00:00
venkat
13967f965d
Update timezone data to tzdata2016h from IETF
2016-10-26 08:03:17 +00:00
dgp
79ff282b02
merge 8.6
2016-10-21 13:12:16 +00:00
dgp
9afdf28497
Repair recently opened memleak.
2016-10-20 20:02:19 +00:00
dgp
bfae5bf492
EVIL HACKs are bad. Unnecessary ones are intolerable. Bad tests cause trouble.
2016-10-20 17:54:47 +00:00
dgp
925bd5794e
Use memcmp where possible.
2016-10-18 19:16:35 +00:00
dgp
ae54e070a1
[eb6b68c1a9] Simple fix for [string replace] error demonstrated by new test.
2016-10-14 19:29:52 +00:00
dgp
8b894ab295
[eb6b68c1a9] Simple fix for [string replace] error demonstrated by new test.
2016-10-14 19:28:46 +00:00
dgp
e35292f314
Merge INST_STR_REPLACE fixes and improvements.
2016-10-13 16:56:23 +00:00
dgp
7f0e6652c7
Another streamline.
2016-10-13 16:50:06 +00:00
dgp
7634bdaef2
Stop invading the String internals to work around a bug. Fix it instead.
2016-10-13 16:43:05 +00:00
dgp
9cb330963b
Streamline the substring copying case of [string replace] bytecode execution.
2016-10-13 15:37:45 +00:00
dgp
4dc1a8a588
merge TclParseNumber fixes
2016-10-12 13:47:32 +00:00
dgp
66f257a588
[be003d570f] TclParseNumber() failed to fully implement TCL_PARSE_BINARY_ONLY.
2016-10-12 13:46:14 +00:00
dgp
36825d23b9
[be003d570f] TclParseNumber() failed to fully implement TCL_PARSE_OCTAL_ONLY.
2016-10-12 13:42:40 +00:00
dgp
326e0a8fdf
Add a test too.
2016-10-12 13:38:28 +00:00
dgp
29fdaa6dcd
[be003d570f] TclParseNumber() failed to fully implement TCL_PARSE_OCTAL_ONLY.
2016-10-12 13:31:07 +00:00
dkf
ae0ad313fd
[74bc0e44f5] Doc tweak.
2016-10-12 09:58:12 +00:00
dkf
ec64cc0418
[74bc0e44f5] Doc tweak.
2016-10-12 09:57:49 +00:00
dkf
c482675d84
[74bc0e44f5] Doc tweak.
2016-10-12 09:57:15 +00:00
jan.nijtmans
7dd13b72b6
Fix [3cc1d91345]: duplicate calls to TclpFreeAllocCache() on thread exists
2016-10-11 21:52:57 +00:00
jan.nijtmans
54c0881e9d
Fix [3cc1d91345]: duplicate calls to TclpFreeAllocCache() on thread exists
2016-10-11 21:43:44 +00:00
jan.nijtmans
d81daf76bd
Fix [3cc1d91345]: duplicate calls to TclpFreeAllocCache() on thread exists
2016-10-11 21:35:27 +00:00
dkf
11e9b6a9a5
[62b36e326c] Noted edge case in behaviour of [concat] with empty arguments.
2016-10-09 16:02:38 +00:00
dkf
8fe7f3fcdf
[62b36e326c] Noted edge case in behaviour of [concat] with empty arguments.
2016-10-09 16:02:16 +00:00
dkf
f3e9f9caa3
[62b36e326c] Noted edge case in behaviour of [concat] with empty arguments.
2016-10-09 16:01:53 +00:00
dkf
28d5ff4eb5
[7114ac6141] Improve testing and docs of Tcl_GetInt and Tcl_GetDouble. No behaviour change.
2016-10-09 15:22:20 +00:00
dkf
71c2d1a883
[7114ac6141] Improve testing and docs of Tcl_GetInt and Tcl_GetDouble. No behaviour change.
2016-10-09 15:21:26 +00:00
dkf
c8597887e4
Be more accurate about scan's %i
2016-10-09 12:03:30 +00:00
ferrieux
05009534ee
Be more accurate about scan's %i
2016-10-09 10:35:24 +00:00
dkf
f50a4eed54
[74bc0e44f5] Document result of [http::unregister].
2016-10-08 17:10:40 +00:00
dkf
90813dfce8
[74bc0e44f5] Document result of [http::unregister].
2016-10-08 17:10:21 +00:00
dkf
a16868a54c
[74bc0e44f5] Document result of [http::unregister].
2016-10-08 17:10:02 +00:00
dkf
c4eac3e8eb
[838e99a76d] Ensure that encodings are handled with application/xml and friends.
2016-10-08 16:41:51 +00:00
dkf
7b78869343
[838e99a76d] Ensure that encodings are handled with application/xml and friends.
2016-10-08 16:40:35 +00:00
dkf
ab8a39e6b9
[838e99a76d] Ensure that encodings are handled with application/xml and friends.
2016-10-08 16:38:42 +00:00
dgp
870f61c05d
Update [string map] tests to get illustration of need for pure dict
...
restriction up to date with ordered dicts.
2016-10-07 18:52:57 +00:00
pooryorick
6585306973
Fix typos in expr documentation.
2016-10-05 04:53:49 +00:00
pooryorick
b1d510f1db
Rewrite expr documentation. Among other things, fixes [ef5373e6fa0617ee].
2016-10-05 00:05:55 +00:00
dkf
111f52e7ed
[4d5ae7d88a] Stop crashes with asynchronous connects to hosts without addresses.
2016-10-04 19:12:33 +00:00
dkf
6548fc4ad1
[4d5ae7d88a] Stop crashes with asynchronous connects to hosts without addresses.
2016-10-04 19:11:07 +00:00
max
a629b0ba31
When opening a server socket on an ephemeral port, make sure that the
...
port number that gets picked for IPv4 is also available on IPv6. If
not, start all over for up to ten times to find a port number that is
available on both protocols.
2016-10-04 13:31:49 +00:00
pooryorick
8c066a970f
Fix documentation of [expr] operators, replacing "divisor" with "dividend"
2016-10-03 16:49:58 +00:00
jan.nijtmans
29b9de871c
(cherry-pick): Fix [2bf561854c55a], interp alias to command whose name is the empty string.
2016-10-03 14:53:32 +00:00
pooryorick
a9dbadf46a
Fix [2bf561854c55a], interp alias to command whose name is the empty string.
2016-10-03 01:10:16 +00:00
venkat
02e79b9ec1
Merge tzdata2016g from ietf.org
2016-10-02 19:26:30 +00:00
venkat
5aa514f49a
Merge tzdata2016g from ietf.org
2016-10-02 19:25:58 +00:00
venkat
2bc8d915a2
Update tzdata to 2016g from ietf.org
2016-10-02 19:24:52 +00:00
gahr
c4f7e08fc6
[4d5ae7d88a] Restore default-to-error logic in TcpConnect
2016-09-27 20:06:49 +00:00
jan.nijtmans
008c7038cb
merge core-8-6-branch
2016-09-26 09:10:35 +00:00
jan.nijtmans
dfb2a3f2e2
Fix the 'htmlhelp' target so that it compiles cleanly and includes all the appropriate HTML files.
...
Permit static linking to the MSVCRT as a stand-alone option.
Patch by Joe Mistachkin.
2016-09-26 09:08:13 +00:00
jan.nijtmans
e8aa220d08
merge core-8-6-branch. Undo changes to coffbase.txt (they cause overlap with Tk)
2016-09-21 09:36:35 +00:00
jan.nijtmans
8d3c0c2e81
Merge core-8-6-branch. Add more comments to tclLiteral.c, contributed by mr_calvin
2016-09-21 09:28:39 +00:00
jan.nijtmans
3adfe07f74
Make it more likely that compiles with VS2012/VS2013 actually work on Windows XP. See: [ https://tedwvc.wordpress.com/2014/01/01/how-to-target-xp-with-vc2012-or-vc2013-and-continue-to-use-the-windows-8-x-sdk/ ]
2016-09-21 09:20:54 +00:00
jan.nijtmans
7aae664d12
Make it more likely that compiled with VS2012/VS2013 actually work on Windows XP. See: [ https://tedwvc.wordpress.com/2014/01/01/how-to-target-xp-with-vc2012-or-vc2013-and-continue-to-use-the-windows-8-x-sdk/ ]
2016-09-21 09:15:34 +00:00
Joe Mistachkin
cdb1ef8aac
Permit static linking to the MSVCRT as a stand-alone option. Enable WinXP SDK compatibility.
2016-09-19 18:48:16 +00:00
jan.nijtmans
e7e4c74b7f
merge core-8-6-branch
2016-09-16 09:09:25 +00:00
jan.nijtmans
3d6c6683bb
Fix [c7d0bc9a549714e0]: Newly introduced unshared (local-only) literals from cmd resolvers cause Tcl_Obj leaks.
2016-09-16 09:06:41 +00:00
jan.nijtmans
bf9e61ca6a
Proposed fix for [c7d0bc9a549714e0]. Thanks to mr_calvin
2016-09-15 13:22:49 +00:00
dgp
db811061d4
Revert b98ee56376. The "bug" fixed was documented behavior.
2016-09-09 12:36:53 +00:00
gahr
63a316c43b
Remove unnecessary use of fpsetround. See https://bugs.freebsd.org/212512
2016-09-09 07:28:45 +00:00
dgp
3da8f74e75
[7f02ff1efa] Fix scope for var unset traces when procs return.
...
*** POTENTIAL INCOMPATIBILITY ***
2016-09-08 02:38:39 +00:00
dgp
3833c42f54
New test trace-18.5 for the bug. Updated trace-18.1 which was tuned to it.
2016-09-08 02:34:37 +00:00
dgp
2bfb7b96c0
Attempt to fix [7f02ff1efa]. Make trace-18.1 fail. Suspect test is an
...
experiment that preserves the bug.
2016-09-07 18:31:58 +00:00
dgp
35141afcc9
[4dbdd9af14] Plug mem leak when var unset trace re-creates namespace var. Thanks mr_calvin for report and fix.
2016-09-07 18:09:30 +00:00
dgp
6053836b97
[4dbdd9af14] Plug mem leak when var unset trace re-creates namespace var. Thanks mr_calvin for report and fix.
2016-09-07 17:45:33 +00:00
dgp
e13460b1fb
[4dbdd9af14] Plug mem leak when var unset trace re-creates namespace var.
...
Thanks mr_calvin for report and fix.
2016-09-07 17:30:18 +00:00
dgp
41512fe1fa
Improve the comments and add a test.
2016-09-07 16:19:42 +00:00
jan.nijtmans
4ef0c69aaa
Fix [d4e7780ca1681cd095dbd81fe264feff75c988f7|d4e7780ca1]: "global" cmd literal sharing vs. per-interp resolvers
2016-09-07 13:34:41 +00:00
jan.nijtmans
7660c04aff
Fix [d4e7780ca1681cd095dbd81fe264feff75c988f7|d4e7780ca1]: "global" cmd literal sharing vs. per-interp resolvers
2016-09-07 12:54:51 +00:00
dgp
7ca470456b
[4dbdd9af14] Proposed fix for mem leak.
2016-09-06 20:30:07 +00:00
dkf
ab18c108f7
Fixed bug in pushed transforms with full internal buffers not writing out.
2016-09-06 10:46:49 +00:00
dkf
7ccdd3657b
Fixed bug in pushed transforms with full internal buffers not writing out.
2016-09-06 10:44:45 +00:00
jan.nijtmans
98dbefe2cc
Additiona patch/suggestion from Gustaf. This indeed fixes the crash in oo.test. Looks good to me, so only waiting for final feedback from Gustaf and eventually feedback from other people.
2016-09-06 08:25:18 +00:00
jan.nijtmans
b748232291
some more clean-up
2016-09-05 14:52:01 +00:00
jan.nijtmans
d35a5023da
merge core-8-6-branch
2016-09-05 14:12:48 +00:00
jan.nijtmans
c4b6cab579
merge core-8-6-branch
2016-09-05 13:56:15 +00:00
jan.nijtmans
cf8c1e7bdc
Allow additional optional "interp" argument for testinterpresolver command. Not used yet in any test-case.
...
Protect panic in tclLiteral.c for possible null-pointer access. (cherry-picked from Gustaf Neuman's interpresolver patch).
Eliminate some unecessary spacing.
2016-09-05 13:55:00 +00:00
jan.nijtmans
6f860bc18d
Some patch clean-up, no change in functionality
2016-09-05 13:14:45 +00:00
jan.nijtmans
2bd794f7cc
Proposed patch for [d4e7780ca1681cd095dbd81fe264feff75c988f7|d4e7780ca1], by Gustaf Neumann
2016-09-02 12:11:01 +00:00
jan.nijtmans
5b7e79f851
Don't ever allow UTF-8 sequences of more than 4 characters to be generated or parsed, even when TCL_UTF_MAX>4: According to current Unicode standard, a byte string of >4 characters can never form a single UTF-8 character.
...
And a few minor micro-optimizations related to UTF-8 handling.
2016-08-30 13:07:10 +00:00
jan.nijtmans
3b2cb79ab1
Don't ever allow UTF-8 sequences of more than 4 characters to be generated or parsed, even when TCL_UTF_MAX>4: According to current Unicode standard, a byte string of >4 characters can never form a single UTF-8 character.
...
And a few minor micro-optimizations related to UTF-8 handling.
2016-08-30 13:00:32 +00:00
dgp
0cce018c67
Merge dup-removal into search loop so we avoid pre-processing efforts on data that are never used. Contributed patch from Brian Griffin.
2016-08-26 13:49:07 +00:00
dgp
f2115ca085
Merge dup-removal into search loop so we avoid pre-processing efforts on
...
data that are never used. Contributed patch from Brian Griffin.
2016-08-26 13:46:37 +00:00
Joe Mistachkin
ac673f63d0
Set the default topic, enable full-text search, and put all help output files under OUT_DIR.
2016-08-10 03:13:46 +00:00
Joe Mistachkin
5001d7d18c
Fix the 'htmlhelp' target so that it compiles cleanly and includes all the appropriate HTML files.
2016-08-09 21:03:28 +00:00
dgp
a134b03eda
merge mark
2016-07-27 18:56:20 +00:00
dgp
d823d4a2d5
merge release
2016-07-27 18:55:23 +00:00
dgp
27696b490b
a few test & docs fixes
2016-07-26 13:54:57 +00:00
dkf
b37c60fe43
[db0a5f6417] Make a few tests resilient to differences in semantics of pipes between OSs.
2016-07-26 10:09:06 +00:00
dkf
d0af5aa92c
[db0a5f6417] Make a few tests resilient to differences in semantics of pipes between OSs.
2016-07-26 10:08:29 +00:00
dkf
d4eb48d90f
[6a19dedc2e] "Clarified" what the units are that [chan copy] uses for -size and that synchronous copying returns.
2016-07-24 17:58:13 +00:00
dkf
9faead9d18
[6a19dedc2e] "Clarified" what the units are that [chan copy] uses for -size and that synchronous copying returns.
2016-07-24 13:09:40 +00:00
dkf
404eadfdaf
Make a few tests more resilient to differences in the semantics of pipes between operating systems.
2016-07-24 12:45:07 +00:00
dgp
722ba1aa44
test repairs
2016-07-22 15:28:50 +00:00
dgp
4cead413c9
Set release date
2016-07-22 14:00:01 +00:00
dgp
2501dbb8d0
Update changes file.
2016-07-21 16:20:38 +00:00
dgp
0050652afb
Stop internals intrusion into lists.
2016-07-20 20:39:16 +00:00
dgp
4704b442fb
Streamline TclObjLookupVarEx
2016-07-20 17:39:04 +00:00
dgp
5b8d20e6de
Use strchr() to parse array variable syntax.
2016-07-20 16:32:16 +00:00
dgp
2151838b5b
Use the new private flag INDEX_TEMP_TABLE in testing command too.
2016-07-20 15:43:08 +00:00
dgp
acb9c613f1
merge 8.6
2016-07-20 11:48:44 +00:00
venkat
ee54cd02de
Merge tzdata 2016f from ietf.org
2016-07-20 03:05:57 +00:00
venkat
ad4538af95
Merge tzdata 2016f from ietf.org
2016-07-20 03:05:31 +00:00
venkat
c2e7b1ce36
Update tzdata to 2016f from ietf.org
2016-07-20 03:05:01 +00:00
dgp
a8f05c5339
Factor out common prologue.
2016-07-19 20:40:27 +00:00
dgp
e26431e0f3
merge 8.6
2016-07-19 19:52:59 +00:00
dgp
23a34a26fe
"array search" is no longer a registered Tcl_ObjType.
2016-07-19 19:33:35 +00:00
dgp
3cd3541039
[0363f0146c] Fix [array startsearch] id handling to support var name variations
2016-07-19 19:31:28 +00:00
dgp
f846b3f965
Remove outdated comment.
2016-07-19 15:00:51 +00:00
dgp
a22b8736ec
merge 8.6
2016-07-18 17:47:23 +00:00
dgp
87a97e0609
[104f2885bb] Rework the "chan" Tcl_ObjType to properly validate cached channel name lookups.
...
Also merge backlog of test suite & doc improvements.
2016-07-18 16:50:22 +00:00
dgp
f5bf1de995
[104f2885bb] Rework the "chan" Tcl_ObjType to properly validate cached channel name lookups.
2016-07-18 16:46:34 +00:00
dgp
6f9ac81ae9
[104f2885bb] Rework the "chan" Tcl_ObjType to properly validate cached
...
channel name lookups.
2016-07-18 16:26:44 +00:00
dgp
c947326c4a
merge mark
2016-07-18 16:14:30 +00:00
dkf
9b1a5dc878
[77d58e3a7a] Test case independence: var.
2016-07-17 12:02:27 +00:00
dkf
4bc50a0a12
[77d58e3a7a] Test case independence: unload.
2016-07-17 11:56:28 +00:00
dgp
26532df53f
merge 8.6
2016-07-16 20:50:03 +00:00
dkf
0b8d92332a
[77d58e3a7a] Test case independence: io, load, msgcat, namespace, safe.
2016-07-16 11:42:38 +00:00
dgp
0cf3369f9f
Remove unmaintained disabled speculative code.
...
Such things are for branches and history.
2016-07-15 14:20:34 +00:00
dgp
8f28138f6e
Factor the cmdName intrep setting code into common utility routine.
2016-07-15 14:19:07 +00:00
dgp
c0d0df8550
Stop using the tclCmdNameType to store failed command lookups. If we don't
...
find a command, there's nothing to store, so better not to shimmer at all.
2016-07-15 12:36:33 +00:00
dkf
67a6300cc4
[77d58e3a7a] Test case independence: interp.
2016-07-15 05:39:09 +00:00
ashok
fd72878261
Fix docs and test failures. I had rolled back .PS1 (Powershell files) as being executable without fixing tests and docs.
2016-07-15 03:12:09 +00:00
dgp
9df68a3879
One of the validity checks for the "cmdName" type is to see if the
...
resolved command has been deleted by checking for the CMD_IS_DELETED flag.
Only one thing sets this flag -- Tcl_DeleteCommandFromToken(), and
every time it sets that flag it also bumps the cmdEpoch of the Command
as well. The "cmdName" type is already validating that epoch. It gains
nothing to be checking the CMD_IS_DELETED flag too. Eliminated the
pointless test.
2016-07-15 02:33:11 +00:00
dgp
bd8c790e2e
Stop checking case that can never happen.
2016-07-14 17:58:45 +00:00
dgp
5c3b0101a2
Plug memory leak created in recent variable Tcl_ObjType reform.
2016-07-14 15:17:58 +00:00
dgp
fed06f2292
New test demonstrates memleak discovered by Rolf Ade.
2016-07-14 14:40:37 +00:00
dkf
2edc274601
[77d58e3a7a] Test case independence: chanio, cmdah, env, history.
2016-07-14 08:31:00 +00:00
dkf
f68e18d159
Tidy up some references to INDEX_TEMP_TABLE.
2016-07-14 08:05:35 +00:00
dgp
66a18f91c0
merge 8.6
2016-07-13 19:19:37 +00:00
dgp
4c4629d5fd
New private flag value INDEX_TEMP_TABLE.
...
Used to signal to Tcl_GetIndexFromObj*() routines that the table in which
lookups are done has a fleeting existence. Thus there is no value in caching
any results, since the cache can never be useful. Improvement over existing
hackery where cache is stored and then freed to avoid bogus results.
Likely candidate to eventually push to the public interface.
2016-07-13 19:06:22 +00:00
dkf
89796adf9c
[3606125] Make parser-related tests work on their own.
2016-07-12 21:30:34 +00:00
dkf
11b61660d2
[3606388] Make variable-related tests work on their own.
2016-07-12 21:25:27 +00:00
dgp
d214692a28
tzdata2016f
2016-07-12 16:46:08 +00:00
dgp
eec270dc08
Dup test name. Bump to TclOO 1.0.5.
2016-07-12 16:24:35 +00:00
dgp
34d3a97939
merge 8.6
2016-07-12 14:15:48 +00:00
jan.nijtmans
1f93e78598
Fix "file owned" for Cygwin: st_uid is only 16-bit there.
2016-07-12 14:03:36 +00:00
jan.nijtmans
c3c52cf7b0
Fix "file owned" for Cygwin: st_uid is only 16-bit there.
2016-07-12 14:02:17 +00:00
jan.nijtmans
b11d2bb62d
Make hash type changable by compiling with -DTCL_HASH_TYPE=size_t (for example). Default (unsigned) cannot be changed in Tcl 8.x, that must wait until Tcl 9.
2016-07-12 13:44:26 +00:00
dgp
96d7deb99b
Start RC branch for Tcl 8.6.6
2016-07-12 13:23:21 +00:00
dgp
e0a4741204
merge 8.6
2016-07-11 22:04:02 +00:00
dgp
0ceae7a885
[cea0344a1] Restore a clearing of the ensemble rewrite in one execution path
...
so attempts to use the data after free are not made.
Test namespace-50.9 demonstrates the need for this.
2016-07-11 21:56:32 +00:00
dgp
e19d125606
Avoid memory leak in test.
2016-07-11 17:13:09 +00:00
dgp
9b324cef64
merge 8.6
2016-07-10 19:33:46 +00:00
dgp
68432b7ed1
[96fe2f1cc7] Plug memory leak.
2016-07-10 19:28:57 +00:00
dkf
f1f3820560
[3606121] Making tests less cross-dependent.
2016-07-10 14:15:12 +00:00
dkf
363cf0a6f1
Fixes to namespace-old.test
2016-07-10 14:14:28 +00:00
dkf
508b6fc60d
Fix to resolver.test
2016-07-10 12:45:34 +00:00
dkf
75f3cb9d07
Fixes to namespace.test
2016-07-10 07:59:52 +00:00
ashok
31ec149e21
Bugfix [da340d4f32]. clock-55.9 and clock-55.10 test failures.
2016-07-10 06:41:54 +00:00
ashok
6076256c3f
Fix compiler warnings (const-ness and unused label) that did not show up
...
in the non-optimized build before last checkin.
2016-07-10 06:33:20 +00:00
dgp
77e9a375ff
merge 8.6
2016-07-09 15:47:28 +00:00
ashok
25f7d3b86e
Fix missing constraints for Windows-specific tests
2016-07-09 14:30:54 +00:00
dgp
464153fecd
Revise INST_INVOKE_REPLACE to call EvalObjv with TCL_EVAL_INVOKE and
...
no longer call EvalObjEx which does not support it reliably. Also
convert to conventional list operations.
2016-07-09 14:26:56 +00:00
ashok
139a16f600
Fixed docs for prior check-in (exec of .CMD files on Windows)
2016-07-09 14:23:24 +00:00
ashok
600487a9d6
Bugfix [9ece99d58b]. Make exec understand .CMD files on Windows.
2016-07-09 14:18:22 +00:00
dkf
a2962cc586
[1493a43044] Make [namespace upvar] ignore variable resolvers; the previous situation was completely unintuitive.
2016-07-09 13:26:46 +00:00
ashok
d6ae741f7f
Bugfix [3613671]. file owned implementation for Windows.
2016-07-09 11:13:48 +00:00
ashok
48e3873f19
Bugfix [ae61a67192]. file {stat, type, size} etc. support for built-in special Windows files/devices like CON.
2016-07-09 08:27:00 +00:00
dgp
57a42f683c
Repair some memory corruption problems in EnsembleCmdRep.
2016-07-08 14:19:23 +00:00
jan.nijtmans
b2e1bb03b1
(cherry-pick): Bugfix [5d7ea04580]. Treat .cmd and .ps1 files are executable on Windows.
2016-07-08 12:38:35 +00:00
jan.nijtmans
d8785b8358
Merge core-8-6-branch: Bug [a47641a031]. TclJoinPath was calling TclNewFSPathObj with a first argument that was not an absolute path. Added a check for that. Fixes Windows test failures fileSystem-1.{3,4}
2016-07-08 10:30:07 +00:00
jan.nijtmans
7de7029fa5
Micro-optimization: Use TclGetStringFromObj in stead of Tcl_GetStringFromObj in many places where possible.
2016-07-08 10:28:48 +00:00
ashok
47620e4ba8
Bug [a47641a031]. TclJoinPath was calling TclNewFSPathObj with a
...
first argument that was not an absolute path. Added a check for that.
Fixes Windows test failures fileSystem-1.{3,4}
2016-07-08 07:58:00 +00:00
dgp
f290d19b27
Missed a cleanup line, which created a memleak.
2016-07-07 19:50:02 +00:00
dgp
1446838d71
To use a Tcl_Command token [aka (Command *)] for epoch checking, we must not
...
permit it to be freed while we hold it or else it could be mistaken for another
token allocated later that just happens to reside at the same address.
(Command *) preservation machinery already exists, just need to use it.
An extension facing the same problem might have to rely on command delete
traces.
Earlier revisions used (Namespace *) lifetime to achieve the same
results, but that's really an indirect (possibly non-robust) path to achieving
the proper goal.
Valgrind is happy now.
2016-07-07 18:44:56 +00:00
dkf
8c8c1a6415
Expose the AVOID_RESOLVERS flag to [namespace upvar] implementations, which seem to need it.
2016-07-07 10:08:44 +00:00
dkf
07f3d3e393
Also test the interpreted path.
2016-07-07 08:35:30 +00:00
jan.nijtmans
1e5db76cc1
Merge core-8-6-branch:
...
New tests to demo the remaining flaw in ensemble dispatch revisions. Itcl 4 also demonstrated these
[bd7f17bce8] Revise ensemble dispatch to call TclNREvalObjv() which supports the TCL_EVAL_INVOKE
Simplify all the Tcl_NRPostProc declarations
Create and use a utility Tcl_NRPostProc when decr ref count of values is all that is needed
Bugfix [5d7ea04580]. Treat .cmd and .ps1 files are executable on Windows
2016-07-07 07:48:53 +00:00
ashok
85d1666247
Bugfix [5d7ea04580]. Treat .cmd and .ps1 files are executable on Windows.
2016-07-07 06:30:58 +00:00
dgp
bf0a1dc6c5
Create and use a utility Tcl_NRPostProc when decr ref count of values is
...
all that is needed.
2016-07-06 16:47:37 +00:00
dgp
31e1e2a8c4
Simplify all the Tcl_NRPostProc declarations.
2016-07-06 15:50:34 +00:00
dgp
8f4ed81159
[bd7f17bce8] Revise ensemble dispatch to call TclNREvalObjv() which supports
...
the TCL_EVAL_INVOKE flag that is needed.
2016-07-06 15:12:53 +00:00
dkf
966906b7ae
Demonstrate that there is a problem.
2016-07-05 22:05:16 +00:00
dgp
20e8eaedc8
New tests to demo the remaining flaw in ensemble dispatch revisions.
...
Itcl 4 also demonstrated these problems.
2016-07-05 17:03:59 +00:00
jan.nijtmans
d65776f03f
Fixup the ensemble rewrite conversions
2016-07-05 08:55:04 +00:00
jan.nijtmans
7b6eaf23e9
Fixup the ensemble rewrite conversions (merge fork)
2016-07-05 08:53:17 +00:00
dgp
bf33e5524b
Fixup the ensemble rewrite conversions.
2016-07-04 20:39:43 +00:00
jan.nijtmans
2ee0bbf7fb
Use conventional list operations for ensemble dispatch
...
Add ability to disassemble TclOO constructors and destructors
2016-07-04 08:39:28 +00:00
jan.nijtmans
23c3438aee
typo and end-of-line spacing
2016-07-04 08:36:41 +00:00
dkf
21124cf6ab
Add ability to disassemble TclOO constructors and destructors ([1493a43044] motivates)
2016-07-04 08:18:53 +00:00
dgp
1694cf05a6
Use conventional list operations for ensemble dispatch.
2016-07-03 14:09:45 +00:00
dgp
8e39be1340
[09fabeb1fd] test subdirs in sorted order.
2016-07-02 17:58:49 +00:00
dgp
4110638cdd
[f961d7d1dd] Repair usage message for ensemble parameters with spaces.
2016-07-02 17:57:58 +00:00
dgp
65bd912b77
[09fabeb1fd] test subdirs in sorted order.
2016-07-02 17:55:51 +00:00
dgp
dd879c794d
[f961d7d1dd] Repair usage message for ensemble parameters with spaces.
2016-07-02 17:21:53 +00:00
dgp
e68b3d0183
[4402cfa58c] Rework the spell check machinery into something that will not be foiled by value sharing.
2016-07-01 20:18:47 +00:00
dgp
1481e6f3da
[4402cfa58c] Rework the spell check machinery into something that will not be foiled by value sharing.
...
Valgrind is not happy with this commit.
Likely suspect is the removal of the nsPtr
field and checking against it.
dkf tried to warn me.
2016-07-01 20:14:14 +00:00
dgp
42c2792287
The EnsembleCmdRep struct that is the internal rep for caching ensemble
...
dispatches and spelling corrections can now be file static.
2016-07-01 19:42:38 +00:00
dgp
08826b79fe
merge 8.6
2016-07-01 19:20:36 +00:00
dgp
d5617720bb
Add some tests
2016-07-01 19:16:56 +00:00
dgp
e95143affd
[4402cfa58c] Rework the spell check machinery into something that will not be
...
foiled by value sharing.
2016-07-01 18:54:36 +00:00
jan.nijtmans
a67b58390b
Make test-case "for.test" pass, regardless of end-of-line spacing
2016-07-01 14:11:38 +00:00
dgp
ced0d271ff
Encapsulate the fetching of the ensemble rewrite root, used by [namespace].
2016-07-01 14:08:22 +00:00
jan.nijtmans
b6f5ea3c8f
merge core-8-6-branch
2016-07-01 13:34:20 +00:00
jan.nijtmans
38e85a2dbe
Use same internal representation for unicode strings in test-cases than in reality, in order to prevent surprises.
2016-07-01 13:32:19 +00:00
dgp
680d1a1513
Disable special hacks for Itcl 3 ensemble error message generation.
...
Migration paths are in place to bring this to an end.
2016-07-01 13:20:37 +00:00
dgp
f2718ded6d
Use the utility routines to eliminate the last bit of intrusion into the ensembleRewrite area.
2016-07-01 13:07:39 +00:00
dgp
221b47806c
merge 8.6
2016-07-01 12:58:37 +00:00
dgp
286034431c
Use the utility routines to eliminate the last bit of intrusion into the
...
ensembleRewrite area.
2016-07-01 12:21:15 +00:00
jan.nijtmans
c1ce97106f
Simplify use of "struct" keyword in many places.
2016-06-30 13:16:44 +00:00
jan.nijtmans
c8212c36e9
Remove Tcl_Main() function, since it's no longer being used: It has been a macro already for ages.
2016-06-29 15:45:26 +00:00
jan.nijtmans
964477ea36
Eliminate internal use of TCL_STORAGE_CLASS, as it will be gone in 9.0 anyway
2016-06-29 15:28:36 +00:00
jan.nijtmans
88fc841203
Tcl_SetVar -> Tcl_SetVar2 and comparable replacements, eliminating functions which are deprecated.
2016-06-29 11:39:00 +00:00
dgp
04633c731b
merge 8.6
2016-06-28 22:49:22 +00:00
dgp
75a582f357
Route all ensemble rewrite activity through a few utility routines.
2016-06-28 22:30:18 +00:00
dgp
b28ae0fbb5
Route all ensemble rewrite activity through a few utility routines.
2016-06-28 21:17:28 +00:00
dgp
6c2c1397ff
merge 8.6
2016-06-28 14:26:11 +00:00
dgp
73124928ba
Re-order loop for fewer gotos.
2016-06-27 20:29:46 +00:00
dgp
cc2f6f6a7d
Stop parsing white space where there cannot be any.
2016-06-27 19:01:34 +00:00
dgp
bf285438a2
Streamline comment parsing.
2016-06-27 15:16:04 +00:00
dkf
844c8c3016
[dd260aaf72] Allow the -dictionary option to be read from a pushed transform.
2016-06-27 14:28:33 +00:00
dkf
16dc425318
[dd260aaf72] Allow the -dictionary option to be read from a pushed transform.
2016-06-27 14:27:43 +00:00
dkf
7a41668df0
[c3d956be5b] Clearer text about positioning of optional arguments.
2016-06-27 13:46:15 +00:00
dkf
9c058fa5d4
[c3d956be5b] Clearer text about positioning of optional arguments.
2016-06-27 13:44:40 +00:00
jan.nijtmans
6c2f2fec8a
Make TCL_MAJOR_VERSION/TCL_MINOR_VERSION/TCL_STUB_MAGIC available to Tcl_InitStubs() arguments. Useful for debugging and detection of stub incompatibilities (e.g. for Tcl9)
2016-06-27 10:22:30 +00:00
jan.nijtmans
0cb6ad07c6
Add TCL_NOINLINE macro, useful for micro-optimizations
2016-06-26 09:03:08 +00:00
jan.nijtmans
ef99853da4
(cherry-pick) [c30087b04f] Install man pages with permissions 644 instead of 444.
2016-06-26 09:01:26 +00:00
jan.nijtmans
cb9a441bb9
(cherry-pick) [c30087b04f] Install man pages with permissions 644 instead of 444.
2016-06-26 09:00:06 +00:00
max
bf46c5018d
[c30087b04f] Install man pages with permissions 644 instead of 444.
2016-06-24 16:40:30 +00:00
dgp
3619c13393
merge 8.6
2016-06-23 13:18:33 +00:00
dkf
e577cd8cf8
[d553228d9f] Stop crashes in [dict update] with low refcount dictionaries.
2016-06-23 08:21:42 +00:00
dkf
f05e229780
[d553228d9f] Stop crashes in [dict update] with low refcount dictionaries.
2016-06-23 08:20:16 +00:00
dkf
ff29c56ea4
[c95b9fc0e3] Make errorcodes out of level parsing more consistent.
2016-06-22 20:58:14 +00:00
dkf
5cae882ff3
[c95b9fc0e3] Make errorcodes out of level parsing more consistent.
2016-06-22 20:57:18 +00:00
dgp
0592038cf9
merge 8.6
2016-06-22 18:57:07 +00:00
dgp
5207d2fe71
[16896d49fd] Tcl_DStrings should tolerate appends to self.
2016-06-22 18:05:46 +00:00
dgp
fab681eb11
[16896d49fd] Tcl_DStrings should tolerate appends to self.
2016-06-22 18:04:23 +00:00
dgp
01e94e53ed
[16896d49fd] Tcl_DStrings should tolerate appends to self.
2016-06-22 17:38:31 +00:00
dgp
7f038e4db7
Repair earlier bug fix. Stopped crash, but botched the logic for multiple glob patterns.
2016-06-21 11:11:14 +00:00
dgp
e5320ae0d5
Repair earlier bug fix. Stopped crash, but botched the logic for multiple
...
glob patterns.
2016-06-21 11:10:10 +00:00
jan.nijtmans
8290f077d2
Upgrade internal Unicode tables to Unicode 9.0
2016-06-21 09:59:51 +00:00
jan.nijtmans
eccf18644f
Upgrade internal Unicode tables to Unicode 9.0
2016-06-21 09:58:54 +00:00
jan.nijtmans
e4b872fc07
Upgrade internal Unicode tables to Unicode 9.0
2016-06-21 09:57:14 +00:00
dgp
df9f4ed74f
[c383ebb5e4] Match DStringInit and DStringFree properly.
2016-06-20 19:31:05 +00:00
dgp
8445a00210
[c383ebb5e4] Match DStringInit and DStringFree properly.
2016-06-20 19:23:17 +00:00
dgp
345d7cf628
merge 8.6
2016-06-17 00:53:04 +00:00
dgp
b300fecc27
[4b61afd660] Allow [info frame] to record line info for substituted command names.
2016-06-16 17:15:28 +00:00
dgp
482ab2e9dc
[4b61afd660] Allow [info frame] to record line info for substituted command names.
2016-06-16 17:15:00 +00:00
dgp
751453253c
[4b61afd660] Allow [info frame] to record line info for substituted command names.
2016-06-16 17:12:45 +00:00
dgp
7b7647f1ab
[16828b3744] [vwait] *must* successfully undo its variable trace, or else it risks corrupting memory. Namespace teardown complexities were giving the traces an opportunity to survive. Added another (arguably better) Tcl_UntraceVar() call to be sure we avoid this problem.
2016-06-16 17:09:19 +00:00
dgp
fa88074963
[16828b3744] [vwait] *must* successfully undo its variable trace, or else
...
it risks corrupting memory. Namespace teardown complexities were giving
the traces an opportunity to survive. Added another (arguably better)
Tcl_UntraceVar() call to be sure we avoid this problem.
2016-06-16 17:06:25 +00:00
dgp
d418226edb
Improve fix and add test.
2016-06-16 16:59:09 +00:00
dgp
bdfafd3539
merge 8.5
2016-06-16 16:41:50 +00:00
dgp
819b87f1df
[16828b3744] [vwait] *must* successfully undo its variable trace, or else
...
it risks corrupting memory. Namespace teardown complexities were giving
the traces an opportunity to survive. Added another (arguably better)
Tcl_UntraceVar() call to be sure we avoid this problem.
2016-06-16 16:38:36 +00:00
dgp
b36880503c
Merge tip of core-8-6-branch
2016-06-16 16:27:01 +00:00
dgp
3c2b67a4d3
Correct the patch.
2016-06-16 16:14:28 +00:00
dgp
08c3a9b76b
Merge ec51e0603e. Segfaults again.
2016-06-16 15:25:55 +00:00
dgp
dd519c7dac
Merge up to a197e6853e. Still works. Next checkin restarts the segfaults.
2016-06-16 15:19:41 +00:00
dgp
f67a341fce
Merge up to the 8.6.0 release.
2016-06-16 14:48:35 +00:00
dgp
c755ef0815
[16828b3744] Prototype fix for merging forward.
2016-06-16 14:23:15 +00:00
jan.nijtmans
be577d6027
Fix [7393be0be6e7f91cbb2016fa777896e3895929e3|7393be0be6]: Tcl Thread library doesn't work in Debug build on Windows_x64
2016-06-14 09:58:47 +00:00
jan.nijtmans
99d3f3c9f3
Fix [7393be0be6e7f91cbb2016fa777896e3895929e3|7393be0be6]: Tcl Thread library doesn't work in Debug build on Windows_x64
2016-06-14 09:57:54 +00:00
jan.nijtmans
0b3a8804eb
Fix [7393be0be6e7f91cbb2016fa777896e3895929e3|7393be0be6]: Tcl Thread library doesn't work in Debug build on Windows_x64
2016-06-14 09:55:03 +00:00
jan.nijtmans
92a9b04a12
(cherry-pick): Fix [e14c77b845]: Compilation error over typedef.
2016-06-14 09:12:46 +00:00
dgp
a4532de5a0
Corrects reported bug, but makes many tests fail. Something subtle about
...
what we should expect when recording the line of a command that isn't
known until runtime.
2016-06-10 13:43:13 +00:00
gahr
ed326ae9b5
Merge trunk
2016-06-10 12:10:41 +00:00
jan.nijtmans
710ec0ef20
Fix [e14c77b845] for MSVC6: Compilation error over typedef
2016-06-09 11:41:31 +00:00
jan.nijtmans
b4024d86d1
Fix [e14c77b845] for MSVC6: Compilation error over typedef
2016-06-09 11:38:54 +00:00
dgp
58f5175075
merge 8.6
2016-06-03 13:32:04 +00:00
jan.nijtmans
0789d80b7a
Fix [e14c77b845]: Compilation error over typedef.
2016-06-02 14:56:20 +00:00
jan.nijtmans
5aee84a3f3
Fix [e14c77b845]: Compilation error over typedef.
2016-06-02 14:54:38 +00:00
jan.nijtmans
e52789c557
(cherry-pick) Merge TIP #447 : Execution Time Verbosity Levels in tcltest::configure. Tcltest 2.3.8 -> 2.4.0.
2016-06-02 12:27:55 +00:00
jan.nijtmans
c0e9c99a1c
tcltest 2.3.9 -> 2.4.0
2016-06-02 12:24:28 +00:00
dgp
67cfc8e178
merge 8.6
2016-06-01 18:25:50 +00:00
jan.nijtmans
47115ff565
Fix [3bd69eba99a395ee]: 'make dist' fails when tclsh9.0 is on $PATH
2016-06-01 12:03:50 +00:00
jan.nijtmans
dca8fae05f
Fix [3bd69eba99a395ee]: 'make dist' fails when tclsh9.0 is on $PATH
2016-06-01 12:02:02 +00:00
jan.nijtmans
5512629c55
Fix [3bd69eba99a395ee]: 'make dist' fails when tclsh9.0 is on $PATH
2016-06-01 11:56:37 +00:00
gahr
cb6e9135f2
Merge TIP #447 : Execution Time Verbosity Levels in tcltest::configure
2016-06-01 09:55:40 +00:00
dgp
af7e16b8e4
excise debug scaffolding
2016-05-26 17:29:34 +00:00
dgp
63e94b434f
constructor invocation ensemble rewrite shenanigans also fit into the
...
refactored routines.
2016-05-26 17:27:56 +00:00
dgp
41a668a515
Reduce to minimum set of TclResetRewriteEnsemble() calls.
2016-05-26 16:33:37 +00:00
andy
20619d8334
Change "integer string" to "integer" in documentation for [tell]. It's not necessary to emphasize EIAS in every man page. The phrase "integer string" dates back to 1999 [ee1e5d143e], previous was "decimal string" which dates back to 1998, in fact the oldest version in Fossil [196f92fd17].
2016-05-26 02:19:14 +00:00
dgp
d0a8ae5cf7
Another missing reset
2016-05-26 00:00:37 +00:00
dgp
7f43feafd5
Put in some missing Resets.
2016-05-25 18:19:27 +00:00
dgp
2b502a4b2b
Refactor all iPtr->ensembleRewrite setting code into TclInitRewriteEnsemble()
...
calls. This likely fixes many weird corner case bugs, and definitly makes
future development and maintenance easier.
2016-05-25 17:27:49 +00:00
dgp
f95100b44a
Adapt and tidy up the bug fix.
2016-05-24 20:39:25 +00:00
dgp
0d4e358f5e
Merge the bug fix and test case.
2016-05-24 20:29:35 +00:00
dgp
5f7157f3a2
Now fix the bug.
2016-05-24 20:23:15 +00:00
dgp
7cde8a22a1
New test namespace-53.11 demonstrates the bug.
2016-05-24 20:16:10 +00:00
dgp
535895e577
The handling of ensemble rewriting here is not right, but I've not yet
...
found the test case to demonstrate it. Checking in debugging code to
spread to other dev platforms.
2016-05-24 19:29:58 +00:00
dgp
366828918a
Appears that the TclInitRewriteEnsemble() routine was created with an intent
...
to refactor, but never actually got used. Work on continuing that effort.
2016-05-24 19:28:50 +00:00
gahr
7e85a50a46
Merge trunk
2016-05-23 11:40:10 +00:00
dkf
0e5bc322f1
Fix for [f97d4ee020]; use a two-stage approach to avoid quadratic behavior.
2016-05-21 09:30:02 +00:00
dkf
1195cdbd77
Fix for [f97d4ee020]; use a two-stage approach to avoid quadratic behavior.
2016-05-21 09:27:30 +00:00
dkf
5330c4e5d3
Make the tests pass.
2016-05-21 09:26:07 +00:00
dkf
52799e58d6
Added tests that show that this branch isn't ready to be committed back yet.
2016-05-20 05:14:37 +00:00
dgp
46d0e89d6e
merge 8.6
2016-05-17 11:45:44 +00:00
dkf
c9bd1f3334
Possible fix for [f97d4ee020]; uses a two-stage approach to avoid quadratic behaviour.
2016-05-16 10:57:36 +00:00
dkf
6d990b9c83
Tweak a test to not leave around extra commands.
2016-05-14 06:38:52 +00:00
dgp
84f95a3ef4
merge 8.6
2016-05-13 15:55:44 +00:00
jan.nijtmans
3a20c7912b
Merge core-8-6-branch
2016-05-13 09:09:05 +00:00
jan.nijtmans
008944a5c3
result/sendResult could be 64-bit, so account for that
2016-05-13 09:07:43 +00:00
jan.nijtmans
e0c7416333
Merge core-8-6-branch. Eliminate some unnecessary spacing.
2016-05-13 08:01:44 +00:00
jan.nijtmans
7a4ad0872e
Make tclreg13.dll work in any Unicode environment (either with 32-bit or 64-bit characters). Adopted from Androwish. Thanks to Christian Werner. version -> 1.3.2
2016-05-13 07:49:50 +00:00
Kevin B Kenny
7f12c0adfa
Bug fix: Assembler dereferences a rogue pointer when unstacking an empty exception range.
2016-05-13 00:46:23 +00:00
Kevin B Kenny
885379e2cc
Bug fix: Assembler dereferences a rogue pointer when unstacking an empty exception range.
2016-05-13 00:45:55 +00:00
dgp
76d0eb32fc
Don't see why the intrep should make and keep copies of things already
...
stored in the hash table.
2016-05-12 20:23:23 +00:00
dgp
76f6131b81
The "ensembleCommand" Tcl_ObjType has no need for an UpdateString routine.
...
It is entirely a caching type. No "pure" value can exist.
2016-05-12 19:49:06 +00:00
dgp
1438a1b7f7
Remove the nsPtr field from the EnsembleCmdRep struct. Cannot see any
...
justification for keeping it (can get via token), and test suite doesn't care.
2016-05-12 19:44:41 +00:00
dgp
5789574f89
Value correctness over performance myths. Encoding ObjType duplication
...
needs to dup the typePtr so that each Tcl_GetEncoding() is balanced by
a Tcl_FreeEncoding().
2016-05-10 16:52:53 +00:00
dgp
f705798ed7
merge trunk
2016-05-10 16:03:13 +00:00
dgp
024bab4116
Bug fix. Have to arrange to only close a catch once. After the space
...
has been returned to placeholder values, closing with them as data leads
to memory corruption.
There's probably a better fix available because the error here feels like
it's rooted somewhere else, having us continue to check values we ought to
know have already been closed.
2016-05-06 16:03:15 +00:00
gahr
8e26969a34
Add a note in tcltest manual page to betray false expectations on msec and usec.
2016-05-04 12:23:40 +00:00
gahr
ee742713d1
Approximate ms by μs/1000
2016-05-03 19:50:15 +00:00
gahr
00f3aef9ac
Merge trunk
2016-05-03 19:40:53 +00:00
dgp
54a8b02774
Rework bytecode intialization to serve different callers better.
2016-04-29 19:31:31 +00:00
dgp
a9f506ce21
Parameterize TclInitByteCodeObj to callers sense of typePtr.
2016-04-29 19:29:14 +00:00
dgp
8c36db11d0
No longer need to create Tcl_Obj just to make some bytecode.
2016-04-29 18:02:55 +00:00
dgp
a3838de0f9
Make obj-free bytecode maker available to rest of compile-related files.
2016-04-29 17:58:33 +00:00
dgp
9c0f41cdde
Tease apart the bytecode creation machinery from the Tcl_Obj intrep machinery.
2016-04-29 17:52:30 +00:00
dgp
012caa867f
Refactor bytecode initialization machinery.
2016-04-29 17:34:14 +00:00
jan.nijtmans
2d7c30cea8
merge-mark
2016-04-24 16:02:49 +00:00
dgp
dbf87bdccf
close forked fork
2016-04-22 19:59:37 +00:00
venkat
8e5a574ac0
Update to tzdata2016d from IETF
2016-04-22 19:59:19 +00:00
dgp
097a0bb6e2
close fork
2016-04-22 19:56:48 +00:00
venkat
bbc790ccac
Merge Fork
2016-04-22 19:54:22 +00:00
venkat
689cee14b2
Update to tzdata2016d from IETF
2016-04-22 19:46:41 +00:00
venkat
42eab451a6
Update to tzdata2016d from IETF
2016-04-22 19:43:59 +00:00
dgp
a52a0147b7
Refactor bytecode cleanup.
2016-04-22 18:13:17 +00:00
gahr
d243959c21
Bump tcltest version to 2.3.9
2016-04-20 19:37:31 +00:00
gahr
dba0cd17dc
Implement msec and usec verbosity levels in tcltest::configure
2016-04-20 19:27:31 +00:00
dgp
3f2f704c28
[d1f55451c6] Remove unnecessary panic routines.
2016-04-11 17:29:47 +00:00
jan.nijtmans
71ae050a68
Fix [07d13d99b0a9]: Who broke TCL 8.6 and Tclblend ?
2016-04-10 16:01:17 +00:00
jan.nijtmans
dcf6957535
Fix [07d13d99b0a9]: Who broke TCL 8.6 and Tclblend ?
2016-04-10 15:58:19 +00:00
jan.nijtmans
9a27611f89
Fix [2538f373ffc78d6dba9c3d973c147a84fdd9bbd8|2538f373ffc78d6d]: crash in Tcl_OpenTcpServer() on Windows
2016-04-08 13:30:12 +00:00
jan.nijtmans
ac974ca777
Fix [2538f373ffc78d6dba9c3d973c147a84fdd9bbd8|2538f373ffc78d6d]: crash in Tcl_OpenTcpServer() on Windows
2016-04-08 13:27:57 +00:00
jan.nijtmans
7210b03f81
merge 8.6
2016-04-08 12:28:01 +00:00
jan.nijtmans
820909f2f1
Fix [8663689908d3304a74fee525cd04aa4162e86391|8663689908d3]: regexp \\w missing characters
2016-04-08 12:26:19 +00:00
jan.nijtmans
6a82cdfc6a
Fix [8663689908d3304a74fee525cd04aa4162e86391|8663689908d3]: regexp \\w missing characters
2016-04-08 12:23:50 +00:00
dgp
3611f9be2c
merge 8.6
2016-04-07 14:56:25 +00:00
dgp
c8ff1de738
Tidy up the last commit.
2016-04-07 14:54:39 +00:00
dgp
73c4c7d5e5
[213b6a2b9d] Make level parsing honor EIAS.
2016-04-06 18:24:05 +00:00
jan.nijtmans
1e5e66b31f
Rename UtfCount() to TclUtfCount() and use it in more places. Suggested by pspjuth here: [e99a79a32650e7e5]
2016-04-05 09:32:43 +00:00
dkf
4315a57ac4
[47ac84309b] Clear up a bunch of problems with [lreplace]. It now does nothing more gracefully, and properly ensures that the compiled and interpreted versions work the same. Thanks to aspect for his work on this.
2016-04-04 21:39:15 +00:00
dgp
89b344e544
Revise "parsedVarName" Tcl_ObjType to eliminated unnecessary parts and
...
to reduce string copying.
2016-04-04 18:27:46 +00:00
dkf
496861c695
[47ac84309b] Clear up a bunch of problems with [lreplace]. It now does nothing more gracefully, and properly ensures that the compiled and interpreted versions work the same. Thanks to aspect for his work on this.
2016-04-04 18:00:48 +00:00
dgp
92a18f28ec
merge 8.6
2016-04-04 16:02:17 +00:00
dgp
1a7bb8dae4
close fork
2016-04-04 15:53:30 +00:00
dgp
e1173969e6
Merge *both* commits to get the TclAsyncReady optimization. Without
...
both parts, the test interp-34.3.1 hangs.
2016-04-04 15:43:49 +00:00
gahr
47b005a0d1
Merge tip-444
2016-04-04 11:30:07 +00:00
gahr
b99e43073a
merge trunk
2016-04-04 11:25:12 +00:00
jan.nijtmans
518ebabc90
micro-optimization from drh-micro-optimization branch: Knock perhaps 1% off execution time: guard on TclAsyncReady more efficient when decrementing to zero.
2016-04-04 11:21:03 +00:00
dkf
8597e498b4
Corrections to compression stream flushing to make Tk generate PNGs correctly. Tk bug [9eb55debc5].
2016-04-04 10:06:40 +00:00
dkf
f44a15f93f
Was handling the flushing at the end of the stream wrongly.
2016-04-04 10:03:40 +00:00
dkf
8920f52cc1
Working on fixing problem with short reads from compressing streams that breaks PNG creation in Tk.
2016-04-03 11:04:23 +00:00
jan.nijtmans
d2a222320b
RFE [0ef5e653ff4caf5f896ec1182e0aac38ab9a0c46|0ef5e653]: Add nsf to coffbase.txt. Eliminate exess spacing
2016-04-01 13:06:40 +00:00
jan.nijtmans
8451552b85
RFE [0ef5e653ff4caf5f896ec1182e0aac38ab9a0c46|0ef5e653]: Add nsf to coffbase.txt
2016-04-01 13:04:32 +00:00
jan.nijtmans
62147747fc
RFE [0ef5e653ff4caf5f896ec1182e0aac38ab9a0c46|0ef5e653]: Add nsf to coffbase.txt
2016-04-01 13:00:25 +00:00
jan.nijtmans
ffcf42745c
Two micro-optimizations in Win and UNIX notifier. See: [ http://code.activestate.com/lists/tcl-core/15645/ ]
2016-04-01 11:56:42 +00:00
jan.nijtmans
421817ca2c
merge trunk
2016-03-30 12:57:27 +00:00
dkf
abb02f83eb
[47ac84309b] Import of aspect's branch from his personal repository on chiselapp.
2016-03-30 08:46:43 +00:00
jan.nijtmans
40fd1928b8
Eliminate AT_FORK_INIT_VALUE/RESET_ATFORK_MUTEX macro's, since other values than the default are not supported anyway. This results in the elimination of (empty functions anyway) AtForkPrepare/AtForkParent.
...
Also improve consistancy in some variable names. No change of functionality.
2016-03-29 10:17:02 +00:00
jan.nijtmans
b6397860f2
(cherry-pick): Better fix for [7d0db7c388f52de81]: In stead of adding dependencies to multiple Makefile lines, combine them
2016-03-29 08:36:15 +00:00
jan.nijtmans
516ade7155
(cherry-pick): Better fix for [7d0db7c388f52de81]: In stead of adding dependencies to multiple Makefile lines, combine them
2016-03-29 08:34:38 +00:00
dgp
f816bb2a60
The DupEncodingIntRep() routine is broken. It fails to set the typePtr
...
field of the duplicated Tcl_Obj to indicate that the intrep is that of
the &encodingType. The impact must be that refcounting of Tcl_Encodings
are out of balance, at least in the (unusual?) case where "encoding" values
need duplication. I hesitate to actually commit this fix until I have a
test demonstrating the need for it, and a chance to see the impact on
actual encoding operations. The lifetime management of encodings has a
history of being tricky and raising controversy. More work required.
2016-03-28 21:24:22 +00:00
dgp
40a37e9b4a
There's a "parsedVarName" Tcl_ObjType that remembers how a variable name
...
breaks down into the name of an array and the name of an element. It has
been storing them in an intrep as a Tcl_Obj holding the array name and an
allocated string holding the element name. This branch revises the intrep
strategy to use Tcl_Obj's to hold both parts. This reduces copying and seems
to simplify the code. Also "nulled out" the UpdateStringProc for the type
which can never be called. I think this is a better answer, but I'd like
any other informed opinions.
2016-03-28 19:03:14 +00:00
jan.nijtmans
e79059759a
Better fix for [7d0db7c388f52de81]: In stead of adding dependencies to multiple Makefile lines, combine them
2016-03-27 21:28:15 +00:00
dkf
8f836376b7
[47ac84309b] Fix problems with [lreplace] compilation.
2016-03-27 16:40:28 +00:00
dkf
79e34ea63c
[47ac84309b] Fix problems with [lreplace] compilation.
2016-03-27 16:37:11 +00:00
dkf
7dd80b0182
Some OSX symbols builds create libtcl8.7.dylib.dSYM which is a directory.
2016-03-27 15:48:55 +00:00
dkf
1014baa6f8
Some OSX symbols builds create libtcl8.6.dylib.dSYM which is a directory.
2016-03-27 15:43:07 +00:00
dkf
b5d99faa0a
Update to tzdata 2016c from ietf.org
2016-03-26 22:52:13 +00:00
venkat
c9251df909
Update to tzdata 2016c from ietf.org
2016-03-26 18:12:24 +00:00
venkat
dd5b5d0bd1
Update to tzdata 2016c from ietf.org
2016-03-26 18:10:48 +00:00
jan.nijtmans
137f138b0a
- Undo unix notifier changes: too risky at this moment.
...
- Merge trunk
- (cherry-pick from dhr-micro-optimization): Micro-optimization: remove double checked lock from TclGetAllocCache in favour of initialization in TclInitSubsystems
2016-03-25 14:41:26 +00:00
dgp
9acaee3d40
No longer a need to keep around 'revert to 8.5' code.
2016-03-24 21:21:42 +00:00
jan.nijtmans
804858772b
(cherry-pick): Fix DTRACE_HDR value if tracing is diabled. Follow-up to [7d0db7c388]
2016-03-23 13:06:09 +00:00
jan.nijtmans
8173838454
(cherry-pick): Fix DTRACE_HDR value if tracing is diabled. Follow-up to [7d0db7c388]
2016-03-23 13:04:52 +00:00
jan.nijtmans
2e4f989482
Fix DTRACE_HDR value if tracing is diabled. Follow-up to [7d0db7c388]
2016-03-23 13:03:54 +00:00
dkf
7c0f0f400e
merge mark
2016-03-23 10:55:40 +00:00
dkf
3a11f2d6af
merge mark
2016-03-23 10:53:50 +00:00
jan.nijtmans
234e576260
(cherry-pick): Fix [f1253530cdd83e66]: Different Windows / *nix default bindings for text widget
...
See: [https://groups.google.com/forum/#!topic/comp.lang.tcl/ZZ_WwfQdmoE ].
People like Eric Brunel, who want the most logical behavior for any Tcl release can simply do:
set ::tcl_wordchars {\w}
set ::tcl_nonwordchars {\W}
2016-03-23 10:00:40 +00:00
jan.nijtmans
1ab408f799
(cherry-pick): Fix [f1253530cdd83e66]: Different Windows / *nix default bindings for text widget
...
See: [https://groups.google.com/forum/#!topic/comp.lang.tcl/ZZ_WwfQdmoE ].
People like Eric Brunel, who want the most logical behavior for any Tcl release can simply do:
set ::tcl_wordchars {\w}
set ::tcl_nonwordchars {\W}
2016-03-23 09:59:08 +00:00
jan.nijtmans
46d899ba95
Fix [f1253530cdd83e66]: Different Windows / *nix default bindings for text widget.
...
Still - most likely - not the complete story for trunk/tcl9, but whatever we do this is a better starting-point than how it was.
2016-03-23 09:55:06 +00:00
jan.nijtmans
fcc11a1aff
Fix [f1253530cdd83e66]: tcl_wordchars and tcl_nonwordchars are unknown at startup.
...
For trunk this will not be the complete story, but for core-8-6-branch and core-8-5-branch it will at least make tcl_wordchars and tcl_nonwordchars function as documented. That's the least polish we should do.
See: [https://groups.google.com/forum/#!topic/comp.lang.tcl/ZZ_WwfQdmoE ].
People like Eric Brunel, who want the most logical behavior for any Tcl release can simply do:
set ::tcl_wordchars {\w}
set ::tcl_nonwordchars {\W}
2016-03-23 09:46:40 +00:00
jan.nijtmans
4a0859ef8e
(cherry-pick): Fix [7d0db7c388f52de8]: Occasional build failures with parallel make. Thanks to Jaroslav Škarvada for bug report and fix.
2016-03-23 09:00:54 +00:00
jan.nijtmans
3585082431
(cherry-pick): Fix [7d0db7c388f52de8]: Occasional build failures with parallel make. Thanks to Jaroslav Škarvada for bug report and fix.
2016-03-23 08:59:25 +00:00
jan.nijtmans
b21ca89201
Fix [7d0db7c388f52de8]: Occasional build failures with parallel make. Thanks to Jaroslav Škarvada for bug report and fix.
2016-03-23 08:48:54 +00:00
dkf
1498795d38
Factor out string internal rep definition so fix for [1af8de570511] is less awful.
2016-03-22 20:30:47 +00:00
dkf
3273318e4b
Factor out string internal rep definition so fix for [1af8de570511] is less awful.
2016-03-22 20:30:08 +00:00
dgp
69d4a9d89e
Revised fix for signed/unsigned mismatch. "get types right" > "add more casts"
2016-03-22 17:21:03 +00:00
dgp
43697f3b21
More places where unsigned quantities should be decared such.
2016-03-22 17:08:50 +00:00
dgp
c4578641c3
More signed/unsigned type correction.
2016-03-22 16:53:06 +00:00
dgp
00fada46c2
Don't compare signed and unsigned. Get types right.
2016-03-22 16:38:47 +00:00
jan.nijtmans
35c8885bad
Alternative solution for [f1253530cd]
2016-03-22 13:15:21 +00:00
jan.nijtmans
5743a71270
(cherry-pick): Fix signed-unsigned-compare warning (reported by François Vogel on Windows, but gcc can trigger it as well)
2016-03-22 09:07:44 +00:00
jan.nijtmans
740454d17a
Fix signed-unsigned-compare warning (reported by François Vogel on Windows, but gcc can trigger it as well)
2016-03-22 09:05:10 +00:00
jan.nijtmans
6ca0220e0b
(experiment) Use TclpMasterLock() in stead of a separate notifierInitMutex. One less mutex to be worried about.
2016-03-21 14:22:52 +00:00
jan.nijtmans
17e150b6bb
(cherry-pick): Fix [d3071887dbc7aeac]: Fix SEGV in Tcl_FinalizeNotifier(). Thanks to hirofumi for both the bug-report and the fix
2016-03-21 12:08:34 +00:00
jan.nijtmans
40986d0eb9
(cherry-pick): Fix [d3071887dbc7aeac]: Fix SEGV in Tcl_FinalizeNotifier(). Thanks to hirofumi for both the bug-report and the fix
2016-03-21 12:03:17 +00:00
jan.nijtmans
a2827884a9
Fix [d3071887dbc7aeac]: Fix SEGV in Tcl_FinalizeNotifier(). Thanks to hirofumi for both the bug-report and the fix.
...
Use TclpMasterLock() in stead of MASTER_LOCK everywhere (in stead of in some files only, not in others).
Use "static int initialized" variable consistantly.
Fix some comments. No change of functionality.
2016-03-21 11:59:19 +00:00
jan.nijtmans
fdcc17288c
.... oops ....
2016-03-21 09:16:28 +00:00
jan.nijtmans
cfe1b9b146
Proposed fix for [d3071887dbc7aeac]: Fix SEGV in Tcl_FinalizeNotifier()
2016-03-21 09:05:34 +00:00
dkf
6f7c0d0cb8
[1af8de570511] Fix crash in [string replace] caused by cut-n-paste.
2016-03-20 20:42:26 +00:00
dkf
5cf8d7d5dc
[1af8de570511] Fix crash in [string replace] caused by cut-n-paste.
2016-03-20 20:40:07 +00:00
dgp
38f165b6d2
[0b8c387cf7] Replace deprecated Tcl_VarEval(). socket accept callbacks now
...
always evaluate in global context. *** POTENTIAL INCOMPATIBILITY ***
2016-03-17 13:25:11 +00:00
dgp
e5ba57087a
merge 8.6 bug fixes
2016-03-17 13:19:44 +00:00
dgp
abdb62c194
[ae38befcfb] Rewrite TclGetInnermostExceptionRange() for fewer iterations.
2016-03-17 13:14:22 +00:00
dgp
63a966a40e
[1a25fdfec6] Enable compile of commands like [variable ${ns}::v].
2016-03-17 12:24:05 +00:00
dgp
e5a3264434
[b9b2079e6d] Unwind ExceptionAux data after failed compile.
2016-03-17 12:15:52 +00:00
jan.nijtmans
401704baeb
Merge trunk.
...
Add TCL_EVAL_GLOBAL flag to Tcl_EvalObjEx(), for reason mentioned in [0b8c387cf7].
2016-03-16 14:52:46 +00:00
jan.nijtmans
ecceacf810
(cherry-pick from trunk): Update tzdata to 2016b from ietf.org
2016-03-16 09:58:08 +00:00
jan.nijtmans
bf462d250e
Remove undocumented TCL_HASH_KEY_STORE_HASH. Setting this to "0" is not supported (was it ever ????), and not tested for long time.
2016-03-16 09:56:55 +00:00
venkat
79a87f7d74
Update tzdata to 2016b from ietf.org
2016-03-16 09:07:57 +00:00
venkat
768a116fde
Update tzdata to 2016b from ietf.org
2016-03-16 08:58:27 +00:00
gahr
99ac77fd22
[e6f27aa56f] Add files I missed in my previous commit
2016-03-13 17:23:31 +00:00
gahr
32d41dcbb5
[e6f27aa56f] Initial import of libtommath-1.0
...
This commit brings in libtommath-1.0, as of tag v1.0 of the upstream repository
at https://github.com/libtom/libtommath .
Only the top-level directory has been imported: the demo, etc, logs, mtest,
pics, pre_gen, and tombc directories have been removed from our repo.
The stubs tables have been regenerated to accomodate for the new function:
mp_expt_d_ex(mp_int *a, mp_digit b, mp_int *c, int fast);
See https://github.com/libtom/libtommath/commit/e9b1837 for details.
Only the unix build system has been modified for now. Windows and Mac OSX will
come later.
2016-03-11 17:13:38 +00:00
dgp
d9bd422a8a
Simple change gets most of the effect. Fails to handle backslash. anyone care?
2016-03-11 15:40:45 +00:00
dgp
b483c7748b
New test compile-5.3 for the bug.
2016-03-11 15:00:51 +00:00
jan.nijtmans
113f1348c0
Allow unstable Tcl releases to use unstable packages by default (this makes "package require Tk" find the expected 8.7a0 version in stead of 8.6). Make many "package" test-cases work even when the environment variable TCL_PKG_PREFER_LATEST is set.
2016-03-11 09:33:35 +00:00
dgp
248c843928
[b9b2079e6d] Proposed fix. When a compileProc fails, it may have done an
...
arbitrary amount of partial work, which needs to be undone. When the exception
handling machinery got its last big revision, the undoing of what it does
was neglected. I think this patch gets it all, but more eyes would be good.
2016-03-10 20:03:38 +00:00
jan.nijtmans
849bbbce67
Somewhat more excess spacing in for.test
2016-03-10 13:44:44 +00:00
jan.nijtmans
e8df4c5fe0
Eliminate exess spacings in many test-cases
2016-03-10 11:56:23 +00:00
jan.nijtmans
69ddcaa16e
Let Tcl 8.7 allow Tk 8.7 to be used by default
2016-03-09 15:59:07 +00:00
dgp
06ce1bc045
[0b8c387cf7] Replace deprecated Tcl_VarEval() call with reworked callback
...
system that uses Tcl_Obj scripts.
2016-03-08 18:06:06 +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
d15250601a
[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.
2016-03-08 15:52:23 +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
gahr
fcab9a91fa
merge trunk
2016-03-03 08:34:56 +00:00
gahr
08296be4e4
Clarify that weekends are intended as Saturdays and Sundays
2016-03-03 08:30:56 +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
gahr
013f304b82
More comprehensive tests adding and subtracting week-days
2016-02-24 09:10:01 +00:00
gahr
3942c68ef0
merge trunk
2016-02-23 19:44:07 +00:00
gahr
35844385d6
Make sure that adding 0 weekdays doesn't result in going back in time
2016-02-23 16:31:18 +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
c47960c7d7
(cherry-pick): Add test-case for [9b47029467631832]: testing existence of env(some_thing) destroys traces. This demonstrates that Tcl 8.5 doesn't suffer.
2016-02-22 12:16:48 +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
gahr
d6eeb008f7
[5f71353740] Support the "weekdays" unit in [clock add]
2016-02-17 11:03:48 +00:00
dgp
f09740fae5
merge trunk
2016-02-16 18:20:10 +00:00
dgp
7b9248d7cf
merge release
2016-02-12 16:46:41 +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
dgp
160d612a6b
update release date
2016-02-08 20:42:59 +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
dgp
17848b9a86
merge 8.5
2016-02-03 19:08:54 +00:00
dkf
47c35ac594
[25842c161] Prevent zero-length compress actions in [zlib] streaming API.
2016-02-03 15:29:04 +00:00
dgp
3f0217f6ef
Backout the contributed patch memaccounting from Postgres since it changes
...
the protections incompatibly and causes established tests to crash.
2016-02-01 21:39:44 +00:00
dgp
4c3e91b842
merge trunk
2016-01-29 14:22:31 +00:00
dgp
c97add06a3
merge 8.5
2016-01-29 14:21:14 +00:00
jan.nijtmans
07bbb1b270
Implement TIP #440 : Add engine to tcl_platform Array
2016-01-29 13:38:54 +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
dgp
8864730532
RefineApproximation() leaked twoMv and twoMd in one of its exits.
2016-01-28 13:42:33 +00:00
dgp
2aa5fe0c94
merge 8.5
2016-01-26 16:08:26 +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
dgp
65f1ba80c3
merge 8.5
2016-01-21 14:55:48 +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
14146ffe58
merge 8.5
2015-12-22 20:49:19 +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
dgp
1a6fefb4a0
merge 8.5
2015-12-10 13:38:06 +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
62a8eb3fbf
merge 8.5
2015-11-30 18:38:33 +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
dgp
63907ea7b5
merge 8.5
2015-10-29 13:12:03 +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
dkf
c0946d430e
Knock perhaps 1% off execution time: guard on TclAsyncReady more efficient when decrementing to zero.
2015-10-23 21:52:10 +00:00
dgp
ae0bcaf820
autoconf-2.59
2015-10-23 15:21:36 +00:00
dgp
5f01d638a5
merge 8.5
2015-10-23 15:00:07 +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
dgp
5cc8064510
Bump to release number 8.5.19
2015-10-23 14:30:40 +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
dgp
070ce22547
Open the release candidate branch for Tcl 8.5.19. Updated changes file.
2015-10-22 21:06:35 +00:00
Kevin B Kenny
56619f9f70
fix typo in micro-optimization TclpInitThreadAlloc
2015-10-22 14:07:01 +00:00
dkf
30c0c8a7fe
Turn off NRE asserts by default. About a 5% speedup on [clock format].
2015-10-22 01:00:28 +00:00
Kevin B Kenny
8f8aa2b0d9
Micro-optimization: remove double checked lock from TclGetAllocCache in favour of initialization in TclInitSubsystems
2015-10-21 23:30:41 +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
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
jan.nijtmans
a3eb84e8cb
Import of tommath 0.42.0
2011-03-14 12:08:07 +00:00
jan.nijtmans
d5b999af66
Import of libtommath 0.41
...
Import of libtommath 0.41
2011-03-14 11:59:15 +00:00
jan.nijtmans
4878f1b6a4
Import of libtommath 0.40
2011-03-14 11:51:58 +00:00
jan.nijtmans
c5e0f27a28
re-import ltm-0.39, with original RCS-ID's
2011-03-14 09:36:26 +00:00