dkf
3c5f2289a3
tests for [invoke] and [namespace invoke]
2019-05-26 21:03:46 +00:00
dkf
3c8f3f5301
Added docs
2019-05-26 15:36:49 +00:00
dkf
7f3130f738
The other command specified in the TIP
2019-05-26 14:57:38 +00:00
dkf
61a7077155
Import of old TIP 284 patch, and update for current Tcl
2019-05-26 12:11:28 +00:00
dkf
9290e6c1ac
TIP 383: [coroinject] and [coroprobe]
2019-05-25 08:06:25 +00:00
dkf
f4fbdbee8e
Add to error info when passing an error out of [coroprobe]
2019-05-25 08:01:08 +00:00
dkf
ef5c0e282a
Implement TIP 431: [file tempdir]
2019-05-25 07:46:24 +00:00
jan.nijtmans
1805ed5823
Merge 8.6
2019-05-24 20:12:47 +00:00
jan.nijtmans
b15a6a700f
end-of-line spacing
2019-05-24 20:10:14 +00:00
jan.nijtmans
ffdd95d4a3
Missing keyword: "static"
2019-05-24 20:03:03 +00:00
sebres
3bf5bf3079
merge 8.6
2019-05-24 17:00:46 +00:00
sebres
d249b0629d
merge 8.5
2019-05-24 16:56:29 +00:00
sebres
cb9018a721
fixes typo ("net" instead of outdated term "nett")
2019-05-24 16:49:32 +00:00
sebres
c230bbb7b4
merge 8.6
2019-05-21 18:04:05 +00:00
sebres
e298c2595d
merge 8.5 (timerate unsigned calc)
2019-05-21 18:01:07 +00:00
sebres
3ab1f672a4
timerate: be more precise using unsigned wide (for total execution time), avoid signed vs unsigned comparison warning (if compiled with VS).
2019-05-21 17:52:14 +00:00
dgp
cacd1146d0
merge 8.6
2019-05-21 16:43:00 +00:00
dgp
7db84b0155
Knock VOID back down
2019-05-21 16:42:11 +00:00
sebres
e94891207a
merge 8.6 (fixed optimization for create/search hash entries with the same keys)
2019-05-21 11:40:37 +00:00
sebres
e2f5de73e3
fixed mistake in optimization of [3f693cdfe9c875c4] (bypass of compareKeysProc if keys pointers/objects are equal) - it should compare given key with entry key (not with a hash entry)
2019-05-21 11:34:13 +00:00
sebres
57c23073f7
small amend (no cast needed)
2019-05-21 11:29:09 +00:00
sebres
245ed0c3c3
cherry-picing of [3f693cdfe9c875c4] to be more compatible across version, resolve mistake with "key objects/pointers comparison by the hash entry" firstly introduced there.
2019-05-21 11:22:36 +00:00
dgp
543703d4ee
comment typo
2019-05-17 18:33:49 +00:00
sebres
a68f7032b3
merge 8.6
2019-05-17 10:40:17 +00:00
dkf
cfff0de87e
Remove misleading comment in nroff source
2019-05-17 08:13:32 +00:00
dkf
cbd3fd20bd
Add test for what happens when the directory in the template doesn't exist; doc it too.
2019-05-17 08:09:29 +00:00
dkf
c54b6957b8
merge core-8-branch
2019-05-17 07:31:47 +00:00
sebres
1f5c7c693b
merge 8.5
2019-05-16 18:19:25 +00:00
sebres
2865a8da13
small amend to [ac566e9df84daeab] with rollback of done/continue optimization
2019-05-16 18:17:52 +00:00
sebres
8af3fb7317
merge 8.5 (timerate fix to avoid impact of object duplication on shared interp result by the measurement)
2019-05-16 17:56:37 +00:00
sebres
ccc592df50
timerate: allow continue from measurement cycle (used for conditional flow control of iterations);
...
more gentle evaluation behaviour, similar to a cycle now (also avoids extra overhead to set result to interp, etc.);
todo: rewrite optimization of INST_DONE using last-instruction pointer or optimization flags for compile of iteration (if sebres's perf-branch gets merged).
2019-05-16 17:49:25 +00:00
jan.nijtmans
503da2614f
Merge 8.6
2019-05-14 19:26:55 +00:00
jan.nijtmans
de4f571baa
Merge 8.5
2019-05-14 19:13:01 +00:00
jan.nijtmans
8094d33e43
DIGIT_BIT -> MP_DIGIT_BIT, since DIGIT_BIT is deprecated in future libtommath versions. So, better stop using it at all.
...
Also add some other defines/typdefs for future libtommath compatibility.
2019-05-14 18:42:59 +00:00
dkf
ec265aa929
Tweak the unix build instructions; general cleanup of a few bits and fixing of old maintainer-only targets
2019-05-14 10:31:01 +00:00
fvogel
0f34d49b76
Fix new tests cmdAH-33.[45] by making them pass on Windows
2019-05-13 17:56:36 +00:00
fvogel
6b6e030ea4
Fix crashing bug in tempdir name creation
2019-05-13 09:54:49 +00:00
fvogel
6902811461
Let branch compile with MSVC 2008
2019-05-13 04:00:48 +00:00
dgp
923a6774f6
merge 8.6
2019-05-11 12:57:35 +00:00
dgp
9ca29b09ae
merge 8.5
2019-05-11 12:49:46 +00:00
dgp
95d2a7f7c0
Revised documented advice that made obsolete reference to interp->result.
2019-05-11 12:48:53 +00:00
sebres
0d1ffc0968
testlinkarray: fixed cast to pointer from integer (and eliminate warning)
2019-05-10 18:32:09 +00:00
jan.nijtmans
b1139d3d20
If compiling with -DTCL_NO_DEPRECATED, make Tcl_GetStringResult() a macro. This opens up one more simplification for Tcl 9.
...
Compile the load-test dll's/so's with -DTCL_NO_DEPRECATED
2019-05-09 20:06:34 +00:00
jan.nijtmans
67ba502f34
Merge 8.6.
...
Fix compilation warning. No longer return linked adress as interp result in Tcl_LinkArra(): This is not documented, not tested, and simply dangerous: It leaks pointer values into the Tcl space.
2019-05-09 15:52:01 +00:00
jan.nijtmans
d232a6d28e
Minor compiler warning
2019-05-09 15:32:51 +00:00
dgp
b8b9618102
merge 8.6
2019-05-08 18:07:51 +00:00
dgp
5419f8e0ba
For historical/hysterical reasons, the (unused??) public routines Tcl_UpVar()
...
and Tcl_UpVar2() accept random garbage for a level argument (treat it as 1)
while the [upvar] command has come to reject such values as bad levels.
Add a test to call it to our attention if we ever change that disparity
so we do so only on purpose.
2019-05-08 18:06:23 +00:00
jan.nijtmans
9d68b2dbd1
Make more clear that TCL_INDEX_END|TCL_INDEX_NONE not necessary are int's (in Tcl 9 they are not).
...
Eliminate use of (local) list_index_t type
2019-05-08 06:53:00 +00:00
jan.nijtmans
f218c1f1eb
(cherry-pick from8.6): Japanese Reiwa (令和) era
2019-05-07 07:19:10 +00:00
dgp
a5482cc2a7
merge mark
2019-05-04 22:49:04 +00:00
dgp
cb411d059b
close fork
2019-05-04 22:46:58 +00:00
dgp
84f4682378
close fork
2019-05-04 22:44:47 +00:00
dgp
7ce4c19aa0
merge mark
2019-05-04 18:33:44 +00:00
dgp
06124df7de
merge 8.5
2019-05-04 18:32:39 +00:00
dgp
4909a5cc24
Plug memleak when deleting a namespace destroys a linked Tcl var.
2019-05-04 18:25:40 +00:00
Kevin B Kenny
845ae36548
merge 8.6 - missed basic.test on prior merge
2019-05-04 15:04:23 +00:00
Kevin B Kenny
951df2e52a
Japanese Reiwa (令和) era
2019-05-04 14:58:11 +00:00
Kevin B Kenny
55b6550aaa
Japanese Reiwa (令和) era
2019-05-04 14:49:58 +00:00
dkf
cd6fdc6976
Make sure we test [2c154a40be] explicitly. Part of [cc191552c]
2019-05-04 07:10:34 +00:00
dgp
a35dd18036
merge 8.6
2019-05-03 20:06:09 +00:00
dgp
48891ff56a
memleak demo test
2019-05-03 18:54:46 +00:00
dgp
5ee08fdf00
memleak demo test
2019-05-03 18:50:13 +00:00
dgp
79ac1a3b19
Plug memleak when deleting a namespace destroys a linked Tcl var.
2019-05-03 15:28:23 +00:00
dgp
8510dda2ac
missed bit of type revision.
2019-05-03 15:15:21 +00:00
dgp
7a0e892768
leak plug completed
2019-05-03 14:57:04 +00:00
dgp
915cd6b667
WIP
2019-05-01 22:37:36 +00:00
dkf
cedf26696f
Tests
2019-05-01 18:36:30 +00:00
dgp
d2dd1bf17d
Use exit handlers to prevent memleak of ZipFile struct in zipfs mounts.
2019-05-01 17:16:13 +00:00
dgp
057bc4e640
duplicate test names
2019-05-01 14:25:40 +00:00
dgp
b67323b4d4
merge 8.7
2019-05-01 13:54:27 +00:00
dgp
d1faa9b2b1
now testing....
2019-05-01 13:52:26 +00:00
pooryorick
f50dfbd504
merge bug-de232b49f2
2019-05-01 10:44:55 +00:00
pooryorick
89c677d626
Check for BG_FLUSH_SCHEDULED inside ChannelTimerProc
2019-05-01 10:44:10 +00:00
dkf
6937b4c670
Document it
2019-04-30 20:18:11 +00:00
dkf
fd0444bf94
Implementation of [file tempdir]; hand-tested on OSX...
2019-04-30 18:31:47 +00:00
dkf
ae1d2d2d40
Export API
2019-04-30 13:35:53 +00:00
dkf
688e4e8545
Windows implementation of TclpCreateTemporaryDirectory
2019-04-30 13:31:59 +00:00
dkf
c0c8a1cbd0
Starting to implement a temporary directory creator.
2019-04-30 07:44:20 +00:00
dgp
b3676ba87c
more WIP
2019-04-29 19:26:40 +00:00
dkf
3db1b8bbad
Advanced feature tests
2019-04-28 16:17:05 +00:00
dkf
7f8f3b946d
Basic tests
2019-04-28 16:01:57 +00:00
dkf
5bb0cef260
Documenting, both internally and in manpage
2019-04-28 07:11:39 +00:00
dkf
cd37605bd0
Remove unused variables
2019-04-27 18:08:53 +00:00
dkf
0710d7d955
Implement 383 as two commands for two scenarios: injection and probing
2019-04-27 17:56:49 +00:00
pooryorick
36073e502b
Fix for de232b49f2, write-only nonblocking refchan and Tcl internal buffers.
2019-04-27 07:19:49 +00:00
dgp
59a2032b5d
Track memory lifetimes in the zip mount/unmount.
2019-04-24 19:29:18 +00:00
dgp
b21bc1e84f
Plug memleak in [lpop] due to mishandling the unconventional recounting
...
practices of TclLsetFlat().
2019-04-24 14:29:41 +00:00
pooryorick
35396a7f5c
merge bug-67a5eabbd3d1
2019-04-24 04:52:22 +00:00
pooryorick
a0465a4be2
Add missed timer cleanup in tclIORChan.c/ReflectClose.
2019-04-24 04:04:46 +00:00
dkf
e42fbc68b9
Added primitive to allow working coroutine deep introspection
2019-04-23 14:24:53 +00:00
dkf
ba3eca6d7e
Minor code style cleanup.
2019-04-23 13:47:52 +00:00
pooryorick
2a04ff4dd5
Ensure that Tcl_CreateTimerHandler is not called if there is an existing timer
...
already scheduled.
2019-04-23 12:59:20 +00:00
pooryorick
70d68cb355
Fix for [67a5eabbd3d1], refchan, coroutine, and postevent from the "watch"
...
proc.
2019-04-23 11:29:16 +00:00
dkf
2306d12442
timerate: code style, doc style
2019-04-23 06:50:02 +00:00
dkf
eaf90743ee
timerate: code style, doc style
2019-04-23 06:43:08 +00:00
dkf
1e9a4512c7
timerate: code style, doc style
2019-04-23 06:28:28 +00:00
dgp
0f9539f838
Stop leaking ZipFile in MountBuffer()
2019-04-22 15:15:47 +00:00
dgp
e240d7269b
Prevent reads of uninitalized memory.
2019-04-22 14:56:31 +00:00
dgp
e85c55bb57
[zipfs mount_data] should not accept three arguments.
2019-04-22 14:09:48 +00:00
dkf
8b9a3558a4
Compilation for [dict getwithdefault].
2019-04-18 22:57:12 +00:00
dkf
9cf9c0a5e5
Style corrections and warning elimination
2019-04-18 08:31:11 +00:00
sebres
407ebf2899
merge 8.5
2019-04-17 20:00:37 +00:00
sebres
0cced28f38
extend performance test-suite, allow several (repeatable) execution of _test_run (if encosed in _test_start/_test_out_total) to produce same summary; provide possibility for measure of single iterators, etc.
...
small code review
2019-04-17 19:59:13 +00:00
dgp
522f29c7cc
Replace memcpy() calls with memmove() to avoid undefined behavior when
...
source and destination overlap.
2019-04-17 19:23:56 +00:00
dgp
80d050ece4
Do not access allocated memory before initializing it.
2019-04-17 17:45:55 +00:00
dgp
dadad672af
test file hygiene
2019-04-17 16:56:55 +00:00
dgp
d227a324cd
Duplicate test names.
2019-04-17 16:32:53 +00:00
dgp
12486f233f
The [namespace delete ::httpTest] at the end of httpPipeline.test failed to
...
also undo the custom [::http::Log] command it put in place. This dangling
command was left broken and made much failure.
Revised httpTest.tcl to use a trace to tidy up after itself.
2019-04-17 16:26:03 +00:00
dgp
1d896481cf
[60559fd4a6] Test more robust against frame contexts of testing environment.
2019-04-17 15:08:25 +00:00
dgp
05509bdd77
Revise coroutines tests so they do not leave behind frame footprints that
...
can interfere with other tests.
2019-04-17 14:34:42 +00:00
dgp
68c28bd274
Isolate tests of [info frame] results from testing environment.
2019-04-17 14:28:51 +00:00
dgp
f720f4cad5
Isolate tests of [info frame] results from testing environment.
2019-04-17 14:25:59 +00:00
dkf
25fb160692
Implement TIP 342
2019-04-16 13:25:39 +00:00
dkf
bcca980f06
Add [dict getdef] alias
2019-04-15 19:57:54 +00:00
dkf
564d3a1a7b
Doc tweak
2019-04-14 15:14:50 +00:00
dkf
a929d96cba
Implement TIP 504
2019-04-14 14:37:12 +00:00
dkf
0640ff837f
Implement TIP 367
2019-04-14 14:17:57 +00:00
dkf
8f940bfbb8
Implement TIP 312
2019-04-14 14:17:14 +00:00
dkf
e539ce9a7e
Implement TIP 160
2019-04-14 14:15:30 +00:00
dkf
e2dcb52134
Removed TCL_LINK_ALLOC; it wasn't used.
2019-04-14 07:52:16 +00:00
dgp
bd300c252a
merge 8.7
2019-04-12 20:16:02 +00:00
dgp
c307971f0e
merge 8.7
2019-04-12 20:15:37 +00:00
dgp
6ae823b6b7
merge 8.7
2019-04-12 19:44:34 +00:00
dgp
3947892f31
merge 8.7
2019-04-12 19:21:08 +00:00
dkf
1dbc626f0f
Suggested fix for [60559fd4a6]: put selected tests in child interps
2019-04-11 21:39:50 +00:00
jan.nijtmans
71ae5810dc
Merge 8.6
2019-04-11 20:37:37 +00:00
jan.nijtmans
7df97e9292
Only use special mp_sqrt() code when double format/tommath format are exactly what's expected. Otherwise, use original always-working tommath code.
...
Simplify overflow check in bignum expononent code, not using bignums where it's not necessary.
Don't overallocate bignums when using wideint's only.
2019-04-11 20:09:27 +00:00
sebres
9f9c9efac0
merge 8.6 (conflicts resolved, changes on tests/cmdMZ.test in [4cb9044dfa] reverted - timerate is supported in 8.7)
2019-04-11 09:52:20 +00:00
sebres
417474f1fd
merge 8.5
2019-04-09 19:39:08 +00:00
sebres
6fb4854406
closes [940ce8f958] - tests/cmdMZ.test: avoid import timerate to global NS in tests (e. g. using tcltest -singleproc 1 -file 'cmdMZ* namespace*')
2019-04-09 19:37:55 +00:00
sebres
817da23169
merge 8.5
2019-04-09 10:33:59 +00:00
sebres
f2c8c6c408
closes [1e5e25cf2b] - tests/cmdMZ.test: fixed NRT-related sleeps (and time-related corner cases and test expectations);
...
todo: rewrite several tests if monotonic clock is provided resp. command "after" gets microsecond accuracy (RFE [fdfbd5e10] gets merged)
2019-04-09 10:31:36 +00:00
dkf
747b668676
Clarified some documentation
2019-04-09 09:18:59 +00:00
dkf
d96dda52c4
Added missing test case
2019-04-09 09:11:31 +00:00
jan.nijtmans
869730bf85
Merge 8.6
2019-04-09 08:46:04 +00:00
jan.nijtmans
e4912abbd2
Add --disable-shared builds on win32/win64 (mingw-w64)
2019-04-09 08:42:37 +00:00
andy
9b1a75a1cc
Correct minor documentation typo
2019-04-09 03:11:14 +00:00
jan.nijtmans
6ed025f0c6
Fix clang compiler warning in tclZlib.c. Clear execute bit in two encodings
2019-04-08 21:25:33 +00:00
jan.nijtmans
1749b4cc87
Add test-cases for win32/win64 --disable-shared, and put standard --enable-threads
2019-04-08 19:31:10 +00:00
sebres
0305f67f88
merge bug-45b9faf103f2, fewer destructive TclObjLookupVarEx, closes [45b9faf103f2]
2019-04-08 15:35:29 +00:00
sebres
3a8a841386
closes [45b9faf103f2] (tclVar cached lookup): fixes segfaulting if variable released before set; partially revert [4100488a3ca38abf]
2019-04-08 15:03:13 +00:00
dgp
f1eba71130
typo fix
2019-04-08 14:02:01 +00:00
dgp
8e7402f6f2
extend comment
2019-04-08 13:54:04 +00:00
dgp
1bef1aacd2
merge 8.7
2019-04-08 13:49:35 +00:00
pooryorick
c1de90d70a
Improve test for last commit fixing [45b9faf103f2].
2019-04-08 13:38:19 +00:00
pooryorick
f4882bb16f
Fix for [45b9faf103f2], [try] interaction with local variable names produces
...
segmentation fault.
2019-04-08 13:01:18 +00:00
jan.nijtmans
02225865e4
Merge 8.7, and fix build problem on Windows
2019-04-07 14:39:45 +00:00
jan.nijtmans
00c94ffc5d
Merge 8.6
2019-04-05 21:15:01 +00:00
jan.nijtmans
96bf31bbbd
Take over recent improvements from libtommath after version 1.1.0.
2019-04-05 20:56:24 +00:00
dkf
e0b6a53069
More efficient version (after feedback from KBK). Better test too.
2019-04-05 18:37:44 +00:00
jan.nijtmans
0dfee54d3f
Merge libtommath
2019-04-05 17:00:45 +00:00
jan.nijtmans
689987ea92
Take over improvements from libtommath's development branch (which will appear in next version).
...
- More efficient MP_SET_XLONG() macro.
- New internal macro's IS_ZERO/IS_EVEN/IS_ODD
- Changed signature for XMALLOC/XREALLOC/XFREE
2019-04-05 16:58:41 +00:00
jan.nijtmans
b1266f39d8
Relax timing for some socket tests a little bit. Hopefully this fixes the spurious hangs on Travis builds there.
2019-04-05 16:46:14 +00:00
dkf
52458f51bc
Clean up and refactor a bit
2019-04-04 23:47:38 +00:00
dkf
52d83cb65d
Now with fewer memory leaks
2019-04-04 23:08:05 +00:00
dkf
3c6834dbe3
Fix unsigned wide linking.
2019-04-04 22:48:15 +00:00
dkf
c4cf1a4e2c
Split up tests to get better focus on what is being tested
2019-04-04 08:52:43 +00:00
dkf
cbb2ececd3
Docs
2019-04-03 12:22:07 +00:00
dkf
515da61c9d
refactor; mark broken tests as broken
2019-04-03 09:36:33 +00:00
dkf
ad137eb4b2
Some fixes. Still broken on 64-bit systems
2019-04-03 09:08:37 +00:00
dkf
d1069c7b4f
Import of TIP 312 implementation
2019-04-03 07:58:17 +00:00
jan.nijtmans
68d03f6af8
merge-mark
2019-04-02 18:23:43 +00:00
jan.nijtmans
9d183921c9
Fix gcc warning on 32-bit platforms
2019-04-02 18:21:09 +00:00
jan.nijtmans
384b9de6bb
Modify testbytestring such that is only produces pure byte-arrays, if not it errors out.
...
Modify Tcl_NewIntObj/Tcl_NewBooleanObj -> Tcl_NewWideIntObj. Less references to "long" datatype.
2019-04-01 19:36:20 +00:00
dgp
dab604e786
typos
2019-04-01 16:15:45 +00:00
sebres
fef5802d1e
merge 8.6 (merge-point only, no functional changes)
2019-04-01 14:30:13 +00:00
sebres
95068d8d48
merge 8.6
2019-04-01 14:24:48 +00:00
sebres
b938ddd055
integrate sebres-8-6-tommath-1-1 - cherry-picking of several optimizations and simplifications of 8.7 (tommath 1.1), well-arranged branching of long/wide/bignum base and exponent cases, test-cases extended to cover all this branches and edge cases.
2019-04-01 14:22:08 +00:00
sebres
2b8e087252
merge 8.5
2019-04-01 14:00:42 +00:00
sebres
01dccf28f9
closes [1a3fa1232e306a44], test case cmdMZ-6.5 fixed to cover float value by iteration per second
2019-04-01 13:53:54 +00:00
sebres
89fee22341
timerate: avoid divide by zero by no iterations in measurement cycle (e. g. count is 0)
2019-04-01 13:51:46 +00:00
dkf
325bbf5792
Document
2019-04-01 10:51:33 +00:00
dkf
8d4509eafc
Add tests
2019-04-01 10:38:47 +00:00
dkf
d2fb211d20
Implement [dict getwithdefault]
2019-04-01 08:48:16 +00:00
dkf
3471a570b6
Added documentation
2019-03-30 12:54:52 +00:00
dkf
83f6cc3841
Tests, and reduce number of copies.
2019-03-30 12:41:59 +00:00
dkf
d78f576dc5
Implementation of [lremove].
2019-03-30 10:36:58 +00:00
dkf
8ac5057a32
Support -winsize read-only option
2019-03-29 14:22:23 +00:00
dkf
5624496889
Oops
2019-03-29 11:57:23 +00:00
jan.nijtmans
0817b5a4ef
Merge 8.6
2019-03-28 21:21:49 +00:00
jan.nijtmans
abf9722f42
Turn KARATSUBA_MUL_CUTOFF (insize libtommath) et al into a #define in stead of exported int symbols.
2019-03-28 20:59:03 +00:00
dkf
99c5fed89e
Tests, but not working ones...
2019-03-28 13:11:58 +00:00
dkf
ba13f3330a
Documentation
2019-03-28 10:53:55 +00:00
jan.nijtmans
74e4654447
Make Tcl_StringMatch() into a wrapper macro around Tcl_StringCaseMatch()
2019-03-27 23:48:10 +00:00
dkf
f787bc7152
Implement -closemode
2019-03-27 21:14:46 +00:00
jan.nijtmans
e30b6432e1
Merge 8.6
2019-03-27 20:21:58 +00:00
jan.nijtmans
d74f47cb2a
merge-mark
2019-03-27 20:14:37 +00:00
jan.nijtmans
230de714e7
Update TZ info to tzdata2019a
2019-03-27 20:13:25 +00:00
jan.nijtmans
9535d1ecdc
Document maximum value for right argument of '**' operator.
...
Adapt test-cases to test for exactly one more than this maximum value.
Make sure that the maximum is the same for DIGIT_BIT > 28.
Change macro's for mp_iseven()/mp_isodd() so they don't depend on value of DIGIT_BIT any more.
2019-03-27 20:05:26 +00:00
dkf
bc322bfae7
Partial implementation on Windows. UNTESTED
2019-03-27 13:54:18 +00:00
dkf
7ff500ca4d
Add autoconf support
2019-03-27 08:29:13 +00:00
José Ignacio Marín
40c2f59cf4
Update TZ info to tzdata2019a.
2019-03-26 22:23:57 +00:00
José Ignacio Marín
9eb32ba719
Update TZ info to tzdata2019a.
2019-03-26 22:23:23 +00:00
jan.nijtmans
2d46cfab69
Additional protection for ridiculously big exponents, in case libtommath is compiled with DIGIT_BIT=60 in stead of 28.
2019-03-26 16:22:22 +00:00
jan.nijtmans
6c1d937172
merge-mark
2019-03-25 21:52:34 +00:00
jan.nijtmans
6d27f27fe6
Eliminate all usage of mp_iszero/mp_iseven/mp_isodd/mp_isneg from libtommath: In the upcoming new version those will become real functions, causing possible binary incompatibility. This change makes Tcl independant from libtommath's changes.
2019-03-25 21:50:34 +00:00
dkf
4701c749af
Better handling, reset capabilty, and ensure that inherited channels are correct
2019-03-24 22:08:26 +00:00
dkf
8d4ff7c84a
Start of implementation of TIP 160: better terminal control
2019-03-24 18:44:45 +00:00
jan.nijtmans
d64266c046
Since only bytes 0xF0 - 0xF4 can be the first byte of a valid 4-byte UTF-8 byte sequence, account for that in Tcl_UtfCharComplete().
2019-03-24 16:50:24 +00:00
jan.nijtmans
aaf56c8086
Since only bytes 0xF0 - 0xF4 can be the first byte of a valid 4-byte UTF-8 byte sequence, account for that in Tcl_UtfCharComplete(). Only effective when TCL_UTF_MAX>3
2019-03-24 16:46:27 +00:00
jan.nijtmans
f080055506
Since only bytes 0xF0 - 0xF4 can be the first byte of a valid 4-byte UTF-8 byte sequence, account for that in Tcl_UtfCharComplete(). Only effective when TCL_UTF_MAX>3
2019-03-24 16:43:41 +00:00
jan.nijtmans
0f1fe8880d
Make all internal small buffer related to Tcl_UtfBackslash() length 4, not TCL_UTF_MAX: For TCL_UTF_MAX=6 it was overkill, for TCL_UTF_MAX=3 not enough.
...
Prove that this works by adding a Travis CI build configuration using TCL_UTF_MAX=3
2019-03-24 13:02:45 +00:00
jan.nijtmans
af74f1af12
Add some test-cases with longer backslash sequences, to test for internal buffer overflows.
2019-03-22 20:44:36 +00:00
pooryorick
69c460065e
lots of changes to the "info" page. Replace "command procedure" with "routine"
...
in Tcl.n.
2019-03-22 15:08:06 +00:00
pooryorick
079965ccb5
Make the html target work under more circumstances.
2019-03-22 15:05:51 +00:00
jan.nijtmans
7afcb333c4
Add entry for 元号 (or NewEra placeholder) to Unicode tables. Since Tcl doesn't do rendering, this prepares Tcl for the expected may 1 event. See: [ http://blog.unicode.org/2018/09/new-japanese-era.html ]
2019-03-21 20:10:24 +00:00
jan.nijtmans
c4f3c560ab
Add entry for 元号 (or NewEra placeholder) to Unicode tables. Since Tcl doesn't do rendering, this prepares Tcl for the expected may 1 event. See: [ http://blog.unicode.org/2018/09/new-japanese-era.html ]
2019-03-21 20:09:25 +00:00
jan.nijtmans
2c246b85fa
Add entry for 元号 (or NewEra placeholder) to Unicode tables. Since Tcl doesn't do rendering, this prepares Tcl for the expected may 1 event. See: [ http://blog.unicode.org/2018/09/new-japanese-era.html ]
2019-03-21 20:06:39 +00:00
jan.nijtmans
9d9c83fd39
Remove incorrect comment.
...
Simplify handling of last bytes in Tcl_UniCharToUtfDString(), since TclUtfToUniChar() already turns out to handle cp1252 fall-back correctly.
2019-03-21 19:56:55 +00:00
jan.nijtmans
f9944f5235
Fix outdated comment
2019-03-21 07:45:32 +00:00
jan.nijtmans
d8ec6222e8
Fix Tcl_UtfToUniCharDString() function, handling invalid byte at the end of the string: Not quite correct for bytes between 0x80-0x9F, according to TIP
2019-03-20 22:45:51 +00:00
jan.nijtmans
04ea3b8bff
Comment Comment Tcl_UniCharToUtf() better, what happens handling surrogates. Add type cast in tclUtf.c, making actual check clearer
2019-03-18 22:32:37 +00:00
jan.nijtmans
ec4d7da07d
enlarge a few small buffers, which could overflow using Unicode characters > /UFFFF. Eliminate some end-of-line spacing
2019-03-18 22:14:24 +00:00
jan.nijtmans
c92353bea9
For Tcl >= 8.7, always compile-in the extended Unicode tables, no matter the value of TCL_UTF_MAX. Do this in all Tcl versions, in order to prevent merge conflicts in future Unicode table updates.
2019-03-17 22:16:41 +00:00
jan.nijtmans
c73dcaad20
For Tcl >= 8.7, always compile-in the extended Unicode tables, no matter the value of TCL_UTF_MAX. Do this in all Tcl versions, in order to prevent merge conflicts in future Unicode table updates.
2019-03-17 22:15:36 +00:00
jan.nijtmans
d164d828d7
For Tcl >= 8.7, always compile-in the extended Unicode tables, no matter the value of TCL_UTF_MAX. Do this in all Tcl versions, in order to prevent merge conflicts in future Unicode table updates.
2019-03-17 22:13:34 +00:00
jan.nijtmans
2ff70c01f6
Eliminate usage of mp_isneg(), just check bignum->sign directly (as libtommath itself does)
...
Make TclInitBugnumFromLong() a static function in stubtable only, as it isn't used by Tcl anymore.
2019-03-15 20:52:25 +00:00
jan.nijtmans
d7fe4af621
Make internal libtommath stub entries deprecated: Those are not supposed to be called in extensions
2019-03-14 19:52:55 +00:00
jan.nijtmans
8e7a963f7f
Change TCHAR -> WCHAR in many places, since that's what it is since Windows NT
2019-03-11 20:32:48 +00:00
jan.nijtmans
3e3f2b1354
Improve parsing of -xchar option for serial channels: Allow full 8-bit range (correct UTF-8 handling), and let UNIX/win32 produce the same error-message in case of char > 0xFF
2019-03-11 20:30:28 +00:00
jan.nijtmans
cda174b1aa
Fix [590e687905]: utf-1.11 test-case fails
2019-03-11 20:25:57 +00:00
jan.nijtmans
934e6a9837
re-implemente changes in win/tclWinFile.c (handling -DTCL_UTF_MAX=6) using 3 new utility functions. This allows to re-use code in more places: cleaner implementation more future-proof.
2019-03-10 20:18:48 +00:00
jan.nijtmans
2b821c69de
Make -DTCL_UTF_MAX=6-build work on win32. Add travis builds to prove it.
2019-03-08 21:27:42 +00:00
jan.nijtmans
2cba0bf573
Use mp_get_bit() instead of mp_iseven()/mp_isodd(): Those latter functions are macro's currently, but will be real function in next libtommath. Bad idea for Tcl to depend on ...
2019-03-08 19:54:37 +00:00
jan.nijtmans
eb0e31e945
Code cleanup: less (size_t) casts
2019-03-08 19:51:26 +00:00
dgp
3e074a01a2
merge 8.6
2019-03-08 14:47:45 +00:00
dgp
df5dff9008
[39fed4dae5] Make sure return value from Tcl_PkgRequire*() survives long enough
...
for caller to use it.
2019-03-08 14:46:26 +00:00
sebres
2680fee6ce
merge 8.5 (perf-test)
2019-03-08 04:42:42 +00:00
sebres
2d4e87b986
fixed mistake ($howmuch is substituted in tests and can be larger as last event index created by too small measurement time).
2019-03-08 04:35:41 +00:00
dgp
c5abbcaaf4
In the 8.6.* releases, Tcl_GetStringResult() still passes through interp->result.
...
Have to ask specifically for the string rep of the value we want.
2019-03-07 22:13:25 +00:00
jan.nijtmans
42e81a69ad
Fixes for TCL_UTF_MAX=6, (gcc compiler warnings). Also make everything work on win32/win64. Patch adapted from Androwish (thanks, Werner!)
2019-03-07 22:02:41 +00:00
jan.nijtmans
1bbb597217
Fix gcc compiler warning
2019-03-07 21:59:22 +00:00
dgp
15ff4cc2de
Integrate the test, which seems to indicate the bug fix doesn't work.
...
More to come....
2019-03-07 20:24:53 +00:00
dgp
68061dfef2
Merge forward to demonstrate the test fails after the bug arrived.
2019-03-07 20:05:01 +00:00
dgp
781c32ac29
[39fed4dae5] Proposed test
2019-03-07 20:02:09 +00:00
apnadkarni
1763220f4e
(core-8-6-branch merge)
...
Fix automatic pkgIndex generation for multiplatform installs.
2019-03-07 14:17:38 +00:00
apnadkarni
d37dcc7d71
Fix automatic pkgIndex generation for multiplatform installs
2019-03-07 14:12:44 +00:00
jan.nijtmans
efadd7170e
Merge 8.6. Remove unneeded code from init.tcl
2019-03-07 08:31:44 +00:00
jan.nijtmans
65baf6c706
Fix some gcc/MSVC (harmless) compiler warnings. Remove some unnecessary end-of-line spacing
2019-03-07 08:00:29 +00:00
jan.nijtmans
fa0f595cf9
Fix [9471e6e304]: InitWinEnv not thread safe
2019-03-07 07:58:39 +00:00
sebres
3e2014216a
part of [db95e7a61e] reverted for consistency reasons: unsupported namespace is exported in previous versions (so this is more compatible to 8.5/8.6).
2019-03-06 12:25:11 +00:00
apnadkarni
fa78a0da14
V1.3. PLATFORM_IDENTIFY, MULTIPLATFORM_INSTALL macro, optionally copy PDBs.
...
The PLATFORM_IDENTIFY macro matches the output of Tcl's platform::identify and is meant to permit extensions to pick a platform-specific directory for binaries.
MULTIPLATFORM_INSTALL can be set by extensions to install into a platform specific subdirectory as returned by the platform::identify Tcl command. The default automatic pkgIndex.tcl is modified accordingly.
If OPTS=pdbs is set, the default install target will also copy PDBS.
2019-03-06 11:26:29 +00:00
apnadkarni
1d47b2fc79
V1.3. PLATFORM_IDENTIFY, MULTIPLATFORM_INSTALL macro, optionally copy PDBs.
...
The PLATFORM_IDENTIFY macro matches the output of Tcl's platform::identify
and is meant to permit extensions to pick a platform-specific directory for
binaries.
MULTIPLATFORM_INSTALL can be set by extensions to install into a platform
specific subdirectory as returned by the platform::identify Tcl command.
The default automatic pkgIndex.tcl is modified accordingly.
If OPTS=pdbs is set, the default install target will also copy PDBS.
2019-03-06 06:26:36 +00:00
dgp
7ca040ad88
[39fed4dae5] Minimal fix for volatile lifetime of string returned by
...
Tcl_PkgRequire().
We need a test for this ticket to go in the test suite.
2019-03-06 01:42:13 +00:00
jan.nijtmans
58bdb3f389
Remove double macro's. Resolve quotes in travis configuration: it doesn't work
2019-03-05 19:58:33 +00:00
sebres
b930511d5b
integrate dgp-sebres-timerate-review: no functional changes (already backported)
2019-03-05 18:02:33 +00:00
sebres
a3ad83e5f8
timerate is supported in 8.7
2019-03-05 17:39:05 +00:00
sebres
df27b4e4e0
merge 8.6 (TIP#527, New measurement facilities in TCL: New command timerate, performance test suite)
2019-03-05 17:34:31 +00:00
sebres
78000f7f87
integrate sebres-8-6-timerate, merge 8.5 (TIP#527, New measurement facilities in TCL: New command timerate, performance test suite)
2019-03-05 16:59:41 +00:00
sebres
bc27eb2430
merge sebres-8-5-timerate (TIP#527 - New measurement facilities in TCL: New command timerate, performance test suite)
2019-03-05 16:25:17 +00:00
sebres
d9929185f3
merge updated 8.5-timerate branch
2019-03-05 16:13:23 +00:00
sebres
2e2fdf481a
extended performance test-suite, since max-count is implemented in timerate, usage ::tclTestPerf::_test_run ?-no-result? reptime lst ?outcmd?;
...
update timer-event.perf.tcl for better readability (covering execution in multiple iterations now regarding max-count, so provides more precise result now);
removed unused test-cases here (new cases of event-perf-branch only).
2019-03-05 15:46:31 +00:00
sebres
1568393cf3
back-porting other performance test (timer-event.perf.tcl) from event-perf-branch
2019-03-05 12:58:11 +00:00
sebres
6d9266494b
back-porting test-performance suite and clock.perf.tcl from clock-speedup branch
2019-03-05 12:56:22 +00:00
sebres
b424e06193
helper to import timerate on demand in unknown/autoload proceeding.
2019-03-05 11:28:54 +00:00
sebres
00f20c7d65
regarding the TIP#527, timerate shall be placed into ::tcl::unsupported in versions prior to 8.7
2019-03-05 11:22:30 +00:00
sebres
e50b8ab068
highlighting
2019-03-05 10:07:53 +00:00
sebres
18c4dc903a
amend: html-code order changed
2019-03-04 20:50:39 +00:00
sebres
ecc6d3264b
tools/tcltk-man2html: html-code for micro (sec) character
2019-03-04 20:40:54 +00:00
sebres
a548454c57
re-integrates the changes from the TIP#527 description into the manpage
2019-03-04 20:39:09 +00:00
jan.nijtmans
10591b96c8
Various tommath/numeric related optimizations:
...
- Remove the DD_STEEL formatter: it isn't used anywhere in Tcl, and not recommended.
- Remove double limit-checks, which are already done inside mp_to_unsigned_bin_n()
2019-03-02 18:15:36 +00:00
jan.nijtmans
c561b0e117
Add build with -DTCL_UTF_MAX=6 to travis CI. Also fix 2 gcc compiler-warnings occurring with -DTCL_UTF_MAX=6
2019-03-02 17:21:43 +00:00
jan.nijtmans
d0eefe67c8
Minor optimization in UTF-8 handling, and add some comments describing how Tcl_UniCharToUtf() handles surrogates.
2019-03-02 16:52:42 +00:00
jan.nijtmans
0801e742ab
Fix some "scan.test" test-cases when TCL_UTF_MAX=4. Wrongly resolved merge-conflict in previous cherry-pick merge.
2019-03-02 16:35:26 +00:00
jan.nijtmans
2d96b842de
Merge 8.6 (one forgotten adaptation of surrogate handling, only compiled on Cygwin)
2019-03-02 16:08:40 +00:00
jan.nijtmans
bfaca50963
Backport [bd94500678e837d7] from 8.7, preventing endless loops in UTF-8 conversions when handling surrogates. Only effective when compiling with -DTCL_UTF_MAX=4|6 (default: 3). Meant for benefit of Androwish.
2019-03-02 16:04:59 +00:00
jan.nijtmans
921a0bbbfb
More use of TclHasIntRep() macro. Add vfs build director to fossil ignore-glob
2019-03-01 21:05:25 +00:00
jan.nijtmans
5a0260cbcc
Update Unicode tables to version 12.0
2019-03-01 21:01:46 +00:00
dgp
420d238d70
A confusion about signed vs unsigned comparision caused Tcl_UtfToUniChar()
...
to return the wrong answer (contents of random memory) for each single byte
UTF-8 in the input. This commit fixes that bug. More commentary on
https://core.tcl-lang.org/tcl/tktview/bd94500678
2019-03-01 20:24:31 +00:00
jan.nijtmans
cc3041cee0
Update all internal tables to Unicode 12.0
2019-03-01 20:11:33 +00:00
jan.nijtmans
809bbc79fb
Update internal tables to Unicode 12.0
2019-03-01 20:10:43 +00:00
jan.nijtmans
050b6c3d5f
Fix [bd94500678e837d7]: SEGFAULT by conversion of unicode (out of BMP) to byte-array
2019-02-27 21:29:43 +00:00
jan.nijtmans
f04b875d88
More use of (efficient) TclHasIntRep() macro. Also eliminate many (size_t) and (unsigned) type-casts, which don't make sense any more.
2019-02-27 08:34:05 +00:00
jan.nijtmans
4fdbe79875
Merge 8.6
2019-02-25 21:13:48 +00:00
jan.nijtmans
a29e4e5b15
Merge 8.5
2019-02-25 21:12:53 +00:00
jan.nijtmans
57d9952ece
Finish complete fix, all corner-cases correct now. Also spurious UTF-8 testcase failure (as seen on travis) fixed now.
2019-02-25 21:10:33 +00:00
dgp
cbd7fd7dec
New internal macro TclHasIntRep() to re-encapsulate the typePtr field.
2019-02-25 19:50:43 +00:00
dgp
1eba3f12e0
merge 8.7
2019-02-25 17:06:38 +00:00
jan.nijtmans
82c3e7df6d
Move from trusty -> xenal for travis builds. Also add build on Mojave (xcode 10.2)
2019-02-24 18:40:32 +00:00
jan.nijtmans
9acb35c45d
Merge 8.6
2019-02-24 17:19:09 +00:00
jan.nijtmans
dc75a4866c
Merge 8.5
2019-02-24 17:15:51 +00:00
jan.nijtmans
6806ca9630
No longer run socket test-cases on travis with OSX: There are too many random failures/hangups.
2019-02-24 17:05:14 +00:00
dgp
68c0005c84
Revert recent commit that breaks the encapsulation interface of TIP 445.
...
That encapsulation was put in place to support feature evolution such as
that in the dgp-properbytearry branch, which is now a nightmare of merge
conflicts.
TIP 445 was approved. Please respect it. Where it needs revision or improvement
let's work together to TIP those changes.
2019-02-22 17:32:49 +00:00
jan.nijtmans
e15d1f5f79
Merge 8.7
2019-02-19 20:21:32 +00:00
jan.nijtmans
b752d879c7
Merge 8.6
2019-02-19 20:16:25 +00:00
jan.nijtmans
886343e50b
Fix some comments: "upper" -> "high" (when talking about surrogates)
2019-02-19 20:12:06 +00:00
jan.nijtmans
9589c85462
Minor optimizations
2019-02-19 19:38:10 +00:00
jan.nijtmans
2473a591bf
Proposed fix for [bd94500678]: SEGFAULT by conversion of unicode (out of BMP) to byte-array.
2019-02-18 20:48:59 +00:00
jan.nijtmans
52ed230e6f
Merge 8.6
2019-02-18 20:39:48 +00:00
jan.nijtmans
d273753223
Don't use TclUniCharIsSpace() in command-line handling: the windows command-line is not aware of Unicode spaces, only ASCII ones.
2019-02-18 20:38:23 +00:00
dgp
a475e0b1ee
merge 8.7
2019-02-14 20:05:11 +00:00
dgp
5fd6fc8ae4
Improve portability of path constructions.
2019-02-14 19:34:39 +00:00
sebres
fc24d0b9cf
small amend unfolding list "$tcl_library/http" (previously it was result of glob)
2019-02-14 10:56:48 +00:00
sebres
85b1f06c9c
closes [b322938e08]: fix several zipfs-tests searching for single "http" directory in (compressed) tcl-library.
2019-02-14 10:42:49 +00:00
sebres
b24cecb582
merge 8-5-timerate (?max-count?, break possibility, diverse fixes) + windows time-calibration cycle optimization [f6637d3dd8] (clock ticks never backwards, more precise and smooth drifting)
2019-02-13 02:57:07 +00:00
sebres
963cceee57
timerate documentation extended
2019-02-13 01:22:07 +00:00
sebres
5add43aac8
timerate: extended with ?max-count? optional parameter, code review and more tests
2019-02-13 01:10:16 +00:00
sergey.brester
2d41d8b6e2
small amend (correct wrong utf-8 prevention for micro sign in RE of check test-case)
2019-02-12 20:40:12 +00:00
sergey.brester
f7183b361e
few test cases for timerate command
2019-02-12 20:37:11 +00:00
sergey.brester
e0587d1564
fixes estimated time of too short execution considering calibrated overhead (it is 0us and not 1us, example: timerate {break} with and without calibration)
2019-02-12 19:46:29 +00:00
sergey.brester
6a355b11a6
timerate: allow break from measurement cycle (usable to provide conditional stop possibility inside timerate)
2019-02-12 19:38:46 +00:00
sergey.brester
1890d482a7
cherrypick [8ad25ef9eb] from 8.6 - timerate: added dynamic factor by threshold calculation (avoid growing of the execution time if iterations are not consistent, e. g. wax continuously on time)
2019-02-12 19:35:37 +00:00
sergey.brester
9a62e42dd6
merge 8.5 (note: to avoid too many conflicts, merged using fossil merge --baseline 0055a16a8b core-8-5-branch)
2019-02-12 18:41:24 +00:00
jan.nijtmans
e66cb0c31e
Convert Tcl_BacktroundError() into a macro, so we can deprecate the stub entry for it.
...
Add -Wpointer-arith warning to CFLAGS
2019-02-09 21:05:49 +00:00
sebres
4b4a960bfb
timerate: added dynamic factor by threshold calculation (avoid growing of the execution time if iterations are not consistent, e. g. wax continuously on time)
2019-02-07 21:20:52 +00:00
sergey.brester
0a876f8e00
merge 8.6(.9), conflicts resolved
2019-02-07 15:45:42 +00:00
sebres
445aa5833b
tests/httpcookie.test: apply "-load" option for this test (in order to provide/overwrite library/path to fit correct sqlite3 library for the test)
2019-02-06 18:29:37 +00:00
sebres
9d568b1bdd
fixes segfault [bd94500678]: Tcl_UtfToUniChar/TclUtfToUniChar could don't advance source pointer in case it produce high surrogate, so it should be repeated with the same value of ch (returned previously), in order to generate low surrogate hereafter (and to avoid endless cycle).
2019-02-05 21:59:46 +00:00
sebres
73b6b4eab6
optimize WidePwrSmallExpon (exponent is <= 16), this will huge decrease assembled code on x86 (113 vs 220 instructions)
2019-02-04 15:14:58 +00:00
sebres
0fcfbd81df
code review
2019-02-04 14:40:04 +00:00
sebres
cf1edde4f6
cherry pick of [238bd4d2c053540c]..[31dd092df4b57fdb]: More simplifications in tclExecute.c (INST_EXPON), much more and well-arranged branching of long/wide/bignum base and exponent cases, test-cases extended to cover all this branches and edge cases.
2019-02-04 12:24:58 +00:00
sebres
08d4e75deb
partial cherry pick of [e8e92eb381d689ab]: One more libtommath function, mp_tc_div_2d, which simplifies code.
2019-02-04 09:40:27 +00:00
sebres
bcd9ec5103
partial cherry pick of [c5c83014d6]: Many simplifications in tclExecute.c, now that libtommath provides new functions mp_tc_and, mp_tc_or and mp_tc_xor
2019-02-04 09:21:25 +00:00
jan.nijtmans
3106f9a695
merge-mark
2019-02-01 20:02:00 +00:00
jan.nijtmans
04ed7f99da
Update libtommath to latest stable release (1.1.0)
2019-02-01 20:00:04 +00:00
sebres
9a35ff9fad
merge 8.6 (regression fix [e3f481f187], conflicts resolved)
2019-02-01 16:06:53 +00:00
sebres
997b332284
speedup "process.test" using signal (via file delete) for the child-process it could exit immediatelly (to avoid sleep and time-related issues).
2019-02-01 15:56:18 +00:00
sebres
99be2974c3
merge fix [e3f481f187] regression to lookup non-ASCII proc/lambda formal arguments (TclCreateProc/TclPushVarName)
2019-02-01 13:20:57 +00:00
jan.nijtmans
09eafa22a7
fix [f559bbde4e]: TclInt.h: tclUnixPort.h:162:13: fatal error: ../compat/unistd.h: No such file or directory
2019-01-31 22:42:14 +00:00
jan.nijtmans
d0613a0556
Make TclIsPureByteArray() a macro, since it's only doing a single compare. Other internal simplifications/code duplication. No functional change, only optimizations
2019-01-31 22:23:15 +00:00
jan.nijtmans
4c3bb3d6ba
Merge 8.6
2019-01-31 21:08:40 +00:00
jan.nijtmans
3aabb2ae35
Fix [0238027108]: Tcl_ParseArgsObjv TCL_ARGV_CONSTANT documentation error
2019-01-31 21:01:25 +00:00
sebres
272e429c2c
TclPushVarName: rewritten iterators over token-strings considering utf-8 multi-bytes.
2019-01-31 16:22:45 +00:00
sebres
fc5dc8e811
code review with small amend (note nameLength is number of bytes, the argument may be utf-8 as well as not necessarily a NTS, so access of char after end may cause segfault).
2019-01-31 12:52:56 +00:00
sebres
8a8e70d5a6
fixes utf-8 compatibility of proc/lambda arguments (regression on compiled locals/variables containing utf-8 characters) - CompiledLocal::nameLength is length in bytes not in chars everywhere in tcl;
...
simplest example:
% apply {{€} { set "€" }} 1; # or apply [list \u20ac { set \u20ac }] 1
can't read "€": no such variable
2019-01-30 20:32:18 +00:00
jan.nijtmans
2f4e9acf95
Fix for [f559bbde4e] (even though that's not really a bug)
2019-01-28 22:20:40 +00:00
jan.nijtmans
7518a795db
Merge libtommath v1.1.0
2019-01-28 22:03:10 +00:00
jan.nijtmans
0f79f6ed15
Merge libtommath v1.1.0
2019-01-28 21:54:39 +00:00
jan.nijtmans
7cb32717a9
Update to libtommath v1.1.0
2019-01-28 21:53:18 +00:00
jan.nijtmans
af3406f86c
New internal macro TclFetchIntRep, which is faster than Tcl_FetchIntRep.
...
But ... don't use this function when the result is only compared to NULL: that's just overkill.
2019-01-28 21:34:29 +00:00
sebres
4247e597c6
merge 8.6 ([4ee9b4f3e965a7da5133] was already fixed in 8.7, so no functional changes here)
2019-01-28 16:19:27 +00:00
sebres
3621a3fd74
merge 8.5
2019-01-28 16:15:07 +00:00
sebres
1dec12d618
fixes [4ee9b4f3e965a7da5133]: result of command time overflows by single iteration longer as 35 minutes (uses wide-int instead of int as result now).
2019-01-28 16:12:56 +00:00
pooryorick
0f700f0067
Remove unnecessary inclusion of tclPort.h in tclIntDecls.h
2019-01-26 20:58:24 +00:00
jan.nijtmans
a6393381ec
Merge 8.6. Also reduce tclCharTypeTable[] to 256 entries, as this table is always addressed with unsigned chars now.
...
Eliminate some useless end-of-line spacing that slipped in.
2019-01-26 17:08:06 +00:00
jan.nijtmans
fa64afb29a
Replace isspace() -> TclIsSpaceProc() _everywhere_.
...
Change TclIsSpaceProc() and TclIsBareWord so it works with both signed and unsigned characters. Actually, this is not a signature change, as "char" arguments are enlarged to "int" by the C-compiler anyway.
2019-01-26 16:50:21 +00:00
dkf
d53b2ae83f
Do not assume that literals have a non-NULL bytes field; user code could purge it.
2019-01-25 14:17:56 +00:00
dkf
5f4d728863
Do not assume that literals have a non-NULL bytes field; user code could purge it.
2019-01-25 13:58:07 +00:00
dkf
523ea309ce
Do not assume that literals have a non-NULL bytes field; user code could purge it.
2019-01-25 13:43:59 +00:00
sebres
4a9e46ab99
renumeration of test
2019-01-25 13:05:55 +00:00
sebres
2eaeb73742
more tests for INST_EXPON: base -1, big exponent (odd/even).
2019-01-25 13:03:19 +00:00
sebres
e3c456752e
More simplifications in tclExecute.c (INST_EXPON), much more and well-arranged branching of wide/bignum base and exponent cases, test-cases extended to cover all this branches and edge cases.
2019-01-25 12:45:28 +00:00
jan.nijtmans
25a1f3d894
One more libtommath function, mp_tc_div_2d, which simplifies code. Some more code readability improvements.
2019-01-22 21:44:27 +00:00
jan.nijtmans
90153d0224
Many simplifications in tclExecute.c, now that libtommath provides new functions mp_tc_and, mp_tc_or and mp_tc_xor
2019-01-22 18:09:26 +00:00
jan.nijtmans
d093125a6e
Merge 8.6
2019-01-22 16:57:00 +00:00
jan.nijtmans
c1065a28f9
Remove some mac OSX pre-10.4 stuff, which is outdated: current build doesn't support this anymore
2019-01-22 16:52:56 +00:00
jan.nijtmans
dfb0ed4215
Update included libtommath to v1.1.0-rc4
2019-01-22 16:37:28 +00:00
jan.nijtmans
d6f67fed94
Merge libtommath v1.1.0-rc4
2019-01-22 16:29:54 +00:00
jan.nijtmans
3cf1eb2c23
Update to libtommath v1.1.0-rc4
2019-01-22 16:26:59 +00:00
sebres
5560716098
fixes creation of libtcl.vfs using links, if ln-command does not support "-t" option (avoids error "ln: illegal option -- t" and fallback to copy)
2019-01-21 13:08:52 +00:00
sebres
8f8efbe011
avoid additional in-between path-segment "." in zip, some zip-programs (inclusive minizip) will insert this if used as path-parameter to compress
2019-01-21 02:21:11 +00:00
sebres
6c7d5918b3
speed up build process (preparing zip - creating of libtcl.vfs/tcl_library directory), use "ln" instead of "cp" if possible
2019-01-21 01:49:57 +00:00
jan.nijtmans
3dd30ce854
Clamp output of TclIndexDecode() between -1 (TCL_INDEX_NONE) and INT_MAX. Use this to produce slightly better error-message for lsort -index
2019-01-18 22:18:06 +00:00
jan.nijtmans
257a102789
Slightly more efficient TclGetIntForIndexM macro, compared to previous commit
2019-01-17 21:38:01 +00:00
jan.nijtmans
00f134d99d
More TIP #502 optimizations and improvements, preparing further for the road to Tcl 9.
...
No longer use INT_MAX for TCL_INDEX_AFTER, because INT_MAX can be a normal index in Tcl 9.
TclGetIntForIndex now clips between -1 and INT_MAX. In Tcl 9 size_t will be used for the index data type.
2019-01-16 19:43:32 +00:00
sebres
1b13dffa8c
merge 8.6, conflicts resolved in win/Makefile.in (fixed auto-path and load tcltests for ROOT_DIR/tests)
2019-01-14 19:59:19 +00:00
sebres
4aca9276df
normalize package provide for tcltests 0.1 (declaration moved from pkgIndex.tcl to package source)
2019-01-14 19:51:02 +00:00
sebres
2916e34116
fCmd-9.4.a: restore constraint for winXP (mistakenly removed, should replace 8.6th constraint "win2000orXP" as "winXP", similar to test fCmd-9.6.a)
2019-01-14 19:48:14 +00:00
sebres
ae312970b6
mingw/win-autoconf build: provide tcltest-executable (for consistency reasons); normalizes loading packages calls in test-suite, added build of helpers tcltest (tcltest.cmd) to start tcl-test suite (with all dependencies/facilities) from shell
2019-01-14 17:04:24 +00:00
sebres
6933dc6991
win: allows testchmod to reset DELETE DACL-mask (repaired several tests winFCmd-6.*, winFCmd-9.3, that should catch EACCESS)
2019-01-14 10:00:46 +00:00
sebres
0e3cc87362
minor optimization: check length instead of content - don't touch other memory (so potentially fewer cpu-cache washout's)
2019-01-14 08:55:49 +00:00
jan.nijtmans
4249bc4671
Merge 8.6
2019-01-13 15:43:53 +00:00
jan.nijtmans
631a3b78cb
Slightly simpler test for empty string, still covering all cases. Also prepare testpurebytesobj for strings >2G
2019-01-13 15:37:42 +00:00
sebres
ae556e2203
provided test-cases covering crash fixed by [58c46e74b931d3a1], as well as new test-facility "testpurebytesobj" allowing creation pure bytes object without internal representations (NULL).
2019-01-11 16:29:24 +00:00
jan.nijtmans
73442469a2
Fix crash reported by reported by François Vogel related to: [cc1e91552c0ca1817292d951f8c694b28c2b2251|cc1e91552c]
2019-01-11 14:35:40 +00:00
sebres
6504b376c3
merge 8.6 (regression bug-[cc1e91552c], etc)
2019-01-09 10:10:12 +00:00
sebres
4693981b23
closes [cc1e91552c]: fixes lrange instruction on empty not canonical list (and acc. within expansion also)
2019-01-09 10:01:35 +00:00
sebres
cc6df875d6
fixed missing dependency in test-cases "*io-60.1" (constraint-related) - missed load of tcltest-library in sub-process
2019-01-08 18:15:30 +00:00
sebres
9ad3d4b7b1
amend to [a87460dbd4], added clean-up to avoid error {can't set "a(x)": variable isn't array} on next iteration of noComp loop.
2019-01-08 14:39:59 +00:00
sebres
97ef187e5b
closes [cc1e91552c]: fixes lrange instruction on empty list, return original list only if it is canonical (otherwise new list object)
2019-01-08 13:35:03 +00:00
sebres
1d20d5be0d
bug [cc1e91552c]: added test cases showing the regression (expansion & lrange)
2019-01-08 13:29:29 +00:00
sebres
8692d794c4
merge back after cherry-picking (no functional changes)
2019-01-07 01:15:02 +00:00
sebres
b4745088b1
cherry-pick [3e4d907d8e] from 8.6: prevent buffer overrun in fast_s_mp_mul_digs().
2019-01-07 01:11:32 +00:00
jan.nijtmans
3b1d9efc79
Merge 8.6
2019-01-04 22:37:44 +00:00
jan.nijtmans
9fd97a3b30
Merge 8.5
2019-01-04 22:36:15 +00:00
jan.nijtmans
e0908c3226
Update TZ info to tzdata2018i.
2019-01-04 22:29:03 +00:00
jan.nijtmans
13ae5915d6
Fix signed<->unsigned comparsion warning (occurring in some gcc compilation flags).
...
Micro-optimization: Use char array in stead of const char pointer for static variable.
2019-01-04 22:23:27 +00:00
jan.nijtmans
d1aae73bf3
Merge 8.6
2019-01-03 20:49:24 +00:00
jan.nijtmans
2593fcb11c
Fix conflict with timezone() function in some MSVC versions
2019-01-03 20:48:38 +00:00
jan.nijtmans
ae279a393f
Fix conflict with timezone() function in some MSVC versions
2019-01-03 20:47:40 +00:00
José Ignacio Marín
9fe95e59fc
Update TZ info to tzdata2018i.
2018-12-31 10:51:28 +00:00
José Ignacio Marín
5004f536d3
Update TZ info to tzdata2018i.
2018-12-31 10:50:48 +00:00
jan.nijtmans
0813e41bab
Fix [44d382c51a848e6fbe7c9ee15e9386f1237660ee|44d382c51a84]: ZIP filesystem time stamp conversion wrong etc.
2018-12-30 23:59:46 +00:00
jan.nijtmans
899be54b87
Fix [3cf3a939d32707e100e06e23806e13569856286a|3cf3a939d3]: timezone deprecated in vc2017
2018-12-30 22:50:39 +00:00
jan.nijtmans
a1351d366d
Fix [3cf3a939d32707e100e06e23806e13569856286a|3cf3a939d3]: timezone deprecated in vc2017.
...
Also remove unix/config.status.lineno, which was -apparently - checked-in by accident in previous commit
2018-12-30 22:47:44 +00:00
jan.nijtmans
84425899dd
Fix [3cf3a939d32707e100e06e23806e13569856286a|3cf3a939d3]: timezone deprecated in vc2017
2018-12-30 22:44:22 +00:00
José Ignacio Marín
905da2b593
Update TZ info to tzdata2018h.
2018-12-29 23:16:43 +00:00
José Ignacio Marín
b5a9fff0ac
Update TZ info to tzdata2018h.
2018-12-29 23:15:58 +00:00
sebres
b226057ffc
clock.test: resolve sporadic timing issues - "after 10" could cause pause >120ms on some platforms (especially on heavily loaded systems), so used average value of 5 measured intervals and real retrieved time as reference point
2018-12-29 10:03:33 +00:00
sebres
a49d060935
merge 8.6 (merge point only, no functional changes)
2018-12-28 21:09:00 +00:00
sebres
211afcace9
prevent buffer overrun in fast_s_mp_mul_digs(), already fixed in newest libtommath versions.
2018-12-28 21:02:43 +00:00
sebres
13881cf3db
win/Makefile.in: closes [0bcc43fa778517c4]: replace INSTALL_DATA_DIR (ported from unix-makefile) with MKDIR/chmod
2018-12-28 20:15:17 +00:00
sebres
6c43931970
merge 8.6 (resolved warnings)
2018-12-28 20:01:53 +00:00
sebres
0513ee0141
resolve warnings: array subscript -1 is below array bounds of 'void *[1]' [-Warray-bounds] if compiled with newest gcc
2018-12-28 19:54:42 +00:00
jan.nijtmans
a0a457ef4c
merge-mark
2018-12-20 20:05:05 +00:00
jan.nijtmans
c00086981f
New test-cases (backported from 8.7) adapted for pre-TIP-502 behavior
2018-12-20 20:04:01 +00:00
jan.nijtmans
e0e776a57e
Remove unused MODULE_SCOPE functions
2018-12-20 20:02:00 +00:00
jan.nijtmans
12f94f7a7a
(cherry-pick) relax the timings of 2 tests, which incidentally fail on Travis CI.
...
Also backport a few new test-cases, adapted to match pre-TIP-502 behavior.
2018-12-20 08:06:20 +00:00
jan.nijtmans
b143bb3fdd
Internal minor optimization of TIP #502 implementation. No difference in any outcome.
2018-12-18 20:01:12 +00:00
jan.nijtmans
05a370b2d2
Merge 8.6
2018-12-18 19:54:55 +00:00
jan.nijtmans
878077e3b0
Merge 8.5
2018-12-18 19:52:19 +00:00
jan.nijtmans
4b795b56c8
No need for latest "rvm" any more in osx builds (now even gives an error)
...
Remove unused/empty header-file
2018-12-18 19:49:09 +00:00
dkf
f55b154644
Why are we using rvm? Why?
2018-12-14 13:12:17 +00:00
jan.nijtmans
9c5dc4c207
Fix 2 TIP #502 corner-cases. Those corner-cases where (probably) always wrong on 32-bit systems, but now we have a TIP describing how it's expected to behave!
...
Thanks to Emiliano for noticing and reporting it. Added 6 test-cases for completeness, 2 of them failed before this fix.
Also optimize TclStringLast() a bit, implementing the pre-condition tests as in TclStringFirst().
2018-12-13 20:01:34 +00:00
jan.nijtmans
1961633531
If compiled with -DTCL_NO_DEPRECATED, remove Tcl_NewIntObj/Tcl_NewLongObj/Tcl_DbNewLongObj from stub table, as they will be gone in 9.0 (converted to a macro)
...
Use Tcl_WideInt's directly in more places, diminishing the possibility of inadvent overflow.
2018-12-12 19:38:33 +00:00
jan.nijtmans
00268d4ae6
Better use of Tcl_WideInt in stead of long, sometimes
2018-12-11 19:43:11 +00:00
jan.nijtmans
416725e464
Fix executable flags of 3 test-files
2018-12-08 17:33:58 +00:00
jan.nijtmans
a7858d818d
If compiled with -DTCL_NO_DEPRECATED, remove the Tcl_SetIntObj/Tcl_SetLongObj entries from stub table: Since they are gone in Tcl 9.0
2018-12-02 20:02:41 +00:00
jan.nijtmans
e2bde4d007
Merge 8.6
2018-11-29 21:34:26 +00:00
jan.nijtmans
b3f8bdaff2
relax the timings of 2 tests, which incidentally fail on Travis CI
2018-11-29 21:06:45 +00:00
dkf
72fca75fb1
Make the type casting in TclSpellFix less horrific. It's still bad, but it is no longer ghastly.
2018-11-28 11:37:03 +00:00
jan.nijtmans
8f18fa7c78
Make TclFreeObj MODULE_SCOPE, so the only way to access it is through the stub table, for backwards-compatible stub-enabled extensions
2018-11-27 22:52:04 +00:00
jan.nijtmans
8c642fb171
Fix [df6a91b5c616c3dc126cee700e159b997467465]: build failure (ticket fails to mention that this only happens with TCL_MEM_DEBUG defined)
2018-11-25 19:46:41 +00:00
jan.nijtmans
c6328d793c
Slightly better than previous commit: In case of a version conflict, ignore pkgIndex file. Otherwise report the error normally
2018-11-25 17:29:56 +00:00
jan.nijtmans
9fccec3f94
If a pkgIndex file is encountered which produces an error, continue. This shoud fix the Travis build for 9.0 (But same fix should be in 8.7 as well)
2018-11-24 14:59:04 +00:00
jan.nijtmans
bf8595e255
re-generate configure script
2018-11-24 09:02:05 +00:00
jan.nijtmans
8653af3a2e
comment typo's
2018-11-24 09:00:26 +00:00
sebres
d1e9efc1de
make: better algo to wrap to absolute zip-path (for systems resp. toolchains without readlink/realpath), e. g. avoid xcode/macosx build error "readlink: illegal option -- m"
2018-11-23 19:59:12 +00:00
sebres
813764c458
make/configure review: normalizes the latest fixes across unix/win
2018-11-23 11:59:53 +00:00
sebres
a694d92cbd
unix build (if ZIPFS_BUILD): fixed relative path to zip-program (in case of minizip), ignore possible zip-error by adjust sfx process (similar to [057d2b674d]).
2018-11-22 23:17:11 +00:00
sebres
1c22d353a9
win/mingw build (if ZIPFS_BUILD): ignore following zip-error by adjust sfx process:
...
zip error: Zip file structure invalid (tcl87.dll)
dll is loadable and contains zip archive (openable with zip and zipfs with tcl_library is available), so ignores return code of `zip -A`, just write it (as warning) now, and continue build process.
2018-11-22 22:14:24 +00:00
sebres
cae3501f7a
fixes typo in [e108e6b947], test added to cover this case
2018-11-22 18:30:49 +00:00
sebres
c2ce99823e
merge 8.6
2018-11-22 14:44:48 +00:00
sebres
5c59a6a505
fixed typo in prepro #ifdef unix || __APPLE__
2018-11-22 14:44:16 +00:00
sebres
1cf15d2b4d
merge 8.6
2018-11-22 14:16:51 +00:00
sebres
fb0f0b6c37
merge 8.5: fixes segfault [7a9dc52b29] and wrong normalization (inside TclJoinPath) for pure relative path-segments; test-cases extended and several windows-related are fixed.
2018-11-22 13:58:37 +00:00
sebres
e4f3ce78e3
win/Makefile.in (mingw/gcc toolchains): fixes make mode "tcltest" - added dependencies to build tcl (dlls) also.
2018-11-22 12:58:16 +00:00
sebres
dccc93bfb8
fixes segfault [7a9dc52b29] and wrong normalization (inside TclJoinPath) for pure relative path-segments;
...
test-cases extended and several windows-related are fixed.
2018-11-22 12:48:42 +00:00
sebres
a89cd349f1
prepare merge: TclJoinPath is in internal API (MODULE_SCOPE) since 8.6 and static (used locally in tclPathObj) in 8.5
2018-11-22 12:45:04 +00:00
jan.nijtmans
a27b613909
Make encodings work again ;-(
2018-11-22 09:26:08 +00:00
jan.nijtmans
0e7af6107e
Merge 8.6
...
In addition, tclWinSerial.c: Change back two internal variables from size_t -> int, shouldn't have been done here.
2018-11-22 08:03:24 +00:00
jan.nijtmans
f49b401512
typo, which caused travis build to fail.
2018-11-22 07:40:12 +00:00
hypnotoad
3c7c613ec1
Added a wrapper script for native builds to utilize Tcl to generate a VFS to attach
...
to executables or dynamic libraries
2018-11-21 13:06:52 +00:00
sebres
e02fb5a67b
win: repair test command "testchmod": correct load module (ADVAPI32 for x86/x64) and fix readonly mask (don't deny DELETE mask, test cleanup should be able to delete entry)
2018-11-21 10:00:54 +00:00
jan.nijtmans
3a4b0be0b1
TIP #512 documentation: Indicate which functions cannot be called through the stub table any more.
2018-11-21 07:40:13 +00:00
jan.nijtmans
e9c1676826
Fix windows build with Visual Studio
2018-11-21 07:36:27 +00:00
hypnotoad
fcfb05f5d3
Further refinements for the fix for bug [4e812aadae68af384605a5e78845abe40206fbe9]
...
Moved the package manifest for the /library file system out of init.tcl file
and into a new file "manifest.txt". If a VFS is populating tcl_library via
a file copy it will rename that file to pkgIndex.tcl, which will allow all
of the packages the core distributes in this way to be available via the standard
package discovery mechanism (as tcl_library is already in the auto_path of an
unmodified tcl interpreter. And if you've modified the tcl interpreter, you
probably know better anyway.
Probably...)
2018-11-21 00:40:32 +00:00
sebres
8c233c93c1
win: fixed pwd-related test-cases in winPipe.test: several test-cases expect current directory equals [temporaryDirectory]
2018-11-20 20:56:50 +00:00
sebres
0e5ff41021
win: fixes case sensitivity of glob test cases (winFile-2.*): current directory can be different as [temporaryDirectory] (if parameter -tmpdir specified).
2018-11-20 20:23:22 +00:00
sebres
23102369d1
refactoring normalize in case of second path starting with tilde (~/~foo) - force second path as relative by join (provide normalize flag for TclJoinPath);
...
test cases extended
2018-11-20 20:11:02 +00:00
jan.nijtmans
1c46dc5929
Actually, it turns out that platform, platform::shell and tcltest have the same problem ...
2018-11-20 19:15:39 +00:00
jan.nijtmans
fcf70e503f
Fix [4e812aadae68af384605]: package require msgcat fails
2018-11-20 19:07:34 +00:00
sebres
1aa5869ece
fixes segfault [7a9dc52b29]: unexpected decrement of the ref-count after TclJoinPath
2018-11-20 18:02:32 +00:00
dkf
e537ff7be6
More coverity issues
2018-11-20 13:51:38 +00:00
hypnotoad
e39bbfbe99
Carrying the previous checkin over to the Windows Makefile
2018-11-19 23:53:14 +00:00
hypnotoad
52768f711a
Fix for ticket [9cc1db9fb675bf64dfc775372fab1f697e46bb44]
2018-11-19 23:49:56 +00:00
dgp
cc6faa155b
merge 8.7
2018-11-19 17:29:12 +00:00
dgp
1fae54c8c0
merge 8.6
2018-11-16 20:37:09 +00:00
dgp
35299947e3
merge release
2018-11-16 20:26:14 +00:00
dgp
38f743a2c7
[00d04c4f12] Repair broken edge cases in [binary encode base64].
2018-11-16 18:45:59 +00:00
dgp
4a6019f7a6
[00d04c4f12] Repair broken edge cases in [binary encode base64].
2018-11-16 18:38:35 +00:00
dkf
fa3d7ed178
Clear up a bunch of small issues found by Coverity analysis.
2018-11-16 13:45:26 +00:00
sebres
d1e5b0f72f
fixes segfault [00d04c4f12], unfulfilled base64 (strict and non-strict mode, etc).
2018-11-15 22:31:39 +00:00
sebres
dca8be01de
test cases for decode base64, bug [00d04c4f12], unfulfilled base64 (strict and non-strict mode, etc).
2018-11-15 22:18:29 +00:00
jan.nijtmans
511765faae
Add entry for Tcl_StaticPackage in internal stub table, since the public one is deprecated and will be removed in 9.0
...
Clean-up a lot of type-casts, which are not necessary any more.
2018-11-15 19:13:55 +00:00
dgp
3046c87be9
merge 8.6
2018-11-15 17:29:38 +00:00
dgp
f2d42d756e
merge release
2018-11-15 16:55:13 +00:00
dgp
8d9924c328
merge 8.6
2018-11-15 16:53:00 +00:00
dgp
54488f1714
close fork
2018-11-15 16:35:58 +00:00
dgp
5b4a1fcaf3
merge 8.5
2018-11-15 16:34:44 +00:00
dkf
e348eadefd
Stop more crashes on Travis
2018-11-15 10:23:31 +00:00
jan.nijtmans
b3d56cb364
Another attempt to fix Travis build: making the build robust against older zlib.h header file
2018-11-15 08:34:59 +00:00
jan.nijtmans
65ae2c205e
Merge 8.6
2018-11-15 08:07:26 +00:00
jan.nijtmans
5e8ed94397
Make Tcl_WinTCharToUtf/Tcl_WinUtfToTChar work (again) with TCL_UTF_MAX=6. No effect when TCL_UTF_MAX=3|4
2018-11-15 08:05:23 +00:00
jan.nijtmans
0eccb10a23
Implement TIP #512 : No stub for Tcl_SetExitProc()
2018-11-15 07:51:01 +00:00
jan.nijtmans
b16a1198d9
Workaround for crypt.h, when used in combination with older zlib library. Should make Travis build work again
2018-11-14 07:39:45 +00:00
dkf
4402274b45
Make socket tests less likely to hang on OSX
2018-11-14 03:31:58 +00:00
dkf
237b0edf0d
merge 8.6 to get Travis fixes
2018-11-12 09:53:47 +00:00
dkf
77a9cc76b1
Properly switch on running tests on Travis. CI builds now debugged.
2018-11-12 09:51:45 +00:00
dkf
fc38a30572
Cleaner way of writing environment variables
2018-11-12 09:49:24 +00:00
dkf
fa2ceeffff
Make cookiejar tests skip gracefully
2018-11-12 09:48:17 +00:00
dkf
18b503297b
Fix brokenness in GNUmakefile
2018-11-12 09:26:25 +00:00
dkf
44fd5b0f83
Fix builds on Travis.
2018-11-11 16:55:53 +00:00
dkf
13f704914a
Clean up Travis config now that it passes
2018-11-11 15:07:12 +00:00
dkf
3166f1ad45
merge 8.6
2018-11-10 10:22:19 +00:00
dkf
b82e966961
Build instructions tinkering
2018-11-10 09:55:31 +00:00
dkf
6fe99b6e66
Tracking down test failures
2018-11-10 09:39:35 +00:00
dkf
cbbc8d66b8
Make the macosx build able to succeed
2018-11-10 07:29:08 +00:00
dgp
4dc3934516
update changes
2018-11-09 19:14:07 +00:00
dgp
bd29989aab
policyAllow is also a cookiejar method; make tests account for it.
2018-11-09 19:05:44 +00:00
dgp
3416e2d194
Don't make tests depend on third party error messages we do not control.
2018-11-09 19:03:05 +00:00
dgp
730f1c88eb
silence compiler warning
2018-11-09 16:48:57 +00:00
dgp
d16fc1a584
[35a8f1c04a] Fix bad lengths when creating string rep of some lists.
2018-11-09 16:42:37 +00:00
dgp
563ffe0ad3
Merge and adapt 8.6
2018-11-09 16:16:17 +00:00
dgp
5deb25bc9b
merge 8.5
2018-11-09 16:03:22 +00:00
dgp
0f4e877214
[35a8f1c04a] Fix bad lengths when creating string rep of some lists.
2018-11-09 16:00:57 +00:00
dgp
4df4dafad6
Additional test
2018-11-09 15:47:37 +00:00
dgp
83ec300abd
Revise bug fix to support (length == 0) correctly.
...
Added comments and improved safety in caller.
2018-11-09 15:39:26 +00:00
sebres
ddae61a859
closes [35a8f1c04a]: minimalist fix - beware of discrepancy between TclScanElement and TclConvertElement (prefer braces considering TCL_DONT_QUOTE_HASH in case of first list element)
2018-11-09 14:19:08 +00:00
sebres
75399e97a8
test case to cover bug [35a8f1c04a]
2018-11-09 14:13:15 +00:00
dgp
13446e004a
typo
2018-11-08 17:32:28 +00:00
dgp
4930197d21
merge mark
2018-11-08 17:09:42 +00:00
dgp
008a36f3e4
merge mark
2018-11-08 17:07:01 +00:00
dgp
dc53840e35
[86d249bcba] Make sure that tcltest::runAllTests actually returns 1 on failure
...
Repairs TIP 525 implementation.
2018-11-08 17:06:02 +00:00
dgp
5471354571
[86d249bcba] Make sure that tcltest::runAllTests actually returns 1 on failure.
...
Repairs TIP 525 Implementation.
2018-11-08 17:05:00 +00:00
dkf
7d16c9044e
TESTBUGFIX: The C locale is more commonly based on UTF-8 than it used to be.
2018-11-08 10:40:31 +00:00
dkf
155f409a38
Merge the Travis build rules more properly
2018-11-07 19:22:20 +00:00
dkf
20c06fad80
merge 8.6 branch
2018-11-07 19:04:53 +00:00
dkf
4abbc2cf7d
merge 8.6
2018-11-07 18:59:11 +00:00
dkf
a6d8a3e498
[86d249bcba] Make sure that tcltest::runAllTests actually returns 1 on failure
2018-11-07 18:56:14 +00:00
dkf
c1c94e4437
[86d249bcba] Make sure that tcltest::runAllTests actually returns 1 on failure
2018-11-07 18:50:09 +00:00
dkf
c5bbe85f29
Rebase of travis config
2018-11-07 13:25:45 +00:00
jan.nijtmans
29a883d89f
Fix "executable" flag for many files (now really!)
2018-11-07 08:58:01 +00:00
dkf
d6bc59fcc3
mark many files as not executable
2018-11-06 14:02:48 +00:00
dgp
3475b52b60
Implemen TIP 506
2018-11-06 12:13:15 +00:00
dgp
efa3f28435
merge 8.7
2018-11-06 12:11:09 +00:00
dkf
931a2a1ad2
Implement TIP 524
2018-11-06 11:15:33 +00:00
dkf
3a8f5fae79
Implement TIP 523
2018-11-06 11:14:56 +00:00
dkf
cef3740779
Implement TIP 519
2018-11-06 11:13:46 +00:00
dkf
4d25d5aefd
Implement TIP 501
2018-11-06 11:12:05 +00:00
dkf
3c18b618a5
Added documentation
2018-11-06 10:08:11 +00:00
dkf
179e8f4df7
merge core-8-branch
2018-11-06 10:04:02 +00:00
dkf
2798a075ee
Implement TIP 445
2018-11-06 09:51:55 +00:00
dkf
5429d6aeaf
Implement TIP 406
2018-11-06 09:50:29 +00:00
dkf
1c2958d455
merge core-8-branch
2018-11-06 09:49:38 +00:00
dgp
e2d299f771
Fixed memory leak in TclOO.c:ObjectNamespaceDeleted, object mixins and
...
object/class mutation.
2018-11-02 17:18:57 +00:00
jan.nijtmans
57f1472371
Merge 8.7
2018-11-02 07:26:17 +00:00
jan.nijtmans
bea160e7f6
Start building this branch with Travis. See how far we get
2018-11-01 20:18:12 +00:00
pooryorick
d739e9b6a8
Fixed memory leak in TclOO.c:ObjectNamespaceDeleted, object mixins and
...
object/class mutation.
2018-11-01 20:10:06 +00:00
dgp
2577d3bd45
make dist
2018-11-01 16:31:00 +00:00
dgp
c65da32867
update changes
2018-11-01 15:26:12 +00:00
dgp
ff9bd4ad1c
merge 8.6
2018-11-01 14:50:31 +00:00
dgp
3788abb994
Eliminate fallback attempts when broken strtod() routines are detected.
...
This has long been creating more problems than it solves.
2018-11-01 14:48:36 +00:00
dgp
a0c7ff582a
Eliminate fallback attempts when broken strtod() routines are detected.
...
This has long been creating more problems than it solves.
2018-11-01 14:46:07 +00:00
jan.nijtmans
b3dceb5360
Make MacOSX compile work (hopefully) and cross-compile on mingw-w64 (compile only, no unit-test yet)
2018-10-31 21:02:42 +00:00
jan.nijtmans
500a1629c4
Merge 8.6
2018-10-30 20:42:12 +00:00
jan.nijtmans
4c1c62892a
Merge 8.5
2018-10-30 20:41:01 +00:00
jan.nijtmans
434a115a3c
Add support for DragonFly
2018-10-30 20:40:03 +00:00
jan.nijtmans
74707353e8
Add support for TIP #494 to registry and dde. Only effective when compiled against Tcl 9.0 headers. This way we can keep the source-code for those extensions 100% equal in all branches.
...
Work-around for gcc warning in tclWinFile.c. Discovered by Travis CI.
2018-10-30 20:39:24 +00:00
jan.nijtmans
dbdd83e5d0
Fix compilation on Visual C++ 6.0, which doesn't have LLONG_MIN/LLONG_MAX
2018-10-29 19:57:29 +00:00
jan.nijtmans
538c6791ab
merge-mark
2018-10-29 19:55:50 +00:00
jan.nijtmans
22a5d73ebf
squelch some warnings on higher Visual Studio versions: we are not going to bother on this any more.
2018-10-29 19:54:58 +00:00
dgp
820cc5a23d
Work started eliminating long outdated compat routines that now cause
...
cross-compiling failure far more often than they help porting to old broken
platforms.
2018-10-29 18:19:55 +00:00
dgp
f7dfeb706f
merge 8.7
2018-10-29 15:37:07 +00:00
dgp
78ef9a971b
merge mark
2018-10-29 14:39:22 +00:00
dgp
ce6023fade
[TIP 525] Backport package tcltest 2.5
2018-10-29 14:38:24 +00:00
dgp
4e9742386c
merge mark
2018-10-29 14:10:33 +00:00
dgp
030a749dc8
close fork
2018-10-29 14:09:34 +00:00
dgp
2f4c1aecdb
[TIP 525] Backport package tcltest 2.5
2018-10-29 14:00:48 +00:00
dgp
b3291aebaa
[TIP 525] Revise [tcltest::runAllTests] to return indicator of any failure.
2018-10-29 13:36:10 +00:00
dgp
569b59f564
[TIP 522] New option "-errorCode" to [tcltest::test] in tcltest 2.5
2018-10-29 13:19:39 +00:00
dgp
ccbbac847a
update changes
2018-10-29 12:36:29 +00:00
dgp
8e4701fd31
merge 8.6
2018-10-29 12:28:15 +00:00
dkf
de66468301
Documentation
2018-10-28 15:36:55 +00:00
dkf
56f89b9850
Test cases (and some fixes)
2018-10-28 12:48:53 +00:00
jan.nijtmans
1ff54c600e
merge-mark
2018-10-28 10:07:04 +00:00
jan.nijtmans
1337738c22
Merge (on-purpose) fork, makeing the merge-mark easier
2018-10-28 10:05:42 +00:00
jan.nijtmans
96b9e6e871
Missing -DUNICODE in makefile.vc
2018-10-28 10:04:08 +00:00
dkf
af5d98388a
Definition and introspection commands.
2018-10-28 08:22:21 +00:00
dkf
fd15b04d3b
merge core-8-branch
2018-10-27 22:12:00 +00:00
dkf
3dc41c544f
Core machinery for implementing TIP 524; still needs user-facing access commands
2018-10-27 22:05:34 +00:00
jan.nijtmans
52c009322f
put back Travis CI build. All merge-marks of previous commit change done.
2018-10-27 19:52:25 +00:00
jan.nijtmans
fd54886393
Merge 8.6
2018-10-27 19:45:31 +00:00
jan.nijtmans
016dc0c5f0
merge-mark... well ... almost: Except for a missing <include> in tclWinDde.c
2018-10-27 19:43:31 +00:00
jan.nijtmans
97ed5b117d
(temporary) backout [0386db909a]: Enable CI builds with Travis. This enables everything else to merge-marked to 8.6. Will put it back in the next commit
2018-10-27 19:36:22 +00:00
jan.nijtmans
fbc8feeb40
Backport various minor issues from 8.6:
...
- gcc compiler warning in tclDate.c
- protect Tcl_UtfToUniCharDString() from ever reading more than "length" bytes from its input, not even in the case of invalid UTF-8.
- update to latest tzdata
- fix 2 failing test-cases on MacOSX
2018-10-27 19:33:40 +00:00
José Ignacio Marín
a870464cc5
Update TZ info to tzdata2018g.
2018-10-27 18:08:13 +00:00
José Ignacio Marín
5f392f74b6
Update TZ info to tzdata2018g.
2018-10-27 18:07:35 +00:00
jan.nijtmans
fef802ea7a
Update to latest tzdata (backported from 8.6)
2018-10-27 08:06:42 +00:00
jan.nijtmans
d7a697aa50
Missed some version bumps in previous commit
2018-10-27 08:03:56 +00:00
jan.nijtmans
9654f8c692
tclWinDde.c: Backport version 1.4.1 from Tcl 8.6.
2018-10-27 07:53:45 +00:00
dgp
274d86b2ec
merge 8.7
2018-10-27 01:31:00 +00:00
dgp
b28e8c3bd1
Draft implementation of TIP 506 - rebased to Tcl 8.7
2018-10-27 01:04:33 +00:00
jan.nijtmans
7ecdd17b4d
Merge 8.6
2018-10-26 19:01:57 +00:00
jan.nijtmans
125b29bfe3
tclWinReg.c: Code cleanup. Eliminate some unnecessary variables.
...
tclWinDde.c: Backport improvements (support for TCL_UTF_MAX=6) from androwish: Both androwish and tclsh (all versions) can now use the same dde.dll.
dde: bump version
2018-10-26 18:41:35 +00:00
pspjuth
63802cdd70
Simplify to only accept index arguemnts. No index list.
...
Added manual page.
2018-10-24 22:15:50 +00:00
jan.nijtmans
c69ccc749e
Backport "registry" version 1.3.3, so all active branches now have the same registry version.
...
(this commit must -eventually- be merge-marked to core-8-6-branch, since everything is there already)
2018-10-24 21:22:18 +00:00
dgp
f44fb9b450
Request the tcltest version that provides the testing facilities used.
2018-10-24 14:33:54 +00:00
dgp
f338047c19
merge 8.7
2018-10-24 02:00:15 +00:00
dgp
691b2ab5c4
update changes
2018-10-23 23:34:34 +00:00
dgp
352d056288
merge 8.6
2018-10-23 23:25:53 +00:00
dgp
335774aef1
[d1d05d1c7a] Fix bug parsing end-$bignum
...
End deprecated acceptance of "e" and "en" as index value.
Streamline and comment for clarity and improved merging to tip-445 branch.
2018-10-23 23:23:42 +00:00
dgp
cb2049e18e
merge 8.7
2018-10-23 23:16:22 +00:00
dgp
6457b295e1
Streamline and comment combined routine.
2018-10-23 23:09:48 +00:00
pspjuth
bf9af9a408
Cleanup
2018-10-23 21:06:30 +00:00
jan.nijtmans
231a11e2ce
Merge 8.7
2018-10-23 19:39:00 +00:00
jan.nijtmans
b7495e42ca
Merge libtommath-no-stdint.h branch. Re-generated tclTomMath.h
2018-10-23 19:14:00 +00:00
dgp
7e4b0ec852
rework the logic a bit
2018-10-23 19:11:13 +00:00
dgp
9db751daeb
End the deprecated practice of accepting "e" and "en" as valid index values.
2018-10-23 19:01:55 +00:00
dgp
a883ddbe3e
Refactor the SetEndOffsetFromAny() routine into its only caller.
2018-10-23 18:49:36 +00:00
jan.nijtmans
7e67cf48eb
Branch [ https://github.com/libtom/libtommath/commits/no-stdint-h ] from libtommath, by karel-m.
2018-10-23 18:37:54 +00:00
dgp
4ad4d79d41
The "end-offset" type is unregistered. No need for a setFromAnyProc.
...
Remove and simplify.
2018-10-23 18:24:50 +00:00
dgp
90d55a9da9
merge 8.7
2018-10-23 17:58:35 +00:00
dkf
983b95bdbd
Enable CI builds with Travis.
2018-10-23 11:14:13 +00:00
pspjuth
394e22ef5d
Updated tests to exercise new feature.
2018-10-22 21:15:00 +00:00
jan.nijtmans
140cd14f15
formatting
2018-10-22 20:40:25 +00:00
pspjuth
5b1614f31a
Documentation and revision bump for tip 522
2018-10-22 20:27:03 +00:00
dgp
c4e867d8dd
merge 8.7
2018-10-22 20:23:00 +00:00
jan.nijtmans
0748314c35
Merge changes in libtommath's latest "develop" branch
2018-10-22 20:12:18 +00:00
jan.nijtmans
f8876cc390
Update libtommath to latest "develop" branch
2018-10-22 19:32:11 +00:00
pspjuth
36f2cb4d7d
Implement TIP 523, New lpop command
2018-10-22 18:43:47 +00:00
jan.nijtmans
86013715f6
Missing ',' in documentation (discovered by MacOSX help processing). Some whitespacing
2018-10-22 18:36:42 +00:00
jan.nijtmans
cee756478e
Fix error-message on MacOS: the __LINKEDIT segment does not cover the end of the file.
...
Reason: We appended a zip-file to the end of the library, so during install "strip" doesn't work any more
2018-10-22 18:21:23 +00:00
jan.nijtmans
2517987176
Merge 8.6
2018-10-22 17:54:16 +00:00
jan.nijtmans
49cd80a29d
Fix "registry" test-cases. Thanks to Harald Oehlmann for spotting this!
2018-10-22 17:48:40 +00:00
dgp
68cad4302a
merge 8.6
2018-10-22 13:30:51 +00:00
dkf
c201290179
Expand the build matrix
2018-10-22 13:11:45 +00:00
pspjuth
8c05c20df4
Implement TIP 522, Test error codes with Tcltest
2018-10-22 05:56:37 +00:00
dkf
3ecac0e0ab
merge fork
2018-10-22 05:14:54 +00:00
dkf
e4c108f3d7
Make new notifier code match Engineering Manual guidelines better
2018-10-22 04:30:24 +00:00
jan.nijtmans
d2c82fc45a
Change PTR2INT and PTR2UINT macros's so they can handle long's and Tcl_WideInt's too, so no longer restricted to the "int" range.
2018-10-21 20:38:02 +00:00
dkf
7c2e55d3fd
Squash warnings in the OSX notifier
2018-10-21 10:50:21 +00:00
dkf
0c78f5bbad
Disable windows builds. Make test failures fatal.
2018-10-21 10:16:05 +00:00
dkf
37c458acb7
Remove unused variable
2018-10-21 10:01:04 +00:00
dkf
775ce545d2
More tests. Better implementation.
2018-10-21 09:57:43 +00:00
dkf
9b417d4592
Rebase on 8.7
2018-10-20 23:41:32 +00:00
dkf
2e0a0b5305
Remove old README
2018-10-20 18:02:45 +00:00
dkf
1caba8a761
Add local links
2018-10-20 16:47:29 +00:00
dkf
6efd8f71f2
formatting tweak
2018-10-20 16:44:51 +00:00
dkf
e5cf3448bd
formatting tweak
2018-10-20 12:54:28 +00:00
dkf
ea29292705
formatting fix
2018-10-20 12:01:49 +00:00
dkf
d32d625787
Travis CI build
2018-10-20 11:57:59 +00:00
dgp
50ae8fdcf6
[d1d05d1c7a] Tests and fix for bignums in end-offset index value parsing.
2018-10-19 19:18:30 +00:00
jan.nijtmans
cb061edef8
Merge 8.6
2018-10-19 15:52:42 +00:00
jan.nijtmans
49aba3d99e
Add support for "nostub" in genStubs.tcl. Not used by Tcl 8.6, but might be used by Tk 8.7 when linked against Tcl 8.6
2018-10-19 15:51:36 +00:00
jan.nijtmans
d8decf16a5
Merge 8.7
2018-10-19 15:49:41 +00:00
dkf
74357f24f8
merge core-8-branch
2018-10-19 10:07:24 +00:00
dkf
fca6e38924
merge core-8-6-branch
2018-10-19 10:06:23 +00:00
dkf
09446c7544
Added another test case. This one is OK.
2018-10-19 09:59:14 +00:00
jan.nijtmans
8bfcffa20a
Merge 8.7
2018-10-18 21:54:37 +00:00
dkf
8a4ad6884b
Make the object mutation operation as unrestricted as possible.
2018-10-18 21:40:17 +00:00
dkf
2021349249
Make fundamental mutation work. MAGICAL MAGIC MAGICS MAGIC. Abracadabra.
2018-10-18 21:38:08 +00:00
José Ignacio Marín
e7392a5c22
Update TZ info to tzdata2018f.
2018-10-18 18:24:50 +00:00
José Ignacio Marín
6b0dccd9d5
Update TZ info to tzdata2018f.
2018-10-18 18:23:50 +00:00
dgp
90221ac971
merge 8.7
2018-10-18 15:31:51 +00:00
dkf
e006418946
Tests for advanced object mutation issues.
2018-10-18 14:58:28 +00:00
jan.nijtmans
49ebd1264d
Add -Wpointer-arith compiler flag to gcc
2018-10-17 22:37:43 +00:00
jan.nijtmans
94d07354ce
Merge 8.6
2018-10-17 20:02:36 +00:00
dgp
da46155931
merge 8.7
2018-10-17 20:02:16 +00:00
jan.nijtmans
2881b5c3df
Fix test-cases running on Windows 10: [string index $tcl_platform(osVersion) 0] doesn't give the correct answer then.
...
Also backport genStubs.tcl from 8.7: The "deprecated" mark is not used in Tcl 8.6, but it is used by Tk 8.7 when doing "make genstubs" against Tcl 8.6.
2018-10-17 19:55:17 +00:00
jan.nijtmans
e0209e39ea
Fix test-cases running on Windows 10: [string index $tcl_platform(osVersion) 0] doesn't give the correct answer then (it gives "1", but "10" was expected)
2018-10-17 19:51:47 +00:00
dgp
e154c51512
merge 8.6
2018-10-17 16:24:16 +00:00
dgp
e1196c53f2
Revert addition of "slowTest" as built-in constraint. (no TIP; no version bump).
...
Let the test file that needs the constraint define it with existing facilities.
2018-10-17 16:12:42 +00:00
dgp
56b431c4c2
Mark test macOSXFCmf-2.8 non-portable. It appears to pass when the older
...
HFS+ filesystem is in use, often on disk drives in older systems. It appears
to fail when APFS is in use, more typical on newer SSD storage.
2018-10-17 16:06:38 +00:00
dgp
ac4291f473
Backport test fix.
2018-10-17 16:03:54 +00:00
dgp
4dbcfc37b3
typo
2018-10-15 12:49:56 +00:00
dkf
f59c9faee2
Make it easier to extend cookiejar for policy reasons
2018-10-15 10:28:23 +00:00
dkf
94c0eede77
Fix up citations
2018-10-14 14:00:38 +00:00
dkf
61a92173cc
Added more documentation.
2018-10-14 13:48:11 +00:00
dkf
c393791ed5
Added documentation
2018-10-14 13:14:10 +00:00
dkf
239ba78ee4
Adapt the code to the fact that we don't need to stick to the BMP any more
2018-10-14 10:51:27 +00:00
dkf
359b371edd
Move header parsing to where it belongs
2018-10-14 09:17:16 +00:00
dkf
67b4e0d544
merge core-8-branch
2018-10-14 09:04:11 +00:00
dkf
2482413c83
Minor doc update
2018-10-12 18:45:54 +00:00
dkf
de2192ab20
Turn [zipfs tcl_library] into more internal [tcl::zipfs::tcl_library_init]. It wasn't documented and isn't very useful outside of Tcl's startup code.
2018-10-12 18:44:25 +00:00
jan.nijtmans
7fcc213b7a
TCL_NUMBER_WIDE is deprecated
2018-10-12 18:24:20 +00:00
jan.nijtmans
5aceb08fb4
Merge 8.6
2018-10-12 18:15:24 +00:00
jan.nijtmans
1d465c4012
TIP #502 implementation: Index value reform.
2018-10-12 18:14:51 +00:00
jan.nijtmans
cc945fabb7
Fix test for UNICODE in win/tclAppInit.c. No longer check for "tclsh install", because tclsh is not compiled with that. Fix minizip.c compilation on systems without open64()
2018-10-12 17:54:42 +00:00
dkf
621251ae2e
Added docs for [zipfs lmkimg] and [zipfs lmkzip]
2018-10-12 12:07:13 +00:00
dkf
13e35220c2
Better document how to package an executable script in a zipfs
2018-10-12 09:52:56 +00:00
dkf
45e6ca04f5
Document [zipfs canonical] and add examples of how to use passwords.
2018-10-12 07:36:19 +00:00
dgp
7c859988ba
Revert addition of "slowTest" as built-in constraint. (no TIP; no version bump).
...
Let the test file that needs the constraint define it with existing facilities.
2018-10-11 17:47:05 +00:00
dgp
a221655e1a
More updates to changes file.
2018-10-11 17:17:37 +00:00
dgp
af3a20ad4e
Mark test macOSXFCmf-2.8 non-portable. It appears to pass when the older
...
HFS+ filesystem is in use, often on disk drives in older systems. It appears
to fail when APFS is in use, more typical on newer SSD storage.
2018-10-11 11:48:32 +00:00
dgp
f4f6ef461b
Update URLs. changes file WIP.
2018-10-11 11:31:29 +00:00
dkf
5719d6ca30
Put documented [zipfs find] in ensemble. Add examples to docs.
2018-10-11 07:24:40 +00:00
dgp
d918760272
Backport test fix.
2018-10-10 23:04:25 +00:00
jan.nijtmans
58d332cff9
Use TCL_THREADS in stead of defined(TCL_THREADS) everywhere, otherwise it will give unexpected results with TCL_THREADS=0
2018-10-09 21:13:42 +00:00
jan.nijtmans
1f2c3cb141
isspace -> TclIsSpaceProc in various places.
...
Re-generate tclDate.c with Bision 3.1
2018-10-09 19:43:38 +00:00
jan.nijtmans
398efeba2d
Fix test-case macOSXFCmd-4.1, by assuring the files are sorted alphabetically always. The file-sytem cannot be thrusted doing this.
2018-10-09 19:27:26 +00:00
dkf
0591917a06
Avoid making question marks bold or italic in docs UNLESS EXACTLY MEANINGFUL
2018-10-09 18:52:52 +00:00
dgp
9e61a85e86
merge 8.6
2018-10-09 18:27:57 +00:00
dgp
bbdb1f12a0
Use the 4 argument form of [makeFile].
2018-10-09 18:24:57 +00:00
dkf
fed4d43bd5
Balance the [makeFile/makeDirectory] and [removeFile/removeDirectory] calls (conditional now, so avoids warnings in filter/constraint cases).
2018-10-09 17:56:34 +00:00
dkf
f9a4d9f781
Balance the [makeFile/makeDirectory] and [removeFile/removeDirectory] calls (conditional now, so avoids warnings in filter/constraint cases).
2018-10-09 17:55:20 +00:00
sebres
1a664df87f
Balance the [makeFile/makeDirectory] and [removeFile/removeDirectory] calls (conditional now, so avoids warnings in filter/constraint cases).
2018-10-09 16:59:13 +00:00
dgp
eec0f0f9da
merge 8.6
2018-10-09 13:51:56 +00:00
dkf
77282aad96
Improve documentation of [tcl::process]
2018-10-09 08:21:32 +00:00
jan.nijtmans
c9301353fc
Tcl_GetStringFromObj -> Tcl_GetString
2018-10-08 22:32:08 +00:00
jan.nijtmans
4b7747b505
Fix MSVC warning: warning C4146: unary minus operator applied to unsigned type, result
...
still unsigned (hopefully)
2018-10-08 20:47:26 +00:00
jan.nijtmans
e7a40e1084
TIP #514 implementation: Platform differences in handling int/wide
2018-10-08 19:08:14 +00:00
jan.nijtmans
ee49fa81d9
Merge 8.6
...
Also fix startup problems on win32, when the encoding path contains invalid UTF-8 (reported by François Vogel)
Various other code cleanup, e.g. remove empty.zip file, as this didn't work quite as expected.
2018-10-08 18:34:09 +00:00
jan.nijtmans
cc4dae5c0f
Streamline: Tcl_WinTCharToUtf/Tcl_WinUtfToTChar(): Always initialize DString, and let it return NULL when imput is NULL. That's what seem to assume the callers.
2018-10-07 20:26:33 +00:00
dkf
3826a26f8a
Centralise the de-fanging of standard ensembles in safe interpreters. Doing it right once is easier than repeating hacks...
2018-10-07 19:34:52 +00:00
dkf
045e0f533d
Add better error reporting to zipfs.
2018-10-07 12:25:34 +00:00
jan.nijtmans
ac711bcf45
protect Tcl_WinUtfToTChar/Tcl_WinTCharToUtf against NULL input values: return empty string in that case.
...
Add TIP #494-compatible definitions of TCL_IO_FAILURE/TCL_AUTO_LENGTH, and use it in some appropriate places.
2018-10-06 17:12:46 +00:00
dkf
b5f75d3392
More regularizing of function names, field names and testing styles
2018-10-06 16:49:40 +00:00
dkf
ffc7a9f0b9
More cleaning up.
2018-10-06 13:07:52 +00:00
dkf
a557024511
Cleanup work on zipfs(n)
2018-10-06 06:41:28 +00:00
dkf
0efc494b97
More tidying up of zipfs
2018-10-06 06:22:57 +00:00
jan.nijtmans
70fb513ba3
Merge 8.6
2018-10-05 21:22:13 +00:00
jan.nijtmans
8985ee2114
Better implementations of Tcl_WinTCharToUtf() and Tcl_WinUtfToTChar(). They don't make any assumption on whether encodings are initialized, or specific win32 handling of special characters.
2018-10-05 20:54:59 +00:00
dgp
33d71c61d9
merge 8.6
2018-10-05 19:41:28 +00:00
dgp
e13c5f55a1
merge 8.6
2018-10-05 19:40:55 +00:00
dgp
c74364be4c
Bump version numbers for 8.6.9 release.
2018-10-05 19:37:52 +00:00
jan.nijtmans
85aac3aef7
Fix wrong usage of Tcl_WinTCharToUtf() contract: nativePath should never be NULL, but actually it can be.
2018-10-05 19:37:38 +00:00
dgp
c3c71b5f3c
Post-TIP 505 editing of [lreplace] documentation.
2018-10-05 17:20:40 +00:00
jan.nijtmans
d1ec31a73d
Merge 8.6
2018-10-04 19:26:18 +00:00
jan.nijtmans
9feb8b7c29
In registry, protect "keyName" from being NULL: This actually can lead to crashed (I experienced this ...). Update version to 1.3.3, and align implementation in all branches (core-8-6-branch and higher)
2018-10-04 19:22:37 +00:00
dkf
b45b819dfe
Clean up zipfs implementation a bit.
2018-10-04 10:42:11 +00:00
sebres
c365555a69
fixed TclGetWideBitsFromObj - minus applied to unsigned type
2018-10-04 08:04:08 +00:00
dkf
9707adf634
Added Emacs metadata to a bunch of nroff source files.
2018-10-04 07:27:32 +00:00
jan.nijtmans
05e0ee4c06
Merge 8.6
2018-10-03 20:02:25 +00:00
jan.nijtmans
50a1375461
Tcl_UniCharToUtfDString: Don't allocate too much memory for this function.
...
Tcl_UtfToUniCharDString: Don't allocate too much memory for this function. And make sure that we never access more than 'length' bytes from the string, not even when encountering invalid UTF-8.
2018-10-03 19:24:13 +00:00
hypnotoad
8f20d609b9
Eliminating whitespace changes introduced by the prior checkin
2018-10-01 18:01:13 +00:00
hypnotoad
ef381abdfd
Pulling back in changes to fix testing on cross compiled static builds
2018-10-01 17:05:00 +00:00
hypnotoad
3dc49c128c
Adjust when tcl consults zipfs until AFTER it has checked that env(TCL_LIBRARY)
...
has not been set
2018-10-01 16:41:12 +00:00
hypnotoad
38dcdcb300
Fixed the arguments that zipfs mount was sending in auto.tcl.
...
Standardized on 8 spaces instead of tab characters inside of that file.
(The indent pattern was not consistent and editing the file in a modern
editor was... painful.)
Added logic to check the current path for a zipfile with the name of the
package being loaded. This allows wish to load tcl_library from a zip file in the same
directory as the executable. And in fact, any package which uses the
tcl_findLibrary mechanism with get this behavior for free.
2018-09-30 23:12:13 +00:00
hypnotoad
d0ac3d107b
Adding Zipfile to the list of products produced for builds
2018-09-30 22:21:50 +00:00
hypnotoad
f08ec44049
Adding logic for static builds to load a properly named zipfile
...
in the present working directory if that zipfile was not present in
either the install directory or the source directory.
2018-09-30 10:17:44 +00:00
jan.nijtmans
acbdbb87fb
Add support for wine. So windows test-cases can now be run on Linux/Mac/whatever.
2018-09-29 20:39:10 +00:00
dkf
a9dab78604
More readability improvements to unix makefile
2018-09-29 08:51:42 +00:00
jan.nijtmans
084fba1d17
\Merge 8.7
2018-09-28 19:59:40 +00:00
jan.nijtmans
c414b83e0a
Merge 8.7
2018-09-28 19:58:43 +00:00
jan.nijtmans
3f2c2080cc
Merge 8.6
2018-09-28 18:49:45 +00:00
jan.nijtmans
3d5f129cb0
Another patch contributed by Gustaf Neumann: shifting negative numbers is undefined behavior in the C standard
...
https://stackoverflow.com/questions/8415895/is-left-and-right-shifting-negative-integers-defined-behavior
2018-09-28 18:45:34 +00:00
jan.nijtmans
6d137e77a5
nmake build fixes for zipfs (ongoing, zip attachments not done yet)
2018-09-28 18:21:10 +00:00
dkf
4ee2aeb33d
Small fixes to unix makefile
2018-09-28 13:59:19 +00:00
dkf
fd03d49b6f
Better phrasing from TIP 509
2018-09-28 09:54:24 +00:00
dkf
29fbee5784
Implement TIP 509: reentrant mutexes on all platforms
2018-09-28 09:50:58 +00:00
dkf
eede8c60a1
Clean up code style and add key phrases to documentation.
2018-09-28 09:49:57 +00:00
dkf
9dabbdf40b
merge core-8-branch
2018-09-28 09:18:49 +00:00
dkf
2f3fc1cfa2
Fix minor typo
2018-09-28 07:24:59 +00:00
jan.nijtmans
66dc9d1fbf
Merge 8.7
2018-09-27 21:46:24 +00:00
jan.nijtmans
e170502d63
Merge 8.7
2018-09-27 21:38:11 +00:00
dkf
b1e6b58b6a
Implementation of TIP 426: Determining the "Type" of Commands
2018-09-27 11:08:14 +00:00
dkf
6ec7c04557
Restricted the information made available to safe interpreters a bit.
2018-09-27 11:06:59 +00:00
dkf
bfdc5233eb
merge core-8-branch
2018-09-27 08:24:26 +00:00
dkf
1146932b9e
Implementation of TIP 505: Make [lreplace] Accept All Out-of-Range Index Values
2018-09-27 08:22:07 +00:00
dkf
6cdb3193ec
Implementation of TIP 505: Make [lreplace] Accept All Out-of-Range Index Values
2018-09-27 08:19:18 +00:00
dkf
bf46b6a1da
Updated documentation
2018-09-27 07:44:50 +00:00
dkf
00d5f9266b
Implementation of TIP 516: More OO Slot Operations and TIP 515: Level Value Reform
2018-09-27 07:25:04 +00:00
dkf
efa79f01e6
Implementation of TIP 516: More OO Slot Operations
2018-09-27 07:22:42 +00:00
jan.nijtmans
9f745ab1cd
Implementatin of TIP #515 : Level Value Reform
2018-09-26 23:43:00 +00:00
dkf
f0ab769a7c
Implementation of TIP 508: [array default]
2018-09-26 23:17:48 +00:00
jan.nijtmans
59f808eb7a
Improvements for zipfs. Document that TclZipfs_AppHook only works on Windows in UNICODE mode. Also, remove this from the stub table because it should never be called this way.
...
Prevent a possible crash on win32 startup.
2018-09-26 19:38:08 +00:00
dkf
9aa47b2cfa
Improved comment.
2018-09-26 13:09:20 +00:00
dkf
761a7867d5
Make defaults work even when [upvar]ed to just a non-existent element.
2018-09-26 13:08:46 +00:00
dkf
46c087f956
merge core-8-branch
2018-09-26 09:47:14 +00:00
dkf
3b77852126
Fix semantics of [lappend] with defaults in a procedure.
2018-09-26 08:12:34 +00:00
jan.nijtmans
f0f3d8a55b
merge 8.6
2018-09-25 21:18:03 +00:00
jan.nijtmans
d5583552c0
Contributed patch from Gustaf Neumann, preventing problems where "localCachePtr" can be NULL
2018-09-25 21:16:32 +00:00
dgp
71e4ddb74f
merge 8.7
2018-09-25 13:31:19 +00:00
dkf
b1f92f4888
Added test cases for errors
2018-09-25 10:18:32 +00:00
dkf
beac2287a9
Corrected the semantics of [append] with defaults
2018-09-25 07:36:09 +00:00
dkf
7b0e9cef60
More correct variable existence checks
2018-09-25 07:27:31 +00:00
dkf
76e2e078e3
Correct variable existence check in [array default exists]
2018-09-25 07:24:44 +00:00
dkf
036cd8c9be
merge core-8-branch
2018-09-25 07:24:04 +00:00
jan.nijtmans
ac61d77a41
More fixes in Tcl_WinTChar2Utf: Don't restart loop when output contains null-byte.
2018-09-24 23:24:00 +00:00
dgp
d0fab95780
merge 8.6
2018-09-24 16:19:17 +00:00
dgp
338b9ec9d2
Silence debugging message in test suite.
2018-09-24 16:15:25 +00:00
dkf
4719e1f68d
Add tests. Exposes quite a few bugs in the implementation...
2018-09-24 08:21:36 +00:00
dkf
be629669a5
Added docs
2018-09-23 17:29:46 +00:00
dkf
8a6dda8529
merge core-8-branch
2018-09-23 16:42:11 +00:00
jan.nijtmans
243ea5f7a3
Merge 8.6
2018-09-23 13:29:42 +00:00
jan.nijtmans
6d3aeef45e
Give lambda function a name "ReceiveChunked" for easier testing. New function quoteString and code cleanup
2018-09-23 13:27:14 +00:00
jan.nijtmans
fbdc68b6a2
Handle the (unlikely) case that Tcl_DStringSetLength() results in a re-allocation of the buffer
2018-09-22 16:51:43 +00:00
jan.nijtmans
4603752cef
merge tip-515 branch
2018-09-22 13:37:28 +00:00
jan.nijtmans
d6a9a5d664
Merge 8.7
2018-09-22 13:24:33 +00:00
jan.nijtmans
9f9a9e291d
Change ULLONG_MAX -> UWIDE_MAX, LLONG_MAX -> WIDE_MAX and LLONG_MIN -> WIDE_MIN everywhere, because not all platforms equal Tcl_WideInt type as equal to "long long". This should fix test-cases on platforms where Tcl_WideInt != long long, and have no effect on 'normal' platforms
2018-09-22 13:18:49 +00:00
jan.nijtmans
1795b4118f
merge tip-515 (which is pre-requisite for this TIP now)
2018-09-22 12:54:54 +00:00
jan.nijtmans
4ec357c743
merge 8.7
2018-09-22 12:45:29 +00:00
jan.nijtmans
31b9d1f712
Fix a couple of test-cases, since http1.0 is no longer there
2018-09-22 12:29:46 +00:00
jan.nijtmans
25ac7e62ba
forgot one location for http version number
2018-09-22 12:05:14 +00:00
jan.nijtmans
854cf964d2
Merge 8.6
2018-09-22 10:21:36 +00:00
jan.nijtmans
63ef0e3d26
Update http version number, and fix some related test-cases
2018-09-22 10:20:28 +00:00
jan.nijtmans
df89a7f211
Prevent possible build order problem, due to missing dde/registry dll's.
...
Make sure that Tcl_WinTChar2Utf() never produces intermediate null-bytes.
2018-09-22 10:09:23 +00:00
dkf
d025ae5c08
merge core-8-branch
2018-09-21 09:29:24 +00:00
kjnash
39318d91b7
merge bug-46b6edad51-concurrent-http
2018-09-20 13:41:13 +00:00
kjnash
d24a3eb2ba
merge 8.6
2018-09-15 18:41:23 +00:00
jan.nijtmans
bd42171094
missing type-cast
2018-09-13 20:37:44 +00:00
jan.nijtmans
c5943ec574
Eliminate the use of macro's like LLONG_MAX|MIN, since they assume that Tcl_WideInt equals "long long". Also eliminate uses of Tcl_WideAsLong() and friends, as - often - simple type cases make things more clear.
2018-09-13 20:33:58 +00:00
jan.nijtmans
f11320b6b0
Fix various test-cases, which started failing on Windows due to TIP #430
2018-09-13 20:31:45 +00:00
jan.nijtmans
1775284940
Fix test-case registry-6.20, which started failing starting with the TIP #389 commit.
2018-09-13 20:30:20 +00:00
jan.nijtmans
3200ec75ef
Stub fix, safe interpreter fix, and use more size_t wherever possible
2018-09-12 19:32:31 +00:00
jan.nijtmans
9b45aaa5b0
TIP #430 implementation
2018-09-12 19:30:00 +00:00
jan.nijtmans
1a3cef4874
Make ready for TIP #494 compatibility
2018-09-11 22:41:00 +00:00
dgp
4252e1f99f
merge 8.7
2018-09-11 15:39:20 +00:00
dkf
90e3bdc291
Simplify the slot resolution protocol
2018-09-11 07:44:04 +00:00
dgp
cdce5491b3
Rebase TIP 505 implementation a patch for 8.6.
2018-09-10 15:28:23 +00:00
dkf
4f17861678
Tests and docs
2018-09-10 08:33:11 +00:00
jan.nijtmans
0babbf966b
slightly better: Use GetFileSizeEx() on win64 and GetFileSize on win32
2018-09-09 17:05:38 +00:00
jan.nijtmans
b47bd89d44
TCL_NUMBER_WIDE -> TCL_NUMBER_INT. Two test-cases still failing
2018-09-08 21:49:09 +00:00
jan.nijtmans
33201eb14c
Bring back test-cases closer to what they were
2018-09-08 21:34:48 +00:00
jan.nijtmans
079f1e33dc
Merge TIP-515 branch, so part of the corrections in the TIP-514 implementation branch now moved to the TIP-515 implementation.
2018-09-08 21:29:40 +00:00
jan.nijtmans
a35eba4ac2
Merge core-8-branch
2018-09-08 21:18:57 +00:00
dkf
0d73b8a7c0
Implementation of TIP 516
2018-09-08 12:52:06 +00:00
jan.nijtmans
945b10776d
Merge 8.6
2018-09-07 22:23:00 +00:00
sebres
9a15a1b586
small code review (duplicate code removed)
2018-09-07 14:24:49 +00:00
dgp
4b7caf2e4a
merge 8.6
2018-09-07 12:11:01 +00:00
dgp
95db69f27b
Added test for [631b4c45df].
2018-09-07 12:04:32 +00:00
sebres
e94df65350
merge 8.6 (segfault fix)
2018-09-07 12:02:25 +00:00
jan.nijtmans
b8d2426e1b
Use GetFileSizeEx() in stead of GetFileSize(), to get the file size on Windows.
...
Minor improvement: attach empty .zip file to tclsh.exe (both for Windows and UNIX), zo "zip -A" can be used to modify its zip contents.
2018-09-07 11:56:40 +00:00
sebres
e80eaec4d3
amend to [e8ab4d85fa], proc.test: extended with new test-case to cover situation like [631b4c45df]
2018-09-07 11:55:01 +00:00
sebres
b9577c0641
closes [631b4c45df]: segfault by usage of wrong length (no string representation)
2018-09-07 10:45:30 +00:00
jan.nijtmans
833b02bc83
TIP #515 implementation: Level Value Reform
2018-09-07 09:53:17 +00:00
jan.nijtmans
6269e32c3b
Bug-fix: Move TclZipfs_AppHook() from 0 -> 2 in the stub table, otherwise it overrides the entry for Tcl_MacOSXOpenBundleResources (since MacOSX is UNIX as well...).
2018-09-06 11:25:41 +00:00
jan.nijtmans
3e7ffcaf4b
Code review
2018-09-06 09:47:30 +00:00
jan.nijtmans
5c9968a001
Minor code cleanup.
...
win/tclWinPipe.c: Eliminate some compiler warnings on mingw-w64
win/tclWinNotify.c: Eliminate tsdPtr->timeout variable, since it's only being written to.
other files: code cleanup, eliminate unnecessary type casts
2018-09-05 12:11:13 +00:00
jan.nijtmans
cf341f6a19
Merge 8.7
2018-09-05 08:07:25 +00:00
dkf
fbef9aa840
merge core-8-branch
2018-09-04 19:47:55 +00:00
jan.nijtmans
fdf1df3b29
Fix [540bed4bde]: binary format can result in "integer value too large to represent".
...
Implemented a new utility function TclGetWideBitsFromObj(), which handles the overflowing of integers using bignums.
This function can be used in a _LOT_ of other places, preventing code duplication. Done that as well.
Those changes have no effect on other commands, only two new "binary format" test-cases for this specific situation: binary-44.5 and binary-44.6
2018-09-04 14:37:01 +00:00
jan.nijtmans
ce13b82329
Merge 8.7
2018-09-03 13:45:49 +00:00
jan.nijtmans
2f2b7f6ac7
Eliminate use of wideBiggerThanInt test constraint, since it's the same as {longIs32bit wideIs64bit}. And ... it's name is actually wrong ...
...
Don't use int() any more in any test constraint, since it's semantics might change. We don't want the test constraints to change with it. (See: TIP# 514)
Simplify implementation of wideIs64bit test constraint, just testing for 64-bit sign bit is enough.
2018-09-03 12:53:15 +00:00
dkf
5f1bd2f2e3
Implement TIP 478: Add Expected Class Level Behaviors to oo::class
2018-09-02 13:48:22 +00:00
jan.nijtmans
2afacbce95
Merge 8.7, and improve TIP implementation (using utility function in more places)
2018-08-30 21:28:51 +00:00
sebres
0787b1d152
merge 8.6
2018-08-30 11:14:15 +00:00
sebres
cb9f3f9268
merge 8.5
2018-08-30 11:13:09 +00:00
sebres
6d88b01d1e
test-cases to cover quoting of the newline character, and the documentation extended.
2018-08-30 11:08:51 +00:00
jan.nijtmans
c8e7bb7653
Fix compilation on 32-bit platforms, and fix unit-tests in this environment
2018-08-29 19:30:37 +00:00
sebres
6dfe3f5de6
merge 8.6
2018-08-29 17:01:22 +00:00
sebres
77a26f5c95
merge 8.5
2018-08-29 16:59:10 +00:00
sebres
9cec6bac27
tcltest: forgotten built-in constraint "slowTest"
2018-08-29 16:58:06 +00:00
sebres
2f19b0f346
small amend to [cae24931ed] (no _CRT_glob in both cases __GNUC__ || TCL_BROKEN_MAINARGS).
2018-08-29 16:55:36 +00:00
sebres
265c9d416f
partially cherry-picking of [5099a81b50], never reached 8.6, so for example build for MINGW breaks tests winpipe-8.1 etc, because "*" will be expanded.
2018-08-29 15:55:13 +00:00
sebres
db610f91eb
code review after merge with 8.5 (restore usage of some functions, after lost by conflict resolving)
2018-08-29 15:49:19 +00:00
sebres
afb5bf5583
merge 8.5 ([21b0629c81] 0-day vulnerability - insufficient escape by exec of batch-files for windows)
2018-08-29 15:41:55 +00:00
sebres
9b7ce068fe
closes [21b0629c81] 0-day vulnerability - insufficient escape by exec of batch-files for windows
2018-08-29 14:45:57 +00:00
jan.nijtmans
eeebae7172
Now, restore wide(), but make int() the same as entier(). Add new utility function.
2018-08-28 22:28:50 +00:00
dkf
d4d1014e7d
merge core-8-branch
2018-08-26 11:07:37 +00:00
sebres
820a737a2f
code review, skip slow test winpipe-8.2 executed args from injectList particularly (normally winpipe-8.3 covers the same but jointly), to enable use parameter -constraints slowTest, added new test with randomly generated potentially dangerous args
2018-08-23 10:26:03 +00:00
sebres
c2d61d8dbc
code review, restored backwards compatibility of the simplest escape of quote-chars (so reverted several tests winpipe-7.x)
2018-08-23 08:00:32 +00:00
jan.nijtmans
80d62f0547
improved reange checking (also for the Tcl 9.0 proposal). Make platform test platform 32/64-bit independant
2018-08-21 21:36:03 +00:00
sebres
fb0bf9d1b9
fixes escape for special cases (+ more test-cases):
...
- `%` char to be escaped (quoted) in any case (regardless pairing flag), otherwise `%username%` will be interpolated as username.
- escape of multiple backslashes before quote is different (as without following quote) in unpaired quote syntax (upaired flag set)
2018-08-21 18:52:21 +00:00
sebres
01dd016ad8
because executable (1st argument) always proper escaped now, don't need to replace long path name of batch-executable with short path name (reduced to 16-bit applications only).
2018-08-20 19:58:44 +00:00
sebres
d660b325b5
small amend: avoid reset of unpaired quote flag between arguments (previous affects next) + test cases extended with several injection checks.
2018-08-20 16:15:37 +00:00
sebres
26b477b907
win: fixes [21b0629c81] - exec/open process pipe under windows (0-day vulnerability - insufficient escape)
2018-08-20 14:35:44 +00:00
jan.nijtmans
e588745d77
Re-base branch "all-wideint" to core-8-branch. Still WIP
2018-08-19 09:33:34 +00:00
jan.nijtmans
89ff80fbdd
merge-mark
2018-08-19 09:16:30 +00:00
jan.nijtmans
b3fc99501e
Still WIP. All test-cases pass now in 32-bit
2018-08-19 09:13:16 +00:00
jan.nijtmans
b3993adcfb
Merge 8.6
2018-08-17 22:21:12 +00:00
jan.nijtmans
90afac281e
Minor fix to entier(): Allow it to convert to "wideInt" as well when range is appropriate
2018-08-17 22:15:49 +00:00
sebres
aed158b518
win: TclpCreateProcess or [exec process ...] - search for application extended with ".cmd" extension:
...
automatically tries appending ".com", ".exe", ".bat" and ".cmd", in that order, to the name, looking for an executable.
(partially cherry-picked from 8.6 branch)
2018-08-17 18:26:10 +00:00
jan.nijtmans
c475df7cfb
Undo various test-case changes, in order to prove platform compatibility
2018-08-16 18:54:44 +00:00
jan.nijtmans
51ce0579e8
Few more test-cases
2018-08-16 18:13:31 +00:00
jan.nijtmans
57102e40e9
Experiment, resolving platform differences at script level. Don't look ...
2018-08-16 18:03:27 +00:00
hypnotoad
9b285dde85
Merging changes with 8.7
2018-08-14 08:46:22 +00:00
jan.nijtmans
afc4e512cb
Merge 8.7. Also provide a new function for handling ByteArrays
2018-08-14 07:27:38 +00:00
pooryorick
e5270637c0
Reposition the MODULE_SCOPE definition so that packages like tbcload don't get
...
an error when they include tclPort.h.
2018-08-14 05:43:17 +00:00
dkf
f5efc84600
Added a note about the genesis of the compiled header.
2018-08-11 12:01:06 +00:00
dkf
245151ad96
Improve script compilation. Prove that compilation works with safe interps.
2018-08-11 11:18:20 +00:00
pooryorick
65f3d0f56b
Repair breakage in recent refactoring of env.test.
2018-08-10 18:57:53 +00:00
pooryorick
18c102aa70
minor changes to documentation
2018-08-10 18:44:41 +00:00
pooryorick
e53f3cf9c6
Tighten up SaveResult.3, make installManPage more robust against newlines.
2018-08-10 15:03:14 +00:00
dgp
6c78bf0adc
Repair breakage in recent refactoring of env.test
2018-08-08 20:48:06 +00:00
jan.nijtmans
eeead325b4
Merge 8.7
2018-08-08 07:01:46 +00:00
jan.nijtmans
12647cc4fb
Merge 8.6
2018-08-08 06:46:31 +00:00
jan.nijtmans
8346cad0dd
Fix harmless gcc warning
2018-08-08 06:45:29 +00:00
jan.nijtmans
620b4d531d
merge 8.6 (test cases fix in ioTrans)
2018-08-07 08:22:28 +00:00
dkf
ed3e9c60ba
Combine the two bits of scripted code inside TclOO's definition into one.
2018-08-05 20:14:04 +00:00
dkf
d87884d51b
Make it much easier to maintain the TclOO initialisation script.
2018-08-05 15:01:30 +00:00
sebres
de5637f853
ioTrans.test: fixed cleanup - avoids error deleting "tempchanfile": permission denied: file seems to be locked/opened inside interp $idb
2018-08-03 13:46:30 +00:00
jan.nijtmans
40947c7d3e
Purge end-of-line spacing
2018-08-02 22:37:00 +00:00
jan.nijtmans
cff4a9d980
merge 8.6
2018-07-31 20:22:18 +00:00
jan.nijtmans
c1ae69114b
Remove some actually dead code
2018-07-31 19:49:51 +00:00
sebres
ad757b50dc
merge 8.6: bug [d051b77fc1] fixed
2018-07-26 18:58:03 +00:00
sebres
5902889825
amend after merge: 8.6th provide additionally an error-code (so missing errCode = "OVERFLOW")
2018-07-26 18:56:41 +00:00
sebres
04c687936c
merge 8.5 - bug [d051b77fc1] fixed
2018-07-26 18:51:03 +00:00
sebres
304b569170
merge test cases from 8.6
2018-07-26 18:15:17 +00:00
sebres
2133e40e58
amend to [d498578df4], still one test for [Bug ba921a8d98] with inplace by subst inside string (compiled as "strcat" instruction)
2018-07-26 18:07:34 +00:00
sebres
c7cdc550c4
test cases added to cover width overflow by format (should cause limit exceeded)
2018-07-26 16:46:47 +00:00
dgp
7633450128
[ba921a8d98] Make sure [string cat] includes all data from all bytearrays.
2018-07-26 16:14:44 +00:00
sebres
7e727bed70
closes [d051b77fc18d7340]: fixed segfault by integer overflow (if width by format like "%4000000000g" overflows to negative values by scan of length)
2018-07-26 15:57:38 +00:00
dgp
164a7f04c0
New test for [Bug ba921a8d98].
2018-07-26 15:51:28 +00:00
Kevin B Kenny
54fbd7dbcb
Resolve inadvertent fork
2018-07-25 01:43:43 +00:00
pooryorick
772d2da10b
Fix for [ba921a8d98e02a96] - concatenating binary array with empty string yields the empty string.
2018-07-22 20:44:16 +00:00
Kevin B Kenny
0ae1df9bfc
Merge 8.6: Add a note in the 'clock' man page about the interpretation of impossible values on [clock scan]
2018-07-21 18:45:41 +00:00
Kevin B Kenny
814c867db4
Add a note in the 'clock' man page about the interpretation of impossible values on [clock scan]
2018-07-21 18:45:09 +00:00
sebres
6667ddcb54
merge 8.6
2018-07-20 16:05:48 +00:00
sebres
d00a212e82
win: avoids warning by x64-build in function 'TclWinCPUID' - pointer targets in passing argument 1 of '__cpuid' differ in signedness [-Wpointer-sign] (int* vs unsigned int*)
2018-07-20 15:58:56 +00:00
sebres
7fb72851e8
win: fixes x64-build within gcc-compile runtime env for (mingw64, etc): "$do64bit" may be "amd64|x64|yes", so it could find & copy wrong zlib.dll.
2018-07-20 15:54:11 +00:00
sebres
4a3f32b84a
win: fixed test-cases (see [525ccacaef]) running under windows outside of temp-folder
2018-07-16 13:59:29 +00:00
dkf
77aceb5c5f
Added more tests and made [initialize] an alternate spelling for [initialise].
2018-07-15 15:46:33 +00:00
sebres
8a7c004dbc
merge 8.6
2018-07-12 15:31:27 +00:00
sebres
a1790a1683
merge 8.5
2018-07-12 14:25:09 +00:00
sebres
885a163b3c
win: closes [3f7af0e21e13f1f5] - avoid "permissions denied" by file delete, if file stat (TclpObjStat) used internally in other worker, for example by usage of file mkdir etc.
2018-07-12 14:17:57 +00:00
dgp
5a177e9aaf
merge 8.7
2018-07-11 17:48:31 +00:00
sebres
87e508c590
amend to [1830f9f520e2abdd], fixed package.test if built without test - avoids test file error: package "Tcltest" isn't loaded statically
2018-07-10 08:19:08 +00:00
sebres
a76637248c
merge 8.6
2018-07-09 19:03:38 +00:00
sebres
2a46a48670
merge 8.5
2018-07-09 18:15:34 +00:00
sebres
51aecf205d
closes [270f78ca95b642fb]: fix the race condition for file mkdir if some worker deletes directory immediately after the succeded create inside 3rd worker.
2018-07-09 17:18:07 +00:00
dgp
9bd3b59e1d
merge 8.7
2018-07-09 14:53:45 +00:00
dkf
d0f8889c8f
And another test
2018-07-07 08:57:49 +00:00
dkf
27110774bd
Added direct tests for [myclass]
2018-07-07 08:45:00 +00:00
dkf
5a06fd4bcf
Document the [myclass] command; someone might find it useful besides me.
2018-07-07 08:22:13 +00:00
dkf
969f9f571c
Improving the singleton
2018-07-06 13:50:54 +00:00
jan.nijtmans
64cbe6e187
Merge 8.6. Also remove a useless #undef/#define which will be overrided later.
2018-07-05 19:46:24 +00:00
jan.nijtmans
367ce9ad48
tclDictObj.c:366: warning: dereferencing type-punned pointer will break strict-aliasing rules
...
Prevent this warning, which gcc 4.4 (a.o.) gives on this construct. void pointers work well already in whatever assignment.
2018-07-05 19:39:19 +00:00
jan.nijtmans
6982ae0ca7
Make Tcl_GetUnicode() a macro. Mark many other stub-entries which are no longer are in use (because they were converted to macros) as deprecated, since they will be removed in Tcl 9.0
2018-07-04 20:20:28 +00:00
jan.nijtmans
da7eafc83b
Micro-optimization in Tcl_GetString() and Tcl_GetStringFromObj()
2018-07-04 20:18:39 +00:00
dkf
414bcee273
Documentation for [classmethod]
2018-07-02 07:44:09 +00:00
dkf
d11660acfe
Create a special command, [ :my:class], (in each instance namespace) that allows objects to delegate methods to their class.
2018-07-01 16:39:11 +00:00
dkf
5c7ba37901
More docs
2018-06-30 21:36:01 +00:00
dkf
1d1e95e779
More docs
2018-06-30 18:30:53 +00:00
dkf
bffb982059
More docs
2018-06-30 13:44:25 +00:00
dkf
0978bd50ce
Started to write documentation
2018-06-30 05:13:39 +00:00
dkf
3f8c7d5d40
More test cases. More fixes.
2018-06-29 07:15:06 +00:00
dkf
4c24e60418
Split out TIP 478 tests into their own file.
2018-06-28 10:40:37 +00:00
dkf
8219fb2632
Tests for abstract and singleton
2018-06-28 08:12:07 +00:00
dkf
082e8c6d7a
Add better error handling and make the delegation work with cloning.
2018-06-27 07:39:49 +00:00
jan.nijtmans
7a9d97826e
Since Tcl is always compiled with -DUNICODE -D_UNICODE (on Windows) and we know TCL_UTF_MAX>=4, we can simplify things. No change in functionality.
2018-06-26 19:45:22 +00:00
dgp
9683822257
merge 8.6
2018-06-26 17:07:02 +00:00
dgp
9da2aebeae
Use a thread exit handler, and not a custom exit proc for package cleanup.
2018-06-26 17:00:29 +00:00
dgp
bf884c9bc9
merge 8.6
2018-06-26 14:23:22 +00:00
dgp
ed5ed756bc
Restore lost tests.
2018-06-26 14:22:08 +00:00
jan.nijtmans
77bd578d9f
TIP #512 implementation
2018-06-25 20:41:56 +00:00
jan.nijtmans
fdee46ab16
merge 8.6
2018-06-25 20:38:16 +00:00
jan.nijtmans
0839047d8b
Simplify ToUtf(), expecially for TCL_UTF_MAX>3 (with correct surrogate handling).
...
Fix various typo's
2018-06-25 07:22:19 +00:00
jan.nijtmans
94f9cf81ed
Fix "string tolower" and friends for handling unpaired surrogates correctly. Also add test-cases for those situations.
...
Various typo's in comments.
2018-06-24 20:26:27 +00:00
pooryorick
e2a79c2604
Fix for [3592747]: Let TclNRTailcallEval handle namespace problems.
2018-06-24 07:17:46 +00:00
dkf
05209c57d3
Make the delegates work by moving their creation into C.
2018-06-23 15:03:26 +00:00
pooryorick
6cbfdcc4a3
Add a test for no generation of a string representation when comparing with the
...
empty string.
2018-06-23 14:18:06 +00:00
pooryorick
94ec3d9431
Add another suppress rule for valgrind, factor test code into
...
tests/tcltests.tcl, and constrained a some tests in the valgrind case.
2018-06-22 15:10:04 +00:00
pooryorick
6c1e9f2b0c
merge pyk-tcltest-exit
2018-06-21 22:44:04 +00:00
pooryorick
563bd6e4dd
Fix function signature of TclThreadTestFinalize.
2018-06-21 22:43:18 +00:00
pooryorick
b418ff1759
merge pyk-tcltest-exit
2018-06-21 22:23:04 +00:00
pooryorick
56ca35e8a9
Add custom exit procedure for tcltests executable.
2018-06-21 22:21:31 +00:00
pooryorick
107fb1eb33
Suppress more valgrind "still reachable" reports and ensure that threads are
...
fully finalized in thread tests.
2018-06-21 22:16:29 +00:00
pooryorick
c911dc937f
Add valgrind suppression for dlopen and ensure that processes are reaped in
...
http11.test.
2018-06-20 19:06:40 +00:00
pooryorick
645241afc1
Remove recent auto_path modification in tests/all.tcl and suppress more
...
valgrind reports.
2018-06-20 08:03:22 +00:00
pooryorick
03a3c09b1f
new file: tools/valgrind_suppress. num-callers bumped from 8 to 24. Valgrind
...
now issues no "still reachable" reports for cmdAH.test.
2018-06-19 11:47:08 +00:00
jan.nijtmans
5c87050dd8
Merge 8.6. And add more documentation and test-cases regarding the behavior of Tcl_UniCharToUtf()
2018-06-18 15:59:19 +00:00
jan.nijtmans
3c57d80efe
Fix [53cad613d8]: TIP 389 implementation makes Tk tests font-4.12 and font-4.15 fail. One more situation in which high surrogate causes problem
2018-06-18 15:54:38 +00:00
jan.nijtmans
04004f3abc
Unbreak build on Windows (and - most likely - some other platforms too)
2018-06-18 15:51:43 +00:00
pooryorick
155e8a1ad5
Avoid valgrind "still reachable" reports stemming from early termination of
...
threads.
2018-06-18 08:09:32 +00:00
pooryorick
625aca976a
Full cleanup of env cache when in a PURIFY build.
2018-06-18 07:06:04 +00:00
pooryorick
e9c0ec1219
Plug leak in TclSetEnv.
2018-06-18 05:59:22 +00:00
dkf
8e696a5e5d
Leaving out the weird delegates stops the test failures.
2018-06-17 17:27:41 +00:00
dkf
9e511d7874
Most of the implementation ported over. [classmethod] is trickier...
2018-06-17 16:47:45 +00:00
jan.nijtmans
5af99f55b2
merge 8.6
2018-06-17 16:11:50 +00:00
jan.nijtmans
8047a470ef
Fix [53cad613d8a4de166e680f09a6c6399ebddbc17c|53cad613d8]: TIP 389 implementation makes Tk tests font-4.12 and font-4.15 fail. (Fix it in 8.6 too, for benefit of androwish)
2018-06-17 16:07:09 +00:00
dkf
1f91c778bb
Split scripted parts of TclOO into their own file.
2018-06-17 15:42:58 +00:00
pooryorick
2b739c838a
Remove dependencies between tests in env.test.
2018-06-17 08:47:29 +00:00
pooryorick
dd713ee96e
Add tests/tcltests.tcl as a place to store common code for tests.
2018-06-16 22:57:36 +00:00
pooryorick
983854ad7b
Add tests/tcltests.tcl as a place to store common code for tests.
2018-06-16 22:56:07 +00:00
dkf
7bf68c2335
Add in basic github meta-files to reduce problems with issues being filed where we don't see them.
2018-06-16 18:07:30 +00:00
pooryorick
41a6159754
new package
...
tcltests
exclude some exec.test tests when running under valgrind
2018-06-16 17:55:31 +00:00
jan.nijtmans
c9802b0230
merge 8.6
2018-06-15 18:37:45 +00:00
jan.nijtmans
df97278634
merge 8.5
2018-06-15 18:35:56 +00:00
jan.nijtmans
06fc5fb636
Align common install locations in SC_PATH_TCLCONFIG and SC_PATH_TKCONFIG. Add FreeBSD (closes [d6d60efd35]) and OpenBSD 8.5 paths
2018-06-15 18:31:24 +00:00
pooryorick
15f804e04e
new package
...
tcltests
exclude some exec.test tests when running under valgrind
2018-06-15 13:17:17 +00:00
dgp
fd7ecfb877
missing parts
2018-06-14 18:39:34 +00:00
dgp
e5de25734f
merge 8.6
2018-06-13 16:12:54 +00:00
dgp
e393000b1d
merge 8.5
2018-06-13 16:06:38 +00:00
dgp
83d92bd747
Stop creating a stray child process.
2018-06-13 15:59:15 +00:00
pooryorick
33b8401436
Avoid valgrind "still reachable" reports stemming from early termination of
...
threads.
2018-06-13 10:49:25 +00:00
hypnotoad
d62033b7e2
Adding typecasts in tclZipfs.c to eliminate a compiler warning
2018-06-12 19:32:03 +00:00
dgp
1b3a0a73ae
Remove AbsolutePath(), no longer used.
2018-06-12 19:16:38 +00:00
dgp
9e3e0498e7
merge 8.7
2018-06-12 19:14:47 +00:00
dgp
0d36d5f3d8
merge 8.7
2018-06-12 18:03:09 +00:00
dgp
a54459bed6
close fork
2018-06-12 18:02:24 +00:00
dgp
b5e61d9f54
merge 8.6
2018-06-12 17:53:43 +00:00
dgp
5a05e0d782
merge 8.5
2018-06-12 17:53:19 +00:00
dgp
9c8f784329
[860a9f1945] Remove test safe-8.8; Mac OS 9 tests are no longer useful.
2018-06-12 17:10:03 +00:00
fbonnet
7fe9e1b90c
Removed thread-specific mutex lock counter and replaced by shared counter + thread ID for systems without PTHREAD_MUTEX_RECURSIVE
2018-06-09 17:20:15 +00:00
jan.nijtmans
bae4992913
merge-mark (Unicode 11.0 beta was already here, and there were not changed in the final version)
2018-06-09 07:45:45 +00:00
jan.nijtmans
1efbaebb6a
Merge 8.5 (= update Unicode data to Unicode version 11.0)
2018-06-09 07:44:33 +00:00
jan.nijtmans
ac47e6953d
Update all Unicode tables to Unicode version 11.0
2018-06-09 07:42:42 +00:00
jan.nijtmans
400feb302b
Update to latest tzdata (backported from 8.6)
2018-06-09 07:41:47 +00:00
sebres
9c9b3d93f9
merge 8.5 (empty merge point, no functional changes, because does not affect 8.6)
2018-06-08 13:02:59 +00:00
sebres
04d1270786
resolves some warnings by compiling with new gcc-versions (>= 7.x):
...
- '*' in boolean context, suggest '&&' instead [-Wint-in-bool-context]
- passing argument 1 of 'Tcl_CreateExitHandler' from incompatible pointer type [-Wincompatible-pointer-types]
2018-06-08 12:50:43 +00:00
jan.nijtmans
f8b9cb869d
re-generate configure script (where does --runstatedir come from?
2018-06-08 06:56:33 +00:00
pooryorick
4755be8f41
Give tests more time to finish since valgrind slows things down considerably.
2018-06-07 20:59:27 +00:00
sebres
c2e16d9b1f
amend to [eeefdb44cf]: fixes missing install path (closes [593aa7c421]) for mingw/*nix
2018-06-05 21:59:09 +00:00
dgp
d60637c153
Just the [timerate] command for separate review and performance baseline.
2018-06-05 20:16:30 +00:00
dgp
f206e0fb4b
merge 8.7
2018-06-05 17:26:37 +00:00
sebres
3b14a4b0ed
re-autoconfigure with v.2.69
2018-06-05 09:10:56 +00:00
sebres
a3fdad2b4f
merge 8.6
2018-06-05 09:04:08 +00:00
sebres
b89a3efc56
merge 8.5
2018-06-04 13:52:19 +00:00
sebres
240e6b50d2
fixes [92564326a9] if compiled on some x86 systems (with dirent64 but without DIR64, partially cherry-picked from https://www.androwish.org/index.html/info/6119b8ac2aee8411 ).
2018-06-04 13:49:38 +00:00
dgp
38be8d3de6
merge 8.7
2018-06-04 13:17:58 +00:00
dgp
9db2475e4e
merge 8.7
2018-06-04 13:10:18 +00:00
dgp
050e383cf2
merge 8.7
2018-06-04 13:08:54 +00:00
dgp
29bbdb74d3
merge 8.7
2018-06-04 13:07:15 +00:00
dkf
ddd37fb237
TIP 500: Private Methods and Variables in TclOO
2018-06-03 11:44:19 +00:00
dkf
63be474164
merge core-8-branch
2018-06-02 14:19:33 +00:00
kjnash
754bb107b4
Bugfix - always cleanup persistent socket.
2018-06-01 18:34:07 +00:00
dgp
1545e31557
Rebase the sebres clock bounty work to the 8.7 branch.
2018-06-01 16:04:22 +00:00
dgp
fa47c96ac2
merge 8.7
2018-05-31 19:23:15 +00:00
jan.nijtmans
5e3ca11761
Neither use --disable-threads on MacOS builds, and don't mention it any more in the README
2018-05-31 07:17:23 +00:00
sebres
71f7b946a6
amend to [98a00c62b4798792]: fixed sort of the tests
2018-05-30 11:49:19 +00:00
dkf
6ab540f5ff
Tweaking the documentation
2018-05-30 09:38:48 +00:00
jan.nijtmans
63b0fef31a
No longer pass "--enable-threads" to battery-included sub-packages, since it's the default, even when Tcl is built without threads, now. This opens the way (in the future) to remove this option from the sub-packages
2018-05-30 07:15:13 +00:00
sebres
83a8197fe9
back-porting of tclclockmod done, merge current 8.6
2018-05-29 17:58:53 +00:00
sebres
153e32d613
fixed ticket [dc69e5ecf04313429fd202b1906cd85bb7888f95]: missing zones AKST/AKDT
2018-05-29 17:41:00 +00:00
sebres
1b580435fc
forgotten flag "CLF_DAYOFWEEK" in one case, where day of week is set
2018-05-29 17:38:29 +00:00
sebres
f185b8c243
revert explicit adding of validity mode suffix in all test-cases: used wrapper command "test" instead
2018-05-29 17:38:02 +00:00
sebres
991ad56e9c
tests: sort test-files without extension (e. g. "clock" before "clock-ivm").
2018-05-29 17:37:03 +00:00
sebres
371c0aec0b
conditional test-call rewritten: realized via tests\clock-ivm.test to cover inverted default validation mode
2018-05-29 17:27:23 +00:00
sebres
2f35271c9d
fixed week-based calculation if neither mmdd nor ddd available;
2018-05-29 17:26:12 +00:00
sebres
3cf665c0f5
validation rules: extended for day of year (and test covered now)
2018-05-29 17:25:48 +00:00
sebres
ef90044383
amend after rebase to master: follow rename yyDayNumber to yyDayOfWeek
2018-05-29 17:24:41 +00:00
sebres
5fb141ae40
validation rules ready for scan/freescan; test cases extended; code review and clean-up;
...
running of test cases with and without validate.
2018-05-29 17:24:24 +00:00
sebres
da19723bdc
first simple validation rules introduced
2018-05-29 17:21:09 +00:00
sebres
d1b1eb61ee
try to re-implement validation rules for clock scan (option -valid 1|0), see http://core.tcl.tk/tcl/tktview?name=3475995
2018-05-29 17:20:36 +00:00
sebres
bacdc67e69
Merge branch 'freescan_tz_fix'
2018-05-29 17:19:31 +00:00
sebres
fc3ea33681
follow http://core.tcl.tk/tcl/info/a3463a55a6a27eed : Historical change affecting tests: Detroit did not observe Daylight Saving Time in 1967
2018-05-29 17:18:26 +00:00
sebres
86fa45a2d2
Fixed performance test-cases: several test-cases repaired to be feasible using original clock engine.
2018-05-29 17:16:56 +00:00
sebres
e3d338650f
fixed test-cases (regardless the current time zone)
2018-05-29 17:14:52 +00:00
sebres
88f8e603d9
FreeScan: rewritten lexer rules and some tokens for better space recognition; fewer conflicts (shift/reduce, reduce/reduce);
...
differentiate between TZ like "GMT+1" and relative offsets "GMT +1 day", etc.;
test-cases extended for new cases.
2018-05-29 17:14:36 +00:00
sebres
2c4913d479
Apply Flightaware DST fix
2018-05-29 17:13:50 +00:00
sebres
3681b8fdb5
try to fix GMT+0000, etc. **still wrong**, because of "GMT+1" and because of longest match "00:00 GMT +1000 days" (in this case "days" == "1 day")...
...
% clock scan "+1000 days" -base 100000000 -gmt 1
186364800
% clock scan "00:00 GMT +1000 days" -base 100000000 -gmt 1
100015200
% clock format [clock scan "GMT+10"]
Thu Sep 14 19:54:16 CEST 2017
% clock format [clock scan "GMT+1000"]
Thu Sep 14 10:04:20 CEST 2017
% clock format [clock scan "GMT+10"]
Thu Sep 14 19:54:23 CEST 2017
% clock format [clock scan "GMT-1000"]
Fri Sep 15 06:04:39 CEST 2017
%
2018-05-29 17:12:28 +00:00
sebres
9b3dad29d7
FreeScan: repair scanning date/time with TZ using '+', ex.: "31 Jan 14 23:59:59 +0100", additionally another TZ formats can be used now (token [zone] used instead of sequence '-' tNUMBER); test cases extended.
...
Closes http://core.tcl.tk/tcl/tktview?name=5019748c73
Cherry picked from fossil branch "sebres_clock_tz_fix", check-in [5f72c863f17145b4]
2018-05-29 17:11:52 +00:00
sebres
743a4fee3d
replace unneeded calculation of seconds of day (already available in field secondOfDay)
2018-05-29 17:11:09 +00:00
sebres
35b9322dc3
fixed multi-threaded race condition, if the same format will be first time used by 2 threads simultaneously:
...
assign tokenized lists (scnTok/fmtTok) to format storage firstly if it get ready.
2018-05-29 17:10:51 +00:00
sebres
a194fa9779
code review and cleanup (remove unused code)
2018-05-29 17:09:48 +00:00
sebres
b8ef30620b
code review and cleanup (remove unused code)
2018-05-29 17:04:51 +00:00
sebres
46c8ea3458
Added max permitted threshold (buffer size > result size) in percent, to directly return the buffer without reallocate (don't affect small formats with size < 80 (MIN_FMT_RESULT_BLOCK_ALLOC))
2018-05-29 17:03:28 +00:00
sebres
10673db0ce
further optimization: better cache for GMT-timezone + minimize (re)allocation of buffers
2018-05-29 17:02:57 +00:00
sebres
14c5c590e0
code review: micro optimizations
2018-05-29 17:01:00 +00:00
sebres
533ca10a79
generic\tclStrIdxTree.c: bug fix (lost abbreviation), if tree will be built from 2 lists, and the short form differentiate from long form ("jan." vs "january", note the dot-char), don't use longest form - should be split in 2 entries with common parent "jan".
...
Thus use simple case (don't split) only if found item is covered in full (e. g. "jan" vs "january", note without dot-char).
Test covered now (clock-29.181x, locale "fr") - `clock scan [clock format 0 -format {%a %d-%m-%Y} -locale fr] -format {%a %d-%m-%Y} -locale fr`
2018-05-29 16:59:22 +00:00
sebres
916a8e7276
performance: GetMonthDay re-implemented using most faster algorithm (without cycle).
2018-05-29 16:47:02 +00:00
sebres
baa4ae5c90
try to resolve warnings by some forwards declarations: redefinition of typedef 'ClockScanToken' is a C11 feature [-Wtypedef-redefinition]
2018-05-29 16:45:56 +00:00
sebres
ae8248cd39
fixed test case clock-0.1 "auto-loading of ensemble and stubs on demand" - makes no sense if tclclockmod loaded.
2018-05-29 16:45:07 +00:00
sebres
2293dabf3f
Initialize prevf to fix (used before set) warning.
...
* Prevf doesn't get used at line 145 unless `prevItem != NULL` and prevf also gets set in the same block, so this is safe.
2018-05-29 16:42:27 +00:00
sebres
90c1f734c0
tests-perf\test-performance.tcl: ported from sebres-8-6-event-perf-branch (common test performance framework), removed from "tests-perf\clock.perf.tcl" and used as include.
2018-05-29 16:40:26 +00:00
jan.nijtmans
bb503004b6
merge 8.6
2018-05-29 07:23:51 +00:00
jan.nijtmans
267cdaec03
One TCL_NORETURN -> TCL_NORETURN1 minor mistake. Make it build when Tcl_SetPanicProc is a macro (normally it isn't)
2018-05-29 07:23:05 +00:00
sebres
a2ce3dab9b
merge 8.5
2018-05-28 13:17:18 +00:00
sebres
6a4d06759e
win: searching for FQDN in user-name should be utf-8 safe (user-name could contain non-ascii utf-8 chars)
2018-05-28 13:13:39 +00:00
sebres
6966f0a2b1
merge 8.5 (conflicts resolved, rewritten without winapi-stubs)
2018-05-28 12:26:20 +00:00
sebres
89a84af271
merge-integrate sebres-bug-9e6b569963-8-5-branch to 8.5
2018-05-28 12:05:15 +00:00
jan.nijtmans
f2ec60553a
merge 8.7
2018-05-27 16:32:05 +00:00
jan.nijtmans
bb5d24622f
don't bother to use constraint "threaded", because that's the way we want to build anyway
2018-05-27 14:17:08 +00:00
dkf
813979693c
Add sensible behaviour with export and unexport of private methods.
2018-05-27 12:04:39 +00:00
dgp
c8da3bbfaf
close fork
2018-05-26 13:14:33 +00:00
fbonnet
35f5b82868
Fixed test process-7.3
2018-05-26 11:13:34 +00:00
fbonnet
b91a2765ae
TIP #509 : Implement reentrant mutexes on all platforms
2018-05-25 19:43:23 +00:00
sebres
5e7a1545a6
minor indentation fix (no functional changes)
2018-05-25 15:51:23 +00:00
sebres
f4651a5660
avoid dual init of stubs (possible race condition, 8.5th only)
2018-05-25 15:48:50 +00:00
sebres
a0290b85c5
optimized winapi-stubs loading (8.5th only); if user name specified without domain and equals the current user - try safest and fastest way to get current user-home path (without usage of netapi)
2018-05-25 15:04:27 +00:00
sebres
8145564d30
merge/reintegrate test-cases from bug-9e6b569963
2018-05-25 10:04:01 +00:00
jan.nijtmans
66ef201ad7
merge 8.6
2018-05-25 06:51:55 +00:00
fvogel
6d943ef7b5
Remove test filesystem-1.30.3, this is unstestable
2018-05-24 20:51:45 +00:00
sebres
1c13d543f4
[9e6b569963] win: if user specified without domain (and local user was not found), try to resolve user-home using current domain, so following code's are similar:
...
file normalize ~$::tcl_platform(user)@$::env(USERDOMAIN)
file normalize ~$::tcl_platform(user)
2018-05-24 20:49:12 +00:00
sebres
263de53394
merge 8.5, conflicts resolved (rewritten without winapi-stubs)
2018-05-24 20:36:32 +00:00
sebres
a410c0d8d5
fixed typo in winFCmd-12.6.2: unneeded extra-bracket removed
2018-05-24 20:20:26 +00:00
sebres
ecec1703aa
win: TclpGetUserHome should return normalized path (also in case we find domain and NetUserGetInfo returns path), PoC:
...
file normalize ~$::tcl_platform(user)@$::env(USERDOMAIN)
2018-05-24 20:12:43 +00:00
fbonnet
fae1c11488
Create new branch named "tip-509"
2018-05-24 16:26:16 +00:00
dgp
1ab67324ca
merge 8.7
2018-05-24 13:27:12 +00:00
dgp
61169e4e9e
merge 8.7
2018-05-24 13:04:05 +00:00
dgp
2db0464fd9
merge 8.7
2018-05-24 12:46:07 +00:00
dgp
202eeb707c
merge 8.7
2018-05-24 12:24:54 +00:00
fvogel
36a1a69178
Add support for ~domain\user style user names, with new test test filesystem-1.30.3. Warning: does not yet work.
2018-05-23 21:08:01 +00:00
jan.nijtmans
edb38932e8
Unbreak build with other CFLAGS, such as TCL_MEM_DEBUG=1 or TCL_THREADS=0 on Linux
2018-05-23 19:31:15 +00:00
dgp
46aab3eb09
unbreak the build
2018-05-23 13:34:53 +00:00
jan.nijtmans
ce025f259b
Simplify usage of TCL_THREAD, along the lines of [eeddb0693a950be980a66de3811630a00c7bab54|eeddb0693a]. Suggested by DKF
2018-05-22 20:53:24 +00:00
jan.nijtmans
f6af18a947
More removals of TCL_THREADS usage (configure scripts/win makefiles)
2018-05-22 20:12:03 +00:00
jan.nijtmans
b729965a3c
Fix build with TCL_THREADS=0 on Linux/other without epoll or kqueu support. In that case, fallback to select notifier
2018-05-22 20:10:21 +00:00
dkf
0cab7d260b
More docs
2018-05-22 08:26:55 +00:00
jan.nijtmans
708eadd19e
Demonstrate how Tcl can build without TCL_THREADS defined at all (assuming TCL_THREADS=1 as default). Activated by -DTCL_NO_DEPRECATED=1. See also [eeddb0693a950be980a66de3811630a00c7bab54|eeddb0693a]
2018-05-21 08:12:51 +00:00
dkf
7bbadfe0e0
merge core-8-branch
2018-05-20 15:09:43 +00:00
dkf
4523d8df2c
Disable many warnings that are pointless in the stub library. Yes, it accesses deprecated fields, we know because we deprecated them.
2018-05-19 11:26:13 +00:00
dkf
791f1c2741
Minor updates to C API to handle private methods.
2018-05-19 11:18:51 +00:00
dkf
d431841a06
Corrections for a number of small things to align with TIP
2018-05-19 08:38:42 +00:00
fvogel
dffe6bc7f1
Add test filesystem-1.30.2 {normalisation of nonexistent user specified as user@domain}
2018-05-19 07:10:43 +00:00
fvogel
423f761169
Fix [9e6b569963]: file normalize ~user fails on Windows
2018-05-18 19:54:56 +00:00
fvogel
ba42e43e97
Add test filesystem-1.30.1 checking file normalize ~$::tcl_platform(user). This test should currently fail when the computer is connected to a Windows domain controller, due to [9e6b569963]: file normalize ~user fails on Windows
2018-05-18 06:18:56 +00:00
jan.nijtmans
4f1ea4779b
TIP #491 implementation: Threading Support: phasing out non-threaded builds
2018-05-17 18:53:29 +00:00
dkf
e6fdfbe93b
Make [info object methods] and [info class methods] work right.
2018-05-15 13:04:10 +00:00
dkf
bd706be303
Make sure that [self call] reports useful info.
2018-05-14 20:55:40 +00:00
jan.nijtmans
4e12ee1bc4
merge 8.6
2018-05-14 19:16:53 +00:00
jan.nijtmans
7672af7212
merge 8.5
2018-05-14 19:16:24 +00:00
jan.nijtmans
eae621b175
Unbreak build when HAVE_FTS is not set.
...
Move definitions of Tcl_DirEntry and TclDIR to tclWinPort.h, where it actually belongs
2018-05-14 19:14:40 +00:00
fbonnet
c2fceada6c
Initial implementation of TIP #508 : [array default]
2018-05-13 22:15:36 +00:00
fbonnet
6ba27f887c
Create new branch named "tip-508"
2018-05-13 21:56:54 +00:00
dkf
5eef06ea24
Correct results from unknown method handler.
2018-05-13 19:20:52 +00:00
dkf
9333525d11
Make [info vars] aware of private variable resolution.
2018-05-13 16:10:44 +00:00
dkf
911c1c6237
Merge core-8-branch
2018-05-13 10:08:32 +00:00
dkf
49a9e59311
General code style cleanup.
2018-05-13 07:17:00 +00:00
dgp
242d4d7095
Missing test file boilerplate.
2018-05-11 17:26:13 +00:00
dgp
c744824995
merge 8.7
2018-05-11 11:51:18 +00:00
dgp
5eafb95b32
merge 8.7
2018-05-11 11:30:33 +00:00
dgp
2a340ce4c1
merge 8.7
2018-05-11 11:26:35 +00:00
dgp
ae6192f9cb
merge 8.7
2018-05-11 11:26:20 +00:00
jan.nijtmans
9cb3b15616
TIP #425 implementation: Correct use of UTF-8 in Panic Callback (Windows only)
2018-05-11 09:42:08 +00:00
jan.nijtmans
6d0cc0c589
Merge 8.5. This adds Emoji 11.0 support, when Tcl is compiled with TCL_UTF_MAX>3. Useful for Androwish, for example.
2018-05-11 09:20:59 +00:00
jan.nijtmans
d9bc6cbae2
Add emoji 11.0 to the set. Only active when compiled with TCL_UTF_MAX>3. Also prepare tooling for Unicode 11.0 (while being on it)
2018-05-11 09:14:42 +00:00
jan.nijtmans
388266030b
merge 8.6
2018-05-11 08:12:04 +00:00
jan.nijtmans
ede72e80ac
merge 8.5
2018-05-11 08:10:17 +00:00
jan.nijtmans
7bf3f83abd
Rename Tcl_Dir to TclDIR, making it clear that this macro is not part of the public API
2018-05-11 07:53:20 +00:00
fbonnet
d3fd405e6b
Added tcl::process test suite
2018-05-10 17:37:10 +00:00
fbonnet
eed54b6281
Fixed makefile.vc: install will create missing dir "tcl8/8.7" for msgcat
2018-05-10 13:47:37 +00:00
fbonnet
6dbdfc31d2
Added man page for tcl::process
2018-05-10 13:44:43 +00:00
dgp
35d6c2453e
merge 8.6
2018-05-09 15:49:27 +00:00
sebres
f7f4cbb151
merge 8.5
2018-05-09 10:34:44 +00:00
sebres
f5e8751307
amend to [85bcf84100]: replaces DIR with Tcl_Dir (DIR/DIR64 regarding HAVE_STRUCT_DIRENT64)
2018-05-09 10:29:33 +00:00
pooryorick
7855612da6
Fix epoll notifier memory leak in initialization/finalization routines,
2018-05-08 20:03:14 +00:00
dgp
7f26fedbcc
merge 8.6
2018-05-08 15:00:40 +00:00
sebres
47e9dbdc37
prevents UB/segfault by unexpected return-code (not -1/0/1) and avoid warnings like:
...
tclCmdMZ.c:2815:15: warning: `s1` may be used uninitialized in this function [-Wmaybe-uninitialized]
s1len = Tcl_NumUtfChars(s1, s1len);
^~~~~~~~~~~~~~~~~~~~~~~~~~
2018-05-08 10:16:26 +00:00
sebres
8fd1568405
merge fix for [92564326a98b5510] from 8.5
2018-05-08 09:56:35 +00:00
sebres
78ee8c697e
fixes [92564326a98b5510]: wrong x64-aligned handle from readdir64 by opendir/rewinddir/closedir, if HAVE_STRUCT_DIRENT64 used.
2018-05-08 09:49:16 +00:00
dkf
08f43a1ff4
More efficient way of getting array element names; why search when direct lookup is possible?
2018-05-07 15:42:08 +00:00
pooryorick
1f71d7079b
merge core-8-6-branch
2018-05-07 14:33:15 +00:00
dkf
5cef8b0f8e
Make the 'varname' method know about private variables.
2018-05-07 12:43:40 +00:00
pooryorick
5f0cf291f5
Deduplicate code in INST_STR_CMP, StringCmpCmd, and StringEqualCmd.
2018-05-07 07:43:00 +00:00
jan.nijtmans
5500074eff
Remove some tip389 restrictions in test-cases, which are no longer necessary.
...
Eliminate gcc compiler warnings when compiling with -DTCL_UTF_MAX=6
Other code clean-up and comment improvements. No change in functionality.
2018-05-07 07:40:58 +00:00
pooryorick
db133f0144
Factor options handling out of StringCmpCmd.
2018-05-06 18:13:54 +00:00
dkf
66525c95ee
Documentation.
2018-05-06 14:20:29 +00:00
pooryorick
86c6a11cdb
Preparation to deduplicate code between byte-compiled and legacy
...
implementations of [string compare].
2018-05-06 13:45:21 +00:00
dkf
13bdb0305c
Corrections to test names.
2018-05-06 07:17:27 +00:00
dkf
2a19591dc7
Fix up instance privates.
2018-05-06 07:13:30 +00:00
dkf
411bfad9f4
merge 8.7
2018-05-05 17:30:52 +00:00
dkf
f58e9ed842
Private methods seem to be working...
2018-05-05 17:23:17 +00:00
pooryorick
e383cd7b26
Avoid generating string representation when comparing the empty string.
2018-05-05 17:04:08 +00:00
pooryorick
3a3fd2954f
Avoid generating string representation when comparing the empty string.
2018-05-05 16:38:27 +00:00
José Ignacio Marín
215b091d17
Update TZ info to tzdata2018e.
2018-05-04 19:06:55 +00:00
José Ignacio Marín
096a011c43
Update TZ info to tzdata2018e.
2018-05-04 19:06:09 +00:00
dgp
ce396e8f68
close fork
2018-05-02 13:53:48 +00:00
oehhar
ccf2e7a979
Syntax error in msgcat documentation fixed. Ticket [af69c6966d]
2018-05-02 12:22:44 +00:00
jan.nijtmans
c326a21131
merge 8.6
2018-05-01 18:42:05 +00:00
jan.nijtmans
51208ca53e
Implement special "string totitle" for Extended Georgian characters (new behavior in Unicode 11)
2018-05-01 18:41:27 +00:00
dgp
71938f034c
merge 8.5
2018-04-30 12:14:25 +00:00
dgp
0fc27b893e
Contain platform-specific things in the constraint-controlled parts of the test.
2018-04-30 12:11:14 +00:00
sebres
debcb2bf01
amend after merge 8.5
2018-04-30 11:52:12 +00:00
sebres
6ef77228ca
merge core-8-5-branch (fix-1613456fff)
2018-04-30 11:36:31 +00:00
sebres
ddfce0ed3f
merge fix-1613456fff, closes [1613456fffffffff] and [27b682284974d0cd]
2018-04-30 11:10:14 +00:00
jan.nijtmans
bfc5a0090f
Upgrade everything to Unicode 11 (still in beta, expected in june 2018)
2018-04-29 21:14:21 +00:00
dgp
5238a999d5
merge 8.7
2018-04-27 13:21:27 +00:00
hypnotoad
ab49bdfd12
Added an initialization of 0 for the namelen field for new ZipFile data structures. In memory
...
debugging mode, that value will be something random, not zero on alloc.
2018-04-27 03:06:36 +00:00
jan.nijtmans
9e733498f1
Update test-cases, so they are selected or not for -DTCL_UTF_MAX=6. Now all relevant test-cases pass for TCL_UTF_MAX=6 builds on UNIX (but not yet on Windows)!
2018-04-26 08:32:19 +00:00
dgp
044bd42331
merge 8.7
2018-04-25 13:39:44 +00:00
dgp
4d9ba4a652
merge 8.7
2018-04-25 13:02:35 +00:00
dgp
859bcc9f86
merge 8.6
2018-04-25 11:48:43 +00:00
dgp
c876decde3
Doc typo fix from Andy Goth.
2018-04-25 11:48:14 +00:00
dgp
9ff5b7077a
Plug memory leak handling circular path values.
2018-04-25 11:09:53 +00:00
dgp
351c77bca3
silence compiler warning
2018-04-24 14:02:49 +00:00
dgp
c1555b7cfd
merge 8.7
2018-04-24 13:59:43 +00:00
dgp
fec8aee1a1
Merge 8.6 (bug-fix and test-case for Tcl_UtfAtIndex with TCL_UTF_MAX=4)
...
((Replacement checkin for earlier attempt with botched timestamp))
2018-04-24 13:45:57 +00:00
jan.nijtmans
4519681dcd
Bug-fix in Tcl_UtfAtIndex (for TCL_UTF_MAX=4 only). With test-case (in "string totitle") demonstrating the bug.
2018-04-23 23:23:00 +00:00
jan.nijtmans
27c2e432b5
Some better surrogate handling in encodings. Not spotted before ...
2018-04-23 15:06:40 +00:00
jan.nijtmans
9acb063268
Add some state to encodings, so we can do better surrogate handling for TCL_UTF_MAX >= 4. Backported from TIP #389 .
2018-04-23 14:56:44 +00:00
dgp
523d6ea42c
Dup test name.
2018-04-23 13:51:05 +00:00
bll
95f2469359
Rework 'array for' to pass the arrayNameObj to the NRE routines
...
rather than saving it in the ArraySearch structure (which will
not work).
Create ArrayPopulateSearch to consolidate duplicate code.
2018-04-23 12:58:41 +00:00
dgp
dc6bc431e9
merge 8.6
2018-04-22 13:27:45 +00:00
dgp
8e06fd796b
[46a2410650] compiled [unset] was bypassing cleanup of active array search.
...
Overdue thanks to Andy Goth for tests and report.
2018-04-22 13:22:20 +00:00
kjnash
227db01958
Restore production test settings: set tests/httpPipeline.test to non-verbose, and comment out most Log calls in library/http/http.tcl
2018-04-21 14:22:35 +00:00
kjnash
41954059c4
merge 8.6
2018-04-21 13:47:09 +00:00
kjnash
b169c964e6
Amend httpPipeline.test tests to use stdout not stderr, and thus avoid the report {Test files exiting with errors} even when all tests pass.
2018-04-21 13:31:16 +00:00
dgp
ae76fbd559
DeleteArray has only one caller. It is called on the "dummy" variable
...
that is created during unset, and which cannot be reached by resolving
any name. It cannot have VAR_SEARCH_ACTIVE set because the sole thing that
sets that flag is an [array startsearch] applied to a named variable.
2018-04-20 20:17:17 +00:00
kjnash
3771e638b0
Document the new proc http::registerError in http.n
2018-04-20 20:06:30 +00:00
dgp
24d501cb0d
TIP 421 Implementation.
2018-04-20 16:02:47 +00:00
jan.nijtmans
ca5638e01f
TIP #389 implementation.
2018-04-20 10:16:31 +00:00
jan.nijtmans
1734eed89f
Slightly improved (more fail-safe) surrogate handling for TCL_UTF_MAX>3. Backported from latest TIP 389 implementation. (to be used for androwish)
2018-04-19 22:29:00 +00:00
dgp
5c2ea0542f
Adapt [array for] to use the refactored routines.
2018-04-19 17:46:37 +00:00
dgp
346eec1892
merge 8.7
2018-04-19 17:40:10 +00:00
oehhar
ddb7bbe66c
correct msgcat test numbering for section util from 15.x (used twice) to 18.x
2018-04-19 11:48:28 +00:00
dgp
567fb6cc27
merge 8.6
2018-04-19 02:45:38 +00:00
dgp
75bd116527
Fold TclArraySet() into its only caller. tclEnv.c no longer calls it
2018-04-19 02:01:29 +00:00
dgp
7ac6487eda
merge 8.5
2018-04-19 01:41:13 +00:00
dgp
df94eecf11
An [array set] from a dict can only take shortcuts when the dict is "pure",
...
that is, has no string rep.
2018-04-19 01:39:38 +00:00
dgp
8d0340e39e
Refactor error reporting when value is not an expected array variable name.
2018-04-18 23:41:48 +00:00
dgp
61f580bd36
Refactor to bring the test for existence of an array variable into
...
LocateArray().
2018-04-18 23:31:07 +00:00
dgp
08c1a8dd34
cleanup of refactor
2018-04-18 21:03:53 +00:00
dgp
fb91d4b68b
Refactor the common operations of looking up and checking traces on an array
...
variable into a single routine LocateArray().
2018-04-18 19:21:33 +00:00
oehhar
327595170b
http::geturl now returns full error stack information if the initial socket command fails Ticket [ff82755e15]
2018-04-18 11:59:57 +00:00
jan.nijtmans
f44e7c1795
Merge 8.7
...
Move stuff from SC_ENABLE_THREADS to SC_TCL_LINK_LIBS in tcl.m4, so SC_ENABLE_THREADS is no longer needed in configure.ac
2018-04-17 22:48:00 +00:00
jan.nijtmans
28ac086633
Slightly better unmatched-surrogates handling. Unmatched High surrogates will still be silently removed, but Unmatched Low surrogates will pass through as-is now. Inspired by Kevin Kenny's remarks. Thanks!
2018-04-17 21:49:00 +00:00
dgp
6b8039a952
Refactor array trace handling into a common routine TclCheckArrayTraces().
2018-04-17 20:29:02 +00:00
dgp
62ea5e49a1
Array trace firing must come before argument checking might raise error.
2018-04-17 19:14:01 +00:00
dgp
5dff80f2fe
Gentler fallback.
2018-04-17 18:54:36 +00:00
dgp
f316d7539c
[array set] must fire array traces. Don't disrupt that by reporting argument
...
errors too early.
2018-04-17 18:34:41 +00:00
dgp
31a291920a
merge 8.6
2018-04-17 14:39:12 +00:00
dgp
05845fbe5f
merge 8.5
2018-04-17 14:38:28 +00:00
dgp
80e5aed49e
Restore build success to the TCL_REMOVE_OBSOLETE_TRACES configuration.
2018-04-17 14:32:30 +00:00
dgp
47fc4afd86
Satisfy test var-23.14
2018-04-17 11:11:35 +00:00
dgp
08d704bbb1
Test of shimmer segfault.
2018-04-17 03:48:47 +00:00
dgp
04604552b2
ran autoconf on the unix directory. This breaks the build.
2018-04-16 14:51:19 +00:00
dgp
b5d6b4f138
merge 8.7
2018-04-16 14:46:58 +00:00
dgp
2d5be38603
Memleak fix from Brad Lanam.
2018-04-16 14:15:22 +00:00
dkf
ad02c0b532
Added basic tests of the 'private' definition command.
2018-04-15 15:11:38 +00:00
dkf
28e500cbf9
Testing the private variables.
2018-04-15 14:47:26 +00:00
dkf
637c7dbc7e
Added tests for [info object creationid]
2018-04-15 10:29:48 +00:00
kjnash
4588d7300e
Restore Tcl 8+4 tab convention
2018-04-13 15:48:13 +00:00
kjnash
d690b84738
Improve detection and reporting of TLS errors. New command http::registerError to assist the latter. Ensure that http::cleanup cancels any timeout event if not already done. Add comments on non-blocking read/gets.
2018-04-13 15:41:00 +00:00
dkf
49879791f4
Duplicate the private variable config when cloning objects.
2018-04-13 07:23:37 +00:00
dkf
8262e514d0
Added introspectors mentioned in TIP.
2018-04-12 23:54:58 +00:00
dgp
994ba283c9
merge 8.7
2018-04-11 16:17:44 +00:00
dgp
019016e71a
merge 8.7
2018-04-11 12:45:01 +00:00
sebres
9856afd590
win: some test-cases missing constraint for testexcept (if compiled without test)
2018-04-11 11:28:41 +00:00
sebres
a9ef86f152
win: fix several test-cases for windows platform
2018-04-09 19:50:12 +00:00
sebres
24a04c0819
amend to [5acb57c7aec45e05]: set code to TCL_ERROR, because primitives from tclIOUtil return -1
2018-04-09 10:04:23 +00:00
dgp
48ed067359
merge 8.7
2018-04-07 17:12:14 +00:00
dgp
7234985a63
merge 8.7
2018-04-07 17:07:26 +00:00
dgp
4647cfb665
merge 8.6
2018-04-07 17:07:09 +00:00
dgp
ff7812fe97
merge 8.5
2018-04-07 16:56:53 +00:00
dgp
689f5653f9
Correct out-of-date documentation for [string is].
2018-04-07 16:55:53 +00:00
dgp
434c0fa7fb
Merge 8.7. Update two macros to TIP 445.
2018-04-06 19:14:48 +00:00
sebres
9077b8ce60
[27b682284974d0cd] command "file delete": avoid possible race condition if file/directory deleted after call of lstat, so bypass ENOENT error code.
...
Thanks to Rainer Müller (aka raimue)
2018-04-06 17:28:56 +00:00
dgp
634c443219
Plug memleak in [format] applied to bignums.
2018-04-05 17:22:09 +00:00
dgp
43507f353b
Plug memleak when [scan] raises an error.
2018-04-05 16:37:35 +00:00
dgp
eb8817687f
[string cat] was failing to NUL terminate string reps.
...
Stopped "string" values triggering false valgrind alarms when tests make
use of [tcl::unsupported::representation].
2018-04-05 15:37:40 +00:00
dgp
0ad3b13e26
Failed to mutex protect all multi-thread access to the hash tables in the
...
[tcl::process] implementation. This was causing segfaults in thread-8.1.
2018-04-05 13:34:58 +00:00
dkf
5a8d06b076
Start of private method dispatch machinery.
2018-04-05 07:26:27 +00:00
kjnash
6bc8c27b7f
Restore most lines to 80 columns
2018-04-04 13:37:37 +00:00
kjnash
6a58a0cab2
Use coroutines to remove blocking on HTTP connections
2018-04-04 12:00:03 +00:00
kjnash
1357172367
Increase test timeout to 10s. Remove commenting from Log calls that report long delay for [socket].
2018-04-01 01:09:57 +00:00
kjnash
466fd1d930
Chasing timeout bug: reduce client timeout to 4s in tests; more sanity checking in non-keep-alive tests; tidying; more logging in http.tcl.
2018-03-31 15:27:52 +00:00
dgp
d525fa6f68
merge 8.7
2018-03-30 21:10:04 +00:00
dgp
c848d68793
merge 8.7
2018-03-30 20:09:21 +00:00
dgp
008f1c98d0
merge 8.7
2018-03-30 19:53:14 +00:00
dgp
3fe69cba13
merge 8.7
2018-03-30 19:51:05 +00:00
dgp
42a2b87f32
merge 8.7
2018-03-30 19:42:35 +00:00
dgp
27f230c6bf
merge 8.7
2018-03-30 19:37:21 +00:00
dgp
a5d6e9657a
Refactor the [lrange] machinery into a single routine TclListObjRange().
...
Apply some optimizations. Contribution from pspjuth.
2018-03-30 19:22:17 +00:00
dgp
a27e0ef2ce
merge 8.7
2018-03-30 19:11:39 +00:00
dgp
a3204f806c
Rebase TIP 502 draft implementation.
2018-03-30 12:32:22 +00:00
kjnash
441e4f6796
For thorough testing, set test file to verbose, and uncomment Log calls in http.tcl.
2018-03-30 10:13:57 +00:00
kjnash
3117af219f
Bugfixes. Details in ticket 46b6edad51.
2018-03-30 10:02:44 +00:00
kjnash
a0e1b18138
Adapt tests/httpPipeline.test for test without installation. Comment out some Log calls from tests/httpTestScript.tcl
2018-03-29 18:20:56 +00:00
kjnash
70af5c2b82
Implement queuing and pipelining for HTTP requests over a persistent connection.
2018-03-27 14:20:23 +00:00
kjnash
d38ae8f974
Adapt fconfigure -translation for two-way pipelined operation.
2018-03-27 08:56:16 +00:00
kjnash
0d887fa465
Define variable tk used in Log calls for testing.
2018-03-27 08:55:21 +00:00
kjnash
e9bb0992b0
First step for implementing concurrent requests using the same connection. Define namespace variables socket* and http where they will (eventually) be used. Leave them unused except in http::init where they are initialised.
2018-03-27 08:52:40 +00:00
kjnash
f35c0dc2ed
Revise tests/http11.test for use with commits from 78b23edb6b onwards. Adjust proc "handler" to conform to http(n)
2018-03-27 08:49:13 +00:00
kjnash
e80e214673
BUGFIX. Send "Connection: keep-alive" even if HTTP/1.1. Some servers (including Apache 2.2 on RHEL6) use the discretion granted by RFCs and will close the connection unless this header is sent.
2018-03-27 08:37:06 +00:00
kjnash
731f40c6d9
New http::config option -zip to control whether to send an "Accept-Encoding" request-header for a zipped response. Default true for backward compatibility.
2018-03-27 08:32:37 +00:00
kjnash
767cf6314a
Workaround for bug with https and unchunked response. A [read] does not deliver until the server closes the socket. The workaround is to specify the buffer size as the precise length required.
2018-03-27 08:29:43 +00:00
kjnash
b00317d174
Changes to response handling in Finish, Eot and Event. Carefully distinguish expected and premature eof. Stricter handling of errors, minor bugfixes. Details in ticket 46b6edad51.
2018-03-27 08:25:14 +00:00
kjnash
a8408767a4
Add "array unset socketMapping" in http::init. The sockets are closed and therefore do not belong in socketMapping, which should be unset.
2018-03-27 08:20:14 +00:00
kjnash
4f8b177250
Tidying - add empty else clauses, omit :: at start of command name http::CloseSocket in proc definition, use two lines instead of "return [Finish ...]" because there is no return value!
2018-03-27 08:17:38 +00:00
kjnash
25aad1ab18
Update some Log calls, mainly to specify token.
2018-03-27 08:15:26 +00:00
kjnash
3b48db4a90
Update some comments and a Log.
2018-03-27 08:12:47 +00:00
kjnash
58eff8f224
Rename some variables and commands. Details in ticket 46b6edad51.
2018-03-27 08:10:50 +00:00
kjnash
97721e9675
Add parentheses to some "if" tests; transform one test without changing its outcome.
2018-03-27 08:08:19 +00:00
kjnash
d88d33f74d
Give all procs an explicit return, except where commented as "Implicit Return".
2018-03-27 08:07:05 +00:00
kjnash
0a9706f48f
Adjust to 80 columns except one 82-column line which would be less intelligible.
2018-03-27 08:05:42 +00:00
kjnash
45f91441a5
Adjust whitespace to Tcl 8+4 tab convention.
2018-03-27 08:03:58 +00:00
kjnash
38781266d3
Create new branch named "bug-46b6edad51-concurrent-http"
2018-03-27 07:48:33 +00:00
jan.nijtmans
220d2d7d9c
Remove MINGW32 from the UNIX makefile, since Mingw should always build from the "win" directory. Better to avoid confusion.
2018-03-26 20:21:00 +00:00
dgp
843d29b448
Rest of TIP 505 implementation -- mostly undoing dumb things.
2018-03-26 18:59:00 +00:00
dgp
1a73baff09
Work in progress implementing TIP 505.
2018-03-26 16:27:40 +00:00
jan.nijtmans
08dc58ce40
No need any more on 64-bit cygwin for special *Long* stub entries.
2018-03-25 19:20:28 +00:00
jan.nijtmans
3abde0eac5
workaround for TclFormatInt on CYGWIN is no longer necessary now.
2018-03-25 17:43:09 +00:00
José Ignacio Marín
29f8e6add3
Update TZ info to tzdata2018d.
2018-03-24 10:21:29 +00:00
José Ignacio Marín
05c789647a
Update TZ info to tzdata2018d.
2018-03-24 10:20:43 +00:00
sebres
da169b1600
minor fix on comment (restored getFileSecurityProc back, because getNamedSecurityInfoProc not used)
2018-03-22 17:45:32 +00:00
sebres
570af63547
win: fixes check of file permissions (readable, writable, executable) - more faster and stable solution without direct check of security permissions by optimal terms;
...
additionally corrected executable extensions (missing .ps1/.cmd) in useWide case.
2018-03-22 16:22:04 +00:00
dgp
a6454e20a4
A compiler for [string insert] mirroring the one for [linsert].
2018-03-21 16:26:11 +00:00
dgp
344b135505
Rebooting a [string insert] implementation branch, bringing over pieces
...
from the past branches and merging against the updated index parsing
machinery.
2018-03-21 15:31:38 +00:00
dgp
919a1c67ab
TIP 503 implementation.
2018-03-20 19:54:32 +00:00
dgp
dc07332444
Merge over testing improvements from the TIP 475 work.
...
Test files string.test and stringComp.test had become out of sync.
Use one file to maintain even coverage.
2018-03-20 19:25:54 +00:00
dgp
bac2aebf10
Test and fix for botch in binary string replace.
2018-03-20 16:10:49 +00:00
dkf
383c53f80e
This should be the implementation of private variables.
2018-03-18 18:04:50 +00:00
jan.nijtmans
ba9cf35aa3
In case of redirecting stderr to a file on Windows, append CRLF after Panic output.
2018-03-15 23:01:00 +00:00
jan.nijtmans
db41a49d9c
merge 8.7
2018-03-15 21:53:00 +00:00
jan.nijtmans
cbbab84b71
Merge 8.7 (convert makefile.vc to CRLF line-endings only)
2018-03-15 21:13:00 +00:00
jan.nijtmans
df06afadcf
Bring back makefile.vc to CRLF line-endings, as all other *.vc files
2018-03-15 20:58:00 +00:00
dgp
55a65632d0
Merge 8.7; Updated the package manifest by hand; was broken until then.
...
If there's a maintenance knob to turn, that needs to be better known.
2018-03-15 19:09:42 +00:00
dgp
7435702d63
merge 8.7
2018-03-15 15:34:00 +00:00
dgp
c120622483
merge 8.7
2018-03-15 14:37:55 +00:00
dgp
be8b7d25f6
merge 8.7
2018-03-15 14:23:18 +00:00
dgp
a8ffcb0b4c
merge 8.7
2018-03-15 14:18:39 +00:00
dgp
47152d94c1
merge 8.7
2018-03-15 14:06:52 +00:00
dgp
aa199edba6
merge 8.6
2018-03-15 11:08:08 +00:00
dgp
c5e979695a
Missing test cleanups that break later tests.
2018-03-15 10:58:13 +00:00
dgp
5d355c0fd9
Memleak and lifetime management fixes for components of the OO system.
2018-03-14 23:54:31 +00:00
dgp
e6e44fb3b8
Merge rest of 8.7 except the botched apply/backout dance.
2018-03-14 23:47:46 +00:00
dgp
6fcbcd9f12
Merge in 8.7 changes not already here.
2018-03-14 23:43:32 +00:00
dgp
4751bcf256
Rebase the memleak work.
2018-03-14 22:39:38 +00:00
dgp
99ab923ed5
Memleak and lifetime management fixes for components of the OO system.
2018-03-14 22:17:51 +00:00
dgp
72c721f3e7
merge 8.6
2018-03-14 21:51:13 +00:00
dgp
6d4320b5fb
A few test hygiene fixes.
2018-03-14 20:59:01 +00:00
pooryorick
73de582148
Further work to improve Object reference accounting in order to plug leaks.
2018-03-14 20:43:20 +00:00
dgp
d0bce3e99f
merge 8.6
2018-03-14 18:08:55 +00:00
sebres
1bf60bab3c
optimize compiled (INST_STR_TRIM): use new function TclTrim instead of combination of TclTrimLeft/TclTrimRight
2018-03-14 17:23:24 +00:00
dgp
43f670e530
unused variable fix
2018-03-14 17:20:53 +00:00
sebres
77ab9f868a
merge 8.5
2018-03-14 17:19:23 +00:00
sebres
6e7c474da7
TclTrim: special case for TrimRight on single char result of TrimLeft (this char is already verified within TrimLeft, so bypass TrimRight at all)
2018-03-14 17:17:44 +00:00
dgp
2d87ed6d29
New routine TclStringReplace() serves as a common implementation for both
...
compiled and direct eval paths of [string replace].
One routine to debug, optimize, convert to new data structures, etc.
This routine will also make a good core engine for [string insert].
With this refactoring done, the value of the INST_STR_REPLACE instruction
is no longer clear. Until now, the value of compiling to it was that it
routed you through the "better" of the two implementations. An
instruction that does nothing different from what invocation to the
direct eval fallback would do does not have obvious value.
2018-03-14 15:17:27 +00:00
dgp
3cda2dc805
merge mark
2018-03-14 05:41:55 +00:00
dgp
0a3e263036
cherry pick the desirable part of the merge.
2018-03-14 05:41:19 +00:00
dgp
864d754a8a
backout the latest merge
2018-03-14 04:45:29 +00:00
dgp
b16ec6f23b
Backout recent patch working on Object and Namespace refcounts.
...
It creates new leaks and memory corruption according to valgrind,
and the preceding checkin did not. Keep developing on the memleak branch
and it can merge again when valgrind and memleak tests both like it.
2018-03-14 04:26:41 +00:00
dgp
17e2ed6919
silence compiler warning
2018-03-14 01:31:10 +00:00
dgp
15bfd5756e
merge 8.6
2018-03-14 01:30:16 +00:00
dgp
0d0b8e03ed
merge 8.5
2018-03-14 00:53:13 +00:00
dgp
fd2d896c8f
TclTrim must write to *trimRight even when making a quick exit.
2018-03-14 00:45:14 +00:00
dgp
f597744c5f
Make TclTrim* routines robust against some malformation in inputs.
...
Better than access violations and panics!
2018-03-14 00:03:59 +00:00
dgp
261fbdac7e
A few minor revisions.
2018-03-13 23:56:22 +00:00
pooryorick
ec5288cc2e
Audit and correct Object reference counting issues.
2018-03-13 20:46:08 +00:00
pooryorick
90f38b1023
Audit and correct Object reference counting issues.
2018-03-13 20:41:23 +00:00
sebres
64eaafad72
remove unexpected panic by TclTrimLeft/TclTrimRight, handling rewritten:
...
- instead of check the NTS-byte after string (may cause segfault by access violation if out of range),
it checks now the end-character is well-formed utf8-sequence;
- both work well now on non-NTS strings (without null character at end);
- additionally fixed wrong offsets (trim-length if last char malformed in case of out of range);
new function TclTrim introduced (as combination of TclTrimLeft/TclTrimRight).
2018-03-13 18:52:45 +00:00
dgp
62079a5c69
merge 8.6
2018-03-13 17:14:40 +00:00
dgp
41ed3e0e2b
close fork
2018-03-13 16:29:50 +00:00
dgp
9ac074bd09
Fix bugs in msgcat that prevent clean test suite run.
2018-03-13 16:28:43 +00:00
oehhar
bbae63cfa9
tip 499 msgcat custom preferences: documentation added
2018-03-13 16:13:02 +00:00
dgp
a275b8a5ea
Rewrite the [string replace] compiler to take advantage of the richer
...
set of encoded index values.
2018-03-13 16:03:39 +00:00
oehhar
962427e8cd
tip490 oo for msgcat: added documentation
2018-03-13 14:53:16 +00:00
dgp
debafda1e7
Repair the INST_STR_REPLACE instruction.
2018-03-13 04:01:03 +00:00
dgp
1af314024c
Merge new test and comments from 8.5 to demo that INST_STR_REPLACE is bad.
2018-03-13 03:26:42 +00:00
dgp
23178bb208
Tidy up and comment [string replace] and its corner cases.
2018-03-13 03:15:28 +00:00
dgp
2ae2445072
msgcat 1.7.0 features need foundation of Tcl 8.7.
2018-03-12 15:57:54 +00:00
dgp
8bd4a8cf2c
Revert change that broke usage with Tcl 9
2018-03-12 14:41:20 +00:00
dgp
5ff641a603
merge 8.6
2018-03-12 14:17:52 +00:00
dgp
71618ce230
Implement TIP 499: Custom locale search list for msgcat
2018-03-12 14:14:46 +00:00
dgp
f35817ce5a
Undo setting of execute permissions.
2018-03-12 14:07:26 +00:00
dgp
3af272b07a
Implement TIP 490: msgcat for TclOO
2018-03-12 13:58:21 +00:00
dgp
67a242e003
msgcat 1.7 uses [tailcall], so requires Tcl 8.6.
2018-03-12 13:48:35 +00:00
dgp
4ba8623115
Implement TIP 462: Add New [::tcl::process] Ensemble for Subprocess Management
2018-03-12 13:38:46 +00:00
dgp
410bda416e
merge 8.7
2018-03-12 13:24:15 +00:00
dgp
861217dbe3
Convert DOS -> unix line endings.
2018-03-12 13:07:50 +00:00
dgp
a28f176470
It is confusingly stupid to use variable "length" to hold an actual length
...
in part of a routine, and hold an end index value later.
2018-03-12 02:48:59 +00:00
dgp
f52d25e68a
merge 8.7
2018-03-11 23:08:20 +00:00
dgp
0bef3861ff
merge 8.7
2018-03-11 22:42:27 +00:00
dgp
9b9635f82e
merge 8.7
2018-03-11 22:34:51 +00:00
dgp
45f5143205
merge 8.6
2018-03-11 21:29:10 +00:00
dgp
de9c1aff4a
plug memleaks
2018-03-11 21:15:27 +00:00
dgp
e7a5b8aaa5
Prevent leaks of the Object structs of oo::object and oo::class.
2018-03-11 21:14:41 +00:00
dgp
cd39f34fa5
Attempt at providing the missing instance squelcher.
2018-03-11 18:08:00 +00:00
dgp
e7be4a19a0
merge 8.6
2018-03-11 12:22:00 +00:00
dgp
a0374a6e61
plug memleak of constructed package requirement.
2018-03-11 12:14:05 +00:00
dgp
3f3c89a947
Screen out empty list value so that assertions are true.
2018-03-11 12:13:11 +00:00
dgp
d660f467cb
merge 8.7
2018-03-10 16:03:02 +00:00
dgp
dc5861414a
merge 8.7
2018-03-10 15:55:38 +00:00
dgp
6b5d0e5d8d
merge 8.6
2018-03-10 15:45:00 +00:00
dgp
d9dbcf5afb
Remove unused argument.
2018-03-10 15:41:04 +00:00
dgp
4dc5255a8e
[db36fa5122] Upgrade the index value parsing and encoding machinery. Refactor many systems to make consistent use of it. Repairs many indexing errors in corner cases.
2018-03-10 14:55:14 +00:00
dgp
e7a86d967c
Use LIST_MAX instead of computing an end index.
2018-03-10 14:44:05 +00:00
dgp
6fce39545c
rename tests to make room for new tests in 8.7
2018-03-10 14:37:36 +00:00
dgp
87fd09e44a
[db36fa5122] Upgrade the index value parsing and encoding machinery.
...
Refactor many systems to make consistent use of it. Repairs many indexing
errors in corner cases.
2018-03-09 22:18:30 +00:00
dgp
cd4e0ec5de
Restore safety for legacy bytecode.
2018-03-09 21:18:19 +00:00
dgp
954522812e
Return routine to file scope.
2018-03-09 21:07:12 +00:00
dgp
db9b0eccf3
merge 8.6
2018-03-09 20:58:20 +00:00
dgp
06c3fd0c5b
Newer utility routine is more suitable.
2018-03-09 20:46:54 +00:00
dgp
c13e34da37
Update the command compilers and bytecode execution engine to use new machinery.
2018-03-09 20:34:33 +00:00
dgp
a9d546dfbc
Use new machinery to repair index value flaws in [lsort].
2018-03-09 19:40:01 +00:00
dgp
6798b2404f
Refactor the index value encode/decode machinery for broader use.
...
Make use of it to fix index value flaws in [lsearch].
2018-03-09 19:23:42 +00:00
dgp
5fd318bc35
More demonstration tests of index value encoding flaws.
2018-03-09 17:30:30 +00:00
dgp
88812125b1
New tests demonstrating index value encoding flaws in [lsearch].
2018-03-09 15:28:35 +00:00
dgp
947fb98db5
Stop failing error ordering tests in compiled [lreplace].
2018-03-08 21:58:30 +00:00
dgp
ed53b715ac
Another error ordering test.
2018-03-08 19:43:57 +00:00
dgp
b8b87e5280
New test expose flaw in error ordering.
2018-03-08 19:28:58 +00:00
dgp
0c5bd7480e
Streamline index decoding in INST_LIST_RANGE_IMM execution.
...
Eliminte the internals intrusion in the unshared in-place operations case.
Tcl_ListObjReplace() really ought to be good enough.
2018-03-08 18:57:16 +00:00
dgp
64038c5656
Rollback the stealth change to [lreplace a 1 1] in Tcl 8.6.6. [409ea17e37].
...
Scratch rewrite of the [lreplace] compiler.
2018-03-08 17:26:49 +00:00
dgp
101ac8bca7
Reduce the "clever" factor. (Fine line between clever and stupid.)
2018-03-08 02:28:49 +00:00
dgp
30e7e05895
Streamline index decoding in INST_STR_RANGE_IMM execution.
2018-03-07 21:45:12 +00:00
jan.nijtmans
b4d6691add
Merge 8.6
2018-03-07 21:21:00 +00:00
dgp
ce6aa3ea08
When index parsing alone tells you a [string range] is empty, just push it.
2018-03-07 21:02:44 +00:00
jan.nijtmans
3492c92f3d
Improve -DTCL_NO_DEPRECATED compiles. It now can handle loading stub-enabled extensions with incompatible magic number (backported from trunk)
2018-03-07 20:24:00 +00:00
dgp
d7f41b448c
Express INST_LIST_INDEX_IMM index processinig in terms of TCL_INDEX_END so
...
that consistencies are maintained, and hardcoded values are a bit demystified.
2018-03-07 19:55:23 +00:00
jan.nijtmans
405b9175e6
Fix handling of "pkgIndex" file in "package files" command. This was broken as well, as result of NRE-enabling the "package" command.
2018-03-07 19:35:00 +00:00
dgp
2c44354d13
Establish 4 symbols for categories of parsed index values:
...
TCL_INDEX_START = 0 The start index.
TCL_INDEX_END = -2 The "end" index.
TCL_INDEX_BEFORE = -1 All indices less than start.
TCL_INDEX_AFTER = INT_MAX All indices greater than "end".
Then use these symbols among callers of TclGetIndexFromToken() so that
index value parsing can directly implement the callers sense of when
out of range indices ought to be treated the same as start or end positions.
2018-03-07 18:39:44 +00:00
dgp
612199cbe9
Rework TclGetIndexFromToken to make use of TclGetEndOffsetFromObj, and
...
to lay out the index value encoding cases.
2018-03-07 17:02:50 +00:00
dgp
6de6ee8aa9
merge 8.7
2018-03-07 15:13:07 +00:00
sebres
f337281f75
amend to [58716e0e92]: now the duplication is really pointless, so eliminated
2018-03-07 15:10:44 +00:00
dgp
7fe003f8d2
Remove pointless duplication.
2018-03-07 14:16:08 +00:00
dgp
f003df5624
Tests of [assemble] use of compiled index values.
2018-03-07 13:40:54 +00:00
dgp
9fb9471807
Incorporate sebres work on the same ticket. Good stuff!
2018-03-07 12:08:40 +00:00
jan.nijtmans
0254080ca0
Fix the "package files" command. Due to the NRE enabling of "package" it always started to return an empty list.
2018-03-06 22:53:00 +00:00
sebres
8c2cbf3211
test cases for "lsort": coverage for "missing from sublist" error case with negative index (-1-1, -2)
2018-03-06 22:27:47 +00:00
sebres
c68d043691
try to fix [db36fa5122]: better compiled variants of several indices-related commands, test-cases extended
2018-03-06 21:59:53 +00:00
dgp
720c8de452
rework error handling to keep test suite happy.
2018-03-06 20:59:44 +00:00
dgp
596e89b17d
Have assembler use same index value parser as the bytecode compiler.
2018-03-06 20:27:39 +00:00
dgp
847a048c18
New internal routine TclGetEndOffsetFromObj.
2018-03-06 20:09:00 +00:00
bll
a735b5d3ac
array for:
...
Add missing ObjCmdProc wrapper around the NR proc.
2018-03-06 18:42:25 +00:00
bll
d2d193de11
array for: updated documentation: value variable is not optional, add
...
specifics about when array for terminates.
2018-03-06 18:21:34 +00:00
dgp
da8fbb89c4
various bits of ranting commentary
2018-03-06 17:38:44 +00:00
bll
77d58c5993
tip-421: array for:
...
a) Fix bug starting search (name not set).
b) Fix error message for array change on iteration.
2018-03-06 17:19:40 +00:00
dgp
3616fc519b
merge 8.7
2018-03-06 13:50:45 +00:00
dgp
6bb961ffc6
merge 8.7
2018-03-06 13:46:24 +00:00
dgp
bd9f2eb15d
merge 8.7
2018-03-06 13:45:45 +00:00
dgp
0d33258649
merge 8.6
2018-03-06 12:59:23 +00:00
dgp
f406561f40
Take the next step in TIPs 330 and 336, ending in 8.7 the USE_INTERP_RESULT and
...
USE_INTERP_ERRORLINE directives to escape need to migrate to 8.6 interfaces.
2018-03-05 20:00:06 +00:00
dgp
80c3bfdcaa
Last bit of TIP 503 implementation.
2018-03-05 19:29:12 +00:00
sebres
465d28aa75
merge core-8-5-branch (fixes [1873ea0ee4f01b26]: wrong initialization of std-channels ...)
2018-03-05 17:43:42 +00:00
dgp
96e07632d9
merge 8.7
2018-03-05 17:41:24 +00:00
sebres
6c0170972f
fixes [1873ea0ee4f01b26]: wrong initialization of std-channels, if no std-handles available at all (e. g. non-console application, like "tk")
2018-03-05 17:37:21 +00:00
dgp
1dbb35b63b
merge 8.7
2018-03-05 17:18:14 +00:00
dgp
4d47b7f97f
TIP 351 Implementation.
2018-03-05 17:07:14 +00:00
dgp
b1e6769ef3
Rebase TIP 421 implementation to core-8-branch (8.7). var-23.1[01] segfaults!
2018-03-05 16:49:07 +00:00
dgp
5fd49d1907
Merge 8.7; avoid checkin converting TclGetNumberFromObj to TclParseNumber.
2018-03-05 16:09:08 +00:00
jan.nijtmans
0e5d21e88f
Re-generate tclTomMath.h. Fix win32 build (due to the use of uint8_t)
2018-03-01 22:27:00 +00:00
jan.nijtmans
0c568099ee
Update libtommath to latest "develop"
2018-03-01 20:55:16 +00:00
jan.nijtmans
5753c7a42b
Lots of code cleanup, mainly [ https://github.com/libtom/libtommath/pull/102 |Pull request #102 ]
2018-03-01 20:43:31 +00:00
dgp
7024801722
merge 8.7
2018-03-01 20:20:55 +00:00
dgp
914d6e1546
merge 8.6
2018-03-01 20:13:25 +00:00
dgp
683dada217
Some comments info for the next folks who come wandering in.
2018-03-01 20:07:29 +00:00
dgp
40dfdbd929
Avoid full list conversion when we can cheaply discover a multi-element list
...
is not possible.
2018-03-01 19:30:15 +00:00
dgp
2cd8bf554e
Refactor to eliminate duplicate routine parsing tokens as indices.
2018-03-01 16:48:55 +00:00
dgp
0cb6effe14
Continue consistent use of LLONG_MIN and LLONG_MAX.
2018-03-01 04:19:37 +00:00
dgp
a0c07fcf28
merge 8.7
2018-03-01 04:13:47 +00:00
dgp
e9c0312caf
We have LLONG_MIN and LLONG_MAX to denote range limits of Tcl_WideInt.
...
Use them consistently. Also fix a few TIP 484 bugs.
2018-03-01 04:13:15 +00:00
dgp
221f1bc18e
Use mp_isneg() as appropriate.
2018-02-28 13:40:36 +00:00
dgp
c0c1cce296
merge 8.7
2018-02-28 13:38:01 +00:00
dgp
a628ce605f
merge 8.7
2018-02-27 23:17:17 +00:00
dgp
3607c177d9
Don't save indices with values outside the int range in bytecode.
2018-02-27 22:35:24 +00:00
jan.nijtmans
9a809e614a
Use mp_isneg() in stead of mp_cmp_d() when the output of this function is simply compared with MP_LT.
2018-02-27 20:48:00 +00:00
jan.nijtmans
0bceead396
No need to set/restore tcl_precision in this test-case
2018-02-27 20:30:00 +00:00
dgp
e1efe253d2
Much more progress expanding the vocabulary of index values, and getting
...
results that make more intuitive sense. Still a few TODOs and tests to update.
2018-02-27 18:20:44 +00:00
dgp
544d338e0e
Work In Progress on index value reform -- not working.
2018-02-27 13:13:11 +00:00
dkf
5b5bd699ff
Starting to build the implementation of the private methods and variables. Definition support.
2018-02-25 12:04:55 +00:00
dgp
a9e916f1b9
merge 8.7
2018-02-23 18:01:26 +00:00
dgp
6faf2feff2
Don't let presence of a string rep prevent optimizations on "pure" bytearrays.
2018-02-23 17:49:23 +00:00
dgp
9090aca429
Remove tests of "end-offset" Tcl_ObjType, taken private.
2018-02-23 17:17:47 +00:00
dgp
fe83175465
[8e6a9ac221] Stop false matching with bytearrays. (string-11.55)
2018-02-23 17:02:08 +00:00
dgp
468041eef8
[8e6a9ac221] Stop false matching with bytearrays. (string-11.55)
2018-02-23 17:00:03 +00:00
dgp
85233a4693
[8e6a9ac221] Stop false matching with bytearrays. (string-11.55)
2018-02-23 16:55:49 +00:00
dgp
4ad7747c62
Cease registration of the "end-offset" Tcl_ObjType. Give it file scope.
...
Remove the updateStringProc that can never be called.
2018-02-23 15:44:10 +00:00
jan.nijtmans
812174d578
Correctly distinguish between internalrep.longValue (in case of boolean) and internalre.wideValue (in case of int). Add comment warning for that
2018-02-22 20:03:56 +00:00
dgp
471d356605
[89dfecb6b7] Make thread IDs in testing commands consistent.
2018-02-22 18:59:59 +00:00
dgp
455b61dce3
[89dfecb6b7] Make thread IDs in testing commands consistent.
2018-02-22 18:57:20 +00:00
dgp
c908681186
merge 8.7
2018-02-15 18:24:22 +00:00
jan.nijtmans
2d54b68224
Distingish between boolean and int when checking whether a boolean is true or not: The internal representation might be either long or wideInt.
2018-02-15 18:02:00 +00:00
dgp
3b3a5ff07f
Better range checking in "string index". Add test-case to prove point.
...
This opens a large discussion on what the right valid range for index
values should be and what overflow behavior should be. New branch opened
to answer those questions completely.
2018-02-15 17:24:40 +00:00
dgp
cce4368ace
Revert recent commit that changed behavior of TclGetIntForIndex() for a
...
small subset of cases of overflow in index arithmetic. This changed the
public behavior of indexes.
I favor what's being done. I only want to do the complete work on a
feature branch (coming soon), and consider what aspects may benefit from
a TIP, and how we should future-proof the work against expanding ranges
for valid index values in Tcl 9. This touches on issues partially raised in
TIP 297.
2018-02-15 17:21:46 +00:00
dgp
7a1cc7e3b3
Guarantee the buffer is large enough it will not be overrun.
2018-02-15 15:58:36 +00:00
dgp
0b90c0b92e
Stop seeking out the libieee.a library and linking to it when found.
2018-02-15 15:14:56 +00:00
dgp
dda81853f3
Stop seeking out the libieee.a library and linking to it when found.
...
The latest release of the GNU C library, glibc-2.27 has done away with
the libieee.a library. This prompts a review of why Tcl has been using it.
Since Tcl 8.4.0, Tcl has stopped using the matherr() machinery, so we don't
need it anymore for that.
Since Tcl 8.5.0, Tcl post-processes ERANGE for itself when floating point
underflow or overflow can sensibly produce a 0.0 or Inf result instead of
raising an error. We no longer need to configure the system math library to
silence these reports.
A conseqeunce of this change is that TCL_LIBS will no longer include the
linker option -lieee . This can potentially change the behavior of programs
that embed libtcl. If so, though, those same programs are going to also have
behavior changed as the new glibc release gets into routine use. We're doing
those programs a favor by stopping masking the discovery that they need to
be updated.
2018-02-15 15:08:17 +00:00
dgp
0af226b20a
merge-mark
2018-02-15 13:52:23 +00:00
pooryorick
919808c6a5
merge pyk-backport-to-8-6
...
DGP: This checkin creates two memleaks, detected by test compile-12.1
That test leaks the allocations at
tclOO.c, line 401 AllocObject(...)
tclOODefineCmds.c, line 8143 Tcl_NewObjectInstance()
2018-02-15 10:52:44 +00:00
pooryorick
beff988e79
Rearrange a few lines TclRenameCommand to reduce operations.
2018-02-15 10:23:53 +00:00
pooryorick
e8f10bd44e
merge pyk-TclOO
2018-02-15 10:14:14 +00:00
pooryorick
fa3a1e4638
Udate Tcl_ObjectDeleted to reflect recent changes.
2018-02-15 10:05:27 +00:00
pooryorick
74c5043b5a
TclOO: Remove unneeded name manipulation from TclOOCopyObjectCmd.
2018-02-15 09:47:35 +00:00
pooryorick
dafcde1702
Fix syntax error in previous commit.
2018-02-15 09:40:40 +00:00
pooryorick
e16817b409
Add the check for wrong arguments back to TclOO_Object_Destroy, remove
...
inadvertant increment of Namespace->refCount.
2018-02-15 09:34:49 +00:00
pooryorick
03a4436237
Streamline TclOO object cleanup routines.
2018-02-15 09:30:29 +00:00
pooryorick
e52e074e4f
Add TCL_CREATE_NS_IF_UNKNOWN back into Tcl_CreateEnsemble().
2018-02-15 09:20:50 +00:00
pooryorick
0b5a1c79b7
Fix for [6bca38d59b], TclOO segmentation fault cleaning up objects that that
...
have mixed themselves into themselves.
2018-02-15 09:10:02 +00:00
pooryorick
0c44c5003d
Fix for issue [6cf568a21b]: Tcl_Eval() causes new segfault (TclOO object
...
creation by qualified name).
2018-02-15 08:53:15 +00:00
pooryorick
2b9b50b436
Minor refactoring of TclOO object reference count booking during object
...
creation.
2018-02-15 08:38:27 +00:00
pooryorick
80fc86a116
Eliminate some duplicate code in tclOO.c/Tcl_NewObjectInstance().
2018-02-15 06:45:34 +00:00
pooryorick
1da12398f2
Streamline TclOO object cleanup routines.
2018-02-15 06:35:02 +00:00
pooryorick
4322dab97e
merge pyk-command-named-colon
2018-02-15 06:01:09 +00:00
pooryorick
3243dfedd1
Move return type to its own line.
2018-02-15 05:11:15 +00:00
pooryorick
fa5058cbca
merge (cherrypick): Add missing parenthesis to an expression in TclEnsureNamespace.
2018-02-15 04:56:48 +00:00
jan.nijtmans
e62743b6ee
Move TclGetBooleanFromObj to tclInt.h, so multiple source files can use it. Change some internal variables from int to size_t.
2018-02-14 22:22:00 +00:00
pooryorick
ade95255b9
Fix segmentation fault in TclOO that was noted in [16fe1b5807]. Update
...
coroutine and TclOO object creation routines to use TclCreateObjCommandInNs.
2018-02-14 21:47:57 +00:00
jan.nijtmans
0b96f3fb32
Merge TIP #476
2018-02-14 20:22:45 +00:00
jan.nijtmans
3971514c1b
Better range checking in "string index". Add test-case to prove point.
2018-02-14 20:17:22 +00:00
pooryorick
e6dd74e90e
Lift the restriction on command names names that begin with ":".
2018-02-14 19:07:16 +00:00
pooryorick
cf4de002dc
New empty branch for other branches that bring changes from core-8-branch back
...
to core-8-6-branch.
2018-02-14 19:07:14 +00:00
dgp
c64afc94f1
merge 8.7
2018-02-14 15:33:29 +00:00
dgp
e239fa05dd
merge 8.7
2018-02-14 14:52:18 +00:00
dgp
55898c44b9
Fix regression in [expr {0%$bignum}].
2018-02-14 14:38:15 +00:00
pooryorick
b9b319fad2
merge pyk-backport-to-8-6
2018-02-14 14:19:31 +00:00
pooryorick
5d5bd4cd55
Modify TclCreateProc to handle arbitrary argument names, not just ASCII.
2018-02-14 14:05:04 +00:00
pooryorick
1e854210b7
Rewrite documentation in comments for brevity and clarity.
2018-02-14 13:37:27 +00:00
pooryorick
7d25e385a2
Modify test oo-11.6 to not use [self], which is not avaiable until 8.7.
2018-02-14 13:00:28 +00:00
dgp
c329006b1a
More tests for bignum modulus regressions
2018-02-14 12:52:35 +00:00
dgp
40e9ab2e65
More tests for bignum modules regressions.
2018-02-14 12:52:06 +00:00
dgp
dc74da2f56
merge-mark
2018-02-14 12:50:22 +00:00
pooryorick
c6eb0cc51d
Unit test for issue 3c32a3f8bd, Segmentation fault in
...
TclOO.c/ReleaseClassContents() for a class mixed into one of its instances.
2018-02-14 12:31:33 +00:00
pooryorick
a7c17bc224
Fix bug 3c32a3f8bd, segmentation fault in TclOO.c/ReleaseClassContents()
...
for a class mixed into one of its instances.
2018-02-14 12:14:38 +00:00
pooryorick
2606a3a7db
Fix for issue 9fd5c629c1, TclOO - aborts when a trace on command deletion
...
deletes the object's namespace.
2018-02-14 10:57:38 +00:00
pooryorick
ea6e8c9dcd
Fix for issue 9fd5c629c1, TclOO - aborts when a trace on command deletion
...
deletes the object's namespace.
2018-02-14 10:46:08 +00:00
dgp
01a9d5c7cc
merge mark
2018-02-13 21:00:24 +00:00
dgp
4a6163c6a6
test expr-32.7 for bignum modulus range. FAILING for now. Error in TIP 484.
2018-02-13 20:59:36 +00:00
dgp
396c1a637c
New test expr-32.7 for bignum modulus range.
2018-02-13 20:51:57 +00:00
hypnotoad
c5a85dbfdc
Correcting the string tests
2018-02-13 19:22:31 +00:00
hypnotoad
d49ccd64f2
Ok.. that was all it needed
2018-02-13 19:10:25 +00:00
hypnotoad
2815504547
Implemetation of tip 501.
...
Note: The build fails with:
bad stack depth computations: is 0, should be 1
Abort trap: 6
When "string is dict" is called
2018-02-13 18:55:31 +00:00
pooryorick
1553090bc3
Add remaining wrapper to the NR functions, remaining calls to
...
TCL_NRAddCallback, and a test for a package require script that yields.
DGP: This checkin introduces a memleak, detected by test compExpr-7.1.
2018-02-12 12:40:34 +00:00
pooryorick
f4babdb0ac
Adapt signature of PkgRequireCore to conform to Tcl_ObjCmdProc, and call it in
...
Tcl_PkgRequireProc on an NRE trampoline via Tcl_NRCallObjProc. Additional
callbacks still needed to fully NRE-enable [package require].
2018-02-12 10:44:44 +00:00
pooryorick
4c79bcbe64
Preparation to provide TclNRPackageObjectCmd: Eliminate the loop in
...
PkgRequireCore so that TclNRAddCallback can be added at the needed spots.
2018-02-12 10:14:02 +00:00
pooryorick
568724e468
Change the signature of PkgRequireCore in preparation to provide
...
TclNRPackageObjCmd.
2018-02-11 19:35:27 +00:00
pooryorick
ad022e6d3b
Remove restriction on defining the class of a TclOO object not explicitly
...
instantiated from ::oo::class.
2018-02-11 19:29:08 +00:00
pooryorick
5765c1e392
Refine documentation for Tcl_NR* functions.
2018-02-11 19:19:46 +00:00
dgp
19d052ff26
merge 8.7
2018-02-09 18:45:02 +00:00
sebres
0031252bf1
small code review: resolve conversion warnings (possible loss of data, signed/unsigned comparison)
2018-02-09 10:09:42 +00:00
jan.nijtmans
4d73b33b87
Fix [9280abbaf57fca3e|9280abbaf5]: Compiling core-8-branch with msvc6 32 bit results in compile error in tclInt.h. Thanks to sebres for the fix.
2018-02-08 20:43:00 +00:00
sebres
e2877119cd
fixes [9280abbaf57fca3eb40a89403d9d891853209bb6]: compare of LLONG_MAX == LONG_MAX does not possible in preprocessor
...
(because LLONG_MAX could be complex expression), use `defined(TCL_WIDE_INT_IS_LONG)` instead of.
2018-02-08 14:41:06 +00:00
sebres
451c384456
merge core-8-6-branch
2018-02-08 14:03:59 +00:00
sebres
4f65558ad0
win/nmakehlp.c: removed unneeded dependencies to shlwapi (the same is easily implemented by standard win-api)
2018-02-08 14:02:15 +00:00
oehhar
ffae8c82da
Do not allow prefixed subcommands for mcutil
2018-02-08 12:45:50 +00:00
oehhar
4cff9271ac
Add subcommand mcpreferences to export getpreferences and getsystemlocale functions
2018-02-08 09:49:28 +00:00
oehhar
3f2c5cd5aa
TIP 499: Custom locale search for msgcat
2018-02-07 19:25:30 +00:00
dgp
90806d3525
merge 8.7
2018-02-06 21:11:01 +00:00
dgp
185cdc39c6
TIP 484: Merge 'int' and 'wideInt' Obj-type to a single 'int'
2018-02-06 20:07:13 +00:00
dgp
365ee5bb13
TIP 493: Cease Distribution of http 1.0
2018-02-06 19:55:18 +00:00
dgp
f674720166
Merge the NRE-enabling of [package require].
2018-02-06 19:43:12 +00:00
dgp
a37e29cf85
Rework a set of TclString*() routines for consistency.
2018-02-06 19:35:36 +00:00
dgp
fde3c52d29
Rework TclStringReverse to consistent standard form.
2018-02-06 19:10:45 +00:00
dgp
99ca63a80a
TclStringLast fixed.
2018-02-06 18:33:41 +00:00
dgp
25fcbf685d
Rename TclStringFind to TclStringFirst. Repair its operations on bytearrays.
...
Stop trying to operate on utf-8 until we nail that down better.
2018-02-06 17:26:40 +00:00
pooryorick
2567185fd2
Add remaining wrapper to the NR functions, remaining calls to
...
TCL_NRAddCallback, and a test for a package require script that yields.
2018-02-06 11:16:51 +00:00
dgp
ca5e7c5b63
Revise the TclStringCat() interface to follow a common pattern.
2018-02-05 16:34:28 +00:00
dgp
836fa11775
Revise TclStringRepeat() interface so that in place operations are done only
...
by caller request. Establish a re-usable pattern.
2018-02-05 16:10:02 +00:00
dgp
3be49723fc
Improved overflow prevention.
2018-02-05 13:41:26 +00:00
dgp
da7f77f96f
Improved overflow prevention.
2018-02-05 13:33:21 +00:00
pooryorick
98887219c2
Refine documentation for Tcl_NR* functions.
2018-02-03 18:15:06 +00:00
José Ignacio Marín
93310b9171
Update TZ info to tzdata2018c.
2018-02-02 09:21:05 +00:00
José Ignacio Marín
b618278c9f
Update TZ info to tzdata2018c.
2018-02-02 09:19:41 +00:00
apnadkarni
73eb8eb8d1
Fix INCLUDE_INSTALL_DIR def when building against Tcl source. Bump rules.vc to 1.2
2018-02-02 06:17:05 +00:00
apnadkarni
adf9cf5543
Fixed def for INCLUDE_INSTALL_DIR when building against Tcl source. Bumped to 1.2.
2018-02-02 06:07:26 +00:00
pooryorick
77821adfe8
Fix segmentation fault triggered by test package-3.12. Adapt signature of
...
PkgRequireCore to conform to Tcl_ObjCmdProc, and call it in Tcl_PkgRequireProc
on an NRE trampoline via Tcl_NRCallObjProc. Additional callbacks still needed
to fully NRE-enable [package require].
2018-01-31 00:07:22 +00:00
dgp
24886887f9
merge 8.7
2018-01-29 15:36:13 +00:00
dgp
4f918b61b0
merge 8.7
2018-01-29 13:18:39 +00:00
pooryorick
1a98844412
Preparation to provide TclNRPackageObjectCmd: Eliminate the loop in
...
PkgRequireCore so that TclNRAddCallback can be added at the needed spots.
This checkin creates a crash in test package-3.12 .
Pushing the work off the 8.7.* branch and onto a feature branch for now.
2018-01-28 18:21:09 +00:00
pooryorick
876f2d5b63
Change the signature of PkgRequireCore in preparation to provide
...
TclNRPackageObjCmd.
2018-01-28 14:37:53 +00:00
pooryorick
fa7659336c
Remove restriction on defining the class of a TclOO object not explicitly
...
instantiated from ::oo::class.
2018-01-27 18:17:09 +00:00
dgp
175fe8c23f
Fix segfault due to shimmering in [join $l $l]. (Test join-4.1).
2018-01-27 01:45:27 +00:00
dgp
a0c6bf8d92
Regression test for shimmering danger in [join].
2018-01-27 01:38:21 +00:00
jan.nijtmans
d98ee54c8d
merge core-8-branch.
...
Also add range checks to Tcl_GetUniChar() and Tcl_Range(), as suggested by Don Porter.
2018-01-26 16:20:29 +00:00
jan.nijtmans
2eba1ce11e
Rename (internal) TclNewWideObj macro to TclNewIntObj. Change Tcl_SetIntObj/Tcl_SetLongObj to macro's referencing Tcl_SetWideIntObj (since all of those do the same now)
2018-01-26 13:29:01 +00:00
jan.nijtmans
6cd01fd0f8
Merge core-8-branch. Also some minor performance improvement: Turn Tcl_NewLongObj/Tcl_NewIntObj/Tcl_DBNewLongObj into macro's refering to their WideInt equivalent, since all of those do exactly the same now.
2018-01-26 12:32:12 +00:00
dgp
46e8af13b6
Dup test name
2018-01-25 22:11:34 +00:00
dgp
b0fce7a700
merge 8.7
2018-01-25 21:58:51 +00:00
dgp
d20d1e603b
test suite debugging
2018-01-25 21:35:01 +00:00
dgp
19c0142741
lifetime management of files generated by tests
2018-01-25 21:28:41 +00:00
dgp
189d0a83d2
lifetime management of files generated by tests
2018-01-25 21:15:36 +00:00
dgp
aa4c401952
test name continuity
2018-01-25 20:41:26 +00:00
dgp
f08ea44564
Dup test names
2018-01-25 20:28:15 +00:00
pspjuth
83df36ac41
Allow -stride 1.
2018-01-25 20:05:54 +00:00
dgp
eb9e2858c1
merge 8.7
2018-01-25 16:51:29 +00:00
jan.nijtmans
68214211b7
Document "L" length modifier and (new) %a/%A specifiers.
2018-01-24 12:02:05 +00:00
jan.nijtmans
92aca935b3
merge core-8-6-branch
2018-01-24 10:00:34 +00:00
jan.nijtmans
e403ff8f45
Documentation fix: there is no "O" conversion, just "o" for octal. Also, "b" conversions normally don't produce a sign.
2018-01-24 09:59:15 +00:00
jan.nijtmans
8a7371192a
merge core-8-branch. Improve documentation (format.n).
2018-01-24 08:47:24 +00:00
jan.nijtmans
6904b0f77f
merge core-8-branch
2018-01-23 15:51:00 +00:00
jan.nijtmans
0abda82b1e
In Tcl 9.0, don't register oldBooleanType any more. And rename "booleanString" to "boolean" in tclBooleanType. Many extensions (e.g. [ http://cyqlite.sourceforge.net/cgi-bin/sqlite/info/451bb2c1f8554eee |sqlite]) still test for "boolean", although that stopped working already for a long time.
...
In Tcl 8.7, do the same when compiled with -DTCL_NO_DEPRECATED.
2018-01-23 14:52:34 +00:00
dgp
c0012125d2
merge 8.7
2018-01-23 13:29:34 +00:00
dgp
92c0d0a011
typo
2018-01-22 13:38:47 +00:00
jan.nijtmans
fb10dc69ee
make the old "int" type "static", since it's just used in a single file.
2018-01-22 09:54:40 +00:00
jan.nijtmans
03a71b0706
Put old "int" type back. Not used by Tcl anymore, but this restores compatibility with Tk < 8.6.9 and some extensions: "nsf", "tdbcload", "tclxml" and "VecTcl"
...
(this workaround was used by "boolean" as well, when its internal implementation changed, there's still an oldBooleanType because of that)
2018-01-22 09:18:19 +00:00
jan.nijtmans
a4953f93f4
merge core-8-branch
2018-01-22 08:41:16 +00:00
jan.nijtmans
1c35ed873a
Follow-up to previous commit (TIP #485 implementation). Actually remove Tcl_Backslash and Tcl_EvalTokens when compiling with -DTCL_NO_DEPRECATED.
2018-01-20 16:02:31 +00:00
jan.nijtmans
69868ee129
merge core-8-branch. Now tested as well with new nmake system.
2018-01-20 14:36:36 +00:00
hypnotoad
e16df96d28
Fixed a problem where a Windows hack was occuring after it was called in the
...
tclZipfs.c file, preventing it from compiling properly.
2018-01-19 20:27:15 +00:00
dgp
bed15f1d81
merge 8.7
2018-01-18 14:05:07 +00:00
dgp
896002d66a
merge 8.7
2018-01-18 13:32:44 +00:00
jan.nijtmans
ac67b57981
merge core-8-branch
2018-01-18 09:46:29 +00:00
hypnotoad
608373fcb1
Modifications to allow the mounting of zip file systems from data blocks
...
Added a new stubs entry to mount a data block as a zip file system
2018-01-17 15:56:32 +00:00
jan.nijtmans
7ea11c7f98
TIP #485 implementation, Tcl 8.6 part: If Tcl is compiled with -DTCL_NO_DEPRECATED, all Deprecated API (as in the TIP) will be gone.
2018-01-17 11:47:37 +00:00
jan.nijtmans
e755aba59f
merge core-8-6-branch (typo's)
2018-01-17 10:07:42 +00:00
jan.nijtmans
5fea88381c
typo's (found by Gustaf Neumann). Thanks!
2018-01-17 10:06:30 +00:00
hypnotoad
a866c42f19
Modifications to index zip file systems by mountpoint, and separate the process
...
of mounting a zip archive from the process of indexing its contents. This work
is progress towards being able to pass a data block to the zipfs system
as a new file system to be mounted.
2018-01-17 01:09:07 +00:00
hypnotoad
3502aebe10
Tweaks to the tclZipfs.c file to allow the same C source to be used both
...
in the core and as a static package for external shells (Via TEA)
2018-01-16 23:25:50 +00:00
oehhar
7c60d44ce6
Comment updated
2018-01-16 14:53:41 +00:00
oehhar
e89d1e331e
Solve case where msgcat is called within a class definition script (works only for 8.7)
2018-01-16 14:13:14 +00:00
jan.nijtmans
9a892a33b7
merge core-8-branch
2018-01-16 08:40:47 +00:00
jan.nijtmans
8e6fe27ecc
merge core-8-branch
2018-01-15 11:41:56 +00:00
oehhar
e841295386
Install msgcat 1.7 in library folder 8.6 instead 8.5. It uses tailcall and will not work with 8.5
2018-01-13 17:17:39 +00:00
oehhar
87c12599bf
Test numbering and naming corrected
2018-01-13 17:14:22 +00:00
oehhar
eaacc9bb56
Changed msgcat version from 1.6.2 to 1.7.0 -> this is not a patch release
2018-01-13 16:44:38 +00:00
oehhar
ecaec63f48
Extended command msgcat::mcexists by switch "-namespace ns" to explicitly specify namespace
2018-01-13 15:23:38 +00:00
jan.nijtmans
f0b9b9fbb6
merge core-8-branch
2018-01-12 16:30:03 +00:00
oehhar
e1ffd3f005
Implement the "mcn" command as "mc" with explicit namespace.
2018-01-12 14:52:25 +00:00
oehhar
2cfe8bb561
Use the test "[namespace which self] ne "::oo::Helpers::self"" to check if we are within an object (undocumented test proposed by dkf on clt 2018-01-12
2018-01-12 14:13:03 +00:00
oehhar
e9f2695255
replace "return [uplevel 1 [list [namespace origin ..." by tailcall
2018-01-12 14:03:04 +00:00
jan.nijtmans
c8219a9a29
Fix [11ae2be95d]: tip-389 branch: string range errors with code points greater than U+FFFF
2018-01-12 10:03:58 +00:00
oehhar
1fda13591a
Corrected test cleanups
2018-01-11 16:46:09 +00:00
hypnotoad
9947048fbd
Tweaks to zipfs.test
2018-01-11 16:45:52 +00:00
jan.nijtmans
27e7f096b2
merge core-8-branch. Remove left-over debugging code. Test-case string-5.21 still fails.
2018-01-11 15:59:17 +00:00
jan.nijtmans
244885a03e
merge core-8-6-branch
2018-01-11 15:45:20 +00:00
jan.nijtmans
45e646472d
Fix behavior of Tcl_GetRange() and "string range" regarding surrogates, when Tcl is compiled with -DTCL_UTF_MAX=4. Partial fix for bug [11ae2be95dac9417]. Also, fix typo.
2018-01-11 15:44:05 +00:00
jan.nijtmans
eb3422673f
Add test-cases for bug [11ae2be95dac9417], and make a start fixing it. Almost works.
2018-01-11 14:11:38 +00:00
dgp
4389db676e
merge 8.7
2018-01-11 14:09:13 +00:00
oehhar
3b5858bcd2
TIP490: oo for msgcal: new solution enable any command for oo, new command mcpackagenamespacege
2018-01-10 23:17:43 +00:00
jan.nijtmans
2a8fce94bd
merge core-8-branch
2018-01-10 14:03:26 +00:00
jan.nijtmans
48d6a20861
Re-implement Tcl_WinTCharToUtf/Tcl_WinUtfToTChar in pure win32 api, even for TCL_UTF_MAX=3. We can do that now safely, because of the changed handling of valid 4-byte UTF-8 characters in the previous commit.
2018-01-10 14:02:03 +00:00
jan.nijtmans
04d3db5592
Don't use TclUtfToUniChar here: it doesn't give any advantage over Tcl_UtfToUniChar
2018-01-10 09:32:51 +00:00
jan.nijtmans
3889f63614
merge core-8-branch
2018-01-10 08:27:03 +00:00
jan.nijtmans
498f069f0e
Fix [ https://core.tcl.tk/tk/info/00a27923ee26437611e1ed83f96e15b6caabcd8b |00a27923ee]: (Tcl part, remaining is in Tk) text/entry dysfunctional when pasting an emoji on MacOSX.
...
This changes the handling of incoming valid 4-byte UTF-8 sequences: Those are no longer split in 4 separate characters (as was done for invalid byte sequences) but replaced by a single ' replacement character' .
2018-01-10 08:25:13 +00:00
hypnotoad
37b48e808c
Fix tests dependent on other tests in zipfs.test
...
Add a workaround for the fact that dynamic libraries called out from a non-install
location can't be located and mounted in time to be a candidate for tcl_library
when running under the constraints of "make test"
2018-01-09 18:10:06 +00:00
hypnotoad
3fc7771456
Pulling changes from core-8-branch
2018-01-09 16:28:11 +00:00
jan.nijtmans
48456596ff
(partial) fix for [ https://core.tcl.tk/tk/info/00a27923ee26437611e1ed83f96e15b6caabcd8b |00a27923ee]: text/entry dysfunctional when pasting an emoji on MacOSX.
...
Don't handle incoming valid 4-byte UTF-8 characters as invalid byte sequences (since they aren't), but as being the Unicode replacement character.
2018-01-09 11:15:14 +00:00
dkf
6d9902632c
Some refactoring and tidying up of comments.
2018-01-09 00:10:22 +00:00
pooryorick
fafc11d6e0
Merge pyk-TclOO branch. See [90657479e8]
2018-01-08 18:27:57 +00:00
pooryorick
4a5058fc1b
Udate Tcl_ObjectDeleted to reflect recent changes.
2018-01-08 18:21:40 +00:00
pooryorick
7e4261e22c
Rearrange a few lines TclRenameCommand to reduce operations.
2018-01-08 17:03:07 +00:00
jan.nijtmans
eb1212a3c1
merge core-8-6-branch
2018-01-04 13:01:18 +00:00
jan.nijtmans
063db11523
(cherry-pick): Use http 2 instead of http 1 for Safe Base testing.
2018-01-04 13:00:22 +00:00
jan.nijtmans
26b5bf3eca
(cherry-pick): Use http 2 instead of http 1 for Safe Base testing.
2018-01-04 12:58:31 +00:00
dgp
6c799d891d
Minimal fixes to stop the [package files] machinery writing to freed mem.
...
This contribution needs a careful review from someone who actually knows
how Tcl_Preserve, etc. work.
2018-01-04 02:32:46 +00:00
dgp
7aa147800f
Minimal fixes to stop the [package files] machinery writing to freed mem.
...
This contribution needs a careful review from someone who actually knows
how Tcl_Preserve, etc. work.
2018-01-04 02:23:37 +00:00
dgp
32f3dce79d
merge 8.7
2018-01-03 15:11:25 +00:00
pspjuth
fc03549d34
Doc for lsearch -stride
2018-01-02 23:05:25 +00:00
pspjuth
54590627ee
Add -stride to lsearch. TIP#351
2018-01-02 22:03:02 +00:00
hypnotoad
b533731c50
Modifications to clean up warnings on compile
2017-12-29 21:41:00 +00:00
hypnotoad
983b089edb
Removing the standalone pkgIndex.tcl. There is enough stuff that needs to be
...
manually edited in the init.tcl script for new releases as it is, there is no
sense in having yet another file to edit.
Marking which distributed packages are safe to load in a safe interpreter
2017-12-29 20:40:29 +00:00
pspjuth
651697f7cd
Refactored lrange to common function.
2017-12-29 18:58:01 +00:00
dgp
daa36e9a1b
Use http 2 instead of http 1 for Safe Base testing.
2017-12-29 17:47:50 +00:00
dgp
b0898beca6
Remove http 1.0 tests.
2017-12-29 17:38:10 +00:00
dgp
a922e9fd15
Remove http 1.0 files from fossil management.
2017-12-29 16:54:50 +00:00
dgp
6631e46bd3
Remove handling of http 1.0 package files from Makefiles.
2017-12-29 16:49:47 +00:00
dgp
1af6acb542
merge 8.7
2017-12-29 16:16:14 +00:00
hypnotoad
47c7771af1
Pulling changes from core-8-branch
2017-12-29 15:13:23 +00:00
pspjuth
0f6d3fd959
Optimise lrange for unshared object.
2017-12-28 23:54:57 +00:00
jan.nijtmans
815ebb9a0f
merge core-8-branch
2017-12-28 21:17:22 +00:00
jan.nijtmans
4a038240c4
merge core-8-6-branch
2017-12-28 21:15:20 +00:00
jan.nijtmans
ad43c617e3
Fix bug introduced in [0dd0d14489258621] (only for TCL_UTF_MAX > 3): If len parameter = -1, returned size includes terminating 0-byte. So, account for that.
...
Also, fix some comments which were not accurate any more, now that Windows 95/98 is not supported any more.
2017-12-28 21:14:40 +00:00
jan.nijtmans
7a13be75b6
merge core-8-branch
2017-12-28 20:29:10 +00:00
jan.nijtmans
a27cc004d2
merge core-8-6-branch
2017-12-28 18:51:12 +00:00
jan.nijtmans
301f6bcb83
Fix handling of surrogates (when TCL_UTF_MAX > 3) in Tcl_UtfNcmp()/Tcl_UtfNcasecmp()/TclUtfCasecmp(). Backported from core-8-branch, where this was fixed already.
2017-12-28 18:49:24 +00:00
jan.nijtmans
9a7ce78e96
Make Tcl_WinTCharToUtf/Tcl_WinUtfToTChar work when TCL_UTF_MAX > 3, mainly when sizeof(Tcl_UniChar) != 2.
2017-12-28 18:45:16 +00:00
jan.nijtmans
ca634be831
merge core-8-branch
2017-12-28 16:53:34 +00:00
jan.nijtmans
e71f41cf89
merge core-8-branch.
...
Re-implement Tcl_WinTCharToUtf/Tcl_WinUtfToTChar using only win32 API.
2017-12-27 20:24:13 +00:00
dgp
e9ccb8b496
merge 8.7
2017-12-27 14:09:06 +00:00
pooryorick
b0e6ac7da9
merge core-8-branch
2017-12-26 17:27:28 +00:00
pooryorick
9a9b619c9f
TclOO: Remove unneeded name manipulation from TclOOCopyObjectCmd.
2017-12-26 12:27:14 +00:00
apnadkarni
0b3bf9e30d
Merged core-8-6-branch: replace ifdef TCLDIR with compare against empty string
2017-12-26 03:32:05 +00:00
apnadkarni
82cd662f00
Safer to compare TCLDIR against "" rather than ifdef as recursive nmakes
...
can pass TCLDIR as defined but with an empty value.
2017-12-26 03:30:22 +00:00
jan.nijtmans
1dd89810eb
merge core-8-branch
2017-12-23 20:22:54 +00:00
jan.nijtmans
9977b3e79c
merge core-8-branch
2017-12-23 20:18:01 +00:00
jan.nijtmans
cae732bd8d
merge core-8-6-branch (changes file only)
2017-12-23 18:40:21 +00:00
jan.nijtmans
f2f7b85f88
merge release
2017-12-23 18:33:36 +00:00
apnadkarni
444ba0a874
Merge nmake rules 1.1
2017-12-23 08:02:20 +00:00
apnadkarni
71df313773
Look for Tcl and Tk import libraries with or without "t" suffix convention
...
when building extensions. Bump nmake rules version to 1.1 accordingly.
2017-12-23 07:56:49 +00:00
jan.nijtmans
189c6453b4
Change a few (internal) refCount/mask variables to unsigned type.
2017-12-22 15:45:05 +00:00
jan.nijtmans
53795bd199
merge core-8-branch
2017-12-21 13:26:56 +00:00
jan.nijtmans
5a190dd003
Remove use of compiler option "opt:nowin98". Don't use "t" as suffix any more when building extensions (but still use it for Tcl and Tk).
2017-12-21 13:23:38 +00:00
jan.nijtmans
5bcb4bc9a0
merge-mark
2017-12-21 07:50:27 +00:00
pooryorick
28361a2bfe
Further fix for issue [ba1419303b4c]: Delete a namespace for an ensemble having a
...
deletion trace deletes its namespace: segmentation fault.
2017-12-20 18:28:10 +00:00
pooryorick
c1f84789ba
Fix for issue [ba1419303b4c]: Delete a namespace for an ensemble having a deletion
...
trace deletes its namespace: segmentation fault.
2017-12-20 18:26:40 +00:00
pooryorick
5e11793221
Further fix for issue [ba1419303b4c]: Delete a namespace for an ensemble having a
...
deletion trace deletes its namespace: segmentation fault.
2017-12-20 18:25:08 +00:00
pooryorick
dc40e6f797
Fix for issue [ba1419303b4c]: Delete a namespace for an ensemble having a deletion
...
trace deletes its namespace: segmentation fault.
2017-12-20 11:28:25 +00:00
dgp
8ffa3470bb
merge 8.7
2017-12-19 21:01:46 +00:00
dgp
b6f5c15189
[586e71dce4] Exeception handling at level #0 by EvalObjv
2017-12-19 21:00:17 +00:00
dgp
1725b74695
merge 8.6; update changes
2017-12-19 20:53:27 +00:00
dgp
e10cd2e0a5
[586e71dce4] Exeception handling at level #0 by EvalObjv
2017-12-19 20:48:52 +00:00
dgp
77c0d1662a
merge 8.7
2017-12-19 16:22:24 +00:00
jan.nijtmans
34c238c152
merge core-8-branch
2017-12-19 15:46:25 +00:00
jan.nijtmans
07c71d17a2
Somewhat better backwards compatibility on 64-bit platforms.
2017-12-19 15:20:32 +00:00
dgp
f4cc39572c
update changes
2017-12-19 14:46:31 +00:00
jan.nijtmans
051a7ec3ae
merge core-8-branch
2017-12-19 12:26:54 +00:00
jan.nijtmans
ee66488c36
Make TclEnsureNamespace() MODULE_SCOPE. Also change some refCount fields from type "int" to "unsigned int" for increased range.
2017-12-19 11:23:13 +00:00
jan.nijtmans
f64bba0499
Minor simplification on Cygwin, since we only support Windows NT now
2017-12-19 11:21:33 +00:00
jan.nijtmans
dbe18af9ea
No need any more to check for "Windows NT" here, since the minimum is XP now.
2017-12-18 14:33:11 +00:00
dgp
9acbab2c0e
merge 8.6
2017-12-18 14:06:37 +00:00
jan.nijtmans
52dc6e55e5
merge core-8-6-branch
2017-12-18 13:58:05 +00:00
jan.nijtmans
0fb81cb5dd
(cherry-pick): Added assoc, ftype and move as auto_execok shell built-ins on Windows.
2017-12-18 13:56:30 +00:00
jan.nijtmans
03e581e857
merge core-8-6-branch. Remove win/coffbase.txt, which isn't used any more.
2017-12-18 11:47:35 +00:00
jan.nijtmans
e0360a8c34
Add win/rules-ext.vc and win/targets.vc to "make dist". Reported by Paul Overmeier. Thanks!
2017-12-18 11:41:31 +00:00
hypnotoad
72af38dd32
Pulling changes from core-8-branch
2017-12-16 03:33:44 +00:00
hypnotoad
7f1c241ea2
Update the config.test with new keys needed for zipfs
2017-12-16 03:30:58 +00:00
hypnotoad
45a3c74a04
Removing static package declaration of zipfs.
2017-12-16 03:24:21 +00:00
hypnotoad
71cf0dba40
Re-arranging code and providing forward prototypes to allow the C infrastructure of
...
Zipfs to be activated from withing the first call to TclZipfs_Mount(). This keeps up
from having to expose TclZipfs_Init in the stubs table.
2017-12-16 03:22:04 +00:00
jan.nijtmans
aecff8b1e7
Revert a few more (int -> size_t) transitions, which could effect extensions (such as Itcl 3.4) which use internal Tcl header files. Better wait until 9.0 for this.
...
What we _can_ do is change some (internal) fields to 'unsigned': that doubles the epoch range without further danger. Thanks, Don, for pointing this out!
2017-12-15 21:27:14 +00:00
dgp
67f6f5cdb1
Revert the (int -> size_t) transition of the "cmdEpoch" field of
...
the struct Command that was part of [ff3f6a12a8d099ef], and related changes.
This change broke the ability of Itcl 3.4 built against Tcl 8.6 headers
to successfully [load] into and operate in a Tcl 8.7 interp.
"Command" is a private struct, and Itcl 3 should have respected that, but
it has not, and changing the size of the cmdEpoch field broke the ability
of Itcl 3 to operate on later fields of the struct, notably the deleteProc,
which it makes extensive use of.
I believe we should keep the change in the Tcl 9 sources.
2017-12-15 16:50:50 +00:00
jan.nijtmans
603e23c2a9
merge core-8-branch
2017-12-15 16:08:14 +00:00
jan.nijtmans
4fb66d5d55
Mark TclPrecTraceProc() as deprecated, and remove it when compiling with -DTCL_NO_DEPRECATED. See TIP #488
2017-12-15 14:46:11 +00:00
jan.nijtmans
3f03f8189e
Oops, couldn't build tclWinPanic.o. Fixed now.
2017-12-15 13:04:15 +00:00
jan.nijtmans
c576cbec93
merge core-8-branch. Fully functioning now, including with the new vc-reform implementation.
2017-12-15 12:55:59 +00:00
jan.nijtmans
5c4f8d88b5
fix comment
2017-12-14 14:38:30 +00:00
jan.nijtmans
9c5c1a721f
merge core-8-branch. Fully tested now, works fine.
2017-12-14 13:41:37 +00:00
dgp
50bb6253da
merge 8.6
2017-12-14 13:32:50 +00:00
jan.nijtmans
556dc3036e
Fix (harmless) compiler warning with Visual Studio
2017-12-14 12:02:13 +00:00
hypnotoad
2756d01872
Pulling changes from core-8-branch
2017-12-13 15:52:05 +00:00
pooryorick
3ddcb1cfb5
Fix syntax error in previous commit.
2017-12-13 12:56:02 +00:00
apnadkarni
191ea171cb
core-8-6-branch merge: Use nmakehlp -L to locate directories
2017-12-13 10:31:02 +00:00
apnadkarni
48549d55b0
Updated nmake system to make use of the new nmakehlp -L option for
...
locating dependencies.
2017-12-13 10:03:54 +00:00
apnadkarni
137a89f1e2
Add -L option to nmakehlp to locate directories
2017-12-12 17:33:21 +00:00
apnadkarni
8c866ee6be
Add -L option to nmakehlp to locate directories
2017-12-12 17:32:21 +00:00
pooryorick
0239e7e77f
Add the check for wrong arguments back to TclOO_Object_Destroy, remove
...
inadvertant increment of Namespace->refCount.
2017-12-11 23:50:22 +00:00
apnadkarni
dddf400b7e
Merge from core-8-6-branch - install stubs and headers where present
2017-12-11 16:40:30 +00:00
apnadkarni
c220b0dcfa
Allow standard targets to be selectively disabled.
...
Automatic install for extension stubs and public headers if present.
Print installation dir, remove useless partial print of preprocessor defines.
2017-12-11 16:26:24 +00:00
jan.nijtmans
bf868c1c56
Initial implementation of TIP #491 . Not tested yet.
2017-12-11 14:19:48 +00:00
pooryorick
2555e0d7e6
Streamline TclOO object cleanup routines.
2017-12-10 21:45:26 +00:00
jan.nijtmans
dfeacc8edb
Fix [040586323610be22f8617962377324f4ddc9bc02|0405863236]: wrong field checked in struct pollfd in TclUnixWaitForFile
2017-12-10 14:35:02 +00:00
jan.nijtmans
9ef7f0a940
merge core-8-6-branch
2017-12-09 15:32:46 +00:00
jan.nijtmans
5cddfdcda6
Undo latest change to tcl.rc, since the autoconf-based windows build doesn't know about PRJLIBNAME
2017-12-09 15:31:58 +00:00
apnadkarni
54ae4feac8
TIP477 merge: nmake build reform
2017-12-08 15:27:49 +00:00
apnadkarni
a2c5ea2c08
Merge TIP 477 implementation
2017-12-08 13:54:42 +00:00
jan.nijtmans
a3daf1a6d1
TIP #487 : Stop support for Pre-XP Windows
2017-12-07 12:14:23 +00:00
dgp
6c313a5846
update changes
2017-12-07 02:01:30 +00:00
dgp
bbaba520ab
changes WIP
2017-12-06 21:59:13 +00:00
dgp
a0a62d119d
merge 8.6
2017-12-06 21:03:02 +00:00
dgp
8fa6374b22
merge 8.7
2017-12-06 21:00:51 +00:00
dgp
7573551ccb
Plug memleak recently put into [package require].
2017-12-06 20:48:12 +00:00
dgp
5d11ad1e8a
Plug memleak recently put into [package require].
2017-12-06 20:46:47 +00:00
dgp
cd525c7bb1
Plug memleak recently put into [package require].
2017-12-06 20:44:32 +00:00
dgp
4644a04ee3
merge 8.6
2017-12-06 20:02:46 +00:00
dgp
0af956fe7e
merge 8.6
2017-12-06 19:58:40 +00:00
dgp
9ba4b4f901
[0e4d88b650] Added enough refcounting to stop make valgrind complaints about
...
"Invalid read". This is not a complete fix. Things are still broken.
A working system of Namespace lifetime management looks like an 8.7 project.
2017-12-06 19:57:59 +00:00
jan.nijtmans
cf3348e41c
(cherry-pick from core-8-6-8-rc): Duplicate test names
2017-12-06 16:04:22 +00:00
dgp
7b04f399b0
Duplicate test names
2017-12-06 15:30:27 +00:00
dgp
3aab0c568b
Start RC branch for Tcl 8.6.8
2017-12-06 15:27:28 +00:00
dgp
adb60835f7
merge 8.7
2017-12-06 13:29:22 +00:00
dgp
21877b851c
Adapt the bytearray accommodation of Tcl_CharLength() for 8.7+.
2017-12-06 13:28:12 +00:00
dgp
fb62f4567b
merge 8.7
2017-12-06 13:16:33 +00:00
dgp
d7ed325913
[ce3a211dcb] Failed file normalize when tail is empty string.
2017-12-06 13:06:47 +00:00
dgp
07aa7381a9
[ce3a211dcb] Failed file normalize when tail is empty string.
2017-12-06 13:05:51 +00:00
dgp
bb1c5fe833
[ce3a211dcb] Failed file normalize when tail is empty string.
2017-12-06 13:02:32 +00:00
jan.nijtmans
a69614b432
merge 8.7
2017-12-06 12:24:26 +00:00
jan.nijtmans
3f1dfde45f
Don't do same test twice
2017-12-06 12:17:33 +00:00
jan.nijtmans
c15cc5c510
merge 8.7
2017-12-06 12:10:35 +00:00
jan.nijtmans
99e890b52c
merge core-8-branch
2017-12-06 12:00:24 +00:00
dgp
72f0f0b346
[4f6a1ebd64] Stop crash when same value passed to the -map and -subcommands options of ensemble configuration.
2017-12-05 15:52:55 +00:00
dgp
f3af86c67e
[4f6a1ebd64] Stop crash when same value passed to the -map and -subcommands options of ensemble configuration.
2017-12-05 15:27:21 +00:00
dgp
3eef9fcea1
Factor clearing of ensemble subcommand table into utility routine.
2017-12-05 15:12:05 +00:00
dgp
906cf353b2
[4f6a1ebd64] Stop crash when same value passed to the -map and -subcommands options of ensemble configuration.
2017-12-05 14:57:05 +00:00
dgp
8a44c35e8c
Another revised fix, much closer to sebres' patch now.
2017-12-05 14:36:33 +00:00
apnadkarni
3e34d38b2d
Use PRJ_PACKAGE_TCLNAME instead of PROJECT when generating TEA based pkgindex
2017-12-05 14:29:47 +00:00
dgp
92f8ce13df
[4f6a1ebd64] Different fix for the problem. Re-order the filling of the
...
subcommand table so there is no longer a conflict where multiple intreps of
a single value are sought. If the mapDict and exportList are the same,
then each key in the mapDict is known to be an element of the exportList
without needing to check.
2017-12-04 18:36:14 +00:00
jan.nijtmans
f0d821a83c
merge core-8-6-branch
2017-12-01 12:48:26 +00:00
jan.nijtmans
b8fbe8c1d3
Fix [4f51e1c5dcf75de22f5907f7b66361e4bcab02e2|4f51e1c5dc]: patch to correct linker flag sequence
2017-12-01 12:47:12 +00:00
jan.nijtmans
9b47336cbd
merge core-8-branch
2017-12-01 11:33:27 +00:00
jan.nijtmans
1a237e67df
Simpler solution for Itcl 3.4 build (compatibilty) problem. Thanks to Don Porter for bringing this to my attention!
2017-12-01 10:38:04 +00:00
dgp
49e332ded2
merge 8.7
2017-11-30 17:52:09 +00:00
dgp
db726dc570
[5808081213] Permit all bytearrays (including impure ones) to report length without shimmering
2017-11-30 17:21:12 +00:00
dgp
4bbfdee3db
[5808081213] Permit all bytearrays (including impure ones) to report length without shimmering
2017-11-30 17:10:37 +00:00
jan.nijtmans
88233497ab
merge core-8-branch
2017-11-30 16:18:54 +00:00
jan.nijtmans
b96b6a46ba
merge core-8-branch
2017-11-30 16:08:03 +00:00
jan.nijtmans
0efada5548
Eliminate use of certain unnecessary struct names. Also white-spacing. Nothing functional.
2017-11-30 16:03:01 +00:00
jan.nijtmans
99798b2202
Fix build of test-suite, after previous commit
2017-11-30 15:24:39 +00:00
jan.nijtmans
f327b7e9dc
merge core-8-6-branch.
...
Provide compatibility macro's, compensating for the internal stub table change, so Itcl 3.4 builds again. Thanks to Don Porter for bringing this to my attention!
2017-11-30 14:36:16 +00:00
jan.nijtmans
d7d31d6041
Don't provide the setFromAnyProc through the invalidRealType objType. This is a Tcl internal type, extensions shouldn't be able to convert their own Tcl_Obj to this. This shouldn't have been exposed to begin with. Tcl itself never calls it this way.
2017-11-30 14:14:01 +00:00
jan.nijtmans
72998869a3
Fix [8e1e31eac0fd6b6c4452bc108a98ab08c6b64588|8e1e31eac0]: lsort treats NUL chars strangely. Also fix various initializations, which only make a difference when TCL_UTF_MAX == 4.
...
Add new test-cases which demonstrate the fix. For TCL_UTF_MAX == 4, surrogates will now be handled as expected as well when sorting.
2017-11-30 13:14:43 +00:00
pooryorick
c47ba70f45
Add TCL_CREATE_NS_IF_UNKNOWN back into Tcl_CreateEnsemble().
2017-11-29 18:35:51 +00:00
dgp
079887fe42
merge 8.7
2017-11-29 14:54:21 +00:00
sebres
e68b491806
Cherry-picked test-cases from [046a5af026]: fix for issue [4f6a1ebd64]: ensemble: segmentation fault when -subcommand and
...
-map values are the same object.
2017-11-29 13:59:42 +00:00
jan.nijtmans
4190501ec7
merge core-8-6-branch
2017-11-29 12:28:21 +00:00
jan.nijtmans
e87d0bcdf4
Fix Tcl_UtfFindFirst()/Tcl_UtfFindLast(), which were broken by [83c0c569d6]. Not detected, because those functions aren't used anywhere in Tcl.
...
So, added new test-cases, makeing sure this doesn't happen again.
2017-11-29 12:27:22 +00:00
pooryorick
c032f5043e
Fix for [6bca38d59b], TclOO segmentation fault cleaning up objects that that
...
have mixed themselves into themselves.
2017-11-29 12:01:21 +00:00
jan.nijtmans
7ecb945209
Merge core-8-branch. Also, use a different value for TCL_STUB_MAGIC when TCL_UTF_MAX>4.
2017-11-29 11:49:49 +00:00
jan.nijtmans
79b5a0a716
merge core-8-6-branch
2017-11-29 11:05:15 +00:00
jan.nijtmans
4fc9a4c991
Update some functions in tclUtf.c to handle surrogate pairs when TCL_UTF_MAX == 4. Also update documentation to distinguish better between "Tcl_UniChar" and "Unicode character": Those are not necessary the same when TCL_UTF_MAX == 4.
...
No change when TCL_UTF_MAX == 4 or TCL_UTF_MAX == 6.
2017-11-29 11:04:20 +00:00
jan.nijtmans
03c66864aa
Fix [8e1e31eac0fd6b6c4452bc108a98ab08c6b64588|8e1e31eac0]: lsort treats NUL chars strangely
2017-11-29 09:49:31 +00:00
jan.nijtmans
3af16acbcb
Treat invalid UTF-8 characters in the range 0x80-0x9F as cp1252: See [ https://en.wikipedia.org/wiki/UTF-8 ]. To be added to TIP #389
2017-11-29 08:59:49 +00:00
jan.nijtmans
eef0b72b5e
merge core-8-branch
2017-11-29 08:41:05 +00:00
hypnotoad
9b22762d4c
Pulling changes from core-8-branch
2017-11-29 01:59:41 +00:00
hypnotoad
0951ca5344
Closing leaf
2017-11-29 01:59:12 +00:00
pooryorick
8396e878da
Fix for issue [6cf568a21b]: Tcl_Eval() causes new segfault (TclOO object
...
creation by qualified name).
2017-11-28 23:33:14 +00:00
hypnotoad
bb48fae153
Pulling changes from the last core-8-branch that doesn't cause a segfault in kits
2017-11-28 18:06:22 +00:00
pooryorick
fe65a79d19
Minor refactoring of TclOO object reference count booking during object
...
creation.
2017-11-28 15:43:41 +00:00
pooryorick
a8a602d3ff
Eliminate some duplicate code in tclOO.c/Tcl_NewObjectInstance().
2017-11-27 23:30:57 +00:00
pooryorick
2930169517
Streamline TclOO object cleanup routines.
2017-11-27 19:45:40 +00:00
jan.nijtmans
d95ab0247a
missed some more failing test-cases
2017-11-27 14:11:16 +00:00
jan.nijtmans
20dedcd841
Fix test-cases in safe.test, failing due to changes in min/max math functions.
2017-11-27 13:52:18 +00:00
hypnotoad
ae2707f558
Pulling changes from core-8-branch
2017-11-26 18:27:33 +00:00
pooryorick
14c8dabffe
merge (cherrypick): Add missing parenthesis to an expression in TclEnsureNamespace.
2017-11-25 21:40:19 +00:00
pooryorick
811ec68434
Add missing parenthesis to an expression in TclEnsureNamespace.
2017-11-25 18:24:10 +00:00
pooryorick
c2e98a86d4
merge pyk-command-named-colon
2017-11-25 16:53:59 +00:00
pooryorick
48fb6e2c88
Fix for issue [4f6a1ebd64]: ensemble: segmentation fault when -subcommand and
...
-map values are the same object.
2017-11-25 16:36:22 +00:00
tne
99dc87a51d
Restoring the Makefile.in for the win/ directory after an unfortunate copy/paste error
2017-11-25 10:54:15 +00:00
hypnotoad
7154cc9c47
Tweak to ensure mount points for zipfs are corralled into the //zipfs:/ prefix space
2017-11-24 11:46:34 +00:00
hypnotoad
b3ff8cc20c
Pulling changes from Androwish
2017-11-24 11:21:55 +00:00
hypnotoad
2fcfa34fcf
Restoring whitespace to tclZipfs.c to improve legibility.
2017-11-24 10:32:10 +00:00
pooryorick
9b1ecce298
Move return type to its own line.
2017-11-23 18:24:09 +00:00
jan.nijtmans
ca83d59e10
merge core-8-branch.
...
now really remove the math-related functions when compiling with -DTCL_NO_DEPRECATED. Also no longer supply Tcl_Value, Tcl_ValueType and TCL_RESULT_SPACE.
2017-11-23 13:56:21 +00:00
jan.nijtmans
160a58238a
If compiled with -DTCL_NO_DEPRECATED, remove stub entry for TclWinGetPlatformId()
2017-11-23 12:21:35 +00:00
jan.nijtmans
dd0e9cf6b1
Remove more pre-XP stuff.
2017-11-23 12:04:33 +00:00
hypnotoad
2d811a0adf
Fixing a goof, Zipfs was looking for the Dll where the installer put the file,
...
which is not necessarily where the file will be found at runtime.
2017-11-23 11:55:03 +00:00
jan.nijtmans
3c23d21835
Re-base "stop-ce" branch to core-8-branch. This is what will be proposed for 8.7 in TIP #487 .
2017-11-23 08:30:10 +00:00
pspjuth
fac696b394
merge pspjuth-cminmax
2017-11-21 22:46:35 +00:00
hypnotoad
09f849cabd
Pulling changes from core-8-branch
2017-11-21 22:34:06 +00:00
hypnotoad
d997aa477d
Added additional functions to the "install" command in tclsh
2017-11-21 18:57:31 +00:00
hypnotoad
8225859a93
Eliminated the need for a preinit script in Tip 430's AppHook.
...
tcl_findLibrary now knows to scan the dll offered up by [info loaded] to see if
an attached zipfile could possibly contain the files the extension is looking for.
2017-11-21 16:49:24 +00:00
jan.nijtmans
9215c2610c
Drop Windows CE support, since it doesn't appear to work anyway.
2017-11-21 14:59:04 +00:00
hypnotoad
35adf8c728
Removing the pool of literal values within the internals of tclZipfs.c. Replaced with
...
a single pointer to a const string once discovery has sorted out where tcl_library
is to be loaded from.
Fixed a goof in the build system if tcl is compiled outside of the source directory
2017-11-21 14:21:48 +00:00
jan.nijtmans
119652bd95
deprecate VOID/CHAR/SHORT/LONG (windows-only) as well.
2017-11-21 09:48:36 +00:00
jan.nijtmans
011dd7b0f6
Revert [d874801c57]: putting back "string bytelength". It turns out to be too complicated to take along with the other deprecations in TIP #485
2017-11-21 09:13:08 +00:00
tne
334149646f
Fixes to "make clean" to do a better job of cleaning up zip files and vfs directories
...
Fixed a type that was keeping minizip from building
2017-11-21 04:26:37 +00:00
hypnotoad
d8a921174e
Added an implementation of tinydir.h, and spliced it into minizip to allow
...
minizip to recurse directory structures (and get us out of having to feed `find`
via autoconf)
2017-11-21 04:07:45 +00:00
tne
d7b40297d2
Final tweaks to make "./tclsh install" work properly on Windows
...
NOTE: We still seem to be screwing up minizip on MinGW. the `find . -type f` substitution is not working
2017-11-21 01:14:05 +00:00
hypnotoad
9ef614086a
Typo fixes for minizip
2017-11-21 00:41:04 +00:00
hypnotoad
6b40a5dc5a
Added a new function to the Zipfs: TclZipfs_TclLibrary, which returns a previously
...
discovered /library file system from a zip archive, performs the search to see
if the current dll has one (and return that), or NULL if zipfs cannot locate
/library.
Injected a call to [zipfs tcl_library] (which invokes TclZipfs_TclLibrary) inside
if interp.c as the first command to try to locate Tcl_Library (if a preinit
script hasn't already pointed one out to us.)
2017-11-21 00:36:55 +00:00
tne
3cd8b86e50
Change to TclZipfs_AppHook to accomidate Windows
2017-11-20 23:34:21 +00:00
hypnotoad
d2fc7a6ed5
Fixing the quoting for arguments to minizip
2017-11-20 22:45:35 +00:00
hypnotoad
12a14f4954
Updating tcl.m4 in windows to fix a typo
2017-11-20 21:29:57 +00:00
tne
1f34b918b9
Removing debugging printf() statement
2017-11-20 19:35:40 +00:00
tne
4a8bb308e8
Fixes to determing the dll location on Windows using GetModuleFileName()
2017-11-20 19:21:12 +00:00
hypnotoad
3640513caf
Autoconf fixes
2017-11-20 18:08:12 +00:00
hypnotoad
4e97c16367
Modifications to allow the Tcl build system to exploit either a native zip
...
executable in the path or a tclsh that understands the new "install" keyword
from the command line
Added a new file to /library which is run when the user executes "tclsh install ..."
Embedded in installer.tcl is a facility for building zip archives
2017-11-20 17:09:44 +00:00
jan.nijtmans
52b098ca11
Deprecate support for macro's like CONST, CONST84, _ANSI_ARGS_, INLINE, TCL_VARARGS
2017-11-20 16:26:03 +00:00
jan.nijtmans
82877a8aa3
merge core-8-branch. Deprecate support for "string bytelength"
2017-11-20 16:01:05 +00:00
jan.nijtmans
61536390c5
Fix executable flags
2017-11-20 13:05:36 +00:00
jan.nijtmans
3a7618f91e
merge core-8-branch
2017-11-20 12:58:54 +00:00
jan.nijtmans
a1bc5b8a2b
If Tcl is compiled with -DTCL_NO_DEPRECATED, remove a lot of (internal) stub entries which correspond to functions which will be removed in Tcl 9.
...
This commit should have been part of [7849f573c0e7d758|this] earlier commit.
No effect when Tcl is not compiled with -DTCL_NO_DEPRECATED.
2017-11-20 12:07:08 +00:00
jan.nijtmans
c19490026d
Re-base to core-8-branch: This change is fine as-is for Tcl 8.7, I wouldn't recommend it for 8.6 (even though it's only for the changed error-message)
2017-11-20 10:30:02 +00:00
jan.nijtmans
bc3e198cba
Fix error-message for min/math functions: "to" -> "for", for consistancy with the error-messages for other math functions.
2017-11-20 10:15:59 +00:00
jan.nijtmans
b946ce971f
Fix [e058307eef73cf21cf6805ad7c778e1024f9eb7d|e058307eef]: Use of values.h breaks build of Tk trunk on macOS
2017-11-20 08:58:39 +00:00
pspjuth
c2eeda3f09
Changed math functions min and max to C implementations.
2017-11-19 18:40:13 +00:00
hypnotoad
280b6aa62e
Added handling to allow Tclsh to intercept a zip file fed as the first command line argument, and open it as a kit
2017-11-19 18:16:43 +00:00
pooryorick
75924256c1
Fix segmentation fault in TclOO that was noted in [16fe1b5807]. Update
...
coroutine and TclOO object creation routines to use TclCreateObjCommandInNs.
2017-11-19 00:06:51 +00:00
hypnotoad
fe346634a7
Pulling changes from core-8-branch
2017-11-18 20:28:20 +00:00
tne
1d444f5610
Now that UNC paths work correctly on Windows, removing the platform specific zipfs mount point for windows
2017-11-18 20:25:25 +00:00
hypnotoad
30938251a2
Adjust the rule to look for libtcl_XXX.zip ONLY in the directory that contains
...
the executable or the install location for tcl. The directory adjacent copy
is only looked for and mounted in an install location version cannot be located.
2017-11-18 20:21:13 +00:00
aspect
157e55c7bc
Reserve paths matching //[^/]*: for VFS mount points, and prevent calling
...
native filesystem ops during normalization for them. This is permitted by UNC
standards (which do not allow : at the end), and should prevent observed slow
[glob] operations (and others) on Windows when using such paths.
2017-11-18 17:07:48 +00:00
aspect
d8a0c08bbc
add some tests for join and normalize
2017-11-18 17:04:03 +00:00
aspect
3730061388
fix zipfs tests
2017-11-18 17:02:08 +00:00
hypnotoad
b171f5cc41
Added documentation for the zipfs root command and working of TclZipfs_AppHook
2017-11-18 12:21:35 +00:00
tne
02a019458f
Updated zipfs tests to recognize the mount points are different on different platforms
2017-11-18 11:59:20 +00:00
hypnotoad
b59255450b
Added a pool of literal strings to zipfs to manage constants that are being belched out by the file system.
...
Created a separate mount point for Unix and Windows, with a new "zipfs root" command to tell the user which
location to use for their platform
2017-11-18 11:48:08 +00:00
pooryorick
42c80667fd
Lift the restriction on command names names that begin with ":".
2017-11-17 23:42:16 +00:00
pooryorick
3c942c50d9
Fix [16fe1b5807]: namespace ensemble command named ":" is mistakenly given the
...
empty string as its name.
2017-11-17 22:30:06 +00:00
hypnotoad
c6d82079ea
Added a package manifest to init to allow core distributed packages to
...
auto-populate [package ifneeded] on startup
2017-11-17 17:23:01 +00:00
jan.nijtmans
2ea8f0fe98
merge core-8-branch. Fix some Tcl_UniChar initialization, in case TCL_UTF_MAX == 4
2017-11-17 16:08:49 +00:00
apnadkarni
335305de9c
Added back nothreads option.
2017-11-17 15:46:23 +00:00
jan.nijtmans
b832920adb
merge core-8-branch
2017-11-17 15:34:01 +00:00
jan.nijtmans
48047bb120
merge core-8-6-branch
2017-11-17 15:30:02 +00:00
jan.nijtmans
b44ffcf5e2
Fix [fab92486a1b05ba6f7cfe8677da95b9efb3beff0|fab92486a1]: Windows error 14 "Out of memory" mapping to Posix EFAULT "Bad address in system call argument" feels wrong
2017-11-17 15:29:07 +00:00
jan.nijtmans
ff436137df
Fix [fab92486a1b05ba6f7cfe8677da95b9efb3beff0|fab92486a1]: Windows error 14 "Out of memory" mapping to Posix EFAULT "Bad address in system call argument" feels wrong
2017-11-17 15:28:09 +00:00
hypnotoad
52d32b1033
Integrating fixes from aspect that make the //zipfs:/ mount point viable, and
...
also allow one archive to be mounted in multiple locations
2017-11-17 12:54:56 +00:00
hypnotoad
f85da9c9fd
Pulling changes from core-zip-vfs
2017-11-17 12:39:06 +00:00
hypnotoad
f20b58c6a9
Pulling changes from core-8-branch
2017-11-17 12:29:40 +00:00
hypnotoad
9513859f8c
Closing a fork
2017-11-17 12:28:37 +00:00
aspect
f81c2ae724
fix [glob] handling of leading //
2017-11-17 11:53:19 +00:00
jan.nijtmans
42236b435f
Fix ignore-glob versioned setting (something went wrong in previous merge). Also convert rules-ext.vc and targets.vc to CRLF line-endings.
2017-11-17 11:35:26 +00:00
jan.nijtmans
a27501598a
merge core-8-6-branch
2017-11-17 11:27:13 +00:00
aspect
7c1f63bb60
clean up stray unused dstrings
2017-11-17 10:24:45 +00:00
jan.nijtmans
28017c14e3
TIP #422 , Tcl 8.7 part: Mark all *VA functions as deprecated. They will be removed in Tcl 9.0.
2017-11-17 10:23:14 +00:00
aspect
4515103846
whitespace consistency
2017-11-17 10:21:41 +00:00
aspect
87d37d3101
Zipfs: Nix AbsolutePath() and most uses of CanonicalPath(). Tcl_FSNormalizePath is to be trusted.
2017-11-17 10:17:47 +00:00
aspect
da76cd286c
Zipfs: Use //zipfs:/ as mount point. Use Tcl_FSNormalizePath() on the way in to most VFS operations. Add some tests.
2017-11-17 08:39:31 +00:00
jan.nijtmans
ac3259b669
Suggested patch for [4f51e1c5dc]: patch to correct linker flag sequence. Same change done for a few other platforms where it might matter.
2017-11-17 08:32:16 +00:00
apnadkarni
5560b9198b
Check for existence of targets.vc, not rules.vc to determine nmake support dir.
2017-11-17 07:05:23 +00:00
apnadkarni
51319d2cae
Add PRJ_PACKAGE_TCLNAME and other minor changes.
...
Also:
Change ifdef checks to check for empty string instead.
Quote include paths.
2017-11-17 06:52:48 +00:00
hypnotoad
3c532f6336
Rebuilt the configure files without the call to the missing SC_ENABLE_ZIPFS macro
2017-11-17 04:47:16 +00:00
tne
ded3368d3c
Final tweaks to get Msys Zipfs build working
2017-11-17 04:45:07 +00:00
hypnotoad
e84763748b
First pass on the Msys style windows build. Moving Zipfs features closer together in the autoconf
2017-11-17 04:13:48 +00:00
hypnotoad
8079a467a7
Pulling changes from core-8-6-branch
2017-11-17 03:10:54 +00:00
hypnotoad
be47788793
Moved Zipfs initialization and path hinting out of tclInterp.c and into
...
a preinit script populated by TclZipfs_AppHook
2017-11-17 03:09:26 +00:00
jan.nijtmans
5ff5853a6e
merge core-8-6-branch
2017-11-16 08:45:54 +00:00
jan.nijtmans
24d7fa6401
No longer document (even though it's only in an example) that Tcl_SavedResult is a struct, and that the internal representation of an int is stored in the object's internalRep.longValue member. That might no longer be true in the future.
2017-11-16 08:42:32 +00:00
jan.nijtmans
65007a4d02
No longer document (even though it's only in an example) that Tcl_SavedResult is a struct, and that the internal representation of an int is stored in the object's internalRep.longValue member. That might no longer be true in the future.
2017-11-16 08:39:41 +00:00
jan.nijtmans
4eed307023
merge core-8-branch. Also fix some test-cases, expecting the existence of "int" objType.
2017-11-15 15:00:25 +00:00
jan.nijtmans
0dd94666f5
Merge dgp's "end-int-registration" branch, but slightly different: In stead of not registering "int", continue to register it as being "wideInt" for Tcl 8.x. This should assure maximum compatibility with Tcl 8.6-based extensions.
...
In addition, revert some boolean-related changes (keep the longValue usage here in stead of wideValue). And stop registering oldBoolean starting with Tcl 9.
2017-11-15 14:13:09 +00:00
dgp
8a227678b2
merge 8.7
2017-11-15 13:39:12 +00:00
apnadkarni
c4d4363abd
Loosen restriction on where rules-ext.vc file is located.
2017-11-15 13:18:00 +00:00
apnadkarni
0197a30845
Include PKGNAMEFLAGS in stubscflags as some extension stubs use it
2017-11-15 11:47:16 +00:00
jan.nijtmans
346cce5745
Remove compat/float.h and related machinery. The last system known where this was needed was SunOS-4, which is not supported by Tcl any more for a long ... long time ....
...
Also, fix a typo in generic/tclInt.h and remove some end-of-line spacing.
2017-11-15 09:42:07 +00:00
jan.nijtmans
e3439b6af2
Change signature of (internal) TclScanElement() function. This saves memory allocation and the possibility for panic's in dict and list handling, requiring 1/4 of memory for internal allocation of temporary storage. No change to external API.
2017-11-15 08:55:18 +00:00
jan.nijtmans
59ebc49f0f
Change signature of (internal) TclScanElement() function. This saves memory allocation and the possibility for panic's in dict and list handling, requiring 1/4 of memory for internal allocation of temporary storage. No change to external API.
2017-11-15 08:54:13 +00:00
apnadkarni
ca86fd3219
Added default-install-stubs target.
...
Make presence of nmake support files in extension directory optional
(except for rules-ext.vc). This requires them to only build against
a Tcl with the new nmake build system.
2017-11-15 07:54:08 +00:00
dgp
c7c8527ce3
merge 8.7
2017-11-14 18:52:42 +00:00
dgp
1ed5a135ed
TIP 484 proposes a re-implementation of Tcl's "int" Tcl_ObjType.
...
Since the new implementation is not consistent with the former one, any
callers of Tcl_GetObjType("int") who are expecting the return value to
point them at something playing by the former rules are at risk of having
their code broken. In this branch I remove the registation of Tcl's
"int" type, so such callers will get NULL (which they should already be
able to handle) instead of something misleading them into breakage.
Examine this branch and decide if it should be incorporated into TIP 484.
2017-11-14 18:35:22 +00:00
dgp
f6a35fe784
merge 8.7
2017-11-14 18:19:05 +00:00
dgp
9f65735813
Repair lost of broken [package prefer] testing.
2017-11-14 17:09:49 +00:00
dgp
2ea108ae28
[5d6de65036] [package require] with [package prefer stable] was not choosing available stable package.
2017-11-14 14:48:21 +00:00
dgp
d7b5cde35f
[5d6de65036] [package require] with [package prefer stable] was not choosing available stable package.
2017-11-14 14:17:57 +00:00
dgp
ba9e81068e
[5d6de65036] [package require] with [package prefer stable] was not choosing
...
available stable package.
2017-11-14 13:36:59 +00:00
aku
a7b6d60948
Ticket [5d65e65036]. My fix. Do not skip the second check for stable versions even when the main check fails. Avoided radical changes to the structure (kept single search loop, with selection after).
2017-11-13 18:58:16 +00:00
jan.nijtmans
eb2a9484b8
Merge core-8-6-branch
2017-11-13 11:15:44 +00:00
jan.nijtmans
a92e1c508f
No longer mark Tcl_EvalFile() as obsolete, since it will continue to be supported in Tcl 9.0
2017-11-13 10:51:39 +00:00
jan.nijtmans
0fc6533fcb
No longer mark Tcl_EvalFile() as obsolete, since it will continue to be supported in Tcl 9.0
2017-11-13 10:49:25 +00:00
jan.nijtmans
01fd6594cf
Add a lot of "deprecation" marks to internal API which will be removed in Tcl 9.0 (see also tcl-9-cleanup branch). Extensions still using this API will get a compiler warning, but everything will continue to work fine for all future 8.x releases.
2017-11-13 08:37:55 +00:00
hypnotoad
62fbfd89d7
Pulling changes from core-8-branch
2017-11-11 13:22:35 +00:00
hypnotoad
932afb0105
Improvements to tip430 to embed the /library file system within a shared library
...
or as a zip archive with a canonical name matching the current patch level
This new version also builds a native executable version of minizip to
allow archive to be built within make, even when cross compiling
Added a new function TclZipfs_AppHook which implements tip430 core
behavior startups to stock tclsh
Embedding the file system as a zip archive can be defeated with --enable-zipfs=no
2017-11-11 09:18:09 +00:00
jan.nijtmans
752cfbe04c
merge core-8-6-branch
2017-11-10 08:49:54 +00:00
jan.nijtmans
1ffeaf24ef
Make "string split" and "string is (alpha|graph|...)" work as expected with Unicode chars > U+ffff, when Tcl is compiled with TCL_UTF_MAX == 4. No effect when TCL_UTF_MAX == 3 or TCL_UTF_MAX == 6.
...
Test-case added for "string split".
2017-11-10 08:40:45 +00:00
jan.nijtmans
dfbe0053d1
merge core-8-branch
2017-11-09 16:07:06 +00:00
jan.nijtmans
b7e5592df1
Merge core-8-branch. Backout the Tcl_EvalFile changes.
2017-11-09 15:56:04 +00:00
jan.nijtmans
944a3d95ff
Rebase back to 8.7 (core-8-branch), since that's what the TIP is meant for. (I see no reason to wait for 9.0)
2017-11-09 14:59:36 +00:00
dgp
29dda71bad
merge trunk
2017-11-09 14:44:57 +00:00
dgp
1462dc4b66
merge 8.7
2017-11-09 13:36:52 +00:00
jan.nijtmans
0faadee83c
merge core-8-branch
2017-11-09 12:51:26 +00:00
jan.nijtmans
78374f18a4
merge core-8-6-branch
2017-11-09 12:50:43 +00:00
jan.nijtmans
729fcd5f09
Make "scan %c" and the internal function ExtendUnicodeRepWithString() work as expected for TCL_UTF_MAX == 4 when handling characters > U+ffff. No effect when TCL_UTF_MAX == 3 or TCL_UTF_MAX == 6
2017-11-09 12:48:54 +00:00
jan.nijtmans
c59b3f3bc1
For alpha/beta versions of Tcl, stub-enabled extensions are only allowed to run on the EXACT the same Tcl versions as compiled: The stubs might still be in flux, they are not guaranteed to work on future Tcl versions anyway.
...
Backported from "novem" (which already had this special protection). For final releases (8.7.0) everything works as before.
2017-11-09 12:37:20 +00:00
jan.nijtmans
a037934e21
Get rid of Tcl_DStringTrunc et al, as described in the TIP (Thanks, Don!).
2017-11-09 11:49:10 +00:00
jan.nijtmans
56e7df256a
No longer mark Tcl_EvalFile() as obsolete/deprecated. Thanks to all feedback to TIP #485 !
2017-11-09 11:04:49 +00:00
jan.nijtmans
429acda3ee
Put Tcl_EvalFile back, but then as a macro in terms of Tcl_FSEvalFileEx().
2017-11-09 10:34:10 +00:00
jan.nijtmans
cf4d5a8cfe
TIP #485 implementation: "Remove Deprecated API". Based on Tcl 8.7 (core-8-branch).
2017-11-08 11:50:55 +00:00
hypnotoad
b2722c42b1
Pairing down the tip#430 branch to only include files and utilities
...
called out by the tip. Eliminated the header files tclZipfs.h and
zcrypt.h. The only public calls for tclZipfs.h are now in the stubs
table and the contents of zcrypt.h are already part of the minizip
implementation that Tcl keeps around in the compat/zlib/contrib/minizip
directory. tclBootVFS.h hasn't been used by the implementation in a while.
Alos eliminated the mkzip.tcl facility from tools/. The C based mkzip is
much faster and more reliable
2017-11-08 09:41:00 +00:00
jan.nijtmans
ed20823380
merge core-8-branch
2017-11-08 09:38:15 +00:00
jan.nijtmans
12d3a7d307
Change "epoch" field for dicts from "int" to "unsigned int". This doubles the number of available epoch's before overflow. Also make 0 the special value in stead of -1, meaning "dict search done". That also means that epoch counting starts with 1.
2017-11-08 09:37:31 +00:00
dgp
0a2f847ac9
merge 8.7
2017-11-08 03:32:07 +00:00
dgp
e82d7fb753
compiler warning
2017-11-08 03:02:22 +00:00
dgp
5188d1d927
compiler warning
2017-11-08 02:57:58 +00:00
dgp
b8bf04f5ec
compiler warning
2017-11-08 02:53:57 +00:00
dgp
f31af075d0
compiler warning
2017-11-08 02:50:28 +00:00
dgp
3b989eefe0
merge 8.7
2017-11-08 02:48:47 +00:00
dgp
a2d6ec1119
merge 8.6
2017-11-08 02:26:07 +00:00
dgp
2ba5fab30e
Modify TclCreateProc to handle arbitrary argument names, not just ASCII.
2017-11-08 02:25:40 +00:00
dgp
f74bde3e62
[3298012] Stop RebuildTable asking ckalloc for more than it can give.
2017-11-08 02:23:46 +00:00
dgp
98c6b22c10
TclOO object allocation: Set classPtr to NULL if it wasn't otherwise set.
2017-11-08 02:21:49 +00:00
dgp
be0c5786a0
[3298012] Stop RebuildTable asking ckalloc for more than it can give.
2017-11-08 02:18:25 +00:00
pooryorick
a982dd11fa
Modify TclCreateProc to handle arbitrary argument names, not just ASCII.
2017-11-08 00:39:17 +00:00
dgp
fd61a8e89e
Attempted bug fix.
2017-11-07 21:32:04 +00:00
pooryorick
2c1224dce7
TclOO object allocation: Set classPtr to NULL if it wasn't otherwise set.
2017-11-07 20:54:02 +00:00
hypnotoad
c2dfae0758
Removing kit building facilities. They aren't part of the tip430 spec
2017-11-07 19:51:53 +00:00
hypnotoad
23440fcbd7
Removing patches for Androwish that are not needed for tip430
2017-11-07 19:26:21 +00:00
hypnotoad
399ff79e21
Adding a [file normalize] to zipfs tests that are looking for absolute filenames.
...
On Linux symlinks can cause a discrepency in what the tests think they are looking for.
2017-11-07 19:13:34 +00:00
hypnotoad
338e92cb28
Updated the zipfs portion of the testsuite to tip430 standards
2017-11-07 18:45:24 +00:00
apnadkarni
c7530621ad
Fix inclusion of custom resource files to match TIP spec
2017-11-07 16:47:35 +00:00
tne
433dff0c14
Pulling changes from core-8-branch
2017-11-07 16:46:38 +00:00
jan.nijtmans
a7ba08158b
merge 8.7
2017-11-07 16:31:17 +00:00
jan.nijtmans
42764c99be
More code simplifications, with still equal functionality.
2017-11-07 16:16:52 +00:00
dgp
2ad54a6f6e
merge 8.7
2017-11-07 15:11:43 +00:00
dgp
f941597e43
merge 8.7
2017-11-07 14:28:03 +00:00
jan.nijtmans
c1e89d73fd
merge core-8-branch
2017-11-07 13:30:08 +00:00
jan.nijtmans
d0665d7a12
merge core-8-6-branch
2017-11-07 13:29:28 +00:00
jan.nijtmans
ac4fb39a73
Don't use Unicode character \udead in test-cases, because it is an invalid Unicode code-point (lower surrogate). This will cause test-failures with TIP #389 . Just use \ud0ad in stead. Also fix some other test-cases which fail for TCL_UTF_MAX == 4.
2017-11-07 13:19:37 +00:00
jan.nijtmans
48b529209c
Somewhat simplified implementation of TIP #389 , in which the "string length" if characters > U+FFFF is considered to be 2, not 1.
2017-11-07 12:15:30 +00:00
jan.nijtmans
45808db8dc
TIP #422 implementation, Tcl 8.7 part.
2017-11-07 09:08:48 +00:00
jan.nijtmans
47b333303e
merge-mark
2017-11-06 15:04:23 +00:00
jan.nijtmans
27e8f4db3d
More tcl8 -> tcl9 renumbering, for example related to the installation of Tcl packages where tcl9 actually can find them.
2017-11-06 14:50:08 +00:00
jan.nijtmans
c06751fdf8
Fix version number of Windows Help file (not sure if it's actually used, but better safe than sorry)
2017-11-06 14:46:49 +00:00
pooryorick
9b30058284
Rewrite documentation in comments for brevity and clarity.
2017-11-06 01:33:57 +00:00
dgp
cc64de63b9
merge 8.7
2017-11-06 00:17:03 +00:00
dgp
22719c6596
Test case for Bug 5d65e65036.
2017-11-06 00:10:21 +00:00
f.bonnet
6fff25ecbc
Fixed stupid Tcl_DecrRefCount bug in TclCleanupChildren with normally terminated processes.
2017-11-05 16:41:11 +00:00
jan.nijtmans
cf516b0eb8
merge core-8-branch
2017-11-05 14:35:43 +00:00
jan.nijtmans
8c4d8a4f14
Merge core-8-branch. More 8.7 -> 9.0 changes as appropriate
2017-11-05 14:21:21 +00:00
jan.nijtmans
ded2a79966
update .project file with branch name. Make clear that optparse doesnt work with 8.4 any more
2017-11-05 14:14:23 +00:00
dkf
d52223f024
[0d902eadd6] Ensure that [string first] handles ASCII in Unicode correctly.
2017-11-04 00:45:27 +00:00
dkf
4030616bbf
[0d902eadd6] Ensure that [string first] handles ASCII in Unicode correctly.
2017-11-04 00:44:14 +00:00
dkf
b55d5cc57e
Fix for the weird [string first] behaviour.
2017-11-04 00:34:48 +00:00
dkf
e4356f7d64
Detected bug in [string first] with unicode. Pat Thoyts found it.
2017-11-04 00:25:43 +00:00
dgp
0708073b35
merge 8.7
2017-11-03 19:15:00 +00:00
dgp
88451d16ba
TIPs 330 & 336 changes to Tcl 9 Implementation
2017-11-03 18:56:33 +00:00
dgp
3691ae66b6
TIP 278 Implementation
2017-11-03 18:44:39 +00:00
dgp
203cbf2ea0
TIP 114 Implementation
2017-11-03 18:39:47 +00:00
dgp
b6c2770a30
Merge package tolerances of Tcl 9.
2017-11-03 17:12:47 +00:00
dgp
1a0c2e24eb
Bump to 9.0a0
2017-11-03 17:11:13 +00:00
dgp
0480b5d79b
Revise a few stray packages not yet ready to tolerate a Tcl 9 bump.
2017-11-03 17:02:49 +00:00
dgp
10a9305777
TIP 345 Implementation.
2017-11-03 16:48:44 +00:00
jan.nijtmans
d8596e5583
merge core-8-6-branch
2017-11-03 12:59:07 +00:00
jan.nijtmans
5528e1c1a2
Fix [6f2f83cc149e9918884faffefebc8dfa695f4ea0|6f2f83cc14]: tclWinload.c robustness. And fix a minor possible memory leak in TclSetupEnv() as well. Thanks to Christian Werner for both suggestions, backported from Androwish.
2017-11-03 12:57:15 +00:00
jan.nijtmans
735d38cd7c
merge trunk
2017-11-03 12:24:06 +00:00
jan.nijtmans
785f1059e4
merge core-8-6-branch
2017-11-03 12:15:08 +00:00
jan.nijtmans
274ab123a8
Better versions of TclGetIntFromObj and TclGetIntForIndexM macro's, which give advantage for platforms where longs are not ints (e.g. linux64)
2017-11-03 12:14:01 +00:00
pooryorick
d33ee7bc07
Unit test for issue 3c32a3f8bd, Segmentation fault in
...
TclOO.c/ReleaseClassContents() for a class mixed into one of its instances.
2017-11-01 22:21:50 +00:00
pooryorick
8bb421f959
Fix bug 3c32a3f8bd, segmentation fault in TclOO.c/ReleaseClassContents()
...
for a class mixed into one of its instances.
2017-11-01 21:05:32 +00:00
jan.nijtmans
9e2ed8b729
Finally, get rid of tclWideIntType completely
2017-11-01 12:35:40 +00:00
jan.nijtmans
adc216698f
Eliminate most usage of TCL_NUMBER_LONG, just use TCL_NUMBER_WIDE in stead (since both have the same internal representation now)
2017-10-31 16:40:57 +00:00
jan.nijtmans
1cbd95eeee
eliminate most use of (long) type, except for increments
2017-10-31 16:16:46 +00:00
jan.nijtmans
db930a501f
Only use 64-bit tables for all platforms
2017-10-31 14:48:28 +00:00
jan.nijtmans
2f2459e120
more progress
2017-10-31 14:40:33 +00:00
jan.nijtmans
8fd76cb873
more simplifications
2017-10-31 12:39:16 +00:00
jan.nijtmans
c8fbbd8f3e
Fix 2 failing test-cases, broken by some earlier commit
2017-10-31 11:37:29 +00:00
jan.nijtmans
b0a9f6c55b
Simplify implementation of Tcl_SaveResult/Tcl_RestoreResult/Tcl_DiscardResult by no longer assuming that Tcl_SavedResult is a struct. Backported from "novem" branch.
2017-10-31 09:48:57 +00:00
jan.nijtmans
b8b341fea6
Fix some pointer arthemeric (only visible on big-endian systems)
2017-10-30 16:46:49 +00:00
dgp
9a322ef016
tidy?
2017-10-30 15:35:58 +00:00
dgp
312263821f
tidy
2017-10-30 15:25:36 +00:00
dgp
9e80ee005e
tidying
2017-10-30 15:15:06 +00:00
dgp
3aa68b1a0b
Patch to make changes to Tcl 9 prescribed by TIPs 330 and 336.
...
This makes the Tcl_Interp struct fully opaque.
No interp->result or interp->errorline
2017-10-30 14:56:57 +00:00
jan.nijtmans
ca470c3d4e
more progress in code simplifications
2017-10-30 14:32:52 +00:00
dgp
6642181b9d
Rebase tip-278 branch to workaround CVS conversion woes.
2017-10-30 12:41:21 +00:00
dgp
f88eecc172
merge trunk
2017-10-30 12:03:14 +00:00
dgp
2ff3ecb534
merge trunk
2017-10-30 12:02:48 +00:00
dgp
a67fec7324
merge trunk
2017-10-30 12:02:28 +00:00
jan.nijtmans
aad24c7ffc
Change (internal) TclFormatInt() signature, so it can handle WideInt's directly. Ongoing simplifications ...
2017-10-30 11:01:28 +00:00
jan.nijtmans
fe508fa3b5
Experimental branch meant to eliminate the "wideint" type, just merge it to a single "int" type. No effect on linux64 and similar systems, code simplification for Win64 and 32-bit system. No TIP yet, implementation ongoing.
2017-10-30 08:47:33 +00:00
pooryorick
e0578530b0
merge bug-fc1409fc91.
2017-10-30 05:25:19 +00:00
pooryorick
a79bc3c8ce
Fix for issue 9fd5c629c1, TclOO - aborts when a trace on command deletion
...
deletes the object's namespace.
2017-10-30 05:19:55 +00:00
dgp
f92a2c43b3
merge trunk
2017-10-30 03:35:23 +00:00
dgp
30c40c4540
merge 8.6
2017-10-30 03:23:59 +00:00
dgp
c5865fcd24
More test rewrites for robust var resolution.
2017-10-30 03:23:28 +00:00
dgp
c8342af338
merge 8.6
2017-10-30 03:01:46 +00:00
dgp
1d0751deb7
Revise tests that relied on deprecated variable resolution rules.
2017-10-30 02:55:30 +00:00
apnadkarni
2318b70929
Minor edits
2017-10-28 17:18:58 +00:00
dgp
42ed459018
merge trunk
2017-10-27 13:12:21 +00:00
dgp
bed6e18d15
merge trunk
2017-10-27 13:12:09 +00:00
dgp
fcc5b3486f
merge trunk
2017-10-27 13:07:10 +00:00
dgp
c668ed46ec
oops
2017-10-27 12:57:45 +00:00
dgp
0a3f9ca6fc
oops
2017-10-27 12:57:15 +00:00
dgp
261012ce98
Update tests that were still written on the outdated premise that Tcl's encoding subsystem had to initialize starting in the identity encoding.
2017-10-27 12:51:14 +00:00
dgp
2f8bbbe141
Update tests that were still written on the outdated premise that Tcl's encoding subsystem had to initialize starting in the identity encoding.
2017-10-27 12:50:38 +00:00
dgp
4ab9cb5418
Update tests that were still written on the outdated premise that Tcl's
...
encoding subsystem had to initialize starting in the identity encoding.
2017-10-27 12:23:28 +00:00
dgp
3888c4fda4
merge mark
2017-10-27 12:04:53 +00:00
jan.nijtmans
67e505d2ab
First implementation of [ http://core.tcl.tk/tips/doc/trunk/tip/481.md |TIP #481 ]: Extend size range of various Tcl_Get*() functions
2017-10-27 08:45:13 +00:00
jan.nijtmans
fa2e7e8949
Fix timeout calculation in epoll-based notifier. Proposed fix for [1a6a36d901dedead248ea96df09d5dc159532652|1a6a36d901]. Patch by Lucio Andrés Illanes Albornoz. Thanks!
2017-10-27 07:26:15 +00:00
apnadkarni
c324bb3eff
Reworked build command macros (MAKEBINCMD, CCPKGCMD etc.) and purged old comments.
2017-10-26 15:07:16 +00:00
dgp
053a74e0fa
Create new testing command [teststringbytes] to probe the things that
...
otherwise require [encoding convertto identity]. adapt encoding-15.3 to use.
2017-10-26 02:08:27 +00:00
fvogel
d8cae66217
Fix typo in set-old.test
2017-10-25 17:31:09 +00:00
apnadkarni
ff1c348970
Updated comments.
2017-10-25 02:59:46 +00:00
dgp
30c6827ee1
Convert remaining tests to use [testbytestring].
...
encoding-15.3 still needs replacement for [encoding convertto identity].
That is, some testing command to expose objPtr->bytes.
2017-10-25 02:54:24 +00:00
dgp
eb2cfa3e6f
Repair Tcl_CreateEncoding(); Modernize [testencoding];
...
Update most tests toying with identity encoding.
2017-10-25 02:23:12 +00:00
dgp
40d9b81e23
Stop using "identity" as an encoding to test basic functionng of the
...
[encoding] command. "iso8859-1" is another one always available.
2017-10-24 23:30:35 +00:00
dgp
1552384787
Extend Tcl_CreateEncoding() to be able to create an encoding without
...
registering it when it has no name. Then use this to create "identity"
encoding without naming it "identity". Then no one can look it up by that name.
2017-10-24 23:16:23 +00:00
fvogel
40ce2eccbc
'array for' implementation (TIP #421 ) from Brad Lanam
2017-10-24 21:24:07 +00:00
dkf
9306fa604c
Cherrypick: [fc1409fc91] Method cloning needs to be careful with body representations.
2017-10-24 14:11:16 +00:00
jan.nijtmans
16976013d1
merge trunk
2017-10-24 13:59:40 +00:00
jan.nijtmans
ef7ea2c390
merge trunk
2017-10-24 13:59:13 +00:00
jan.nijtmans
d5f679a3f6
Change (internal) refCount field from TclRegexp to type size_t: this allows more references on 64-bit platforms. Remove unused macro "xxx" in regguts.h. Remove superflouous eol-space in oo.test.
2017-10-24 13:56:26 +00:00
Kevin B Kenny
e532a0de84
Historical change affecting tests: Detroit did not observe Daylight Saving Time in 1967
2017-10-24 13:32:54 +00:00
Kevin B Kenny
745b43f627
Historical change affecting tests: Detroit did not observe Daylight Saving Time in 1967
2017-10-24 13:30:41 +00:00
Kevin B Kenny
f18d453679
Historical change affecting tests: Detroit did not observe Daylight Saving Time in 1967
2017-10-24 13:24:25 +00:00
Kevin B Kenny
2332ac45ca
Update to tzdata2017c
2017-10-24 13:18:51 +00:00
dkf
634213a9c8
[fc1409fc91] Method cloning needs to be careful with body representations.
2017-10-24 11:25:29 +00:00
dkf
8e537759cf
Added test case.
2017-10-24 11:23:54 +00:00
pooryorick
fada619052
[fc1409fc91]: TclOO method with non-literal value for body argument causes segmentation fault
2017-10-24 08:38:17 +00:00
dgp
319b71965b
backout initial commit; need more care.
...
Binary writes internally make use of this encoding. Need to hide it
instead of destroy it.
2017-10-23 17:58:07 +00:00
José Ignacio Marín
47a0727695
Update TZ info to tzcode2017c.
2017-10-23 17:10:19 +00:00
dgp
45d0977a5c
Implementation branch for TIP 345: Kill the "identity" encoding.
...
This checkin, completely does that. Bad news is it causes huge failures.
We're still making a lot of use of this encoding, and cannot complete
this TIP until the branch is repaired.
2017-10-23 17:06:57 +00:00
José Ignacio Marín
4407704316
Update TZ info to tzcode2017c.
2017-10-23 16:59:20 +00:00
dgp
172896b15a
Implementation branch for TIP 114 - Eliminate Octal Parsing...
2017-10-23 16:20:18 +00:00
apnadkarni
fe8915122a
Eliminate loimpact and tclalloc options.
2017-10-23 13:53:51 +00:00
jan.nijtmans
5470f13299
tclWinPanic.c is in the \win directory, not in \generic!
2017-10-23 13:47:57 +00:00
jan.nijtmans
c0effc5b46
merge trunk
2017-10-23 13:23:08 +00:00
jan.nijtmans
e9b584f81b
merge core-8-6-branch
2017-10-23 12:10:42 +00:00
jan.nijtmans
cdb25d8946
Fix [b58e6897034fc5292c9d36ba8099d9a835c98172|b58e689703]: Return value of 'Tcl_Flush'
2017-10-23 12:09:48 +00:00
apnadkarni
7db056b75a
Fully qualify OUT_DIR and TMP_DIR paths so that the test target can
...
change directories and not break relative paths to the built extension.
2017-10-21 12:14:25 +00:00
apnadkarni
6f23316c4a
Added test and shell targets.
2017-10-20 15:32:22 +00:00
dgp
802b562cbf
merge trunk
2017-10-20 12:44:00 +00:00
dgp
336cf18ae8
Merge core-8-6-branch (execpt file win/makefile.vc)
2017-10-20 12:36:40 +00:00
dkf
56d6e9480f
[1a56550e96] Ensure that method list introspection finds methods from mixins in all cases.
2017-10-19 09:30:16 +00:00
dkf
df974e71f9
Oops; put the code in the wrong place. Mixins have priority when deciding method visibility.
2017-10-19 09:28:16 +00:00
dkf
7393032d5e
[1a56550e96] Ensure that method list introspection finds methods from mixins in all cases.
2017-10-19 09:24:12 +00:00
dkf
252f75d8c8
Ensure that method list introspection finds methods from mixins in all cases. Use better approach for preventing excessive iteration.
2017-10-19 09:22:05 +00:00
dkf
69030a86c8
[1a56550e96] Mixins aren't being searched correctly by [info class methods -all]
2017-10-18 18:23:38 +00:00
apnadkarni
fa7141288f
Update RCFILE to PRJ_RCFILE.
2017-10-18 16:04:13 +00:00
apnadkarni
63a9fcf2e7
Fix resource file compilation when makefile specifies PRJ_RCFILE
2017-10-18 16:03:08 +00:00
apnadkarni
b6f90aaf1f
Add PRJ_MANIFEST to support manifest generation.
2017-10-17 15:01:56 +00:00
hypnotoad
fc947a1ad4
Pulling changes from trunk
2017-10-16 20:35:30 +00:00
apnadkarni
4ef03a8950
Fixed reversed check for implicit rules
2017-10-16 12:46:53 +00:00
jan.nijtmans
ef82c5073a
merge trunk
2017-10-16 12:05:17 +00:00
jan.nijtmans
237b4d22a2
Add support for 'L' length modifier (either long double or mp_int) and 'a'/'A' modifiers (floating point in hex notation)
2017-10-16 11:55:57 +00:00
apnadkarni
823edbf0ab
Permit application makefile to define RCFILE.
...
Change PROJECT_REQUIRES_TK to use value instead of ifdef.
Change MAKERESCMD macro not to specify included input files.
2017-10-15 06:58:20 +00:00
jan.nijtmans
a72fed191e
fix unixFCmd test-cases, as result of the octal behavior change
2017-10-14 22:52:26 +00:00
dgp
5e8c17ac4e
merge trunk
2017-10-13 16:38:01 +00:00
dgp
8a910c1a53
Plug some memleaks.
2017-10-13 16:15:52 +00:00
jan.nijtmans
5015dd8a1f
Fix missing line (after manual merge-conflict). Fix compiler warning on linux64.
2017-10-13 14:46:26 +00:00
jan.nijtmans
5abbd5b2da
Merge trunk. And merge jn-0d-radix-prefix branch in too (too small to be considered separately)
2017-10-13 14:07:47 +00:00
jan.nijtmans
e7582d10c6
Eliminate variable which is only used once. And a minor end-of-line space reduction. No functional change.
2017-10-12 15:20:42 +00:00
dgp
22ef6f7e0d
merge trunk
2017-10-12 12:37:39 +00:00
jan.nijtmans
5064777d16
merge core-8-6-branch
2017-10-09 14:27:31 +00:00
jan.nijtmans
5b74714749
In nmakehlp -v, return non-0 exit code if version is not found. (taken from vc-reform branch)
2017-10-09 14:25:24 +00:00
jan.nijtmans
15a7950c9e
In nmakehlp -v, return non-0 exit code if version is not found. (taken from vc-reform branch)
2017-10-09 14:23:39 +00:00
jan.nijtmans
c925a86988
Merge core-8-6-branch
2017-10-09 12:54:39 +00:00
jan.nijtmans
75ecb090c6
Add visual-studio related entries to ignore-glob. Taken over from reform-vc branch
2017-10-09 12:53:46 +00:00
jan.nijtmans
b8e5e2909e
Add visual-studio related entries to ignore-glob. Taken over from reform-vc branch
2017-10-09 12:52:14 +00:00
apnadkarni
0c646bc3d1
Fix RC template dependency to not generate it every time
2017-10-08 16:12:23 +00:00
apnadkarni
f4e4349cad
Fix htmlhelp generation on 64-bit systems
2017-10-08 14:25:19 +00:00
apnadkarni
9845cc7c9c
Add default rc template so extensions do not have to write their own
2017-10-08 13:18:15 +00:00
apnadkarni
fdc29e53d3
Was not setting VERSION for extensions.
2017-10-07 17:16:20 +00:00
apnadkarni
a0f84e1b73
Fix ignore glob for Visual C++ output directories.
2017-10-07 13:33:13 +00:00
apnadkarni
21379b0cf5
Move standard predefined targets to targets.vc as this allows the master
...
makefile to modify macros if required before the targets are defined.
2017-10-06 13:38:26 +00:00
apnadkarni
65895760ea
Added standard target for generating pkgIndex.tcl.
...
Added PKGNAMEFLAGS to pass PACKAGE_NAME and PACKAGE_VERSION.
2017-10-05 17:00:39 +00:00
apnadkarni
20730e0afb
Added default-pkgindex target and split DISABLE_DEFAULT_TARGETS to
...
DISABLE_{STANDARD,CLEAN}_TARGETS.
2017-10-05 14:19:50 +00:00
apnadkarni
c0295836a8
Add default-* targets
2017-10-04 01:57:51 +00:00
apnadkarni
8c50df7bbf
Extract version numbers from TEA files so do not have to be separately defined.
2017-10-03 13:44:49 +00:00
apnadkarni
ec0fc7f816
Have nmakehlp return non-0 exit code if version string not located with -V option
2017-10-03 13:41:53 +00:00
jan.nijtmans
fd6a064ee7
Merge latest 'const'ification changes from libtommath (develop branch, will be in next release). None of those are used in Tcl.
2017-10-03 09:11:05 +00:00
apnadkarni
f5c6b07246
Remove use of any macros used in rules.vc from rules-ext.vc
...
Added USE_WIDECHAR_API to control usage of Windows wide API's.
2017-10-03 08:06:30 +00:00
apnadkarni
35256f809e
Introduce rules-ext.vc file for extensions to select most recent rules.vc
2017-10-02 17:09:56 +00:00
jan.nijtmans
6881a1a274
'const'ify all libtommath functions, will appear in next libtommath version. See: pull request [ https://github.com/libtom/libtommath/pull/88 |88]
2017-10-02 15:22:27 +00:00
apnadkarni
01201582b7
Fix initialization of _TCLDIR and use MAKE*CMD macros in makefile.vc
...
Fixed initialization of _TCLDIR when it is not defined by caller when
building an extension. _INSTALLDIR is modified AFTER it is used to
initialize _TCLDIR. However, nmake expands late so we have to init
_TCLDIR relative to the *modified* _INSTALLDIR.
2017-09-30 14:11:08 +00:00
apnadkarni
24b65fbe41
Added MAKEEXTCMD macro.
...
Fixed couple of syntax errors when building extensions.
2017-09-30 08:34:31 +00:00
apnadkarni
457587f033
Added standard macros LIBDIR and DEMODIR. Also set common Tk related names and paths
2017-09-30 06:20:33 +00:00
apnadkarni
78cf383197
Permit definition of implicit rules and standard targets to be disabled
2017-09-29 14:23:17 +00:00
apnadkarni
71c784c8bc
Added implicit rule for compiling resources.
...
Added Tcl import libraries to link macro.
2017-09-29 12:41:02 +00:00
apnadkarni
e4269a7140
Updated for Tk compatibility.
...
Removed extraneous quotes in macro definitions. Macros should be quoted at
*use* time, not *definition* time.
Added _nostubs versions of pkgcflags and appcflags.
2017-09-29 06:12:04 +00:00
apnadkarni
3734937878
Add pkgcflags, appcflags and stubscflags to reflect different compilation modes.
...
Packages compile (at least) three types of objects files - the shared library
extension (e.g. tk86.dll), application programs (e.g. wish) and a static
stubs library (tkstub86.lib). Thus we need to construct three different sets
of compilation flags accordingly.
Also updated makefile header comments to reflect modern usage.
2017-09-28 12:22:41 +00:00
apnadkarni
07c1c221cb
Include rules.vc and nmakehlp.c as part of install.
...
Work toward not having to keep updating extensions with the latest version
of rules.vc and nmakehlp. Extension makefiles can instead use the
installed files instead.
Also added some basic sanity checks to rules.vc to warn if extensions are
being compiled with options incompatible with those used to build Tcl.
2017-09-26 12:22:42 +00:00
apnadkarni
246e599142
Eliminate obsolete winhelp style documentation and fix Html Help doc build
...
to work on 64-bit systems.
2017-09-25 17:35:29 +00:00
apnadkarni
f1aa04858d
Eliminated /base option on linking as not recommended with ASLR
2017-09-25 16:33:20 +00:00
hypnotoad
54bc992b81
Improvements to Tip#430 based on community input. Added a forward declaration of TclZipfs_Init. Added TclZipfs_Mount() and TclZifs_Unmount to stubs table.
2017-09-25 16:23:56 +00:00
apnadkarni
301208c889
Unify build commands with MAKE{LIB,DLL,CON,GUI}CMD macros
2017-09-25 16:23:34 +00:00
apnadkarni
b5e3779cf2
Move TCLSH and TCLSH_NATIVE macros to rules.vc
2017-09-25 13:45:34 +00:00
hypnotoad
e55f59bd83
Pull changes from Trunk
2017-09-25 13:36:58 +00:00
apnadkarni
56e2bd0be4
Added project-specific include paths and preprocessor defines.
2017-09-25 10:41:22 +00:00
apnadkarni
34cb030c7b
Move clean target to rules.vc to avoid repetition in every extension
2017-09-24 14:25:48 +00:00
apnadkarni
a91099b33b
Move installation dir macros to rules.vc
2017-09-24 12:13:29 +00:00
apnadkarni
ad9a3b8b45
Moved generic compiler and linker flags completely into rules.vc so
...
extensions do not have to repeat the verbage.
Special case Tk as a Tcl extension and add default for locating Tcl source.
Both Tcl and Tk compile with new rules.
2017-09-24 06:03:34 +00:00
apnadkarni
c7e43807bf
More refactoring. Moved defines that are Tcl-specific to makefile.vc as
...
rules.vc is common to extensions. Reworked parsing of STATS and CHECKS.
2017-09-23 07:35:32 +00:00
dgp
de970528d7
More TIP 445 conversion of the "path" Tcl_ObjType.
2017-09-22 14:11:45 +00:00
dgp
2af8b0203e
Partial conversion of the "path" Tcl_ObjType to TIP 445 contributed by
...
Cyan Ogilvie. This reworking also eliminates circular references in
the "path" values. Test suite indicates the change works. Don't know
what, if anything, was lost compared to the original Darley design.
2017-09-22 13:32:31 +00:00
apnadkarni
d8e7cf09b1
First step in complete refactoring.
...
Breaking up into logical sections with comments.
Fix floating point option selection to be the same on debug and release.
Pick up nmakehlp.c from installed Tcl if available when building extensions.
Mods to allow extensions to use the same exact rules.vc file.
2017-09-22 13:26:14 +00:00
dgp
3bd15d3a70
merge trunk
2017-09-22 13:05:36 +00:00
jan.nijtmans
b0fe49c36d
Make libtommath's "make" work in Tcl environment (for testing). Eliminate internal s_is_power_of_two(), which can better be done inline. Fix tommath.h for _MSC_VER.
2017-09-22 08:48:23 +00:00
apnadkarni
a52f0db3e4
Merged core-8-6-branch to pick up 32/64-bit DLL mismatch error message.
...
Actually already cherrypicked but redoing because that does not show
up on timeline and a full merge recommended on the chat.
2017-09-22 02:17:02 +00:00
apnadkarni
4bf8f43b3a
RFE [566a999189] - better error message for 32/64 bit mismatch on load.
2017-09-21 19:05:11 +00:00
apnadkarni
d45863129f
RFE [566a999189] - better error message for 32/64 bit mismatch on load.
2017-09-21 18:47:45 +00:00
dgp
d67fcf3f9c
merge trunk
2017-09-20 16:17:32 +00:00
apnadkarni
4f406d752d
First cut at making application-independent compile and link flags
...
common to all extensions defined in a single place - rules.vc -
instead of having each extension cut and paste the same code.
2017-09-20 12:58:59 +00:00
jan.nijtmans
1b28405773
Move fast return from s_is_power_of_two() to mp_div_d(). This saves a function call in the common case where b is not a power of 2.
2017-09-20 09:21:54 +00:00
jan.nijtmans
65703d1f87
Further astyle formatting of libtommath. No functional changes.
2017-09-20 09:07:35 +00:00
apnadkarni
6d85564696
Disable pointer<->int warnings related to cast between different sizes
...
There are a gadzillion of these due to use of ClientData and clutter up compiler
output increasing chance of a real warning getting lost. So disable them.
Eventually some day, Tcl will be 64-bit clean.
2017-09-19 16:43:19 +00:00
apnadkarni
071f38c482
Eliminated some obsolete checks (Win98, IA64 etc.) to reduce the noise.
2017-09-19 16:07:14 +00:00
apnadkarni
b81c66b4c7
Do not permit nothreads in OPTS as sockets, registry and dde require threading.
2017-09-19 15:12:52 +00:00
apnadkarni
0e5d15e072
Fix mapping of VCVERSION to VCVER. The simplistic calculation no longer
...
holds for new versions of the compiler. Instead directly use the internal
compiler version for these.
2017-09-19 12:50:25 +00:00
apnadkarni
78a20a11b2
Remove /Gs which enables _chkstk on *every* function call. The normal default
...
behaviour (without the option) checks only local variable space exceeds
page size. This is what Microsoft recommends.
Also moved -O2 to rules.vc file so as to keep all optimization flags
in one location.
Removed optimizations switches subsumed by -O2.
2017-09-19 12:10:25 +00:00
apnadkarni
54431f3360
Create new branch named "vc-reform"
2017-09-19 10:49:37 +00:00
jan.nijtmans
943b46881e
Merge trunk
2017-09-18 15:13:40 +00:00
dgp
a65e5f86de
merge trunk
2017-09-18 14:57:21 +00:00
jan.nijtmans
f75f76c9d4
Finish libtommath's constification work. All done (hopefully). And make sure that C preprocessor directives have the '#' as first character on the line.
2017-09-18 14:38:26 +00:00
jan.nijtmans
f5ea63343e
Another round of libtommath const'ification. To be submitted to the libtommath folks
2017-09-18 12:53:48 +00:00
dgp
8b268fb161
merge trunk
2017-09-18 11:59:56 +00:00
jan.nijtmans
a708ae2da2
Merge libtommath upstream changes (astyle formatting only). No functional changes. All Tcl-specific modifications are kept.
2017-09-18 08:31:55 +00:00
jan.nijtmans
d4e73bcab5
re-format everything through astyle. Taken from libtom/libtommath (pull request [ https://github.com/libtom/libtommath/pull/85 |85])
2017-09-15 14:44:00 +00:00
jan.nijtmans
8f339500a2
'const'ify more libtommath functions. All functions in generic/tclTomMath.decls (used by Tcl) are done now.
2017-09-15 13:08:31 +00:00
dgp
415a0e9de3
merge trunk
2017-09-14 14:12:26 +00:00
dgp
bf01a303da
Move new declarations to more conventional place for tidier merging.
2017-09-14 14:02:12 +00:00
jan.nijtmans
99d940211c
Remove some unnecessary #if 0 sections. Fix comments and panic messages. No functional changes.
2017-09-14 08:05:32 +00:00
jan.nijtmans
7b8b406719
Fix [f5da3d30e096a1c3486fbc480a6ece01fcb277a6|f5da3d30e0]: clerical error in comments
2017-09-14 07:42:38 +00:00
jan.nijtmans
db3273f346
Fix [f5da3d30e096a1c3486fbc480a6ece01fcb277a6|f5da3d30e0]: clerical error in comments
2017-09-14 07:41:09 +00:00
jan.nijtmans
c659b044b1
Make mp_get_long and mp_set_long available to tommath-enabled Tcl extensions. Deprecate the internal TclBNInitBignumFrom* functions, in favor of the official tommath functions with the same purpose.
2017-09-13 10:14:31 +00:00
dgp
41765c8938
Rework [lset] internals to be sure outdated intreps get purged.
2017-09-12 17:01:55 +00:00
dgp
de6b083f58
Make sure ListObjReplace invalidates outdated intreps.
2017-09-12 15:44:00 +00:00
dgp
ed8604f566
Make sure ListObjAppendElement invalidates outdated intreps.
2017-09-12 15:18:46 +00:00
dgp
bbcc51539b
Revised dict value means we much invalidate existing intreps.
2017-09-12 13:23:40 +00:00
dgp
b1dc2099c7
When we invalidate the string rep of a dict, that's a sign we need to
...
free all the intreps of that dict as well.
2017-09-12 13:22:46 +00:00
dgp
89524bf484
merge trunk
2017-09-11 12:02:49 +00:00
jan.nijtmans
3e55dbb18c
Many 'const' addtions in libtommath where it makes sense. To be submitted back to the libtommath guys.
2017-09-11 10:38:07 +00:00
jan.nijtmans
b2446d8d41
Add some more functions from libtommath for availability within Tcl (mainly the 'long long' variants). Add more 'const' keywords there too.
2017-09-08 14:15:13 +00:00
gahr
e86e8a501d
Be consistent about how I am referred to.
2017-09-08 13:30:29 +00:00
dgp
d03a4dcc88
Bump to 8.7a2 to distinguish trunk from 8.7a1 release.
2017-09-08 13:13:15 +00:00
dgp
4ce5b276eb
merge release
2017-09-08 12:50:06 +00:00
jan.nijtmans
757012c289
Rebase to trunk
2017-09-08 12:48:35 +00:00
jan.nijtmans
15f27ca8f2
Rebase to trunk
2017-09-08 11:04:34 +00:00
dgp
877e9d6b11
merge trunk; rc1
2017-09-07 12:59:14 +00:00
jan.nijtmans
413fe66650
Fix use of "long long" (manually) in MSVC
2017-09-06 15:02:24 +00:00
hypnotoad
c55b8ed591
Pulling changes from trunk
2017-09-05 16:44:09 +00:00
hypnotoad
522456ba98
Removed the package style loader from tclAppInit. Zipfs now loads as part of the interpreter.
2017-09-05 16:33:37 +00:00
dgp
ca70072a99
update changes
2017-09-05 15:38:02 +00:00
dgp
9b5022802e
merge trunk
2017-09-05 12:41:30 +00:00
dgp
d9f2bf1d17
merge trunk
2017-09-05 12:41:10 +00:00
jan.nijtmans
c2846c0f5c
Merge core-8-6-branch to trunk, especially the 1.6.0 -> 1.6.1 renumbering from msgcat
2017-09-04 14:01:45 +00:00
jan.nijtmans
a15279ffd1
Make pkgIndex.tcl from msgcat work for Tcl 9.0 (not really necessary, but for consistancy)
2017-09-04 13:59:04 +00:00
jan.nijtmans
b74f59a5b4
merge core-8-6-branch
2017-09-04 12:38:14 +00:00
jan.nijtmans
e08c86934d
Typo's (Thanks to Gustaf Neumann), nothing functional.
2017-09-04 12:37:04 +00:00
dgp
a3dfc55957
[0e4d88b650] Allow command overwrite when deletion callback deletes namespace.
2017-09-02 22:10:59 +00:00
dgp
e3f7bc2783
[0e4d88b650] Allow command overwrite when deletion callback deletes namespace.
2017-09-02 22:03:03 +00:00
dgp
564b991088
[0e4d88b650] Allow command overwrite when deletion callback deletes namespace.
2017-09-02 21:48:05 +00:00
dgp
0ff317501d
merge 8.5
2017-09-02 21:36:57 +00:00
dgp
f42f0060be
Add test
2017-09-02 21:14:55 +00:00
dgp
3ec5b35deb
Similar fix to Tcl_CreateCommand().
2017-09-02 20:40:44 +00:00
dgp
7afc6b1c17
Tidy up.
2017-09-02 20:17:26 +00:00
dgp
ce58cdff9f
[Bug 0e4d88b650] First draft fix. Re-resolve namespace after cmd deletion.
2017-09-02 19:35:22 +00:00
jan.nijtmans
4b9e6d92be
Merge core-8-6-branch
2017-09-01 13:49:55 +00:00
jan.nijtmans
e28f1eece4
Handle Unicode surrogates correctly in Tcl_AppendFormatToObj() and BuildCharSet(). Only makes a difference for TCL_UTF_MAX=4, when surrogates are used in the format string ... highly unlikely corner-case.
2017-09-01 13:48:56 +00:00
dgp
4ce83fdb43
merge trunk
2017-09-01 01:44:09 +00:00
dgp
d6ea58f110
merge trunk
2017-09-01 00:52:27 +00:00
jan.nijtmans
ce32fdecb2
Ignore libtommath/doc directory. Add some VS-related makefiles, useful for testing
2017-08-31 15:07:57 +00:00
jan.nijtmans
105a61c09b
Merge core-8-6-branch. Remove all git tag information for libtommath, so we don't have useless file differences with every libtommath release.
2017-08-31 13:56:30 +00:00
jan.nijtmans
25b97a7df9
Adapt .fossil-settings/crlf-glob, for 5 libtommath-related files which have crlf ending
2017-08-31 13:43:17 +00:00
jan.nijtmans
432e75210f
Undo tag removal (just get libtommath directly from GitHUB), so we don't have useless file changes with every new release
2017-08-31 13:32:52 +00:00
jan.nijtmans
595e613479
(merge-mark core-8-6-branch).
...
Give state to UtfToUtfProc() and UnicodeToUtfProc() in which the last (intermediate) Tcl_UniChar can be remembered: This way those functions can produce 4-byte UTF-8 sequences built from surrogate pairs if Tcl is compiled with TCL_UTF_MAX=4. For TCL_UTF_MAX=3 and TCL_UTF_MAX=6 this has no effect.
2017-08-31 12:21:43 +00:00
oehhar
c0e413055e
http state 100 continue handling broken [2a94652ee1]
2017-08-31 09:35:52 +00:00
oehhar
11719ccf59
http state 100 continue handling broken [2a94652ee1]
2017-08-31 09:32:05 +00:00
oehhar
7c7a396fc5
http state 100 continue handling broken [2a94652ee1]
2017-08-31 06:31:05 +00:00
andy
7aafa756ac
Cherrypick string.test [de104ef5ab]
2017-08-30 15:29:16 +00:00
jan.nijtmans
6d8b0c705f
Tweak libtommath building, such that it doesn't depend on uint64_t any more. (handle mp_word in the same way as mp_digit)
2017-08-30 12:37:50 +00:00
jan.nijtmans
faaf0a0fe6
Adapt libtommath's "changes.txt", and other text-files. Adapt bn_mp_read_radix.c to latest libtommaths 'tcl-fixes' commit (harmless for Tcl).
2017-08-30 11:46:33 +00:00
jan.nijtmans
07bcf919d6
Cherry-pick [ https://github.com/libtom/libtommath/commit/a0a86c696a7182f8be4b10bb79a1c5c971dc9561 ]: Merge branch 'tcl-fixes' into develop
...
Remove many files, which are not used in Tcl.
Modify "changelog.txt", with real release-date of 1.0.1 version
2017-08-30 11:20:19 +00:00
jan.nijtmans
f70c0ac860
a few missing bits after previous commit
2017-08-29 21:27:56 +00:00
jan.nijtmans
97d25d7902
Forgot a few files from libtommath 1.0.1
2017-08-29 21:16:54 +00:00
jan.nijtmans
c3d5808cdd
upgrade to libtommath 1.0.1 (With all Tcl-specific changes - as far as needed - intact)
2017-08-29 20:45:34 +00:00
jan.nijtmans
187a67149b
Merge libtommath 1.0.1 final
2017-08-29 20:43:48 +00:00
jan.nijtmans
2d65cb7514
libtommath 1.0.1
2017-08-29 20:39:15 +00:00
jan.nijtmans
92a05930af
libtommath 1.0.1 rc2, for test purposes only
2017-08-29 20:25:53 +00:00
jan.nijtmans
1ef0babc38
Fix eol-style (fossil warning: mixed line endings)
2017-08-29 19:55:52 +00:00
jan.nijtmans
92265d56a3
libtommath 1.0.1 rc 2
2017-08-29 19:52:35 +00:00
jan.nijtmans
4264a4f6ab
merge-mark
2017-08-29 09:25:17 +00:00
jan.nijtmans
a95a7dd265
(cherry-pick): Fix [b50fb21410dababca95baa122964b2e312cb9d8a|b50fb214] : exec redirection to append stdout and stderr to the same file
2017-08-29 09:24:29 +00:00
f.bonnet
0a8718312d
Comments and formatting
2017-08-27 21:25:14 +00:00
f.bonnet
68b53cfb25
Fixed reference counting issue with objects returned by WaitProcessStatus
2017-08-27 15:25:57 +00:00
f.bonnet
935e991786
On Windows, Tcl_Pids now map to dwProcessId instead of hProcess because the system reuses handles of recently terminated processes.
2017-08-27 15:24:22 +00:00
f.bonnet
43c89a019c
Refactoring to support all processes and not just detached ones.
2017-08-27 11:05:45 +00:00
ferrieux
2e9194366a
Fix [b50fb214] : add to 2>> the same O_APPEND that was added to >> back in 2005.
2017-08-24 16:56:51 +00:00
f.bonnet
57aa77515a
Added switches and pid list support to tcl::process status
2017-08-23 19:51:02 +00:00
f.bonnet
8dd2373a08
Refactoring and preliminary implementation of tcl::process (list|status)
2017-08-23 18:31:56 +00:00
jan.nijtmans
ce72664606
merge core-8-6-branch
2017-08-22 12:41:18 +00:00
jan.nijtmans
5210283d10
Fix [d2612a2fa193196787aab33bb57f69b1eef9e30c|d2612a2fa1]: Build breaks because of gcc error. Only use "#pragma GCC diagnostic" if the compiler supports this.
...
Also re-format tclUnixSock.c without further functional changes.
2017-08-22 12:12:11 +00:00
jan.nijtmans
0eb18d8f91
merge core-8-6-branch
2017-08-18 22:06:54 +00:00
jan.nijtmans
29be40bf89
RFE [ http://core.tcl.tk/tk/info/6c0d7aec67 |6c0d7aec67]: Better surrogate handling for TCL_UTF_MAX==4. No change when TCL_UTF_MAX==3. (This commit is actually meant for androwish, in order to improve surrogate handling for TCL_UTF_MAX==4)
2017-08-18 21:39:16 +00:00
dgp
c53cfa6c6a
merge trunk
2017-08-18 13:43:51 +00:00
f.bonnet
03470df2ff
Completed [tcl::process autopurge] semantics and added [tcl::process purge] implementation along with the necessary internal functions TclpGetChildPid/TclReapPids
2017-08-18 12:49:08 +00:00
f.bonnet
5aaef06572
Added [tcl::process autopurge] flag management with TclProcessGetAutopurge/TclProcessSetAutopurge companion functions.
2017-08-18 07:51:01 +00:00
jan.nijtmans
e6336bb806
Merge core-8-6-branch. Update outdated comment (cherry-pick [d5dec2b0514639f44929cbbba9c4130798a8a54a|d5dec2b051])
2017-08-17 22:50:16 +00:00
jan.nijtmans
a04094e9a5
Adopt some harmless changes from the 'irontcl' branch. Left 2 changes behind which I'm not so sure about (but I could be convinced ...). Ticket with explanation would be appreciated!
2017-08-17 22:26:48 +00:00
jan.nijtmans
922d8a71a5
merge core-8-6-branch
2017-08-17 21:56:51 +00:00
jan.nijtmans
13d9910fd6
'#if' -> '#ifdef' in tclUnixPort.h. Suggested by Gustaf Neumann. Reduces the number of gcc warnings, when compiling Tcl with -Wundef. Harmless.
2017-08-17 21:52:42 +00:00
f.bonnet
0b8e964f45
Fixed line endings
2017-08-17 13:03:48 +00:00
f.bonnet
c86a23de04
Basic scaffolding for tcl::process
2017-08-17 13:02:27 +00:00
dgp
277f101d7f
[f2336c116b] Move pragmas to make gcc happy; it is pickier than clang.
2017-08-14 15:33:03 +00:00
Joe Mistachkin
a50a381b04
The 'clean' target should delete the generated 'nmhlp-out.txt' file as well.
2017-08-13 22:31:19 +00:00
Joe Mistachkin
e513ec3916
Always define '_USING_V110_SDK71_', in case targeting the pre-Windows 8.x SDKs.
2017-08-13 22:15:30 +00:00
Joe Mistachkin
89fcfadbbf
Support cross-compiling Tcl for 'Win32 on ARM' using Visual Studio.
2017-08-13 22:05:25 +00:00
andy
89ce4defb5
Correct longstanding typo in continue man page
2017-08-12 19:45:04 +00:00
dgp
ad9bc7297d
Add 8.7 -only changes to the changes file.
2017-08-10 19:14:15 +00:00
dgp
0079285837
Update outdated comment.
2017-08-10 17:34:31 +00:00
dgp
8ccd8d10ef
Backport [array names -regexp] should support backrefs
2017-08-10 17:03:53 +00:00
dgp
aedd652645
Bring changes up to the 8.6.7 release.
2017-08-10 14:56:23 +00:00
dgp
4056a4dc4b
Release candidate branch for Tcl 8.7a1.
2017-08-10 14:29:11 +00:00
dgp
ffaeeeddaa
merge 8.6
2017-08-10 14:17:01 +00:00
dgp
c2982f8f62
Silence compiler warning in --disable-threads build
2017-08-10 13:28:48 +00:00
dgp
587206a660
merge mark
2017-08-09 16:38:35 +00:00
dgp
545f5e64be
merge mark
2017-08-09 16:29:45 +00:00
dgp
385b618c74
merge release
2017-08-09 16:28:33 +00:00
dgp
3a07a6d26f
bump release date
2017-08-09 14:41:19 +00:00
andy
df9ea61fbf
Cherrypick [527d354828]
2017-08-08 16:45:47 +00:00
andy
5f7ca471e4
Merge core-8-6-branch
2017-08-08 16:42:24 +00:00
andy
ac8ddf5d4a
Cherrypick [527d354828]
2017-08-08 16:42:05 +00:00
andy
5381389cdd
Merge trunk
2017-08-08 16:39:51 +00:00
sebres
08d9bb4c7c
fixed overflow of year (resp. julianday), closes ticket [16e4fc3096]; test cases adjusted.
2017-08-08 15:19:18 +00:00
andy
664774bec4
[5bfe3de008]: Modify [source] to set input EOF character but not output EOF character. This avoids having ^Z being appended to the sourced file when it is an always-writable [tcl::chan::variable] in a custom VFS. Tested by adding this same change as a patch to Tcl 8.6.6 in KitCreator because that seems to be the easiest way to get custom VFS capability exposed as script commands. Original problem introduced by [03cdfc3a86] 2000-05-11 00:16:52.
2017-08-07 01:16:39 +00:00
dgp
e51352557d
merge trunk
2017-08-04 13:25:25 +00:00
dgp
3cf11a1ce9
merge 8.6
2017-08-04 13:18:37 +00:00
dgp
6da97c627b
merge 8.6
2017-08-03 14:40:48 +00:00
dgp
735ca3d3a8
Improved test http-4.16.
2017-08-03 14:39:59 +00:00
dkf
72396a1929
Fix weird hangs in macOS Sierra on some networks. Name resolution timeouts not what we want to test in the http package.
2017-08-02 23:38:20 +00:00
dgp
816674cdb7
update changes
2017-08-01 16:05:13 +00:00
dgp
159d4b2635
merge trunk
2017-07-18 13:39:34 +00:00
dgp
6bcfd54d3a
merge 8.6
2017-07-18 12:58:27 +00:00
jan.nijtmans
bb331bf1d8
merge core-8-6-branch
2017-07-17 08:04:57 +00:00
jan.nijtmans
b095f046e6
Fix [fb2208172c671f29d60e9ac928d9ded45d01d8b8|fb2208172c]: tclIndex varies across builds from auto_mkindex
2017-07-17 08:04:15 +00:00
jan.nijtmans
cee94b0658
Fix [fb2208172c671f29d60e9ac928d9ded45d01d8b8|fb2208172c]: tclIndex varies across builds from auto_mkindex
2017-07-17 08:01:11 +00:00
jan.nijtmans
f94f5914a8
merge core-8-6-branch
2017-07-14 14:48:17 +00:00
jan.nijtmans
9dd9b629b3
merge core-8-6-branch
2017-07-13 15:07:39 +00:00
jan.nijtmans
440dbbf620
Fix [293344d4f3]: Regression in SQLite test-suite. Long-standing bug in implementation of TclUtfToUniChar() macro.
2017-07-13 15:06:07 +00:00
jan.nijtmans
b1243f2603
Fix [293344d4f3]: Regression in SQLite test-suite. Long-standing bug in implementation of TclUtfToUniChar() macro.
2017-07-13 15:03:27 +00:00
dgp
b16fb594ee
merge trunk
2017-07-06 16:52:15 +00:00
dgp
f553fe3b01
merge 8.6
2017-07-06 16:47:21 +00:00
dgp
457f43e25b
merge 8.6
2017-07-06 16:40:38 +00:00
dgp
578eeb06bc
[adb198c256] Switch to an alternative fix for file join memleaks.
2017-07-06 16:34:56 +00:00
dgp
515f0f32c0
Pull out of the loop a block of code that can only run in first iteration.
2017-07-06 16:00:46 +00:00
dgp
bcb9c34521
Alternative fix for memleaks in fs path join machinery.
2017-07-06 15:46:58 +00:00
jan.nijtmans
af0816e0ca
merge core-8-6-branch
2017-07-03 12:45:44 +00:00
jan.nijtmans
ac0fdb5bf8
merge core-8-6-branch
2017-07-03 12:32:38 +00:00
sebres
2ee7180448
resolve 8.6-fork
2017-07-03 09:23:17 +00:00
sebres
5541cc57f7
tclPathObj: fixed TclJoinPath - usage of released object and object leakage.
...
closes [adb198c256df8c4192838cc3c1112fb2821314e9]
2017-07-03 09:19:41 +00:00
sebres
692ea37c40
tclPathObj: fixed TclJoinPath (backported from 8.6) - usage of released object and object leakage.
...
closes [adb198c256df8c4192838cc3c1112fb2821314e9]
2017-07-03 09:15:23 +00:00
jan.nijtmans
58dd15c51d
merge core-8-6-branch
2017-07-03 08:30:43 +00:00
jan.nijtmans
d0996f3402
'inline static' -> 'static inline' and 'INLINE' -> 'inline', for consistancy.
2017-07-03 08:27:42 +00:00
jan.nijtmans
ca0b2a012e
merge trunk
2017-06-29 13:18:33 +00:00
dgp
23c0ba0065
merge trunk
2017-06-29 11:29:05 +00:00
dgp
39356c4079
merge 8.6
2017-06-29 11:19:39 +00:00
jan.nijtmans
a646f081bc
merge core-8-6-branch
2017-06-28 13:44:23 +00:00
jan.nijtmans
89f6884455
Eliminate use of (expensive) Tcl_UtfToUpper() from "format": Just generate the expected uppercase characters right away from the start. No change in functionality, just code optimization.
2017-06-28 13:32:16 +00:00
jan.nijtmans
4401a58b2a
Implement %a and %A for floating point numbers
2017-06-28 11:02:19 +00:00
jan.nijtmans
ccabb2af0c
Merge trunk. Don't use expensive ToUpper() for hex 0X???? formatting, just generate uppercase directly.
2017-06-27 12:00:45 +00:00
jan.nijtmans
875f1b248d
Implement "format %o" as prefixing with "0o" in stead of "0" (Kevin Kenny's suggestion). Seems ready to be TIPed (just some more testing)
2017-06-27 10:13:34 +00:00
dgp
2ebce7dad7
merge trunk
2017-06-26 20:14:14 +00:00
dgp
45cf14ed03
Merge 8.6; Bump to TclOO 1.2.0.
2017-06-26 20:00:35 +00:00
dgp
5314bbe0ef
update changes
2017-06-26 19:56:37 +00:00
dgp
5b2c81a0f3
merge 8.6
2017-06-26 19:51:48 +00:00
dgp
f242dd36bd
Bump to TclOO 1.1.0
2017-06-26 19:37:34 +00:00
dgp
fb2aa596ab
merge 8.6
2017-06-26 19:22:29 +00:00
dgp
5621809b18
[46f801ea5a] Make autoloader less fragile when it cannot manufacture a
...
known consistent stack trace. Value inconsistency over failure.
2017-06-26 19:18:42 +00:00
dgp
7a8a4b15c4
Try to make good stack trace. Fallback to making not-so-good stack trace.
...
Stop failing altogether. Test in test suite, not program fragility.
2017-06-26 19:17:12 +00:00
dgp
f4615ea166
Test demonstrating autoloader fragility.
2017-06-26 17:30:15 +00:00
jan.nijtmans
b1c5e807ca
Rebase branch "jn-0d-radix-prefix" back to trunk. No new changes
2017-06-26 10:20:32 +00:00
jan.nijtmans
2bd7095b87
No longer split tests for longIs32bit/longIs64bit, since the results should be identical
2017-06-23 15:04:44 +00:00
dgp
400f9d27f5
typo fix
2017-06-23 13:11:37 +00:00
dgp
5d68b7ef56
Rewrite the documentation of [regsub -command] so it's not quite such a mess.
2017-06-23 13:09:23 +00:00
dgp
ba387de8cd
repair broken tests
2017-06-23 12:39:13 +00:00
dgp
70d12096d5
Repair compiler warning about uninitialized value.
2017-06-23 12:28:57 +00:00
jan.nijtmans
3dedad17ed
TIP #472 implementation: Add Support for 0d Radix Prefix to Integer Literals
2017-06-23 08:11:42 +00:00
dkf
a9c238476a
Add [regsub -command] case that wasn't actively tested for.
2017-06-22 22:54:32 +00:00
dkf
cfafc391f2
Implement TIP #473 : Allow a Defined Target Namespace in oo::copy
2017-06-22 22:03:06 +00:00
dkf
0fbade1cf8
Implement TIP #473 : Allow a Defined Target Namespace in oo::copy
2017-06-22 22:02:14 +00:00
dkf
dd54301fb6
Documentation correction; issue pointed out by DGP.
2017-06-22 22:00:39 +00:00
dkf
6352a07912
Rebase for final implementation work
2017-06-22 21:55:45 +00:00
dkf
440f85800c
Implement TIP #470 : Reliable Access to OO Definition Context Object
2017-06-22 21:50:08 +00:00
dkf
2a11adb848
merge trunk
2017-06-22 21:48:48 +00:00
dkf
77f95f38bf
Implement TIP #463 : Command-Driven Substitutions for regsub
2017-06-22 21:46:40 +00:00
dgp
a8960a0876
merge trunk
2017-06-22 13:45:53 +00:00
dgp
2710235273
merge trunk
2017-06-22 12:25:35 +00:00
jan.nijtmans
042e99227a
merge core-8-6-branch
2017-06-22 08:59:59 +00:00
jan.nijtmans
64c9b509b0
Upgrade all internal character tables to Unicode 10
2017-06-22 08:59:14 +00:00
jan.nijtmans
d39c33303f
Upgrade all internal character tables to Unicode 10
2017-06-22 08:58:14 +00:00
jan.nijtmans
6454bee19b
Merge core-8-6-branch
2017-06-22 08:16:41 +00:00
jan.nijtmans
45175dd264
Add test-cases, testing the legacy behavior of "format %#d"
2017-06-22 08:15:13 +00:00
dgp
9bd337033d
merge trunk
2017-06-19 17:37:33 +00:00
dgp
9983a05a80
merge 8.6
2017-06-19 17:31:17 +00:00
dkf
20b4459b9d
Factor out chunk of non-obvious code in the guts of [oo::define] into one place.
2017-06-18 18:02:34 +00:00
dkf
c488b70a47
Factor out chunk of non-obvious code in the guts of [oo::define] into one place.
2017-06-18 14:01:00 +00:00
dgp
cca5a0c27a
merge trunk
2017-06-16 20:28:53 +00:00
dgp
952acc3754
Merge 8.6; update changes.
2017-06-16 20:17:33 +00:00
dgp
73f548527a
Another reworking, now with comments.
2017-06-16 19:54:57 +00:00
dgp
3923106cf7
Simplify the final loop when we know we're generating strings for all.
2017-06-16 16:23:22 +00:00
dgp
17711009b6
Split loop into two cases for further simplification.
2017-06-16 16:07:48 +00:00
dgp
b3bda726c1
Factor out and simplify loop scanning leading known empty values.
2017-06-16 15:51:12 +00:00
dgp
e1b4ae0798
Use local variables.
2017-06-16 14:46:56 +00:00
dgp
aca86a46ff
Rework the logic. Equivalent function.
2017-06-16 14:43:16 +00:00
jan.nijtmans
94754be1d7
merge core-8-6-branch
2017-06-16 14:31:47 +00:00
dgp
9ddb31d522
Extend cases where string rep generation can be prevented.
2017-06-16 12:56:03 +00:00
dgp
6123ba004c
Better define the meaning of "first" and "last".
2017-06-16 11:47:46 +00:00
jan.nijtmans
56ea73145f
Merge core-8-6-branch.
...
Fix gcc warning: tclStrToD.c:1180:2: warning: enumeration value ‘ZERO_D’ not handled in switch [-Wswitch]
switch (acceptState) {
2017-06-15 11:01:58 +00:00
jan.nijtmans
bc4db4d40e
merge core-8-6-branch
2017-06-15 09:38:09 +00:00
jan.nijtmans
0f0ca3d932
Make panic in TclParseNumber() work when IEEE_FLOATING_POINT is not defined.
2017-06-15 09:13:51 +00:00
dkf
2cdd3134ab
[9c058c5803e30d02] Correction to cross linking in dict(n)'s SEE ALSO section.
2017-06-14 21:51:36 +00:00
dkf
107760e1da
[9c058c5803e30d02] Correction to cross linking in dict(n)'s SEE ALSO section.
2017-06-14 21:49:08 +00:00
dkf
d453cdacec
[f2336c116b] Move pragmas to make gcc happy; it is pickier than clang.
2017-06-14 21:42:38 +00:00
jan.nijtmans
cf30ba443c
Little variation on Brian's proposal: Only prefix decimal number with '0d' when that's necessary for correct interpretation of the number when parsed back again.
2017-06-14 10:04:05 +00:00
jan.nijtmans
e8d9fe8ebe
Rebase to core-8-6-branch (who told that fossil doesn't know how to rebase ....)
2017-06-14 07:54:51 +00:00
jan.nijtmans
6168d91b0e
merge core-8-6-branch
2017-06-13 12:18:16 +00:00
dkf
ad34457a54
Add tests and docs.
2017-06-13 11:10:11 +00:00
griffin
2712a556fb
Add support of 0d in the format %# conversion flag. Add tests for same.
2017-06-12 14:04:29 +00:00
jan.nijtmans
8c62a9c228
merge trunk
2017-06-12 13:29:40 +00:00
dgp
3f2eb64de8
Another TclStringCatObjv optimization to delay/avoid string rep generation.
2017-06-08 21:15:25 +00:00
dgp
4b81f6ff43
Don't test the impossible.
2017-06-08 21:10:01 +00:00
dgp
cc72d116bd
Modernize overflow checks.
2017-06-08 21:05:22 +00:00
dgp
94b635d569
merge trunk
2017-06-08 20:58:10 +00:00
dgp
de1c1f0f47
More streamlining
2017-06-08 20:57:06 +00:00
dkf
a4f7145579
Make read and write operations on Tcl_Var handles available in tclInt API.
2017-06-08 20:49:51 +00:00
dkf
bbcbd64e3b
Make read and write operations on Tcl_Var handles available in tclInt API.
...
(This will be useful for tclquadcode, and it addresses a basic omission in Tcl's API that made working with Tcl_Vars rather more specialized than it was ever really intended to be. However, this also closes off the part of the API that was not reasonably usable by ordinary external code; LVT indices require too deep an entanglement into Tcl's implementation.)
2017-06-08 20:49:04 +00:00
dgp
36d9205d97
More streamlining.
2017-06-08 20:40:45 +00:00
dgp
7673d614a9
pendingPtr == NULL implies (last == first) implies early out
2017-06-08 20:31:47 +00:00
dgp
c348386388
Tests for string rep generation suppression
2017-06-08 19:35:05 +00:00
dgp
878c874975
merge trunk
2017-06-08 16:48:33 +00:00
dgp
b796f3dee7
When possible delay string rep generation until necessary.
2017-06-08 16:44:51 +00:00
jan.nijtmans
dd96539335
merge core-8-6-branch
2017-06-08 12:53:31 +00:00
jan.nijtmans
23ab25afdc
Revert part of [95d096e0378b460c6c5168bb55bb2ca8b2fd799e|95d096e037]: Missed the fact that tolower() was optimized for the ASCII case as well, so this was a mistake!
2017-06-08 12:50:00 +00:00
jan.nijtmans
192d5ccf32
merge core-8-6-branch
2017-06-08 12:38:56 +00:00
jan.nijtmans
9ce3a23afe
Fix [2738427]: Tcl_NumUtfChars(...) no overflow check.
2017-06-08 12:37:23 +00:00
jan.nijtmans
c2e241f3cd
Fix [2738427]: Tcl_NumUtfChars(...) no overflow check.
2017-06-08 12:34:08 +00:00
jan.nijtmans
9562ecd7fa
tclUtil.c: Use TclUtfToUniChar() in stead of handling ASCII characters separately: This macro already does that.
...
Add new test-case for Tcl_NumUtfChars(), for a knownBug still to be fixed.
2017-06-08 11:48:13 +00:00
jan.nijtmans
16f3f234e8
Better UTF-8 surrogate handling, only functional when TCL_UTF_MAX>3
2017-06-08 08:26:58 +00:00
jan.nijtmans
fbfe81cc7b
merge core-8-6-branch
2017-06-07 15:23:11 +00:00
jan.nijtmans
b20173ba38
merge core-8-6-branch
2017-06-07 15:21:27 +00:00
jan.nijtmans
73a3dfdeea
Tcl_GetWideIntFromObj() -> TclGetWideIntFromObj(), and minor other simplifications/optimizations. No functional change.
2017-06-07 15:18:38 +00:00
sebres
12edf1f533
fixed wrong options suggestions by wrong args, like 'bad option "-base" ...' (for format) or 'bad option "-format" ...' (for add).
...
Note: sub-commands share common options table, because for the options often used the same literals (objects), so it avoids permanent "recompiling" of option object representation to indexType with another table.
2017-06-07 14:16:35 +00:00
jan.nijtmans
9e607ddb5a
Clock options should be alphabetica (so "-base" first). Struct members should start with lowercase.
2017-06-07 12:38:39 +00:00
jan.nijtmans
33602d0a11
Fix LookupLastTransition() for behavior when tick < compVal, undo Tcl_EvalObjEx -> TclEvalObjEx change, eliminate two inline macro's which are only used once. Eliminate many unnecessary MODULE_SCOPE declarations (duplicated with header files)
2017-06-07 10:40:40 +00:00
jan.nijtmans
4b7fc1bb11
merge core-8-6-branch
2017-06-07 09:29:12 +00:00
dkf
4cf238f3c3
Expose some of the core variable access APIs.
...
(Cherrypick from [b4dfc30083])
2017-06-06 17:51:12 +00:00
jan.nijtmans
1b667ef114
merge core-8-6-branch
2017-06-06 14:35:02 +00:00
jan.nijtmans
0aa0da515c
Add more test-cases for UTF-8 parser, including test-cases for TCL_UTF_MAX=4 or TCL_UTF_MAX=6
2017-06-06 14:33:16 +00:00
dgp
9a51ddaa6e
merge trunk
2017-06-06 13:48:14 +00:00
dgp
5667bb5f8e
[716b427f76] Optimize TclStringCatObjv when only one non-empty argument.
2017-06-06 13:14:16 +00:00
dgp
f8bc248cc3
merge 8.6
2017-06-06 13:03:31 +00:00
dgp
b0146fbd50
A few more tweaks to streamline and clarify.
2017-06-06 12:56:37 +00:00
sebres
615771f0b6
makes TclStringCatObjv safe accepting objc = 0 (or 1), then fast exits with new object / first; check-cycles rewritten to be still more faster.
2017-06-06 09:25:00 +00:00
jan.nijtmans
8d78b23f96
merge core-8-6-branch
2017-06-06 09:24:28 +00:00
jan.nijtmans
fab7d970af
Follow-up to [67aa9a2070]: Use uppercase consistantly, slight optimization in character tests, comment fixes. No change in functionality.
2017-06-06 09:23:23 +00:00
jan.nijtmans
617e92d7b4
[67aa9a2070] Tcl_UtfToUniChar returns single byte for invalid UTF-8 input as documented.
2017-06-06 09:02:28 +00:00
sebres
7edce7686e
amend to [eac4656f1e8cf793] (moved to scope where numChars != 0 in Unicode case)
2017-06-06 09:01:18 +00:00
sebres
3d8a0152af
small code review: don't need to check length if unchanged + the same case if 0 length
2017-06-06 08:34:00 +00:00
dgp
cb68061d12
Optimize TclStringCatObjv() for case when only one argument is non-empty.
2017-06-05 20:03:19 +00:00
dgp
5c4bb0f4e9
Revert performance optimization as first step to providing a refactored one.
2017-06-05 17:57:33 +00:00
dgp
f165025992
Merge 8.6; update changes.
2017-06-05 17:22:31 +00:00
dgp
8129d3e1c3
[67aa9a2070] Tcl_UtfToUniChar returns single byte for invalid UTF-8 input as documented.
2017-06-05 17:15:11 +00:00
dgp
3cdd3064b5
[67aa9a2070] Tcl_UtfToUniChar returns single byte for invalid UTF-8 input
...
as documented.
2017-06-05 16:56:08 +00:00
sebres
e72c67b399
removing "-compile" option on ensembles - allow to compile tcl-internal ensembles within namespace "::tcl::*" (apparently only having map for sub-commands).
2017-06-02 22:43:57 +00:00
sebres
b81fc4d41d
restored lost documentation of "timerate"
2017-06-02 21:51:35 +00:00
sebres
bfa8e4f4dc
amend fix default locale, (fixed everywhere - no current locale anymore for default, avoid set it after clear caches, etc.)
2017-06-02 21:48:40 +00:00
sebres
ed0399c961
unix/makefile: add header dependencies
2017-06-02 20:45:03 +00:00
sebres
68b7104563
extends performance test cases for converting between locales / TZ, for multiple switching between locales / TZ by scan and format, etc.
2017-06-02 20:10:43 +00:00
sebres
6c2d2971a2
fix default locale: differentiate between no locale specified or "C" (en) and current locale (corresponds system language, resp. env(LANG))
2017-06-02 20:10:16 +00:00
sebres
a592eefcbe
[win32] repair clock using system timezone (default :localtime) resp. locale for windows (broken after removal of registry-fix in [848d01b6ef])
2017-06-02 20:09:53 +00:00
sebres
2fce52b2ae
close small performance degradation if alternate between two time zones (e. g. convert from one to another): additionally to last used cache also previously used time zone.
2017-06-02 20:09:25 +00:00
sebres
750bed46fd
close small performance degradation if alternate between two locales (e. g. convert from one to another): additionally to last used cache also previously used locale.
2017-06-02 20:09:10 +00:00
sebres
d48588c89c
Removed public interface to create smart-pointer to dictionaries "dict smartref", common locales catalog rewritten to hold internally onetime referenced merged locales (even as smart-ref).
2017-06-02 20:08:55 +00:00
sebres
d5552e2fbe
[win32] repair clock test-cases for windows, using system locale / TZ :localtime (broken after removal of registry-fix in [848d01b6ef])
2017-06-02 20:07:10 +00:00
sebres
0cdd360369
Move "timerate" functionality to "::tcl::unsupported".
...
This partially reverts commit [848d01b6ef].
2017-06-02 20:06:28 +00:00
jan.nijtmans
449ce271b1
merge-mark core-8-6-branch (no changes)
2017-06-02 11:11:20 +00:00
jan.nijtmans
708ca98ace
merge core-8-6-branch
2017-06-02 11:10:28 +00:00
jan.nijtmans
f5f03750c8
merge core-8-6-branch
2017-06-02 10:59:19 +00:00
jan.nijtmans
901f58f13b
Change refCount field in DictObj from int to size_t. Cherry-picked from "sebres-8-6-clock-speedup-cr1" branch.
2017-06-02 10:34:45 +00:00
jan.nijtmans
c688e0737c
Fix [67aa9a207037ae67f9014b544c3db34fa732f2dc|67aa9a2070]: Security: Invalid UTF-8 can inject unexpected characters
2017-06-02 08:17:26 +00:00
jan.nijtmans
21dfa74b03
Merge core-8-6-branch. This removes the work currently being done in "sebres-8-6-clock-speedup-cr1" branch, but that will be merged again as soon as the work is done.
...
All other changes in "trunk" since then (e.g. the INST_STR_CONCAT1 performance improvement, and the removal of SunOS-4) are retained.
2017-06-02 08:12:38 +00:00
sebres
9011c35db1
missing static keyword for inline declarations
2017-06-02 06:53:35 +00:00
jan.nijtmans
3f0e8d6265
Fix [83a3d869722fab9caaae3b6728215fb2507a6f0d|83a3d86972]: tclEpollNotfy.c fails to compile on Linux 2.6.<22 due to unconditionally including <sys/eventfd.h>
...
Also re-generate regc_locale.c with Unicode 10 tables: previous generation went horribly wrong somehow...
2017-05-31 13:03:54 +00:00
jan.nijtmans
aaca962ffe
merge core-8-6-branch
2017-05-31 12:06:51 +00:00
jan.nijtmans
fcd399d49a
Fix [67aa9a207037ae67f9014b544c3db34fa732f2dc|67aa9a2070]: Security: Invalid UTF-8 can inject unexpected characters
2017-05-31 12:05:45 +00:00
jan.nijtmans
ca9d6593d1
merge core-8-6-branch (except: the "timerate" command and the clock performance-tests are kept)
2017-05-31 09:19:21 +00:00
jan.nijtmans
4a9ae53836
More code review, e.g. use Tcl_SetObjResult in stead of Tcl_SetResult, preventing a (char *) type case. No functional changes.
2017-05-31 08:59:28 +00:00
jan.nijtmans
60c071ed62
Remove "timerate" functionality: this definitely needs a TIP. Also undo changes in library/reg/pkgIndex.tcl, which are unrelated to clock functionality
2017-05-31 08:31:10 +00:00
sebres
bbb13bf577
performance of INST_STR_CONCAT1: closes [716b427f76f8f97a8d9a06043903c53bb2b592c2]: minor optimization in simplest cases,
...
fixed performance regression of TclStringCatObjv usage from [fc9ed1e751180816384d569101950c1f8c4582ad],
optimizes patterns like "$v[unset v]", "$v[set v {}]" etc.
2017-05-31 08:24:42 +00:00
stu
c05da96a35
Unbreak on OpenBSD, again. Put back the old SHLIB_VERSION doings.
...
On OpenBSD, Tcl's libs will need the extra version numbers probably forever.
There's no point to adding the extra knob.
On OpenBSD, the extra version numbers are used for dependency tracking.
The extra version numbers must be on linkable libs
(code will be linked to them, they have a corresponding .h file).
Loadable libs
(no code will be linked to them, they don't have a corresponding .h file.
Usually a Tcl extension)
don't need the burden (OpenBSD has to track the libs' dependencies)
of the extra version numbers.
Libs that are loadable and linkable are treated as linkable.
I hope that clears things up.
2017-05-31 06:10:46 +00:00
stu
73b3bf53ad
Fully remove SunOS-4* from tcl.m4.
2017-05-31 05:39:57 +00:00
sebres
777941e35b
[msgcat] revert changes of "msgcat" to previous state before clock-speedup, move this functionality to "clock.tcl";
...
additionally avoids the usage of catch (uses pair "dict exists/dict get" instead of).
2017-05-30 16:41:48 +00:00
sebres
e06e0c8625
merge core-8-6-branch (resolves warnings)
2017-05-30 08:49:24 +00:00
sebres
ece8767c5c
small code review: resolves several warning on some compilers
2017-05-30 08:46:12 +00:00
sebres
b63d3d703e
3-way merge sebres-trunk-clock-speedup / core-8-6-branch (clock speed-up / flightaware Tcl-bounties#4, see RFE [ddc948cff9781daac7ad95a3077b3c1b4f07cf93])
2017-05-29 21:13:05 +00:00
sebres
a59ccae461
merge sebres-8-6-clock-speedup
2017-05-29 20:37:35 +00:00
sebres
18315c5b5c
merge sebres-8-6-clock-speedup (clock speed-up / flightaware Tcl-bounties#4, see RFE [ddc948cff9781daac7ad95a3077b3c1b4f07cf93])
2017-05-29 20:23:56 +00:00
sebres
c922cc78a8
merge core-8-6-branch
2017-05-29 19:44:55 +00:00
sebres
9220ca224b
fixed [a3fb3356b76ec4a853d1b86aadc08675f8bef359]: segfault by sorting of the large lists (firstly mistakenly introduced in [af40c6fb6940bab7]), additionally simplify done-points in Tcl_LsortObjCmd.
2017-05-29 19:36:31 +00:00
jan.nijtmans
3be2fece8c
merge core-8-6-branch
2017-05-29 13:14:38 +00:00
jan.nijtmans
e5726b4339
Tcl_UtfToUniChar() -> TclUtfToUniChar() in various places: No change in functionality, just faster if ASCII only strings are involved.
2017-05-29 13:10:30 +00:00
griffin
919fc57599
0d in LinkVar
2017-05-28 16:06:29 +00:00
griffin
5badb6535f
Implement proposed 0d decimal radix prefix to compliment 0x,0b,0o.
2017-05-27 22:17:21 +00:00
sebres
ccbd8395f4
[win32] optimized calibration cycle (makes Tcl for windows "RTS" resp. NRT-capable):
...
- the clock ticks never backwards (avoid it by negative drifts using comparison of times before and after calibration);
- more precise, smooth/soft drifting (avoids too large drifts, already after 10 iterations the drift gets fewer as 0.1 microseconds);
- because of more accurate drifting (aspire to the smallest difference), we can prolong calibration interval (up to 10 seconds by small tdiff-value);
Closes ticket [b7b707a310ea42e9f1b29954ee8ca13ae91ccabe] "[win32] NRT-only - NativeGetTime backwards time-drifts bug"
2017-05-23 21:57:13 +00:00
dgp
cf0cf6ad90
[19a8c9399d] Plug mem leak in TIP 459 machinery.
2017-05-23 16:00:29 +00:00
jan.nijtmans
f3ea991996
Update internal tables to Unicode 10.0. Still in Beta, but to be released soon.
2017-05-23 14:48:58 +00:00
dgp
8a90be9a10
merge 8.6
2017-05-23 13:25:07 +00:00
dgp
25084ac51a
merge trunk
2017-05-23 12:52:09 +00:00
jan.nijtmans
14949f27a3
Merge core-8-6-branch.
...
Obsolete a number of systems, which were already obsoleted by TEA: We cannot even create a "battery-included" release any more for those systems.
2017-05-22 09:16:12 +00:00
jan.nijtmans
c571887777
autoconf
2017-05-22 09:04:22 +00:00
jan.nijtmans
f100bae746
If SHLIB_VERSION is specified as empty, don't let the SHLIB filename end with a dot (taken over from TEA)
...
Cherry-pick [http://core.tcl.tk/tclconfig/info/c8eddeddb9bbabc4 |c8eddeddb9] from TEA: Added /usr/pkg/lib to the paths searched on the journey to find tclConfig.sh
2017-05-22 08:53:04 +00:00
jan.nijtmans
4db003c2bf
Cherrypick Fix build on OpenBSD. [82701b94c4] missed a couple of bits.
...
Tcl/Tk's tcl.m4 isn't identical to TEA's tcl.m4 - be careful!
2017-05-21 17:42:16 +00:00
stu
62e71e311e
Fix build on OpenBSD. [82701b94c4] missed a couple of bits.
...
Tcl/Tk's tcl.m4 isn't identical to TEA's tcl.m4 - be careful!
2017-05-20 12:45:31 +00:00
aspect
df664778c8
merge core-8-6-branch
2017-05-19 14:23:06 +00:00
aspect
82ddcc716b
fix build failure with TCL_MEM_DEBUG introduced by [8b717dc06a3e3d49]
2017-05-19 14:21:46 +00:00
dgp
4c1161c24a
merge trunk
2017-05-19 13:00:32 +00:00
dgp
2f9e40fef1
merge 8.6
2017-05-19 12:53:52 +00:00
jan.nijtmans
34189452da
merge core-8-6-branch
2017-05-18 13:27:10 +00:00
jan.nijtmans
8b5d3394c2
Fix test-case numbering
2017-05-18 13:25:17 +00:00
jan.nijtmans
2a5ae4319f
TIP #458 implementation: Add Support for epoll() and kqueue() in the Notifier
2017-05-18 12:33:15 +00:00
dgp
246869993a
autoconf-2.59
2017-05-18 12:09:00 +00:00
jan.nijtmans
dea5aab977
merge core-8-6-branch
2017-05-18 09:24:30 +00:00
jan.nijtmans
8bdc794177
Cherry-pick [ http://core.tcl.tk/tclconfig/info/18e79736d236d15d |All the world was a VAX] for OpenBSD. Also fix [ http://core.tcl.tk/tk/tktview?name=84a27b1c67 |84a27b1c67]: Tcl and Tk's tcl.m4 not synced?
...
(configure script not re-generated yet, I'm sure Don will do that in the rc branch)
2017-05-18 09:16:39 +00:00
sebres
05d83f7b1a
back-ported branch sebres-8-6-timerate (new command "timerate" for 8.5)
2017-05-16 12:41:01 +00:00
sebres
993aa1b338
small amend with forgetten static keyword by option
2017-05-16 09:22:17 +00:00
sebres
c3077bd013
optimized special case "-now" of base (by scan or add) or clock value (by format): bypass integer recognition if it looks like option "-now"
2017-05-16 09:16:43 +00:00
sebres
02d6d68a68
resolved warnings compiled with gcc, removed unused "MsgCtLitIdxs" (was moved to tclClock.c)
2017-05-16 08:51:51 +00:00
sebres
c6484de085
merge sebres-8-6-clock-speedup
2017-05-15 18:35:36 +00:00
dgp
5a70bbe10b
merge trunk
2017-05-15 18:18:12 +00:00
sebres
dcc8bd9aa8
Fixed stardate format: be sure positive after decimal point (note: clock-value can be negative - modulo operation in C has the same sign as dividend)
2017-05-12 19:58:01 +00:00
jan.nijtmans
5d20272000
Don't test Tcl_GetDefaultEncodingDir() any more (which is obsolete), test Tcl_GetEncodingSearchPath() in stead.
2017-05-12 14:31:17 +00:00
sebres
0adb50f88b
restored "-encoding utf-8" by source clock.tcl (lost by merging)
2017-05-12 07:45:15 +00:00
sebres
a6c79230c3
merge sebres-8-6-clock-speedup
2017-05-11 21:55:12 +00:00
sebres
0ec19f6b11
fixes lost indentation during back-porting
2017-05-11 21:53:38 +00:00
sebres
d6de0fb46b
reintegrate sebres-8-6-clock-speedup back to sebres-clock-speedup (trunk clock-speedup, 3-way merge)
2017-05-11 19:44:01 +00:00
sebres
6b33bdad03
reintergrate (merge back) "sebres-8-6-timerate" into "sebres-trunk-timerate"
2017-05-11 19:06:53 +00:00
sebres
5171d6b4ef
merge trunk (to sebres-trunk-timerate)
2017-05-11 18:53:21 +00:00
sebres
39a388f035
update documentation doc/clock.n: small enhancements and relevant changes of new engine.
2017-05-11 16:56:56 +00:00
sebres
ea1ae51d2d
[clock] tclStrIdxTree extended with possibility to hold client data; also changed in clock - indices starts with 1 instead of 0, and 0(NULL) instead of -1 used as sign of ambiguous keys.
2017-05-11 15:07:41 +00:00
sebres
95d531e781
prevents loss of key object if the format object (where key stored) becomes changed (loses its internal representation during evals);
...
should avoid possible theoretical segfault there.
2017-05-11 15:07:32 +00:00
sebres
1ea7d20306
auto-loading of ensemble and stubs on demand only (+ test covered now, see clock-0.1);
...
introduces new possibility to implement namespace-based auto-loading, e. g.:
set ::auto_index_ns(::some::namespace) [list ::source [::file join $dir some namespace.tcl]]]
loading of clock-stubs (clock.tcl) implemented via handler "auto_index_ns" now.
2017-05-11 12:32:47 +00:00
sebres
0cdf2fd457
performance test cases extended: several cases to cover absence of the ensemble overhead
2017-05-11 12:25:59 +00:00
sebres
5202a013d2
merge sebres-8-6-timerate
2017-05-11 09:47:36 +00:00
sebres
f9abf9b060
man for timerate (doc/timerate.n)
2017-05-11 09:46:43 +00:00
sebres
2eaa3d3c8d
Added files missing after merge/back-port (rebase with merge point)
2017-05-10 13:02:17 +00:00
sebres
19b2d40089
Fixed possible wrong current date for CET / CEST test cases.
2017-05-10 12:30:04 +00:00
sebres
ba8e7c4211
Fixed wrong args message (e.g. "clock format ..." instead of "::tcl::clock::format") if failed through compiled ensemble execution.
2017-05-10 12:29:59 +00:00
sebres
3fe213e031
Ensemble "clock" fixed after merge with kbk's clock ensemble solution. All commands (including new) compiled now also in ensemble (implemented without TclMakeEnsemble, because it can be extended via new map entries).
...
Ensemble handling partially cherry-picked from new performance branch (TODO: check temporary "-compile" option can be reverted if it becomes ready/merged).
2017-05-10 12:29:54 +00:00
sebres
d9b0bec7d6
resolving differences between 8.6 and trunk
2017-05-10 12:29:49 +00:00
sebres
a021af135e
clock.test normalized (compared with trunk)
2017-05-10 12:29:42 +00:00
sebres
ee3d72e1e1
[interim-merge-commit] back-ported branch sebres-clock-speedup (from trunk to 8.6): tcl-clock functionality rewritten in C.
2017-05-10 12:28:46 +00:00
sebres
2752a9f58b
add missing compile functionality (TclPreserveByteCode/TclReleaseByteCode back-ported as inline from trunk)
2017-05-09 22:24:44 +00:00
sebres
a73818d8b6
back-ported branch sebres_trunk_timerate (new command "timerate" for 8.6)
2017-05-09 21:58:12 +00:00
dgp
0d218fca03
Merge 8.6; update changes.
2017-05-09 12:12:26 +00:00
jan.nijtmans
2130fd8582
merge core-8-6-branch
2017-05-09 11:31:14 +00:00
jan.nijtmans
f32ecd5894
Fix [6ca52aec14e0b33543d3cd9895f060b852ac4dbc|6ca52aec14]: HTTP package: Memory leak if client requests "Connection: close" but server responses with "Connection: keep-alive"
...
http: 2.8.10 -> 2.8.11
2017-05-09 11:30:09 +00:00
jan.nijtmans
1ed15145a6
merge core-8-6-branch
2017-05-09 09:49:23 +00:00
jan.nijtmans
46f75926ff
Let local variables declared from within macro's always start with underscore, this fixes some gcc warnings with -Wshadow.
2017-05-09 09:28:06 +00:00
dgp
43e76a45e9
merge trunk
2017-05-08 16:14:10 +00:00
dgp
f9d42ebf8c
Merge 8.6; update changes.
2017-05-08 16:07:58 +00:00
dgp
ca65694482
[6015221f59] Segfault after overflow of [binary] field specifier numeric count.
2017-05-05 19:11:33 +00:00
dgp
69865e4f83
[6015221f59] Segfault after overflow of [binary] field specifier numeric count.
2017-05-05 19:10:52 +00:00
dgp
71a9a4406a
[6015221f59] Segfault after overflow of [binary] field specifier numeric count.
2017-05-05 17:12:52 +00:00
dgp
0177abb172
merge 8.6
2017-05-04 20:40:15 +00:00
dgp
dd53d408e3
merge trunk
2017-05-04 14:51:22 +00:00
jan.nijtmans
b5273bc1fa
merge trunk
2017-05-04 14:19:52 +00:00
jan.nijtmans
ce501f14c5
merge core-8-6-branch
2017-05-04 12:28:44 +00:00
jan.nijtmans
b96146d014
Use GetModuleHandle() in stead of LoadLibrary() for ntdll, which is already loaded by Cygwin.
2017-05-04 12:26:49 +00:00
jan.nijtmans
6f18f8d375
Cherry-pick/backport [65cc894ac5c24495|65cc894ac5]: fix off-by-one possible buffer overrun when looking for encodings; found by coverity
...
Use GetModuleHandle() in stead of LoadLibrary() for ntdll, which is already loaded by Cygwin.
2017-05-04 12:01:23 +00:00
jan.nijtmans
63cf0366bd
merge core-8-6-branch
2017-05-04 09:51:00 +00:00
jan.nijtmans
fd7ea3420f
Fix gcc warning: unused variable wakeEvent
2017-05-04 09:35:14 +00:00
jan.nijtmans
52e520be10
merge trunk
2017-05-04 08:55:28 +00:00
jan.nijtmans
af718696fb
merge core-8-6-branch
2017-05-03 15:28:37 +00:00
jan.nijtmans
2c5a00c966
Use GetModuleHandle() in stead of LoadLibrary() when the handle is needed for an already loaded dll.
...
Fix filesystem-1.52 (only works correctly on UNIX)
2017-05-03 15:27:06 +00:00
jan.nijtmans
3d65f9905d
Use GetModuleHandle() in stead of LoadLibrary() when the handle is needed for an already loaded dll.
...
Fix filesystem-1.52 (only works correctly on UNIX)
2017-05-03 15:05:41 +00:00
jan.nijtmans
709366bdfe
slightly better formatting, both in genStubs.tcl and in the generated XXX_DEPRECATED functions.
2017-05-03 10:03:00 +00:00
jan.nijtmans
910200b637
Extend "deprecated" functionality of genStubs.tcl: XX_DEPRECATED macro now accepts a message text, which will be used in the compiler's error message.
...
Not used (yet) in Tcl.
2017-05-02 12:36:42 +00:00
dgp
be831d7ecb
Revert the colorful debug garbage mistakenly committed.
2017-05-01 20:29:02 +00:00
dgp
44c544160a
[f9fe90d0fa] [file join] normalization. See filesystem-1.52*
2017-05-01 20:25:27 +00:00
dgp
262df0197b
[f9fe90d0fa] [file join] normalization. See filesystem-1.52*
2017-05-01 20:25:03 +00:00
dgp
ed853e1ffb
[f9fe90d0fa] [file join] normalization. See filesystem-1.52*
2017-05-01 20:23:28 +00:00
jan.nijtmans
799554b1c5
merge core-8-6-branch
2017-05-01 08:22:56 +00:00
jan.nijtmans
5d0864fb41
Fix [8bd13f07bde6fb0631f27927e36461fdefe8ca95|8bd13f07bd]: Closing tcl pipes prevents windows threads from starting up. Patch by sebres (Dipl. Ing. Sergey G. Brester)
...
(also fix duplicate test-case number in link.test)
2017-05-01 08:20:54 +00:00
fvogel
90ffbb4170
Make trunk compile on MSVC (problem was: warning C4554: '&' : check operator precedence for possible error; use parentheses to clarify precedence)
2017-04-29 14:41:20 +00:00
dgp
77822d9462
merge 8.6; update changes
2017-04-28 18:09:46 +00:00
dgp
adfd841d9d
[f34cf83dd0] An optimization was being taken in a case where it produced the wrong result, failing to collapse multiple /// into /. Testing on Windows where path expectations may vary would be a good idea, but since this is just an optimization avoidance, I suspect we're ok.
2017-04-28 17:57:34 +00:00
dgp
237c46512c
[f34cf83dd0] An optimization was being taken in a case where it produced the wrong result, failing to collapse multiple /// into /. Testing on Windows where path expectations may vary would be a good idea, but since this is just an optimization avoidance, I suspect we're ok.
2017-04-28 17:52:26 +00:00
dgp
64f999ee89
[f34cf83dd0] An optimization was being taken in a case where it produced
...
the wrong result, failing to collapse multiple /// into /.
Testing on Windows where path expectations may vary would be a good idea,
but since this is just an optimization avoidance, I suspect we're ok.
2017-04-28 17:49:43 +00:00
dgp
198407b5ba
Test for [f34cf83dd0].
2017-04-28 17:46:11 +00:00
dgp
ab5586a7a3
Test for [f34cf83dd0].
2017-04-28 17:44:31 +00:00
dgp
79426acd55
Test for [f34cf83dd0].
2017-04-28 17:43:49 +00:00
dgp
14f579844d
merge mark
2017-04-28 14:25:02 +00:00
dgp
83495af5ce
silence uninit variable warnings
2017-04-28 14:15:56 +00:00
dgp
dc9c72819c
silence uninit variable warnings
2017-04-28 14:15:18 +00:00
jan.nijtmans
1200929a72
(cherry-pick): fix typo-bug (using wrong thread handle by set priority)
2017-04-28 13:41:13 +00:00
jan.nijtmans
10ab52081d
merge core-8-6-branch
2017-04-28 13:21:26 +00:00
jan.nijtmans
fecff1bcf0
(cherry-pick from "fix-1997007" branch): fix typo- resp. copy-paste-bug (using wrong threadInfo pointer in ConsoleOutputProc, should be writer, not reader)
2017-04-28 13:17:20 +00:00
jan.nijtmans
513d77788d
(cherry-pick from "fix-1997007" branch): fix typo-bug (using wrong thread handle by set priority)
2017-04-28 13:13:10 +00:00
jan.nijtmans
2f5a766c71
merge core-8-6-branch
2017-04-28 08:00:51 +00:00
dgp
0b9703a36f
[04e26c02c0] Remove useless condition that raises warnings.
2017-04-27 17:26:10 +00:00
dgp
2bf6ae09b3
[04e26c02c0] Remove useless condition that raises warnings.
2017-04-27 17:19:31 +00:00
dgp
879750b278
[04e26c02c0] Remove useless condition that raises warnings.
2017-04-27 17:02:19 +00:00
dkf
e3a9350e58
Start of implementation of TIP #470 .
2017-04-27 12:38:21 +00:00
dgp
e78b0c8945
merge trunk
2017-04-27 12:14:04 +00:00
dgp
78a7a5b561
merge 8.6
2017-04-27 12:06:47 +00:00
dkf
04086099d0
[50750c735a] Fix broken test and stop reading uninit-but-allocated memory in zlib channel transform.
2017-04-27 10:51:50 +00:00
dkf
757450b24f
[50750c735a] Fix broken test and stop reading uninit-but-allocated memory in zlib channel transform.
2017-04-27 10:43:32 +00:00
jan.nijtmans
fbbc93906e
Move some variable declarations closer to where they are used. No change in functionality.
2017-04-26 13:48:13 +00:00
dkf
85dbf412fd
[50750c735a] Fix for uninit memory handling issue in zlib transforms.
2017-04-25 19:32:46 +00:00
dkf
1f25f80d5b
Deal with a couple of obscure causes of warnings on some versions of OSX.
2017-04-25 13:08:52 +00:00
dkf
99143db529
A better way of getting source file location information when disassembling.
2017-04-22 14:57:17 +00:00
dgp
7cfeb436e4
merge trunk
2017-04-21 12:44:30 +00:00
dgp
7fde7fcf7b
merge 8.6
2017-04-21 12:19:07 +00:00
jan.nijtmans
2f99ece694
merge core-8-6-branch
2017-04-20 14:47:01 +00:00
jan.nijtmans
251dc3a322
Add flag TCL_CC_SEARCH_FLAGS to tclConfig.sh on Windows, just as it exists on unix, even though it should just be empty: TEA extensions might depend on it.
2017-04-20 14:07:30 +00:00
jan.nijtmans
c1b1e9af62
Remove unused functions like TclWinSetSockOpt()/Tcl_DStringTrunc() if compiled with -DTCL_NO_DEPRECATED
2017-04-20 11:44:05 +00:00
gcramer
bcbbf6dacf
Entry for text.n into exclude_refs_map inserted.
2017-04-20 10:13:02 +00:00
dgp
cdccb19d1c
merge 8.6
2017-04-19 15:22:22 +00:00
jan.nijtmans
93a924d020
merge core-8-6-branch
2017-04-18 19:02:51 +00:00
jan.nijtmans
6f7ac0e29c
Fix [bc432269b74e9b246bf01f354714fed47cb227ed|bc432269]: http fails in a safe interpreter
2017-04-18 19:01:51 +00:00
jan.nijtmans
3bde30215b
merge-mark
2017-04-18 06:15:48 +00:00
dgp
1212cb034f
merge trunk
2017-04-17 12:42:47 +00:00
dgp
a3fdca376e
merge 8.6
2017-04-17 12:10:42 +00:00
dgp
bfdfb7479d
Repair revised tests that failed.
2017-04-17 12:05:02 +00:00
dgp
56739b8036
Repair revised tests that failed.
2017-04-17 11:59:35 +00:00
jan.nijtmans
2c5d1036db
merge trunk
2017-04-14 13:00:46 +00:00
jan.nijtmans
46db6e4a00
merge trunk
2017-04-14 10:04:33 +00:00
jan.nijtmans
15b0a7813d
merge core-8-6-branch
2017-04-14 09:06:34 +00:00
jan.nijtmans
490e5ace3a
Don't use "0%o" format in test-cases, as it suggest's it's the normal way to format octal numbers: it isn't. Better use "%#o".
...
Add tests for "format" and "scan" corner-cases which weren't documented (except in TIP's) neither had tests before.
2017-04-14 09:05:01 +00:00
dgp
d2595ccfea
Bump TclOO 1.0.6; finish changes.
2017-04-13 16:39:15 +00:00
jan.nijtmans
6be0cf66e0
Translate all \u???? sequences to their UTF-8 counterpart in *.msg files: It is faster during parsing (since no backslash-sequences have to be handled) and makes the msg-files better readable by humans.
...
TODO: adapt tools/loadICU.tcl to generate UTF-8 in stead of those sequences. This tools seems to be out-of-date a long time already, I couldn't make it run with latest ICU.
2017-04-13 12:20:37 +00:00
dgp
5b059dfd6b
Bump msgcat and tcl tests and continue updates to changes.
2017-04-12 20:23:56 +00:00
dgp
1a3c0d9be9
merge 8.6
2017-04-12 19:19:05 +00:00
sebres
ea1a2f3fbf
[win] fixes "wrong" checking of the flag TCL_CLOSE_READ in close2proc (using mask)
2017-04-12 14:52:10 +00:00
jan.nijtmans
cddb5b612f
merge trunk. New TIP is getting shape.
2017-04-12 13:49:33 +00:00
jan.nijtmans
5ba18ec98d
If %llu is considered invalid, it means that "%" TCL_LL_MODIFIER "u" cannot be used Tcl_ObjPrintf(), but only in sprintf(). That's unfortunate, clearly an oversight in TIP #237 . Conclusion: new TIP must be written to correct this.
...
I'll read a TIP and see what case you have, but TCL_LL_MODIFIER was never
meant to play any role in [format] or in Tcl_ObjPrintf(). TCL_LL_MODIFIER
exists to help deal with platform differences in sprintf() calls.
Tcl_ObjPrintf() in contrast ought to be consistent in its behavior
across platforms and should not need such things. If that's false,
then fixes to Tcl_ObjPrintf() are in order.
2017-04-12 13:43:15 +00:00
dgp
6c3fce3382
merge trunk
2017-04-12 13:36:47 +00:00
dgp
62b2b9bf45
Revert recent commit. TIP 237 is clear that %llu is invalid.
2017-04-12 13:15:39 +00:00
dgp
244e69a10a
Revert recent commit [80252e0aed]. TIP 237 is clear that %llu is invalid.
2017-04-12 13:14:38 +00:00
jan.nijtmans
e006ff39be
merge core-8-6-branch
2017-04-12 12:33:07 +00:00
jan.nijtmans
9faad3da69
Another attempt to fix the two executable flags.
2017-04-12 12:11:12 +00:00
jan.nijtmans
47a749742a
Fix executable flag for 2 files
2017-04-12 12:04:31 +00:00
sebres
9d252ff7d2
merge fix-42202ba1e5ff566e
2017-04-12 11:49:39 +00:00
jan.nijtmans
d56986e037
merge trunk
2017-04-12 10:06:32 +00:00
jan.nijtmans
9b4213bb3f
merge core-8-6-branch
2017-04-12 09:35:18 +00:00
jan.nijtmans
0cc7fd3498
Fix sporadically errors in zlib-8.x and socket tests, cherry-picked from "fix-1997007" branch. Credit to "sebres"!
2017-04-12 09:23:23 +00:00
dgp
1e22d92c69
More changes work
2017-04-11 19:11:27 +00:00
sebres
1638a98f0e
fixes sporadically errors in several not event-driven test cases zlib-8.x (wrong non-blocking pipe usage, without fileevent resp. vwait)
2017-04-11 18:13:56 +00:00
sebres
85cc06f56c
improves robustness of the socket tests against busy random ports (fixed sporadic errors "already in use")
2017-04-11 18:10:09 +00:00
sebres
76054b4646
code review, robustness increase, avoid infinite wait by exit, thread exit and by pipes of closed processes);
...
use pipe-helpers (TI-structure handling) for all pipe-workers (tclWinConsole, tclWinSerial);
2017-04-11 18:09:52 +00:00
sebres
9b95c00218
added wake-up event to prevent possible dead-locks by some waiting thread (e. g. for writable events)
2017-04-11 18:09:38 +00:00
sebres
b8186ff707
prepared to use pipe-helpers (TI-structure handling) for all pipe-workers (tclWinConsole, tclWinSerial)
2017-04-11 18:09:06 +00:00
sebres
f5538049ef
code review and fix small memory leak using ckalloc, without finalization of tcl subsystem in the worker (if it owns TI structure and calls ckfree)
2017-04-11 18:08:43 +00:00
sebres
119d9ad3aa
shared structures of pipe-workers rewritten using atomic state of the thread;
...
asynchronous start/stop of pipe-workers (if possible), try the soft way to end workers using cancelSynchronousIo before it would be terminated;
2017-04-11 18:08:12 +00:00
sebres
8b0910d31f
fix typo- resp. copy-paste-bug (using wrong threadInfo pointer in ConsoleOutputProc, should be writer, not reader)
2017-04-11 18:07:30 +00:00
jan.nijtmans
cd48f2d313
Remove some unnecessary "struct" definitions and some type casts no longer necessary. No functional changes.
2017-04-11 15:20:07 +00:00
dgp
bc2940927e
merge trunk
2017-04-11 14:14:05 +00:00
jan.nijtmans
26f98a5e56
unbreak windows build (by previous commit)
2017-04-11 11:30:47 +00:00
dkf
bbfc7b1ea2
More minor style fixes.
2017-04-10 16:21:31 +00:00
jan.nijtmans
1e3fa455c9
Merge Harald's "robust-async-connect-tests" branch. Thanks!
2017-04-10 12:39:54 +00:00
dkf
d00198bd14
Minor style issues through the socket implementation code.
2017-04-09 16:51:27 +00:00
jan.nijtmans
e9b2f70238
merge trunk
2017-04-07 15:15:42 +00:00
jan.nijtmans
ff4b11441b
Minor simplification in tcl.h: For the Tcl_WideAsLong/Tcl_LongAsWide/Tcl_WideAsDouble/Tcl_DoubleAsWide #defines, one set suffices: No need to have two versions depending on TCL_WIDE_INT_IS_LONG.
2017-04-07 15:11:47 +00:00
jan.nijtmans
de59a00a30
Use "0o" in stead of "0" as octal prefix in more places.
2017-04-07 14:48:49 +00:00
jan.nijtmans
7eea851880
Merge trunk. Only use hash prefix (0x, 0b, 0 ) if value is not 0, except for %p.
2017-04-07 13:46:19 +00:00
jan.nijtmans
904733362e
Some more (internal) stub entries which can be cleaned up with -DTCL_NO_DEPRECATED, because they are not used any more.
2017-04-06 15:25:44 +00:00
dgp
5c21b9c7c7
merge trunk
2017-04-06 11:53:51 +00:00
jan.nijtmans
44de3dd8da
If compiled with TCL_NO_DEPRECATED, the functions TclpGetDate/TclpLocaltime/TclpGmtime can be removed: They are internal and not used for anything any more.
2017-04-06 11:13:22 +00:00
sebres
ceb75ca9ff
the same handling to initialize thread without suspend/resume helpers (otherwise may be dangerous by very huge resp. too busy system);
2017-04-05 19:52:23 +00:00
max
55edd253ff
Use a random unused port for the dummy http server to avoid conflicts
...
with local services running on port 8010.
2017-04-05 14:47:45 +00:00
sebres
2ae10f0b33
fix typo-bug (using wrong thread handle by set priority)
2017-04-05 10:41:05 +00:00
sebres
b9cc513f2f
small review: rewritten using already available event handles, additionally prevents infinite waits (using timeout 5000ms);
2017-04-05 10:40:51 +00:00
sebres
14192d21dd
Contributed by "stanko" as patch within 8bd13f07bde6fb0631f27927e36461fdefe8ca95
...
Resolves blocking of pipes-thread (reader/writer) under huge last:
Terminating threads during their initialization resp. teardown phase may result LoaderLock in the ntdll.dll's (to remain locked indefinitely).
This causes ntdll.dll's LdrpInitializeThread() to deadlock trying to acquire LoaderLock.
Possible fix for 9d75181ee70af318830e99ede6ebb5df72a9b079
2017-04-05 10:40:29 +00:00
jan.nijtmans
19719bf57f
Fix [4b12ccb3363e81b132e8dbe12aeec596102be1a8|4b12ccb336]: format/scan %llu doesn't work. Also added new test-cases showing the expected behavior.
2017-04-05 09:09:20 +00:00
jan.nijtmans
ea8cb9b7bb
Fix [4b12ccb3363e81b132e8dbe12aeec596102be1a8|4b12ccb336]: format/scan %llu doesn't work. Also added new test-cases showing the expected behavior.
2017-04-05 08:41:48 +00:00
sebres
72ac20b7d7
bug fix for [42202ba1e5ff566e0f9abb9f890e460fbc6c1c5c]: segfault by coro inject
...
rewritten callback for ::tcl::unsupported::inject, without leave the interpreter in unusable state (inaccurate environment exchange by adding eval callback), test covered now.
2017-04-04 11:13:36 +00:00
sebres
7b4e946f74
Create new branch named "fix-42202ba1e5ff566e"
2017-04-04 09:38:50 +00:00
dgp
f3a4ae987d
merge 8.6
2017-04-03 16:53:26 +00:00
jan.nijtmans
85397cf893
Merge core-8-6-branch.
...
Add test-cases showing that the (undocumented) %p format (and also %zd/%td) are harmless, since they are equivalent to other already existing formats.
2017-04-03 12:54:36 +00:00
jan.nijtmans
d10ba45b4b
Code optimization/reduction: If TCL_WIDE_INT_IS_LONG is defined, the variable useWide is always 0, so related code can be eliminated without loss of functionality.
2017-04-03 11:53:34 +00:00
jan.nijtmans
ce7746b49e
Since Tcl_AppendPrintfToObj() now understands the %p format, we can use it. Eliminating some internal string buffers.
2017-03-31 14:44:08 +00:00
dgp
5e45fd7662
merge 8.6
2017-03-31 12:30:27 +00:00
dgp
2b692ce09c
merge trunk
2017-03-31 12:08:18 +00:00
jan.nijtmans
0515becf7a
Fix fall-back test for TCL_WIDE_INT_IS_LONG, making it do the same as "configure": Should be 1 if sizeof(long long) == sizeof(long), 0 otherwise.
2017-03-31 11:05:28 +00:00
jan.nijtmans
6b2a58ffcd
Merge trunk
2017-03-31 09:54:42 +00:00
jan.nijtmans
354e08673b
Extend Tcl_DumpActiveMemory() and related functions for handling 64-bit memory. Only effective with TCL_MEM_DEBUG.
...
Merge-mark core-8-6-branch (this doesn't bring in any changes)
2017-03-31 09:19:05 +00:00
dkf
c552943f9e
[900cb0284bc] Ensure that masking pseudo-methods used for export management are not introspectable directly. [cherrypick]
2017-03-29 19:16:32 +00:00
dkf
810395f913
[900cb0284bc] Ensure that masking pseudo-methods used for export management are not introspectable directly.
2017-03-29 19:07:44 +00:00
dkf
8dfdec39fd
Tweak to make tests a little clearer.
2017-03-29 19:05:17 +00:00
jan.nijtmans
30cebba4d6
merge trunk
2017-03-29 14:57:15 +00:00
jan.nijtmans
0abecbc87d
Fix [4768eb5c166a1b923e3472d18d75fdccc1a47513|4768eb5c16]: format-8.20 failure. Since "%q" now is a valid length specifier, we cannot use it any more to test for "bad field specifier"
2017-03-29 14:53:54 +00:00
dgp
d236581f7b
merge trunk
2017-03-29 14:35:44 +00:00
jan.nijtmans
afc0ba5cdc
merge trunk
2017-03-29 13:23:11 +00:00
jan.nijtmans
efbb62b5bd
In comments and documentation, distinguish between __int64 (a Microsoft 64-bit integer type) and int64_t (C99 equivalent)
2017-03-29 12:19:02 +00:00
jan.nijtmans
24f5b98e8c
In comments and documentation, distinguish between __int64 (a Microsoft 64-bit integer type) and int64_t (C99 equivalent)
2017-03-29 12:16:28 +00:00
jan.nijtmans
cf3f133df1
(more experimenting): Make TCL_LL_MODIFIER behave more close to intuitive expectations: If the platform has a "long long" type, use it for Tcl_WideInt, so TCL_LL_MODIFIER is really a replacement for "ll" on most platforms (Win32/Win64 as most notable exception).
...
Will need a new TIP.
2017-03-29 12:05:59 +00:00
jan.nijtmans
eb03584c16
(experimental) new internal macro TCL_Z_MODIFIER, just like TCL_LL_MODIFIER but then for size_t.
2017-03-28 07:14:47 +00:00
jan.nijtmans
dd5e309d31
Improve comment on TCL_WIDE_INT_IS_LONG, making it less misleading.
...
In tclThreadTest.c, allow mainThreadId to be >32 bits.
2017-03-27 13:02:39 +00:00
aspect
0c0b1e1498
Correct this use of isWanted to ensure NO_IMPLEMENTATION methods are not listed (bug [900cb0284bc])
2017-03-27 13:02:22 +00:00
jan.nijtmans
0d54bf3711
Improve comment on TCL_WIDE_INT_IS_LONG, making it less misleading.
...
In tclThreadTest.c, allow mainThreadId to be >32 bits.
2017-03-27 13:01:34 +00:00
f.bonnet
f0aac87b35
Create new branch named "tip-462"
2017-03-27 09:28:55 +00:00
jan.nijtmans
920aa8280f
Supply more C99-compatible (and MSVC) format options: '%p' for pointers, 'z'/'j'/'I' for size_t/intptr_diff, 'j'/'q' for long long. Also add "I32" froom MSVC.
...
Remove TCL_LL_MODIFIER specified as "L" for Borland: This must be wrong as "L" is meant for long double. Just assume that later Borland compilers are MSVC-compatible.
2017-03-24 15:52:42 +00:00
jan.nijtmans
8a2c820213
Merge trunk
2017-03-24 10:30:56 +00:00
jan.nijtmans
ab08379d1c
Add TCL_NORETURN attribute to TclpThreadExit() and Tcl_ExitThread()
2017-03-24 09:33:00 +00:00
jan.nijtmans
321cd769b7
Use portable %p modifier in "generic/tclThreadTest.c", in stead of more complicated TCL_LL_MODIFIER.
2017-03-23 16:35:08 +00:00
jan.nijtmans
802974ec84
(cherry-pick from core-8-6-branch): Update TZ info to tzcode2017b.
2017-03-23 13:35:43 +00:00
José Ignacio Marín
91cb892574
merge with trunk
2017-03-23 08:42:38 +00:00
José Ignacio Marín
4703c1399d
Update TZ info to tzcode2017b.
2017-03-23 08:25:57 +00:00
dgp
e58e9e1fb9
New(ish) test interp-14.11 was missing its -cleanup.
2017-03-22 19:46:56 +00:00
dgp
d7802b428a
New(ish) test interp-14.11 was missing its -cleanup.
2017-03-22 19:45:41 +00:00
dgp
5894e1b085
New(ish) test interp-14.11 was missing its -cleanup.
2017-03-22 19:42:57 +00:00
dgp
555cf46f2a
merge trunk
2017-03-21 14:30:29 +00:00
jan.nijtmans
dc25a1a62b
Addendum to previous commit: If compiled with TCL_NO_DEPRECATED, remove a few more stub entries which are not used any more.
2017-03-21 09:01:09 +00:00
dgp
00a454298c
merge trunk
2017-03-20 12:55:21 +00:00
jan.nijtmans
754b233873
If compiled with TCL_NO_DEPRECATED, remove some more stub entries which are not used any more.
2017-03-20 10:24:11 +00:00
dgp
fb1a2c58dd
merge trunk
2017-03-17 13:14:14 +00:00
dgp
b8d35358ad
merge 8.6
2017-03-17 12:51:53 +00:00
jan.nijtmans
5617ad7c18
If Tcl is compiled with -DTCL_NO_DEPRECATED, make sure that iPtr->(resultSpace|appendResult|appendAvl|appendUsed) are not used any more.
2017-03-17 10:57:24 +00:00
dkf
909f1a1a30
Fixes to docs made possible by recent HTML rendering fixes for Tk.
2017-03-16 09:07:19 +00:00
jan.nijtmans
f6837a8ef4
redundant end-of-line spacing
2017-03-15 15:15:50 +00:00
jan.nijtmans
d287c6c8b0
redundant end-of-line spacing
2017-03-15 15:13:43 +00:00
Kevin B Kenny
488735e4a2
Compile [clock clicks], [clock microseconds], [clock milliseconds] and [clock seconds].
2017-03-15 02:40:56 +00:00
Kevin B Kenny
43d597b30f
Compile [clock clicks], [clock microseconds], [clock milliseconds] and [clock seconds].
2017-03-15 02:39:04 +00:00
Kevin B Kenny
a3f676461c
Make 'clock' and 'encoding' into compilable ensembles that play with safe interps
2017-03-14 22:22:40 +00:00
Kevin B Kenny
607667f89d
Make 'clock' and 'encoding' into compilable ensembles that play with safe interps
2017-03-14 22:13:15 +00:00
Kevin B Kenny
6212b342f6
Make 'clock' and 'encoding' into compilable ensembles that play with safe interps
2017-03-14 22:06:43 +00:00
Kevin B Kenny
5ddb691286
Make 'clock' and 'encoding' into proper compilable ensembles
2017-03-14 21:09:27 +00:00
dgp
daac4e5d34
Different solution to silencing the non-useful valgrind alerts.
2017-03-13 17:03:50 +00:00
dgp
40ee63b6ff
merge trunk
2017-03-13 16:01:05 +00:00
jan.nijtmans
6f905e1f0f
Eliminate internal use of TclNewBooleanObj()/TclSetBooleanObj()/TclSetIntObj(). Replace Tcl_DbNewBooleanObj() with trivial macro.
2017-03-13 08:38:18 +00:00
dkf
4ccedfaec4
Add back missing significant character
2017-03-13 06:16:45 +00:00
fvogel
c010901ea9
Fix error in formatting in info.n
2017-03-12 19:45:00 +00:00
dkf
c0bedd810f
Add mappings for groff-style character naming, used in experimental branches of Tk.
2017-03-12 18:36:21 +00:00
dgp
38670f6730
merge trunk
2017-03-10 17:30:10 +00:00
dgp
57ceb807ca
merge 8.6
2017-03-10 17:22:26 +00:00
José Ignacio Marín
5d66bf5a1f
Merge the update of TZ info with trunk.
2017-03-10 17:07:44 +00:00
hypnotoad
627f0a4d6a
Pulling changes from zipfs
2017-03-10 17:03:10 +00:00
José Ignacio Marín
d4b614d655
Update TZ data with tzdata2017a from IANA
2017-03-10 16:59:02 +00:00
dgp
91d32c4556
Silence valgrind complaints from [representation].
2017-03-10 16:41:32 +00:00
dgp
e9e0f57d92
Dup test name
2017-03-10 15:28:46 +00:00
dgp
f090fee89b
Start RC branch for Tcl 8.6.7
2017-03-10 15:22:08 +00:00
dgp
fd1058d488
merge trunk
2017-03-09 14:33:53 +00:00
jan.nijtmans
f55296bdf0
minor simplification
2017-03-08 14:50:44 +00:00
jan.nijtmans
bed000d72e
A few more end-of-line spacings
2017-03-08 14:32:15 +00:00
jan.nijtmans
b2181df698
Fix compile error on Cygwin, and double definition of TclUnixWaitForFile()
2017-03-08 13:56:55 +00:00
jan.nijtmans
6469ae095f
Re-base to trunk, and get latest code from here: [ https://github.com/lalbornoz/tcl/tree/tip458 ]. Untested.
2017-03-08 13:35:23 +00:00
sebres
636e904b09
merge core-8-6-branch
2017-03-07 18:21:24 +00:00
sebres
2c343f8ac1
expand test constraints of the load-8.x test cases (wrap setup prerequirements as new constraint "teststaticpkg_8.x")
2017-03-07 18:19:55 +00:00
jan.nijtmans
b645469c95
merge core-8-6-branch
2017-03-07 12:21:28 +00:00
sebres
30dc72c0aa
merge sebres-trunk-timerate
2017-03-07 11:38:31 +00:00
sebres
279bfdeef3
timerate: don't calculate threshold by too few iterations, because sometimes first iteration(s) can be too fast (cached, delayed clean up, etc).
2017-03-07 11:35:03 +00:00
jan.nijtmans
da85dcc288
Fix [e14d152114efee10394a7e0b4b1c0478efff52c5|e14d152114]: bundled zlib documentation is under a potentially non-free license
2017-03-07 11:08:47 +00:00
jan.nijtmans
07050778e3
Fix [e14d152114efee10394a7e0b4b1c0478efff52c5|e14d152114]: bundled zlib documentation is under a potentially non-free license
2017-03-07 11:05:26 +00:00
jan.nijtmans
ac3cb936ee
Merge core-8-6-branch
2017-03-07 09:47:41 +00:00
jan.nijtmans
d183e03dc3
Remove "makefile.bc". Not updated for many-many years, most likely it doesn't work any more and it doesn't seem to care anyone. Let's see if someone complains ;-)
2017-03-07 09:36:34 +00:00
jan.nijtmans
e295641767
merge core-8-6-branch
2017-03-07 09:09:44 +00:00
sebres
fa0de66105
tclEmptyStringRep -> &tclEmptyString
2017-03-06 21:01:53 +00:00
sebres
aaa76b7a7d
msgcat.test: fixed mcpackagelocale syntax usage test case (msgcat-12.1)
2017-03-06 20:32:54 +00:00
sebres
ad788184e3
merge trunk
2017-03-06 20:19:39 +00:00
sebres
aec683eef8
merge trunk
2017-03-06 20:18:35 +00:00
sebres
41646a2294
merge core-8-6-branch
2017-03-06 20:10:42 +00:00
sebres
2a1688c8f5
chanio.test: [win] fix test case (setup set translation to "lf", because of default translation on windows "crlf")
2017-03-06 20:07:08 +00:00
sebres
6ba062e067
nre.test: add constraint for nre-0.1 (testnreunwind may be not available)
2017-03-06 20:05:13 +00:00
sebres
089381e2b1
zlib.test: fix sporadic errors:
...
- zlib-9.2 hangs because of too short update, if processed another event;
- zlib-8.8 wrong non-blocking pipe usage - [string length $compressed] may return sporadically values smaller as expected (< 222)
2017-03-06 20:02:55 +00:00
dgp
16ad898a13
merge trunk
2017-03-06 17:48:27 +00:00
avl
ef3d739cdf
Fix for Ticket [71c0878b71] + test cases
2017-03-05 15:05:48 +00:00
jan.nijtmans
c3a18ac8f4
merge core-8-6-branch
2017-02-27 16:04:00 +00:00
dgp
90fc87af1c
merge trunk
2017-02-27 15:33:38 +00:00
dgp
0f7d84bbbf
ParseTokens failed to fully respect its numBytes argument.
2017-02-27 14:53:32 +00:00
dgp
94253c0df4
ParseTokens failed to fully respect its numBytes argument.
2017-02-27 14:52:13 +00:00
dgp
30c48b68df
ParseTokens failed to fully respect its numBytes argument.
2017-02-27 14:51:15 +00:00
dkf
7088b7efe3
[25842c161f] Ensure that finalization of a zlib stream works.
2017-02-26 15:33:04 +00:00
dkf
13ccdabc07
[25842c161f] Ensure that finalization of a zlib stream works.
2017-02-26 15:32:11 +00:00
dkf
203bbab7c9
Might as well number tests more conventionally.
2017-02-26 15:28:29 +00:00
dkf
93d3ea1393
Make tests produce more meaningful information when they fail.
2017-02-26 13:19:08 +00:00
jan.nijtmans
f9dda45e97
merge core-8-6-branch
2017-02-25 15:57:39 +00:00
dkf
874b8643e0
Add documentation of [regsub -command].
2017-02-18 18:38:52 +00:00
dkf
d18329a21e
Testing for some error cases.
2017-02-18 16:24:09 +00:00
dkf
82296abf08
Add more representation smashing testing and a memleak test.
2017-02-18 14:26:34 +00:00
dkf
5772e32729
Stop problems with representation smashes.
2017-02-17 09:20:49 +00:00
dkf
3ef7160d41
Switch to using command prefixes properly. This is quite a bit faster.
2017-02-17 06:08:18 +00:00
dgp
dc151ef624
merge trunk
2017-02-16 15:51:33 +00:00
jan.nijtmans
462ffc7927
More internal use of size_t in stead of int, e.g. for epoch's
2017-02-15 14:04:15 +00:00
jan.nijtmans
a13289725c
On Windows, Cygwin and 64-bit platforms, no need to handle 'long' in tclLink.c, since its size is equal to either 'int' or 'Tcl_WideInt'. This enhances interoperabilty between win64 extensions loaded in cygwin64 using Tcl_LinkVar(), whill still being 100% compatible.
...
init.tcl: unnecessary spacing.
2017-02-14 14:25:08 +00:00
aspect
c8646e5c72
fix chan leak with http keepalive vs close (bug [6ca52aec14])
2017-02-12 12:57:29 +00:00
dkf
efa3ec6939
Proposed implementation of [regsub -command].
2017-02-11 21:36:36 +00:00
aspect
a638162ed4
better tests for finalization
2017-02-11 07:18:08 +00:00
aspect
c77bd091df
zlib stream finalize calls deflate with no input - this case (and this case
...
only) must be allowed.
Fixes 2nd issue in [25842c161f], introduced by [c1aff52ef3]
2017-02-11 05:06:43 +00:00
dgp
37143a57b5
merge trunk
2017-02-09 13:59:22 +00:00
sebres
2bb76d85aa
merge sebres-trunk-timerate
2017-02-09 13:50:27 +00:00
sebres
8dde174dd4
[win] accomplished winTime module using very fast wide clicks, with denominator scale to/from microseconds, and therefore more precise "timerate" results under windows (using similar mechanisms as by Mac OSX).
...
Especially multi-threaded, because it works without lock opposite to microseconds (that use crictical section, because of the calibration thread).
The reason for usage of wide clicks instead microseconds explains following example (shows 20% performance deference):
% timerate -calibrate {}
% timerate {clock microseconds} 5000
0.297037 µs/# 14465901 # 3366585 #/sec 4296.906 nett-ms
% timerate {clock clicks} 5000
0.247797 µs/# 16869084 # 4035554 #/sec 4180.116 nett-ms
2017-02-09 13:45:14 +00:00
sebres
ca98340c4c
[timerate] bug fix: missing scale conversion by Mac OSX on platform where high resolution clicks are not microseconds based;
...
[win] use high resolution timer for the wide clicks and microseconds directly, prevent several forwards/backwards conversions;
[win, unix, mac-osx] normalize some functions for common usage in different time units (clicks, micro- and nanoseconds)
2017-02-09 11:36:17 +00:00
sebres
35539e2f98
resolve warning: enumeration value ‘TMRT_LAST’ not handled in switch (impossible to handle in switch because of break);
2017-02-09 11:34:43 +00:00
jan.nijtmans
8fb5bb0f20
TIP #459 feedback from FlightAware: Add package-related pkgIndex.tcl file to "package files" output.
2017-02-08 22:01:45 +00:00
jan.nijtmans
6db42b86e6
Shortcut in TclParseNumber(): If obj is a dict or list, don't bother to generate the string representation if we know already beforehand that the parsing will fail.
...
Use TCL_NO_DEPRECATED in stead of KILL_OCTAL for removing the (deprecated un-prefixed) octal support.
Adapt test-cases, so they work without octal support as well.
2017-02-08 14:32:13 +00:00
jan.nijtmans
8066c6a687
FlightAware feedback: "Aside: Any way to find out what the pkgIndex.tcl file a package was defined in was, or does that happen at too high a level?"
...
Answer: Even though the name of the pkgIndex file is available earlier, it is very well possible to remember it and store it with the other files. This commit does exactly that.
2017-02-08 11:42:12 +00:00
jan.nijtmans
4671050f10
Code cleanup (based on feedback from René Zaumseil): Only call GetInvalidIntFromObj() when Tcl_GetIntFromObj() fails.
2017-02-07 12:27:19 +00:00
jan.nijtmans
fca34fb8d0
Code cleanup (based on feedback from René Zaumseil): Only call GetInvalidIntFromObj() when Tcl_GetIntFromObj() fails.
2017-02-07 12:11:29 +00:00
bch
0e31751aed
cherrypick typo fix.
2017-02-06 21:58:48 +00:00
bch
d5c18c780a
s/then/than/ in Eval.3 manpage
2017-02-06 21:54:30 +00:00
dgp
44b5581c48
merge trunk
2017-02-03 18:49:14 +00:00
jan.nijtmans
19e0981d35
Split tclEmptyStringRep declaration over two lines. Otherwise gcc warning.
2017-02-03 14:29:50 +00:00
jan.nijtmans
b2a59d29b6
TIP #459 remaining part of implementation. Makes "package require Tk" give the right (... at least ... the expected ...) answer.
2017-02-03 12:27:37 +00:00
jan.nijtmans
d917353c7e
In TclGetNumberFromObj() macro (tclExecute.c): Don't fill in type if TCL_ERROR is returned: The caller doesn't do anything with this.
...
Don't access (non-const) variable tclEmptyStringRep any more, use its value (&tclEmptyString) directly. Only keep it in tclPkg.c, for error checking.
2017-02-03 11:47:02 +00:00
dgp
fde54630a5
merge trunk
2017-02-02 20:33:26 +00:00
jan.nijtmans
5fdbd4a749
Fix [d0f7ba56f0e8f93b7efb5b09ebc30a824bdd577a|d0f7ba56f0]: INST_EQ first-argument NaN shortcut is too aggressive
2017-02-01 14:55:02 +00:00
jan.nijtmans
b3800e2fed
Fix [d0f7ba56f0e8f93b7efb5b09ebc30a824bdd577a|d0f7ba56f0]: INST_EQ first-argument NaN shortcut is too aggressive
2017-02-01 14:53:48 +00:00
jan.nijtmans
67b6b8b92c
Fix [d0f7ba56f0e8f93b7efb5b09ebc30a824bdd577a|d0f7ba56f0]: INST_EQ first-argument NaN shortcut is too aggressive
2017-02-01 14:42:48 +00:00
jan.nijtmans
17cf9db2f7
Update documentation on recent changes in Tcl_LinkVar.
...
Minor code clean-up. No functional changes.
2017-01-31 13:27:28 +00:00
jan.nijtmans
e7e8174dba
Update documentation on recent changes in Tcl_LinkVar.
...
Don't use TCL_NO_DEPRECATED for disabling tests-cases: Those were not deprecated in 8.6 yet.
Minor code clean-up. No functional changes.
2017-01-31 13:15:40 +00:00
ashok
4b357897d5
Added assoc, ftype and move as auto_execok shell built-ins on Windows.
2017-01-28 06:38:22 +00:00
dgp
d72bb516ef
merge trunk
2017-01-27 16:32:19 +00:00
jan.nijtmans
68275b03de
Some code cleanup: More internal use of size_t, less type casts (because of this). No functional changes.
2017-01-27 14:31:12 +00:00
jan.nijtmans
2645c0ef3a
If TCL_NO_DEPRECATED is defined, remove the "case" statement, and use much less interp->result. Implementation mostly taken over from "novem". If TCL_NO_DEPRECATED is not defined, nothing changes.
2017-01-25 12:22:16 +00:00
dgp
a316791c49
merge trunk
2017-01-23 16:39:06 +00:00
jan.nijtmans
7de961e9fa
Merge trunk
2017-01-23 09:11:34 +00:00
jan.nijtmans
c26df8ae12
Fix [39f6304c2e90549c209cd11a7920dc9921b9f48e|39f6304c2e] follow-up: Make Tcl_LinkVar toleranto to the empty string as well
2017-01-20 16:21:43 +00:00
jan.nijtmans
d1c1cbf476
Fix [39f6304c2e90549c209cd11a7920dc9921b9f48e|39f6304c2e] follow-up: Make Tcl_LinkVar toleranto to the empty string as well
2017-01-20 16:20:27 +00:00
jan.nijtmans
4166996b42
Fix [39f6304c2e90549c209cd11a7920dc9921b9f48e|39f6304c2e] follow-up: Make Tcl_LinkVar toleranto to the empty string as well
2017-01-20 16:18:00 +00:00
fvogel
47692f4e99
Fix [1f4bb8162f]: lsort -dictionary documentation to be improved
2017-01-19 22:38:40 +00:00
fvogel
649902f7fa
Fix [1f4bb8162f]: lsort -dictionary documentation to be improved
2017-01-19 22:37:48 +00:00
jan.nijtmans
e7e764dbdf
Implement tag "deprecated" in genStubs.tcl. Will be used in Tk 8.7, for tagging the deprecated function Tk_FreeXId()
2017-01-17 12:02:43 +00:00
jan.nijtmans
b0aa1e2416
merge core-8-6-branch
2017-01-17 10:04:42 +00:00
jan.nijtmans
3cd704802f
Test-cases which require Tcl 8.5 (or 8.6) should continue to work unmodified in Tcl 9.0. The "novem" branch will show whether this continues to work.
2017-01-17 10:00:58 +00:00
jan.nijtmans
a5c310f993
merge core-8-6-branch
2017-01-17 09:06:45 +00:00
jan.nijtmans
ea1cc886b5
Hm. 32-bit zlib dll still was the 1.2.10 version. Corrected now.
2017-01-17 09:02:13 +00:00
jan.nijtmans
80d9aa777b
Merge core-8-6-branch. Better deal with patterns regarding hidden files in ZIP filesystem (taken over from upstream androwish)
2017-01-16 12:46:42 +00:00
jan.nijtmans
3dba96d22a
Fix for missing proper initialization of the threaded allocator in some situations. Problem reported by Zoran Vasiljevic, only noted when building/running NaviServer/AOLServer with Tcl 8.7 (trunk).
2017-01-16 11:57:17 +00:00
jan.nijtmans
a0ea496ffb
Update zlib to version 1.2.11
2017-01-16 11:53:07 +00:00
jan.nijtmans
1ef8141062
Update zlib to version 1.2.11
2017-01-16 10:23:14 +00:00
venkat
893b999f51
Merge IETF tzdata2016j
2017-01-14 08:47:15 +00:00
venkat
1a7f4b5e4c
Merge IETF tzdata2016j
2017-01-14 08:46:40 +00:00
venkat
2d2102400e
Upgrade TZDATA to IETF tzdata2016j
2017-01-14 08:46:06 +00:00
dgp
42e84df47a
merge trunk
2017-01-13 16:21:50 +00:00
jan.nijtmans
35d8e3912d
Introduce new function TclInitThreadAlloc(), symmetric with TclFinalizeThreadAlloc()
2017-01-13 14:43:07 +00:00
sebres
4c239ca4d9
merge trunk
2017-01-13 14:22:31 +00:00
jan.nijtmans
e1dcac30d8
close fork
2017-01-13 13:04:54 +00:00
jan.nijtmans
a89608d308
Merge-mark (restoring the expected merge order from core-8-5-branch -> core-8-6-branch -> trunk -> novem)
2017-01-13 13:02:32 +00:00
jan.nijtmans
4477fe0e52
Merge-mark (restoring the expected merge order from core-8-5-branch -> core-8-6-branch -> trunk -> novem)
2017-01-13 13:01:19 +00:00
sebres
bd9426f3e5
missing rules.vc after merge
2017-01-13 12:57:45 +00:00
jan.nijtmans
9cbd55378d
Allows to compile direct from Visual Studio IDE (prevents throwing error "LNK1561: entry point must be defined" by testing linker). Patch by sebres
2017-01-13 12:57:10 +00:00
sebres
4c43040671
missing rules.vc after merge
2017-01-13 12:57:05 +00:00
sebres
ad6dcfad67
missing rules.vc after merge
2017-01-13 12:55:53 +00:00
jan.nijtmans
db64748807
merge core-8-5-branch
2017-01-13 12:23:05 +00:00
jan.nijtmans
abdbe053ea
Enhance nmakehlp, allowing multiple arguments for "-l", and recognizing a new linker code LNK4224. Patch by sebres.
2017-01-13 12:20:21 +00:00
jan.nijtmans
818f1bf68b
Enhance nmakehlp, allowing multiple arguments for "-l", and recognizing a new linker code LNK4224. Patch by sebres.
2017-01-13 12:18:27 +00:00
jan.nijtmans
d4722d6135
Enhance nmakehlp, allowing multiple arguments for "-l", and recognizing a new linker code LNK4224. Patch by sebres.
2017-01-13 12:12:55 +00:00
jan.nijtmans
6ecb7aeabf
Patch from Zoran Vasiljevic, fix for missing proper initialization of the threaded allocator in some situations.
2017-01-13 11:17:17 +00:00
dgp
abc071c974
merge trunk
2017-01-12 20:59:53 +00:00
sebres
8288292b59
Fixes nmakehlp: allows more as one option by -l, to provide mandatory linker parameters (e. g. "LNK1561: entry point must be defined");
...
Additionally recognizes an new linker code LNK4224 for "no longer supported; ignored".
2017-01-12 18:37:50 +00:00
jan.nijtmans
d42b3a00d3
Merge core-8-6-branch
2017-01-12 10:34:05 +00:00
jan.nijtmans
7461bedeb9
Fix version number in tcl.dsp (thanks to Arjen Markus for noticing this)
2017-01-12 10:31:46 +00:00
sebres
a83eb05b98
Allows to compile direct from Visual Studio IDE (prevents throwing error "LNK1561: entry point must be defined" by testing linker)
2017-01-12 08:44:56 +00:00
sebres
77481ec3e1
code review and inline documentation
2017-01-11 16:36:28 +00:00
sebres
f03990cd12
code review: small optimization of msgcat::mcget, prevents infinite loop if at all no translation
2017-01-11 16:35:41 +00:00
jan.nijtmans
1ebb964dbc
Use more Tcl_AppendResult(), in order to prevent the use of a (char *) type case.
2017-01-11 16:23:18 +00:00
jan.nijtmans
e6d3efd5e1
Merge core-8-6-branch.
...
Do gcc-compiles with the option -Wwrite-strings, so we can detect mis-usage of "const".
Make Tcl_AddErrorInfo() and Tcl_AddObjErrorInfo() a macro.
2017-01-11 14:10:33 +00:00
jan.nijtmans
ce1701ea1f
Merge-mark core-8-5-branch.
...
Remove useless #undef.
2017-01-11 13:41:00 +00:00
sebres
a841205be9
amend lost changes after rebase to fossil
2017-01-10 23:09:23 +00:00
sebres
df7cbb28e0
small amend (reset have rel flag)
2017-01-10 23:02:14 +00:00
sebres
01697f2acc
"clock add" rewritten in C, using common functionality of "clock scan" (and freescan)...
...
test-performance.tcl: test cases extended to cover "clock add"
2017-01-10 23:02:02 +00:00
sebres
0a1c05fbb8
code review and inline documentation
2017-01-10 23:01:23 +00:00
sebres
8fa2e7802e
correct output of total resp. average values considering net execution time (overhead considered)
2017-01-10 23:00:05 +00:00
sebres
c2ee1525ef
[unix] resolving of several warnings (gcc 5.x):
...
- static used in non-static inline function;
- x64 int cast on pointer [-Wpointer-to-int-cast];
- (obscure) may be used uninitialized in this function [-Wmaybe-uninitialized];
- TclEnvEpoch initialized and declared extern;
2017-01-10 22:59:16 +00:00
sebres
ae731e3e50
test-performance: added calibration of timerate to minimize influence of the parasitical execution-overhead by extremely fast execution times
2017-01-10 22:58:29 +00:00
sebres
bc879a58f2
Merge remote-tracking branch 'remotes/fossil/trunk' into sb/trunk-rewrite-clock-in-c; + minor fixes after merge.
2017-01-10 22:56:13 +00:00
sebres
d551c0972c
[unix] build for *nix fixed, code clean-ups; missing declarations; unused vars, functions etc; types normalization;
2017-01-10 22:55:00 +00:00
sebres
27fd5c0793
dict: unused variable removed
2017-01-10 22:53:05 +00:00
sebres
264cc47fd4
another way to make greedy search more precise, some greedy matches are fixed (see test cases clock-6.22.11 - clock-6.22.20), additionally involving look ahead token of known type into pre-search process.
2017-01-10 22:52:44 +00:00
sebres
866efbc904
some greedy matches are fixed (see test cases clock-6.22.11 and clock-6.22.12), involving space count in look ahead and end distance calculation (because spaces are optional in date-time string as well as in scanning format).
2017-01-10 22:52:12 +00:00
sebres
941e45f907
clock.tcl: clean unused resp. obsolete commands
2017-01-10 22:45:59 +00:00
sebres
7a654297a0
small code review, performance test cases ready.
2017-01-10 22:45:29 +00:00
sebres
4600d7c026
performance test cases ready
2017-01-10 22:44:55 +00:00
sebres
c97ddc73f6
several missing scan tokens added, test cases extended and fixed;
...
token "%s" used for seconds only (time zone independent), additionally "%Es" token added for local seconds (zone dependent seconds);
2017-01-10 22:44:30 +00:00
sebres
bd20b3429a
porting of clock format completed; all clock test cases passed
2017-01-10 22:43:22 +00:00
sebres
d830389b53
[temp-commit]: format almost ready (missing some tokens), sprintf replaced with _itoaw (because "sprintf" too slow)
2017-01-10 22:42:15 +00:00
sebres
63c8495242
[temp-commit]: format almost ready (missing some tokens)
2017-01-10 22:41:18 +00:00
sebres
9d7b1b2b03
min length of %Y token (year with century) is 4, optional tokens possibility (zone), test cases extended
2017-01-10 22:40:16 +00:00
sebres
0f7c885e8c
other locale scan token switched from list seek to index tree + list search case insensitive now
2017-01-10 22:39:45 +00:00
sebres
95b63f4c39
locale months scan switched to from list seek to index tree; bug fixing
2017-01-10 22:38:56 +00:00
sebres
20ec6252d1
lowercase on demand, string index tree can search any-case now, clock scan considered utf-8 char length in words by format parsing
2017-01-10 22:38:22 +00:00
sebres
2ba998572c
string index tree for fast greedy search of the string (index) by unique string prefix as key;
...
clock scan rewritten to use string index tries search;
2017-01-10 22:37:40 +00:00
sebres
c5ff074db9
cacheable conversions Local2UTC / UTC2Local fixed (some TZ switches time seconds bound) and optimized (last period ranges saved);
...
prepare to back-port clock format
2017-01-10 22:36:19 +00:00
sebres
717e43f1bd
estimate token count by % char and format length (don't use fix TOK_CHAIN_BLOCK_SIZE by creation, minimized memory usage)
2017-01-10 22:35:34 +00:00
sebres
e130d09c74
small optimization (determine min/max length, end distance, etc.)
2017-01-10 22:35:14 +00:00
sebres
36d60df82c
clock scan almost ready (currently test-case covered tokens only), test cases passed; todo - check other tokens from "clock.tcl"
2017-01-10 22:34:42 +00:00
sebres
e9177a25c1
bug fix by match word token (FindWordEnd fixed);
...
repaired current locale switch
2017-01-10 22:34:11 +00:00
sebres
02b4c1de38
repaired system/current locale caching (also for legacy clock format) and legacy timezone cached as last
2017-01-10 22:33:41 +00:00
sebres
feb62aa2bd
scan format: several tokens implemented, bug fixing and code review;
...
precedence yyyymmdd over yyyyddd was changed (and re-covered in test-cases also), see http://core.tcl.tk/tcl/tktview/e7a722cd3573fedda5d1e528f95902776f996e06
2017-01-10 22:32:46 +00:00
sebres
6c38124bb9
%j token as day of year; clear flags implemented (to provide last-wins functionality)
2017-01-10 22:31:43 +00:00
sebres
caf50ef7ea
seconds token (%s) take precedence over all other tokens
2017-01-10 22:31:12 +00:00
sebres
c51ce8e879
list index logic optimized regarding greedy search (don't stop by first found - try to find longest)
2017-01-10 22:30:49 +00:00
sebres
94dc5e4e43
improve LocalizeFormat, internal caching of localized formats inside msgcat for locale and format objects
...
smart reference introduced in dict (smart pointer with 0 object reference but increase dict-reference, provide changeable locale dict)
code review
2017-01-10 22:30:24 +00:00
sebres
c52322d409
improve LocalizeFormat, internal caching of localized formats inside msgcat for locale and format objects
...
smart reference introduced in dict (smart pointer with 0 object reference but increase dict-reference, provide changeable locale dict)
2017-01-10 22:28:25 +00:00
sebres
a4c93085d2
l10n (with caching) implemented, msgcat package optimized, code review, etc.
2017-01-10 22:25:20 +00:00
sebres
18dc49dd08
[temp-commit]: not ready
2017-01-10 22:23:37 +00:00
sebres
c5d6cc90d9
several initialize and finalize facilities
2017-01-10 22:21:26 +00:00
sebres
bcb2a0a181
amend for caching of UTC2Local / Local2UTC:
...
* tzdata used internally only (because cached, replaced with timezone object as parameter for several functions)
* small improvement (don't need to convert UTC to UTC)
2017-01-10 22:20:25 +00:00
sebres
940c0805c0
[temp-commit]: code review, DST-hole mistake by scan with relative time resolved;
...
caching of UTC2Local / Local2UTC cherry picked
2017-01-10 22:19:01 +00:00
sebres
a3c42aef3e
[temp-commit]: clock scan tokenizer logic ready (still needs many rules)
...
caching extended (currentYearCentury, yearOfCenturySwitch, lastBaseDate ...)
2017-01-10 22:15:36 +00:00
sebres
aba1f29686
[temp-commit]: rewrite scan token map handling
2017-01-10 22:12:07 +00:00
sebres
898bc97bbe
[temp-commit]: tclClockFmt.c - amend for 2nd try (with cherry picking of tclSE incompatible facilities)
...
Prepared for common usage of both scan commands - free scan / scan with format (currently faked via eval to __org_scan);
test cases passed.
2017-01-10 22:10:44 +00:00
sebres
5ab3eafa66
[temp-commit]: tclClockFmt.c - 2nd try (with cherry picking of tclSE incompatible facilities)
...
Prepared for common usage of scan command (free scan / format scan)
2017-01-10 22:09:02 +00:00
sebres
1f1f1e4dfc
[temp-commit]: tclClockFmt.c - 1st try
...
using "timerate" instead "time" by performance measurement tests (more precise and fixed time, so no switch of factor expected)
2017-01-10 22:07:37 +00:00
sebres
32b5c49ef3
[temp-commit]: ClockFreeScan back-ported (cherry picked), all tests case passed + several new test-cases for bug fixing implemented here;
...
environment epoch ported, several fixes for the time zone / tzdata caching ported;
mem-leak fix + memory leak test cases passed
2017-01-10 22:04:49 +00:00
sebres
21878028d5
[temp-commit]: ClockFreeScan ready, test case passed (2 failure because of wrong :localtime zone by TZ-switch, to be fixed)
2017-01-10 22:02:10 +00:00
sebres
18b31092c6
[temp-commit]: ClockFreeScan seems to be ready, test case should be checked
2017-01-10 22:01:13 +00:00
sebres
736824a259
[temp-commit]: ClockFreeScan almost ready, test-performance cases merged
2017-01-10 21:59:59 +00:00
sebres
9e52bb21b7
[temp-commit]: clock scan with several optimization porting, still not-ready
2017-01-10 21:58:33 +00:00
sebres
a3433951b0
1st try to rewrite clock in C
2017-01-10 21:57:06 +00:00
sebres
ad284758d3
Create new branch named "sebres-clock-speedup"
2017-01-10 21:20:03 +00:00
sebres
6aed9a6630
[win] load win-registry library also in development environment (uninstalled)
2017-01-09 19:33:23 +00:00
sebres
704f3a5483
missing entry of tclInt.h added
2017-01-09 19:31:08 +00:00
sebres
2de37edd0d
New performance measurement routine "timerate" in opposition to "time" the execution
...
limited by fixed time (in milliseconds) instead of repetition count (more precise
results, to prevent very long execution time it is no more necessary to estimate
repetition count)
Syntax: timerate ?-direct? ?-calibrate? ?-overhead double? command ?time?
2017-01-09 19:09:49 +00:00
sebres
ec306bb22e
Merge fix clock test-cases from 8.6: Make test clock-67.5 time zone independent - execution fails in the time zones below gmt
2017-01-09 18:28:56 +00:00
sebres
f736317f65
Fix clock test-cases: Make test clock-67.5 time zone independent - execution fails in the time zones below gmt
2017-01-09 18:23:44 +00:00
sebres
8b67c7f038
Merge bug_b87ad7e914
2017-01-09 17:53:00 +00:00
sebres
87cb0ba76e
Merge bug_b87ad7e914
2017-01-09 17:51:46 +00:00
sebres
8bafbbd290
Merge bug_b87ad7e914
2017-01-09 17:45:12 +00:00
jan.nijtmans
8fe791a69e
Fix for [b87ad7e9146832d505f9a430d779c5313c440256|b87ad7e914], rebased to core-8-5-branch (who said fossil doesn't have 'rebase'...), and moved the definition of "struct _timeb t" to the top of the function.
...
This branch is ready to be merged to core-8-5-branch, it looks good to me. Thanks to sebres (Dipl. Ing. Sergey G. Brester)
2017-01-09 09:08:37 +00:00
jan.nijtmans
c745f44e3a
Merge core-8-6-branch
2017-01-06 11:47:15 +00:00
jan.nijtmans
cc89e55f7d
Merge trunk
2017-01-06 11:39:10 +00:00
jan.nijtmans
860e480e47
Complete the upgrade to Zlib 1.2.10: Now add the *.lib and *.dll files
2017-01-06 10:30:31 +00:00
jan.nijtmans
aea2e32830
Complete the upgrade to Zlib 1.2.10: Now add the *.lib and *.dll files.
2017-01-06 10:24:53 +00:00
jan.nijtmans
03d119a937
Make TclGetLoadedPackagesEx() work with other than the only current interpreter (didn't really think about that earlier ... ). Actually slightly more correct.
2017-01-05 15:13:58 +00:00
jan.nijtmans
3703dbd940
Merge trunk
2017-01-05 14:47:07 +00:00
jan.nijtmans
570a13bc17
Fix [7c7d3b4481d4e4e86420b54031f4abd1df18d64|7c7d3b4481]: load test failures. There's a difference between "" and NULL as interpreter name.
2017-01-05 14:27:20 +00:00
jan.nijtmans
8da19e064b
One more ::tcl::Pkg::source, for the Mac
2017-01-05 13:09:26 +00:00
jan.nijtmans
666afa7352
Merge trunk. Improve test-case. Bring back "source -nopkg", but only as undocumented internal helper for ::tcl::Pkg::source.
2017-01-05 11:55:56 +00:00
fvogel
45db025684
Added more glob patterns in order to ignore html generated documentation and Windows-specific compilation products when running fossil extra
2017-01-04 16:34:03 +00:00
fvogel
4d7100b8ac
Added more glob patterns in order to ignore html generated documentation and Windows-specific compilation products when running fossil extra
2017-01-04 16:33:28 +00:00
jan.nijtmans
5e02396d5e
In stead of "source -nopkg" use a ::tcl::Pkg::source utility function.
2017-01-04 16:23:23 +00:00
jan.nijtmans
2e108cd831
Fix safe.tcl test-cases: "source -nopkg" is not necessary here: "source" is an alias for "::safe::AliasSource", which doesn't use "source"
2017-01-04 15:16:31 +00:00
jan.nijtmans
27fb8875b7
Merge trunk. First steps in eliminating "source -nopkg". Some test-cases still fail.
2017-01-04 14:05:20 +00:00
jan.nijtmans
acdb5b2026
Fix 2 test-cases, due to changed command options.
2017-01-04 13:51:26 +00:00
jan.nijtmans
f711652d04
TIP [ http://www.tcl.tk/cgi-bin/tct/tip/459 |459] implementation, but (for now) without the "source -nopkg" part.
2017-01-04 13:38:56 +00:00
jan.nijtmans
ca2077254b
TIP [ http://www.tcl.tk/cgi-bin/tct/tip/456 |456] implementation: Extend the C API to Support Passing Options to TCP Server Creation
2017-01-04 12:55:27 +00:00
jan.nijtmans
99fa27bc91
merge core-8-6-branch
2017-01-04 11:55:28 +00:00
jan.nijtmans
76070165e3
Update zlib to version 1.2.10. Dll's and *.lib files not updated yet
2017-01-03 10:43:32 +00:00
sebres
1e55e1eb8c
[win] bug fix in NativeGetTime: each call of it blurs current performance counters actualized in calibration thread in UpdateTimeEachSecond;
...
This entails that sometimes sporadically time-drifts resp. jump-esque time-shifts occurred, what for example produces very confusing results during time measurement.
[unix] wrong cast fixed in TclpGetWideClicks: multiplication with 1000000 in long int may cause overflow
See ticket b87ad7e9146832d505f9a430d779c5313c440256
2017-01-02 14:31:22 +00:00
limeboy
a2c66d61f0
Make the code slightly more pleasing to the eyes.
2017-01-01 22:19:26 +00:00
jan.nijtmans
c2287f3873
merge core-8-6-branch
2017-01-01 19:49:56 +00:00
jan.nijtmans
4808c18e05
Fix [39f6304c2e]: Tcl_LinkVar is not tolerant to minus, plus, dot
2017-01-01 19:46:22 +00:00
jan.nijtmans
402b0c3f5e
Fix [39f6304c2e]: Tcl_LinkVar is not tolerant to minus, plus, dot
2017-01-01 19:29:31 +00:00
jan.nijtmans
2f38b34699
(cherry-pick): Update zlib to version 1.2.9. Dll's and *.lib files not updated yet
2017-01-01 19:15:39 +00:00
jan.nijtmans
182fd112ea
Update zlib to version 1.2.9. Dll's and *.lib files not updated yet
2017-01-01 19:10:32 +00:00
jan.nijtmans
b76f99d88c
Update -DMSTATS functionality, for possible total memory sizes > 2Gb. One more place where use of size_t can increase range.
2016-12-23 15:43:42 +00:00
dgp
ee6c9c9f00
merge trunk
2016-12-23 15:21:22 +00:00
jan.nijtmans
716453aae6
Little tweak: Decimal dot's should be allowed as well as first part. Test-case for that as well.
2016-12-23 12:02:08 +00:00
jan.nijtmans
c7da596da2
Handle other invalid sequences, like "1234e" or "-567e+", that could be the start of a valid real number.
2016-12-23 11:59:05 +00:00
jan.nijtmans
f256ed021d
Eliminate the internal macro/function TclNewIntObj: In all cases TclNewLongObj is just as good.
2016-12-23 08:27:02 +00:00
jan.nijtmans
4532b23e99
Fix some comments (which were not correct any more in this branch), and don't allow booleans in integer context.
2016-12-22 11:38:22 +00:00
jan.nijtmans
9a2993c23f
Re-based to core-8-5-branch.
...
Proposed fix for [39f6304c2e90549c209cd11a7920dc9921b9f48e|39f6304c2e], which doesn't need modifications to Double/Integer valid string representations.
2016-12-22 11:27:01 +00:00
jan.nijtmans
2951ee2fea
Merge trunk. Implement sequences like "0x", "0b" and "0o" as well. And also the "." for doubles and floats.
2016-12-22 10:26:08 +00:00
jan.nijtmans
cbfc7befb0
Make sure that Tcl_GetIntFromObj/Tcl_GetWideIntFromObj/Tcl_GetDoubleFromObj don't set an error in the interp during LinkTraceProc(): The error is supposed to be reported as return value of this function, not the interp.
2016-12-21 14:03:15 +00:00
jan.nijtmans
e1e78edbbc
Make sure that Tcl_GetIntFromObj/Tcl_GetWideIntFromObj/Tcl_GetDoubleFromObj don't set an error in the interp during LinkTraceProc(): The error is supposed to be reported as return value of this function, not the interp.
2016-12-21 14:01:26 +00:00
jan.nijtmans
97834be313
Make sure that Tcl_GetIntFromObj/Tcl_GetWideIntFromObj/Tcl_GetDoubleFromObj don't set an error in the interp during LinkTraceProc(): The error is supposed to be reported as return value of this function, not the interp.
2016-12-21 13:59:26 +00:00
jan.nijtmans
70346ccd7b
Experimental (partial) fix for [39f6304c2e90549c209cd11a7920dc9921b9f48e|39f6304c2e]: Tcl_LinkVar is not tolerant to minus, plus, dot.
...
This handled minus and plus only, not other possible errors. Will need a TIP, because the boolean type is extended to consider '-', '+' and 'o' (necessary for being able to type 'on' or 'off') as valid booleans
Dot, and integer prefixes (such as 0x) not handled yet, should be handled completely different.
2016-12-21 12:59:30 +00:00
jan.nijtmans
aba0a7a6cd
Make options -reuseaddr/-reuseport forbidden without -server, no matter the value being true or false. Some additional test-cases.
2016-12-20 12:35:33 +00:00
jan.nijtmans
d97bb854b0
merge fork
2016-12-20 11:47:11 +00:00
limeboy
f208386ff7
Decouple the switch handling.
2016-12-20 10:56:53 +00:00
jan.nijtmans
dd3012b0b5
Document that from the "exact" parameter of Tcl_InitStubs(), only bit 0 has meaning.
2016-12-20 10:32:37 +00:00
limeboy
e574cfbc71
Correct the handling of -server and its options.
2016-12-20 10:22:22 +00:00
jan.nijtmans
0dd0678546
more internal use of size_t in stead of int.
2016-12-20 09:46:14 +00:00
jan.nijtmans
3d1095d348
Record the fact that all stub-enabled extensions work in Tcl 8.5+, no 8.6 (or 9.0) features are needed. (Differences between 8.x and 9.0 are handled by a different stub magic value)
2016-12-20 09:36:50 +00:00
jan.nijtmans
7a1d9d5758
merge trunk (still has test failure in socket.test)
2016-12-20 09:30:02 +00:00
dgp
bc213f0ba3
merge trunk
2016-12-19 18:43:49 +00:00
jan.nijtmans
972b65b569
Some more internal use of size_t in stead of int. No functional change.
2016-12-16 16:14:57 +00:00
jan.nijtmans
b549e19961
Add back testcase winFile-4.10. This test passes anyway, even though it appeared to be Windows 2000 only.
2016-12-15 15:18:21 +00:00
jan.nijtmans
05a9b0d75c
Add "file join $grandParentDir tcl8.? library" as possible path for a valid init.tcl.
...
Some simplifications in use of test restrictions.
2016-12-15 15:07:56 +00:00
limeboy
dfbc8a6296
Update the documentation
2016-12-14 16:03:53 +00:00
limeboy
cbe4a7dae5
Adjust OpenTcpServer for the latest changes to OpenTcpServerEx
2016-12-14 15:59:43 +00:00
limeboy
caf8932e2e
Fix for the argument parsing phase in the [socket] command.
2016-12-14 15:52:21 +00:00
limeboy
2e467a4c9a
Make OpenTcpServerEx accept a 'service' string parameter instead of a port.
2016-12-14 15:49:27 +00:00
jan.nijtmans
6edec95607
Implement all possible TCL_LL_MODIFIER formats in Tcl_ObjPrintf(), can be "ll", "I64" and "L", whatever the platform defines for long long integer. With test-cases.
2016-12-14 15:03:13 +00:00
jan.nijtmans
b2c94acd0b
Implement all possible TCL_LL_MODIFIER formats in Tcl_ObjPrintf(), can be "ll", "I64" and "L", whatever the platform defines for long long integer. With test-cases.
2016-12-14 14:14:17 +00:00
jan.nijtmans
3df1a90364
Bring back stub table in original state.
...
Merge trunk
2016-12-08 17:52:36 +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
1e4644762a
merge trunk
2016-12-02 19:01:40 +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
jan.nijtmans
6a1787475c
implement "I64" format in Tcl_ObjPrintf as well. Still to be tested.
2016-12-02 15:52:09 +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
limeboy
13a4d32330
merge trunk
2016-12-01 12:01:01 +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
2efba704b3
merge trunk
2016-11-30 03:16:46 +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
dgp
fd49860e24
merge trunk
2016-11-29 13:50:34 +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
804199d4b7
Implement the "package forget" part, which was still missing. Handle the case that a filename contains spaces.
2016-11-29 09:45:20 +00:00
dgp
e615b54704
merge trunk
2016-11-28 16:08:33 +00:00
jan.nijtmans
1df184e860
slightly simpler
2016-11-28 15:29:36 +00:00
jan.nijtmans
b7e862c565
Complete implementation, tests and documentation
2016-11-28 13:17:47 +00:00
jan.nijtmans
ee6806b80d
Add "package files" testcase, which doesn give the right answer. So still work to do
2016-11-26 17:47:27 +00:00
dkf
cdb6b73776
Implementation of improved notifier from Lucio Andrés Illanes Albornoz.
2016-11-25 15:44:43 +00:00
jan.nijtmans
ecda933dfc
Merge trunk.
...
Implementation looks complete. Still missing: test-cases and documentation.
2016-11-25 15:06:13 +00:00
limeboy
8fe50e3f91
Windows support and minor touchups to the documentation.
2016-11-25 14:53:20 +00:00
limeboy
3d5c28f527
Minor documentation touchups.
2016-11-25 13:27:56 +00:00
jan.nijtmans
df537d0dfb
Eliminate some macros that are no longer used/needed.
2016-11-25 11:47:54 +00:00
jan.nijtmans
7a6b829025
Merge trunk, and fix two socket test-cases.
2016-11-25 09:38:04 +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
limeboy
e123cfc452
Forgot a - in the parameters array.
2016-11-24 21:15:15 +00:00
limeboy
467b6eeb8e
Allow a boolean argument to be passed.
2016-11-24 21:01:43 +00:00
jan.nijtmans
43f0f22700
merge trunk
2016-11-24 20:55:43 +00:00
limeboy
07020d6350
First round of documentation update.
2016-11-24 20:28:42 +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
jan.nijtmans
2cbc2f1993
merge fork
2016-11-24 16:21:20 +00:00
jan.nijtmans
1b0d436cc7
Starting implementing the "package files" command. TIP still to be written.
2016-11-24 16:20:05 +00:00
limeboy
15b2687d3c
Adjust the tests and add a handful of new ones.
2016-11-24 15:00:36 +00:00
jan.nijtmans
c2f9601344
Make compileEpoch "unsigned int", and start counting at 1.
2016-11-24 13:33:32 +00:00
jan.nijtmans
842d6d00f1
Fix compile error if SO_REUSEPORT not supported. Put command options in alphabetical order
2016-11-24 13:18:10 +00:00
limeboy
1859293255
Implement the whole TIP 456 specification.
...
Also introduces the `-reuseaddr' and `-reuseport' options for the `socket'
command.
2016-11-24 12:47:21 +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
32f810fc3b
Fix indenting
2016-11-22 11:24:48 +00:00
jan.nijtmans
6989a199e7
Added stub entry for tip #456 . Documentation and tests still missing. Doesn't conform to TIP yet.
2016-11-22 11:21:00 +00:00
jan.nijtmans
ee70b22d59
This is patch.002 from ticket [0b9d3ba2ba3e1e3fc33c97d5a9fa7ef85d11a696|0b9d3ba2ba], as first start of tip-456 implementation
2016-11-22 10:06:18 +00:00
jan.nijtmans
990d6fd6f1
More internal use of size_t in stead of int.
2016-11-21 10:15:24 +00:00
dgp
e2d691eda8
merge trunk
2016-11-18 18:02:04 +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
dgp
16483765ba
merge trunk
2016-11-16 15:04:10 +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
21d4596064
Merge core-8-6-branch. Remove (temporarily) write-functions from zipfs. Let first TIP-version handle read-only functions only.
2016-11-14 15:51:03 +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
dgp
9b461748a0
merge trunk
2016-11-14 12:16:38 +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
jan.nijtmans
5f738db586
Merge core-8-6-branch. Update upstream changes to zipfs.c
2016-11-07 11:16:52 +00:00
dgp
4dc2505e43
First draft refactoring the [string first] functionality.
2016-11-04 21:29:30 +00:00
dgp
fbc3a63f6c
merge trunk
2016-11-04 15:52:17 +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
jan.nijtmans
76bb4d1ea4
merge core-8-6-branch
2016-11-02 12:09: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
f2262dec1c
merge trunk
2016-11-01 16:18:43 +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
506f1152a8
merge trunk
2016-10-21 13:12:33 +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
33d0dac397
merge trunk
2016-10-20 16:37:42 +00:00
dgp
925bd5794e
Use memcmp where possible.
2016-10-18 19:16:35 +00:00
dgp
4cb3305614
merge trunk
2016-10-14 19:54:55 +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
029c8634fd
merge trunk
2016-10-13 17:04:50 +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
9fde0d3e5a
Correct improper NULL return from initializing Tcl_InitStringRep(o, b, 0).
...
Go ahead and return pointer to space where 0 bytes can be written.
2016-10-12 17:31:48 +00:00
dgp
aec96db016
Reduce direct use of the tclEmptyStringRep.
2016-10-12 16:58:20 +00:00
dgp
e97fab49d3
Purge another direct access to bytes field.
2016-10-12 15:14:51 +00:00
dgp
eee33c1731
merge trunk
2016-10-12 14:11:39 +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
ec7df3f449
Purge more direct accesses to bytes field.
2016-10-07 21:06:04 +00:00
dgp
7b2a90493f
Use the new purity test.
2016-10-07 19:04:44 +00:00
dgp
3304a8bc1e
merge trunk
2016-10-07 18:53:27 +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
dgp
d0002e5394
New routine Tcl_HasStringRep() and first conversion of callers.
2016-10-07 16:36:42 +00:00
dgp
3119d45e4c
merge trunk
2016-10-07 13:06:17 +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
dgp
f87d2e5bb6
merge trunk
2016-10-04 18:29:23 +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
4db368d595
merge core-8-6-branch
2016-10-03 14:56:00 +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
hypnotoad
9dfe53af4a
Re-created the build mods for tip#340. Something I was doing was screwing with building
...
a proper shell
2016-10-02 18:42:56 +00:00
hypnotoad
e58a9dabbe
Typo fix for Makefile.in
2016-10-02 18:30:43 +00:00
hypnotoad
3e0c5c6c90
Pulling change from trunk
2016-10-02 12:00:56 +00:00
gahr
c4f7e08fc6
[4d5ae7d88a] Restore default-to-error logic in TcpConnect
2016-09-27 20:06:49 +00:00
jan.nijtmans
e9e40f5f02
merge core-8-6-branch
2016-09-26 15:03:11 +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
dgp
ffc62d0068
merge trunk
2016-09-16 16:43: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
hypnotoad
a4dbdda700
Adding build scripts to implement Tip#453
2016-09-14 15:11:12 +00:00
hypnotoad
5bf83d86b6
Further adaptations and improvements to practcl.
...
And get, tclsh make.tcl basekit even works now
2016-09-14 15:04:41 +00:00
hypnotoad
3c85e6e0ef
Pulling changes from trunk
2016-09-14 13:38:30 +00:00
hypnotoad
58ab27bf86
Fixed the line endings on practcl.tcl
2016-09-14 13:36:27 +00:00
hypnotoad
824b71f959
Beginning work in earnest on Tip#430 and Tip#453
...
Renamed zipfs.c to tclZipfs.c. Eliminated tclZipfs.h.
Removed the bootstrap introduced by Odie/Androwish. With zipfs in the core
one only needs to specify the TclPreInitScript
The project at least builds on OSX. Working on Windows under MSYS/MinGW next
Added a local snapshot of practcl.
2016-09-14 13:33:32 +00:00
dgp
07b7df0b0e
merge trunk
2016-09-09 12:42:09 +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
jan.nijtmans
c3c935369d
merge core-8-6-branch
2016-09-08 07:24:06 +00:00
dgp
227c81511f
merge trunk
2016-09-08 03:29:09 +00:00
hypnotoad
e14a1e9e3d
Pulling changes from Trunk
2016-09-08 03:01:05 +00:00
hypnotoad
5c93243c18
Pulling changes from zipfs
2016-09-08 03:00:04 +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
bd1370959e
merge core-8-6-branch
2016-08-30 13:42:21 +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
jan.nijtmans
a852495cf6
merge zipfs
2016-08-19 13:42:12 +00:00
jan.nijtmans
9a7f1bd48c
merge core-8-6-branch
2016-08-19 08:58:35 +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
bc8b826f65
merge trunk
2016-07-26 19:20:55 +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
d7890f281b
merge trunk
2016-07-20 21:31:04 +00:00
dgp
0050652afb
Stop internals intrusion into lists.
2016-07-20 20:39:16 +00:00
dgp
3e5f21836f
Revise "parsedVarName" type to use proposed interfaces.
2016-07-20 19:47:31 +00:00
dgp
7d307a1ae7
merge trunk
2016-07-20 17:46:57 +00:00
dgp
4704b442fb
Streamline TclObjLookupVarEx
2016-07-20 17:39:04 +00:00
dgp
f989073e0d
Merge trunk; silence compiler warning.
2016-07-20 16:36:25 +00:00
dgp
5b8d20e6de
Use strchr() to parse array variable syntax.
2016-07-20 16:32:16 +00:00
dgp
837e136aa6
merge trunk
2016-07-20 15:43:29 +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
f211f9c476
Convert the "localVarName" type to the proposed interfaces.
2016-07-20 15:31:35 +00:00
dgp
43c2d3e981
merge trunk
2016-07-20 11:50:03 +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
15a1396579
merge trunk
2016-07-19 21:18:35 +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
40d62156ac
Second half "chan" Tcl_ObjType conversion. Mistake avoided this time.
2016-07-18 21:53:51 +00:00
dgp
df55f87e2d
Half convert "chan" Tcl_ObjType to new interfaces.
2016-07-18 20:59:52 +00:00
dgp
a22b8736ec
merge 8.6
2016-07-18 17:47:23 +00:00
dgp
dbb5e86cde
merge trunk
2016-07-18 17:33:54 +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
d9dbe7bb1e
merge trunk
2016-07-14 18:09:31 +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
dgp
bb9fba63c4
Merge mark without merging. Reformatting conflicts with branch edit plans.
2016-07-14 10:55:21 +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
33458f6fe4
merge trunk
2016-07-13 19:25:32 +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
dgp
020fdb84f4
yup
2016-07-13 17:25:47 +00:00
dgp
059410842d
another
2016-07-13 17:02:24 +00:00
dgp
a13a688507
and another
2016-07-13 16:02:04 +00:00
dgp
792e537014
another one
2016-07-13 15:43:44 +00:00
dgp
9a0684671a
More of the same.
2016-07-12 21:41:42 +00:00
dgp
e2e1132eba
Prefer removal of just known invalid interp over destruction of all intreps.
2016-07-12 21:38:25 +00:00
dgp
ca5093b1ea
Prefer removal of just known invalid intrep over destruction of all intreps.
2016-07-12 21:36:13 +00:00
dgp
694ffb7454
convert ensembleCmdType to new interfaces.
2016-07-12 21:32:25 +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
d28c66ab23
merge trunk
2016-07-12 19:42:28 +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
d5fb92d9a3
merge trunk
2016-07-11 22:04:34 +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
6abeee6109
merge trunk
2016-07-10 19:35:28 +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
3408cb4cab
merge trunk
2016-07-09 17:21:31 +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
3f704efe4e
merge trunk
2016-07-02 20:43:16 +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
dgp
7add065e0f
merge trunk
2016-06-29 16:07:24 +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
3f1e1192cb
merge trunk
2016-06-28 16:31:27 +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
jan.nijtmans
47cb19c83f
merge core-8-6-branch
2016-06-23 11:51:36 +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
a9aed18760
merge trunk
2016-06-22 18:59: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
50dbacbaf0
merge trunk
2016-06-17 03:06: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
f4cc5617a6
merge core-8-6-branch
2016-06-14 10:00:04 +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
dgp
cebf94f0db
merge trunk
2016-06-03 13:31:52 +00:00
jan.nijtmans
e48602d674
Merge core-8-6-branch
2016-06-03 13:22:58 +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
dgp
c8d1b2568b
merge trunk
2016-05-24 12:17:06 +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
jan.nijtmans
e9a8c42972
merge core-8-6-branch
2016-05-19 11:46:43 +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
f707c50e9d
merge trunk
2016-05-13 16:03:59 +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
6c3864d50e
Revise encodingType to use proposed routines.
2016-05-10 17:22:14 +00:00
dgp
2c218563b3
merge trunk
2016-05-10 16:53:20 +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
0d83fc1704
More ByteCode revisions.
2016-04-30 17:47:40 +00:00
dgp
9f2bd1e80f
typo
2016-04-29 20:34:29 +00:00
dgp
c22277cf6a
more revisions
2016-04-29 20:33:43 +00:00
dgp
2e23e829d9
Revise the "exprcode" Tcl_ObjType to proposed routines.
2016-04-29 20:20:33 +00:00
dgp
be804ed5e6
Revise "assemblecode" Tcl_ObjType to proposed routines.
2016-04-29 20:04:12 +00:00
dgp
29704cd895
merge trunk
2016-04-29 19:32:20 +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
5bcc7fa342
merge core-8-6-branch
2016-04-24 16:14:07 +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
8819aab738
repair merge
2016-04-22 18:57:38 +00:00
dgp
aeecfffbb1
merge trunk
2016-04-22 18:13:43 +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
712675a744
Revise "dictIterator" objType to use proposed routines.
2016-04-20 18:02:45 +00:00
jan.nijtmans
b0c45c3ad0
merge core-8-6-branch
2016-04-18 09:35:33 +00:00
dgp
53c50e58bf
Use static name for a static struct.
2016-04-11 17:46:20 +00:00
dgp
5ebe18e5ec
merge trunk
2016-04-11 17:34:04 +00:00
dgp
3f2f704c28
[d1f55451c6] Remove unnecessary panic routines.
2016-04-11 17:29:47 +00:00
dgp
a56a457941
merge trunk
2016-04-11 17:16:31 +00:00
dgp
2c83a6f53e
Revise the "end-offset" objType to use proposed routines, and not export or
...
provide unneeded things.
2016-04-11 01:07:31 +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
dgp
22da94979e
merge trunk
2016-04-08 16:12:45 +00:00
jan.nijtmans
e1e49c9dd1
Merge core-8-6-branch, cherry-pick [ http://www.androwish.org/index.html/info/04ea31271c40789d |04ea31271c40789d]
2016-04-08 14:55:57 +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
dgp
17cdd5f2d2
merge trunk
2016-04-08 12:43:07 +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
188ebe6ceb
Revise the "TclOO method name" objType to use proposed routines.
2016-04-07 21:34:21 +00:00
dgp
b42de3a4f3
Revise "levelReference" ObjType to use proposed routines.
2016-04-07 21:07:26 +00:00
dgp
f51c126c9d
merge trunk
2016-04-07 14:57:12 +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
jan.nijtmans
18ba46bf37
merge core-8-6-branch
2016-04-07 09:19:05 +00:00
dgp
73c4c7d5e5
[213b6a2b9d] Make level parsing honor EIAS.
2016-04-06 18:24:05 +00:00
dgp
9cf82aad7e
close fork
2016-04-05 21:06:01 +00:00
dgp
99b30a2b32
merge trunk
2016-04-05 12:13:00 +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
jan.nijtmans
5b719a2281
merge core-8-6-branch
2016-04-05 08:23:23 +00:00
dgp
08b6a144bd
Revise the "procbody" Tcl_ObjType to use proposed routines.
2016-04-05 00:05:35 +00:00
dgp
cf086db3f2
merge trunk
2016-04-04 22:01:45 +00:00
dgp
90bb5bf23c
Use new routine TclGetLambdaFromObj to better isolate the "lambdaExpr" ObjType.
...
Then convert it to use the proposed routines.
2016-04-04 22:00:02 +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
cbfce81f38
Use simple name for file static struct.
2016-04-04 19:41:07 +00:00
dgp
68e9e6b533
merge trunk
2016-04-04 18:28:13 +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
dgp
6661778d6e
Revise "nsName" ObjType to use proposed routines.
2016-04-04 18:12:42 +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
aec00dd13c
Revise "instname" ObjType to use proposed routines
2016-04-04 17:43:32 +00:00
dgp
e51db8046c
Revise "regexp" Tcl_ObjType to use proposed routines.
2016-04-04 17:27:24 +00:00
dgp
f28ed288b8
merge trunk
2016-04-04 16:38:32 +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
dgp
1dc5de0179
Revise "dict" Tcl_ObjType to use proposed routines.
2016-03-30 23:16:21 +00:00
dgp
0a4081dc57
Revise several ACCEPT_NAN stanzas.
2016-03-30 17:55:59 +00:00
dgp
7721fe8b51
Remove direct access to Tcl_Obj typePtr field that does nothing of any
...
obvious benefit.
2016-03-30 17:15:44 +00:00
dgp
f324e94785
merge trunk:
2016-03-30 15:41:32 +00:00
jan.nijtmans
421817ca2c
merge trunk
2016-03-30 12:57:27 +00:00
jan.nijtmans
edbf30e23a
merge core-8-6-branch
2016-03-30 09:20:54 +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
395d0889b0
merge core-8-6-branch
2016-03-30 07:52:15 +00:00
dgp
30d0cf44cb
Functional conversion of "list" Tcl_ObjType to proposed routines.
...
Not yet completely tidy and finished.
2016-03-29 20:07:42 +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
dgp
4a7725e917
merge trunk
2016-03-28 00:55:59 +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
dgp
dcb52d2ea8
A few more easy conversions.
2016-03-27 17:07:50 +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
dgp
e29e96a9e1
Conversion of "bytearray" Tcl_ObjType - much better this time.
2016-03-27 15:37:07 +00:00
dgp
25fa1a3a8c
Revised design - have Tcl_FetchIntRep return a writable pointer.
2016-03-27 14:57:09 +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
dgp
6fd2ed3f11
Convert the "bytearray" Tcl_ObjType to use the proposed Tcl_ObjIntRep
...
manipulation routines. This works, but requires too much ugliness.
The ugliness reveals that the interface needs some refinement, making
this a rejected branch of development.
2016-03-26 12:36:01 +00:00
dgp
0276b6e644
irPtr = NULL passed to Tcl_StoreIntRep clears out any value for typePtr.
2016-03-25 20:01:39 +00:00
dgp
3bd8840931
Get signatures in sync.
2016-03-25 19:56:56 +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
36cf99464d
First demonstration conversion to the new intrep manipulation routines.
2016-03-25 14:01:00 +00:00
dgp
f19cbcbff5
New routines Tcl_FetchIntRep() and Tcl_StoreIntRep().
2016-03-25 13:06:53 +00:00
dgp
c7039276a0
Create a type Tcl_ObjIntRep so we can pass intreps as arguments.
2016-03-25 12:24:04 +00:00
dgp
1f136d8cb6
merge trunk
2016-03-24 21:22:51 +00:00
dgp
9acaee3d40
No longer a need to keep around 'revert to 8.5' code.
2016-03-24 21:21:42 +00:00
dgp
a5e1e1f33e
Revise the "index" Tcl_ObjType to use the new routine.
2016-03-24 21:11:52 +00:00
dgp
1bebb796bb
Revise the "instname" Tcl_ObjType to use the routines.
2016-03-24 20:33:27 +00:00
dgp
a19375e928
oops
2016-03-24 20:17:52 +00:00
dgp
413706af15
Update Tcl_InitStringRep callers to handle OOM condition.
2016-03-24 20:15:01 +00:00
dgp
8370f3e275
Revise Tcl_InitStringRep() to do non-panic attempt at allocation.
...
Let caller decide how catastrophic it is.
Revise [string repeat] to use new routine.
2016-03-24 19:21:47 +00:00
dgp
959413c95a
More purging of direct access to bytes field where it isn't important.
2016-03-24 15:01:43 +00:00
dgp
325b2f4ade
Update more Tcl_ObjTypes to use Tcl_InitStringRep().
...
Adapt TclInitStringRep macro to accept TclInitStringRep(objptr, NULL, 0)
without warning -- requires outwitting compiler.
2016-03-24 14:40:35 +00:00
dgp
83ac8470a0
TclInitStringRep() already knows about tclEmptyStringRep.
2016-03-24 13:50:59 +00:00
dgp
f6b543ae94
oops
2016-03-24 13:16:42 +00:00
dgp
e9a10d7cda
stay out of internals when nice interfaces are available.
2016-03-24 12:59:06 +00:00
dgp
dc0adeafb4
Revised "end-offset" Tcl_ObjType to use new routine.
2016-03-24 12:51:49 +00:00
dgp
80bc5b30c2
Revise "osType" Tcl_ObjType to use new routine.
2016-03-24 01:50:58 +00:00
dgp
0412f3af19
Revise "ensembleCommand" Tcl_ObjType to use new routines.
2016-03-23 21:50:15 +00:00
dgp
c79a28077f
Convert "dict" Tcl_ObjType to use new routines.
2016-03-23 21:36:29 +00:00
dgp
6bd1189ac2
merge trunk
2016-03-23 15:21:35 +00:00
dgp
422d353b0a
Tcl_InitStringRep() bug. Truncation assumed length == allocated. Wrong!
...
Convert "bytearray" Tcl_ObjType to used new facilities. No longer directly
refers to bytes or length fields, or any ckalloc of string rep.
2016-03-23 15:19:05 +00:00
jan.nijtmans
ba0d107038
merge core-8-6-branch
2016-03-23 15:12:01 +00:00
dgp
847f2ba0d5
Revise Tcl_InitStringRep(); numBytes is unsigned. Only truncation permitted.
2016-03-23 14:10:39 +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
dgp
cae0944eda
Release memory after truncation.
2016-03-23 10:10:10 +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
dgp
37f5c2af03
Make sure no path emerges to write on tclEmptyStringRep.
2016-03-23 04:50:21 +00:00
dgp
95de12dbb4
Next step: new routine Tcl_InitStringRep()
2016-03-23 04:31:24 +00:00
dgp
de712c24fb
First simple step implementing TIP 445.
2016-03-22 23:45:12 +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
jan.nijtmans
763f9dff55
minor upstream changes
2016-03-02 15:39:32 +00:00
dgp
80c9e6511b
[bbc304f61a] Proposed fix for reflected watch race condition.
2016-03-02 15:29:48 +00:00
jan.nijtmans
bbcef5b648
merge trunk
2016-03-02 15:10: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
hypnotoad
b3b6f6ff99
Pulling *more* changes from zipfs
2016-02-08 21:59:46 +00:00
hypnotoad
71b97d16f3
Merging changes from zipfs
2016-02-08 21:58:12 +00:00
dgp
160d612a6b
update release date
2016-02-08 20:42:59 +00:00
jan.nijtmans
25d1f4aa03
Merge trunk
2016-02-08 16:11:13 +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
jan.nijtmans
22f5c55560
Upstream zipfs change and unbreak zipfs test-case
2016-01-29 09:17:55 +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
3cf33e9e9f
merge trunk
2016-01-24 16:57:57 +00:00
jan.nijtmans
727efcf012
Fix "make test" broken by previous commit
2016-01-24 16:52:56 +00:00
jan.nijtmans
a288c5e54a
Merge trunk.
...
Depend on ensemble now, adapt documentation.
2016-01-23 20:33:38 +00:00
Miguel Sofer
4df5497f65
add a test to insure that callbacks run at the correct C-stack depth while unwinding the NRE stack.
2016-01-23 19:46:58 +00:00
jan.nijtmans
37fed62502
Eliminate useless variable assignment.
2016-01-22 10:38:36 +00:00
jan.nijtmans
c3dccf7196
Improve code 'quality' by fixing some harmless clang/cppcheck warnings. Thanks to Gustaf Neumann. No change in functionality.
2016-01-22 10:27:29 +00:00
jan.nijtmans
c3e9d3205f
Add "zipfs" ensemble.
2016-01-22 08:45:38 +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
227fbec0fc
Merge trunk, upstream fixes to zipfs.c for win32
2016-01-19 10:43:40 +00:00
jan.nijtmans
fe1ab20fb7
One more Tcl_GlobalEval() usage.
2016-01-18 15:00:49 +00:00
jan.nijtmans
dc21089720
Merge trunk
2016-01-18 14:33:32 +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
jan.nijtmans
f6bb864fc7
Minor tweaks in documentation/testcases. Don't use deprecated Tcl methods any more
2016-01-18 09:28:55 +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
hypnotoad
bd7d14f293
Reconciled the inner workings of the core_zip_vfs and zipfs branch of Tcl
...
core_zip_vfs now uses the same C implementation. More fixes to come as I
tweak the userspace and Makefile tools. The goal is to fold core_zip_vfs
into the zipfs branch.
2016-01-12 19:03:55 +00:00
jan.nijtmans
982211da16
Merge trunk. Update documentation
2016-01-09 23:02:42 +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
jan.nijtmans
a1740d9766
Make al zipfs command Tcl_Obj-based
2016-01-01 16:50:52 +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
e9795fb407
first shot at documentation
2015-12-22 11:39:28 +00:00
jan.nijtmans
299924e512
Remove TIP #414 fragment, not strictly needed for the zipfs TIP.
...
Add more zipfs test-cases
2015-12-22 09:11:57 +00:00
jan.nijtmans
a03e74efc1
USE_TCL_STUBS is not defined anyway
2015-12-21 21:25:40 +00:00
jan.nijtmans
3c03a492f9
Start with a few simple basic test-cases
2015-12-21 15:21:21 +00:00
jan.nijtmans
56c5833c4a
Eliminate all use of ZIPFS_IN_TCL
2015-12-21 14:01:57 +00:00
jan.nijtmans
63b07461da
Fix android compilation (zipfsFilesystem.loadFileProc is a constant, so it cannot be written)
2015-12-21 12:43:54 +00:00
jan.nijtmans
1c3288f038
Finally, make it compile warning-free using Visual Studio, if ZIPFS_IN_TCL is defined
2015-12-21 11:59:08 +00:00
jan.nijtmans
8ecd6aeb5b
Make it compile warning-free with MSVC compiler (VS2013, at least). Other tweaks.
2015-12-21 11:29:38 +00:00
jan.nijtmans
4d00715902
CONST -> const
2015-12-21 10:49:36 +00:00
jan.nijtmans
95aeb2a3d6
Merge trunk.
...
Remove utf-32 encoding, will not be part of the "zipfs" TIP.
2015-12-21 10:38:12 +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
b0a98f480d
Undo more Android-specific changes, which don't form part of Zipfs, as further preparation for Zipfs TIP.
...
Rename zipfs.h to tclZipfs.h, so it can be installed together with tcl.h
2015-12-21 10:03:06 +00:00
jan.nijtmans
cb73551e8d
Start of "zipfs" branch, meant for keeping track of the proposed changes for a new TIP. Remove some android-specific build/configure files.
2015-12-21 09:31:36 +00:00
jan.nijtmans
4d946107e7
Put back the stub entries for TclpGetDate/TclpLocaltime/TclpGmtime. Although those functions are dead (they will be removed in Tcl 9, already done in the "novem" branch), removing those functions is a good idea, this cannot be done in any 8.x release. It hinders the acceptance of a "zipfs" TIP, therefore this change should not be part of the "androwish" change-set.
2015-12-21 09:16:38 +00:00
jan.nijtmans
c795f44ea5
upstream androwish change
2015-12-18 12:39:24 +00:00
jan.nijtmans
ecd9567624
Minor tweaks on ZIPFS_IN_TCL
2015-12-17 15:23:27 +00:00
jan.nijtmans
d6fdfa4624
minor tweaks for MSVC
2015-12-17 12:04:22 +00:00
jan.nijtmans
58ace2b1dc
remove unnecessary Tclzipfs defines in tclStubInit.c
2015-12-16 15:18:59 +00:00
jan.nijtmans
8f6089f225
No need for more than tcl.h in zipfs.h
2015-12-16 13:37:20 +00:00
jan.nijtmans
19627fed47
Remove zipfs symbols from stub table. Those symbols should be exported as-is, without using the stub mechanism.
2015-12-16 13:26:54 +00:00
jan.nijtmans
83145e2bb1
merge trunk
2015-12-16 13:21:58 +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
jan.nijtmans
621c76324a
Merge trunk. Upstream zipfs change
2015-12-15 09:31:57 +00:00
dkf
0b00017862
Issue the correct auxType when compiling [array set].
2015-12-12 11:54:33 +00:00
jan.nijtmans
e961e1c08a
Merge trunk. Upstream androwish changes
2015-12-11 22:56:07 +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
e740674cb8
Merge trunk. Upstream zipfs change
2015-12-09 10:20:02 +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
23ced66a6b
merge trunk
2015-11-30 07:37:05 +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
b637222a5d
merge trunk
2015-11-25 21:07:55 +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
jan.nijtmans
9a0f7dd2c8
merge trunk
2015-11-22 16:06:02 +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
jan.nijtmans
440e5fc7dc
Merge trunk
2015-11-18 08:53:34 +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
74ed7238b0
merge trunk
2015-11-14 21:37:35 +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
jan.nijtmans
38d734ddcf
better handle out-of-memory conditions in ZIP filesystem
...
hard-wire initial encoding on Android to UTF-8
2015-11-03 13:13:14 +00:00
jan.nijtmans
cbeed9da92
Merge trunk. Added comments in ZIP filesystem (no functional changes)
2015-11-01 22:04:02 +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
jan.nijtmans
a369d46795
merge trunk
2015-10-28 09:04:46 +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
dkf
1956f4b66b
merge trunk
2015-10-26 07:23:58 +00:00
hypnotoad
90b38da321
Merged with trunk, fixes to allow builds outside of the tcl/unix|win directory
2015-10-26 04:02:36 +00:00
jan.nijtmans
4594b4f27a
merge trunk
2015-10-25 22:59:16 +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
ff3f0131bd
Merge trunk
2015-10-25 20:14:13 +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
jan.nijtmans
5b793fef99
merge trunk
2015-10-23 08:52:41 +00:00
jan.nijtmans
13aa1642ac
Merge trunk
2015-10-23 08:13:49 +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
d905cc4737
merge trunk
2015-10-18 10:48:54 +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
d954f3c4ee
Merge trunk
2015-10-14 19:04:36 +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
c770024ce1
merge trunk
2015-10-09 19:11:11 +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
c1f95640c4
merge trunk
2015-10-07 07:23:01 +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
48ef2b50eb
merge trunk
2015-10-06 10:50:56 +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
071aa09c6e
merge trunk
2015-10-04 09:42:24 +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
10cd3c906d
merge trunk
2015-09-30 13:57:25 +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
0fca37f803
merge trunk
2015-09-29 21:20:04 +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
jan.nijtmans
9dd94f7396
Don't use mutex retry mechanism on Android. (problems ???)
2015-09-28 10:58:30 +00:00
jan.nijtmans
ce65c7b396
merge trunk
2015-09-27 12:59:23 +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
a80a084de9
merge trunk
2015-09-23 11:35:03 +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
jan.nijtmans
ddc625f2fe
merge trunk
2015-09-22 08:06:16 +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
842b15b839
fixed bug in zipfs error handling (backported from androwish)
2015-09-17 11:47:04 +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
4506b4536b
Merge trunk
2015-09-02 07:16:50 +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
dbe627594e
Dependancies from androwish upstream
2015-08-31 17:30:01 +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
130fe11f2b
Merge trunk, but remove experimental tip-389-impl merge.
2015-08-31 10:22:29 +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
3bce1ab6f2
Merge tip-389-impl (experimental)
2015-08-24 19:39:40 +00:00
jan.nijtmans
fe773c0a46
merge trunk
2015-08-24 19:35:08 +00:00
jan.nijtmans
ecc90e3787
one more....
2015-08-24 08:01:23 +00:00
jan.nijtmans
6e0d4b6761
Remove unused internal stub entries as well.
2015-08-24 07:58:42 +00:00
jan.nijtmans
53ad2ab17d
Merge trunk.
...
Throw away TclpGetDate, TclpLocaltime and TclpGmtime and all related dead code. It makes the androwish binary (somewhat) smaller.
2015-08-21 13:29:06 +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
jan.nijtmans
a2a59dfb75
merge trunk
2015-08-19 09:06:22 +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
jan.nijtmans
829af34165
merge trunk. Put back some (actually unused) Tclp*UnixTime functions.
2015-08-17 14:48:56 +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
1579eae899
merge trunk
2015-08-06 04:33:49 +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
jan.nijtmans
6fcdce9c74
merge trunk
2015-07-16 05:31:51 +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
ac785323be
merge trunk. Undo unnecessary changes in tclEncoding.c, making it equal to trunk again (thanks to Christian Werner for testing this on androidwish).
2015-07-15 14:52:25 +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
d68207f7ca
Remove unused local variables. Now unix/tclUnixTime.c is idential in "androwish" compared to "novem". (Yes, those functions are planned to be removed in Tcl 9.0!)
2015-07-15 09:31:11 +00:00
jan.nijtmans
ddc615491d
Merge trunk.
...
Remove TclpLocaltime, TclpGmtime and TclpGetDate completely, in order to prove that those functions are not used anywhere within Tcl any more. They are only retained for the internal stub entries, which might be used by extensions, but androwish doesn't use that.
2015-07-15 09:22:01 +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
jan.nijtmans
b1031c0d07
merge trunk
2015-07-15 07:52:41 +00:00
andy
1b5d2f150d
Spell out [info exists] in example code for [exit] command.
2015-07-14 21:38:05 +00:00
jan.nijtmans
cdba31b9d5
merge trunk
2015-07-13 09:41:02 +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
jan.nijtmans
83da0d6374
merge trunk
2015-07-02 13:18:19 +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
bb504b06b4
merge trunk
2015-07-02 12:19:15 +00:00
jan.nijtmans
fb6b7a8d8d
Remove unnecessary end-of-line spacing in compat/*.c
2015-07-02 12:17:26 +00:00
jan.nijtmans
55717aeaea
merge trunk
2015-07-02 12:10:35 +00:00
jan.nijtmans
e886aae69e
merge trunk
2015-07-02 09:18:59 +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
jan.nijtmans
adceea62b6
Branch for androwish, as help to keep track on which android-specific changes could be included into the core without harm.
2015-06-21 22:29:11 +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
348f13ad57
Merge trunk. Upgrade to Unicode 8.0
2015-06-18 13:09:52 +00:00
jan.nijtmans
f43007cdd8
Upgrade all internal Unicode tables from Unicode 7.0 to Unicode 8.0
2015-06-18 12:54:30 +00:00
jan.nijtmans
e6c567a325
Upgrade all internal Unicode tables from Unicode 7.0 to Unicode 8.0
2015-06-18 12:24:53 +00:00
Joe Mistachkin
7ba021af61
Rename the new API to TclMutexUnlockAndFinalize as it is not platform-specific.
2015-06-17 20:32:01 +00:00
jan.nijtmans
d4bb7bdf65
Change Tcl_MutexUnlockAndFinalize() to internal function TclpMutexUnlockAndFinalize(). This does not require a TIP, and still should fix the reported bug.
2015-06-16 15:24:51 +00:00
jan.nijtmans
5fc6bbc782
Fix [e770d92d76]: Add support for higher baud rates in Tcl
2015-06-16 08:41:38 +00:00
jan.nijtmans
d948ee6daa
Fix [e770d92d76]: Add support for higher baud rates in Tcl
2015-06-16 07:39:37 +00:00
aspect
e008d75c19
lreplace: more tests, doc improvement
2015-06-16 03:33:22 +00:00
aspect
ea9f9ac81e
fix for a4cb3f06c4fe - bug introduced in 32b61592465
2015-06-16 00:41:39 +00:00
Joe Mistachkin
e99979bfcf
Plug memory leaks in the Tcl_ZlibInflate() error handling code. Fix for ticket [478c446889].
2015-06-11 02:47:41 +00:00
hypnotoad
2d6d821ea4
Patch to add support for higher baud rates under Unix Ticket [e770d92d76]]
2015-06-10 21:53:47 +00:00
Joe Mistachkin
5c4acfb73f
The unit for usleep() is microseconds, not milliseconds.
2015-06-08 20:56:50 +00:00
dgp
4c5f334c06
Stop documentation lie about command rename traces and comment lie about
...
what's done with them in TclOO.
2015-06-08 17:19:09 +00:00
dgp
51bbc67659
Stop telling lie about command delete traces.
2015-06-08 17:17:14 +00:00
Joe Mistachkin
0f3896176d
Merge thread test typo fixes from trunk.
2015-06-05 19:59:59 +00:00
Joe Mistachkin
2e30712093
Fix typo in three thread tests.
2015-06-05 19:58:42 +00:00
Joe Mistachkin
9cfa94b1da
Add stress test.
2015-06-05 19:56:12 +00:00
Joe Mistachkin
810baa10b8
Merge updates from trunk.
2015-06-04 20:49:11 +00:00
dgp
6f63d23863
[268b23df11] Revised patch to create phony source string when the
...
original script does not actually contain the command being invoked.
(Example: the tcl::mathfunc::* command invoked via [expr] interpretation)
2015-06-03 19:08:15 +00:00
dgp
aef7e0d6d9
Put the ellipsis inside, not outside, the close quote.
2015-06-03 17:40:10 +00:00
dgp
94d9bfa884
[268b23df11] When GetSrcInfoForPc() returns NULL, make sure it also sets
...
the length to a non-positive value so nothing tries to read offsets from
a NULL pointer.
2015-06-03 12:26:38 +00:00
oehhar
6f959222be
Make all msgcat tests pass
2015-06-01 15:16:58 +00:00
oehhar
8f43773d55
clock.tcl modified that all clock tests pass
2015-05-31 19:03:56 +00:00
oehhar
b4cd8e5d9c
merge trunk
2015-05-31 16:20:06 +00:00
dgp
15c03f09c9
merge trunk
2015-05-28 12:28:48 +00:00
Joe Mistachkin
7f5f2ddc7f
Make sure the necessary mutexes are in a well-known state across calls to fork().
2015-05-28 00:53:33 +00:00
Joe Mistachkin
d249a8af5d
Fix typo in previous check-in.
2015-05-27 22:34:53 +00:00
Joe Mistachkin
e8d057ad67
Make sure the master and mutex locks are in a well-known state across the fork() call.
2015-05-27 22:29:25 +00:00
andreask
450b7aafd0
Make tweak to the mem-debug tracking official. It is now again possible to use regular packages with a mem-debug core without inciting a panic.
2015-05-27 18:35:46 +00:00
andreask
a0d647ab06
Make tweak to the mem-debug tracking official. It is now again possible to use regular packages with a mem-debug core without inciting a panic.
2015-05-27 18:25:38 +00:00
dkf
8c32ef71da
Added missing marker for incompatibility.
2015-05-26 10:16:24 +00:00
jan.nijtmans
756d989440
Remove useless code, trying to sync win32 environment variables with cygwin's. cygwin1.dll is responsible for doing that. Taken over from cygwin's tcl fork.
2015-05-25 20:23:09 +00:00
jan.nijtmans
d93aaadc5e
Remove useless code, trying to sync win32 environment variables with cygwin's. cygwin1.dll is responsible for doing that. Taken over from cygwin's tcl fork.
2015-05-25 19:15:25 +00:00
Joe Mistachkin
17420ef9f0
Minor compilation issue fix, make sure variable declaration (via macro) is first.
2015-05-22 23:26:29 +00:00
andreask
907aebaab8
Moved Tcl_Obj* objThreadMap release tracking to a location where regular packages will call through, enabling their full tracking by the core, and thus avoiding the "expected to create new entry for object map" panic seen otherwise.
2015-05-22 20:21:48 +00:00
Joe Mistachkin
967856b8f8
Additional mutex locking/unlocking during fork() to keep things synchronized.
2015-05-21 17:58:49 +00:00
dgp
2ce1ce01c5
Missed a bit
2015-05-20 15:15:46 +00:00
dgp
babd0b88a0
[29044ba23f] Remove RANLIB as part of library installation. At best it's
...
redundant to the RANLIB already done as part of library build. At worst, it
conflicts with needs of cross-compiling. Thanks Erik Leunissen.
2015-05-20 15:12:50 +00:00
dgp
0f54d7701d
Don't change autoconf version by accident.
2015-05-20 13:45:33 +00:00
dgp
bd81f35273
merge trunk
2015-05-20 13:37:21 +00:00
dkf
deaa520c80
Simplify code generation for a list of literals. Generates slightly simpler bytecode too.
2015-05-19 20:34:10 +00:00
dkf
acdb6bc384
Tidier version.
2015-05-19 20:29:47 +00:00
dgp
6be68f173f
Don't cause string rep generation in [list <lit> <lit> ... <lit>] bytecode.
...
Candidate for merge to trunk to simplify bytecode.
2015-05-19 19:22:48 +00:00
dkf
0ae5b5b3c1
regenerate configure
2015-05-18 20:41:46 +00:00
Joe Mistachkin
0dd03dfef9
First attempt at implementing the necessary auto-magic for usleep.
2015-05-18 20:33:56 +00:00
Joe Mistachkin
2e3d1fac48
Adjust tweaks from the previous check-in to prepare for configure detection of usleep().
2015-05-18 18:23:29 +00:00
dkf
fdf990faf5
[11250a236d] Made the documentation of non-greediness overrides more obvious.
2015-05-18 08:20:43 +00:00
dkf
58f3361635
[c11a51c482] Stop race condition with -accept config option, and allow overriding of it via -headers option.
2015-05-18 07:51:54 +00:00
Joe Mistachkin
282b159f3b
Temporary tweaks to allow Thread package tests to pass on Unix.
2015-05-17 23:45:53 +00:00
Joe Mistachkin
e403d82b18
This should completely fix the race conditions at the cost of more complexity. Also, on Unix, a more reliable means than Tcl_Sleep() of sleeping for a short time is needed.
2015-05-17 22:13:39 +00:00
Joe Mistachkin
c489e47329
Update header file with the TIP number.
2015-05-17 20:13:59 +00:00
Joe Mistachkin
a32cc9b49b
Fix deadlock.
2015-05-17 20:10:47 +00:00
Joe Mistachkin
e3a528bc44
Merge updates from trunk.
2015-05-17 19:49:44 +00:00
Joe Mistachkin
12d28d084d
Fix typo in the previous check-in.
2015-05-17 19:46:04 +00:00
Joe Mistachkin
fc49271c0a
Draft fix for a potential race condition in the new Tcl_MutexUnlockAndFinalize API. Not yet tested.
2015-05-17 18:03:15 +00:00
dkf
8c1c07d4bf
[ad6696285c] Correction of description of filter behaviour with 'unknown'.
2015-05-17 12:56:06 +00:00
dkf
4240cb00f0
[ad6696285c] Demonstrate that filters are not called for destructors.
2015-05-17 12:06:31 +00:00
Joe Mistachkin
1a30606518
Reword and clarify the doc changes from the previous check-in.
2015-05-16 06:59:27 +00:00
Joe Mistachkin
99cc729bd2
First draft of the necessary doc changes.
2015-05-16 06:49:00 +00:00
dkf
9d64916f18
[0f42ff7871] Remove unintentional difference between interpreted and compiled [next].
2015-05-15 14:40:00 +00:00
dkf
c9e70a3901
[9dd1bd7a74] Ensure that [self] returns a sensible value in a destructor even when construction didn't complete.
2015-05-15 13:54:52 +00:00
dgp
c11a7a6b08
Bump to http 2.8.9
2015-05-14 11:19:27 +00:00
dkf
6135265f5c
[6a71dbe6ec] Ensure that compression errors log correctly.
2015-05-14 08:23:52 +00:00
dkf
1913208e18
[b9d0434667] Prefer the gzip encoding for transfers. It's less efficient, but
...
it is far more interoperable and that's a more important metric.
2015-05-14 08:05:37 +00:00
dgp
73deb43f4f
Added contributed tests from aspect
2015-05-12 15:00:16 +00:00
dgp
205345779a
merge trunk
2015-05-12 14:45:48 +00:00
dgp
92ce12cc43
test portability
2015-04-30 15:31:42 +00:00
dgp
1754a9a311
Test portability.
2015-04-30 15:31:17 +00:00
dgp
91d8b69074
merge mark
2015-04-29 20:35:05 +00:00
dgp
d3e04b3a76
Use joinable threads to avoid thread finalization crashes.
2015-04-29 20:34:26 +00:00
dgp
3b743160f6
[894da183c8] Test and fix for regression in flushing blocked channels.
2015-04-29 18:16:36 +00:00
dgp
09d67aff95
[894da183c8] Test and fix for regression in flushing blocked channels.
2015-04-29 18:00:15 +00:00
dgp
227d96bf13
[894da183c8] Fix and test for bug at the point it was introduced.
2015-04-29 16:34:33 +00:00
venkat
fd9d40cb5b
Merge tzdata2015d from ietf.org
2015-04-29 07:56:01 +00:00
venkat
f108505a5b
Update to tzdata2015d from ietf.org
2015-04-29 07:54:51 +00:00
dgp
90b9288358
[879a0747be] Repair handling of incomplete multi-byte chars at the ends of input buffers. Also properly reset input encoding flags when cycling through a fleeting EOF condition.
2015-04-24 20:17:12 +00:00
dgp
5ecd3fa2b6
[879a0747be] Repair handling of incomplete multi-byte chars at the ends
...
of input buffers. Also properly reset input encoding flags when cycling
through a fleeting EOF condition.
2015-04-24 20:06:27 +00:00
dgp
a46cd743dd
Fix UtfToUtfProc() to remove the potential to read beyond end of input buffer.
2015-04-24 15:48:56 +00:00
dgp
ae445193f4
Fix UtfToUtfProc() to remove the potential to read beyond end of input buffer.
2015-04-24 15:47:58 +00:00
oehhar
459a48dc5c
Open linked folder shared on Windows - Patch [19ea026e43]
2015-04-23 12:17:53 +00:00
oehhar
1590eb50c5
Open linked folder shared on Windows - Patch [19ea026e43]
2015-04-23 11:21:41 +00:00
jan.nijtmans
c3f11e7741
Fix [8065d178229d8d335eee64d36ada37c4dedf2579|8065d17822]: Duplicate -DNDEBUG in compiler command with --disable-symbols
2015-04-20 10:35:20 +00:00
Miguel Sofer
9f710e45a9
bring in dgp's improvements to zippy
2015-04-17 20:52:12 +00:00
dgp
c472223773
Reduce the list walking by keeping lastPtr fields.
2015-04-16 12:27:04 +00:00
dgp
7f030a6b44
Revise the zippy dance that pushes Blocks and Tcl_Objs back the shared pool
...
so that the overal operation remains a FIFO. This help preserve cache locality
where it exists. The price (for now) is a bit more time walking to the end
of free lists. If this is important, the addition of a lastPtr field could
fix it without difficulty.
2015-04-15 19:57:41 +00:00
jan.nijtmans
de7a370d58
Fix [a0a251e4e478977334da51e346cddff8ec3fbf52|a0a251e4e4]: tcl 8.6.4 compilation on windows with msys and VS2013 fails
2015-04-10 09:23:39 +00:00
Joe Mistachkin
63f824a7e9
Add new public Tcl C API to allow a mutex to be unlocked and then finalized atomically. Candidate fix for bug [57945b574a].
2015-04-09 19:53:39 +00:00
dkf
805cd597f9
Don't warn about warnings that are suppressed correctly now.
2015-04-09 09:27:00 +00:00
dkf
1f2fb4cf5b
Squelch otherwise-unavoidable OSX warnings. It's like magic!
2015-04-09 09:20:29 +00:00
Miguel Sofer
3d5869fb4b
improve comments for TclMarkTailcall and friends
2015-04-08 19:08:57 +00:00
dgp
6d6afda39d
Correction suggested by miguel. Passes test suite and fixes bug demos.
2015-04-08 16:42:33 +00:00
dgp
7fc61f369b
Proposed fix.
2015-04-08 14:37:58 +00:00
dkf
c6e6569dfe
Don't fetch values we don't need.
2015-04-04 11:47:53 +00:00
dgp
bc7e4c5d68
There's no need to constrain the declaration of Tcl_GetMemoryInfo().
2015-03-24 18:27:09 +00:00
dgp
cd70770139
Tcl source code already assumes the <limits.h> file is available.
...
(See tcl/libtommath/tommath.h .) So dispose of all the configuration
shenanigans pretending we want to support systems that lack one.
2015-03-24 17:34:05 +00:00
Miguel Sofer
63e0947392
fix comments describing tailcall implementation
2015-03-23 16:05:04 +00:00
Miguel Sofer
4ed03a1f4b
fix comments describing tailcall implementation
2015-03-23 13:46:08 +00:00
Miguel Sofer
ee626d5909
more comments
2015-03-23 13:43:37 +00:00
Miguel Sofer
d4166a6b3a
updated, improved tailcall comments
2015-03-23 02:11:30 +00:00
Miguel Sofer
e325a4742e
branch for ordering and grouping the tailcall related code, and especially clean up the comments
2015-03-23 01:01:30 +00:00
Miguel Sofer
2cc11d4918
completing the fix for bug d87cb182053fd79b3
2015-03-23 00:33:07 +00:00
Miguel Sofer
7dbf5ed0b0
adding a test to reveal a problem with the fix of bug d87cb182053fd79b3
2015-03-21 15:08:35 +00:00
dgp
1292a0d927
[d87cb18205] Let compiled ensembles handle tailcalls properly.
2015-03-21 00:31:29 +00:00
dgp
6003e823bf
Remove STRICT directive from public header. It does approximately nothing,
...
and doesn't belong in generic code.
2015-03-20 19:57:13 +00:00
ashok
50426ba9c5
Ticket [e66e444440]. Modified ReadConsoleBytes to handle Ctrl-C / Ctrl-Break
...
and not return 0 bytes indicating EOF for those cases.
2015-03-19 10:41:28 +00:00
hypnotoad
e448db56ee
Checkpointing the core_zip_vfs branch against the lastest release
2015-03-17 01:07:44 +00:00
dgp
f399206c21
Upon further review, due the order of #include of headers, we do not have
...
a history of a #define STRICT active when the #include "windows.h" in
tclWinPort.h happens. Don't want to start something new now.
2015-03-13 17:14:16 +00:00
dgp
b2c41c81e4
The STRICT directive influences how #include "windows.h" works.
...
This is not a generic concern. Move it over the tclWinPort.h.
2015-03-13 16:55:39 +00:00
dgp
0e5a1e2642
merge release
2015-03-12 14:47:17 +00:00
dgp
74708147ba
update changes
2015-03-11 12:30:39 +00:00
dgp
b199b80ba8
merge trunk
2015-03-11 12:26:36 +00:00
dgp
226278b0ac
merge mark
2015-03-11 12:25:52 +00:00
Kevin Walzer
2c4d707b8f
Fix or at least improvement for Tcl/Tk Cocoa event loop by forcing Tcl_ServiceAll() event processing: http://core.tcl.tk/tk/tktview/3028676fffffffffffffffffffffffffffffffff
2015-03-10 14:44:47 +00:00
Kevin Walzer
544df0c1b8
Fix or at least improvement for Tcl/Tk Cocoa event loop by forcing Tcl_ServiceAll() event processing: http://core.tcl.tk/tk/tktview/3028676fffffffffffffffffffffffffffffffff
2015-03-10 14:41:03 +00:00
dgp
8c7378b541
.RS/.RE balance
2015-03-06 19:55:38 +00:00
dgp
4f07b18244
make html must tolerate bundled packages using configure.ac over configure.in.
2015-03-06 19:48:31 +00:00
dgp
f396811dd5
product of a make dist
2015-03-06 19:43:42 +00:00
dgp
83f6249875
merge mark
2015-03-06 16:39:07 +00:00
dgp
27503d10cd
merge release
2015-03-06 15:26:03 +00:00
dgp
761a093174
repair nroff breakage
2015-03-06 15:06:02 +00:00
dgp
97739f4d09
repair nroff breakage
2015-03-06 14:59:11 +00:00
dgp
f14d6cb130
products of "make dist"
2015-03-06 14:38:38 +00:00
dgp
07bc28e627
update release date
2015-03-06 14:17:48 +00:00
dgp
4a22756b41
update changes
2015-03-03 21:29:08 +00:00
dgp
94f2309f51
merge trunk
2015-03-02 22:38:09 +00:00
ashok
dfc57be3b1
Deleted Win95/98-specific documentation as those platforms have long been unsupported.
2015-03-02 08:54:14 +00:00
dgp
ec9c80bba9
autoconf-2.59
2015-02-26 16:58:52 +00:00
dgp
7e79080ed7
Bump to 8.6.4.
2015-02-26 16:57:59 +00:00
dgp
75e1a82785
update changes
2015-02-24 15:08:02 +00:00
dgp
434f351abc
merge 8.5
2015-02-20 20:22:17 +00:00
dgp
8104f5f53d
[32b6159246] Accept aspect patch for broken [lreplace] bytecode.
...
No more [lreplace {1 2 3} 2 0] => 1 2 2 3
2015-02-20 20:19:48 +00:00
dgp
b3e2027137
[e08c2c407b] The getHandleProc routine in the Tcl_Channel struct is optional. Update the docs to make that clear.
2015-02-20 19:30:48 +00:00
dgp
28fe834bc3
[e08c2c407b] The getHandleProc routine in the Tcl_Channel struct is
...
optional. Update the docs to make that clear.
2015-02-20 19:29:20 +00:00
bch
2919fd5221
per ticket [e08c2c407b053bbfaab] (and stray code related to [84f208762f172e]) adj code to passing test suite
2015-02-19 22:01:36 +00:00
bch
e4089d79b3
Do not fault! Tcl_Panic()! - improvements to handling Tcl_CreateChannel() args
2015-02-19 19:19:42 +00:00
bch
87e36a4aa9
backout backwards-incompatible experiment that was accidentally committed
2015-02-19 19:16:37 +00:00
bch
6d6598bbcb
sync w/ [trunk]
2015-02-19 18:57:26 +00:00
aspect
bb005f26e4
undo erroneous change in [1fa2e32e07]
2015-02-19 06:29:18 +00:00
aspect
b8674e42d2
handle [lreplace l x y ...] where y<x
2015-02-19 02:42:13 +00:00
aspect
48650316e3
(core ticket [32b6159246]) Fix for [lreplace l x y] where y<x-1
2015-02-19 02:34:43 +00:00
dgp
b1ad5d16a7
merge 8.5
2015-02-12 15:13:32 +00:00
venkat
d90a15ace1
merge tzdata2015a from ietf.org
2015-02-11 23:54:00 +00:00
dkf
fc506f9ca9
Even clearer failure messages.
2015-02-11 15:56:27 +00:00
dgp
48bab372b9
merge mark
2015-02-11 03:43:22 +00:00
venkat
f6b7fa43d6
merge tzdata2015a from ietf.org
2015-02-11 00:19:01 +00:00
bch
4214c7a3a9
inputProc and outputProc tests run conditionally on TCL_READABLE, TCL_WRITABLE mask
2015-02-08 05:04:33 +00:00
bch
02cc7437b2
switch raw assert() to Tcl_Panic() per discussion w/ dkf
2015-02-07 21:19:05 +00:00
bch
9d3e75eb7a
merge [trunk]
2015-02-07 21:12:18 +00:00
dgp
4d7ebbdc94
update changes
2015-02-06 19:56:56 +00:00
dgp
22ce6aeb4b
merge 8.5
2015-02-05 19:24:27 +00:00
dgp
2fabe1cead
Backport of channel mem leak fix that got missed before.
2015-02-05 19:23:35 +00:00
dgp
4b3f548c27
Bump to version 8.5.18.
2015-02-05 18:17:07 +00:00
dgp
3f9555d4c2
Fix [08872796bc]
2015-01-29 18:39:11 +00:00
dgp
8acaf40209
Test for bug [08872796bc].
2015-01-29 18:36:45 +00:00
dgp
8ee4bdf94d
Test for bug [08872796bc].
2015-01-29 18:34:50 +00:00
dgp
579463bcec
Protect against extension variable resolvers that fail to play by the post-Var Reform rules.
2015-01-29 17:48:19 +00:00
dgp
2f36a2d349
Protect against extension variable resolvers that fail to play by
...
the post-Var Reform rules.
2015-01-29 17:37:59 +00:00
jan.nijtmans
6a233e935b
Fix [df08482b042a16007f256bfbaaacfbe0def01074|df08482b04]: Double defined INFINITY in regguts.h
2015-01-26 20:56:01 +00:00
jan.nijtmans
4d5ff6cd13
Fix [df08482b042a16007f256bfbaaacfbe0def01074|df08482b04]: Double defined INFINITY in regguts.h
2015-01-26 20:47:23 +00:00
bch
acad581479
truncateProc *can* be NULL
2015-01-21 00:21:18 +00:00
bch
52d37c087d
assert() on missing definitions for Tcl_ChannelCreate() required struct Tcl_ChannelType{} fields.
2015-01-20 23:40:23 +00:00
jan.nijtmans
dd60d52814
apply contributed patch which fixes a segfault
2015-01-17 18:40:19 +00:00
jan.nijtmans
428c3163c5
merge trunk
2015-01-17 17:42:53 +00:00
dgp
5e6453d592
merge mark
2015-01-02 22:43:45 +00:00
dgp
f16ec6e776
Now that we're using TCL_ENCODING_NO_TERMINATE - be careful about acting on
...
the contents of dst -- they could be leftovers. Only check bytes reported
to have been written and take care to get the assertions right.
2015-01-02 22:42:12 +00:00
dgp
42c1a1e15a
Revert use of the install-headers target. Tcl 8.5 has no such target.
2015-01-02 15:19:23 +00:00
dgp
5cd16427f7
Add two new (undocumented) flags to the Tcl_ExternalToUtf() interface.
...
TCL_ENCODING_NO_TERMINATE rejects the default behavior of appending a
terminating NUL byte to the produced Utf output. This permits use of all
of the dstLen bytes provided, and simplifies the buffer size calculations
demanded from callers. Perhaps some callers need or appreciate this default
behavior, but for Tcl's own main use of encodings - conversions within I/O -
this just gets in the way.
TCL_ENCODING_CHAR_LIMIT lets the caller set a limit on the number of chars
to be output to be enforced by the encoding routines themselves. Without
this, callers have to check after the fact for going beyond limits and
make multiple encoding calls in a trial and error approach.
Full compatibility is supported. No defaults are changed, and the flags
have their effect even if an encoding driver has not been written to support
these flags (but greater efficiency is enjoyed if they do!).
All of Tcl's own encoding drivers are updated to support this. Other encoding
drivers may exist somewhere, but I cannot point to any.
A TIP to document this and make it officially supported may come in time.
2014-12-23 18:39:35 +00:00
dgp
1ddabb17f9
Support TCL_ENCODING_CHAR_LIMIT in TableToUtfProc and EscapeToUtfProc drivers.
2014-12-23 17:53:21 +00:00
dgp
a3babfe12a
Support TCL_ENCODING_CHAR_LIMIT in the Iso88591ToUtfProc driver.
2014-12-23 17:48:36 +00:00
dgp
b6fecacc22
Support TCL_ENCODING_CHAR_LIMIT in the UnicodeToUtfProc driver.
2014-12-23 17:46:05 +00:00
dgp
360b5c41ee
Support TCL_ENCODING_CHAR_LIMIT in the UtfToUtfProc driver.
2014-12-23 17:26:07 +00:00
dgp
5a6443d00e
Support TCL_ENCODING_CHAR_LIMIT in the BinaryProc driver.
2014-12-23 17:13:13 +00:00
dgp
7134cd9399
Use the new TCL_ENCODING_CHAR_LIMIT flag to have the encoding system manage
...
the max chars to read constraint.
2014-12-23 16:57:02 +00:00
dgp
1a92fb378c
merge trunk
2014-12-23 03:11:01 +00:00
dgp
ef6f1ba2c3
Use more suitable variable name pushers.
2014-12-23 02:41:54 +00:00
dgp
b0078c8129
Eliminate TclIsLocalScalar(). No callers left.
2014-12-23 02:12:59 +00:00
dgp
49e7d0262b
Revise CompileEachloopCmd() to use LocalScalar() in place of TclIsLocalScalar().
2014-12-23 01:28:30 +00:00
dgp
2cbec4bf44
Convert the LocalScalar*() macros to rest on TclPushVarName rather than on
...
TclIsLocalScalar().
2014-12-22 20:27:14 +00:00
dgp
7ac39417f1
Use (interp == NULL) argument to TclPushVarName() to signal that no compiling
...
is desired. Only a lookup of an index into the compiled variable table.
2014-12-22 20:13:29 +00:00
dgp
3faf4cc3b8
More complete use of the TCL_NO_ELEMENT flag to suppress useless actions.
2014-12-22 19:57:36 +00:00
dgp
9f699d22a2
merge mark
2014-12-22 17:12:50 +00:00
dgp
13667e8096
One more (interp==NULL) shortcut.
2014-12-22 15:35:47 +00:00
dgp
51f7688e96
merge-mark. The compiler machinery has changed too much for any hope for
...
a successful merge. TclIsLocalScalar() elimination will need to be done
on trunk as an independent effort.
2014-12-19 17:57:04 +00:00
dgp
f6d6b394eb
Revise name and interface of new utility routines to match work already
...
in place on the trunk.
2014-12-19 17:09:32 +00:00
dgp
7e44dabec3
[e711ffb458] Eliminate TclIsLocalScalar() and revise all callers to use
...
more appropriate facilities.
2014-12-19 16:09:20 +00:00
dgp
cfefe7127b
New utility routine GetLocalScalarIndex() reduces common caller boilerplate
...
(and fixes a bug!)
2014-12-19 15:55:21 +00:00
dgp
2613112a13
Use interp==NULL argument to PushVarName to signal that only an index into
...
the CLT is sought, and no time should be wasted compiling other cases which
the caller is just going to discard.
2014-12-19 15:13:11 +00:00
dgp
18131f9c09
With no callers left, TclIsLocalScalar() is removed.
2014-12-19 14:21:42 +00:00
dgp
baf649278a
Replace TclIsLocalScalar() with PushVarNameWord() in [dict for] compiler.
2014-12-19 14:17:03 +00:00
dgp
88ec3c9772
Narrow scope of numVars.
2014-12-19 03:31:09 +00:00
dgp
ad19550909
A bit more tidying...
2014-12-18 22:25:27 +00:00
dgp
aed72bee30
No need for a loopIndex.
2014-12-18 22:13:11 +00:00
dgp
f65cb994d8
No need for varvList any more.
2014-12-18 22:00:08 +00:00
dgp
893c9c7302
Fix up the token array passed to PushVarNameWord. Remove string list parse.
2014-12-18 21:29:07 +00:00
dgp
24817641b1
Replace use of TclIsLocalScalar() and late setting of varIndexes with an
...
earlier setting of varIndexes using PushVarNameWord().
2014-12-18 21:08:53 +00:00
dgp
89e6a65411
Simplify creation and storage of temporaries
2014-12-18 20:38:53 +00:00
dgp
f664d633e6
With that shift, varcList is no longer needed.
2014-12-18 20:34:12 +00:00
dgp
d56e61b246
Shift the allocation of AuxData earlier in the [foreach] compiler.
2014-12-18 19:21:31 +00:00
dgp
8dd58baa04
merge 8.5
2014-12-18 18:16:10 +00:00
dgp
559113cc4c
[7c187a3773] Fix error in managing inStatePtr->inQueueTail value in the
...
byte-moving optimized path of [chan copy]. Thanks to Benno.
2014-12-18 18:06:51 +00:00
dgp
5dafefe112
[af08e89777] Rework finalization to stop encoding-24.2 segfault.
2014-12-18 14:38:26 +00:00
dgp
955507f635
Rework the *FinalizeThread*() routines so that the quick exit preference
...
is respected without need to run afoul of encoding finalizations.
tests pass now. All changes are fully internal.
2014-12-17 20:47:58 +00:00
dgp
e942227f6e
Revise encoding finalization so that it does a more complete job of restoring
...
the pre-initialized state. This makes finalization errors more repeatable
and cross-platform.
2014-12-17 19:57:40 +00:00
oehhar
68b5780dde
changes for TIP427
2014-12-17 11:21:16 +00:00
oehhar
3b7664e77f
Include option -connecting in test iocmd-8.15.1
2014-12-17 08:42:24 +00:00
oehhar
b47b88af9b
TIP-427: make "fconfigure $h -connecting" official (client sockets only)
2014-12-17 08:24:33 +00:00
oehhar
d7a9d63520
Documented "fconfigure $h -connecting" on socket man page
2014-12-17 08:22:23 +00:00
oehhar
f716d8815b
Merge trunk
2014-12-17 07:53:41 +00:00
jan.nijtmans
4e0313afe2
85 -> 86
2014-12-15 10:20:39 +00:00
jan.nijtmans
d9b30b94b8
merge-mark
2014-12-14 12:13:30 +00:00
Kevin Walzer
2f8ea1be7c
Add header install flag to OS X GNUMakefile; thanks to Stephan Houben for patch
2014-12-13 02:50:07 +00:00
Kevin Walzer
59cb45cc16
Add header install flag to OS X GNUMakefile; thanks to Stephan Houben for patch
2014-12-13 02:47:25 +00:00
dgp
ee5c231ff5
Similar conversion of the [dict append] compiler.
2014-12-11 16:00:19 +00:00
dgp
604faa265f
Similar conversion for [dict update] compiler.
2014-12-11 15:45:16 +00:00
dgp
8e80c62f6f
Similar revisions to [dict incr] compiler.
2014-12-11 15:19:38 +00:00
dgp
a417c667a5
Get the word number right, even though it has no effect.
2014-12-11 14:41:09 +00:00
dgp
26326004c6
[e711ffb458] Same conversion for [catch] compiler.
2014-12-11 14:40:02 +00:00
venkat
0318c256ed
merge tzdata2014j from ietf.org
2014-12-10 00:37:24 +00:00
venkat
704532c57a
tzdata2014j from ietf.org
2014-12-10 00:35:37 +00:00
dgp
2d415cbf59
[e711ffb458] Replace TclIsLocalScalar() with PushVarNameWord() in the
...
compiler for [dict set].
2014-12-09 20:45:30 +00:00
dgp
916f1716f3
[e711ffb458] Replace TclIsLocalScalar() (which does the wrong thing).... with
...
PushVarNameWord() (which doesn't) in the compiler for [dict lappend].
2014-12-09 20:29:09 +00:00
jan.nijtmans
d297273a13
Fix some gcc compiler warnings (probably cygwin-only)
2014-12-08 16:10:00 +00:00
jan.nijtmans
b27238fbbb
Fix some gcc compiler warnings (probably cygwin-only)
2014-12-08 16:05:19 +00:00
oehhar
7466351c90
test for bug [c6ed4acfd8]: running async socket connect with other connect established will block tcl as it goes in an infinite loop in vwait
2014-12-07 12:17:24 +00:00
ashok
58bde2cb77
Potential fix for [c6ed4acfd8].
...
Simple typo in original fix for [336441ed59]. Was looping on
statePtr->next instead of statePtr2->next. Would result in
an infinite loop. Definitely a bug but whether it completely
fixes the above in all cases needs to be tested.
2014-12-06 11:19:32 +00:00
dgp
40420634aa
Ever since (Tcl)PushVarName() stopped making a recursive call to Tcl_ParseCommand() (in the pre-8.4.0 timeframe), there's been no need for special protections for brace-quoted varname words. A simple word is a simple word is a simple word.
2014-12-05 21:28:00 +00:00
dgp
b52476a5cd
Ever since (Tcl)PushVarName() stopped making a recursive call to
...
Tcl_ParseCommand() (in the pre-8.4.0 timeframe), there's been no need
for special protections for brace-quoted varname words. A simple word
is a simple word is a simple word.
2014-12-05 21:05:17 +00:00
hypnotoad
339d4879a0
Bringing core_zip_vfs up to date with trunk
2014-12-05 15:05:08 +00:00
dgp
bc8ffb3922
[d2ffcca163] Limit parsing results that are documented to accept only ASCII chars to actually follow that constraint. This requires not trusting isalnum(.) and isalpha(.) to deliver portable identical results.
2014-12-05 12:28:01 +00:00
dgp
bfb321eb38
[d2ffcca163] Limit parsing results that are documented to accept only
...
ASCII chars to actually follow that constraint. This requires not trusting
isalnum(.) and isalpha(.) to deliver portable identical results.
2014-12-04 22:10:57 +00:00
dgp
5c1b9fefdf
Limit isalpha(.) calls in the expr parser to only apply to known ASCII
...
arguments to make the results portable.
2014-12-04 21:29:18 +00:00
dgp
6d936db4a3
The isalpha(.) calls remaining in the expr parser still bring nonportability.
...
Commit a test that demonstrates that.
2014-12-04 20:45:11 +00:00
dgp
dd4c175c81
Stop using isalnum(.). Its results are not portable. Replace with our
...
own private routine TclIsBareword() that does exactly what we want.
2014-12-04 18:26:31 +00:00
dgp
29b10229de
merge 8.5
2014-12-04 13:02:43 +00:00
dgp
bff00baca2
And then another merge mark to finish.
2014-12-03 23:55:39 +00:00
dgp
7dfd9c5a96
Now make the patch by hand that fossil could not merge.
2014-12-03 23:54:16 +00:00
dgp
05971adca4
Just a merge mark since fossil cannot do it right.
2014-12-03 23:51:36 +00:00
dgp
2f3edeea43
[0c043a175] backport fix from trunk.
2014-12-03 23:46:51 +00:00
Miguel Sofer
0c0be35710
missing unset in new test
2014-12-03 23:34:36 +00:00
Miguel Sofer
137e142be2
fix var($) problem, bug [0c043a175] (thx dgp)
2014-12-03 23:27:45 +00:00
Miguel Sofer
8694763c10
test and fix (thx dgp)
2014-12-03 23:17:16 +00:00
dkf
58cd08bb7d
[0dca3bfa8f] Strengthen validity checks on fast-path string comparison.
2014-12-03 23:05:15 +00:00
Miguel Sofer
730a9a132c
adding a test for the bug
2014-12-03 13:22:53 +00:00
andreask
d7cf041bab
Fix missing export of the "NewForeachInfoType" AuxData structure for tbcload/tclcompiler packages.
2014-12-01 20:17:04 +00:00
dgp
03f0d60f88
Same issue in expr parser also tested and fixed.
2014-11-26 17:00:55 +00:00
dgp
92402afe21
I like this patch better. Retain the byte orientation of the parser.
2014-11-26 16:22:40 +00:00
dgp
d9465a5be2
One way to fix the parser of $-substitution accepting non-ASCII varnames.
2014-11-25 21:24:06 +00:00
dgp
52bcb866e5
merge trunk
2014-11-24 03:11:23 +00:00
dgp
7f5ddf43ee
[e087812465] Trim back operatorStrings array to just the entries that are needed. Trims away the part of the array that was out of sync with the opcodes.
2014-11-24 03:08:50 +00:00
dgp
484de8b987
[e087812465] Trim back operatorStrings array to just the entries that are
...
needed. Trims away the part of the array that was out of sync with the opcodes.
2014-11-24 03:00:03 +00:00
jan.nijtmans
2b3e403550
Fix [743338466549f09e3956d8a86e6f9a8030f227cb|7433384665]: socket error encoding bug.
2014-11-21 13:05:31 +00:00
hypnotoad
ded95f89d3
Added the zvfstools file to the installer
2014-11-17 15:04:05 +00:00
dgp
fa8d5668aa
merge trunk
2014-11-17 13:00:42 +00:00
dgp
24d57ad4ff
Add to Tcl_ExternalToUtf() a capability to impose a limit on the number
...
of chars produce in the encoding result. When the flag
TCL_ENCODING_CHAR_LIMIT is set and dstCharsPtr is not NULL, then the
initial value of *dstCharsPtr is taken as the max number of chars to produce.
The limit is imposed in a way that does not require the assistance of the
encoding's driver procs, but the flag is passed on to them in case they
can do better when they know they should. No callers updated yet.
No drivers updated yet.
One difficulty is that this necessarily imposes a pre-translation limit,
and the I/O system has a history of wanting to impose only a post-translation
limit.
2014-11-15 21:46:19 +00:00
dgp
3185389da2
With no padding needed for a terminating NUL, there no need for a distinction
...
between the dstNeeded and dstLimit values.
2014-11-15 21:13:52 +00:00
dgp
164250cf86
Tcl_ExternalToUtf appends a terminating NUL to its encoded results.
...
Perhaps this is a welcome convenience for some callers, but not for Tcl's
I/O system, which has no need for that. Added a new flag value
TCL_ENCODING_NO_TERMINATE that callers can use to suppress this behavior.
This means buffers don't require so much padding, and a tiny bit of processing
is saved. Update I/O callers to use the feature.
2014-11-15 21:08:57 +00:00
hypnotoad
5949095693
For the feature branch we now enable Zip file functions for all shells in Unix, and
...
explicitly name a new executable "basekit", which is a statically linked tclsh
with an attached library VFS
2014-11-15 00:12:00 +00:00
jan.nijtmans
410178bb88
Merge trunk.
...
Update to Unicode 8 beta
2014-11-14 12:29:54 +00:00
jan.nijtmans
9c2149012b
Remove a number of eol-spaces. No change in functionality.
2014-11-14 09:44:34 +00:00
jan.nijtmans
6e056b1e14
Simplify NativeIsComPort() implementation: native paths never end in ':', and never use forward slashes (any more), so no need to check for that.
2014-11-13 16:08:47 +00:00
hypnotoad
9cbfbd034e
Add a mode for injecting the TkDll into the VFS
2014-11-13 15:50:08 +00:00
hypnotoad
3b50f8bcd6
Removed _ANSI_ARGS_ macros. They were not compiling in Tk for some reason today...
2014-11-13 14:58:01 +00:00
hypnotoad
85442c797c
Tweak to delete the tclzsh.vfs directory before the rm -rf tclvfs* statement
...
in "make clean"
2014-11-13 14:30:26 +00:00
hypnotoad
3e723b7f5e
Merging in changes from trunk
2014-11-13 14:13:08 +00:00
jan.nijtmans
99ee3e86d7
Improve documentation on the use of com ports (remove references to Windows 95, deprecate the use of postfix ':').
...
Allow lpt[5-9] just as com[5-9], and make sure that path normalization works as expected for ports > 4.
2014-11-13 12:52:29 +00:00
jan.nijtmans
3bbc2317b3
Improve documentation on the use of com ports (remove references to Windows 95, deprecate the use of postfix ':').
...
Allow lpt[5-9] just as com[5-9], and make sure that path normalization works as expected for ports > 4.
2014-11-13 12:29:04 +00:00
dgp
7d10d699c7
merge release
2014-11-12 04:35:37 +00:00
dgp
620cf6fa02
Likely fix for channel mem leaks.
2014-11-11 22:23:57 +00:00
dkf
98e4ac55d2
[214cc0eb22] Add tests to make sure that this bug stays fixed.
2014-11-08 07:06:52 +00:00
dgp
eb64ed3cf0
Correct -singleproc 1 testing flaws.
2014-11-07 17:48:31 +00:00
dgp
5e0d1d6bc5
update changes; more test suite polishing.
2014-11-07 14:10:23 +00:00
dgp
7565b9ff1e
Make sure all uses of the [testbytestring] command are constrained.
2014-11-07 13:59:27 +00:00
andreask
10dc783c93
Merged latest trunk work (especially changes to eof handling) into the RC.
2014-11-06 18:38:36 +00:00
dgp
0c027bb706
cleanup global namespace litter
2014-11-06 17:34:40 +00:00
dgp
c658976cc3
[5adc350683] Stop Tcl forcing EOF condition on channels to be permanent. It may be fleeting, and all parts of Tcl channel ecosystem have to deal with that. New assertions and tests to keep us on track.
2014-11-06 16:34:03 +00:00
dgp
1db5ff8c2c
[5adc350683] Stop Tcl forcing EOF condition on channels to be permanent.
...
It may be fleeting, and all parts of Tcl channel ecosystem have to deal
with that. New assertions and tests to keep us on track.
2014-11-06 16:24:02 +00:00
dgp
fbba7d0b1e
merge iogt fixes.
2014-11-06 16:20:44 +00:00
dgp
559b8ab9de
Also test transfroms that delay.
2014-11-06 16:12:26 +00:00
dgp
60ef43cb8c
fix failing test
2014-11-06 15:49:30 +00:00
dgp
5c6717b7d5
New test iogt-7.0 demos bug in [testchannel transform].
2014-11-06 15:06:52 +00:00
dgp
2f8dae1cec
Another test checking that handling when transform returns nothing is right.
2014-11-06 14:52:36 +00:00
dgp
dac552ac0b
New tests iortrans-4.11* demonstrate what was wrong with the "leaky EOF flag"
...
approach in 8.6.1 and earlier. If each level of the channel stack is to have
control over its EOF independently, we have to provide for that, even though
the Filesystem read APIs make it a big pain. Also test robustness against
varing buffer sizes.
2014-11-06 13:38:01 +00:00
dgp
53ae611583
Reflected Transform channel fix. Be sure each EOF on the base channel gets
...
passed up to become an eof of the transform before continuing on to additional
ReadRaw() from the base channel. This way we don't miss fleeting EOFs.
2014-11-05 20:34:03 +00:00
dgp
57de194b09
New test iortrans-4.10 to demo failure of channel transformation to handle
...
fleeting EOF in the base channel. Falls into infinite block. Regression
compared with Tcl 8.6.1.
2014-11-05 16:47:00 +00:00
dgp
5204910c12
merge trunk
2014-11-05 16:39:16 +00:00
dgp
71d27bd9c6
[214cc0eb22] Restore [lappend $var] return value to the 8.6.1- behavior.
...
If this is going to change, lets not do it by accident.
2014-11-05 06:36:07 +00:00
dgp
3fa4ffc77a
Make sure reflected channels do not make a double call to Tcl_ReadRaw(),
...
with the unwarranted assumption that EOF is a permanent condition.
2014-11-03 21:37:37 +00:00
dgp
d2b69b306e
Same patch re-enabling read after EOF, but here applied to 8.6.
...
Likely additional changes needed in the other channel transforms new in 8.6.
2014-11-03 21:04:24 +00:00
dgp
db9946ccc3
merge 8.5
2014-11-03 20:54:12 +00:00
dgp
cb0895755d
[5adc350683] Reworked the management of the EOF states to re-enable the
...
ability to read beyond EOF. Plenty of assert()s to keep thing from going
off track again.
2014-11-03 20:39:25 +00:00
jan.nijtmans
b14c2f49d2
Add test-case for previous commit, which shows that when trying to open a filename with invalid characters gives the right error-message. (same bug existed on UNIX too, which is now fixed)
2014-11-03 12:54:25 +00:00
jan.nijtmans
48ab03f3cd
Add test-case for previous commit, which shows that when trying to open a filename with invalid characters gives the right error-message. (same bug existed on UNIX too, which is now fixed)
2014-11-03 12:44:55 +00:00
jan.nijtmans
de82a1a99e
Better errormessage when file path contains invalid characters.
2014-11-03 10:23:06 +00:00
jan.nijtmans
7ec17e20d3
Better errormessage when file path contains invalid characters. See: [03414f517b7a74].
2014-11-03 10:14:48 +00:00
dgp
d95273cf0e
Disable assertion until tls bug it detects is fixed.
2014-11-01 14:52:55 +00:00
jan.nijtmans
f87735c127
Extend WinIsReserved() to recognize COM[5-9]: as valid com ports as well. Prevent possible buffer-overflow if COM name ends with ':'.
2014-10-31 11:14:24 +00:00
jan.nijtmans
1e769e4b57
Extend WinIsReserved() to recognize COM[5-9]: as valid com ports as well.
2014-10-31 10:57:25 +00:00
jan.nijtmans
a8dc863399
When translating a reserved devicename to native pathname, strip ':' postfix. Possible fix for [dcc03414f5], but anyway a good idea.
2014-10-31 10:20:03 +00:00
jan.nijtmans
476a68cbe5
When translating a reserved devicename to native pathname, strip ':' postfix. Possible fix for [dcc03414f5], but anyway a good idea.
2014-10-31 09:59:36 +00:00
dgp
54d2883694
Base test for [5adc350683].
2014-10-29 14:54:11 +00:00
dgp
5a9b116846
merge 8.5
2014-10-29 13:49:46 +00:00
dgp
df4391e23f
Work in progress restoring ability to [read] after [eof] and get non-empty
...
strings back in those cases where the channel has them to offer. Also
working through all the implications of this possibility on Tcl's more
exotic channel features, like stacking.
2014-10-28 20:10:32 +00:00
dgp
717a98747d
merge trunk
2014-10-28 13:06:56 +00:00
jan.nijtmans
915359ddce
Support for Windows 10
2014-10-26 07:53:23 +00:00
jan.nijtmans
999c88ea06
Support for Windows 10
2014-10-26 07:51:22 +00:00
dgp
790fed46bb
merge mark
2014-10-24 20:10:39 +00:00
dgp
da01ebeabe
merge release
2014-10-24 20:07:52 +00:00
dgp
91d5ac9d0b
by request
2014-10-22 14:46:33 +00:00
hypnotoad
6b423f0d9e
Fixes to allow a standard tclsh build to do the zip file encoding, instead of
...
having to do it all through the zip enabled shell.
2014-10-21 01:20:10 +00:00
hypnotoad
bdc43f8241
Tweaked zvfstools to always allows the zvfs::mkzip command,
...
and defer the check for the rest of the zvfs tools until
the first call to zvfs::unzip
2014-10-21 01:11:22 +00:00
hypnotoad
9171dde346
Replaced calls to zip with calls to the new pure-tcl zipfile encoder embedded
...
in zvfstools.
Fixed a bug in the encoder for zvfstools. It was exporting files, but not directories.
This lack of directories was causing the bootloader to miss that /zvfs/boot/tcl/init.tcl
existed, because it was checking for the existance of /zvfs/boot/tcl. I compared the
archives created by zvfstools::mkzip to the archives created by zip, and the
difference came down to the fact that zip did create TOC entries for directories
and zvfstools::mkzip was failing to do so. (So I'm pretty sure the new behavior
is "standard.")
2014-10-21 01:04:07 +00:00
hypnotoad
6826dbab46
Added the zipfile::encode routine from Tcllib, and a rudimentary zipfile decode as a package "zvfstools"
2014-10-20 20:54:05 +00:00
hypnotoad
b2164040ac
Renamed "tclkit" to "tclzsh"
...
Removed tclzsh from "make binaries". (It the user wants it, they have to ask for it. It requires a working Tclsh and an exernal Zip)
2014-10-20 19:59:19 +00:00
hypnotoad
307bb5f72d
Removed the dual ported canonical path mapping scheme to allow Odie and FreeWrap to coexist. The results of both functions were functionally identical.
2014-10-20 01:23:11 +00:00
hypnotoad
963de5ae2a
Added thread mutex/release calls around the potentially contested regions of the code:
...
Mounting a file system
Unmounting a file system
Reading data from an archive file
The mutexes, as implemented, allow only one thread at a time access to the innards of ZipVfs. It does not try to handle the cases where two archives may be open by two different threads. (One will still have to wait until the other has finished.)
Removed all of the compiler warnings under Unix
(Still have to test the code under Windows.)
2014-10-20 01:20:54 +00:00
hypnotoad
2b022e6979
Added a "_bare" stage to capture the kit executable before the VFS is wrapped to it.
2014-10-19 20:20:09 +00:00
hypnotoad
cfd9edb0fe
Update the zipvfs implementation with additional code from both Odie and
...
Dennis LaBelle's FreeWrap.
Split the boot loader code out of tclZipVfs.c and into its own File.
Altered the structure of tclZipVfs.c to better mirror that which is distributed
in Odie and FreeWrap to make popping and swapping improvements easier.
2014-10-19 20:03:00 +00:00
seandeelywoods
74b45809d1
Bringing in the latest fixes from trunk
2014-10-19 11:06:00 +00:00
dgp
adff5bc1c6
merge trunk
2014-10-18 22:43:06 +00:00
dgp
eee56ee95a
update changes
2014-10-18 20:11:36 +00:00
dgp
9cf7e2a336
merge 8.5
2014-10-18 20:06:02 +00:00
dgp
93082a74a2
[10dc6daa37] New fix for [gets] on non-blocking channel. This time properly accounts for the effects of ENCODING_LINESIZE.
2014-10-18 20:03:08 +00:00
dgp
9f2c3815f7
[10dc6daa37] New fix for [gets] on non-blocking channel. This time
...
properly accounts for the effects of ENCODING_LINESIZE.
2014-10-18 19:50:19 +00:00
dgp
592ab670f3
[10dc6daa37] [gets] on a non-blocking channel must take care so that
...
1) At least one call to the channel driver input proc gets made.
Failure to do this locks up the channel - catastrophic FAIL.
2) After any driver call reports BLOCKED, don't call again.
This is less serious, but FAILs to respect the non-blocking setting.
Code corrections and tests included, to restore 8.5.15 compat.
2014-10-17 15:20:34 +00:00
oehhar
c0e8db49d5
fconfigure -peername and -sockname return empty string while async connect running.
2014-10-17 12:52:15 +00:00
oehhar
d7604e5728
New tests: 14.16: -peername empty while async connect running, 14.17: -sockname
2014-10-17 12:28:55 +00:00
oehhar
8e5b3b87a5
Merge trunk
2014-10-17 10:00:39 +00:00
dgp
d31d858702
Bump to Tcl 8.6.3, TclOO 1.0.3, and update changes file.
2014-10-14 18:12:36 +00:00
dgp
1234267c92
missed a bump
2014-10-13 17:34:12 +00:00
dgp
59491ce8ca
update changes file
2014-10-13 17:15:55 +00:00
dgp
ef89704696
Resolve test conflicts over global vars
2014-10-10 20:37:58 +00:00
dgp
1ce240e90f
Bump to 8.5.17
2014-10-10 20:17:12 +00:00
dgp
c132978e4b
merge mark
2014-10-10 20:02:40 +00:00
dgp
59f2031ac5
backport those tests that can be
2014-10-10 20:02:00 +00:00
dgp
f85490f4e1
[bf7135428c] Restore the Tcl_Write() return value logic.
2014-10-10 19:56:06 +00:00
dgp
c2be2a28e0
[bf7135428c] Restore the Tcl_Write() return value logic.
2014-10-10 19:54:19 +00:00
dgp
4977df535f
[ed29c4da21] Completed fix for [chan copy] handling [chan blocked].
2014-10-10 19:44:54 +00:00
ferrieux
182bace1e3
Add Colin's test for coro floor above street level [Bug #3008307 ]
2014-10-10 19:36:17 +00:00
dgp
1f33c7ae12
Another test so both DoRead and MBRead are covered.
2014-10-10 19:02:37 +00:00
dgp
78c2c1cedf
[ed29c4da21] Merge patch from 8.5, still not a complete fix.
2014-10-10 18:28:31 +00:00
dgp
186ecf8003
[ed29c4da21] Don't let BLOCKED state get converted into a channel error.
2014-10-10 18:24:32 +00:00
dgp
56c0b11912
New test io-53.15 for [ed29c4da21].
2014-10-10 16:13:53 +00:00
dgp
1df1505d69
New test io-53.15 for [ed29c4da21].
2014-10-10 15:38:15 +00:00
dgp
1a08ae6fb4
[2039178] Remove false claims about TCL_INTERP_DESTROYED flag bit in command traces.
2014-10-09 14:56:27 +00:00
dgp
891a0ade43
[2039178] Remove false claims about TCL_INTERP_DESTROYED flag bit in command traces.
2014-10-09 14:52:48 +00:00
jan.nijtmans
29d06499aa
Fix [59a2e78e54d3361c33b8cd6eef55d384d8abecd7|59a2e78e54] : tclWinTime.c does not compile with MSVC14.
...
Eliminate use of __MINGW32__ macro everywhere, as it is deprecated.
2014-10-08 07:11:53 +00:00
jan.nijtmans
ea97de415f
Fix [59a2e78e54d3361c33b8cd6eef55d384d8abecd7|59a2e78e54] : tclWinTime.c does not compile with MSVC14.
...
Eliminate use of __MINGW32__ macro everywhare, as it is deprecated.
2014-10-08 07:02:34 +00:00
dgp
b327c90dcc
fix [bc1a96407a]
2014-10-03 20:20:12 +00:00
dgp
cd1372b52d
test cases
2014-10-03 15:47:38 +00:00
dgp
3b4cf982e3
Possible fix for testing.
2014-10-02 21:40:13 +00:00
dgp
7c4da917a7
[bc1a96407a] Partial solution should avoid crash, but may lead to wrong behavior.
2014-10-02 17:43:16 +00:00
dgp
e36d384130
[bc5b790099] Improper calculation of new dstLimit value. New test io-12.7.
2014-10-02 14:46:54 +00:00
dgp
5e53c4c296
[bc5b790099] Improper calculation of new dstLimit value. New test io-12.7.
2014-10-02 14:43:10 +00:00
Miguel Sofer
78fcaa3580
Backing out commit [cddbfc3081], fix for bug [82521bfb6734f891dd]
...
The "optimisation" in that commit assumes that the last byte in the
generated bytecodes is an INST_TRY_CONVERT if it equals 64. This is an
invalid assumption, it could be 64 and not be an instruction.
2014-09-27 21:36:06 +00:00
ferrieux
11db57d058
Applied patch by Andreas Leitgeb so that [string cat]'s compiled bytecode optimally groups args by 255 for INSTR_STR_CONCAT1.
2014-09-27 20:28:47 +00:00
oehhar
822a2b50f7
Implemented tip-427: socket fconfigure option -connecting plus no -peername,-sockname when still connecting.
2014-09-26 12:05:30 +00:00
dgp
fc21aee814
comment fix
2014-09-25 18:47:32 +00:00
hypnotoad
507bab4b21
Merge with trunk
2014-09-22 18:27:45 +00:00
dkf
d06897f3ea
Added a script-readable bytecode disassembler in tcl::unsupported.
2014-09-20 12:37:19 +00:00
dkf
1598658a83
Tidy things up a bit more.
2014-09-20 11:40:35 +00:00
hypnotoad
f45b6c1066
Merge from trunk
2014-09-19 06:36:34 +00:00
jan.nijtmans
192fa71096
merge-mark
2014-09-17 10:47:21 +00:00
tne
ebebb29be9
Walked back modifications to tclConfig.sh.in
...
(Builds don't require them anymore)
2014-09-17 08:33:16 +00:00
tne
2e0b2484a9
Removed non-working tclkit-direct makefile technique
2014-09-17 08:31:21 +00:00
hypnotoad
ff7a13136d
Added a "make tclkit" to makefile
...
Removed debugging fprintf
2014-09-16 23:07:44 +00:00
stwo
76db7c5c04
Better pic flag for OpenBSD.
2014-09-16 15:52:44 +00:00
stwo
85f3786d9c
Better pic flag for OpenBSD.
2014-09-16 15:48:48 +00:00
hypnotoad
4b8398a6ed
Removed non-working code from the end of the mkVfs.tcl script
2014-09-15 14:59:20 +00:00
hypnotoad
a684c1a281
Modified the makefile to produce a distinct name for a kit depending on whether
...
it was compiled statically or dynamically.
This allows builders to run and install successive builds of Tcl both
statically and dynamically.
2014-09-15 10:04:50 +00:00
hypnotoad
b25f4f5272
The unix build has been pared down to the minimum hooks required to build a
...
VFS enabled Tclsh with a simple compile flag. Modified the BC and Visual Studio
makefiles for Windows, but these are untested.
The default for Tcl is now to build a static or dynamic shell in the same
way it would build a static or dynamic shell for Tclsh. Controlled by the
--enable-shared flag. Note however that ZLib is compiled in to every
VFS enabled shell. (Rather than rely on a dylib.)
The "direct" build is maintained in the Makefile, mostly as a h(istor|yster)ical
reference. The technique is not portable to Windows, and may not work outside of
OSX.
2014-09-15 09:44:39 +00:00
dkf
5e0835667d
whitespace tweak
2014-09-14 17:11:33 +00:00
dkf
26fe5fff38
merge trunk
2014-09-14 16:51:49 +00:00
hypnotoad
c003b95ed4
Backing out code that inserted a debug statement into the http package
2014-09-12 16:13:00 +00:00
hypnotoad
0cbfed0c55
Merging in changes from trunk
2014-09-12 16:06:13 +00:00
hypnotoad
ee30b1c0ab
Developed an improved bootloader built around TclSetPreInitScript. The new bootloader
...
now mounts the VFS before the interpreter is initialized, and gives it enough
hints to point to the VFS for init.tcl and main.tcl (If present)
Also, Tcl_ZVfs_Boot now takes and additional argument: the name of the file to mount.
As the difference between a normal shell and a zvfs enabled shell is one again, several
lines of code, the example shells is folded back into tclAppInit.c and controlled with
macros.
The ZVFS commands are now loaded in as a static package.
Removed the Stubs entry for Tcl_Boot_ZVFS, it's now intended that shells build
their own copy of tclZipVfs.o
2014-09-12 16:03:20 +00:00
dgp
d75135cca1
[cee90e4e88] Correct error in stack depth checking.
2014-09-10 22:17:21 +00:00
dkf
a5dd225e78
[2486824] Improve error message; not all that upvars is an upvar.
2014-09-10 08:24:59 +00:00
dkf
5f9519213f
[2486824] Improve error message; not all that upvars is an upvar.
2014-09-10 08:20:46 +00:00
dkf
7bce68fe3b
[84af1192f5]: [regsub] compiler no longer confused by quantification handling.
2014-09-09 19:49:08 +00:00
hypnotoad
b3362b7dfd
Folding the core_zip_vfs_static work back into main branch. The pure-dynamic line
...
of research was not panning out
2014-09-09 15:23:16 +00:00
hypnotoad
99d72ae892
Added the "run tcl dll from vfs" magic to windows
2014-09-09 15:09:23 +00:00
hypnotoad
39145d45d1
Add tclkit to "make all" and install
2014-09-09 15:02:11 +00:00
hypnotoad
627a5bfa73
Instead of statically link the tclkit executable, pack the tcl dll in
...
the VFS
2014-09-09 14:47:12 +00:00
hypnotoad
ab35383fda
Add Static library link instructions to tclConfig.sh
2014-09-09 13:59:09 +00:00
hypnotoad
9f12483ed2
Instead of statically compiling the Tclkit executable straight from
...
.o files, generate a static library (libtclkit.a), and compile against
that.
2014-09-09 07:55:45 +00:00
hypnotoad
4e331e27f8
Added the tclkit binaries to install
2014-09-09 06:54:36 +00:00
ferrieux
600ace1c4b
Refine TclFinalizeThreadData so that the quick-exit optimization really only affects exit.
2014-09-08 22:50:11 +00:00
dgp
62004c9fb4
Exceptional handling of oo::class has to be consistent throughout.
2014-09-08 21:22:05 +00:00
stwo
976c48a7f1
Change one '#ifdef' to '#if defined()' for improved consistency within the file,
...
as in checkin [211aa43013].
2014-09-08 00:37:22 +00:00
hypnotoad
71e02d5298
Created a designated bootloader for Tclkits under windows
...
On windows, tclkits build a private VFS instead of relying on make install
Added a tool to build the tcl kit's VFS, as well as index the bundled packages
2014-09-06 11:41:26 +00:00
hypnotoad
0008ed9ea4
Preliminary checkin for Windows tclkit builds
2014-09-06 01:21:54 +00:00
hypnotoad
3bd1370dbc
New build process for Tcl kits in Unix (Windows port to follow...)
...
Rather than force a "make install" to build the vfs, the tclkit now
performs it's own "install" to a subdirectory (using destdir) to collect
the files it needs for its vfs.
tclkits no longer link to the tcl library. Instead, all of the obj files that
are used to assemble the lib are instead packed into the executable. Thus,
"make tclkit" produces the tclkit. That's it. No dlls. No tclsh. Makes no
other mark on the file system save the bare essentials it needs. It uses the
same variables in the makefile as the tcl libraries, so as they are updated
so too is tclkit.
Zlib files are *always* build for tclkits. Tclkits can never rely on the
presence of zlib on the systems in which they will be installed.
2014-09-06 00:58:23 +00:00
hypnotoad
a426ba29d5
Updating to the latest trunk
2014-09-05 20:34:55 +00:00
dgp
a3b501f125
Remove unused macros.
2014-09-05 19:04:43 +00:00
dgp
13d8cae724
Make corrections to long-false comments.
2014-09-05 18:30:57 +00:00
dkf
303cced03d
[ccc2c2cc98]: lreplace edge case
2014-09-05 10:05:05 +00:00
dgp
3f8809d6ec
Remove ChannelHandlerEvent struct, which has never been used in all of
...
recorded Tcl history.
Still need to purge comments of mentions of ChannelHandlerEventProc()
which is similarly pre-historic.
2014-09-04 22:05:21 +00:00
hypnotoad
a813938bef
Removed a typo
2014-09-04 01:27:55 +00:00
hypnotoad
295272b73c
Removed some debugging code of mine...
2014-09-04 01:23:45 +00:00
hypnotoad
703177e26a
Adapted the Unix startup process to ifdef out the KIT specific behaviors.
...
tclkit is now build as a standalone exectuble.
2014-09-04 01:22:20 +00:00
hypnotoad
b992e62207
Re-engineered the windows kitbuilding process to produce a standalone
...
executable (in a similar process as tcltest is made).
The kit specific functions of tclAppInit have been wrapped around define
macros, and are only active if TCL_KIT is defined. (Which is only done
when building the tclkit executable)
2014-09-04 00:30:04 +00:00
tne
4691bea988
Typo Fix
2014-09-03 22:03:08 +00:00
hypnotoad
fce753c3d5
Merging changes from trunk
2014-09-03 21:24:17 +00:00
tne
670a31f84f
Closing the hypnotoad branch
2014-09-03 21:11:30 +00:00
tne
25358e0ba4
Updating hypnotoad branch
2014-09-03 21:10:46 +00:00
hypnotoad
b6f9bc7ca8
More tweaks to makefiles
2014-09-03 20:41:12 +00:00
hypnotoad
79ccab2fd2
Merging in changes from Tcl
...
Reduced the code necessary to bootstrap a shell to a single C call.
Reduced the number of new stub entries to 1
Fixed a Makefile goof that was preventing kits from running properly.
2014-09-03 20:32:08 +00:00
ferrieux
b47df5123e
Distinguish hanging from crashing in exit tests.
2014-09-03 19:44:29 +00:00
ashok
996c102b1f
[132fad6fde]. Fixed GetCache to use TclpSysAlloc+memset instead
...
of calloc. Now consistent with tclWinThrd.c which no longer
uses malloc in its TclpSysAlloc implementation.
2014-09-03 15:48:56 +00:00
hypnotoad
8d1d673760
Backported dkf's documentation effort to the main core_zip_vfs branch
2014-09-03 10:50:06 +00:00
dkf
6c2512bc35
Clean up of docs, import basic text from comments in code, format.
2014-09-03 10:24:53 +00:00
hypnotoad
2c1a55d314
Merging in the "official" windows hang patch
2014-09-02 22:06:21 +00:00
ferrieux
a024a52335
Refrain from calling TclFinalizeThreadData() in quick-exit case as it is useless (just memory freeing). Superficially fixes [Bug 132fad6f]; that bug is still exerciseable thanks to recent additions to the test suite that exercise full finalization.
2014-09-02 22:00:03 +00:00
ferrieux
2e4f40528b
Add test cases in very first position for hang-on-exit, both in (normal) quick-exit and TCL_FINALIZE_ON_EXIT=1 modes.
2014-09-02 21:57:20 +00:00
hypnotoad
e88bbb7296
Merging with fix_windows_zip
2014-09-02 21:19:56 +00:00
hypnotoad
06547a29be
Fix for the cases where a dynamic build is used
2014-09-02 21:16:20 +00:00
hypnotoad
8ca1a78b1a
Revised patch (per ferrieux)
2014-09-02 20:26:50 +00:00
hypnotoad
6c59decfba
Merging in changes from core_zip_vfs
2014-09-02 20:17:57 +00:00
hypnotoad
732a963e04
Added a hac^H^H^Hpatch from ferrieux to mask around the exit hang on windows until
...
the issues are fixed at the core level.
2014-09-02 20:16:54 +00:00
hypnotoad
cd9922f497
Pared down tclZipVfs to eliminate #ifdef branches that we don't have to worry
...
about with a modern Tcl.
Replaced dummy calls to VFS with NULL
Where practical, replaced string-based Tcl IO calls with their new obj-based
successors. (Tcl_FSOpenChannel, Tcl_FSStat, etc)
Eliminated compiler warnings under Windows
2014-09-02 18:30:23 +00:00
hypnotoad
9554b52dba
Start of the "hypnotoad" branch, combining the various patches I'm testing
...
against.
2014-09-02 15:23:56 +00:00
hypnotoad
8c90b3ae99
Patch to make the default behavior for Tcl under Windows to embed the Zlib
...
sources rather than add a dependency to a dynamic zlib.dll
2014-09-02 15:21:23 +00:00
hypnotoad
811d367c49
Rather than make a special executable, tclkits are now a copy of tclsh with an attached zip file
2014-09-02 11:04:53 +00:00
hypnotoad
1d9824ec60
Tweaking the Makefile instructions for Tclkits under unix
2014-09-01 23:23:37 +00:00
dkf
5c6730bd0f
Squelch most warnings.
2014-09-01 13:51:59 +00:00
dkf
78b3c04320
Bring the source more into line with Tcl style.
2014-09-01 10:45:41 +00:00
hypnotoad
0ce217e309
Merging in changes from core.
2014-09-01 10:03:54 +00:00
hypnotoad
d1536b7378
Tweaks to the Windows makefile.
2014-09-01 09:41:09 +00:00
hypnotoad
eb664a3d72
Tweak the Windows implementation of Tcl_AppInit() to match Unix
2014-09-01 09:36:58 +00:00
jan.nijtmans
8964b0101f
Combine TCL_SHLIB_LD_EXTRAS+TK_SHLIB_LD_EXTRAS (for Cygwin and FreeBSD) to a single SHLIB_LD_LIBS usable for both Tcl and Tk
2014-09-01 08:17:49 +00:00
jan.nijtmans
6d02d4e9dc
Combine TCL_SHLIB_LD_EXTRAS+TK_SHLIB_LD_EXTRAS (for Cygwin and FreeBSD) to a single SHLIB_LD_LIBS usable for both Tcl and Tk.
2014-09-01 08:11:52 +00:00
hypnotoad
96dd5baf98
Adding the ability for the Tcl core to build self-contained Zip-based executables
...
* Integrated a pure-C implementation of ZipVfs
* Modified Tcl_AppInit() to look for a zipvfs mounted on the executable
2014-09-01 07:15:40 +00:00
dkf
2e512ffbe8
merge trunk
2014-08-30 08:30:00 +00:00
dgp
6e00c594ea
Use TclpSys* macros, not direct system calls.
2014-08-29 17:33:06 +00:00
dkf
77e18bafa5
[b9e1a3032e] Implement the documented method search order for TclOO.
...
This corrects the relative positions of object-defined methods and class mixins.
2014-08-28 07:53:24 +00:00
dgp
bcdc8e8a6d
merge release
2014-08-27 20:34:04 +00:00
dgp
7cd4eb1657
merge trunk; update changes
2014-08-25 21:43:21 +00:00
dgp
a562752936
TIP 429 implementation. New command [string cat].
2014-08-25 21:37:58 +00:00
dgp
46346effdc
merge-mark
2014-08-25 15:40:01 +00:00
dgp
6c10f6324b
merge release
2014-08-25 15:36:16 +00:00
dgp
ae0f801eaf
Do not let fossil README droppings leak into distribuion
2014-08-25 13:51:31 +00:00
dgp
a9c6d78680
make dist allowed README-* fossil droppings to leak into the distribution.
2014-08-25 13:31:10 +00:00
dgp
dbacb46d52
Bump to zlib 2.0.1.
2014-08-22 22:11:13 +00:00
dgp
7ab1ebdc32
Bump to TclOO 1.0.2
2014-08-22 21:52:37 +00:00
dgp
3ca10397cf
merge trunk; stamp release date.
2014-08-22 17:28:46 +00:00
dgp
13e336e4cd
merge 8.5; fix notifier mask bug and Tcl_Read performance regression
2014-08-22 13:48:50 +00:00
dgp
80604a93c1
merge 8.5; stamp release date
2014-08-22 13:44:23 +00:00
dgp
aa8f4d27ac
Correct performance regression in a series of short binary reads from a
...
socket. Many thanks to Eric Boudaillier for the report and testing support.
2014-08-22 13:23:04 +00:00
dgp
b08dc28c80
Same results; simpler logic.
2014-08-22 13:20:21 +00:00
dgp
92f9aca55f
Test fix for likely cause of reported I/O slowdown.
...
In a DoRead() revision, it came to favor making every effort to fill
buffers, in preference to a more sensible goal of favoring avoiding calls
out to the driver if there's already enough data in the buffers to satisfy
the read operation. Result is many more calls out to recv() than are
a good idea. Ought to show up most glaringly when many Tcl_Read() calls
asking for small numbers of bytes (compared to buffer size) each, and that
matches the reported case.
2014-08-21 23:07:34 +00:00
andreask
ce04ed5ad3
Fix reviewed and accepted.
2014-08-20 18:59:31 +00:00
dgp
eda831ff7e
Make test io-36.1.1 more portable.
2014-08-20 18:40:07 +00:00
dgp
bc9dca8ca6
Docs for Tcl_CreateChannelHandler() state that the registered handler proc
...
will be called back with a mask value. "Mask is an integer mask indicating
which of the requested conditions actually exists for the channel; it will
contain ***a subset of the bits from the mask argument*** to
Tcl_CreateChannelHandler when the handler was created." (emhpasis added).
Tcl_NotifyChannel is not honoring this. It passes a mask value that may
contain bits not in common with the mask argument to T_CCH().
This commit is a one-liner patch adding in the masking step to make things
behave as documented. Thanks to apn for digging this out. (In combination
with other questionable code, this led to a hang in test http-4.6 on Windows)
Tcl_NotifyChannel() has had this error in all of recorded Tcl history.
It's hard to imagine any code dependent on it though. If any exists, it
can be revised to pass the mask value it truly needs to T_CCH() and end up
with code suitable both before and after this change.
If you concur, please merge to core-8-5-branch, and I'll take it from there.
2014-08-20 17:50:41 +00:00
dgp
f8a968fdb8
Additions to changes.
2014-08-20 14:28:36 +00:00
jan.nijtmans
72fee4f1c7
[74e073599e5e7c5eb535e2f60f1b06feb468eaae|74e073599e]: tclsh is using old style dialogs when Tk is loaded on Windows
2014-08-20 11:23:09 +00:00
jan.nijtmans
71f6f450b2
[74e073599e5e7c5eb535e2f60f1b06feb468eaae|74e073599e]: tclsh is using old style dialogs when Tk is loaded on Windows
2014-08-20 11:13:29 +00:00
ferrieux
f2225b9dc1
merge trunk
2014-08-19 20:35:16 +00:00
dgp
344b547cd4
Update changes file.
2014-08-19 18:34:09 +00:00
dgp
60125626dc
merge trunk
2014-08-19 13:39:19 +00:00
dgp
36c74f5033
Improved credit
2014-08-18 13:28:58 +00:00
dkf
02b159d09e
[7d52e1101b] oo::object should know that oo::class is a subclass.
2014-08-17 15:23:49 +00:00
dgp
d5113635d3
Reconcile changes file with 8.6.1.
2014-08-14 16:48:08 +00:00
dgp
7cfbfdffd3
merge 8.5
2014-08-14 16:36:44 +00:00
jan.nijtmans
a0e133cb07
Put back SystemV timezone files, which were removed in previous commit. Don't know if that was by accident, but seems unwise in a Tcl patch release.
2014-08-13 09:06:09 +00:00
jan.nijtmans
e4a9f37030
Put back SystemV timezone files, which were removed in previous commit. Don't know if that was by accident, but seems unwise in a Tcl patch release.
2014-08-13 09:04:55 +00:00
dgp
459724f70a
merge 8.5, update changes
2014-08-13 02:54:31 +00:00
Kevin B Kenny
7f8321b616
merge tzdata2014f from ietf.org
2014-08-13 01:45:39 +00:00
Kevin B Kenny
ac5fa7c959
tzdata2014f from ietf.org
2014-08-13 01:42:17 +00:00
dgp
8c3d28816c
Update changes file
2014-08-12 21:41:29 +00:00
dgp
13828f74ee
merge 8.5
2014-08-12 15:51:06 +00:00
dgp
822b0d469e
merge trunk
2014-08-12 15:47:20 +00:00
dgp
8755613114
merge-mark. Do not accommodate udp bugs in Tcl 8.6.2.
2014-08-12 15:46:20 +00:00
dgp
c93483448e
Accommodate the "udp" package, and any other Tcl package that expects a
...
[read] on a channel @ EOF to attempt another pass through the channel drivers
instead of immediately returning an empty string. Correcting this misbehavior
appears too disruptive in a patch release to a long stable branch.
2014-08-12 15:28:09 +00:00
andreask
582c164dc3
Fixed type conversion warnings which break a Win32 debug build (MSVC).
2014-08-06 18:20:56 +00:00
ferrieux
91b9c5690e
Fix comment inaccuracy.
2014-08-05 22:10:58 +00:00
ferrieux
d544f36344
More aggressive constant folding in [string cat]. Thanks AndreasK for kicking.
2014-08-05 18:20:48 +00:00
ferrieux
796e087b9c
Better organize [string cat] by chunks of 255 args.
2014-08-05 11:29:16 +00:00
ferrieux
76e87312ed
Add constant folding to [string cat]. Mixed-quote idiom is now compiled to a single push.
2014-08-05 10:34:10 +00:00
ferrieux
5863c1e1b9
More optimized non-BC [string cat] using Tcl_AppendObjToObj() - thx Donal
2014-08-05 09:55:54 +00:00
ferrieux
50f00c62f2
Hum. Really merge trunk.
2014-08-04 14:06:13 +00:00
ferrieux
2918630e90
merge trunk
2014-08-04 14:02:53 +00:00
dgp
00ee522067
merge trunk
2014-08-04 13:37:22 +00:00
dgp
87724ab09f
Add tclsh.exe.manifest.in to the distribution
2014-08-04 13:36:57 +00:00
dgp
43aaaf34e5
merge 8.5
2014-08-04 13:35:47 +00:00
dgp
67fcf44a82
Add tclsh.exe.manifest.in to the distribution.
2014-08-04 13:35:06 +00:00
dkf
239374cbb8
Tidy up the docs
2014-08-03 22:43:42 +00:00
Kevin B Kenny
aa2667b729
merge trunk
2014-08-02 19:20:06 +00:00
ferrieux
25860d9071
Don't use [pid] in tests, stick to constant literals.
2014-08-02 15:26:46 +00:00
ferrieux
1cecac9cad
TIP 429 Implementation: [string cat]
2014-08-02 13:04:16 +00:00
dgp
23b2b428b6
merge trunk
2014-08-02 04:38:36 +00:00
dgp
9c45b517dc
Another Preserve/Release on channels is needed during IO finalization.
2014-08-02 04:36:39 +00:00
dgp
f70b625cf3
merge 8.5
2014-08-02 04:29:41 +00:00
dgp
592bd0b065
Another Preserve/Release on channels is needed during IO finalization.
2014-08-02 04:25:27 +00:00
dgp
f4f511dbae
merge 8.5
2014-08-02 00:06:21 +00:00
andreask
a3cfa0d708
Addition of a cast in tclWinFile.c to match types in a comparison, and
...
fix of a TRACE string literal in tclExecute.c with a bogus escape. Both
would otherwise bug a Windows debug build (where warnings are errors).
2014-08-01 20:07:40 +00:00
andreask
6563197fa8
Updated package "platform" to version 1.0.13. Separated the
...
identifiers "macosx*-i386-x86_64" and "macosx-universal" as
incompatible with each other.
2014-08-01 19:50:11 +00:00
dgp
08c2327777
merge-mark
2014-08-01 19:29:20 +00:00
andreask
0b7630c23f
Updated package "platform" to version 1.0.13. Separated the
...
identifiers "macosx*-i386-x86_64" and "macosx-universal" as
incompatible with each other.
Plus addition of a cast in tclIO.c to match types in a comparison
which otherwise bugs a Windows debug build (warnings are errors).
2014-08-01 18:36:50 +00:00
dgp
b425d2c241
merge trunk
2014-08-01 17:18:21 +00:00
dgp
bd2e4fe97f
merge 8.5
2014-08-01 17:17:24 +00:00
dgp
bed95cfaf7
Backport the cheaper Preserve/Release on channels.
2014-08-01 17:16:35 +00:00
dgp
a745e85067
[e75fabac06] Teardown line information after failed ensemble subcommand
...
compile attempts. Copy/paste from CompileCmdCompileProc(). May be
refactor opportunity here.
2014-08-01 16:01:30 +00:00
dgp
232336fbee
Correction and commentary in the details of ensemble compiling.
2014-08-01 14:36:30 +00:00
jan.nijtmans
c62d8b25aa
Fix part of [d19aef1487] (broken --disable-load on MacOSX), broken by [4d417791c9]
2014-07-31 21:23:45 +00:00
dgp
179c36fd48
merge trunk
2014-07-31 20:00:40 +00:00
dgp
5191ece516
[a84a720966] Protect against double free in TclOO classChainCache teardown.
2014-07-31 19:58:53 +00:00
dgp
f1e1a92d13
merge trunk
2014-07-31 15:49:44 +00:00
jan.nijtmans
fad7a0e23d
merge trunk
2014-07-31 08:39:50 +00:00
dgp
6c55284908
[3757cdf808] More clock refactoring with spooky impact on [string match]
...
performance.
2014-07-30 16:41:24 +00:00
dgp
fd5a54c8dd
Complete transformation off Tcl_Preserve() legacy onto ref counting.
2014-07-30 02:58:27 +00:00
dgp
d9ab63098e
Reduce the cost of Preserve/Release on channels
2014-07-30 00:22:33 +00:00
dgp
2cbe892d48
[3757cdf808] Refactoring seems to reduce (maybe somewhat kinda sorta) a
...
bizarre performance regression. Still not what it was. Damn Heisenbugs.
2014-07-29 00:22:32 +00:00
dgp
cfb0ea03ec
Bump to 8.6.2 for release.
2014-07-28 14:50:06 +00:00
dgp
5ec61dacf7
merge 8.5
2014-07-28 12:53:19 +00:00
dgp
c6eb718dfd
An alternative implementation of [chan copy] that operates in precisely
...
those circumstances where the incumbent implementation is known to perform
a byte-for-byte copy from input channel to output channel.
In that case, the new implementation ceases the activity of copying every
byte from buffer to buffer to buffer to buffer to effect the copy. Instead
it arranges for the very same buffer the input channel read driver read into
to be the buffer the output channel write driver writes out from. No data
copying (or even examining) at all. When the proper conditions apply, this
ought to be noticeably faster.
2014-07-28 02:06:53 +00:00
dgp
a1bd6bc434
merge trunk
2014-07-28 01:53:01 +00:00
dgp
51be2107ea
Revise MBRead() to be used in both sync and async modes.
2014-07-28 01:42:42 +00:00
dgp
cf106cdda6
Push MBWrite() differences out to callers.
2014-07-27 22:53:01 +00:00
jan.nijtmans
e98326383b
merge-mark
2014-07-27 22:47:48 +00:00
jan.nijtmans
1db9d005b6
correct EOLFIX macro, broken by [a803608ed5]
2014-07-27 22:44:36 +00:00
dgp
3eb6318d9b
Rework MBWrite() so it can be used in both sync and async modes.
...
Reduce code duplication.
2014-07-27 17:20:32 +00:00
dgp
19d6bd367d
Use common MBError() routine for sync and async operations.
2014-07-26 15:44:32 +00:00
dgp
7f4563705c
Extend the "move buffer" implementation to cover the async case.
2014-07-26 15:02:09 +00:00
dgp
b627af851c
merge trunk
2014-07-24 17:19:28 +00:00
dgp
ef647d7ccd
[9d19af7adb] Make sure all timer events get canceled.
2014-07-24 17:17:41 +00:00
dgp
0a9367fbc9
simplify moveBytes selection logic
2014-07-24 15:34:05 +00:00
dgp
841ecebfa5
Make sure MoveBytes error reporting reproduces what CopyData does. Bugward compatibility!
2014-07-24 15:24:11 +00:00
dgp
b3bdbd342b
merge trunk
2014-07-24 15:17:55 +00:00
dgp
bfe912517c
Test format of write error messages during binary [chan copy]
2014-07-24 15:17:19 +00:00
dgp
97d74c549d
Make sure MoveBytes records read error messages.
2014-07-24 15:02:09 +00:00
dgp
595290e064
merge trunk
2014-07-24 15:01:16 +00:00
dgp
631849ea86
Test read error during binary [chan copy].
2014-07-24 15:00:07 +00:00
dgp
213c040089
Extend the buffer move optimization to the "same encodings" case.
2014-07-23 17:10:26 +00:00
dgp
0bc839ec64
Revert the EOLFIX changes of checkin [a803608ed5] (2013-10-28).
...
They do not work on the one machine where they must -- the release managers!
Appears that the NATIVE_TCLSH support isn't found on the 8.5 branch, so we
shouldn't expect to use it.
2014-07-23 13:10:34 +00:00
dgp
72c15c0c4e
Bump to 8.5.16 for release.
2014-07-23 12:26:21 +00:00
dgp
df7b610caf
merge trunk
2014-07-22 20:27:59 +00:00
dgp
2ad2aba317
Workaround [info frame] troubles with -singleproc 1 testing operations.
2014-07-22 19:57:51 +00:00
dgp
5eaa219754
Avoid [thread::exit]; Using it leads to memleaks.
2014-07-22 18:12:27 +00:00
dgp
2c10c359b5
[12b0997ce7] Plug memleak in iocmd.tf-32.0 .
2014-07-22 17:04:15 +00:00
dgp
bfab4c718b
[12b0997ce7] Plug memleak in iocmd.tf-32.0 .
2014-07-22 16:44:38 +00:00
dgp
d19b7190cb
[e6477e1b0f] Plug memleak in AtForkChild() detected in iocmd-11.4.
2014-07-21 14:26:56 +00:00
dgp
97d610fbfe
[75b8433707] Revised fix for memleak in oo instance list management.
2014-07-19 16:35:59 +00:00
dkf
4e4b5a7e53
[75b8433707] Plug a subtle memory leak in TclOO.
...
Test suite very unhappy with this. Shoving into
a mistake branch until that's sorted.
2014-07-18 22:05:16 +00:00
dkf
26f9497dd4
merge trunk
2014-07-18 12:22:17 +00:00
dkf
6cd3ffa246
[b43f2b49f7] New compilation strategy for lappend that allows multi-value
...
lappend to not have quadratic performance (through better reference management).
2014-07-18 12:18:44 +00:00
jan.nijtmans
da7cc28446
Make sure the "sockettest" command is available even when running socket.test individually.
2014-07-18 10:00:52 +00:00
jan.nijtmans
e6e391530f
merge trunk
2014-07-18 07:32:43 +00:00
jan.nijtmans
d2d54ff3de
Finally, use correct octal notation which works in Tcl 9 as well.
2014-07-17 18:43:55 +00:00
jan.nijtmans
eaf423b505
merge fork
2014-07-17 17:52:27 +00:00
dgp
f345a78f27
Revised fix for memleak in [info frame]. Still pretty ugly, but not more
...
so than a lot of TIP 280 machinery.
2014-07-17 15:48:59 +00:00
jan.nijtmans
5203cce0e0
Convert TesteventloopCmd and TestchmodCmd to Tcl_Obj-API form.
2014-07-17 15:15:28 +00:00
jan.nijtmans
f07fe1c911
Make sure that all "testchmod" arguments start with '0', making it more obvious that the value is octal.
...
dgp: Isn't the better way to make it obvious the values
are octal to use the explicit octal notation?
For example, [testchmod 0o777 $path] ?
Really seems like a bad idea to me to introduce *more*
incompatibilities for the planned conversion for
having the value 0777 stop meaning 255 and start
meaning 777 in Tcl 9.
Answer (Jan). You guessed exactly what's my follow-up plan. This was an intermediate step which keeps all test-cases running.
2014-07-17 14:08:30 +00:00
jan.nijtmans
7571df843a
Fix [3cdcfa40809ffd2b9d3d71f77dc57da615243730|3cdcfa4080]: tclWinFile.c does not compile with Win VC6
2014-07-17 11:02:03 +00:00
oehhar
a0256cda63
Replaced option "-unsupported1" by test command "testsocket debugflags" (thanks Donal, Donald).
2014-07-17 09:53:36 +00:00
jan.nijtmans
f7c255fa17
Convert some non-ASCII characters in testcase comments - which were mangled by my editor in [79ace7b793] - to valid UTF-8: This way my editor will not mangle them again, and fossil will show in the UI which characters are supposed to be there.
2014-07-17 07:39:00 +00:00
dgp
07d1de7a4f
[9969cf8ca6] Move the bailout when the ->rewind flag is set down after all
...
the housekeeping matters tearing down frames (trace data) is complete.
2014-07-17 04:24:23 +00:00
dgp
d586b47d44
Backout checkin that broke test io-39.1.
2014-07-16 23:58:54 +00:00
dgp
b58f928be5
Repair improper assertion.
2014-07-16 22:01:57 +00:00
dgp
6f05041d3f
Assert an equality test, not an assignment
2014-07-16 21:48:18 +00:00
dgp
0d27a4b905
Assert an equality test, not an assignment.
2014-07-16 21:46:30 +00:00
dgp
4870917293
[6a2d339e50] Plug memleak in INST_STR_REPLACE instruction.
2014-07-16 15:59:00 +00:00
jan.nijtmans
1797998aed
Modify the "gettimes" test-command to use the Tcl_Obj API.
...
New "testbytestring" command which can be used to replace the (to-be-deprecated) "bytestring" command from tcltest and/or the "indentity" encoding.
Adapt many testcases to use the "testbytestring" command.
2014-07-16 10:02:02 +00:00
dgp
0fac79a0fb
[726349fab8] Stop leaking compression dictionary on zlib xform channel close.
2014-07-15 15:10:32 +00:00
dgp
8825fb59d7
Suppress valgrind warnings about uninitialized values.
2014-07-11 20:40:24 +00:00
dgp
5af71fcbff
[1211aceef2] Fix refcount management of TclpTempFileName() that caused leak.
2014-07-11 18:20:42 +00:00
dgp
431189b805
[9b352768e6] Plug memleak in INST_DICT_FIRST.
2014-07-11 15:44:42 +00:00
dgp
4822b65c03
Stop memleak in [info frame].
2014-07-11 12:56:16 +00:00
jan.nijtmans
b58baa4ff6
Starting with Unicode 6.3, the mongolian vowel separator (U+180e) is no longer a whitespace, but for Tcl it still is.
...
Update documentation accordingly, and extend test-cases for Unicode 7 compliance.
2014-07-11 10:43:15 +00:00
jan.nijtmans
0a0d095f20
Starting with Unicode 6.3, the mongolian vowel separator (U+180e) is no longer a whitespace, but for Tcl it still is.
...
"NEL/Next Line" (U+0085) should have been a Unicode whitespace, but never was in Tcl. This is corrected in Tcl 8.6, but for legacy reasons not in Tcl 8.5.
Update documentation accordingly, and extend test-cases for Unicode 7 compliance.
2014-07-11 10:38:55 +00:00
dgp
dbed3f8089
[3479689] Plug memory leak due to incomplete bug fix.
2014-07-11 04:49:49 +00:00
dgp
d6605e9057
makeFile / removeFile balance.
2014-07-10 18:17:28 +00:00
dgp
0992240c65
makeFile / removeFile balance
2014-07-10 18:11:39 +00:00
dgp
0e96637923
dup test name
2014-07-10 18:02:45 +00:00
dgp
8fd7a48012
dup test name
2014-07-10 18:00:42 +00:00
dgp
b406c00842
[f652ae79ed] Close sockets used in tests, so as not to corrupt other
...
tests in the suite.
2014-07-10 17:21:23 +00:00
dgp
31eb3eebb7
[7368d225a6] Extend the auto-cleanup of zero ref count values passed in to
...
the Tcl_*SetVar*() family of routines to cover the missing case where the
flags value of TCL_APPEND_VALUE is passed in alone.
*** POTENTIAL INCOMAPTIBILITY***
2014-07-10 16:40:30 +00:00
dgp
b81d871afb
[7368d225a6] Extend the auto-cleanup of zero ref count values passed in
...
to the Tcl_*SetVar*() family of routines to cover the missing case where
the flags value of TCL_APPEND_VALUE is passed in alone.
*** POTENTIAL INCOMAPTIBILITY***
2014-07-10 15:45:32 +00:00
jan.nijtmans
18eed1d727
merge trunk
2014-07-10 14:23:25 +00:00
dgp
cf1f2fb61e
Repair buffer indexing error in Tcl_ReadRaw().
2014-07-10 12:59:24 +00:00
dgp
61f8119019
Repair buffer indexing error in Tcl_ReadRaw() exposed by iogt-6.0 and valgrind.
2014-07-10 12:52:10 +00:00
jan.nijtmans
a072994389
Don't use Tcl_GetCommandInfo when Tcl_FindCommand suffices.
2014-07-09 18:49:38 +00:00
dgp
da31ff7eb8
First draft of using buffer moves in place of buffer copies to create an
...
efficient [chan copy].
2014-07-09 14:44:13 +00:00
dgp
d5ffff6214
The write and flush operations of reflected transforms ([chan push]) have
...
been converting all lower level channel errors from Tcl_WriteRaw() into
EINVAL. Generally this is a perplexing discard of useful information, but
worse it interferes with the EAGAIN signalling that is required to manage
the BLOCKED state of a nonblocking channel. Thanks to aspect for demo
scripts that pointed to the bug.
2014-07-08 13:45:09 +00:00
jan.nijtmans
e1b54e0e11
Update Unicode tables to Unicode 7.0
2014-07-04 12:49:40 +00:00
jan.nijtmans
53df9e36da
Update Unicode tables to Unicode 7.0
2014-07-04 12:47:21 +00:00
dgp
8d68951021
Clarify http::config and http::geturl -headers roles in setting request headers.
2014-07-02 20:22:43 +00:00
dgp
4b4b642fe6
[c31ca233ca] Fix TclGetsObjBinary() so that each [gets] rediscovers whether
...
a nonblocking channel is blocked.
2014-07-02 16:30:41 +00:00
dgp
0cf246c174
[c31ca233ca] Fix TclGetsObjBinary() so that each [gets] rediscovers whether
...
a nonblocking channel is blocked.
2014-07-02 16:20:30 +00:00
Kevin B Kenny
0bab3624a9
merge trunk
2014-06-29 02:20:31 +00:00
dgp
ee896008d0
Fix mismatch of Tcl_Preserve() / Tcl_Release().
2014-06-26 16:01:05 +00:00
dgp
6bc046c0bc
Fix mismatch of Tcl_Preserve() / Tcl_Release().
2014-06-26 15:59:27 +00:00
dgp
58f92b6316
Simplify / refactor Tcl_ReadRaw(). No need for CopyBuffer().
2014-06-24 16:46:12 +00:00
dgp
ddeb3ab35c
Simplify / refactor Tcl_ReadRaw(). No need for CopyBuffer().
2014-06-24 16:34:05 +00:00
jan.nijtmans
0d9a8edf22
Fix execute-6.5 test failure on trunk: the "preserveCore" part of tcltest::test assumes that the cleanup is done first, so moving the cleanup means the the "preserverCore" part needs to move with it.
2014-06-23 12:49:41 +00:00
jan.nijtmans
6ab9c80ea1
Fix execute-6.5 test failure on trunk: the "preserveCore" part of tcltest::test assumes that the cleanup is done first, so moving the cleanup means the the "preserverCore" part needs to move with it.
2014-06-23 12:48:16 +00:00
jan.nijtmans
aa6f0b1cab
ticket [2f9df4c4fa]: tcltest - request to move -cleanup script execution until after -output compare.
...
tcltest -> version 2.3.8
2014-06-22 16:17:12 +00:00
jan.nijtmans
c7510fa5b9
ticket [2f9df4c4fa]: tcltest - request to move -cleanup script execution until after -output compare
...
tcltest -> version 2.3.8
2014-06-22 16:15:43 +00:00
jan.nijtmans
efcc225259
previous commit was not quite right, this one should be better
2014-06-20 20:50:48 +00:00
jan.nijtmans
24b0f264c3
ticket [2f9df4c4fa]: tcltest - request to move -cleanup script execution until after -output compare
2014-06-20 20:21:50 +00:00
aku
3cd11c535e
[b47b176adf] Stop possible segfaults when variability in mutex lock
...
schedules cause a ForwardingResult to remain on the forwardList after
it has been processed (IORChan is the origin of the code in IORTrans).
2014-06-20 05:14:43 +00:00
aku
f326f97897
[b47b176adf] Stop possible segfaults when variability in mutex lock
...
schedules cause a ForwardingResult to remain on the forwardList after
it has been processed (IORChan is the origin of the code in IORTrans).
2014-06-20 05:05:21 +00:00
dgp
7834f2fe96
[b47b176adf] Stop segfault when variability in mutex lock schedules cause
...
a ForwardingResult to remain on the forwardList after it has been
processed.
2014-06-19 16:38:33 +00:00
dkf
7bde946742
[f0f876c141] Improve consistency in error messages.
2014-06-17 14:30:06 +00:00
dgp
fce6982a3e
[1758a0b603] socket_*-2.13 : Workaround the broken select() in some Linux
...
kernels that fails to report a writable state on a socket when an error
condition (or remote close) is present.
2014-06-16 13:38:26 +00:00
dgp
52af4f6df3
[1758a0b603] socket-2.13 : Workaround the broken select() in some Linux
...
kernels that fails to report a writable state on a socket when an error
condition (or remote close) is present.
2014-06-16 12:44:13 +00:00
dgp
908fc261b6
merge socket test from 8.5
2014-06-16 12:19:30 +00:00
dgp
eab2f47c2c
merge 8.5
2014-06-16 12:09:32 +00:00
dkf
ab6933ef6b
[311e61d12a] Generate error code in *all* places where commands are looked up.
2014-06-16 09:24:39 +00:00
dkf
c20374dfa6
[cb042d294e] Improve consistency of [dict] wrong-args error messages.
2014-06-15 16:50:32 +00:00
dkf
5f82234293
[1b0266d8bb] Make [dict replace] and [dict remove] have canonicalization semantics close to [lrange] and [lreplace]. [dict merge] is also improved, but is not as strict.
2014-06-15 16:14:18 +00:00
dkf
17751a998c
Some more cleaning up
2014-06-15 16:11:56 +00:00
dkf
08d9096362
Make [dict replace] and [dict remove] guarantee result canonicality.
2014-06-15 07:52:57 +00:00
dgp
2621d5a21a
Draft test for [1758a0b603].
2014-06-13 21:15:13 +00:00
dgp
4e3fe86fc2
Additional check for an error condition on the socket.
2014-06-12 13:36:18 +00:00
dgp
86b84b6d21
Workaround the broken select() in some Linux kernels that fails to report
...
a writable state on a socket when an error condition (or remote close) is
present. Would be good to add actual test suite tests for this, but until
then see demo scripts in the ticket 1758a0b603.
2014-06-11 17:24:58 +00:00
dkf
6a99b9a546
Improved the error messages.
...
We do not want parsing an invalid dictionary to give errors about lists!
As compensation, we get greater precision in the errorcode.
2014-06-07 14:18:40 +00:00
dkf
e5104aa3dc
merge trunk
2014-06-06 08:47:28 +00:00
dkf
fae85d1af5
merge trunk
2014-06-06 08:46:58 +00:00
dgp
bb40f1cd2c
Tests socket*-2.12 test for DiscardOutput() updates.
2014-06-05 19:13:09 +00:00
oehhar
85daeb5e16
Robust async connect tests by temporarely switching off auto continuation. Ticket [13d3af3ad5]
2014-06-05 19:09:51 +00:00
dgp
bb4c894bca
Test socket-2.12 covers the DiscardOutput() update.
2014-06-05 19:06:08 +00:00
dgp
b4cc0cbac8
When too many chars are read by ReadChars() and we trim the limits to get it right on the next pass, don't forget the TCL_UTF_MAX padding demanded by Tcl_ExternalToUtf(). (Thanks for finding that, aku!) Fix the factorPtr management. It was just totaly wrong. The factor should be a ratio of the record of bytes read to the record of chars read. With those fixes, new test io-12.6 covers the "too many chars" code.
2014-06-05 15:20:59 +00:00
dgp
16b3c54eb0
merge fork
2014-06-05 15:20:03 +00:00
dgp
3eb959fc93
When too many chars are read by ReadChars() and we trim the limits to
...
get it right on the next pass, don't forget the TCL_UTF_MAX padding
demanded by Tcl_ExternalToUtf(). (Thanks for finding that, aku!)
Fix the factorPtr management. It was just totaly wrong. The factor should
be a ratio of the record of bytes read to the record of chars read.
With those fixes, new test io-12.6 covers the "too many chars" code.
2014-06-05 15:17:29 +00:00
andreask
ba7b49d9c4
Fixed a tricky interaction of IO system and encodings which could
...
result in a panic.
The relevant function is ReadChars() (short RC in the following).
When the encoding and translation transforms deliver more characters
than were requested the iterative algorithm used by RC reduces the
value of "dstLimit" (= the number of bytes allowed to be copied into
the destination buffer) to force the next round to deliver less
characters, hopefully the number requested.
The existing code used the byte located just after the last wanted
character to determine the new limit. The resulting value could
_undershoot_ the best possible limit because Tcl_ExternalToUtf would
effectively reduce this limit further, by TCL_UTF_MAX+1, to have
enough space for a single multi-byte character in the buffer, and a
closing '\0' as well.
One effect of this were additional calls to ReadChars() to retrieve
the characters missed by a call with an undershot limit.
In the limit (sic) however this was also able to cause a full-blown
"Buffer Underflow" panic if the original request was for less than
TCL_UTF_MAX characters (*), and we are using a single-byte encoding
like iso-8859-1. Because then the undershot dstLimit would prevent the
next round from copying anything, and causing it to try and
consolidate the current buffer with the next buffer, thinking that it
had to merge a multi-byte character split across buffer boundaries.
(Ad *) For example because the previous call had undershot already and
left only such a small amount of characters behind!
The basic fix to the problem is to add TCL_UTF_MAX back to the limit,
like is done in all the (three) other places in RC setting a new
one. Note however that this naive fix may generate a new limit which
is the same as the old, or possibly larger. If that happens we act
very conservatively and reduce the limit by only one byte instead.
While I believe that this last conservative approach will never reduce
the limit to TCL_UTF_MAX or less before reaching a state where it
returnds the exact amount of requested characters I still added a
check against this situation anyway, causing a new panic if triggered.
2014-06-05 00:22:59 +00:00
andy
45fd54872f
Add missing calls to Tcl_DecrRefCount() in string object man page examples.
2014-06-04 21:45:29 +00:00
dgp
cb1e14e0eb
Revise DiscardOutput() to account for revisions to the loop in FlushChannel() which is its only caller. We need to discard the curOutPtr buffer as well, and not count on another pass through the loop to attempt to flush it (and raise the same failure again?).
2014-06-04 16:42:21 +00:00
dgp
3189f48d19
Revise DiscardOutput() to account for revisions to the loop in FlushChannel()
...
which is its only caller. We need to discard the curOutPtr buffer as well,
and not count on another pass through the loop to attempt to flush it
(and raise the same failure again?).
2014-06-04 16:36:25 +00:00
dkf
6a91e192f8
more tests, cleaning up the code a bit
2014-06-04 08:15:26 +00:00
dgp
3334cf2103
Valgrind doesn't like use of uninitialized variables.
2014-06-04 03:25:44 +00:00
dgp
518ffe037f
merge fork of 8.5 branch
2014-06-03 19:57:31 +00:00
dgp
2691f4b9a9
[734138ded8] Revisions so that unreported errors don't get lost during
...
the close of a channel.
2014-06-03 17:47:23 +00:00
dgp
93b55b0dc4
Backport I/O core fixes made known by async socket work on trunk.
2014-06-03 17:32:33 +00:00
dkf
1e37d8beb0
merge trunk
2014-06-03 08:13:58 +00:00
dkf
10caa9b482
[1b0266d8bb] Working towards ensuring that all dict operations are sufficiently strict.
2014-06-03 07:26:11 +00:00
dgp
6c7e545b80
These edits make all tests outside of socket-14.* pass on OSX Mavericks.
...
Several socket-14.* tests failing there, and those that pass are very slow
about it. Firewall or poor networking configuration may be playing a role.
2014-06-03 02:26:07 +00:00
dgp
004361c91d
These edits make the tests socket-14.11.[01] stop hanging, but also introduce
...
a whole raft of test failures. WIP.
2014-06-02 20:03:14 +00:00
max
744e7bfe51
Improve robustness of the socket tests against systems that support IPv6, but don't resolve localhost to ::1 (and vice versa for IPv4 and 127.0.0.1).
2014-06-02 10:57:38 +00:00
dkf
dd1274d805
merge trunk
2014-05-31 20:47:23 +00:00
dgp
9b701fdae7
Correct the interest masks in the Tcl_CreateFileHandler() calls in PipeWatchProc(). When we are interested in both readable and writable events of a command pipeline channel, we only want the readable from the read end of the pipe, and the writable from the write end of the pipe.
2014-05-31 02:40:00 +00:00
dgp
1f197f004a
Correct the interest masks in the Tcl_CreateFileHandler() calls in
...
PipeWatchProc(). When we are interested in both readable and writable
events of a command pipeline channel, we only want the readable from
the read end of the pipe, and the writable from the write end of the pipe.
2014-05-31 02:30:53 +00:00
oehhar
312e71eff4
win socket -async: do not loose connect notification by temporarily stop connect monitoring. Bug [336441ed59]
2014-05-30 10:36:01 +00:00
dgp
3dcb02dc07
Refinements of FlushChannel() and its callers. Notably includes removal of the flag BUFFER_READY.
2014-05-29 15:04:52 +00:00
oehhar
78bb5378e9
Try not to loose FD_CONNECT by switching monitoring off.
2014-05-29 14:56:10 +00:00
oehhar
bf498960d9
merge core-8-5-branch
2014-05-29 14:53:45 +00:00
andreask
329c85106b
Merged the workarounds and fixes for wrapped executables on various
...
platforms into the trunk. For details see the merged revision and its
ancestor.
2014-05-28 19:21:35 +00:00
dgp
334ffdfa50
Refinements of FlushChannel() and its callers. Notably includes removal
...
of the flag BUFFER_READY.
2014-05-28 18:58:51 +00:00
dgp
4b98569f89
Update comment to explain assumptions.
2014-05-28 18:49:02 +00:00
dgp
0fe50b37a2
Further simplifications to FlushChannel(). This makes clear the
...
BUFFER_READY flag serves no necessary purpose, so it is removed.
2014-05-28 18:24:56 +00:00
dgp
c08a9df4d6
Expand the IsBufferFull() macro to check non-NULL bufPtr..
2014-05-28 17:14:11 +00:00
dgp
a60da763ba
Increase size of test io-29.34 so that it more portably tests the case where
...
the OS networking machinery gets backed up and blocks.
Added several TODO comments on potential simplifications.
2014-05-28 16:54:02 +00:00
dgp
88ab76b3b8
Move code that can only matter in the first loop iteration out of the loop.
2014-05-27 13:28:41 +00:00
dgp
5f8f27387d
Comment out lines of test io-53.4 that appear to do nothing of any value.
2014-05-24 19:56:37 +00:00
andreask
ceae73bd28
Followup on [72c54e1659]. Removed unused variable.
2014-05-23 17:17:35 +00:00
jan.nijtmans
a74fb9ea31
eliminate two unused variables.
2014-05-23 14:59:03 +00:00
andreask
cc63d97f54
Workarounds and fixes for wrapped executables on various platforms
...
regarding the handling of wrapped dynamic libraries.
The basic flow of operation is to copy such libraries into a temp
file, hand them to the OS loader for processing, and then to delete
them immediately, to prevent them from being accessible to other
executables. On platforms where that is not possible the library is
left in place and things are arranged to delete it on regular process
exit.
An example of the latter are older revisions of HPUX which report that
the file is busy when trying to delete it. Younger revisions of HPUX
have changed to allow the deletion, but are also buggy, the OS loader
mangles its data structures so that a second library loaded in this
manner fails.
More recently it was found that Linux which is usually ok with
deleting the file and gets everything right shows the same trouble as
modern HPUX when the "docker" containerization system is involved, or
more specifically the AUFS in use there. Deleting the loaded library
file mangles data structures and breaks loading of the following
libraries. For a demonstration which does not involve Tcl at all see
the ticket
https://github.com/dotcloud/docker/issues/1911
in the docker tracker.
This of course breaks the use of wrapped executables within docker
containers.
This commit introduces the function TclSkipUnlink() which centralizes
the handling of such exceptions to unlinking the library after unload,
and provides code handling the known cases. IOW HPUX is generally
forced to not unlink, and ditto when we detect that the copied library
file resides within an AUFS.
The latter must however be explicitly activated by setting the define
-DTCL_TEMPLOAD_NO_UNLINK during build. We still need proper configure
tests to set it on the relevant platforms (i.e. Linux).
The AUFS detection and handling can be overridden by the environment
variable TCL_TEMPLOAD_NO_UNLINK which can force the behaviour either
way (skip or not). In case the user knows best, or wishes to test if
the problem with AUFS has been fixed.
2014-05-22 17:17:12 +00:00
andy
461b9f3322
Ditto [dict append], [dict incr], and [dict lappend]. Update description of [dict create] to explicitly state that it returns the new dictionary.
2014-05-21 22:00:52 +00:00
andy
47089ed2b3
Ditto [dict unset].
2014-05-21 21:40:09 +00:00
andy
ff04f434c4
Update dict man page to state that [dict set] returns the updated dictionary value.
2014-05-21 21:32:44 +00:00
jan.nijtmans
e55620ed06
Fix gcc warning (signed-unsigned compare)
2014-05-21 14:37:57 +00:00
max
052f13167e
Fix c&p errors in test descriptions
2014-05-21 10:37:10 +00:00
dgp
6fb8bfc715
Rework the management of the CHANNEL_BLOCKED and CHANNEL_EOF flags, in particular not allowing them to leak between multiple layers of a stacked channel. Much common code refactored into ChanRead().
2014-05-20 15:17:11 +00:00
dgp
f19d7ab302
Rework the management of the CHANNEL_BLOCKED and CHANNEL_EOF flags, in
...
particular not allowing them to leak between multiple layers of a stacked
channel. Much common code refactored into ChanRead().
2014-05-20 15:00:50 +00:00
oehhar
3eb4868d33
Fix and improve socket -async [13d3af3ad5]
2014-05-20 14:46:37 +00:00
dgp
090475cc9c
Same improvements to the zlib transform operations.
2014-05-19 18:29:26 +00:00
dgp
7f2205461c
Simplify ReflectInput(). Also stop intruding on channel internals with
...
direct clearing of CHANNEL_EOF flag.
2014-05-19 18:08:05 +00:00
jan.nijtmans
b1576079b7
[47d66253c9]: "lsearch -sorted -integer" on 64bit system
...
***POTENTIAL INCOMPATIBILITY***
Changes results of both [lsearch -integer] and [lsort -integer].
2014-05-17 07:01:22 +00:00
dgp
125a9f8a25
Simplify the inputProc of [testchannel transform].
2014-05-17 03:38:28 +00:00
dgp
5b5dffa386
Simplify the inputProc of [testchannel transform].
2014-05-17 03:32:27 +00:00
dgp
48b8a3755c
Revise results of tests iogt-2.[123] to account for EOF flags no
...
longer leaking across channel stacks.
2014-05-17 03:05:36 +00:00
dgp
94d4975fa2
Repair broken tests iogt-2.[123].
...
What happened is that now that EOF flags no loger leak acros channel
stack layers, an EOF in the bottom channel isn't detected in the top one
until the ChanRead call at the top level actually returns 0 bytes. This
causes one more query/ma
2014-05-17 02:53:34 +00:00
dgp
604007076c
Merge flag changes. - Wow, no trouble with [chan push] demonstrated.
2014-05-16 23:17:15 +00:00
ferrieux
3afefe3d81
Let the generated Makefile be emacs-friendly by avoiding spurious empty lines and misplaced tabs. Useful e.g. to just set CFLAGS to debug and save.
2014-05-16 21:33:41 +00:00
dgp
5db8831fb0
Improved use of EOF state to avoid worthless allocations.
2014-05-16 19:11:49 +00:00
dgp
28721acb58
Move the resets and testings of the BLOCKED flag to where they make more sense.
2014-05-16 18:45:37 +00:00
dgp
6a8b9ef2d6
merge trunk
2014-05-16 15:23:26 +00:00
dgp
4715d60689
merge 8.5
2014-05-16 15:10:37 +00:00
dgp
539adc9f7f
merge 8.5
2014-05-16 15:05:08 +00:00
dgp
5e1812e37c
Fix for failing tests *io-32.11*
2014-05-16 14:59:45 +00:00
dgp
158ab27221
merge 8.5
2014-05-16 14:47:59 +00:00
dgp
edb5d20cbf
Merge completion of dgp-read-bytes branch.
2014-05-16 14:47:15 +00:00
dgp
47912a0cab
Bug fix - accept consumption of the trailing newline in crlf with no
...
characters produced. Also delete false assertions.
2014-05-16 14:40:39 +00:00
dgp
d32b2d8171
More tests to demo the bug more directly.
2014-05-16 12:56:01 +00:00
dgp
61f362f9a4
Branch to demo bug introduced in the parent commit.
2014-05-15 18:38:22 +00:00
dgp
b4ca74a562
Portable test to demo bug otherwise seen only on Windows.
2014-05-15 16:48:43 +00:00
jan.nijtmans
8eb9237e4a
Minor bug-fix in [3118489] implementation: NUL in filenames. Filenames starting with <drive>: but without a following slash should be considered volume-relative i.e. the ':' is valid here.
2014-05-15 14:59:03 +00:00
jan.nijtmans
c6cd29b3f9
Fix [3118489]: NUL in filenames. (On Windows, protect against invalid use of ':' in filenames as well)
2014-05-15 14:54:45 +00:00
dgp
3bb92ad005
Push the setting and clearing of CHANNEL_BLOCKED flag to the more inner
...
parts of the channel read machinery.
2014-05-15 11:04:35 +00:00
dgp
eccb17258f
merge trunk
2014-05-14 15:09:15 +00:00
dgp
f57343eb42
merge 8.5
2014-05-14 14:52:42 +00:00
jan.nijtmans
e55ee4d6cc
Fix 3 test-cases which started failing on Windows
2014-05-14 09:19:26 +00:00
jan.nijtmans
2e71d669fe
Fix 3 test-cases which started failing on Windows
2014-05-14 09:11:42 +00:00
dgp
07f07faf4b
Refactored much management of the BLOCKED and EOF flags into ChanRead() then
...
began repairing some of the logic about them. Tests iogt-2.* now fail because
they've been crafted as experiments recording the fine detail of reflected
channel driver calls, and fixing the management of channel flags is changing
that. zlib-8.5 also needed adjustment to reflect that an EOF set must come
with an empty string read when flags are functioning properly.
2014-05-13 18:49:20 +00:00
dgp
63543e9ad0
Rework Tcl_ReadRaw() mostly taking things out of the loop that never repeat.
2014-05-13 18:24:23 +00:00
dgp
73ccc4ba86
Salvaged what was left of value in the dgp-read-bytes-detour branch.
...
Refactored much management of the BLOCKED and EOF flags into ChanRead()
then began repairing some of the logic about them.
Tests iogt-2.* now fail because they've been crafted as experiments recording
the fine detail of reflected channel driver calls, and fixing the management
of channel flags is changing that.
2014-05-13 16:42:07 +00:00
jan.nijtmans
9265507b2c
[958bc05fbe]: Clarify "clock format" using "%R"
2014-05-13 11:25:26 +00:00
jan.nijtmans
7974460313
[958bc05fbe]: Clarify "clock format" using "%R"
2014-05-13 11:23:40 +00:00
dgp
5fedb4d01b
Restore the largefileSupport constraint on Darwin, where tests (chan)io-34.21
...
take an unbearable 90 seconds each to complete.
2014-05-12 21:52:39 +00:00
dgp
29055898b0
Restore the largefileSupport constraint on Darwin, where tests (chan)io-34.21
...
take an unbearable 90 seconds each to complete.
2014-05-12 21:50:55 +00:00
dgp
7156085860
Have the [chan push] machinery ReadRaw() directly into the argument to be
...
passed to the read method of the channel transformation command. Save a copy.
2014-05-12 17:19:16 +00:00
jan.nijtmans
5d76c6e6c0
Possible fix for [47d66253c92197d30bff280b02e0a9e62f07cee2|47d66253c9]: "lsearch -sorted -integer" on 64bit system
2014-05-12 13:09:00 +00:00
dkf
a4eef46453
[6d2f249a01] Handle a failure to comprehend half-way through the compilation of a chain of compileable ensembles.
2014-05-11 10:39:14 +00:00
dgp
73f53667ed
Repair another "impossible" test and the segfault it reveals.
2014-05-09 17:46:45 +00:00
dgp
fbb32b908c
Correct namespace bugs in normally skipped tests. Constrain them as "knownBug" rather than "unknownFailure".
2014-05-09 17:35:12 +00:00
dgp
1b7b5e839c
Correct namespace bugs in normally skipped tests.
...
Constrain them as "knownBug" rather than "unknownFailure".
2014-05-09 16:55:34 +00:00
dgp
643d4e096b
Added comment explaining the "knownBug" in iogt-6.1
2014-05-09 16:39:08 +00:00
dgp
8b4cb6f5d9
Added comment explaining the "knownBug" in iogt-6.1
2014-05-09 16:38:23 +00:00
dgp
54a7fb1431
Tests (chan)io-34.21 are constrained for largefileSupport, and that's disabled by default, which means never tested, which means the ridiculous bugs in them are never found and fixed.
...
Fixed the bugs, changed the default. Large File Suppport (4GB) is commonplace now. Let those without it suffer a few failing tests reporting that fact to them.
2014-05-09 16:33:58 +00:00
dgp
d7461d07ad
Tests (chan)io-34.21 are constrained for largefileSupport, and that's
...
disabled by default, which means never tested, which means the ridiculous
bugs in them are never found and fixed.
Fixed the bugs, changed the default. Large File Suppport (4GB) is
commonplace now. Let those without it suffer a few failing tests reporting
that fact to them.
2014-05-09 16:31:06 +00:00
dgp
f4401162e8
Test iocmd-32.1 is not "impossible" but after writing it properly it does segfault trying to use a deleted interp. Fixed.
2014-05-09 13:33:27 +00:00
dgp
a84b51c1b4
Test iocmd-32.1 is not "impossible" but after writing it properly it
...
does segfault trying to use a deleted interp. Fixed.
2014-05-09 13:19:30 +00:00
jan.nijtmans
e538095963
Fix [3389978]: Support for paths longer than MAX_PATH on Windows.
2014-05-09 12:03:58 +00:00
jan.nijtmans
99a5afc6e0
Make Cygwin's "configure" work from another directory than /unix. (Not everything works this way!)
2014-05-09 10:10:20 +00:00
jan.nijtmans
61c463f55f
Make Cygwin's "configure" work from another directory than /unix. (Not everything works this way!)
2014-05-09 10:08:56 +00:00
dgp
2ff193dc57
Merge the reforms of dgp-trunk-read branch into trunk. (port of dgp-read-bytes)
...
Large overhaul of I/O read operations
- Protects integer overflow of buffers, reusing append machinery
- Forces -buffersize changes to take place when commanded
- Uses assertions to simplify code in "can't happen" situations
- Eliminated duplication of -translation processing
- Fixes bugs io-35.18b and io-35.20
2014-05-08 17:38:09 +00:00
dgp
7d850a310d
Merge the reforms of dgp-read-bytes branch into 8.5+ releases.
...
Large overhaul of I/O read operations
- Protects integer overflow of buffers, reusing append machinery
- Forces -buffersize changes to take place when commanded
- Uses assertions to simplify code in "can't happen" situations
- Eliminated duplication of -translation processing
- Fixes bugs io-35.18b and io-35.20
2014-05-08 17:30:32 +00:00
dgp
95eec569fd
merge trunk
2014-05-08 16:21:45 +00:00
dgp
fa53de3d90
silence compiler warning
2014-05-08 16:21:12 +00:00
dgp
f1ace09e64
merge trunk
2014-05-08 16:12:35 +00:00
dgp
f54edc88cf
Fix the panic in iogt-2.5.
...
Back in 2011, Bugs 3384654 and 3393276 first noticed troubles with
ChannelBuffer sharing, but the magnitude of the problem wasn't truly
grasped. A fix was applied that turned out to be more of a band-aid
workaround. Now that the real fix is in place, the band-aid is actually
preventing it working properly in thie case. Rip it off!
2014-05-08 16:03:50 +00:00
dgp
04fbce15ca
Revert the iogt-2.5 fix. For now one panic is better than widespread
...
memory leaks.
2014-05-08 13:01:47 +00:00
jan.nijtmans
e083b8e9bb
More efficient/robust implementation of function TclNativeCreateNativeRep().
...
- No more intermediate results in a Tcl_DString, just allocate space directly.
- Let MultiByteToWideChar() do all the difficult work, inclusive checking for invalid byte sequences.
- Handled extended win32 paths, inclusive UNC paths.
Implementation for a great deal taken over from fossil.
2014-05-08 12:46:47 +00:00
dgp
65baa666b5
merge trunk
2014-05-08 03:28:56 +00:00
dgp
22c5cd91eb
Merge 8.5.
2014-05-08 03:13:01 +00:00
dgp
48ecb1a2ee
Merge 8.5.
2014-05-08 02:55:47 +00:00
dgp
75e37a235a
Stop leak in iocmd-21.22.
2014-05-08 02:38:52 +00:00
dkf
e29e8eee24
Corrected description of where tcl_platform(user) comes from on Unix.
2014-05-07 22:22:02 +00:00
dkf
84a26717ef
Corrected description of where tcl_platform(user) comes from on Unix.
2014-05-07 22:19:30 +00:00
dgp
643b20e2b2
Stop leaks of cloned Tcl_ChannelTypes.
2014-05-07 03:30:55 +00:00
dgp
68f4187dd1
Stop leak in io-53.5.
2014-05-07 02:28:56 +00:00
dgp
01ccb9ccaa
Stop leak in io-33.7.
2014-05-06 23:51:32 +00:00
dgp
3fd76e6ba7
Stop memory leak in io-29.34
2014-05-06 23:23:43 +00:00
dgp
7218e5967c
Stop memory leak in io-29.27.
2014-05-06 22:34:45 +00:00
dgp
cc1b3e8ddc
Symptom relief. Make test stop panicking.
...
This is not the proper final answer. ChannelBuffer management in
FlushChannel is simply not robustly correct yet.
2014-05-06 17:33:55 +00:00
dgp
c4669a8b0c
Add Panic call to better identify where iogt-2.5 goes wrong.
2014-05-06 15:23:43 +00:00
dgp
a0d540327f
Merge 8.5. New test iogt-2.5 panics.
2014-05-06 14:43:19 +00:00
dgp
2d6278c829
merge 8.5
2014-05-06 14:10:57 +00:00
dgp
ba89a15d53
Have to manage the lifetime of the self handle in testchannel transform.
2014-05-06 13:56:29 +00:00
jan.nijtmans
d8b36a0216
Start working on [3389978]. Appears to work, but some clean-up needed.
2014-05-06 11:17:28 +00:00
dgp
b8c001575a
Segfaulting test (backport of iortrans-5.11).
2014-05-05 17:18:51 +00:00
dgp
681e50da88
Merge GotFlag() backport from 8.5. Conflicts galore!
2014-05-05 13:23:20 +00:00
jan.nijtmans
b04c31eecb
merge-mark
2014-05-05 09:18:42 +00:00
jan.nijtmans
acdf0e593a
Backport "GotFlag" macro from Tcl 8.6. Makes code more readable. No change in functionality.
2014-05-05 09:17:46 +00:00
dgp
3c51a58c1e
merge trunk
2014-05-02 15:58:03 +00:00
dgp
acce1f902b
merge 8.5
2014-05-02 15:41:45 +00:00
jan.nijtmans
9888275261
Re-apply [3010352], bringing back the symbol exports of shared libraries as it was in 8.6.0/8.6.1.
2014-05-02 15:35:14 +00:00
dgp
01f9f84db5
Bring back self restacking support. Channel tests all passing now.
2014-05-02 15:29:41 +00:00
dgp
9bed70dea4
Fixup restacking tests to expect the right results.
2014-05-02 15:19:57 +00:00
dgp
3ab2f65ec6
Backport channel self restacking support. (Test iogt-2.4).
2014-05-02 15:06:57 +00:00
dgp
322ea4d71d
Add some comments about possible other self-restacking troubles.
2014-05-02 14:45:03 +00:00
dgp
fd83709b45
Fully restore topChan resetting to accommodate self-restacking channels.
2014-05-02 13:02:48 +00:00
dgp
c09e2ded08
Re-enable buffer recycling.
2014-05-02 12:39:14 +00:00
dgp
8e5e88f4db
Stop the segfault in iogt-2.4. First by changing the UpdateInterest()
...
call that triggers it. "downChanPtr" may no longer be the right argument
at that point. Second, after ending the segfault, the test became an
infinite loop (nested unstacking?! whoa.), so revised the test to one
that terminates (and passes). Left behind a comment that the recursive
unstacking case may require more examination.
2014-05-01 16:33:39 +00:00
dgp
d3c1978e07
merge trunk
2014-05-01 15:13:46 +00:00
dgp
fb36ca1b18
merge trunk
2014-05-01 15:00:40 +00:00
dgp
27ce96cd71
merge 8.5
2014-05-01 14:52:13 +00:00
dgp
abd9269a04
We must Preserve channels if we're going to use TclChanCaughtErrorBypass() to get error information after channel routines are called (and have possibly called for the channel to go away).
2014-05-01 14:36:34 +00:00
dgp
aacc275d30
We must Preserve channels if we're going to use TclChanCaughtErrorBypass()
...
to get error information after channel routines are called (and have possibly
called for the channel to go away).
2014-05-01 14:18:35 +00:00
jan.nijtmans
ce72e40607
Merge trunk.
...
Update Unicode tables to Unicode 7.0 beta.
2014-05-01 09:40:52 +00:00
dkf
0b7940e00e
make doubly sure that things which should be unshared stay unshared
2014-05-01 09:11:09 +00:00
jan.nijtmans
183a28c109
merge-mark
2014-05-01 07:44:34 +00:00
jan.nijtmans
c4f8c1063c
Fix more corner-cases like [0e92c404f19ede5b2eb06e6db27647d3138cc56|0e92c404f1]: The only place where a type of &tclByteArrayType can be trusted is when determining its length, because the character length of a (UTF-8) string is always equal to the byte length of the byte array.
2014-05-01 07:38:27 +00:00
dgp
438b6b5009
Merge in the fixes for improper ChannelBuffer sharing via recycling.
2014-05-01 01:26:04 +00:00
dgp
a95f198d2e
missing constraint
2014-05-01 01:15:42 +00:00
jan.nijtmans
87d82b22e7
Better (safer) fix for [0e92c404f1]
2014-04-30 21:59:00 +00:00
dkf
e0c1d41f5e
[82e7f67325] Fix an evil refcount problem in compiled [string replace].
2014-04-30 21:24:39 +00:00
dgp
1a41595e06
Stop the segfaults in [close] during [gets] tests.
...
Not sure this is the right behavior, but it's better than crashing.
2014-04-30 19:54:51 +00:00
dgp
2d4cef6d56
Panic message to pinpoint the cause of iocmd-21.23 segfault.
2014-04-30 19:33:21 +00:00
dgp
f8ff5f9f13
Another segfault demo test, this one with [close] during [gets].
2014-04-30 19:12:37 +00:00
dgp
210aa9605a
Make sure no shared ChannelBuffers get recycled.
2014-04-29 17:40:15 +00:00
dgp
19292d74bf
merge trunk
2014-04-29 17:04:33 +00:00
dgp
ab5b2feda0
Fix bug exposed when buffer recycling is disabled.
2014-04-29 16:47:48 +00:00
dgp
35a41cd0d6
Fix bug exposed when buffer recycling is disabled.
2014-04-29 16:36:39 +00:00
dgp
9873314d0d
Revise the logic for setting TCL_ENCODING_END in the outputEncodingFlags
...
so it does not rely on buffer recycling.
2014-04-29 15:54:03 +00:00
ferrieux
f3f494358f
Clarify fcopy manpage regarding its bidirectional uses. [1350564]
2014-04-28 20:28:10 +00:00
dgp
0c9e9be9e5
Disable buffer recycling to expose bugs for fixing.
2014-04-25 20:12:48 +00:00
dgp
e024894c53
Disable buffer recycling, which creates mysteries.
2014-04-25 19:51:36 +00:00
dgp
e3220aa631
Test iortrans-4.8.2 demos an infinite loop. Possible trouble with
...
pushback buffers.
2014-04-25 17:34:11 +00:00
dgp
47d1451282
merge trunk
2014-04-24 18:21:49 +00:00
dgp
5f636c9b81
merge 8.5
2014-04-24 18:14:36 +00:00
dgp
45659eebd2
Make sure the ReflectedChannel struct is freed in the handler thread,
...
where it was allocated. This constraint allows the struct to safely
hold Tcl_Obj values, which has been convenient for storing callback commands.
2014-04-24 15:27:58 +00:00
dgp
3ec273770b
[3493120] Plug memory leak in thread exit.
2014-04-24 04:34:01 +00:00
dgp
c69e73e183
[3493120] Plug memory leak in thread exit.
2014-04-23 18:25:27 +00:00
sebres
fa12c3782d
*nix segfault cleared: we should reset a thread key after freeing of alloc cache (in tclUnixThrd.c)
2014-04-23 09:18:20 +00:00
dgp
af15fe284a
Merge the [testchannel transform] fixes.
2014-04-22 15:09:06 +00:00
dgp
d7f092d1cf
Add refcounting and preservation to [testchannel transform] to stop segfault
...
in test iogt-2.4.
2014-04-22 14:57:44 +00:00
sebres
fea67060de
Memory leak after thread exit, fixed (alloc cache released by exit), belong to ticket [3493120]
...
Moved over to branch bug-3493120. This is not ready
for the core-8-5-branch. Segfaults all over the place
in a thread-enabled build on a CentOS system.
2014-04-22 13:25:41 +00:00
dgp
ea20dfbaae
merge trunk
2014-04-21 20:02:39 +00:00
dgp
da22d54b77
merge 8.5
2014-04-21 20:01:49 +00:00
dgp
e4bf3a0afd
Merge refcounting machinery for ChannelBuffer.
2014-04-21 19:04:08 +00:00
dgp
473f2fb8dd
Added a refcounting mechanism to ChannelBuffers. Other edits to
...
stop segfaults in tests iocmd-21.2[12].
2014-04-21 18:55:41 +00:00
dkf
5587ec4f28
merge trunk
2014-04-20 15:29:12 +00:00
dkf
02e0c5c152
more tinkering
2014-04-20 15:28:24 +00:00
dgp
29d26aa2c1
Another test exposing another segfault.
2014-04-17 19:58:41 +00:00
dgp
fecf0d5e64
merge 8.5
2014-04-17 19:17:33 +00:00
dgp
b70fbe851c
merge trunk
2014-04-17 19:11:47 +00:00
dgp
747725c1fc
Merge reflected channel improvements.
2014-04-17 18:10:02 +00:00
dgp
f60122dc91
Reflected channels. Keep a set of method names cached so we don't create
...
new each operation, and we can benefit from any lookup info cached in intreps.
2014-04-17 17:55:59 +00:00
dgp
dfb3ea8358
Simplify reflected channels.
...
Instead of having two modes of Close operations and the need to choose
between them with a special value of the methods field, when the initialize
pass fails for some reason, simply do not create the channel so there's
nothing that needs closing. Then the methods field no longer holds anything
used, so eliminate it. All the methods checking is done by [chan create].
2014-04-17 16:05:06 +00:00
jan.nijtmans
da5348ec0f
Remove all win95-specific test-cases, since Windows 95 is not supported any more.
2014-04-17 14:01:14 +00:00
dgp
322bd5dd1f
merge 8.5
2014-04-16 20:11:05 +00:00
dgp
9f8bc994a9
merge trunk
2014-04-16 17:35:08 +00:00
dgp
a7101c49af
[d19a30db57] More testing.
2014-04-16 15:40:09 +00:00
dgp
ea3c325aa5
Repair new test so all parts will be effective.
2014-04-16 15:37:26 +00:00
sebres
9915e77374
Test for [d19a30db57] extended
2014-04-16 15:30:37 +00:00
dgp
9db9d4ff84
[d19a30db57] Fixed segfault in [clock] internals. Includes test.
2014-04-16 15:30:23 +00:00
dgp
335591836a
Test for [d19a30db57].
2014-04-16 15:17:14 +00:00
jan.nijtmans
e9e54156fa
Fix compiler warnings in win32/cygwin build
2014-04-16 14:12:19 +00:00
jan.nijtmans
f91d3dd584
merge fork: Segmentation fault using some functions of tcl::clock, fixed, belong to ticket [d19a30db57]
2014-04-16 14:07:10 +00:00
jan.nijtmans
88d357a99c
Fix compiler warnings in win32/cygwin build.
2014-04-16 14:04:02 +00:00
sebres
c97d829e0c
Segmentation fault using some functions of tcl::clock, fixed, belong to ticket [d19a30db57]
2014-04-16 13:18:56 +00:00
jan.nijtmans
be0324597a
Remove unused variable, don't use deprecated function, some formatting.
2014-04-16 11:20:54 +00:00
jan.nijtmans
fcca5df8d6
Upgrade from Winsock 1.1 to Winsock 2.2, which is always available on Win2000+. See: [ http://msdn.microsoft.com/en-us/library/windows/desktop/ms742213%28v=vs.85%29.aspx ] for details.
...
Move winsock initialization to TclpInitPlatform(void), so we can be sure everywhere that we have an initialized winsock2.
Stub entries for TclWinGetServByName/TclWinGetSockOpt/TclWinSetSockOpt are no longer necessary (will be removed in 9.0, but are kept in 8.x)
2014-04-16 09:44:12 +00:00
jan.nijtmans
7284ed46fb
Upgrade from Winsock 1.1 to Winsock 2.2, which is always available on Win2000+. See: [ http://msdn.microsoft.com/en-us/library/windows/desktop/ms742213%28v=vs.85%29.aspx ] for details.
...
Move winsock initialization to TclpInitPlatform(void), so we can be sure everywhere that we have an initialized winsock2.
Stub entries for TclWinGetServByName/TclWinGetSockOpt/TclWinSetSockOpt are no longer necessary (will be removed in 9.0, but are kept in 8.x)
2014-04-16 09:28:54 +00:00
dgp
5b2fb22633
Purge the (now unused) argc and argv fields.
2014-04-15 18:36:01 +00:00
dgp
16c608178f
Purge (now unused) argc and argv fields.
2014-04-15 17:45:26 +00:00
dgp
924739ac23
[88aef05cda] Stop reentrancy segfault in reflected channels by managing
...
callbacks as (copies of) lists, not shared Tcl_Obj arrays. Still could use
cleanup and improvements.
2014-04-15 17:25:37 +00:00
dgp
fdcd434e12
[88aef05cda] Stop reentrancy segfault in reflected channels by managing
...
callbacks as (copies of) lists, not shared Tcl_Obj arrays. Still could
use cleanup and improvements.
2014-04-15 16:09:28 +00:00
jan.nijtmans
5d9aef7a4e
Test-cases which pick up the completion of bug-fix [e663138a06d98e48b5fbb42cc015cf1698f486cd|e663138a06]. Thanks, Don!
2014-04-15 10:41:44 +00:00
dgp
b497ad4e53
[e663138a06] Fix the new INST_NUM_TYPE instruction so that the boundary
...
cases of [string is] on integral values are computed right. Code is now
correct, though still suffers from a large amount of ugly.
2014-04-14 18:45:04 +00:00
jan.nijtmans
a95a8e4a9c
Fix [3118489]: NUL in filenames, now fixed for both Windows and UNIX.
...
For consistancy, any NUL character in a filename prevents the native filesystem to generate a native file representation for it. Other filesystems than the native one may still accept it, but it's not recommended.
2014-04-11 09:55:15 +00:00
jan.nijtmans
d10806530d
Fix [3118489] for Windows only: NUL in filenames. This allows various characters to be used in win32 filenames which are normally invalid, as described here: [ http://cygwin.com/cygwin-ug-net/using-specialnames.html#pathnames-specialchars ]. The Cygwin shell can handle those same filenames as well. In other shells (cmd.exe/mSys) or on the Windows desktop the filenames will look strange, but that's all.
2014-04-11 08:23:44 +00:00
jan.nijtmans
c867dfd034
[792641f95b]: Normalized win32 paths should never contain backslash.
2014-04-10 13:59:13 +00:00
jan.nijtmans
601ecb35c8
[792641f95b]: Normalized win32 paths should never contain backslash.
2014-04-10 13:32:14 +00:00
jan.nijtmans
87fc10a8da
Fix bug [e663138a06]: Test failures in "string is"
2014-04-10 07:57:18 +00:00
max
32d3c7b2a1
* Give clearer names to some of the state flags and sync them with Windows where it makes sense.
...
* Rework WaitForConnect once more to always report ENOTCONN on I/O operations on failed async sockets.
* Fix synchronous connections to a server that only listens on IPv6 (or whatever comes later in the list returned by getaddrinfo(), socket-15.*)
* Fix spurious writable event on async sockets (socket-14.15).
2014-04-08 18:00:35 +00:00
oehhar
42143bf4e9
Beautify check for async connect reentry
2014-04-08 15:15:31 +00:00
jan.nijtmans
a7350e3489
Provide full Tcl patchlevel to tcl.pc and move private libs to "Libs.private".
...
Record the fact that Tcl 8.6 requires Zlib 1.2.3 as a minimum.
Supply both the shared library and the stub library to "Libs": Only one of them will actually be linked in, depending on whether -DUSE_TCL_STUBS is defined or not.
2014-04-08 15:02:27 +00:00
jan.nijtmans
8a33c02a15
Provide full Tcl patchlevel to tcl.pc and move private libs to "Libs.private".
2014-04-08 14:52:04 +00:00
oehhar
1abf8e4ad8
Changed error report logic, that an async connect error is only reported by 'fconfigure -error' and not by a possible last command terminating the async connect. The terminating command always returns "socket is not connected" on connect error. In addition, some flags were renamed: TCP_ASYNC_SOCKET to TCP_NONBLOCKING and also the new state flags.
2014-04-08 14:40:20 +00:00
max
e92b34ab12
Rename error to connectError in struct TcpState.
2014-04-07 15:18:09 +00:00
max
59e40535f5
Rename CreateClientSocket to TcpConnect
2014-04-07 15:11:32 +00:00
oehhar
3d4fa09102
Renamed function CreateClientSocket to TcpConnect and variable error to connectError
2014-04-07 15:08:31 +00:00
jan.nijtmans
5e96fb5ee1
Merge-mark: Those two test-cases will arrive in trunk as soon as branch [ http://core.tcl.tk/tcl/timeline?r=bug-13d3af3ad5 |bug-13d3af3ad5] is merged.
2014-04-07 14:32:59 +00:00
oehhar
d0e001a334
Return async connect error by first following read or write operation.
2014-04-07 12:34:18 +00:00
oehhar
8bf9869083
Moved tests socket-8.2 and socket-8.3 to socket-14.3 and socket-14.4 and made them robust against connect failures
2014-04-04 16:44:33 +00:00
oehhar
269a88ebaf
Avoid multiple returns of connect errors
2014-04-04 16:27:39 +00:00
max
9757dd7eba
Move tests 8.2 and 8.3 out of the IPv4/IPv6 loop to 14.13 and 14.14.
2014-04-04 15:56:48 +00:00
max
9365e418f3
Fix/improve tests.
2014-04-04 15:45:34 +00:00
max
ebb15ded42
Add tests for bugs [336441ed59] and [581937ab1e] from core-8-5-branch.
2014-04-04 11:53:33 +00:00
oehhar
2f51a2e128
Fix for Bug [97069ea11a]: Set return message in close if a flush error is reported (which may be an error from a background flush)
2014-04-04 11:14:17 +00:00
max
a5f9898e34
* Rework WaitForConnect() to fix synchronous completion of asynchronous connections.
...
* Let TcpInputProc() and TcpOutputProc() fail before calling any I/O syscalls when an asynchronous connection has failed.
* Adjust the tests accordingly.
2014-04-04 10:02:47 +00:00
oehhar
e2c7cfecc1
Fix for Bug [97069ea11a]: Set return message in close if a flush error is reported (which may be an error from a background flush)
2014-04-04 08:55:16 +00:00
max
c736ad3e88
Make the naming of TcpState variables consistent
2014-04-04 08:51:58 +00:00
max
3d1b611f4c
Revert the tests for bug#97069ea11a from socket.test, because it is hard to test with the socket command in a platform-independent way. As the bug is in tclIOChan.c and should be tested there with a dummy channel driver that can reliably reproduce the situation that suppresses the error message.
2014-04-04 08:29:51 +00:00
oehhar
6cfae752ff
Fix bug [581937ab1e]: fire readable event on async socket connect failure
2014-04-02 13:33:29 +00:00
oehhar
253440c377
Fix bug [581937ab1e]: fire readable event on async socket connect failure
2014-04-02 12:43:29 +00:00
oehhar
61e5f733e5
Fix bug [336441ed59]: Win socket stall on quick termination of async socket connect
2014-04-02 10:02:18 +00:00
oehhar
77a33cf2ff
Test to demonstrate bug [336441ed59]. Depends on timing and will not always fire but is better than nothing. Reliable for me.
2014-04-02 09:54:27 +00:00
oehhar
3756d27b06
Set all variables written by the notifier thread as volatile.
2014-04-02 08:35:02 +00:00
oehhar
551a220b1f
Marked all communication variables which are set by notifier thread with "volatile".
2014-04-02 08:22:12 +00:00
max
a529e32955
Centralize and clarify the user of 169.254.0.0 as a non-reachable address.
2014-04-01 14:00:04 +00:00
oehhar
2e6d32b5a8
Imported fix for bug [97069ea11a] from branch bug-97069ea11a: empty error message on stalled background flush after async socket connect fail
2014-04-01 13:06:22 +00:00
max
9bc964b5bb
Add test cases for Bug [97069ea11a].
2014-04-01 12:17:36 +00:00
oehhar
daa585d846
Removed thread debugging printf messages
2014-04-01 12:16:39 +00:00
oehhar
bc5c5261e5
Fix test failure socket-2.9: "1 {not owner}" instead of "1 {couldn't open socket address already in use}" by only setting returned error message if not jet set.
2014-04-01 11:31:49 +00:00
oehhar
a2e8fa6c52
Set return message in close if a flush error is reported (which may be an error from a background flush). Ticket [97069ea11a]
2014-04-01 09:52:34 +00:00
dkf
c7e456e77d
Limit number of cookies stored, deleting least recently used ones.
2014-04-01 08:18:41 +00:00
jan.nijtmans
4fa18eaa12
Add missing @TCL_LIB_FLAG@ to tcl.pc.in (derived from ticket [5bcb5026ad])
2014-03-31 18:44:55 +00:00
jan.nijtmans
f9c41b4bcc
Cherry-pick [c54059aaad] from trunk: Added support for reporting TEA-like info via pkg-config.
...
Add missing @TCL_LIB_FLAG@ (derived from ticket [5bcb5026ad])
2014-03-31 15:23:30 +00:00
dkf
e2eaca874e
merge trunk
2014-03-31 08:09:20 +00:00
dkf
4fb87dc8de
Better cookie option parsing that doesn't throw away critical information.
2014-03-31 08:08:01 +00:00
dgp
8655555eb4
Merge minimal fix for iocmd-23.11.
...
Note that top channel regeneration is removed, so that Preserve/Release
call pairs are sure to operate on the same pointers. Other bug fixes
may need to change that.
2014-03-28 20:29:03 +00:00
dgp
2a5a3323cb
Minimal patch to fix iocmd-23.11. Might not be the best fix, but is *a* fix.
2014-03-27 21:35:57 +00:00
dgp
2d315899eb
Test iocmd-23.11 demos another segfault.
2014-03-27 19:15:19 +00:00
dgp
6ac66b5476
Test iocmd-23.11 demos another segfault.
2014-03-27 19:14:01 +00:00
dgp
2b096d89a3
Test iogt-2.4 is another segfault demo for [721ec69271].
2014-03-27 16:47:33 +00:00
dgp
4252a9c191
Test iogt-2.4 is another segfault demo for [721ec69271].
2014-03-27 16:44:04 +00:00
dgp
52fe1455a7
New test iortrans-4.8.1 exposes segfault bug [721ec69271].
2014-03-27 16:27:09 +00:00
jan.nijtmans
4c46afc6f5
Implement RFE [b42b208ba4]: file attributes -readonly (and -archive, -hidden, -system) on Cygwin.
2014-03-26 14:38:07 +00:00
jan.nijtmans
1673f7d67a
Only write back file attributes if any of them really changed.
2014-03-26 14:34:56 +00:00
jan.nijtmans
c6eeda71be
Implementation of [b42b208ba4]: file attributes -readonly on Cygwin. For completeness, implemented -archive, -hidden and -system as well.
2014-03-26 10:37:57 +00:00
ferrieux
15df01c93d
Add test io-53.12 to verify proper unbuffered sync-fcopy [Bug #3096275 ]
2014-03-24 21:42:56 +00:00
oehhar
1408478f56
Fire also readable event on final async connect failure. Armor WaitForSocketEvent by access signal against notifier thread access.
2014-03-24 11:03:04 +00:00
dgp
021c7456ff
Merge the checkins of the dgp-read-bytes branch onto the trunk, up to
...
and including checkin a1e82fb63e . Do not merge checkin bae1c688f2
which starts to take the dgp-read-bytes branch into directions apparently
unfriendly to stacked channels, which tests for [chan push] on the trunk
help us to detect.
2014-03-23 20:59:28 +00:00
oehhar
6eb3a60712
Be sure tsd pointer to the info structure is invalidated before memory free
2014-03-23 11:42:35 +00:00
oehhar
8837ed8935
Be shure tsd pointer to the info structure is invalidated before memory free
2014-03-23 11:31:59 +00:00
oehhar
e5b53212a8
Bug [336441ed59]: Buffer infoPtr between socket creation and insertion into info structure in thread local memory. Backported fix from commit [65b320b464] from branch "bug-[13d3af3ad5]".
2014-03-22 16:14:26 +00:00
dgp
97ef11cb6e
Added comments raising questions about possible updates to channel
...
drivers on Windows.
2014-03-21 17:11:32 +00:00
dgp
71680aec07
missing declaration
2014-03-21 14:45:00 +00:00
dgp
4d2bb24e84
Correct namespace bugs in normally skipped tests.
...
Constrain them as "knownBug" rather than "unknownFailure".
2014-03-21 14:07:40 +00:00
dgp
56214ea49a
Added comment explaining the "knownBug"
2014-03-21 13:40:58 +00:00
dgp
88cddf0b80
Convert "impossible" test to a "knownBug" test. Exposes a segfault!
2014-03-21 13:20:06 +00:00
dgp
183b5fd257
Restore default suppression of large file test.
2014-03-21 12:58:29 +00:00
dgp
ff8fef8c8d
Fixup ChanRead() header. Note (dstSize > 0) precondition.
2014-03-21 12:57:58 +00:00
dgp
2a7cf86d30
io-34.21 - fix bugs in normally skipped test.
...
io-35.18b - knownBug is not buggy on this branch.
2014-03-21 12:56:46 +00:00
dgp
0530d01b63
Documentation header for ChanRead()
2014-03-21 02:36:47 +00:00
dgp
e9bb48106a
Both callers of ChanRead() have simlar epilogs. Shift that into ChanRead
...
and refactor.
2014-03-20 23:21:48 +00:00
dgp
c6fabad70e
Don't allow buffer recycling to prevent or delay buffersize shrinkage.
2014-03-20 20:18:20 +00:00
dgp
88abf586de
Stop routine clearing of CHANNEL_EOF. Only clear when there's a reason
...
(seek, eofchar change, ungets). Otherwise, once you hit EOF you stay there.
2014-03-20 19:25:11 +00:00
dgp
16dcfe4b5f
Use assertions about the pushback buffers to simplify their handling.
...
Mark several things left TODO. Some tidying.
2014-03-20 16:31:11 +00:00
dgp
bce5a2ae75
merge 8.5
2014-03-20 14:45:05 +00:00
jan.nijtmans
cb2a1e4c13
Fix [2f7cbd01c3]: tcl8.6.1 fails to build on FreeBSD 10.0
2014-03-20 10:10:04 +00:00
jan.nijtmans
a62fd8466e
Fix [2f7cbd01c3]: tcl8.6.1 fails to build on FreeBSD 10.0
2014-03-20 10:06:25 +00:00
jan.nijtmans
c7a7120587
Proposed fix for [2f7cbd01c3].
2014-03-20 09:22:29 +00:00
dgp
02d7d5af4c
Let TranslateInputEOL handle the "\r$eofChar" sequence in CRLF mode.
2014-03-19 21:43:31 +00:00
dgp
3e8c032e35
Complete rewrite of DoRead().
2014-03-19 20:32:37 +00:00
dgp
b9409ecdff
Remove long dead "BAD_BLOCKING" support code so it no longer confuses
...
people reading/editing this code.
2014-03-17 17:56:47 +00:00
oehhar
912913c340
WaitForConnection like tclUnixSock.c, new option [fconfigure -connecting]
2014-03-14 17:01:33 +00:00
oehhar
ac3233bf36
file tclWinSock.c reorganized to minimize diff to tclUnixSock.c. No functional change
2014-03-14 16:59:25 +00:00
oehhar
934c12d4a4
Remove writable shortcut and errorneous workaround to get [connect -async] fail error to [fconfigure -error]
2014-03-14 14:36:14 +00:00
max
d1f0a7b5f7
* More test improvements for async sockets.
...
* Advance async connections whenever the channel is touched (e.g. by [chan configure]).
* Add a noblock argument to WaitForConnect(), so that advancing async connections from [chan configure] doesn't block even on a blocking socket.
2014-03-14 14:26:22 +00:00
oehhar
ee1a8aed63
Remove writable shortcut and errorneous workaround to get [connect -async] fail error to [fconfigure -error]
2014-03-14 10:59:48 +00:00
oehhar
2a00313c29
Async connect terminates: fire fileevent by setting readyEvent, propage commit fail message to [fconfigure -error]
2014-03-14 09:12:13 +00:00
max
b896860fbf
* Hide transient errors of the internal iterations of [socket -async] from the script level.
...
* More tests for corner cases.
2014-03-11 17:34:54 +00:00
dgp
6c5d496711
Compress code for better single screen viewing.
2014-03-11 16:51:38 +00:00
oehhar
66cf21eaaf
No [fconfigure -error] error in connect process; gets after failed async connect returns connect error
2014-03-11 13:35:37 +00:00
dgp
47b0512591
Trial rewrite of AUTO input translation.
2014-03-11 03:38:55 +00:00
dgp
080aa64c3d
.... and then the bug fix.
2014-03-10 19:30:22 +00:00
dgp
f8cfd0ecd0
Test for the bug I just committed.
2014-03-10 19:29:54 +00:00
dgp
ee4aa52d42
Rewrite CRLF translation to use more system calls.
2014-03-10 19:00:19 +00:00
max
ca31b05c9d
WaitForConnect may only call back to CreateClientSocket when the socket is writable or something. When it does so for a pending socket, it is falsely assumed to have succeeded and a subsequent read/write operation will fail.
2014-03-10 18:11:08 +00:00
dgp
baf55bba6a
Bring CRLF translation in parallel with others.
2014-03-10 17:58:32 +00:00
oehhar
75cae59053
Additional security for wrong pointer
2014-03-10 16:59:09 +00:00
oehhar
10a9e13e5d
Fire write fileevent if async connect fails finally (test socket-14.2)
2014-03-10 15:38:21 +00:00
oehhar
3bb727a3c7
Also continue async connect without event loop if gets/puts is called (test socket-14.8.*)
2014-03-10 15:22:56 +00:00
oehhar
e02a90c10d
Workaround if FD_CONNECT notification comes before socket list registration in TcpThreadActionProc
2014-03-10 14:36:38 +00:00
max
5de4bf8981
* tclUnixSock.c: Fix WaitForConnect() for client sockets that have to try more than one address.
...
* socket.test: Extend and improve tests for [socket -async]
* socket.test: Add latency measuring and calculation for Windows.
2014-03-10 12:08:44 +00:00
dkf
217acf1c4c
merge trunk
2014-03-10 09:01:17 +00:00
dkf
c60bcbe173
Reorganize log level management, start testing persistence, refactor code to not put so much in ::http namespace
2014-03-10 09:00:31 +00:00
dgp
12a4d297b9
TranslateInputEOL doesn't need to return anything. No caller cares.
...
Other optimizations and simplifications.
2014-03-10 03:09:03 +00:00
jan.nijtmans
bef17eed6a
Merge core-8-5-branch (New tests covering INPUT_NEED_NL flag handling. One exposes a bug.)
2014-03-09 21:58:12 +00:00
jan.nijtmans
6bcc85f28e
Mark io-35.18b test as knownBug
2014-03-09 21:55:51 +00:00
dgp
61e8875498
TranslateInputEOL() callers no longer need assert dstLen <= srcLen.
2014-03-07 20:15:12 +00:00
dgp
5350ed1efe
Simplify the input eof char scan. Update some comments.
2014-03-07 19:43:16 +00:00
oehhar
d08f5c564c
Still incomplete info structure in event proc: try to protect with locks (unsuccesful). Probably locks in accept socket creation missing.
2014-03-07 07:40:30 +00:00
oehhar
f5cb50339f
More debug to chase different fd in struct than in callback
2014-03-06 18:21:40 +00:00
dgp
f3343892a7
Variable "rawStart" serves no purpose.
2014-03-06 15:51:06 +00:00
oehhar
886199711d
Terminate async connect synchronously by any blocking operation
2014-03-06 10:37:13 +00:00
dkf
666e80e5bd
more checks of domain data loading
2014-03-05 22:28:12 +00:00
dgp
57182d5ef3
Remove old dead code; silence compiler warnings; tidy up.
2014-03-05 19:41:51 +00:00
dgp
5fe3c1fbee
Adapt CopyAndTranslateBuffer() to changes in TranslateInputEOL().
...
Notably no longer using the INPUT_NEED_NL flag.
2014-03-05 17:16:35 +00:00
oehhar
bfa93a894c
"gets" blocked after async cannect: SOCKET_ASYNC_CONNECT was not cleared
2014-03-05 15:15:43 +00:00
max
6ddf4c01d5
Refactor the error handling logic around connect()
2014-03-05 14:40:27 +00:00
dgp
e5f7fb59c4
Merge repair to correct failing tests.
2014-03-05 14:23:38 +00:00
max
fa81506a01
avoid warnings about uninitialized infoPtr in DEBUG
2014-03-05 13:12:13 +00:00
max
74ed570183
Print out the value of infoPtr in DEBUG, so that coexisting sockets can be distinguished in the output.
2014-03-05 13:09:22 +00:00
oehhar
3183209237
Next async connect try works. Reset error and move notifier before connect.
2014-03-05 10:20:09 +00:00
max
5bef69e253
* Use watchEvents only for read/write/close events of [chan event], don't mix with internal use of accept and connect events.
...
* WIP: Refactor the tail of CreateClientSocket() to get notifications for completed async connects right.
2014-03-04 18:54:48 +00:00
dkf
9597c478f9
safer setter mechanism
2014-03-04 08:11:02 +00:00
oehhar
3f6201e538
Reverted move of WSAAsyncSelect before connect -> FD_Connect message does also fire if it exists on call.
2014-03-04 07:54:18 +00:00
dkf
1575eb36c1
working towards a more consistent way of handling options in the cookiejar API
2014-03-03 23:22:12 +00:00
oehhar
596cd02dba
WIP: async open event now passes to SocketEventProc() and connects but does not finalyze that (I guess).
2014-03-03 15:57:56 +00:00
dgp
ecec9dacef
Fixups make the test suite almost pass (except *io-39.17)
2014-03-01 03:01:41 +00:00
dgp
ece5f1377f
Bring over the ReadChars rewrite for integration into the other I/O work.
2014-02-28 19:01:42 +00:00
dgp
c98d055207
another coverage test.
2014-02-28 18:36:00 +00:00
dgp
45f1f60132
tidy up.
2014-02-28 18:28:16 +00:00
dgp
ff27c27a27
More ReadChars rewriting. Test suite now passes.
...
Note that this reform simplifies ReadChars a fair bit (at least in my eyes).
Also it does away with the use of an INPUT_NEED_NL flag, using the same
strategy for partial \r\n sequences as is used for incomplete multibyte chars.
2014-02-28 18:25:20 +00:00
max
3e6fc11b81
Make printf debugging switchable, because it affects 'make test'
2014-02-28 11:05:35 +00:00
max
e622e61b3a
Broken intermediate state.
...
Calling back to CreateClientSocket() from the event loop works, but
the final failed or succeeded state of an asyncronous socket does not
get notified to the channel correctly.
2014-02-28 10:47:53 +00:00
dgp
2f73d6810c
Work in progress attempting a ReadChars rewrite.
2014-02-27 20:21:10 +00:00
dgp
378008089c
remove comment
2014-02-27 20:11:47 +00:00
dgp
8f2742b2f5
merge 8.5
2014-02-26 20:28:36 +00:00
dgp
4a58d3c00a
New tests covering INPUT_NEED_NL flag handling. One exposes a bug.
2014-02-26 17:47:46 +00:00
jan.nijtmans
4840e7dbb4
Simplify macro handling in tclOO*Decls.h, just as already done in "novem" [0c37ab8944], itcl*Decls.h and tdbc*Decls.h.
...
This doesn't change the way symbols are exported. This simplifications were already present in the Tcl 8.6.2 headers, but those were buggy when tclOO was linked in statically without using stubs.
2014-02-26 13:16:18 +00:00
max
e31901dcd5
Merge trunk
2014-02-26 12:44:12 +00:00
dgp
2207a65968
More coverage tests and bug fixes.
2014-02-26 11:26:00 +00:00
dkf
b3e0829c50
start writing integration tests
2014-02-26 08:58:05 +00:00
dkf
282de06cab
[8d5f5b8034] Flush internal representations in [string tolower] of unshared obj
2014-02-25 15:49:52 +00:00
dkf
403350cc99
more tests and some fixes
2014-02-25 09:10:52 +00:00
oehhar
8f14151916
Do not reopen a win serial channel for serial detection. There are issues with some Bluetooth virtual com. Fix bug [2413550], patch by Rolf Schroedter
2014-02-25 08:02:17 +00:00
dgp
e8e909f1cd
Reduce ReadBytes to simplest expression.
2014-02-24 21:25:08 +00:00
dgp
6733e57835
simplification trims
2014-02-24 21:01:07 +00:00
dgp
6978c989d7
merge 8.5
2014-02-24 20:53:57 +00:00
dgp
d888a526f4
Merge the stricter binary mode experiment.
2014-02-24 19:11:37 +00:00
oehhar
ada7d66e9f
Do not reopen a win serial channel for serial detection. There are issues with some Bluetooth virtual com. Fix bug [2413550], patch by Rolf Schroedter
2014-02-24 17:25:08 +00:00
dkf
a8069e81b7
more functional testing
2014-02-24 08:13:12 +00:00
dkf
11cd48efa3
merge trunk
2014-02-23 18:17:39 +00:00
dkf
1a8dc819d6
[3597178]: Improve documentation of what's going on with encodings
2014-02-23 13:07:36 +00:00
dgp
b3bfa3ee1d
Simplify ReadBytes based on new constraints.
2014-02-21 15:12:16 +00:00
dgp
b6212a88b3
fix type error
2014-02-21 15:02:35 +00:00
dgp
01eab1e2cd
Switch consistently on the narrower def of binary mode.
2014-02-20 21:23:33 +00:00
dgp
90725c211b
Can we send some binary reads down the char-reading path?
2014-02-20 20:31:55 +00:00
dgp
90d3294572
Refactoring repair to fix failing test.
2014-02-20 03:51:16 +00:00
dgp
6e09fe5ab9
[1230597] Update test comment.
2014-02-19 14:12:37 +00:00
dgp
fa1ab4f740
[1230597] Update test comment.
2014-02-19 14:10:55 +00:00
dgp
3ac01c586f
Next coverage test to expose another refactoring error.
2014-02-19 03:45:17 +00:00
dgp
c65342141a
Shortcut ReadBytes() when it's a no-op.
2014-02-19 03:36:15 +00:00
dgp
0e8e132aca
Callers of TranslateInputEOL are expected to manage the INPUT_NEED_NL flag.
2014-02-18 23:20:06 +00:00
dgp
d4cb991846
Another coverage test that reveals refactoring error.
2014-02-18 21:27:35 +00:00
dgp
e51a0bd096
coverage test for -translation cr
2014-02-18 18:35:19 +00:00
dgp
521821debf
Refactor correction exposed by coverage test.
2014-02-18 18:26:22 +00:00
dgp
06a0036a49
Coverage test for -translation auto handling of INPUT_SAW_CR flag.
...
Demonstrates refactor failure.
2014-02-18 17:54:06 +00:00
dkf
96c666ffcf
testing of the cookiejar implementation
2014-02-18 14:14:33 +00:00
dkf
9b6ba77224
extending the IDNA tests
2014-02-16 09:04:44 +00:00
dkf
c91f173c8b
[9bf7e67b37]: minor documentation blooper
2014-02-16 08:18:29 +00:00
dkf
1c6910c2ec
add the test cases from RFC 3492
2014-02-15 10:02:43 +00:00
dkf
3557938100
more tests, now getting to the IDNA handling
2014-02-14 09:03:49 +00:00
dkf
ffb8dbaeee
more tests for the punycode engine
2014-02-13 09:04:23 +00:00
dgp
ec145024fd
merge 8.5
2014-02-12 18:46:03 +00:00
jan.nijtmans
47f1107ebc
typo
2014-02-12 12:15:15 +00:00
jan.nijtmans
78bbf020ea
typo
2014-02-12 12:13:32 +00:00
dgp
342aec6684
Refactor so that CopyAndTranslateBuffer() calls on TranslateInputEOL()
...
instead of duplicating so much of its function. Note the testing gaps.
2014-02-11 19:53:41 +00:00
jan.nijtmans
f0882154a8
Fix execute permission bit (should not be set) for *Decls.h files
2014-02-11 10:58:30 +00:00
oehhar
89583a6623
Changed position of flag evaluation as proposed by Phil Hoffman
2014-02-11 08:53:33 +00:00
jan.nijtmans
0258413bde
Eliminate all usage of WIN32 and __WIN32__ macros: Some compilers (e.g. Clang/LLVM) don't define it, and _WIN32 is much more portable anyway.
...
See: [http://nadeausoftware.com/articles/2012/01/c_c_tip_how_use_compiler_predefined_macros_detect_operating_system#WindowsCygwinnonPOSIXandMinGW ]
2014-02-10 11:59:22 +00:00
dkf
0cffbf8eb7
starting to write some tests
2014-02-09 12:56:24 +00:00
dkf
334a96f761
D'oh!
2014-02-09 12:41:05 +00:00
dkf
50cb73a76e
update list of TLDs
2014-02-08 15:36:53 +00:00
dkf
35c72808bf
merge trunk
2014-02-08 15:03:35 +00:00
dkf
c0726f8f4f
merge trunk
2014-02-08 07:54:21 +00:00
dkf
39ddd8c91b
improve the testing of the disassembly commands
2014-02-08 07:54:04 +00:00
dkf
d69c1d382b
merge trunk
2014-02-08 07:41:17 +00:00
dgp
e175773277
This patch is not pointless. Tests encoding-25.* demonstrate its utility.
2014-02-07 19:40:25 +00:00
dgp
b6ae0212a1
[a4494e28ed] Use flag bit instead of NULL pointer to suppress
...
teardown list of imported commands when the original command
gets re-created. This prevents the panic otherwise possible when
the invalid state represented by the NULL pointer is encountered
during a command delete trace.
2014-02-06 22:48:34 +00:00
dgp
5ff110b484
Change the flag value to avoid merge conflict with trunk.
2014-02-06 22:41:14 +00:00
dgp
438b687249
[a4494e28ed] Use flag bit instead of NULL pointer to suppress teardown list of
...
imported commands when the original command gets re-created. This prevents the
panic otherwise possible when the invalid state represented by the NULL pointer
is encountered during a command delete trace.
2014-02-06 22:38:17 +00:00
jan.nijtmans
8c3bcfe950
check for existance of __BORLANDC__ before using its value
2014-02-06 21:45:29 +00:00
jan.nijtmans
cacb796441
Check for existance of __BORLANDC__ before using its value
2014-02-06 21:44:43 +00:00
dgp
cad363e97d
Revised ReadChars to restore an attempt to make sure we do not short read
...
because of a false notion of limited storage space.
The test suite does not appear to demonstrate any case where this matters.
Could be an incomplete test suite, or an example of pointless code.
2014-02-06 19:04:36 +00:00
dgp
f54081e9e5
merge 8.5
2014-02-06 16:33:24 +00:00
jan.nijtmans
40094302e0
Satisfy required position of __stdcall from VC++
2014-02-04 21:52:46 +00:00
jan.nijtmans
c7569e1c35
Satisfy required position of __stdcall from VC++
2014-02-04 21:51:32 +00:00
jan.nijtmans
ae659fdb12
Add missing __stdcall (which crashes on win32), and clean-up indenting
2014-02-04 21:33:13 +00:00
jan.nijtmans
fc5e6debde
remove duplicate declaration
2014-02-04 21:29:44 +00:00
jan.nijtmans
876dd3ac96
Add missing __stdcall (which crashes on win32), and clean-up indenting
2014-02-04 21:21:53 +00:00
dgp
8c665116c9
Simplify the core output operations of channels. Reduce duplicative and dead code.
2014-02-04 16:24:14 +00:00
dgp
1eb2dfe0fc
Simplify the core output operations of channels. Reduce duplicative and
...
dead code.
2014-02-04 15:17:12 +00:00
dgp
f53e4a7a0e
Be sure to finalize the identity encoding.
2014-02-04 14:30:55 +00:00
dkf
14b32b82e1
merge trunk
2014-02-04 09:09:06 +00:00
dkf
5be047220d
make the printing of source much less inclined to be fazed by non-ASCII chars
2014-02-04 09:02:23 +00:00
dkf
510244810f
[971cb4f1db]: Make debugging traces less inclined to serious visual corruption
2014-02-04 08:15:52 +00:00
dgp
9f92115d2d
merge 8.5
2014-02-03 22:58:36 +00:00
dkf
3f60452ac2
merge trunk
2014-02-03 22:29:31 +00:00
jan.nijtmans
ad8e3dcb0a
Fix [651e828a52]: Wrong Windows version reported for Windows 8.1
2014-02-03 15:19:26 +00:00
jan.nijtmans
f77ffeb9b2
Fix [651e828a52]: Wrong Windows version reported for Windows 8.1
2014-02-03 14:43:52 +00:00
dkf
c574af192d
add compilation of [string is]
2014-02-02 16:01:21 +00:00
dkf
fd4bc0f106
compilation of [string is]
2014-02-02 14:43:48 +00:00
dkf
cca7f018e0
improve the disassembly
2014-02-02 14:42:12 +00:00
dgp
e12cc95f12
Simplify macro typecasting.
2014-01-31 22:07:10 +00:00
dgp
beb8c62dff
The "channel" Tcl_ObjType is caching only. It never needs an UpdateString routine.
...
It's also static to the tclIO.c file.
2014-01-31 20:42:21 +00:00
dgp
684c2c9051
Do not call updateStringProc directly. We have TclGetString() for that.
2014-01-31 20:02:58 +00:00
jan.nijtmans
767efbf478
Fix [4b3b7a3082]: tcl8.5.15/generic/tclExecute.c:7713: array index before sanity check ?
2014-01-31 09:19:11 +00:00
jan.nijtmans
b4b95b976a
Fix [4b3b7a3082]: tcl8.5.15/generic/tclExecute.c:7713: array index before sanity check ?
2014-01-31 09:13:13 +00:00
dgp
2c59046c95
Refactor to eliminate the DoWriteChars() layer.
2014-01-30 20:10:21 +00:00
dgp
f11f5780e0
Eliminate DoWrite(). It duplicates WriteBytes().
2014-01-30 19:30:34 +00:00
dgp
c00d7aa9b9
Trial: Implement DoWrite() as WriteBytes().
2014-01-30 19:13:28 +00:00
dgp
050c8a639f
Simplification and cleanup enabled by last commit.
2014-01-30 18:45:11 +00:00
dgp
248247d828
Refactor WriteChars() and WriteBytes() into simple wrappers of a common
...
routine Write().
2014-01-30 18:31:39 +00:00
oehhar
42f972d403
merge 8.5
2014-01-30 15:02:40 +00:00
dgp
a92cc7b340
Eliminate the use of a staging buffer in WriteChars().
2014-01-30 14:51:44 +00:00
jan.nijtmans
b6ac569a5d
Fix [22c10c8e79]: core-8-5: msvc6 build: "Side by Side" error
2014-01-30 14:50:22 +00:00
jan.nijtmans
2c00f457ae
Fix [22c10c8e79]: core-8-5: msvc6 build: "Side by Side" error
2014-01-30 14:44:56 +00:00
dgp
4a8456e406
Eliminate the use of a staging buffer in WriteChars().
2014-01-30 14:31:17 +00:00
oehhar
63d77c0046
win/tclWinChan.c Tcl_InitNotifier: Bug [2413550] Avoid reopening of serial channels which causes issues with Bluetooth virtual com. Patch by Rolf Schroedter.
2014-01-30 11:02:51 +00:00
andreask
cc6eaf6308
Squashed C99 syntax breaking the native AIX cc.
2014-01-29 23:18:58 +00:00
dkf
6597355ad8
Compile [string is] with character classes in a non-awful way. Needs more work to make resulting bytecode disassemble nicely.
2014-01-29 13:59:32 +00:00
dgp
c53002fe3b
The outputStage field is now unused, so never allocate it.
2014-01-28 20:23:26 +00:00
dgp
2c2a7d737a
tidy things up
2014-01-28 20:19:39 +00:00
dgp
d250eba26d
Working code with no staging buffer use.
2014-01-28 18:51:59 +00:00
dgp
2585021472
WIP
2014-01-28 11:04:57 +00:00
dgp
518e457db3
merge 8.5
2014-01-27 17:58:10 +00:00
dgp
7afa150e2f
merge 8.5
2014-01-27 17:35:53 +00:00
dgp
490384e3e7
Revise the Tcl_Append* machinery to tolerate NULL bytes to append.
...
Then have ReadChars() use that machinery to resize buffer receiving input,
rather than invent its own version. Simplify ReadChars() callers.
2014-01-27 17:35:27 +00:00
jan.nijtmans
4e83fe1049
sync tcl.m4 with Tk version
2014-01-25 21:41:48 +00:00
jan.nijtmans
5d9939831c
sync tcl.m4 with Tk version
2014-01-25 21:41:12 +00:00
dkf
f4549b8fc4
merge principal development branch
2014-01-25 09:02:30 +00:00
dgp
d7803bcb41
merge 8.5
2014-01-24 22:33:30 +00:00
dgp
c25181bd7d
In WriteChars(), eliminate the copy step through a staging buffer when it
...
is not required for channel translation.
2014-01-24 21:52:59 +00:00
dgp
2ceb7a6077
In WriteChars(), eliminate the copy step through a staging buffer when
...
it is not required for channel translation.
2014-01-24 21:45:39 +00:00
dgp
e3bde55a0f
Eliminate the copy to a staging buffer when that serves no functional purpose.
2014-01-24 17:38:59 +00:00
dkf
834d5da992
improved tidy-up from branch
2014-01-22 19:33:03 +00:00
jan.nijtmans
2be298f89d
remove unused variable
2014-01-22 13:48:16 +00:00
dkf
c9ae8d64d3
minor tidying up
2014-01-22 09:14:57 +00:00
dkf
477af49f88
add compilation for [nextto] and [yieldto]; fix [a90d9331bc]
2014-01-22 09:11:07 +00:00
dkf
7716fd3e46
[a90d9331bc]: must not crash when yieldto called in vanishing namespace
2014-01-22 09:07:45 +00:00
dgp
e99699b008
There is no need for ReadBytes() or its caller(s) to track how many bytes
...
are actually stored in objPtr. The ByteArray Tcl_ObjType already has the
machinery to take care of this.
2014-01-21 22:08:16 +00:00
dgp
72fa9a96c8
Backport of bytearray append machinery to support bug fixes in ReadBytes.
2014-01-21 21:32:53 +00:00
dgp
8fc4750efc
merge mark
2014-01-21 18:17:14 +00:00
dgp
78b4196767
Silence compiler warnings.
2014-01-21 18:16:37 +00:00
dgp
1e9a5591d9
[2992970] Restore safety of Tcl_AppendObjToObj(x, x) for bytearrays.
2014-01-21 17:25:41 +00:00
dkf
128e4211ae
implementation of [yieldto] in bytecode
2014-01-21 15:07:59 +00:00
dkf
88b2f7f06e
added compilation for [nextto]
2014-01-19 18:39:24 +00:00
dgp
a994cc42f5
[2992970] Restore the safety of Tcl_AppendObjToObj(x, x) for bytearrays.
...
Also moves overflow checking to TclAppendBytesToByteArray() and adds
the ability to call TABTBA() with bytes==NULL, for appending unspecified
bytes. That is, the string grows, but the new bytes are of undetermined
value. Like Tcl_NewByteArrayObj(NULL, length) this option is useful
for manipulating buffers. The TABTBA growth algorithm is also enhanced
a bit, copying over a fuller implementation from GrowStringBuffer()
in tclStringObj.c
2014-01-15 19:04:52 +00:00
dkf
12945e9a16
extend [string is] to booleans
2014-01-13 08:06:43 +00:00
dkf
2803a8a055
a different approach
2014-01-10 15:58:41 +00:00
dkf
75b361386e
merge trunk
2014-01-09 21:20:23 +00:00
dkf
29ae06c2d3
use compact form
2014-01-09 10:49:04 +00:00
jan.nijtmans
48459b2357
Make DEFAULT_TRIM_SET a MODULE_SCOPE string constant, so its value can be shared in tclCmdMZ.o and TclCompCmdsSZ.o
...
and it no longer pollutes the tclStringTrim.h header file.
2014-01-08 11:04:44 +00:00
dkf
8f95efa4cf
merge main working branch
2014-01-07 14:25:22 +00:00
dkf
c8e62b1cfa
Add compilations for the following commands:
...
* concat
* linsert
* namespace origin
* next
* string replace
* string tolower
* string totitle
* string toupper
* string trim
* string trimleft
* string trimright
2014-01-07 14:19:04 +00:00
dkf
cbc312324e
make function static once more; not needed outside of source file
2014-01-07 14:13:37 +00:00
dkf
03ecb591a6
reduce the overhead of NR-enabled TclOO [next]
2014-01-07 13:59:30 +00:00
dkf
6bb7b1e15d
factor out a common stanza
2014-01-05 17:31:38 +00:00
dkf
a2e12b4377
merge main working branch
2014-01-05 17:00:15 +00:00
dkf
6d9846f8c9
merge trunk
2014-01-05 16:57:05 +00:00
mig
666deab1ea
fix arraySet compiler to set -errorcode instead of -errorCode in return options
2014-01-05 15:01:52 +00:00
mig
bb9e19e6eb
skip the switch(result) on returning TCL_OK from a proc
2014-01-05 14:10:42 +00:00
mig
ea8a9ba071
reducing TEBCdata: pc and cleanup now passed in the NREcallback
2014-01-05 12:01:04 +00:00
dkf
430c9bc178
redevelop code to have more in common with the interpreted [string is] and to remove non-working types
2014-01-02 15:30:53 +00:00
jan.nijtmans
e7e7bafe96
merge-mark
2014-01-02 10:11:42 +00:00
dkf
9c349ce2e2
more fixes to instruction tracing; ensure all places that need DECACHE_STACK_INFO have it
2014-01-02 10:01:35 +00:00
dkf
e7f9c9c822
merge main working branch
2014-01-02 09:38:03 +00:00
dkf
83fcae9bbe
implement TclOO's [next] in bytecode
2014-01-02 09:17:07 +00:00
dkf
d5961a83e0
merge main working branch; made opcode work by getting callback ordering right
2014-01-02 09:15:18 +00:00
dkf
9c6b83d5b1
merge trunk
2014-01-02 08:51:04 +00:00
dkf
8a115927af
... and more silly errors
2014-01-02 08:50:08 +00:00
dkf
68cab10668
merge trunk
2014-01-02 08:35:48 +00:00
dkf
c28c2d5b9a
oops...
2014-01-02 08:35:01 +00:00
dkf
78f85049ff
merge main working branch
2014-01-02 08:32:36 +00:00
dkf
a30f092ea3
merge trunk
2014-01-02 03:27:16 +00:00
dkf
4f13f826e4
more fixes to instruction tracing; ensure all places that need DECACHE_STACK_INFO have it. jan.nijtmans: Branch moved aside an hidden, so future bisects are not affected by this branch mistakes.
2014-01-02 03:10:43 +00:00
dkf
1c54736c0d
factor out a common peephole stanza
2014-01-01 16:19:14 +00:00
dkf
f9dd75e79c
another jump peephole, this time with string comparisons
2013-12-31 23:34:57 +00:00
dkf
d423ce0c06
more cleaning up of error-case instruction tracing
2013-12-31 17:28:16 +00:00
dkf
76b954ec41
merge trunk
2013-12-31 16:28:15 +00:00
dkf
c45f1130d1
more peephole optimizations in TEBC, and better instruction execution traces
2013-12-31 16:26:55 +00:00
mig
0891bbbcbb
clarify the resume sequence in TEBCresume; make checkInterp a local variable, remove it from the saved struct
2013-12-31 12:14:50 +00:00
dkf
05feb2c73f
merge trunk
2013-12-31 10:49:07 +00:00
dkf
0e49a49b8f
remove ill-advised change to assembler
...
What made sense for the compiler does not for the assembler, as that can (and does) build code blocks entirely out of order.
2013-12-31 10:47:19 +00:00
dgp
57dc79f34e
merge trunk
2013-12-30 16:36:12 +00:00
dkf
413a0c2501
put the other definition of a trim set in the header file too
2013-12-30 11:56:54 +00:00
dkf
76007824cc
Factor out the definition of the default string trim set; define it once only.
2013-12-30 11:40:44 +00:00
dkf
db5995b2b8
merge main working branch
2013-12-30 10:24:20 +00:00
dkf
9083b5bf61
merge main working branch
2013-12-30 08:50:28 +00:00
dkf
4ad593f2bf
implement [namespace origin] in bytecode
2013-12-30 08:37:49 +00:00
dkf
cdacc33cbb
allow generation by assembler
2013-12-30 08:16:21 +00:00
dkf
f7157671ce
corrected comment
2013-12-30 08:12:52 +00:00
dkf
b004b21242
Improved general case of [string replace] implementation.
2013-12-29 18:49:20 +00:00
dkf
7319a7803b
precondition was wrong, and needed to flush part of the string/internal rep
2013-12-29 18:48:09 +00:00
dkf
7a36091c38
use the new instruction
2013-12-29 16:59:15 +00:00
dkf
4ee64245d2
completed instruction implementation
2013-12-28 17:21:39 +00:00
dkf
24707208d7
interim commit; not yet working
2013-12-24 18:57:46 +00:00
dkf
cbfb4c7624
merge trunk
2013-12-23 18:32:17 +00:00
mig
724d7b20d4
Added new tools for managing and verifying the stack depth during compilation. Used it in some spots in the compiler and in TclCompileCatchCommand.
2013-12-23 11:28:12 +00:00
mig
c339e59205
remove unnecessary messing around INST_CONTINUE and INST_BREAK: local continue/break are already converted to jumps, so that these are either caught or returned - in either case, the stacks are cleaned up properly by TEBC itself.
2013-12-22 14:11:46 +00:00
mig
9b9e35d814
remove duplicate statement in previous commit
2013-12-22 13:03:19 +00:00
mig
0065bfd6bc
fix stack counting bug in new catch compiler, commit 62a51cdb45.
2013-12-22 12:52:39 +00:00
mig
6bde9d5683
remove INST_TRY_CVT_TO_NUMERIC when it is known not be necessary (cherrypick from mig-optimize)
2013-12-20 21:59:28 +00:00
jan.nijtmans
f324306fb2
Add TclRegisterLiteral() to internal stub table (from "mig-optimize" branch, looks like a good idea anyway)
2013-12-19 14:35:50 +00:00
dgp
b23b38a551
[0b874c344d] Fix for nested coroutines ability to stitch together multiple
...
parts of the CmdFrame chain traversed by [info frame].
2013-12-18 18:23:20 +00:00
dgp
cd07187c44
merge trunk
2013-12-18 18:20:56 +00:00
dgp
b12d345ba7
Big simplification of the bug fix.
2013-12-18 18:09:09 +00:00
mig
7e06231c54
Making the optimizer pluggable by extensions
2013-12-18 16:06:22 +00:00
mig
1412caa12b
Making the optimizer pluggable by extensions; please review for committing to trunk
2013-12-18 15:34:39 +00:00
dgp
4994878d50
Factor out the level offsetting into a final pass. Let the first
...
pass of the "chain" operation just stitch things together and count levels.
2013-12-17 21:19:36 +00:00
dgp
fc27205f3f
Refactoring work on the "chain" operation.
2013-12-16 21:01:35 +00:00
dkf
27e8904ab4
Improve descriptions of character escapes and ranges in Tcl.n.
...
Improve output format handlers to cope with added escape for en-dashes.
2013-12-15 17:49:53 +00:00
dgp
0011796c30
Simplify the coding of the unchain operation.
2013-12-13 18:39:12 +00:00
dkf
f1a1245d74
simple compilation of [string replace]
2013-12-12 09:57:38 +00:00
dkf
03b5a36e45
merge trunk; document added instructions
2013-12-12 09:13:39 +00:00
dkf
19de6f5858
merge trunk
2013-12-12 08:09:45 +00:00
mig
7e2ce590ba
simplification of the catch compiler and new test
2013-12-11 16:46:38 +00:00
mig
3ad596b1a5
comments
2013-12-11 16:43:26 +00:00
mig
ac531cc463
comments
2013-12-11 16:33:21 +00:00
mig
e8186595e3
comments
2013-12-11 16:27:59 +00:00
mig
51c5c21dee
new test, and fix for bug
2013-12-11 15:55:28 +00:00
mig
411f830f50
simplify: remove the special case
2013-12-11 15:16:20 +00:00
mig
6f08bd3872
store options early: simplify compiler, reduce stack manipulations
2013-12-11 14:51:15 +00:00
mig
0cf62ad8a4
simplifying: drop early the evaled script
2013-12-11 13:49:20 +00:00
mig
6446b79fe2
fix stack computations for lmap
2013-12-10 12:05:06 +00:00
mig
1adbdd114b
new INST_LMAP_COLLECT, speeds up lmap and eliminates the need for a temp var
2013-12-10 11:38:17 +00:00
mig
2e16688b51
change NULL to INT2PTR(0), for clarity
2013-12-06 15:58:12 +00:00
mig
0c65e944bb
change NULL to INT2PTR(0), for clarity
2013-12-06 14:29:49 +00:00
mig
0e8f545071
merge trunk
2013-12-06 14:20:13 +00:00
jan.nijtmans
b737753dbb
Oops, wrong macro.
2013-12-06 10:17:58 +00:00
jan.nijtmans
43f960c3de
Introducing a new union member in Tcl_Obj is not a good idea in a patch release, especially using "long".
...
Better allow iterNum and iterMax to grow to ssize_t (or size_t) in Tcl 9 (or 8.x, why not?).
Usage of "long" in public API causes interoperability problems between Cygwin64 and Win64 (probably no-one cares except me).
2013-12-06 10:04:48 +00:00
dkf
2127f0af03
merge trunk
2013-12-06 09:33:14 +00:00
dkf
fd4b837586
Stop printing undefined values in disassembled code.
2013-12-06 09:28:45 +00:00
mig
e148764f60
3x speed improvement in foreach, via new compiler and opcodes. The old version remains for old .tbc sake, but is unused in the core.
2013-12-06 05:24:07 +00:00
mig
bd2bdc1904
adapted the array-set compiler to use the new foreach opcodes
2013-12-06 01:07:10 +00:00
mig
e839a385d8
tighter mem management in array-set compiler
2013-12-06 00:16:07 +00:00
mig
74ce54a69d
tighter mem management
2013-12-06 00:02:16 +00:00
dgp
a92abd2be9
Draft fix for Bug 0b874c344d. Includes test.
2013-12-05 20:45:45 +00:00
mig
b195b45848
add comments on INST_FOREACH_*
2013-12-05 17:18:54 +00:00
mig
d4c2352c27
add comments on field "misuse"
2013-12-05 16:01:16 +00:00
mig
fe466d7e44
New compiler and bytecodes for foreach and lmap: 70% faster
...
* speed as measured by http://wiki.tcl.tk/39021 : runs in <1/3 the time
* still need to adapt array-set to use this
* assemble.test-16.5 or 16.6 bombs in a purify/symbols build (?)
* removing the old opcodes would force recompilation of old .tbc files or adaptation of tbcload
2013-12-05 15:15:23 +00:00
dkf
f0e61b3c22
[a122627849] Improve stack trace from parray on not-array.
2013-11-24 18:35:01 +00:00
dkf
01b92615b5
[a122627849] Improve stack trace from parray on not-array.
2013-11-24 18:34:16 +00:00
jan.nijtmans
0e5086f719
revert accidental part of previous commit
2013-11-22 13:21:52 +00:00
jan.nijtmans
43ee8fffc8
Cygwin: Fix conflicting definition with _mingw_stat64.h, if included together with <tcl.h>
2013-11-22 13:17:43 +00:00
jan.nijtmans
cec233a888
Cygwin: Fix conflicting definition with _mingw_stat64.h, if included together with <tcl.h>
2013-11-22 13:16:21 +00:00
jan.nijtmans
dec33abc5a
Modify makefile.vc for Windows 8.1 support
2013-11-21 16:22:34 +00:00
jan.nijtmans
6a67104caf
Modify makefile.vc for Windows 8.1 support
2013-11-21 16:20:01 +00:00
jan.nijtmans
c82de03edf
Add support for Windows 8.1: See [ http://msdn.microsoft.com/en-us/library/windows/desktop/dn302074.aspx ]
2013-11-21 11:52:34 +00:00
jan.nijtmans
5709ed46ce
Add support for Windows 8.1: See [ http://msdn.microsoft.com/en-us/library/windows/desktop/dn302074.aspx ]
2013-11-21 11:43:00 +00:00
jan.nijtmans
c8f1a349c0
The only relyable way of changing environment variables to uppercase (e.g. env(ComSpec) to env(COMSPEC)) is unsetting the old one first. Long-standing bug, exposed by [219226].
2013-11-21 09:24:59 +00:00
jan.nijtmans
b89b27df42
The only relyable way of changing environment variables to uppercase (e.g. env(ComSpec) to env(COMSPEC)) is unsetting the old one first. Long-standing bug, exposed by [219226].
2013-11-21 09:18:04 +00:00
jan.nijtmans
d34df50ace
Safer clean-up of environment variables: Do removal after insertions -> tcltest 2.3.7
2013-11-20 16:06:35 +00:00
jan.nijtmans
8422ebbd58
Safer clean-up of environment variables: Do removal after insertions -> tcltest 2.3.7
2013-11-20 16:04:43 +00:00
jan.nijtmans
6df3935a96
Starting with Windows 8 DSK, GetVersionExA is deprecated
2013-11-20 14:40:38 +00:00
jan.nijtmans
26ecd5e219
Starting with Windows 8 DSK, GetVersionExA is deprecated
2013-11-20 14:38:08 +00:00
jan.nijtmans
153e7dd764
Fix env-5.1 test-case on Cygwin (and probably other platforms which don't have iso8859-1 as system-encoding)
2013-11-20 12:58:35 +00:00
jan.nijtmans
3d8b62339c
... and don't break env-5.3 and env-5.5 test-cases.
2013-11-20 11:34:29 +00:00
jan.nijtmans
4043a96088
Bug Fix: EnvTraceProc() MUST always return NULL to indicate success.
2013-11-20 11:20:32 +00:00
dkf
cdc8943683
merge trunk
2013-11-19 13:02:05 +00:00
jan.nijtmans
065d2c77e4
Some formatting
2013-11-19 11:50:03 +00:00
jan.nijtmans
2d9f60b950
Cygwin: Instead of checking whether the win32 part is configured properly, just configure it when needed.
...
Always build the stub library first (and - on Cygwin - configure win32 properly just before building the stub library)
2013-11-19 09:47:47 +00:00
jan.nijtmans
ca48321a28
Revert [5215b8740c] (Enh [2959069]), as it turns out that -fvisibility=hidden only affects definitions and not declarations.
...
Therefore explicitely declaring each MODULE_SCOPE function as __attribute__((__visibility__("hidden")) is much better.
Suggested by Stuart Cassoff (Thanks!).
2013-11-19 09:09:42 +00:00
jan.nijtmans
36434499c3
Cygwin: Instead of checking whether the win32 part is configured properly, just configure it when needed.
...
Always build the stub library first (and - on Cygwin - configure win32 properly just before building the stub library)
2013-11-19 08:23:05 +00:00
max
2a15c7082e
merge trunk
2013-11-18 13:37:16 +00:00
max
bb220ac0ad
Revert [3c0b0bbda6]. If this really is a problem, it needs to get fixed by other means than covering behind void pointers.
2013-11-18 13:32:30 +00:00
max
9901b732cc
To prepare for completion of the [socket -async] implementation on Windows [13d3af3ad5]:
...
* Move the server code from CreateSocket to Tcl_OpenTcpServer.
* Rename CreateSocket to CreateClientSocket.
* Unify the naming convention of socket channels with Unix (sock + hex representation of the state/info structure).
2013-11-18 12:35:58 +00:00
jan.nijtmans
317c7c6991
Eliminate some redundant Tcl_GetErrno() calls.
2013-11-18 11:00:51 +00:00
jan.nijtmans
114f20490f
Fix [e832d2b08]: unnecessary code in Tcl_SetMaxBlockTime.
2013-11-16 21:06:46 +00:00
jan.nijtmans
8b83c2b467
Fix [e832d2b08]: unnecessary code in Tcl_SetMaxBlockTime.
2013-11-16 21:05:38 +00:00
jan.nijtmans
8feecdc04e
Map WSAEWOULDBLOCK to EWOULDBLOCK. Suggested by Reinhard Max.
2013-11-16 20:33:17 +00:00
max
6529091343
Don't leak getaddrinfo() results
2013-11-15 16:13:53 +00:00
dkf
1be1a5dfa4
merge trunk
2013-11-14 10:25:33 +00:00
dkf
695df45b40
Grammar check...
2013-11-12 15:47:21 +00:00
dkf
dba0465748
[528717] Slight rewording to clarify what the evaluation steps are.
2013-11-12 15:43:55 +00:00
max
4de413a551
socket-14.6 only makes sense where both, IPv4 and IPv6 are supported.
2013-11-12 13:12:21 +00:00
max
50b02bc49a
Fix [5425f2c082]: [fconfigure -error] breaks the background processing of a pending [socket -async].
2013-11-12 11:45:04 +00:00
jan.nijtmans
8615597984
rebase TIP [ http://tip.tcl.tk/425 |425] implementation
2013-11-08 14:57:44 +00:00
jan.nijtmans
47d3e9dbac
Fix [426679ef7d]: Having man.macros after .TH breaks rendering on OpenBSD and possibly others.
2013-11-05 12:39:47 +00:00
jan.nijtmans
edd7296583
Fix [426679ef7d]: Having man.macros after .TH breaks rendering on OpenBSD and possibly others.
2013-11-05 12:36:17 +00:00
jan.nijtmans
dd3a00dac4
Put extern "C" guards around all stub table struct definitions, so it is usable for C++ compilers as well without the danger of modifying the calling convention.
...
For tclDecls.h and tclOODecls.h it was no problem, because tcl.h and tclOO.h already contain those guards. But for the other *Decls.h files (e.g. tclTomMathDecls.h) it was not correct.
2013-11-04 10:13:59 +00:00
jan.nijtmans
010943474b
Put extern "C" guards around all stub table struct definitions, so it is usable for C++ compilers as well without the danger of modifying the calling convention.
...
For tclDecls.h it was no problem, because tcl.h already contains those guards. But for the other *Decls.h files (e.g. tclTomMathDecls.h) it was not correct.
2013-11-04 10:02:58 +00:00
jan.nijtmans
9e746d7f58
Windows dll's should be executable.
2013-10-31 11:44:37 +00:00
dkf
efa791f58b
merge trunk
2013-10-29 20:08:41 +00:00
dkf
bc84019495
Now do [string toupper], [string tolower] and [string totitle]. Only handles the no-indices case; that's the only case anyone actually commonly uses.
2013-10-29 20:07:56 +00:00
jan.nijtmans
89c02b35e1
Workaround for [414d10346b]: tcl 8.5.15/8.6.1(threaded build) hangs in exec on HP-UX
2013-10-29 08:17:19 +00:00
jan.nijtmans
71bc6d6f0a
Workaround for [414d10346b]: tcl 8.5.15/8.6.1(threaded build) hangs in exec on HP-UX
2013-10-29 08:15:36 +00:00
jan.nijtmans
31d8fbb925
Don't fix eol-style for Makefile.in in "make dist", if the file system is case-insensitive/case-preserving.
2013-10-28 10:57:25 +00:00
jan.nijtmans
c4047c81e6
Bump tcltest version to 2.3.6 (should have been done just before the 8.5.15 release, just as in Tcl 8.6.1).
...
Don't fix eol-style for Makefile.in in "make dist", if the file system is case-insensitive/case-preserving.
2013-10-28 10:55:37 +00:00
dkf
b5a083c5f4
[01b77111e5]: Small fixes relating to this bug. In particular, the package name
...
mapping was not being distributed, and there were some small problems with what
the mappings were and how they were applied. Also prevented external URLs from
ending with a '.'; that's vanishingly rare...
2013-10-28 09:23:30 +00:00
dkf
504122c70e
merge trunk
2013-10-27 08:32:38 +00:00
dkf
fee9da8b41
[53a917d6c9]: Correction to macro for determining how to deprecate things.
...
Thanks to Raphael Kubo da Costa <rakuco@FreeBSD.org > for the patch.
2013-10-27 08:28:43 +00:00
dkf
9cc416d585
General [concat] compilation.
2013-10-26 08:25:02 +00:00
dkf
f663a0f78d
Change name of instruction to make way for future changes.
2013-10-26 07:50:08 +00:00
jan.nijtmans
0b75dbad3d
Fix [3eb2ec1449]: Allow upper case scheme names in url. http -> 2.8.8
2013-10-25 13:08:04 +00:00
jan.nijtmans
216ade8493
Fix [3eb2ec1449]: Allow upper case scheme names in url. http -> 2.7.13
2013-10-25 12:57:19 +00:00
dkf
edff530f8d
First step in compiling [concat]: the trivial cases.
2013-10-24 07:21:14 +00:00
dgp
ffb2a3d9b4
merge trunk
2013-10-23 15:34:01 +00:00
dgp
c677a19c44
silence compiler warning
2013-10-23 15:32:58 +00:00
dkf
cc5f831d90
Stack depth calculation correction.
2013-10-23 08:33:40 +00:00
dkf
905746921e
[3556215]: Made [scan] match [format] better in what it accepts as a format
...
string, by allowing uppercase %X, %E and %G.
2013-10-22 18:58:49 +00:00
dkf
383f020ee8
[3556215]: Made [scan] match [format] better in what it accepts as a format
...
string, by allowing uppercase %X, %E and %G.
2013-10-22 18:55:02 +00:00
dkf
054a071db5
merge fixes from trunk
2013-10-22 17:36:22 +00:00
dkf
2ffe17a9b3
Fix for assemble.test; problem was a total assumption failure caused by way that the assembler works.
2013-10-22 17:34:55 +00:00
dkf
fb7a292613
Fix problems in for.test
2013-10-22 14:29:03 +00:00
dkf
345c194b8e
corrected trace printing
2013-10-22 09:18:19 +00:00
dgp
7a42d12716
silence compiler warnings
2013-10-21 14:35:02 +00:00
dkf
e1e7fafd59
merge trunk
2013-10-20 18:44:22 +00:00
dkf
8d4b93ccb7
[2835313] Ensure correct stack balance when break and continue exceptions are about: the hard cases with potential concealed exception generation.
2013-10-20 18:15:08 +00:00
dkf
d9096d1ada
And the last bits that need fixing; the code is still less efficient than desired but should now not crash.
2013-10-20 18:11:35 +00:00
dkf
fc106439d4
Fix handling of 'invokeExpanded' and start to do 'returnStk'.
2013-10-19 14:11:28 +00:00
dkf
c0d3a447bc
Added missing exception range finalize.
2013-10-19 12:29:06 +00:00
dkf
0981d85b0c
Improve coverage of [error] compilation.
2013-10-19 11:20:46 +00:00
dkf
443ca84a71
Tackle evalStk by reusing existing machinery.
2013-10-18 07:08:46 +00:00
jan.nijtmans
c10d93603c
Fix execute permission on many files which shouldn't have it.
2013-10-17 09:40:27 +00:00
jan.nijtmans
edbfaa468e
Fix execute permission on many files which shouldn't have it.
2013-10-17 09:28:11 +00:00
jan.nijtmans
2d9a87e3f1
-I${BUILD_DIR}/.. doesn't work when BUILD_DIR != "unix".
...
Reported by Matthias Kraft
2013-10-15 21:09:19 +00:00
dkf
2aaf426036
Do jump generation at places where INST_RETURN_IMM might occur.
2013-10-15 00:27:56 +00:00
jan.nijtmans
d6d11c65a3
Tcl_SetResult -> Tcl_SetObjResult in two places (for Cygwin64 only).
2013-10-14 08:34:48 +00:00
jan.nijtmans
87660da586
Fix comment in tclOO.decls: tclOOStubLib.c is not generated by "make genstubs".
...
In pkgooa.c, check whether the internal TclOO stub table is initialized correctly as well, some internal simplifications and improved comments.
2013-10-14 08:11:59 +00:00
dkf
e15b769c9d
Added the tests I want to pass...
2013-10-13 13:57:27 +00:00
dkf
d197994bd2
update comments
2013-10-13 13:34:01 +00:00
dkf
19e7a90783
Stop crashing in interactive testing. (The unknown and history mechanisms tend
...
to exercise some parts of the bytecode compiler very well.)
2013-10-13 12:09:22 +00:00
jan.nijtmans
9ad995c1bb
Allow loading of pkgooa.so in Tcl 8.5 for (regression) test purposes.
...
Better error messages in stead of crashes in some (hypothetical) error situations.
2013-10-13 10:45:08 +00:00
jan.nijtmans
31d188239f
Even though TCLOO_PATCHLEVEL is equal to TCLOO_VERSION, using "patchlevel" is more appropriate in those two places.
2013-10-11 10:26:35 +00:00
dkf
976d7cab2f
[98c8b3ec12] Use constraint to work around failing test; it's just a bug in the
...
underlying library, and one that appears fixed in later versions. Not our fault
if some OSes don't update. (It's also in a very esoteric spot.)
2013-10-10 21:24:15 +00:00
jan.nijtmans
74f3e06000
Fix for bug [f51efe99a7]: MinGW build fails on current checkin. And a new test-case which makes the problem visible on UNIX as well.
2013-10-10 14:13:51 +00:00
jan.nijtmans
f4c238d6a7
Update to Unicode 6.3 tables
2013-10-09 22:03:28 +00:00
jan.nijtmans
9d1312440e
Update to Unicode 6.3 tables
2013-10-09 21:57:26 +00:00
dkf
daab595dea
Working towards better handling of stack balance with break and continue exceptions.
2013-10-08 09:02:50 +00:00
jan.nijtmans
f86d726f85
Fix for [d4e464ae48]: tcl 8.5.15/8.6.1 breaks python make check on darwin
2013-10-07 14:25:21 +00:00
jan.nijtmans
3ad87b0a02
Fix for [d4e464ae48]: tcl 8.5.15/8.6.1 breaks python make check on darwin
2013-10-07 14:23:00 +00:00
jan.nijtmans
c83af8f8d4
First attempt to fix bug [d4e464ae48]: tcl 8.5.15/8.61 breaks python make check on darwin
2013-10-06 19:27:50 +00:00
dkf
d6e62aeb84
[3381085] Improved way of detecting what version of the documentation to build.
...
Set the HTML_VERSION environment variable to override the (sensible) default.
2013-10-06 19:17:20 +00:00
dkf
a1ae407099
Factor out some knowledge of immediate index encoding.
2013-10-06 13:21:10 +00:00
Kevin B Kenny
eb7a25fe2b
mark merge
2013-10-05 16:30:16 +00:00
Kevin B Kenny
560c2dcbe1
Advance to tzdata2013g
2013-10-05 16:28:52 +00:00
Kevin B Kenny
7413854f34
Advance to tzdata2013g
2013-10-05 16:22:16 +00:00
dkf
e1e4f33ee4
merge trunk
2013-10-05 13:58:48 +00:00
dkf
d9b2d9628a
Added 'linsert' compiler. Factored out constant list index parser.
2013-10-05 13:53:30 +00:00
dkf
28552e2e35
Added missing documentation. Corrected result of Tcl_OOInitStubs in non-stub case.
2013-10-04 13:12:22 +00:00
jan.nijtmans
c3651154a7
When compiling with MSVC++, no longer link the stub library with msvcrt??.dll.
...
This way, workarounds in extensions like [http://core.tcl.tk/itcl/info/a961f0729c ] are no longer necessary.
2013-10-03 20:41:03 +00:00
jan.nijtmans
73b02508fa
When compiling with MSVC++, no longer link the stub library with msvcrt??.dll.
...
This way, workarounds in extensions like [http://core.tcl.tk/itcl/info/a961f0729c ] are no longer necessary.
2013-10-03 15:17:43 +00:00
dkf
7fc9ecd5ab
cleaner and faster 'string trim'
2013-10-03 13:32:06 +00:00
dkf
638b28b372
merge trunk
2013-10-03 08:54:01 +00:00
dkf
4759be8760
minor: whitespace correction (my bad!)
2013-10-02 14:35:30 +00:00
dkf
4b54ec077b
neater
2013-10-02 13:16:10 +00:00
dkf
76ca8e7008
silence warnings with clang
2013-10-02 13:14:29 +00:00
jan.nijtmans
31d38b0701
Fix compilation of Itcl and Tdbc
2013-10-02 10:30:19 +00:00
dkf
e104cccd94
Turn Tcl_OOInitStubs into a no-op in non-stub-enabled usage.
2013-10-02 10:01:50 +00:00
dkf
8789461a94
Fix TclOO API export rules.
2013-10-02 09:41:01 +00:00
dkf
066dd2cb10
Expand subset of lreplace functionality that is compiled.
2013-10-02 08:46:29 +00:00
jan.nijtmans
ec1dceef35
Fix compilation with latest MinGW-w64 version 3.0: Conflict on EXCEPTION_REGISTRATION typedef, which means something completely different in MinGW-w64.
2013-10-02 08:08:10 +00:00
jan.nijtmans
5e1eaa44bc
Fix compilation with latest MinGW-w64 version 3.0: Conflict on EXCEPTION_REGISTRATION typedef, which means something completely different in MinGW-w64.
2013-10-02 07:58:50 +00:00
jan.nijtmans
a403e2663e
Disable command line globbing on MinGW compiles: this saves startup time, since the result of the glob is not used anywhere.
2013-09-30 14:07:20 +00:00
jan.nijtmans
c5f68dde5c
Disable command line globbing on MinGW compiles: this saves startup time, since the result of the glob is not used anywhere.
2013-09-30 14:03:56 +00:00
jan.nijtmans
868c2951dc
Restore copyright assignments and some improved comments in tclOO.decls: previous commit was a blind revert of [371bcd0714], but those changes should not have been reverted.
2013-09-30 09:38:49 +00:00
jan.nijtmans
e438509c68
Fix [f51efe99a7] by reverting [371bcd0714]
2013-09-30 09:03:20 +00:00
dkf
93595c68aa
First attempt at [string trim] compilation.
2013-09-30 03:00:06 +00:00
dkf
324cc442eb
merge trunk
2013-09-30 01:05:48 +00:00
dkf
4f19f86513
typo; spotted by stu
2013-09-28 22:52:11 +00:00
dkf
fd38147f32
[dfc08326e3]: Corrected symbol export for TclOO to match Tcl so things work as
...
expected in a static build.
2013-09-28 21:10:22 +00:00
dgp
ce33f01bf1
Fix test source-4.1
2013-09-27 17:33:17 +00:00
dgp
bfb7ea0e46
merge 8.5
2013-09-27 16:10:43 +00:00
dgp
694bd3ba73
Merge forward new test, marked as knownBug, so other merges are no longer held back.
2013-09-27 15:34:09 +00:00
dkf
067ef1dcea
[219226]: Rewrote how ::env is synchronized to the environment so it no longer
...
smashes the array or its elements flat, This affects traces on env, links to
env, and iterations over env: it makes them work as naïvely expected.
2013-09-27 10:29:43 +00:00
jan.nijtmans
878c0cff52
Cherrypick [87d1313df3] from trunk:
...
Workaround for [http://sourceforge.net/p/mingw/bugs/2065/ |MinGW bug #2065 ].
Both MinGW and MinGW-w64 (32-bit) are affected.
Even though Win64 is not affected, adding -static-libgcc doesn't harm there, and we don't want to distrubute additional dll's with MinGW-compiled Tcl anyway.
2013-09-27 09:35:05 +00:00
jan.nijtmans
9bdcf8e201
Workaround for [ http://sourceforge.net/p/mingw/bugs/2065/ |MinGW bug #2065 ].
...
Both MinGW and MinGW-w64 (32-bit) are affected.
Even though Win64 is not affected, adding -static-libgcc doesn't harm there, and we don't want to distrubute additional dll's with MinGW-compiled Tcl anyway.
2013-09-27 09:18:36 +00:00
dkf
f3dba34e63
merge trunk
2013-09-26 16:32:21 +00:00
jan.nijtmans
09a4760ba3
Tcl_SetResult -> Tcl_SetObjResult
2013-09-26 14:27:37 +00:00
dkf
ce9b84204c
[d614d63989] Ensure that there are no trailing colons as that causes chaos when a deleteProc is specified.
2013-09-25 22:54:29 +00:00
dgp
e929b91222
Test demonstrating need for "adjust" manipulation in TclSubstTokens.
2013-09-25 16:39:26 +00:00
dgp
1d119413f6
revert mistaken commit of experiment
2013-09-23 12:18:45 +00:00
jan.nijtmans
1fce20754c
workaround for mingw bug [ http://comments.gmane.org/gmane.comp.gnu.mingw.user/41724 ]
2013-09-23 11:27:47 +00:00
jan.nijtmans
96fec1a88c
workaround for mingw bug [ http://comments.gmane.org/gmane.comp.gnu.mingw.user/41724 ]
2013-09-23 11:12:12 +00:00
dkf
36a7db47de
merge trunk
2013-09-20 13:02:29 +00:00
dkf
97323cd8a0
merge trunk
2013-08-22 07:09:21 +00:00
jan.nijtmans
a333bbaa12
rebase TIP [ http://tip.tcl.tk/425 |425] implementation
2013-08-19 09:10:36 +00:00
jan.nijtmans
2bc847ac57
rebase
2013-08-11 15:19:42 +00:00
dkf
24197ad684
merge trunk
2013-08-08 20:19:42 +00:00
dgp
92323ee89f
merge trunk
2013-08-05 14:47:27 +00:00
dkf
0f2d93b3a6
merge trunk
2013-08-01 13:40:45 +00:00
dkf
f96b9f2783
And documentation
2013-08-01 13:27:37 +00:00
dkf
f370c68d92
Support type discovery in coroutines.
2013-08-01 13:21:04 +00:00
dkf
f8e147cb73
Improving the test suite for [info cmdtype].
2013-08-01 06:44:24 +00:00
dkf
ceb88b82f1
merge trunk
2013-07-31 20:05:00 +00:00
dkf
a6c0992f47
Added tests
2013-07-31 20:03:43 +00:00
jan.nijtmans
9283692888
rebase
2013-07-29 10:51:05 +00:00
dkf
9acc153698
merge trunk
2013-07-26 13:30:31 +00:00
jan.nijtmans
017b8b10b6
Fix Cygwin build: put Tcl_ConsolePanic in the stub library, not the dll.
2013-07-24 14:14:34 +00:00
jan.nijtmans
4ddfe70ae2
implement for Cygwin as well
2013-07-23 12:42:52 +00:00
jan.nijtmans
53dc25e532
Add documentation
2013-07-23 11:54:49 +00:00
jan.nijtmans
542b57cf21
rebase
2013-07-23 10:57:22 +00:00
dkf
afd4d17b3c
Changed subcommand name following community feedback.
2013-07-16 14:12:40 +00:00
dkf
82132b6c4c
Some documentation.
2013-07-10 13:45:52 +00:00
dkf
8fa124afba
merge trunk
2013-07-07 11:57:55 +00:00
dkf
21d8621d11
Added a mechanism for discovering the "type" of a command.
2013-07-07 11:15:08 +00:00
jan.nijtmans
e36fd891e4
rebase
2013-06-27 09:07:04 +00:00
jan.nijtmans
954b241f34
rebase
2013-06-26 08:23:31 +00:00
dkf
df623b6abe
Properly encode more operand types to reduce the number of special cases in the disassembler.
2013-06-20 11:05:20 +00:00
dkf
3ef97fba38
merge trunk
2013-06-19 22:46:10 +00:00
jan.nijtmans
f038b7fc3d
merge trunk
2013-06-18 13:46:12 +00:00
jan.nijtmans
3f56494834
rebase
2013-06-18 09:52:53 +00:00
dkf
a261f7d413
Remove extra scribblings not normally needed. Thanks to jdc for suggestion.
2013-06-17 14:04:28 +00:00
jan.nijtmans
6a811b97b9
rebase
2013-06-14 11:21:00 +00:00
dkf
50cc521ee3
Improved rendering of some opcode arguments and auxdata.
2013-06-13 21:21:22 +00:00
dkf
48205fa50d
merge trunk
2013-06-13 08:31:24 +00:00
dkf
9fb06ec1c9
Extract more of the info from the bytecode.
2013-06-12 08:55:15 +00:00
dkf
f9e188bad3
merge trunk
2013-06-11 21:40:51 +00:00
dkf
6b65756937
Code-readable disassembler: tcl::unsupported::getbytecode
2013-06-11 21:33:33 +00:00
dkf
a74538b064
merge trunk
2013-06-11 08:34:09 +00:00
dkf
55787f4f08
Move the disassembler to its own file.
2013-06-11 08:19:56 +00:00
jan.nijtmans
30dbc0a75b
Update Unicode tables to Unicode 6.3 beta.
...
Merge trunk
2013-06-10 07:36:47 +00:00
dkf
0d59c187fe
merge trunk
2013-06-09 17:38:20 +00:00
dkf
4d2add8f0f
merge trunk
2013-06-08 13:42:46 +00:00
jan.nijtmans
1900da6d24
rebase
2013-06-07 13:22:20 +00:00
jan.nijtmans
8f38d12eee
TIP #414 implementation
2013-06-04 08:34:32 +00:00
jan.nijtmans
3f5f45f002
fix directory where tclWinPanic.c resides
2013-05-17 14:09:20 +00:00
jan.nijtmans
e6528cb48d
rebase
2013-05-17 07:36:01 +00:00
jan.nijtmans
041184928d
rebase
2013-04-11 15:10:36 +00:00
jan.nijtmans
b108063f75
rebase
2013-04-11 10:18:15 +00:00
dkf
859eff84db
merge trunk
2013-04-05 08:46:23 +00:00
jan.nijtmans
9ce336b3d1
rebase
2013-04-03 21:24:39 +00:00
jan.nijtmans
b5da760544
rebase
2013-04-03 21:07:40 +00:00
jan.nijtmans
7e520e2089
rebase
...
increase limit to 26000 characters
2013-04-03 13:12:14 +00:00
jan.nijtmans
07af7d5337
better comments
2013-04-03 12:38:46 +00:00
jan.nijtmans
696a9ba3f9
Use Tcl_InitSubsystems in Tcl_Main macro
2013-04-01 21:48:51 +00:00
jan.nijtmans
9db6776dbe
initsubsystems
2013-04-01 16:45:36 +00:00
jan.nijtmans
1c6a242b2e
2 lines not used any more
2013-03-31 22:09:40 +00:00
jan.nijtmans
a58db736cf
Fix Tcl_Main macro
2013-03-31 20:27:33 +00:00
jan.nijtmans
449ea43718
Going forward trying to define a better Tcl_InitStubsystems()
2013-03-31 20:17:46 +00:00
jan.nijtmans
260c2634b9
better leave tclPanic.c as it was
2013-03-31 19:32:57 +00:00
jan.nijtmans
6d0db57c02
Better Windows console panic proc, still to be TIPped.
2013-03-30 21:44:39 +00:00
dgp
11593d64b8
merge trunk so review patch/diff is smaller
2013-03-26 18:00:54 +00:00
jan.nijtmans
e4a0b9dbfd
Looks like TCL_INIT_CUSTOM (previously known as TCL_INIT_STUFF) is not a bad idea at all,
...
provided it has a Tcl_Interp* argument as well, so it can initialize the stub table.
A typedef for the function is not necessary, as a variable-argument function doesn't do any type checking. It's for the experienced developer anyway.
2013-03-26 15:57:45 +00:00
jan.nijtmans
bb770e33f8
Add TCL_INIT_STUFF
2013-03-26 13:58:53 +00:00
jan.nijtmans
d048128004
Version having TCL_INIT_PANIC as only Tcl_InitSubsystems() flag
2013-03-26 10:20:03 +00:00
jan.nijtmans
eecece2afe
TCL_INIT_ENCODINGPATH
2013-03-25 15:00:55 +00:00
jan.nijtmans
74c7068a25
merge trunk
2013-03-22 11:35:07 +00:00
jan.nijtmans
59360240b3
merge trunk
2013-03-06 13:38:05 +00:00
jan.nijtmans
57d33c5027
merge trunk
2013-03-06 13:37:19 +00:00
jan.nijtmans
e1c5526cb2
Merge trunk.
...
Unicode 6.3 does not have that many spaces.....
2013-02-25 16:03:26 +00:00
jan.nijtmans
290c2ef84f
Merge trunk.
...
Upgrade all tables to Unicode 6.3 (not released yet)
2013-02-25 13:38:06 +00:00
jan.nijtmans
91ba235b3c
merge trunk.
...
Comment improvements, styling.
2013-02-23 20:16:30 +00:00
jan.nijtmans
d13fe1e431
merge trunk.
...
Simplify dummy "interp" struct.
2013-02-23 11:19:13 +00:00
jan.nijtmans
f361c1805c
merge trunk.
...
doc improvements
2013-02-20 12:47:12 +00:00
jan.nijtmans
52b8ad45d1
Doc improvements.
...
Use freeProc field of pseudo interpreter to store the magic value.
2013-02-17 13:02:40 +00:00
jan.nijtmans
9b6c85d82e
Merge trunk.
...
Move Tcl_InitSubsystems documentation to its own manpage
2013-02-15 10:29:05 +00:00
jan.nijtmans
88b8fc30a2
merge trunk
2013-02-14 10:11:58 +00:00
jan.nijtmans
1a0463ea04
merge trunk
2013-02-05 13:55:53 +00:00
jan.nijtmans
cab91124b4
merge trunk
2013-02-04 22:58:38 +00:00
dkf
967d113043
merge trunk
2013-02-04 22:02:53 +00:00
jan.nijtmans
8d9ea7c132
merge trunk
2013-02-03 16:07:32 +00:00
jan.nijtmans
c5558280d7
merge trunk
2013-02-01 09:11:18 +00:00
jan.nijtmans
3913f5f7ae
merge trunk
2013-01-26 17:04:32 +00:00
jan.nijtmans
e8c69aa654
merge trunk
...
doc improvements
2013-01-26 00:45:01 +00:00
jan.nijtmans
b2b37d97cf
merge trunk
2013-01-25 13:12:01 +00:00
jan.nijtmans
4796adf5cb
Another memory leak, and one Tcl_Free -> ckfree
2013-01-25 13:07:06 +00:00
jan.nijtmans
2c02c2ae5d
Eliminate some unneeded usages of Tcl_SetResult, Tcl_AddObjErrorInfo
...
Fix "make test-packages" on cygwin
2013-01-25 11:45:17 +00:00
jan.nijtmans
ef824b7395
merge trunk
2013-01-21 13:56:51 +00:00
jan.nijtmans
2930daf68c
Implement TCL_INIT_CREATE_UTF8/TCL_INIT_CREATE_UNICODE
2013-01-10 09:23:39 +00:00
jan.nijtmans
0481e3ca74
New function Tcl_InitSubsystems, still to be TIP'ed
2013-01-09 10:30:00 +00:00
dkf
38dfb78b4e
merge trunk
2013-01-08 20:31:35 +00:00
dkf
0eb33efc7a
merge main dev branch
2013-01-03 14:08:49 +00:00
dkf
53baa9e5c4
merge main dev branch
2013-01-03 14:07:24 +00:00
dkf
af735a0ba9
merge main dev branch
2012-12-19 11:43:40 +00:00
dkf
a7b60b26f1
merge main dev branch
2012-12-19 11:42:46 +00:00
dkf
d6bd07fecc
merge dkf-compile-misc-info
2012-11-20 12:14:18 +00:00
dkf
f497ce9a95
merge dkf-compile-misc-info
2012-11-20 12:13:43 +00:00
dkf
a1db4012d9
merge trunk
2012-11-13 18:02:35 +00:00
dkf
414163addc
merge main dev branch
2012-11-05 21:56:13 +00:00
dkf
71fd534215
merge main dev branch
2012-11-05 21:55:40 +00:00
dkf
b8bcc352ea
merge main dev branch
2012-11-05 15:33:44 +00:00
dkf
f04eef80d7
merge main dev branch
2012-11-05 15:28:01 +00:00
dkf
2de2d8678f
reorder to preserve main BC development branch sequence better
2012-11-02 20:39:10 +00:00
dkf
d5e04d6200
merge dkf-compile-misc-info
2012-11-02 20:25:57 +00:00
dkf
6d14b815b2
Work on compilation of [string is].
...
Hit some problem edge cases with differences in strictness of edge cases that
will force a rethink ([string is boolean] is significantly more strict than
Tcl_GetBooleanFromObj).
2012-11-02 16:50:06 +00:00
dkf
ed18777278
Working towards a BCCed [next].
...
This version <i>almost</i> works, except for a problem with restoring the
context namespace upon return (which produces very strange results!)
2012-11-01 20:40:55 +00:00
dkf
3f0cb9473b
merge trunk
2012-10-16 13:44:58 +00:00
dkf
2edb721609
separating out the IDNA handling code
2012-10-12 13:18:24 +00:00
dkf
82abe83414
reorganize the code so that the IDNA procs live with the punycode procs; correct some misleading (and misleadingly-placed) comments
2012-10-10 14:49:45 +00:00
dkf
1bf1abb40a
merge trunk
2012-10-04 10:31:54 +00:00
jan.nijtmans
073618d375
Merge trunk
2012-09-26 12:00:50 +00:00
oehhar
a4ced94ae6
clock uses new msgcat features
2012-09-20 09:53:02 +00:00
dkf
dd7b94054a
merge trunk
2012-09-19 22:57:16 +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
dkf
ea1ff58500
Fix the bugs in the punycode decoder
2012-09-18 10:15:30 +00:00
dkf
9bbbadaa57
adapt to 8.6 environment properly; still some bugs...
2012-09-17 14:44:23 +00:00
dkf
3c1c246415
merge trunk
2012-09-14 07:44:20 +00:00
dkf
52d39094e4
packing the code tighter, doing more explanatory comments
2012-09-11 10:37:10 +00:00
dkf
4aba0742ce
merge trunk
2012-09-10 21:26:22 +00:00
dkf
6f1a0f1c60
loading of restricted domain list now believed to work
2012-09-10 21:24:34 +00:00
dkf
99359a48d9
Now, a working punycode engine
2012-09-10 11:00:59 +00:00
dkf
ef405dbe9c
working on handling punycoding of IDNAs
2012-09-09 12:02:38 +00:00
dkf
ee1f2a2484
More improvements
2012-09-07 10:35:14 +00:00
dkf
9e6f2e579a
improving the database, working towards a purging algorithm for session cookies
2012-09-07 07:13:44 +00:00
dkf
ddb07346c0
Tidy up, making code be of higher general quality.
2012-09-06 19:18:37 +00:00
dkf
2d8bb440c9
merge trunk
2012-09-06 10:16:39 +00:00
dkf
a23ee46c67
improve logging, correct 'secure' property handling, correct domain handling, simplify http<->cookiejar interface
2012-09-06 09:49:52 +00:00
dkf
8d9808cb4d
closer to working
2012-09-05 10:24:05 +00:00
dkf
fa56a98ba9
more realistic queries
2012-09-05 09:46:03 +00:00
dkf
bb95c2d8e9
merge trunk
2012-09-04 21:26:21 +00:00
dkf
51e67d70c4
Improving the cookie lookup code to actually handle paths&domains
2012-09-04 21:24:43 +00:00
dkf
bdafa7afcb
Add package index entry.
2012-09-02 07:28:02 +00:00
dkf
51ab423164
merge trunk
2012-09-02 07:21:51 +00:00
dkf
94ad48ea87
merge trunk
2012-08-04 07:49:14 +00:00
dkf
99af655c4c
some small tinkerings
2012-07-31 10:52:29 +00:00
dkf
4085af6b83
merge trunk
2012-07-20 08:23:20 +00:00
dkf
db9c41f45c
First attempt at a "bad cookie domain" detector, a critical security check.
2012-07-19 16:28:50 +00:00
dkf
03fec9c7fe
merge trunk
2012-07-11 10:56:57 +00:00
dkf
06cfc731c6
Start of implementation of cookiejar package. Not yet working/finished.
2012-07-11 10:52:49 +00:00
dkf
e6dbc77e0e
merge trunk
2012-07-08 11:32:04 +00:00
dkf
d321f40d3b
merge trunk
2012-07-08 11:22:05 +00:00
dkf
b9098ee927
Make the parsing work with Google.
2012-07-08 11:15:45 +00:00
dkf
0d4a963517
Starting work on support code for cookies. This adds a configurable interface
...
for plugging in a cookie manager (not enabled by default).
2012-07-07 12:34:39 +00:00
jan.nijtmans
5ddf03d324
merge trunk
2012-04-22 20:51:02 +00:00
jan.nijtmans
ac98be85ce
merge trunk
2012-02-03 21:25:41 +00:00
jan.nijtmans
048fae9de6
merge trunk
2012-01-26 21:58:18 +00:00
jan.nijtmans
81735df1fa
merge trunk
2012-01-23 22:19:24 +00:00
jan.nijtmans
9c32ab0d8b
Merge to feature branch
2011-10-05 14:23:40 +00:00
jan.nijtmans
861e75f503
Merge to feature branch
2011-09-21 09:03:42 +00:00
jan.nijtmans
e891120584
merge to feature branch
2011-09-17 07:19:28 +00:00
jan.nijtmans
2045bb3c21
merge to feature branch
2011-09-16 08:14:27 +00:00
jan.nijtmans
a498488c59
Merge to feature branch
2011-08-29 07:44:12 +00:00
jan.nijtmans
dd43ee3dbf
Merge to feature branch
2011-08-25 12:11:24 +00:00
jan.nijtmans
39ad9eb8f3
fix tests utf-2.8 and utf-2.9
2011-08-24 08:32:39 +00:00
jan.nijtmans
b30ba5a92b
Upcoming TIP implementation: Full support for Unicode 6.0
2011-08-24 07:50:13 +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