dkf
2021349249
Make fundamental mutation work. MAGICAL MAGIC MAGICS MAGIC. Abracadabra.
2018-10-18 21:38:08 +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
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
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
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
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
dkf
b55d5cc57e
Fix for the weird [string first] behaviour.
2017-11-04 00:34:48 +00:00
dkf
e4356f7d64
Detected bug in [string first] with unicode. Pat Thoyts found it.
2017-11-04 00:25:43 +00:00
dgp
0480b5d79b
Revise a few stray packages not yet ready to tolerate a Tcl 9 bump.
2017-11-03 17:02:49 +00:00
dgp
10a9305777
TIP 345 Implementation.
2017-11-03 16:48:44 +00:00
jan.nijtmans
d8596e5583
merge core-8-6-branch
2017-11-03 12:59:07 +00:00
jan.nijtmans
5528e1c1a2
Fix [6f2f83cc149e9918884faffefebc8dfa695f4ea0|6f2f83cc14]: tclWinload.c robustness. And fix a minor possible memory leak in TclSetupEnv() as well. Thanks to Christian Werner for both suggestions, backported from Androwish.
2017-11-03 12:57:15 +00:00
jan.nijtmans
785f1059e4
merge core-8-6-branch
2017-11-03 12:15:08 +00:00
jan.nijtmans
274ab123a8
Better versions of TclGetIntFromObj and TclGetIntForIndexM macro's, which give advantage for platforms where longs are not ints (e.g. linux64)
2017-11-03 12:14:01 +00:00
pooryorick
d33ee7bc07
Unit test for issue 3c32a3f8bd, Segmentation fault in
...
TclOO.c/ReleaseClassContents() for a class mixed into one of its instances.
2017-11-01 22:21:50 +00:00
pooryorick
8bb421f959
Fix bug 3c32a3f8bd, segmentation fault in TclOO.c/ReleaseClassContents()
...
for a class mixed into one of its instances.
2017-11-01 21:05:32 +00:00
dgp
2ff3ecb534
merge trunk
2017-10-30 12:02:48 +00:00
pooryorick
e0578530b0
merge bug-fc1409fc91.
2017-10-30 05:25:19 +00:00
pooryorick
a79bc3c8ce
Fix for issue 9fd5c629c1, TclOO - aborts when a trace on command deletion
...
deletes the object's namespace.
2017-10-30 05:19:55 +00:00
dgp
30c40c4540
merge 8.6
2017-10-30 03:23:59 +00:00
dgp
c5865fcd24
More test rewrites for robust var resolution.
2017-10-30 03:23:28 +00:00
dgp
c8342af338
merge 8.6
2017-10-30 03:01:46 +00:00
dgp
1d0751deb7
Revise tests that relied on deprecated variable resolution rules.
2017-10-30 02:55:30 +00:00
apnadkarni
2318b70929
Minor edits
2017-10-28 17:18:58 +00:00
dgp
bed6e18d15
merge trunk
2017-10-27 13:12:09 +00:00
dgp
c668ed46ec
oops
2017-10-27 12:57:45 +00:00
dgp
0a3f9ca6fc
oops
2017-10-27 12:57:15 +00:00
dgp
261012ce98
Update tests that were still written on the outdated premise that Tcl's encoding subsystem had to initialize starting in the identity encoding.
2017-10-27 12:51:14 +00:00
dgp
2f8bbbe141
Update tests that were still written on the outdated premise that Tcl's encoding subsystem had to initialize starting in the identity encoding.
2017-10-27 12:50:38 +00:00
dgp
4ab9cb5418
Update tests that were still written on the outdated premise that Tcl's
...
encoding subsystem had to initialize starting in the identity encoding.
2017-10-27 12:23:28 +00:00
dgp
3888c4fda4
merge mark
2017-10-27 12:04:53 +00:00
jan.nijtmans
fa2e7e8949
Fix timeout calculation in epoll-based notifier. Proposed fix for [1a6a36d901dedead248ea96df09d5dc159532652|1a6a36d901]. Patch by Lucio Andrés Illanes Albornoz. Thanks!
2017-10-27 07:26:15 +00:00
apnadkarni
c324bb3eff
Reworked build command macros (MAKEBINCMD, CCPKGCMD etc.) and purged old comments.
2017-10-26 15:07:16 +00:00
dgp
053a74e0fa
Create new testing command [teststringbytes] to probe the things that
...
otherwise require [encoding convertto identity]. adapt encoding-15.3 to use.
2017-10-26 02:08:27 +00:00
apnadkarni
ff1c348970
Updated comments.
2017-10-25 02:59:46 +00:00
dgp
30c6827ee1
Convert remaining tests to use [testbytestring].
...
encoding-15.3 still needs replacement for [encoding convertto identity].
That is, some testing command to expose objPtr->bytes.
2017-10-25 02:54:24 +00:00
dgp
eb2cfa3e6f
Repair Tcl_CreateEncoding(); Modernize [testencoding];
...
Update most tests toying with identity encoding.
2017-10-25 02:23:12 +00:00
dgp
40d9b81e23
Stop using "identity" as an encoding to test basic functionng of the
...
[encoding] command. "iso8859-1" is another one always available.
2017-10-24 23:30:35 +00:00
dgp
1552384787
Extend Tcl_CreateEncoding() to be able to create an encoding without
...
registering it when it has no name. Then use this to create "identity"
encoding without naming it "identity". Then no one can look it up by that name.
2017-10-24 23:16:23 +00:00
dkf
9306fa604c
Cherrypick: [fc1409fc91] Method cloning needs to be careful with body representations.
2017-10-24 14:11:16 +00:00
jan.nijtmans
d5f679a3f6
Change (internal) refCount field from TclRegexp to type size_t: this allows more references on 64-bit platforms. Remove unused macro "xxx" in regguts.h. Remove superflouous eol-space in oo.test.
2017-10-24 13:56:26 +00:00
Kevin B Kenny
e532a0de84
Historical change affecting tests: Detroit did not observe Daylight Saving Time in 1967
2017-10-24 13:32:54 +00:00
Kevin B Kenny
745b43f627
Historical change affecting tests: Detroit did not observe Daylight Saving Time in 1967
2017-10-24 13:30:41 +00:00
Kevin B Kenny
f18d453679
Historical change affecting tests: Detroit did not observe Daylight Saving Time in 1967
2017-10-24 13:24:25 +00:00
Kevin B Kenny
2332ac45ca
Update to tzdata2017c
2017-10-24 13:18:51 +00:00
dkf
634213a9c8
[fc1409fc91] Method cloning needs to be careful with body representations.
2017-10-24 11:25:29 +00:00
dkf
8e537759cf
Added test case.
2017-10-24 11:23:54 +00:00
pooryorick
fada619052
[fc1409fc91]: TclOO method with non-literal value for body argument causes segmentation fault
2017-10-24 08:38:17 +00:00
dgp
319b71965b
backout initial commit; need more care.
...
Binary writes internally make use of this encoding. Need to hide it
instead of destroy it.
2017-10-23 17:58:07 +00:00
José Ignacio Marín
47a0727695
Update TZ info to tzcode2017c.
2017-10-23 17:10:19 +00:00
dgp
45d0977a5c
Implementation branch for TIP 345: Kill the "identity" encoding.
...
This checkin, completely does that. Bad news is it causes huge failures.
We're still making a lot of use of this encoding, and cannot complete
this TIP until the branch is repaired.
2017-10-23 17:06:57 +00:00
José Ignacio Marín
4407704316
Update TZ info to tzcode2017c.
2017-10-23 16:59:20 +00:00
apnadkarni
fe8915122a
Eliminate loimpact and tclalloc options.
2017-10-23 13:53:51 +00:00
jan.nijtmans
e9b584f81b
merge core-8-6-branch
2017-10-23 12:10:42 +00:00
jan.nijtmans
cdb25d8946
Fix [b58e6897034fc5292c9d36ba8099d9a835c98172|b58e689703]: Return value of 'Tcl_Flush'
2017-10-23 12:09:48 +00:00
apnadkarni
7db056b75a
Fully qualify OUT_DIR and TMP_DIR paths so that the test target can
...
change directories and not break relative paths to the built extension.
2017-10-21 12:14:25 +00:00
apnadkarni
6f23316c4a
Added test and shell targets.
2017-10-20 15:32:22 +00:00
dkf
56d6e9480f
[1a56550e96] Ensure that method list introspection finds methods from mixins in all cases.
2017-10-19 09:30:16 +00:00
dkf
df974e71f9
Oops; put the code in the wrong place. Mixins have priority when deciding method visibility.
2017-10-19 09:28:16 +00:00
dkf
7393032d5e
[1a56550e96] Ensure that method list introspection finds methods from mixins in all cases.
2017-10-19 09:24:12 +00:00
dkf
252f75d8c8
Ensure that method list introspection finds methods from mixins in all cases. Use better approach for preventing excessive iteration.
2017-10-19 09:22:05 +00:00
dkf
69030a86c8
[1a56550e96] Mixins aren't being searched correctly by [info class methods -all]
2017-10-18 18:23:38 +00:00
apnadkarni
fa7141288f
Update RCFILE to PRJ_RCFILE.
2017-10-18 16:04:13 +00:00
apnadkarni
63a9fcf2e7
Fix resource file compilation when makefile specifies PRJ_RCFILE
2017-10-18 16:03:08 +00:00
apnadkarni
b6f90aaf1f
Add PRJ_MANIFEST to support manifest generation.
2017-10-17 15:01:56 +00:00
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
dgp
8a910c1a53
Plug some memleaks.
2017-10-13 16:15:52 +00:00
jan.nijtmans
e7582d10c6
Eliminate variable which is only used once. And a minor end-of-line space reduction. No functional change.
2017-10-12 15:20:42 +00:00
jan.nijtmans
5064777d16
merge core-8-6-branch
2017-10-09 14:27:31 +00:00
jan.nijtmans
5b74714749
In nmakehlp -v, return non-0 exit code if version is not found. (taken from vc-reform branch)
2017-10-09 14:25:24 +00:00
jan.nijtmans
15a7950c9e
In nmakehlp -v, return non-0 exit code if version is not found. (taken from vc-reform branch)
2017-10-09 14:23:39 +00:00
jan.nijtmans
c925a86988
Merge core-8-6-branch
2017-10-09 12:54:39 +00:00
jan.nijtmans
75ecb090c6
Add visual-studio related entries to ignore-glob. Taken over from reform-vc branch
2017-10-09 12:53:46 +00:00
jan.nijtmans
b8e5e2909e
Add visual-studio related entries to ignore-glob. Taken over from reform-vc branch
2017-10-09 12:52:14 +00:00
apnadkarni
0c646bc3d1
Fix RC template dependency to not generate it every time
2017-10-08 16:12:23 +00:00
apnadkarni
f4e4349cad
Fix htmlhelp generation on 64-bit systems
2017-10-08 14:25:19 +00:00
apnadkarni
9845cc7c9c
Add default rc template so extensions do not have to write their own
2017-10-08 13:18:15 +00:00
apnadkarni
fdc29e53d3
Was not setting VERSION for extensions.
2017-10-07 17:16:20 +00:00
apnadkarni
a0f84e1b73
Fix ignore glob for Visual C++ output directories.
2017-10-07 13:33:13 +00:00
apnadkarni
21379b0cf5
Move standard predefined targets to targets.vc as this allows the master
...
makefile to modify macros if required before the targets are defined.
2017-10-06 13:38:26 +00:00
apnadkarni
65895760ea
Added standard target for generating pkgIndex.tcl.
...
Added PKGNAMEFLAGS to pass PACKAGE_NAME and PACKAGE_VERSION.
2017-10-05 17:00:39 +00:00
apnadkarni
20730e0afb
Added default-pkgindex target and split DISABLE_DEFAULT_TARGETS to
...
DISABLE_{STANDARD,CLEAN}_TARGETS.
2017-10-05 14:19:50 +00:00
apnadkarni
c0295836a8
Add default-* targets
2017-10-04 01:57:51 +00:00
apnadkarni
8c50df7bbf
Extract version numbers from TEA files so do not have to be separately defined.
2017-10-03 13:44:49 +00:00
apnadkarni
ec0fc7f816
Have nmakehlp return non-0 exit code if version string not located with -V option
2017-10-03 13:41:53 +00:00
jan.nijtmans
fd6a064ee7
Merge latest 'const'ification changes from libtommath (develop branch, will be in next release). None of those are used in Tcl.
2017-10-03 09:11:05 +00:00
apnadkarni
f5c6b07246
Remove use of any macros used in rules.vc from rules-ext.vc
...
Added USE_WIDECHAR_API to control usage of Windows wide API's.
2017-10-03 08:06:30 +00:00
apnadkarni
35256f809e
Introduce rules-ext.vc file for extensions to select most recent rules.vc
2017-10-02 17:09:56 +00:00
jan.nijtmans
6881a1a274
'const'ify all libtommath functions, will appear in next libtommath version. See: pull request [ https://github.com/libtom/libtommath/pull/88 |88]
2017-10-02 15:22:27 +00:00
apnadkarni
01201582b7
Fix initialization of _TCLDIR and use MAKE*CMD macros in makefile.vc
...
Fixed initialization of _TCLDIR when it is not defined by caller when
building an extension. _INSTALLDIR is modified AFTER it is used to
initialize _TCLDIR. However, nmake expands late so we have to init
_TCLDIR relative to the *modified* _INSTALLDIR.
2017-09-30 14:11:08 +00:00
apnadkarni
24b65fbe41
Added MAKEEXTCMD macro.
...
Fixed couple of syntax errors when building extensions.
2017-09-30 08:34:31 +00:00
apnadkarni
457587f033
Added standard macros LIBDIR and DEMODIR. Also set common Tk related names and paths
2017-09-30 06:20:33 +00:00
apnadkarni
78cf383197
Permit definition of implicit rules and standard targets to be disabled
2017-09-29 14:23:17 +00:00
apnadkarni
71c784c8bc
Added implicit rule for compiling resources.
...
Added Tcl import libraries to link macro.
2017-09-29 12:41:02 +00:00
apnadkarni
e4269a7140
Updated for Tk compatibility.
...
Removed extraneous quotes in macro definitions. Macros should be quoted at
*use* time, not *definition* time.
Added _nostubs versions of pkgcflags and appcflags.
2017-09-29 06:12:04 +00:00
apnadkarni
3734937878
Add pkgcflags, appcflags and stubscflags to reflect different compilation modes.
...
Packages compile (at least) three types of objects files - the shared library
extension (e.g. tk86.dll), application programs (e.g. wish) and a static
stubs library (tkstub86.lib). Thus we need to construct three different sets
of compilation flags accordingly.
Also updated makefile header comments to reflect modern usage.
2017-09-28 12:22:41 +00:00
apnadkarni
07c1c221cb
Include rules.vc and nmakehlp.c as part of install.
...
Work toward not having to keep updating extensions with the latest version
of rules.vc and nmakehlp. Extension makefiles can instead use the
installed files instead.
Also added some basic sanity checks to rules.vc to warn if extensions are
being compiled with options incompatible with those used to build Tcl.
2017-09-26 12:22:42 +00:00
apnadkarni
246e599142
Eliminate obsolete winhelp style documentation and fix Html Help doc build
...
to work on 64-bit systems.
2017-09-25 17:35:29 +00:00
apnadkarni
f1aa04858d
Eliminated /base option on linking as not recommended with ASLR
2017-09-25 16:33:20 +00:00
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
jan.nijtmans
b0fe49c36d
Make libtommath's "make" work in Tcl environment (for testing). Eliminate internal s_is_power_of_two(), which can better be done inline. Fix tommath.h for _MSC_VER.
2017-09-22 08:48:23 +00:00
apnadkarni
a52f0db3e4
Merged core-8-6-branch to pick up 32/64-bit DLL mismatch error message.
...
Actually already cherrypicked but redoing because that does not show
up on timeline and a full merge recommended on the chat.
2017-09-22 02:17:02 +00:00
apnadkarni
4bf8f43b3a
RFE [566a999189] - better error message for 32/64 bit mismatch on load.
2017-09-21 19:05:11 +00:00
apnadkarni
d45863129f
RFE [566a999189] - better error message for 32/64 bit mismatch on load.
2017-09-21 18:47:45 +00:00
apnadkarni
4f406d752d
First cut at making application-independent compile and link flags
...
common to all extensions defined in a single place - rules.vc -
instead of having each extension cut and paste the same code.
2017-09-20 12:58:59 +00:00
jan.nijtmans
1b28405773
Move fast return from s_is_power_of_two() to mp_div_d(). This saves a function call in the common case where b is not a power of 2.
2017-09-20 09:21:54 +00:00
jan.nijtmans
65703d1f87
Further astyle formatting of libtommath. No functional changes.
2017-09-20 09:07:35 +00:00
apnadkarni
6d85564696
Disable pointer<->int warnings related to cast between different sizes
...
There are a gadzillion of these due to use of ClientData and clutter up compiler
output increasing chance of a real warning getting lost. So disable them.
Eventually some day, Tcl will be 64-bit clean.
2017-09-19 16:43:19 +00:00
apnadkarni
071f38c482
Eliminated some obsolete checks (Win98, IA64 etc.) to reduce the noise.
2017-09-19 16:07:14 +00:00
apnadkarni
b81c66b4c7
Do not permit nothreads in OPTS as sockets, registry and dde require threading.
2017-09-19 15:12:52 +00:00
apnadkarni
0e5d15e072
Fix mapping of VCVERSION to VCVER. The simplistic calculation no longer
...
holds for new versions of the compiler. Instead directly use the internal
compiler version for these.
2017-09-19 12:50:25 +00:00
apnadkarni
78a20a11b2
Remove /Gs which enables _chkstk on *every* function call. The normal default
...
behaviour (without the option) checks only local variable space exceeds
page size. This is what Microsoft recommends.
Also moved -O2 to rules.vc file so as to keep all optimization flags
in one location.
Removed optimizations switches subsumed by -O2.
2017-09-19 12:10:25 +00:00
apnadkarni
54431f3360
Create new branch named "vc-reform"
2017-09-19 10:49:37 +00:00
jan.nijtmans
f75f76c9d4
Finish libtommath's constification work. All done (hopefully). And make sure that C preprocessor directives have the '#' as first character on the line.
2017-09-18 14:38:26 +00:00
jan.nijtmans
f5ea63343e
Another round of libtommath const'ification. To be submitted to the libtommath folks
2017-09-18 12:53:48 +00:00
jan.nijtmans
a708ae2da2
Merge libtommath upstream changes (astyle formatting only). No functional changes. All Tcl-specific modifications are kept.
2017-09-18 08:31:55 +00:00
jan.nijtmans
d4e73bcab5
re-format everything through astyle. Taken from libtom/libtommath (pull request [ https://github.com/libtom/libtommath/pull/85 |85])
2017-09-15 14:44:00 +00:00
jan.nijtmans
8f339500a2
'const'ify more libtommath functions. All functions in generic/tclTomMath.decls (used by Tcl) are done now.
2017-09-15 13:08:31 +00:00
dgp
bf01a303da
Move new declarations to more conventional place for tidier merging.
2017-09-14 14:02:12 +00:00
jan.nijtmans
99d940211c
Remove some unnecessary #if 0 sections. Fix comments and panic messages. No functional changes.
2017-09-14 08:05:32 +00:00
jan.nijtmans
7b8b406719
Fix [f5da3d30e096a1c3486fbc480a6ece01fcb277a6|f5da3d30e0]: clerical error in comments
2017-09-14 07:42:38 +00:00
jan.nijtmans
db3273f346
Fix [f5da3d30e096a1c3486fbc480a6ece01fcb277a6|f5da3d30e0]: clerical error in comments
2017-09-14 07:41:09 +00:00
jan.nijtmans
c659b044b1
Make mp_get_long and mp_set_long available to tommath-enabled Tcl extensions. Deprecate the internal TclBNInitBignumFrom* functions, in favor of the official tommath functions with the same purpose.
2017-09-13 10:14:31 +00:00
jan.nijtmans
3e55dbb18c
Many 'const' addtions in libtommath where it makes sense. To be submitted back to the libtommath guys.
2017-09-11 10:38:07 +00:00
jan.nijtmans
b2446d8d41
Add some more functions from libtommath for availability within Tcl (mainly the 'long long' variants). Add more 'const' keywords there too.
2017-09-08 14:15:13 +00:00
gahr
e86e8a501d
Be consistent about how I am referred to.
2017-09-08 13:30:29 +00:00
dgp
d03a4dcc88
Bump to 8.7a2 to distinguish trunk from 8.7a1 release.
2017-09-08 13:13:15 +00:00
dgp
4ce5b276eb
merge release
2017-09-08 12:50:06 +00:00
dgp
877e9d6b11
merge trunk; rc1
2017-09-07 12:59:14 +00:00
jan.nijtmans
413fe66650
Fix use of "long long" (manually) in MSVC
2017-09-06 15:02:24 +00:00
dgp
ca70072a99
update changes
2017-09-05 15:38:02 +00:00
dgp
d9f2bf1d17
merge trunk
2017-09-05 12:41:10 +00:00
jan.nijtmans
c2846c0f5c
Merge core-8-6-branch to trunk, especially the 1.6.0 -> 1.6.1 renumbering from msgcat
2017-09-04 14:01:45 +00:00
jan.nijtmans
a15279ffd1
Make pkgIndex.tcl from msgcat work for Tcl 9.0 (not really necessary, but for consistancy)
2017-09-04 13:59:04 +00:00
jan.nijtmans
b74f59a5b4
merge core-8-6-branch
2017-09-04 12:38:14 +00:00
jan.nijtmans
e08c86934d
Typo's (Thanks to Gustaf Neumann), nothing functional.
2017-09-04 12:37:04 +00:00
dgp
a3dfc55957
[0e4d88b650] Allow command overwrite when deletion callback deletes namespace.
2017-09-02 22:10:59 +00:00
dgp
e3f7bc2783
[0e4d88b650] Allow command overwrite when deletion callback deletes namespace.
2017-09-02 22:03:03 +00:00
dgp
564b991088
[0e4d88b650] Allow command overwrite when deletion callback deletes namespace.
2017-09-02 21:48:05 +00:00
dgp
0ff317501d
merge 8.5
2017-09-02 21:36:57 +00:00
dgp
f42f0060be
Add test
2017-09-02 21:14:55 +00:00
dgp
3ec5b35deb
Similar fix to Tcl_CreateCommand().
2017-09-02 20:40:44 +00:00
dgp
7afc6b1c17
Tidy up.
2017-09-02 20:17:26 +00:00
dgp
ce58cdff9f
[Bug 0e4d88b650] First draft fix. Re-resolve namespace after cmd deletion.
2017-09-02 19:35:22 +00:00
jan.nijtmans
4b9e6d92be
Merge core-8-6-branch
2017-09-01 13:49:55 +00:00
jan.nijtmans
e28f1eece4
Handle Unicode surrogates correctly in Tcl_AppendFormatToObj() and BuildCharSet(). Only makes a difference for TCL_UTF_MAX=4, when surrogates are used in the format string ... highly unlikely corner-case.
2017-09-01 13:48:56 +00:00
dgp
4ce83fdb43
merge trunk
2017-09-01 01:44:09 +00:00
jan.nijtmans
ce32fdecb2
Ignore libtommath/doc directory. Add some VS-related makefiles, useful for testing
2017-08-31 15:07:57 +00:00
jan.nijtmans
105a61c09b
Merge core-8-6-branch. Remove all git tag information for libtommath, so we don't have useless file differences with every libtommath release.
2017-08-31 13:56:30 +00:00
jan.nijtmans
25b97a7df9
Adapt .fossil-settings/crlf-glob, for 5 libtommath-related files which have crlf ending
2017-08-31 13:43:17 +00:00
jan.nijtmans
432e75210f
Undo tag removal (just get libtommath directly from GitHUB), so we don't have useless file changes with every new release
2017-08-31 13:32:52 +00:00
jan.nijtmans
595e613479
(merge-mark core-8-6-branch).
...
Give state to UtfToUtfProc() and UnicodeToUtfProc() in which the last (intermediate) Tcl_UniChar can be remembered: This way those functions can produce 4-byte UTF-8 sequences built from surrogate pairs if Tcl is compiled with TCL_UTF_MAX=4. For TCL_UTF_MAX=3 and TCL_UTF_MAX=6 this has no effect.
2017-08-31 12:21:43 +00:00
oehhar
c0e413055e
http state 100 continue handling broken [2a94652ee1]
2017-08-31 09:35:52 +00:00
oehhar
11719ccf59
http state 100 continue handling broken [2a94652ee1]
2017-08-31 09:32:05 +00:00
oehhar
7c7a396fc5
http state 100 continue handling broken [2a94652ee1]
2017-08-31 06:31:05 +00:00
andy
7aafa756ac
Cherrypick string.test [de104ef5ab]
2017-08-30 15:29:16 +00:00
jan.nijtmans
6d8b0c705f
Tweak libtommath building, such that it doesn't depend on uint64_t any more. (handle mp_word in the same way as mp_digit)
2017-08-30 12:37:50 +00:00
jan.nijtmans
faaf0a0fe6
Adapt libtommath's "changes.txt", and other text-files. Adapt bn_mp_read_radix.c to latest libtommaths 'tcl-fixes' commit (harmless for Tcl).
2017-08-30 11:46:33 +00:00
jan.nijtmans
07bcf919d6
Cherry-pick [ https://github.com/libtom/libtommath/commit/a0a86c696a7182f8be4b10bb79a1c5c971dc9561 ]: Merge branch 'tcl-fixes' into develop
...
Remove many files, which are not used in Tcl.
Modify "changelog.txt", with real release-date of 1.0.1 version
2017-08-30 11:20:19 +00:00
jan.nijtmans
f70c0ac860
a few missing bits after previous commit
2017-08-29 21:27:56 +00:00
jan.nijtmans
97d25d7902
Forgot a few files from libtommath 1.0.1
2017-08-29 21:16:54 +00:00
jan.nijtmans
c3d5808cdd
upgrade to libtommath 1.0.1 (With all Tcl-specific changes - as far as needed - intact)
2017-08-29 20:45:34 +00:00
jan.nijtmans
187a67149b
Merge libtommath 1.0.1 final
2017-08-29 20:43:48 +00:00
jan.nijtmans
2d65cb7514
libtommath 1.0.1
2017-08-29 20:39:15 +00:00
jan.nijtmans
92a05930af
libtommath 1.0.1 rc2, for test purposes only
2017-08-29 20:25:53 +00:00
jan.nijtmans
1ef0babc38
Fix eol-style (fossil warning: mixed line endings)
2017-08-29 19:55:52 +00:00
jan.nijtmans
92265d56a3
libtommath 1.0.1 rc 2
2017-08-29 19:52:35 +00:00
jan.nijtmans
4264a4f6ab
merge-mark
2017-08-29 09:25:17 +00:00
jan.nijtmans
a95a7dd265
(cherry-pick): Fix [b50fb21410dababca95baa122964b2e312cb9d8a|b50fb214] : exec redirection to append stdout and stderr to the same file
2017-08-29 09:24:29 +00:00
ferrieux
2e9194366a
Fix [b50fb214] : add to 2>> the same O_APPEND that was added to >> back in 2005.
2017-08-24 16:56:51 +00:00
jan.nijtmans
ce72664606
merge core-8-6-branch
2017-08-22 12:41:18 +00:00
jan.nijtmans
5210283d10
Fix [d2612a2fa193196787aab33bb57f69b1eef9e30c|d2612a2fa1]: Build breaks because of gcc error. Only use "#pragma GCC diagnostic" if the compiler supports this.
...
Also re-format tclUnixSock.c without further functional changes.
2017-08-22 12:12:11 +00:00
jan.nijtmans
0eb18d8f91
merge core-8-6-branch
2017-08-18 22:06:54 +00:00
jan.nijtmans
29be40bf89
RFE [ http://core.tcl.tk/tk/info/6c0d7aec67 |6c0d7aec67]: Better surrogate handling for TCL_UTF_MAX==4. No change when TCL_UTF_MAX==3. (This commit is actually meant for androwish, in order to improve surrogate handling for TCL_UTF_MAX==4)
2017-08-18 21:39:16 +00:00
jan.nijtmans
e6336bb806
Merge core-8-6-branch. Update outdated comment (cherry-pick [d5dec2b0514639f44929cbbba9c4130798a8a54a|d5dec2b051])
2017-08-17 22:50:16 +00:00
jan.nijtmans
a04094e9a5
Adopt some harmless changes from the 'irontcl' branch. Left 2 changes behind which I'm not so sure about (but I could be convinced ...). Ticket with explanation would be appreciated!
2017-08-17 22:26:48 +00:00
jan.nijtmans
922d8a71a5
merge core-8-6-branch
2017-08-17 21:56:51 +00:00
jan.nijtmans
13d9910fd6
'#if' -> '#ifdef' in tclUnixPort.h. Suggested by Gustaf Neumann. Reduces the number of gcc warnings, when compiling Tcl with -Wundef. Harmless.
2017-08-17 21:52:42 +00:00
dgp
277f101d7f
[f2336c116b] Move pragmas to make gcc happy; it is pickier than clang.
2017-08-14 15:33:03 +00:00
Joe Mistachkin
a50a381b04
The 'clean' target should delete the generated 'nmhlp-out.txt' file as well.
2017-08-13 22:31:19 +00:00
Joe Mistachkin
e513ec3916
Always define '_USING_V110_SDK71_', in case targeting the pre-Windows 8.x SDKs.
2017-08-13 22:15:30 +00:00
Joe Mistachkin
89fcfadbbf
Support cross-compiling Tcl for 'Win32 on ARM' using Visual Studio.
2017-08-13 22:05:25 +00:00
andy
89ce4defb5
Correct longstanding typo in continue man page
2017-08-12 19:45:04 +00:00
dgp
ad9bc7297d
Add 8.7 -only changes to the changes file.
2017-08-10 19:14:15 +00:00
dgp
0079285837
Update outdated comment.
2017-08-10 17:34:31 +00:00
dgp
8ccd8d10ef
Backport [array names -regexp] should support backrefs
2017-08-10 17:03:53 +00:00
dgp
aedd652645
Bring changes up to the 8.6.7 release.
2017-08-10 14:56:23 +00:00
dgp
4056a4dc4b
Release candidate branch for Tcl 8.7a1.
2017-08-10 14:29:11 +00:00
dgp
ffaeeeddaa
merge 8.6
2017-08-10 14:17:01 +00:00
dgp
c2982f8f62
Silence compiler warning in --disable-threads build
2017-08-10 13:28:48 +00:00
dgp
587206a660
merge mark
2017-08-09 16:38:35 +00:00
dgp
545f5e64be
merge mark
2017-08-09 16:29:45 +00:00
dgp
385b618c74
merge release
2017-08-09 16:28:33 +00:00
dgp
3a07a6d26f
bump release date
2017-08-09 14:41:19 +00:00
andy
df9ea61fbf
Cherrypick [527d354828]
2017-08-08 16:45:47 +00:00
andy
5f7ca471e4
Merge core-8-6-branch
2017-08-08 16:42:24 +00:00
andy
ac8ddf5d4a
Cherrypick [527d354828]
2017-08-08 16:42:05 +00:00
andy
664774bec4
[5bfe3de008]: Modify [source] to set input EOF character but not output EOF character. This avoids having ^Z being appended to the sourced file when it is an always-writable [tcl::chan::variable] in a custom VFS. Tested by adding this same change as a patch to Tcl 8.6.6 in KitCreator because that seems to be the easiest way to get custom VFS capability exposed as script commands. Original problem introduced by [03cdfc3a86] 2000-05-11 00:16:52.
2017-08-07 01:16:39 +00:00
dgp
3cf11a1ce9
merge 8.6
2017-08-04 13:18:37 +00:00
dgp
6da97c627b
merge 8.6
2017-08-03 14:40:48 +00:00
dgp
735ca3d3a8
Improved test http-4.16.
2017-08-03 14:39:59 +00:00
dkf
72396a1929
Fix weird hangs in macOS Sierra on some networks. Name resolution timeouts not what we want to test in the http package.
2017-08-02 23:38:20 +00:00
dgp
816674cdb7
update changes
2017-08-01 16:05:13 +00:00
dgp
6bcfd54d3a
merge 8.6
2017-07-18 12:58:27 +00:00
jan.nijtmans
bb331bf1d8
merge core-8-6-branch
2017-07-17 08:04:57 +00:00
jan.nijtmans
b095f046e6
Fix [fb2208172c671f29d60e9ac928d9ded45d01d8b8|fb2208172c]: tclIndex varies across builds from auto_mkindex
2017-07-17 08:04:15 +00:00
jan.nijtmans
cee94b0658
Fix [fb2208172c671f29d60e9ac928d9ded45d01d8b8|fb2208172c]: tclIndex varies across builds from auto_mkindex
2017-07-17 08:01:11 +00:00
jan.nijtmans
f94f5914a8
merge core-8-6-branch
2017-07-14 14:48:17 +00:00
jan.nijtmans
9dd9b629b3
merge core-8-6-branch
2017-07-13 15:07:39 +00:00
jan.nijtmans
440dbbf620
Fix [293344d4f3]: Regression in SQLite test-suite. Long-standing bug in implementation of TclUtfToUniChar() macro.
2017-07-13 15:06:07 +00:00
jan.nijtmans
b1243f2603
Fix [293344d4f3]: Regression in SQLite test-suite. Long-standing bug in implementation of TclUtfToUniChar() macro.
2017-07-13 15:03:27 +00:00
dgp
f553fe3b01
merge 8.6
2017-07-06 16:47:21 +00:00
dgp
457f43e25b
merge 8.6
2017-07-06 16:40:38 +00:00
dgp
578eeb06bc
[adb198c256] Switch to an alternative fix for file join memleaks.
2017-07-06 16:34:56 +00:00
dgp
515f0f32c0
Pull out of the loop a block of code that can only run in first iteration.
2017-07-06 16:00:46 +00:00
dgp
bcb9c34521
Alternative fix for memleaks in fs path join machinery.
2017-07-06 15:46:58 +00:00
jan.nijtmans
af0816e0ca
merge core-8-6-branch
2017-07-03 12:45:44 +00:00
jan.nijtmans
ac0fdb5bf8
merge core-8-6-branch
2017-07-03 12:32:38 +00:00
sebres
2ee7180448
resolve 8.6-fork
2017-07-03 09:23:17 +00:00
sebres
5541cc57f7
tclPathObj: fixed TclJoinPath - usage of released object and object leakage.
...
closes [adb198c256df8c4192838cc3c1112fb2821314e9]
2017-07-03 09:19:41 +00:00
sebres
692ea37c40
tclPathObj: fixed TclJoinPath (backported from 8.6) - usage of released object and object leakage.
...
closes [adb198c256df8c4192838cc3c1112fb2821314e9]
2017-07-03 09:15:23 +00:00
jan.nijtmans
58dd15c51d
merge core-8-6-branch
2017-07-03 08:30:43 +00:00
jan.nijtmans
d0996f3402
'inline static' -> 'static inline' and 'INLINE' -> 'inline', for consistancy.
2017-07-03 08:27:42 +00:00
dgp
39356c4079
merge 8.6
2017-06-29 11:19:39 +00:00
jan.nijtmans
a646f081bc
merge core-8-6-branch
2017-06-28 13:44:23 +00:00
jan.nijtmans
89f6884455
Eliminate use of (expensive) Tcl_UtfToUpper() from "format": Just generate the expected uppercase characters right away from the start. No change in functionality, just code optimization.
2017-06-28 13:32:16 +00:00
dgp
45cf14ed03
Merge 8.6; Bump to TclOO 1.2.0.
2017-06-26 20:00:35 +00:00
dgp
5314bbe0ef
update changes
2017-06-26 19:56:37 +00:00
dgp
5b2c81a0f3
merge 8.6
2017-06-26 19:51:48 +00:00
dgp
f242dd36bd
Bump to TclOO 1.1.0
2017-06-26 19:37:34 +00:00
dgp
fb2aa596ab
merge 8.6
2017-06-26 19:22:29 +00:00
dgp
5621809b18
[46f801ea5a] Make autoloader less fragile when it cannot manufacture a
...
known consistent stack trace. Value inconsistency over failure.
2017-06-26 19:18:42 +00:00
dgp
7a8a4b15c4
Try to make good stack trace. Fallback to making not-so-good stack trace.
...
Stop failing altogether. Test in test suite, not program fragility.
2017-06-26 19:17:12 +00:00
dgp
f4615ea166
Test demonstrating autoloader fragility.
2017-06-26 17:30:15 +00:00
jan.nijtmans
2bd7095b87
No longer split tests for longIs32bit/longIs64bit, since the results should be identical
2017-06-23 15:04:44 +00:00
dgp
400f9d27f5
typo fix
2017-06-23 13:11:37 +00:00
dgp
5d68b7ef56
Rewrite the documentation of [regsub -command] so it's not quite such a mess.
2017-06-23 13:09:23 +00:00
dgp
ba387de8cd
repair broken tests
2017-06-23 12:39:13 +00:00
dgp
70d12096d5
Repair compiler warning about uninitialized value.
2017-06-23 12:28:57 +00:00
jan.nijtmans
3dedad17ed
TIP #472 implementation: Add Support for 0d Radix Prefix to Integer Literals
2017-06-23 08:11:42 +00:00
dkf
a9c238476a
Add [regsub -command] case that wasn't actively tested for.
2017-06-22 22:54:32 +00:00
dkf
cfafc391f2
Implement TIP #473 : Allow a Defined Target Namespace in oo::copy
2017-06-22 22:03:06 +00:00
dkf
0fbade1cf8
Implement TIP #473 : Allow a Defined Target Namespace in oo::copy
2017-06-22 22:02:14 +00:00
dkf
dd54301fb6
Documentation correction; issue pointed out by DGP.
2017-06-22 22:00:39 +00:00
dkf
6352a07912
Rebase for final implementation work
2017-06-22 21:55:45 +00:00
dkf
440f85800c
Implement TIP #470 : Reliable Access to OO Definition Context Object
2017-06-22 21:50:08 +00:00
jan.nijtmans
6454bee19b
Merge core-8-6-branch
2017-06-22 08:16:41 +00:00
dgp
9983a05a80
merge 8.6
2017-06-19 17:31:17 +00:00
dgp
952acc3754
Merge 8.6; update changes.
2017-06-16 20:17:33 +00:00
jan.nijtmans
94754be1d7
merge core-8-6-branch
2017-06-16 14:31:47 +00:00
jan.nijtmans
56ea73145f
Merge core-8-6-branch.
...
Fix gcc warning: tclStrToD.c:1180:2: warning: enumeration value ‘ZERO_D’ not handled in switch [-Wswitch]
switch (acceptState) {
2017-06-15 11:01:58 +00:00
jan.nijtmans
e8d9fe8ebe
Rebase to core-8-6-branch (who told that fossil doesn't know how to rebase ....)
2017-06-14 07:54:51 +00:00
jan.nijtmans
6168d91b0e
merge core-8-6-branch
2017-06-13 12:18:16 +00:00
griffin
2712a556fb
Add support of 0d in the format %# conversion flag. Add tests for same.
2017-06-12 14:04:29 +00:00
jan.nijtmans
16f3f234e8
Better UTF-8 surrogate handling, only functional when TCL_UTF_MAX>3
2017-06-08 08:26:58 +00:00
dgp
f8bc248cc3
merge 8.6
2017-06-06 13:03:31 +00:00
dgp
f165025992
Merge 8.6; update changes.
2017-06-05 17:22:31 +00:00
griffin
919fc57599
0d in LinkVar
2017-05-28 16:06:29 +00:00
griffin
5badb6535f
Implement proposed 0d decimal radix prefix to compliment 0x,0b,0o.
2017-05-27 22:17:21 +00:00
dgp
8a90be9a10
merge 8.6
2017-05-23 13:25:07 +00:00
dgp
2f9e40fef1
merge 8.6
2017-05-19 12:53:52 +00:00
dgp
0d218fca03
Merge 8.6; update changes.
2017-05-09 12:12:26 +00:00
dgp
f9d42ebf8c
Merge 8.6; update changes.
2017-05-08 16:07:58 +00:00
dgp
0177abb172
merge 8.6
2017-05-04 20:40:15 +00:00
dgp
77822d9462
merge 8.6; update changes
2017-04-28 18:09:46 +00:00
dgp
78a7a5b561
merge 8.6
2017-04-27 12:06:47 +00:00
dgp
7fde7fcf7b
merge 8.6
2017-04-21 12:19:07 +00:00
dgp
cdccb19d1c
merge 8.6
2017-04-19 15:22:22 +00:00
dgp
a3fdca376e
merge 8.6
2017-04-17 12:10:42 +00:00
dgp
d2595ccfea
Bump TclOO 1.0.6; finish changes.
2017-04-13 16:39:15 +00:00
dgp
5b059dfd6b
Bump msgcat and tcl tests and continue updates to changes.
2017-04-12 20:23:56 +00:00
dgp
1a3c0d9be9
merge 8.6
2017-04-12 19:19:05 +00:00
dgp
1e22d92c69
More changes work
2017-04-11 19:11:27 +00:00
dgp
f3a4ae987d
merge 8.6
2017-04-03 16:53:26 +00:00
dgp
5e45fd7662
merge 8.6
2017-03-31 12:30:27 +00:00
dgp
d7802b428a
New(ish) test interp-14.11 was missing its -cleanup.
2017-03-22 19:45:41 +00:00
dgp
b8d35358ad
merge 8.6
2017-03-17 12:51:53 +00:00
dgp
daac4e5d34
Different solution to silencing the non-useful valgrind alerts.
2017-03-13 17:03:50 +00:00
dgp
57ceb807ca
merge 8.6
2017-03-10 17:22:26 +00:00
dgp
91d32c4556
Silence valgrind complaints from [representation].
2017-03-10 16:41:32 +00:00
dgp
e9e0f57d92
Dup test name
2017-03-10 15:28:46 +00:00
dgp
f090fee89b
Start RC branch for Tcl 8.6.7
2017-03-10 15:22:08 +00:00