dkf
d4654f8568
I hate YAML.
2019-07-17 14:10:30 +00:00
dkf
332f3e88d2
Of course, Cygwin doesn't install a working build environment by default...
2019-07-16 11:57:01 +00:00
dkf
49935f618a
Switch to using cygwin; apparently that's expected for our GCC-on-Win builds
2019-07-15 14:15:15 +00:00
dkf
12b79cb977
Print what VPATH actually is
2019-07-13 11:44:59 +00:00
dkf
3a5183b88e
Travis windows debugging
2019-07-12 06:41:25 +00:00
dkf
d129d1a6e9
Add CI (Travis) builds and testing for Windows, both with MSVC and GCC.
2019-07-10 08:49:57 +00:00
dkf
b032f6d67b
Add CI (Travis) builds and testing for Windows, both with MSVC and GCC.
2019-07-10 08:28:31 +00:00
dkf
777a642667
merge core-8-5-branch
2019-07-10 08:25:48 +00:00
dkf
eaaa675e99
More tweaking to work around YAML parsing issues and fix an irrelevant test failure with static builds on Windows
2019-07-09 08:39:27 +00:00
jan.nijtmans
5d106cabda
Merge 8.5
2019-07-08 20:18:38 +00:00
jan.nijtmans
4b7f867f90
Simplify previous commit: Just always use Tcl_WideInt
2019-07-08 19:02:56 +00:00
sebres
a4c8e24f4c
amend to [c14252171d]: fixes [4718b41c56] for x64 (and x86 with 64-bit predefined time_t resp. CRT library)
2019-07-08 15:00:12 +00:00
dkf
309510e33e
Tweak the build a bit more, and use YAML a bit better
2019-07-08 10:57:56 +00:00
dkf
58c45c0f97
Updated win/configure to use current version of autoconf
2019-07-07 15:20:26 +00:00
jan.nijtmans
fdf2dd144f
Merge 8.5
2019-07-05 22:53:07 +00:00
jan.nijtmans
97bf1ced2b
Merge 8.5
2019-07-05 22:51:15 +00:00
jan.nijtmans
28f17c0d70
Add "name" entries to travis build configuration
2019-07-05 22:49:31 +00:00
jan.nijtmans
9d0dfc6f26
Fix [4718b41c56d8c135]: windows x86 & x64: file mtime overflows in modification date. Only fixed for x64, because for x86 it isn't possible without breaking API compatibility
2019-07-05 11:23:56 +00:00
jan.nijtmans
4d25168772
Fix [4718b41c56d8c135]: windows x86 & x64: file mtime overflows in modification date.
...
Only fixed for x64, because for x86 it isn't possible without breaking API compatibility.
2019-07-05 09:29:55 +00:00
dkf
912f1a8816
The next round of trying to get Windows builds working
2019-07-05 08:39:59 +00:00
dkf
24829b80ac
Might as well try direct gcc on Windows too.
2019-07-04 09:57:31 +00:00
dkf
12c3fbcb0c
More tinkering with the build. Can override scripts in the matrix, but need magic to find nmake.
2019-07-04 09:45:24 +00:00
dkf
a33b0950be
Tcl_ObjectDeleted was only partially documented. Oops.
2019-07-03 20:10:17 +00:00
dkf
9740bc1662
There are no cats in America, and no tabs in YAML files
2019-07-03 13:24:16 +00:00
dkf
8751d32304
So... you can't directly override a script in the matrix section of .travis.yml
2019-07-02 09:13:59 +00:00
José Ignacio Marín
b0ffd31845
Update TZ info to tzdata2019b.
2019-07-02 07:24:11 +00:00
dkf
ac198c7f44
This is a trial of doing a classic Windows build-and-test on Travis
2019-07-01 20:33:55 +00:00
dgp
150fb8061f
Avoid valgrind issues with uninitialized memory
2019-07-01 19:29:55 +00:00
dgp
d17af2c703
Avoid valgrind issues with "uninitialized memory"
2019-07-01 19:21:06 +00:00
jan.nijtmans
41be9233e9
Trying to fix C4761 warning with VC++ 6.0
2019-06-29 21:29:46 +00:00
sebres
574c3c0027
winFCmd.test: fixes EXDEV related constraint and paths in test cases (covering move/rename across devices)
2019-06-27 16:20:05 +00:00
jan.nijtmans
d25a0dae48
Fix [15d851e394]: Fix spelling in comment of tclCmdIL.c
2019-06-27 13:38:09 +00:00
jan.nijtmans
c4459402a9
UNEXEC win/tclWinFile.c
2019-06-26 08:27:51 +00:00
jan.nijtmans
7c0afa7cd6
Merge 8.5
2019-06-26 08:26:01 +00:00
jan.nijtmans
595cb86379
Remove EXECUTE flag for tclWinFile.c. More eol-spacing cleanup (keeping tests-pref/* among other the same in multiple branches)
2019-06-26 08:21:19 +00:00
jan.nijtmans
5ef1c629df
Makef tclTomMath.h work with VC++ 6.0
2019-06-25 22:27:43 +00:00
sebres
9392d9001a
restore userenv, used in 8.6
2019-06-25 18:59:09 +00:00
sebres
e113eb82e5
merge 8.5
2019-06-25 18:02:12 +00:00
sebres
334b8029ed
nmakehlp: fixed const qualifier
2019-06-25 17:45:23 +00:00
sebres
be26adf83b
fixed build with MSVC 6.0
2019-06-25 16:09:33 +00:00
jan.nijtmans
9489b8b506
Squelch C4244 warning on any MSVC compiler.
2019-06-25 06:56:26 +00:00
sebres
8ab0ae062e
closes [f8a33ce3db5d8cc2]: Tcl_Exit uses system exit as fallback if Tcl-subsystems are not (yet) initialized (or initialization fails).
2019-06-21 19:22:07 +00:00
dkf
2f8cb2ab85
[6bdadfba7d] Stop crash with multi-lappend and failing writes
2019-06-20 19:40:30 +00:00
dgp
a9083528ab
[8b9854c3d8] Undo regression in [info level 0] after ensemble dispatch.
2019-06-17 18:00:29 +00:00
jan.nijtmans
96f1d4ec34
Merge 8.5
2019-06-15 22:31:51 +00:00
jan.nijtmans
c1ee80eccf
Use mp_init_set() in stead of mp_init_set_int() when the constant is sufficiently small. This is slightly better optimized.
2019-06-15 22:30:59 +00:00
dgp
526c432322
Mark test namespace-54.6 as knownBug.
...
The real bug here is Tcl's failure to forbid ":" as a namespace name.
2019-06-13 20:43:04 +00:00
dgp
1ebe878444
Fix Bug 8b9854c3d8. Now 4 test failures require examination.
2019-06-13 17:58:48 +00:00
dgp
1cd98b93bd
Unique test name.
2019-06-13 17:37:46 +00:00
dgp
5645bb01ff
Test namespace-56.4 detects Bug 8b9854c3d8. Branch open to fix it.
2019-06-13 17:20:45 +00:00
jan.nijtmans
e69d76af16
Fix [25deec4e46]: Tcl fails to compile with icc due to typedef conflict
2019-06-11 15:31:29 +00:00
jan.nijtmans
6420ec98e8
Fix [25deec4e46]: Tcl fails to compile with icc due to typedef conflict
2019-06-11 15:30:27 +00:00
dkf
44d4c7f793
General improvements to the expr manpage
2019-06-10 19:43:59 +00:00
dkf
1cab268c94
General improvements to the expr manpage
2019-06-10 19:27:31 +00:00
dgp
39fba10b45
More localized documentation of lazy operators.
2019-06-10 18:44:18 +00:00
dgp
5f72a5554c
More bytecodes are non-throwing.
2019-06-10 18:33:28 +00:00
dgp
3fe6dfccc1
Remove declarations that are never defined.
2019-06-10 18:31:09 +00:00
dgp
774c2050f1
Remove declarations that are never defined.
2019-06-10 18:24:05 +00:00
dkf
ab3a73bf75
minor cleanup of source code formatting
2019-06-09 11:28:58 +00:00
jan.nijtmans
d23bb9578a
In tools/*, use the single-argument version of "expr" always. Making it robust against TIP #526 . Those tools generally are the same among all Tcl versions.
2019-05-31 23:13:21 +00:00
jan.nijtmans
be861c2430
Rename mp_get_bit to s_mp_get_bit, rename mp_tc_div_2d to mp_signed_rsh, remove mp_tc_(add|or|xor) functions in favor of mp_(add|or|xor) which can now handle twos-complement. Following ongoing changes in libtommath development.
2019-05-31 11:28:39 +00:00
jan.nijtmans
984c717026
Merge 8.5
2019-05-29 23:08:11 +00:00
jan.nijtmans
7a1b66b00d
Update some libtommath functions to the latest trunk versions. Small step forward in the upgrade to (upcoming) libtommath 1.2.
...
Advantage: simplify Tcl code accessing those functions.
2019-05-29 22:48:50 +00:00
jan.nijtmans
6c6bec6689
Fix build status in README.md
2019-05-28 22:48:52 +00:00
jan.nijtmans
372248583f
Rename README to README.md, and reformat
2019-05-28 22:17:37 +00:00
jan.nijtmans
4ff1524f2a
Merge 8.5
2019-05-28 21:41:23 +00:00
jan.nijtmans
4e994192a1
Eliminate a set of libtommath-related files that don't do anything. There's no sense in it, keeping track of those files in the Tcl repository.
2019-05-28 21:38:58 +00:00
jan.nijtmans
c70641a878
Fix "make dist" for the README -> README.md renaming
2019-05-27 21:18:01 +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
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
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
7db84b0155
Knock VOID back down
2019-05-21 16:42:11 +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
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
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
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
jan.nijtmans
d232a6d28e
Minor compiler warning
2019-05-09 15:32: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
f218c1f1eb
(cherry-pick from8.6): Japanese Reiwa (令和) era
2019-05-07 07:19:10 +00:00
dgp
84f4682378
close fork
2019-05-04 22:44:47 +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
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
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
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
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
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
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
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
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
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
1749b4cc87
Add test-cases for win32/win64 --disable-shared, and put standard --enable-threads
2019-04-08 19:31:10 +00:00
jan.nijtmans
96bf31bbbd
Take over recent improvements from libtommath after version 1.1.0.
2019-04-05 20:56:24 +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
jan.nijtmans
9d183921c9
Fix gcc warning on 32-bit platforms
2019-04-02 18:21:09 +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
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
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
José Ignacio Marín
9eb32ba719
Update TZ info to tzdata2019a.
2019-03-26 22:23:23 +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
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
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
f9944f5235
Fix outdated comment
2019-03-21 07:45:32 +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
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
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
d37dcc7d71
Fix automatic pkgIndex generation for multiplatform installs
2019-03-07 14:12: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
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
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
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
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
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
a29e4e5b15
Merge 8.5
2019-02-25 21:12:53 +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
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
jan.nijtmans
886343e50b
Fix some comments: "upper" -> "high" (when talking about surrogates)
2019-02-19 20:12:06 +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
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
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
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
04ed7f99da
Update libtommath to latest stable release (1.1.0)
2019-02-01 20:00:04 +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
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
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
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
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
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
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
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
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
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
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
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
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
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
5004f536d3
Update TZ info to tzdata2018i.
2018-12-31 10:50:48 +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
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
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
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
c00086981f
New test-cases (backported from 8.7) adapted for pre-TIP-502 behavior
2018-12-20 20:04:01 +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
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
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
sebres
5c59a6a505
fixed typo in prepro #ifdef unix || __APPLE__
2018-11-22 14:44:16 +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
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
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
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
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
dgp
f2d42d756e
merge release
2018-11-15 16:55:13 +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
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
dkf
4402274b45
Make socket tests less likely to hang on OSX
2018-11-14 03:31:58 +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
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
d16fc1a584
[35a8f1c04a] Fix bad lengths when creating string rep of some lists.
2018-11-09 16:42:37 +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
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
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
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
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
bea160e7f6
Start building this branch with Travis. See how far we get
2018-11-01 20:18:12 +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
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
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
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
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
ccbbac847a
update changes
2018-10-29 12:36:29 +00:00
dgp
8e4701fd31
merge 8.6
2018-10-29 12:28:15 +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
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
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
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
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
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
691b2ab5c4
update changes
2018-10-23 23:34:34 +00:00
dgp
352d056288
merge 8.6
2018-10-23 23:25:53 +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
dkf
983b95bdbd
Enable CI builds with Travis.
2018-10-23 11:14:13 +00:00
jan.nijtmans
f8876cc390
Update libtommath to latest "develop" branch
2018-10-22 19:32:11 +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
dkf
0c78f5bbad
Disable windows builds. Make test failures fatal.
2018-10-21 10:16:05 +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
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
dkf
09446c7544
Added another test case. This one is OK.
2018-10-19 09:59:14 +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
6b0dccd9d5
Update TZ info to tzdata2018f.
2018-10-18 18:23:50 +00:00
dkf
e006418946
Tests for advanced object mutation issues.
2018-10-18 14:58:28 +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
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
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
dgp
d918760272
Backport test fix.
2018-10-10 23:04:25 +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
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
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
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
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
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
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
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
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
jan.nijtmans
d5583552c0
Contributed patch from Gustaf Neumann, preventing problems where "localCachePtr" can be NULL
2018-09-25 21:16:32 +00:00
dgp
338b9ec9d2
Silence debugging message in test suite.
2018-09-24 16:15:25 +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
63ef0e3d26
Update http version number, and fix some related test-cases
2018-09-22 10:20:28 +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
dgp
cdce5491b3
Rebase TIP 505 implementation a patch for 8.6.
2018-09-10 15:28:23 +00:00
sebres
9a15a1b586
small code review (duplicate code removed)
2018-09-07 14:24:49 +00:00
dgp
95db69f27b
Added test for [631b4c45df].
2018-09-07 12:04:32 +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
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
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
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
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
89ff80fbdd
merge-mark
2018-08-19 09:16:30 +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
dgp
6c78bf0adc
Repair breakage in recent refactoring of env.test
2018-08-08 20:48:06 +00:00
jan.nijtmans
8346cad0dd
Fix harmless gcc warning
2018-08-08 06:45:29 +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
c1ae69114b
Remove some actually dead code
2018-07-31 19:49:51 +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
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
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
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
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
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
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
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
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
ed5ed756bc
Restore lost tests.
2018-06-26 14:22:08 +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
pooryorick
e2a79c2604
Fix for [3592747]: Let TclNRTailcallEval handle namespace problems.
2018-06-24 07:17:46 +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
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
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
pooryorick
2b739c838a
Remove dependencies between tests in env.test.
2018-06-17 08:47:29 +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
pooryorick
41a6159754
new package
...
tcltests
exclude some exec.test tests when running under valgrind
2018-06-16 17:55:31 +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
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
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
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
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
kjnash
754bb107b4
Bugfix - always cleanup persistent socket.
2018-06-01 18:34:07 +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
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
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
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
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
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
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
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
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
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
pooryorick
5f0cf291f5
Deduplicate code in INST_STR_CMP, StringCmpCmd, and StringEqualCmd.
2018-05-07 07:43:00 +00:00
pooryorick
db133f0144
Factor options handling out of StringCmpCmd.
2018-05-06 18:13:54 +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
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
096a011c43
Update TZ info to tzdata2018e.
2018-05-04 19:06:09 +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
dgp
c876decde3
Doc typo fix from Andy Goth.
2018-04-25 11:48:14 +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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
c5e979695a
Missing test cleanups that break later tests.
2018-03-15 10:58:13 +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
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
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
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
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
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
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
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
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
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
d9dbcf5afb
Remove unused argument.
2018-03-10 15:41:04 +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
dgp
ce6aa3ea08
When index parsing alone tells you a [string range] is empty, just push it.
2018-03-07 21:02:44 +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
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
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
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
dgp
da8fbb89c4
various bits of ranting commentary
2018-03-06 17:38:44 +00:00
sebres
465d28aa75
merge core-8-5-branch (fixes [1873ea0ee4f01b26]: wrong initialization of std-channels ...)
2018-03-05 17:43:42 +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
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
683dada217
Some comments info for the next folks who come wandering in.
2018-03-01 20:07:29 +00:00
dgp
2cd8bf554e
Refactor to eliminate duplicate routine parsing tokens as indices.
2018-03-01 16:48:55 +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
455b61dce3
[89dfecb6b7] Make thread IDs in testing commands consistent.
2018-02-22 18:57:20 +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
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
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
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
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
40e9ab2e65
More tests for bignum modules regressions.
2018-02-14 12:52:06 +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
396c1a637c
New test expr-32.7 for bignum modulus range.
2018-02-13 20:51:57 +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
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
José Ignacio Marín
b618278c9f
Update TZ info to tzdata2018c.
2018-02-02 09:19:41 +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
dgp
a0c6bf8d92
Regression test for shimmering danger in [join].
2018-01-27 01:38:21 +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
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
5fea88381c
typo's (found by Gustaf Neumann). Thanks!
2018-01-17 10:06:30 +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
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
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
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
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
f2f7b85f88
merge release
2017-12-23 18:33:36 +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
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
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
f4cc39572c
update changes
2017-12-19 14:46:31 +00:00
dgp
9acbab2c0e
merge 8.6
2017-12-18 14:06:37 +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
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
dgp
50bb6253da
merge 8.6
2017-12-14 13:32:50 +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
8c866ee6be
Add -L option to nmakehlp to locate directories
2017-12-12 17:32:21 +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
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
a2c5ea2c08
Merge TIP 477 implementation
2017-12-08 13:54:42 +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
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
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
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
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
b8fbe8c1d3
Fix [4f51e1c5dcf75de22f5907f7b66361e4bcab02e2|4f51e1c5dc]: patch to correct linker flag sequence
2017-12-01 12:47: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
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
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
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
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
pooryorick
14c8dabffe
merge (cherrypick): Add missing parenthesis to an expression in TclEnsureNamespace.
2017-11-25 21:40:19 +00:00
pooryorick
9b1ecce298
Move return type to its own line.
2017-11-23 18:24:09 +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
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
apnadkarni
335305de9c
Added back nothreads option.
2017-11-17 15:46:23 +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
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
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
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
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
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
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
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
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
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
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
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
dgp
fd61a8e89e
Attempted bug fix.
2017-11-07 21:32:04 +00:00
apnadkarni
c7530621ad
Fix inclusion of custom resource files to match TIP spec
2017-11-07 16:47:35 +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
45808db8dc
TIP #422 implementation, Tcl 8.7 part.
2017-11-07 09:08:48 +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
dgp
22719c6596
Test case for Bug 5d65e65036.
2017-11-06 00:10: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
4030616bbf
[0d902eadd6] Ensure that [string first] handles ASCII in Unicode correctly.
2017-11-04 00:44:14 +00:00
apnadkarni
2318b70929
Minor edits
2017-10-28 17:18:58 +00:00
apnadkarni
c324bb3eff
Reworked build command macros (MAKEBINCMD, CCPKGCMD etc.) and purged old comments.
2017-10-26 15:07:16 +00:00
apnadkarni
ff1c348970
Updated comments.
2017-10-25 02:59:46 +00:00
apnadkarni
fe8915122a
Eliminate loimpact and tclalloc options.
2017-10-23 13:53:51 +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
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
apnadkarni
4ef03a8950
Fixed reversed check for implicit rules
2017-10-16 12:46:53 +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
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
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
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
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
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
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
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
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
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
sebres
05d83f7b1a
back-ported branch sebres-8-6-timerate (new command "timerate" for 8.5)
2017-05-16 12:41:01 +00:00