jan.nijtmans
5104cf2a07
merge TIP #477 implementation. Not tested yet in combination with semver changes
2017-12-08 16:19:54 +00:00
apnadkarni
54ae4feac8
TIP477 merge: nmake build reform
2017-12-08 15:27:49 +00:00
apnadkarni
a2c5ea2c08
Merge TIP 477 implementation
2017-12-08 13:54:42 +00:00
jan.nijtmans
a3daf1a6d1
TIP #487 : Stop support for Pre-XP Windows
2017-12-07 12:14:23 +00:00
dgp
7573551ccb
Plug memleak recently put into [package require].
2017-12-06 20:48:12 +00:00
dgp
5d11ad1e8a
Plug memleak recently put into [package require].
2017-12-06 20:46:47 +00:00
dgp
cd525c7bb1
Plug memleak recently put into [package require].
2017-12-06 20:44:32 +00:00
dgp
4644a04ee3
merge 8.6
2017-12-06 20:02:46 +00:00
dgp
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
21877b851c
Adapt the bytearray accommodation of Tcl_CharLength() for 8.7+.
2017-12-06 13:28:12 +00:00
dgp
d7ed325913
[ce3a211dcb] Failed file normalize when tail is empty string.
2017-12-06 13:06:47 +00:00
dgp
07aa7381a9
[ce3a211dcb] Failed file normalize when tail is empty string.
2017-12-06 13:05:51 +00:00
dgp
bb1c5fe833
[ce3a211dcb] Failed file normalize when tail is empty string.
2017-12-06 13:02:32 +00:00
dgp
72f0f0b346
[4f6a1ebd64] Stop crash when same value passed to the -map and -subcommands options of ensemble configuration.
2017-12-05 15:52:55 +00:00
dgp
f3af86c67e
[4f6a1ebd64] Stop crash when same value passed to the -map and -subcommands options of ensemble configuration.
2017-12-05 15:27:21 +00:00
dgp
3eef9fcea1
Factor clearing of ensemble subcommand table into utility routine.
2017-12-05 15:12:05 +00:00
dgp
906cf353b2
[4f6a1ebd64] Stop crash when same value passed to the -map and -subcommands options of ensemble configuration.
2017-12-05 14:57:05 +00:00
dgp
8a44c35e8c
Another revised fix, much closer to sebres' patch now.
2017-12-05 14:36:33 +00:00
apnadkarni
3e34d38b2d
Use PRJ_PACKAGE_TCLNAME instead of PROJECT when generating TEA based pkgindex
2017-12-05 14:29:47 +00:00
dgp
92f8ce13df
[4f6a1ebd64] Different fix for the problem. Re-order the filling of the
...
subcommand table so there is no longer a conflict where multiple intreps of
a single value are sought. If the mapDict and exportList are the same,
then each key in the mapDict is known to be an element of the exportList
without needing to check.
2017-12-04 18:36:14 +00:00
jan.nijtmans
f0d821a83c
merge core-8-6-branch
2017-12-01 12:48:26 +00:00
jan.nijtmans
b8fbe8c1d3
Fix [4f51e1c5dcf75de22f5907f7b66361e4bcab02e2|4f51e1c5dc]: patch to correct linker flag sequence
2017-12-01 12:47:12 +00:00
jan.nijtmans
1a237e67df
Simpler solution for Itcl 3.4 build (compatibilty) problem. Thanks to Don Porter for bringing this to my attention!
2017-12-01 10:38:04 +00:00
dgp
db726dc570
[5808081213] Permit all bytearrays (including impure ones) to report length without shimmering
2017-11-30 17:21:12 +00:00
dgp
4bbfdee3db
[5808081213] Permit all bytearrays (including impure ones) to report length without shimmering
2017-11-30 17:10:37 +00:00
jan.nijtmans
b96b6a46ba
merge core-8-branch
2017-11-30 16:08:03 +00:00
jan.nijtmans
0efada5548
Eliminate use of certain unnecessary struct names. Also white-spacing. Nothing functional.
2017-11-30 16:03:01 +00:00
jan.nijtmans
99798b2202
Fix build of test-suite, after previous commit
2017-11-30 15:24:39 +00:00
jan.nijtmans
f327b7e9dc
merge core-8-6-branch.
...
Provide compatibility macro's, compensating for the internal stub table change, so Itcl 3.4 builds again. Thanks to Don Porter for bringing this to my attention!
2017-11-30 14:36:16 +00:00
jan.nijtmans
d7d31d6041
Don't provide the setFromAnyProc through the invalidRealType objType. This is a Tcl internal type, extensions shouldn't be able to convert their own Tcl_Obj to this. This shouldn't have been exposed to begin with. Tcl itself never calls it this way.
2017-11-30 14:14:01 +00:00
jan.nijtmans
72998869a3
Fix [8e1e31eac0fd6b6c4452bc108a98ab08c6b64588|8e1e31eac0]: lsort treats NUL chars strangely. Also fix various initializations, which only make a difference when TCL_UTF_MAX == 4.
...
Add new test-cases which demonstrate the fix. For TCL_UTF_MAX == 4, surrogates will now be handled as expected as well when sorting.
2017-11-30 13:14:43 +00:00
pooryorick
c47ba70f45
Add TCL_CREATE_NS_IF_UNKNOWN back into Tcl_CreateEnsemble().
2017-11-29 18:35:51 +00:00
sebres
e68b491806
Cherry-picked test-cases from [046a5af026]: fix for issue [4f6a1ebd64]: ensemble: segmentation fault when -subcommand and
...
-map values are the same object.
2017-11-29 13:59:42 +00:00
jan.nijtmans
4190501ec7
merge core-8-6-branch
2017-11-29 12:28:21 +00:00
jan.nijtmans
e87d0bcdf4
Fix Tcl_UtfFindFirst()/Tcl_UtfFindLast(), which were broken by [83c0c569d6]. Not detected, because those functions aren't used anywhere in Tcl.
...
So, added new test-cases, makeing sure this doesn't happen again.
2017-11-29 12:27:22 +00:00
pooryorick
c032f5043e
Fix for [6bca38d59b], TclOO segmentation fault cleaning up objects that that
...
have mixed themselves into themselves.
2017-11-29 12:01:21 +00:00
jan.nijtmans
79b5a0a716
merge core-8-6-branch
2017-11-29 11:05:15 +00:00
jan.nijtmans
4fc9a4c991
Update some functions in tclUtf.c to handle surrogate pairs when TCL_UTF_MAX == 4. Also update documentation to distinguish better between "Tcl_UniChar" and "Unicode character": Those are not necessary the same when TCL_UTF_MAX == 4.
...
No change when TCL_UTF_MAX == 4 or TCL_UTF_MAX == 6.
2017-11-29 11:04:20 +00:00
pooryorick
8396e878da
Fix for issue [6cf568a21b]: Tcl_Eval() causes new segfault (TclOO object
...
creation by qualified name).
2017-11-28 23:33:14 +00:00
pooryorick
fe65a79d19
Minor refactoring of TclOO object reference count booking during object
...
creation.
2017-11-28 15:43:41 +00:00
pooryorick
a8a602d3ff
Eliminate some duplicate code in tclOO.c/Tcl_NewObjectInstance().
2017-11-27 23:30:57 +00:00
pooryorick
2930169517
Streamline TclOO object cleanup routines.
2017-11-27 19:45:40 +00:00
jan.nijtmans
d95ab0247a
missed some more failing test-cases
2017-11-27 14:11:16 +00:00
jan.nijtmans
20dedcd841
Fix test-cases in safe.test, failing due to changes in min/max math functions.
2017-11-27 13:52:18 +00:00
pooryorick
811ec68434
Add missing parenthesis to an expression in TclEnsureNamespace.
2017-11-25 18:24:10 +00:00
pooryorick
c2e98a86d4
merge pyk-command-named-colon
2017-11-25 16:53:59 +00:00
pooryorick
48fb6e2c88
Fix for issue [4f6a1ebd64]: ensemble: segmentation fault when -subcommand and
...
-map values are the same object.
2017-11-25 16:36:22 +00:00
jan.nijtmans
621cfc8ba1
Re-base everything to latest core-8-branch. But don't include deprecations in *.decls files any more (split-off in separate TIP)
2017-11-24 09:24:16 +00:00
pooryorick
9b1ecce298
Move return type to its own line.
2017-11-23 18:24:09 +00:00
jan.nijtmans
160a58238a
If compiled with -DTCL_NO_DEPRECATED, remove stub entry for TclWinGetPlatformId()
2017-11-23 12:21:35 +00:00
jan.nijtmans
dd0e9cf6b1
Remove more pre-XP stuff.
2017-11-23 12:04:33 +00:00
jan.nijtmans
3c23d21835
Re-base "stop-ce" branch to core-8-branch. This is what will be proposed for 8.7 in TIP #487 .
2017-11-23 08:30:10 +00:00
pspjuth
fac696b394
merge pspjuth-cminmax
2017-11-21 22:46:35 +00:00
jan.nijtmans
9215c2610c
Drop Windows CE support, since it doesn't appear to work anyway.
2017-11-21 14:59:04 +00:00
jan.nijtmans
a1bc5b8a2b
If Tcl is compiled with -DTCL_NO_DEPRECATED, remove a lot of (internal) stub entries which correspond to functions which will be removed in Tcl 9.
...
This commit should have been part of [7849f573c0e7d758|this] earlier commit.
No effect when Tcl is not compiled with -DTCL_NO_DEPRECATED.
2017-11-20 12:07:08 +00:00
jan.nijtmans
c19490026d
Re-base to core-8-branch: This change is fine as-is for Tcl 8.7, I wouldn't recommend it for 8.6 (even though it's only for the changed error-message)
2017-11-20 10:30:02 +00:00
jan.nijtmans
bc3e198cba
Fix error-message for min/math functions: "to" -> "for", for consistancy with the error-messages for other math functions.
2017-11-20 10:15:59 +00:00
jan.nijtmans
b946ce971f
Fix [e058307eef73cf21cf6805ad7c778e1024f9eb7d|e058307eef]: Use of values.h breaks build of Tk trunk on macOS
2017-11-20 08:58:39 +00:00
pspjuth
c2eeda3f09
Changed math functions min and max to C implementations.
2017-11-19 18:40:13 +00:00
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
cb2182ae3a
merge core-8-branch
2017-11-05 14:41:32 +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
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
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
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
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
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
c925a86988
Merge core-8-6-branch
2017-10-09 12:54:39 +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
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
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
ec1825beba
Re-base to trunk. Now versioned as 8.7.0-alpha.2
2017-09-08 14:38:27 +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
jan.nijtmans
3d9812a359
Recognise "-rc" also as part of version ranges (was missing from previous commit)
2017-09-05 14:56:12 +00:00
jan.nijtmans
8add81e270
Add support for "-rc" releases, which are the same as final releases but the version string is different.
2017-09-05 14:19:46 +00:00
dgp
d9f2bf1d17
merge trunk
2017-09-05 12:41:10 +00:00
jan.nijtmans
96a979aa33
merge trunk
2017-09-04 15:24:50 +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
92729b607a
merge trunk
2017-09-04 12:40:10 +00:00
jan.nijtmans
b74f59a5b4
merge core-8-6-branch
2017-09-04 12:38:14 +00:00
dgp
a3dfc55957
[0e4d88b650] Allow command overwrite when deletion callback deletes namespace.
2017-09-02 22:10:59 +00:00
jan.nijtmans
4b9e6d92be
Merge core-8-6-branch
2017-09-01 13:49:55 +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
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
andy
7aafa756ac
Cherrypick string.test [de104ef5ab]
2017-08-30 15:29:16 +00:00
jan.nijtmans
4bb73a49b5
merge trunk
2017-08-30 12:39:09 +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
7d237da216
merge trunk
2017-08-30 12:01:20 +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
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
0eb18d8f91
merge core-8-6-branch
2017-08-18 22:06:54 +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
922d8a71a5
merge core-8-6-branch
2017-08-17 21:56:51 +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
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
587206a660
merge mark
2017-08-09 16:38:35 +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
jan.nijtmans
bb331bf1d8
merge core-8-6-branch
2017-07-17 08:04:57 +00:00
jan.nijtmans
5104e3f11c
merge trunk
2017-07-14 14:21:06 +00:00
jan.nijtmans
9dd9b629b3
merge core-8-6-branch
2017-07-13 15:07:39 +00:00
dgp
457f43e25b
merge 8.6
2017-07-06 16:40:38 +00:00
jan.nijtmans
af0816e0ca
merge core-8-6-branch
2017-07-03 12:45:44 +00:00
jan.nijtmans
58dd15c51d
merge core-8-6-branch
2017-07-03 08:30:43 +00:00
jan.nijtmans
a646f081bc
merge core-8-6-branch
2017-06-28 13:44:23 +00:00
dgp
45cf14ed03
Merge 8.6; Bump to TclOO 1.2.0.
2017-06-26 20:00:35 +00:00
jan.nijtmans
7bceb5b767
merge trunk
2017-06-26 11:37:37 +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
440f85800c
Implement TIP #470 : Reliable Access to OO Definition Context Object
2017-06-22 21:50:08 +00:00
dkf
2a11adb848
merge trunk
2017-06-22 21:48:48 +00:00
dkf
77f95f38bf
Implement TIP #463 : Command-Driven Substitutions for regsub
2017-06-22 21:46:40 +00:00
dgp
2710235273
merge trunk
2017-06-22 12:25:35 +00:00
jan.nijtmans
042e99227a
merge core-8-6-branch
2017-06-22 08:59:59 +00:00
jan.nijtmans
6454bee19b
Merge core-8-6-branch
2017-06-22 08:16:41 +00:00
dkf
20b4459b9d
Factor out chunk of non-obvious code in the guts of [oo::define] into one place.
2017-06-18 18:02:34 +00:00
dgp
73f548527a
Another reworking, now with comments.
2017-06-16 19:54:57 +00:00
dgp
3923106cf7
Simplify the final loop when we know we're generating strings for all.
2017-06-16 16:23:22 +00:00
dgp
17711009b6
Split loop into two cases for further simplification.
2017-06-16 16:07:48 +00:00
dgp
b3bda726c1
Factor out and simplify loop scanning leading known empty values.
2017-06-16 15:51:12 +00:00
dgp
e1b4ae0798
Use local variables.
2017-06-16 14:46:56 +00:00
dgp
aca86a46ff
Rework the logic. Equivalent function.
2017-06-16 14:43:16 +00:00
dgp
9ddb31d522
Extend cases where string rep generation can be prevented.
2017-06-16 12:56:03 +00:00
dgp
6123ba004c
Better define the meaning of "first" and "last".
2017-06-16 11:47:46 +00:00
jan.nijtmans
56ea73145f
Merge core-8-6-branch.
...
Fix gcc warning: tclStrToD.c:1180:2: warning: enumeration value ‘ZERO_D’ not handled in switch [-Wswitch]
switch (acceptState) {
2017-06-15 11:01:58 +00:00
jan.nijtmans
bc4db4d40e
merge core-8-6-branch
2017-06-15 09:38:09 +00:00
dkf
2cdd3134ab
[9c058c5803e30d02] Correction to cross linking in dict(n)'s SEE ALSO section.
2017-06-14 21:51:36 +00:00
dkf
d453cdacec
[f2336c116b] Move pragmas to make gcc happy; it is pickier than clang.
2017-06-14 21:42:38 +00:00
jan.nijtmans
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
dkf
ad34457a54
Add tests and docs.
2017-06-13 11:10:11 +00:00
griffin
2712a556fb
Add support of 0d in the format %# conversion flag. Add tests for same.
2017-06-12 14:04:29 +00:00
dgp
3f2eb64de8
Another TclStringCatObjv optimization to delay/avoid string rep generation.
2017-06-08 21:15:25 +00:00
dgp
4b81f6ff43
Don't test the impossible.
2017-06-08 21:10:01 +00:00
dgp
cc72d116bd
Modernize overflow checks.
2017-06-08 21:05:22 +00:00
dgp
94b635d569
merge trunk
2017-06-08 20:58:10 +00:00
dgp
de1c1f0f47
More streamlining
2017-06-08 20:57:06 +00:00
dkf
a4f7145579
Make read and write operations on Tcl_Var handles available in tclInt API.
2017-06-08 20:49:51 +00:00
dgp
36d9205d97
More streamlining.
2017-06-08 20:40:45 +00:00
dgp
7673d614a9
pendingPtr == NULL implies (last == first) implies early out
2017-06-08 20:31:47 +00:00
dgp
c348386388
Tests for string rep generation suppression
2017-06-08 19:35:05 +00:00
dgp
878c874975
merge trunk
2017-06-08 16:48:33 +00:00
dgp
b796f3dee7
When possible delay string rep generation until necessary.
2017-06-08 16:44:51 +00:00
jan.nijtmans
dd96539335
merge core-8-6-branch
2017-06-08 12:53:31 +00:00
jan.nijtmans
192d5ccf32
merge core-8-6-branch
2017-06-08 12:38:56 +00:00
jan.nijtmans
fbfe81cc7b
merge core-8-6-branch
2017-06-07 15:23:11 +00:00
jan.nijtmans
1b667ef114
merge core-8-6-branch
2017-06-06 14:35:02 +00:00
dgp
5667bb5f8e
[716b427f76] Optimize TclStringCatObjv when only one non-empty argument.
2017-06-06 13:14:16 +00:00
dgp
b0146fbd50
A few more tweaks to streamline and clarify.
2017-06-06 12:56:37 +00:00
sebres
615771f0b6
makes TclStringCatObjv safe accepting objc = 0 (or 1), then fast exits with new object / first; check-cycles rewritten to be still more faster.
2017-06-06 09:25:00 +00:00
jan.nijtmans
8d78b23f96
merge core-8-6-branch
2017-06-06 09:24:28 +00:00
sebres
7edce7686e
amend to [eac4656f1e8cf793] (moved to scope where numChars != 0 in Unicode case)
2017-06-06 09:01:18 +00:00
sebres
3d8a0152af
small code review: don't need to check length if unchanged + the same case if 0 length
2017-06-06 08:34:00 +00:00
dgp
cb68061d12
Optimize TclStringCatObjv() for case when only one argument is non-empty.
2017-06-05 20:03:19 +00:00
dgp
5c4bb0f4e9
Revert performance optimization as first step to providing a refactored one.
2017-06-05 17:57:33 +00:00
dgp
8129d3e1c3
[67aa9a2070] Tcl_UtfToUniChar returns single byte for invalid UTF-8 input as documented.
2017-06-05 17:15:11 +00:00
jan.nijtmans
f5f03750c8
merge core-8-6-branch
2017-06-02 10:59:19 +00:00
jan.nijtmans
21dfa74b03
Merge core-8-6-branch. This removes the work currently being done in "sebres-8-6-clock-speedup-cr1" branch, but that will be merged again as soon as the work is done.
...
All other changes in "trunk" since then (e.g. the INST_STR_CONCAT1 performance improvement, and the removal of SunOS-4) are retained.
2017-06-02 08:12:38 +00:00
jan.nijtmans
3f0e8d6265
Fix [83a3d869722fab9caaae3b6728215fb2507a6f0d|83a3d86972]: tclEpollNotfy.c fails to compile on Linux 2.6.<22 due to unconditionally including <sys/eventfd.h>
...
Also re-generate regc_locale.c with Unicode 10 tables: previous generation went horribly wrong somehow...
2017-05-31 13:03:54 +00:00
jan.nijtmans
aaca962ffe
merge core-8-6-branch
2017-05-31 12:06:51 +00:00
jan.nijtmans
fcd399d49a
Fix [67aa9a207037ae67f9014b544c3db34fa732f2dc|67aa9a2070]: Security: Invalid UTF-8 can inject unexpected characters
2017-05-31 12:05:45 +00:00
jan.nijtmans
ca9d6593d1
merge core-8-6-branch (except: the "timerate" command and the clock performance-tests are kept)
2017-05-31 09:19:21 +00:00
jan.nijtmans
4a9ae53836
More code review, e.g. use Tcl_SetObjResult in stead of Tcl_SetResult, preventing a (char *) type case. No functional changes.
2017-05-31 08:59:28 +00:00
jan.nijtmans
60c071ed62
Remove "timerate" functionality: this definitely needs a TIP. Also undo changes in library/reg/pkgIndex.tcl, which are unrelated to clock functionality
2017-05-31 08:31:10 +00:00
sebres
bbb13bf577
performance of INST_STR_CONCAT1: closes [716b427f76f8f97a8d9a06043903c53bb2b592c2]: minor optimization in simplest cases,
...
fixed performance regression of TclStringCatObjv usage from [fc9ed1e751180816384d569101950c1f8c4582ad],
optimizes patterns like "$v[unset v]", "$v[set v {}]" etc.
2017-05-31 08:24:42 +00:00
stu
c05da96a35
Unbreak on OpenBSD, again. Put back the old SHLIB_VERSION doings.
...
On OpenBSD, Tcl's libs will need the extra version numbers probably forever.
There's no point to adding the extra knob.
On OpenBSD, the extra version numbers are used for dependency tracking.
The extra version numbers must be on linkable libs
(code will be linked to them, they have a corresponding .h file).
Loadable libs
(no code will be linked to them, they don't have a corresponding .h file.
Usually a Tcl extension)
don't need the burden (OpenBSD has to track the libs' dependencies)
of the extra version numbers.
Libs that are loadable and linkable are treated as linkable.
I hope that clears things up.
2017-05-31 06:10:46 +00:00
stu
73b3bf53ad
Fully remove SunOS-4* from tcl.m4.
2017-05-31 05:39:57 +00:00
sebres
777941e35b
[msgcat] revert changes of "msgcat" to previous state before clock-speedup, move this functionality to "clock.tcl";
...
additionally avoids the usage of catch (uses pair "dict exists/dict get" instead of).
2017-05-30 16:41:48 +00:00
sebres
e06e0c8625
merge core-8-6-branch (resolves warnings)
2017-05-30 08:49:24 +00:00
sebres
ece8767c5c
small code review: resolves several warning on some compilers
2017-05-30 08:46:12 +00:00
sebres
b63d3d703e
3-way merge sebres-trunk-clock-speedup / core-8-6-branch (clock speed-up / flightaware Tcl-bounties#4, see RFE [ddc948cff9781daac7ad95a3077b3c1b4f07cf93])
2017-05-29 21:13:05 +00:00
sebres
a59ccae461
merge sebres-8-6-clock-speedup
2017-05-29 20:37:35 +00:00
sebres
18315c5b5c
merge sebres-8-6-clock-speedup (clock speed-up / flightaware Tcl-bounties#4, see RFE [ddc948cff9781daac7ad95a3077b3c1b4f07cf93])
2017-05-29 20:23:56 +00:00
sebres
c922cc78a8
merge core-8-6-branch
2017-05-29 19:44:55 +00:00
jan.nijtmans
3be2fece8c
merge core-8-6-branch
2017-05-29 13:14:38 +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
cf0cf6ad90
[19a8c9399d] Plug mem leak in TIP 459 machinery.
2017-05-23 16:00:29 +00:00
jan.nijtmans
f3ea991996
Update internal tables to Unicode 10.0. Still in Beta, but to be released soon.
2017-05-23 14:48:58 +00:00
jan.nijtmans
14949f27a3
Merge core-8-6-branch.
...
Obsolete a number of systems, which were already obsoleted by TEA: We cannot even create a "battery-included" release any more for those systems.
2017-05-22 09:16:12 +00:00
stu
62e71e311e
Fix build on OpenBSD. [82701b94c4] missed a couple of bits.
...
Tcl/Tk's tcl.m4 isn't identical to TEA's tcl.m4 - be careful!
2017-05-20 12:45:31 +00:00
aspect
df664778c8
merge core-8-6-branch
2017-05-19 14:23:06 +00:00
jan.nijtmans
34189452da
merge core-8-6-branch
2017-05-18 13:27:10 +00:00
jan.nijtmans
2a5ae4319f
TIP #458 implementation: Add Support for epoll() and kqueue() in the Notifier
2017-05-18 12:33:15 +00:00
jan.nijtmans
dea5aab977
merge core-8-6-branch
2017-05-18 09:24:30 +00:00
sebres
993aa1b338
small amend with forgetten static keyword by option
2017-05-16 09:22:17 +00:00
sebres
c3077bd013
optimized special case "-now" of base (by scan or add) or clock value (by format): bypass integer recognition if it looks like option "-now"
2017-05-16 09:16:43 +00:00
sebres
02d6d68a68
resolved warnings compiled with gcc, removed unused "MsgCtLitIdxs" (was moved to tclClock.c)
2017-05-16 08:51:51 +00:00
sebres
c6484de085
merge sebres-8-6-clock-speedup
2017-05-15 18:35:36 +00:00
sebres
dcc8bd9aa8
Fixed stardate format: be sure positive after decimal point (note: clock-value can be negative - modulo operation in C has the same sign as dividend)
2017-05-12 19:58:01 +00:00
jan.nijtmans
3ca1ed1912
merge trunk
2017-05-12 15:06:51 +00:00
jan.nijtmans
5d20272000
Don't test Tcl_GetDefaultEncodingDir() any more (which is obsolete), test Tcl_GetEncodingSearchPath() in stead.
2017-05-12 14:31:17 +00:00
sebres
0adb50f88b
restored "-encoding utf-8" by source clock.tcl (lost by merging)
2017-05-12 07:45:15 +00:00
sebres
a6c79230c3
merge sebres-8-6-clock-speedup
2017-05-11 21:55:12 +00:00
sebres
0ec19f6b11
fixes lost indentation during back-porting
2017-05-11 21:53:38 +00:00
sebres
d6de0fb46b
reintegrate sebres-8-6-clock-speedup back to sebres-clock-speedup (trunk clock-speedup, 3-way merge)
2017-05-11 19:44:01 +00:00
sebres
6b33bdad03
reintergrate (merge back) "sebres-8-6-timerate" into "sebres-trunk-timerate"
2017-05-11 19:06:53 +00:00
sebres
5171d6b4ef
merge trunk (to sebres-trunk-timerate)
2017-05-11 18:53:21 +00:00
sebres
39a388f035
update documentation doc/clock.n: small enhancements and relevant changes of new engine.
2017-05-11 16:56:56 +00:00
sebres
ea1ae51d2d
[clock] tclStrIdxTree extended with possibility to hold client data; also changed in clock - indices starts with 1 instead of 0, and 0(NULL) instead of -1 used as sign of ambiguous keys.
2017-05-11 15:07:41 +00:00
sebres
95d531e781
prevents loss of key object if the format object (where key stored) becomes changed (loses its internal representation during evals);
...
should avoid possible theoretical segfault there.
2017-05-11 15:07:32 +00:00
sebres
1ea7d20306
auto-loading of ensemble and stubs on demand only (+ test covered now, see clock-0.1);
...
introduces new possibility to implement namespace-based auto-loading, e. g.:
set ::auto_index_ns(::some::namespace) [list ::source [::file join $dir some namespace.tcl]]]
loading of clock-stubs (clock.tcl) implemented via handler "auto_index_ns" now.
2017-05-11 12:32:47 +00:00
sebres
0cdf2fd457
performance test cases extended: several cases to cover absence of the ensemble overhead
2017-05-11 12:25:59 +00:00
sebres
5202a013d2
merge sebres-8-6-timerate
2017-05-11 09:47:36 +00:00
sebres
f9abf9b060
man for timerate (doc/timerate.n)
2017-05-11 09:46:43 +00:00
sebres
2eaa3d3c8d
Added files missing after merge/back-port (rebase with merge point)
2017-05-10 13:02:17 +00:00
sebres
19b2d40089
Fixed possible wrong current date for CET / CEST test cases.
2017-05-10 12:30:04 +00:00
sebres
ba8e7c4211
Fixed wrong args message (e.g. "clock format ..." instead of "::tcl::clock::format") if failed through compiled ensemble execution.
2017-05-10 12:29:59 +00:00
sebres
3fe213e031
Ensemble "clock" fixed after merge with kbk's clock ensemble solution. All commands (including new) compiled now also in ensemble (implemented without TclMakeEnsemble, because it can be extended via new map entries).
...
Ensemble handling partially cherry-picked from new performance branch (TODO: check temporary "-compile" option can be reverted if it becomes ready/merged).
2017-05-10 12:29:54 +00:00
sebres
d9b0bec7d6
resolving differences between 8.6 and trunk
2017-05-10 12:29:49 +00:00
sebres
a021af135e
clock.test normalized (compared with trunk)
2017-05-10 12:29:42 +00:00
sebres
ee3d72e1e1
[interim-merge-commit] back-ported branch sebres-clock-speedup (from trunk to 8.6): tcl-clock functionality rewritten in C.
2017-05-10 12:28:46 +00:00
sebres
2752a9f58b
add missing compile functionality (TclPreserveByteCode/TclReleaseByteCode back-ported as inline from trunk)
2017-05-09 22:24:44 +00:00
sebres
a73818d8b6
back-ported branch sebres_trunk_timerate (new command "timerate" for 8.6)
2017-05-09 21:58:12 +00:00
jan.nijtmans
2130fd8582
merge core-8-6-branch
2017-05-09 11:31:14 +00:00
jan.nijtmans
1ed15145a6
merge core-8-6-branch
2017-05-09 09:49:23 +00:00
dgp
ca65694482
[6015221f59] Segfault after overflow of [binary] field specifier numeric count.
2017-05-05 19:11:33 +00:00
dgp
dd53d408e3
merge trunk
2017-05-04 14:51:22 +00:00
jan.nijtmans
ce501f14c5
merge core-8-6-branch
2017-05-04 12:28:44 +00:00
jan.nijtmans
63cf0366bd
merge core-8-6-branch
2017-05-04 09:51:00 +00:00
jan.nijtmans
52e520be10
merge trunk
2017-05-04 08:55:28 +00:00
jan.nijtmans
af718696fb
merge core-8-6-branch
2017-05-03 15:28:37 +00:00
jan.nijtmans
79f67000c1
merge trunk
2017-05-03 12:09:19 +00:00
jan.nijtmans
709366bdfe
slightly better formatting, both in genStubs.tcl and in the generated XXX_DEPRECATED functions.
2017-05-03 10:03:00 +00:00
jan.nijtmans
910200b637
Extend "deprecated" functionality of genStubs.tcl: XX_DEPRECATED macro now accepts a message text, which will be used in the compiler's error message.
...
Not used (yet) in Tcl.
2017-05-02 12:36:42 +00:00
dgp
be831d7ecb
Revert the colorful debug garbage mistakenly committed.
2017-05-01 20:29:02 +00:00
dgp
44c544160a
[f9fe90d0fa] [file join] normalization. See filesystem-1.52*
2017-05-01 20:25:27 +00:00
jan.nijtmans
799554b1c5
merge core-8-6-branch
2017-05-01 08:22:56 +00:00
fvogel
90ffbb4170
Make trunk compile on MSVC (problem was: warning C4554: '&' : check operator precedence for possible error; use parentheses to clarify precedence)
2017-04-29 14:41:20 +00:00
dgp
adfd841d9d
[f34cf83dd0] An optimization was being taken in a case where it produced the wrong result, failing to collapse multiple /// into /. Testing on Windows where path expectations may vary would be a good idea, but since this is just an optimization avoidance, I suspect we're ok.
2017-04-28 17:57:34 +00:00
dgp
198407b5ba
Test for [f34cf83dd0].
2017-04-28 17:46:11 +00:00
dgp
83495af5ce
silence uninit variable warnings
2017-04-28 14:15:56 +00:00
jan.nijtmans
10ab52081d
merge core-8-6-branch
2017-04-28 13:21:26 +00:00
dgp
0b9703a36f
[04e26c02c0] Remove useless condition that raises warnings.
2017-04-27 17:26:10 +00:00
dkf
e3a9350e58
Start of implementation of TIP #470 .
2017-04-27 12:38:21 +00:00
dkf
04086099d0
[50750c735a] Fix broken test and stop reading uninit-but-allocated memory in zlib channel transform.
2017-04-27 10:51:50 +00:00
jan.nijtmans
fbbc93906e
Move some variable declarations closer to where they are used. No change in functionality.
2017-04-26 13:48:13 +00:00
jan.nijtmans
7b70e3d5eb
merge trunk
2017-04-20 14:50:44 +00:00
jan.nijtmans
2f99ece694
merge core-8-6-branch
2017-04-20 14:47:01 +00:00
jan.nijtmans
1c04f78adb
merge trunk
2017-04-20 12:15:36 +00:00
jan.nijtmans
c1b1e9af62
Remove unused functions like TclWinSetSockOpt()/Tcl_DStringTrunc() if compiled with -DTCL_NO_DEPRECATED
2017-04-20 11:44:05 +00:00
gcramer
bcbbf6dacf
Entry for text.n into exclude_refs_map inserted.
2017-04-20 10:13:02 +00:00
jan.nijtmans
93a924d020
merge core-8-6-branch
2017-04-18 19:02:51 +00:00
dgp
bfdfb7479d
Repair revised tests that failed.
2017-04-17 12:05:02 +00:00
jan.nijtmans
2c5d1036db
merge trunk
2017-04-14 13:00:46 +00:00
jan.nijtmans
15b0a7813d
merge core-8-6-branch
2017-04-14 09:06:34 +00:00
jan.nijtmans
6be0cf66e0
Translate all \u???? sequences to their UTF-8 counterpart in *.msg files: It is faster during parsing (since no backslash-sequences have to be handled) and makes the msg-files better readable by humans.
...
TODO: adapt tools/loadICU.tcl to generate UTF-8 in stead of those sequences. This tools seems to be out-of-date a long time already, I couldn't make it run with latest ICU.
2017-04-13 12:20:37 +00:00
jan.nijtmans
5ba18ec98d
If %llu is considered invalid, it means that "%" TCL_LL_MODIFIER "u" cannot be used Tcl_ObjPrintf(), but only in sprintf(). That's unfortunate, clearly an oversight in TIP #237 . Conclusion: new TIP must be written to correct this.
...
I'll read a TIP and see what case you have, but TCL_LL_MODIFIER was never
meant to play any role in [format] or in Tcl_ObjPrintf(). TCL_LL_MODIFIER
exists to help deal with platform differences in sprintf() calls.
Tcl_ObjPrintf() in contrast ought to be consistent in its behavior
across platforms and should not need such things. If that's false,
then fixes to Tcl_ObjPrintf() are in order.
2017-04-12 13:43:15 +00:00
dgp
62b2b9bf45
Revert recent commit. TIP 237 is clear that %llu is invalid.
2017-04-12 13:15:39 +00:00
jan.nijtmans
e006ff39be
merge core-8-6-branch
2017-04-12 12:33:07 +00:00
jan.nijtmans
9b4213bb3f
merge core-8-6-branch
2017-04-12 09:35:18 +00:00
jan.nijtmans
1efd8faedd
merge trunk
2017-04-12 08:40:16 +00:00
jan.nijtmans
cd48f2d313
Remove some unnecessary "struct" definitions and some type casts no longer necessary. No functional changes.
2017-04-11 15:20:07 +00:00
jan.nijtmans
26f98a5e56
unbreak windows build (by previous commit)
2017-04-11 11:30:47 +00:00
dkf
bbfc7b1ea2
More minor style fixes.
2017-04-10 16:21:31 +00:00
jan.nijtmans
1e3fa455c9
Merge Harald's "robust-async-connect-tests" branch. Thanks!
2017-04-10 12:39:54 +00:00
dkf
d00198bd14
Minor style issues through the socket implementation code.
2017-04-09 16:51:27 +00:00
jan.nijtmans
ff4b11441b
Minor simplification in tcl.h: For the Tcl_WideAsLong/Tcl_LongAsWide/Tcl_WideAsDouble/Tcl_DoubleAsWide #defines, one set suffices: No need to have two versions depending on TCL_WIDE_INT_IS_LONG.
2017-04-07 15:11:47 +00:00
jan.nijtmans
904733362e
Some more (internal) stub entries which can be cleaned up with -DTCL_NO_DEPRECATED, because they are not used any more.
2017-04-06 15:25:44 +00:00
jan.nijtmans
25a4ea0a48
merge trunk
2017-04-06 12:24:36 +00:00
jan.nijtmans
44de3dd8da
If compiled with TCL_NO_DEPRECATED, the functions TclpGetDate/TclpLocaltime/TclpGmtime can be removed: They are internal and not used for anything any more.
2017-04-06 11:13:22 +00:00
jan.nijtmans
9d2b91a84c
merge trunk
2017-04-06 08:53:43 +00:00
max
55edd253ff
Use a random unused port for the dummy http server to avoid conflicts
...
with local services running on port 8010.
2017-04-05 14:47:45 +00:00
jan.nijtmans
19719bf57f
Fix [4b12ccb3363e81b132e8dbe12aeec596102be1a8|4b12ccb336]: format/scan %llu doesn't work. Also added new test-cases showing the expected behavior.
2017-04-05 09:09:20 +00:00
jan.nijtmans
85397cf893
Merge core-8-6-branch.
...
Add test-cases showing that the (undocumented) %p format (and also %zd/%td) are harmless, since they are equivalent to other already existing formats.
2017-04-03 12:54:36 +00:00
jan.nijtmans
ce7746b49e
Since Tcl_AppendPrintfToObj() now understands the %p format, we can use it. Eliminating some internal string buffers.
2017-03-31 14:44:08 +00:00
jan.nijtmans
354e08673b
Extend Tcl_DumpActiveMemory() and related functions for handling 64-bit memory. Only effective with TCL_MEM_DEBUG.
...
Merge-mark core-8-6-branch (this doesn't bring in any changes)
2017-03-31 09:19:05 +00:00
dkf
810395f913
[900cb0284bc] Ensure that masking pseudo-methods used for export management are not introspectable directly.
2017-03-29 19:07:44 +00:00
dkf
8dfdec39fd
Tweak to make tests a little clearer.
2017-03-29 19:05:17 +00:00
jan.nijtmans
0abecbc87d
Fix [4768eb5c166a1b923e3472d18d75fdccc1a47513|4768eb5c16]: format-8.20 failure. Since "%q" now is a valid length specifier, we cannot use it any more to test for "bad field specifier"
2017-03-29 14:53:54 +00:00
jan.nijtmans
efbb62b5bd
In comments and documentation, distinguish between __int64 (a Microsoft 64-bit integer type) and int64_t (C99 equivalent)
2017-03-29 12:19:02 +00:00
jan.nijtmans
dd5e309d31
Improve comment on TCL_WIDE_INT_IS_LONG, making it less misleading.
...
In tclThreadTest.c, allow mainThreadId to be >32 bits.
2017-03-27 13:02:39 +00:00
aspect
0c0b1e1498
Correct this use of isWanted to ensure NO_IMPLEMENTATION methods are not listed (bug [900cb0284bc])
2017-03-27 13:02:22 +00:00
jan.nijtmans
920aa8280f
Supply more C99-compatible (and MSVC) format options: '%p' for pointers, 'z'/'j'/'I' for size_t/intptr_diff, 'j'/'q' for long long. Also add "I32" froom MSVC.
...
Remove TCL_LL_MODIFIER specified as "L" for Borland: This must be wrong as "L" is meant for long double. Just assume that later Borland compilers are MSVC-compatible.
2017-03-24 15:52:42 +00:00
jan.nijtmans
516cc8a0ac
merge trunk
2017-03-24 10:31:57 +00:00
jan.nijtmans
8a2c820213
Merge trunk
2017-03-24 10:30:56 +00:00
jan.nijtmans
ab08379d1c
Add TCL_NORETURN attribute to TclpThreadExit() and Tcl_ExitThread()
2017-03-24 09:33:00 +00:00
jan.nijtmans
321cd769b7
Use portable %p modifier in "generic/tclThreadTest.c", in stead of more complicated TCL_LL_MODIFIER.
2017-03-23 16:35:08 +00:00
José Ignacio Marín
91cb892574
merge with trunk
2017-03-23 08:42:38 +00:00
dgp
e58e9e1fb9
New(ish) test interp-14.11 was missing its -cleanup.
2017-03-22 19:46:56 +00:00
jan.nijtmans
dc25a1a62b
Addendum to previous commit: If compiled with TCL_NO_DEPRECATED, remove a few more stub entries which are not used any more.
2017-03-21 09:01:09 +00:00
jan.nijtmans
754b233873
If compiled with TCL_NO_DEPRECATED, remove some more stub entries which are not used any more.
2017-03-20 10:24:11 +00:00
jan.nijtmans
5617ad7c18
If Tcl is compiled with -DTCL_NO_DEPRECATED, make sure that iPtr->(resultSpace|appendResult|appendAvl|appendUsed) are not used any more.
2017-03-17 10:57:24 +00:00
dkf
909f1a1a30
Fixes to docs made possible by recent HTML rendering fixes for Tk.
2017-03-16 09:07:19 +00:00
jan.nijtmans
f6837a8ef4
redundant end-of-line spacing
2017-03-15 15:15:50 +00:00
Kevin B Kenny
488735e4a2
Compile [clock clicks], [clock microseconds], [clock milliseconds] and [clock seconds].
2017-03-15 02:40:56 +00:00
Kevin B Kenny
a3f676461c
Make 'clock' and 'encoding' into compilable ensembles that play with safe interps
2017-03-14 22:22:40 +00:00
jan.nijtmans
daea6758cb
Merge trunk
2017-03-13 10:22:00 +00:00
jan.nijtmans
6f905e1f0f
Eliminate internal use of TclNewBooleanObj()/TclSetBooleanObj()/TclSetIntObj(). Replace Tcl_DbNewBooleanObj() with trivial macro.
2017-03-13 08:38:18 +00:00
dkf
4ccedfaec4
Add back missing significant character
2017-03-13 06:16:45 +00:00
fvogel
c010901ea9
Fix error in formatting in info.n
2017-03-12 19:45:00 +00:00
dkf
c0bedd810f
Add mappings for groff-style character naming, used in experimental branches of Tk.
2017-03-12 18:36:21 +00:00
José Ignacio Marín
5d66bf5a1f
Merge the update of TZ info with trunk.
2017-03-10 17:07:44 +00:00
jan.nijtmans
868882e2e7
Merge trunk
2017-03-08 14:53:11 +00:00
jan.nijtmans
f55296bdf0
minor simplification
2017-03-08 14:50:44 +00:00
jan.nijtmans
bed000d72e
A few more end-of-line spacings
2017-03-08 14:32:15 +00:00
jan.nijtmans
b2181df698
Fix compile error on Cygwin, and double definition of TclUnixWaitForFile()
2017-03-08 13:56:55 +00:00
jan.nijtmans
6469ae095f
Re-base to trunk, and get latest code from here: [ https://github.com/lalbornoz/tcl/tree/tip458 ]. Untested.
2017-03-08 13:35:23 +00:00
sebres
636e904b09
merge core-8-6-branch
2017-03-07 18:21:24 +00:00
sebres
30dc72c0aa
merge sebres-trunk-timerate
2017-03-07 11:38:31 +00:00
sebres
279bfdeef3
timerate: don't calculate threshold by too few iterations, because sometimes first iteration(s) can be too fast (cached, delayed clean up, etc).
2017-03-07 11:35:03 +00:00
jan.nijtmans
da85dcc288
Fix [e14d152114efee10394a7e0b4b1c0478efff52c5|e14d152114]: bundled zlib documentation is under a potentially non-free license
2017-03-07 11:08:47 +00:00
jan.nijtmans
ac3cb936ee
Merge core-8-6-branch
2017-03-07 09:47:41 +00:00
sebres
fa0de66105
tclEmptyStringRep -> &tclEmptyString
2017-03-06 21:01:53 +00:00
sebres
aaa76b7a7d
msgcat.test: fixed mcpackagelocale syntax usage test case (msgcat-12.1)
2017-03-06 20:32:54 +00:00
sebres
ad788184e3
merge trunk
2017-03-06 20:19:39 +00:00
sebres
aec683eef8
merge trunk
2017-03-06 20:18:35 +00:00
sebres
41646a2294
merge core-8-6-branch
2017-03-06 20:10:42 +00:00
avl
ef3d739cdf
Fix for Ticket [71c0878b71] + test cases
2017-03-05 15:05:48 +00:00
dgp
0f7d84bbbf
ParseTokens failed to fully respect its numBytes argument.
2017-02-27 14:53:32 +00:00
dkf
7088b7efe3
[25842c161f] Ensure that finalization of a zlib stream works.
2017-02-26 15:33:04 +00:00
dkf
874b8643e0
Add documentation of [regsub -command].
2017-02-18 18:38:52 +00:00
dkf
d18329a21e
Testing for some error cases.
2017-02-18 16:24:09 +00:00
dkf
82296abf08
Add more representation smashing testing and a memleak test.
2017-02-18 14:26:34 +00:00
dkf
5772e32729
Stop problems with representation smashes.
2017-02-17 09:20:49 +00:00
dkf
3ef7160d41
Switch to using command prefixes properly. This is quite a bit faster.
2017-02-17 06:08:18 +00:00
jan.nijtmans
dcb3e865c6
merge trunk
2017-02-16 15:52:21 +00:00
jan.nijtmans
462ffc7927
More internal use of size_t in stead of int, e.g. for epoch's
2017-02-15 14:04:15 +00:00
jan.nijtmans
a13289725c
On Windows, Cygwin and 64-bit platforms, no need to handle 'long' in tclLink.c, since its size is equal to either 'int' or 'Tcl_WideInt'. This enhances interoperabilty between win64 extensions loaded in cygwin64 using Tcl_LinkVar(), whill still being 100% compatible.
...
init.tcl: unnecessary spacing.
2017-02-14 14:25:08 +00:00
dkf
efa3ec6939
Proposed implementation of [regsub -command].
2017-02-11 21:36:36 +00:00
sebres
2bb76d85aa
merge sebres-trunk-timerate
2017-02-09 13:50:27 +00:00
sebres
8dde174dd4
[win] accomplished winTime module using very fast wide clicks, with denominator scale to/from microseconds, and therefore more precise "timerate" results under windows (using similar mechanisms as by Mac OSX).
...
Especially multi-threaded, because it works without lock opposite to microseconds (that use crictical section, because of the calibration thread).
The reason for usage of wide clicks instead microseconds explains following example (shows 20% performance deference):
% timerate -calibrate {}
% timerate {clock microseconds} 5000
0.297037 µs/# 14465901 # 3366585 #/sec 4296.906 nett-ms
% timerate {clock clicks} 5000
0.247797 µs/# 16869084 # 4035554 #/sec 4180.116 nett-ms
2017-02-09 13:45:14 +00:00
sebres
ca98340c4c
[timerate] bug fix: missing scale conversion by Mac OSX on platform where high resolution clicks are not microseconds based;
...
[win] use high resolution timer for the wide clicks and microseconds directly, prevent several forwards/backwards conversions;
[win, unix, mac-osx] normalize some functions for common usage in different time units (clicks, micro- and nanoseconds)
2017-02-09 11:36:17 +00:00
sebres
35539e2f98
resolve warning: enumeration value ‘TMRT_LAST’ not handled in switch (impossible to handle in switch because of break);
2017-02-09 11:34:43 +00:00
jan.nijtmans
8fb5bb0f20
TIP #459 feedback from FlightAware: Add package-related pkgIndex.tcl file to "package files" output.
2017-02-08 22:01:45 +00:00
jan.nijtmans
6db42b86e6
Shortcut in TclParseNumber(): If obj is a dict or list, don't bother to generate the string representation if we know already beforehand that the parsing will fail.
...
Use TCL_NO_DEPRECATED in stead of KILL_OCTAL for removing the (deprecated un-prefixed) octal support.
Adapt test-cases, so they work without octal support as well.
2017-02-08 14:32:13 +00:00
jan.nijtmans
8066c6a687
FlightAware feedback: "Aside: Any way to find out what the pkgIndex.tcl file a package was defined in was, or does that happen at too high a level?"
...
Answer: Even though the name of the pkgIndex file is available earlier, it is very well possible to remember it and store it with the other files. This commit does exactly that.
2017-02-08 11:42:12 +00:00
jan.nijtmans
4671050f10
Code cleanup (based on feedback from René Zaumseil): Only call GetInvalidIntFromObj() when Tcl_GetIntFromObj() fails.
2017-02-07 12:27:19 +00:00
bch
0e31751aed
cherrypick typo fix.
2017-02-06 21:58:48 +00:00
jan.nijtmans
19e0981d35
Split tclEmptyStringRep declaration over two lines. Otherwise gcc warning.
2017-02-03 14:29:50 +00:00
jan.nijtmans
b2a59d29b6
TIP #459 remaining part of implementation. Makes "package require Tk" give the right (... at least ... the expected ...) answer.
2017-02-03 12:27:37 +00:00
jan.nijtmans
d917353c7e
In TclGetNumberFromObj() macro (tclExecute.c): Don't fill in type if TCL_ERROR is returned: The caller doesn't do anything with this.
...
Don't access (non-const) variable tclEmptyStringRep any more, use its value (&tclEmptyString) directly. Only keep it in tclPkg.c, for error checking.
2017-02-03 11:47:02 +00:00
jan.nijtmans
c4c2b0b58d
merge trunk
2017-02-01 16:22:13 +00:00
jan.nijtmans
5fdbd4a749
Fix [d0f7ba56f0e8f93b7efb5b09ebc30a824bdd577a|d0f7ba56f0]: INST_EQ first-argument NaN shortcut is too aggressive
2017-02-01 14:55:02 +00:00
jan.nijtmans
17cf9db2f7
Update documentation on recent changes in Tcl_LinkVar.
...
Minor code clean-up. No functional changes.
2017-01-31 13:27:28 +00:00
ashok
4b357897d5
Added assoc, ftype and move as auto_execok shell built-ins on Windows.
2017-01-28 06:38:22 +00:00
jan.nijtmans
68275b03de
Some code cleanup: More internal use of size_t, less type casts (because of this). No functional changes.
2017-01-27 14:31:12 +00:00
jan.nijtmans
2645c0ef3a
If TCL_NO_DEPRECATED is defined, remove the "case" statement, and use much less interp->result. Implementation mostly taken over from "novem". If TCL_NO_DEPRECATED is not defined, nothing changes.
2017-01-25 12:22:16 +00:00
jan.nijtmans
7de961e9fa
Merge trunk
2017-01-23 09:11:34 +00:00
jan.nijtmans
c26df8ae12
Fix [39f6304c2e90549c209cd11a7920dc9921b9f48e|39f6304c2e] follow-up: Make Tcl_LinkVar toleranto to the empty string as well
2017-01-20 16:21:43 +00:00
fvogel
47692f4e99
Fix [1f4bb8162f]: lsort -dictionary documentation to be improved
2017-01-19 22:38:40 +00:00
jan.nijtmans
e7e764dbdf
Implement tag "deprecated" in genStubs.tcl. Will be used in Tk 8.7, for tagging the deprecated function Tk_FreeXId()
2017-01-17 12:02:43 +00:00
jan.nijtmans
0140824cf4
merge trunk
2017-01-17 10:28:31 +00:00
jan.nijtmans
b0aa1e2416
merge core-8-6-branch
2017-01-17 10:04:42 +00:00
jan.nijtmans
3dba96d22a
Fix for missing proper initialization of the threaded allocator in some situations. Problem reported by Zoran Vasiljevic, only noted when building/running NaviServer/AOLServer with Tcl 8.7 (trunk).
2017-01-16 11:57:17 +00:00
jan.nijtmans
a0ea496ffb
Update zlib to version 1.2.11
2017-01-16 11:53:07 +00:00
venkat
893b999f51
Merge IETF tzdata2016j
2017-01-14 08:47:15 +00:00
jan.nijtmans
35d8e3912d
Introduce new function TclInitThreadAlloc(), symmetric with TclFinalizeThreadAlloc()
2017-01-13 14:43:07 +00:00
sebres
4c239ca4d9
merge trunk
2017-01-13 14:22:31 +00:00
jan.nijtmans
a89608d308
Merge-mark (restoring the expected merge order from core-8-5-branch -> core-8-6-branch -> trunk -> novem)
2017-01-13 13:02:32 +00:00
sebres
bd9426f3e5
missing rules.vc after merge
2017-01-13 12:57:45 +00:00
jan.nijtmans
abdbe053ea
Enhance nmakehlp, allowing multiple arguments for "-l", and recognizing a new linker code LNK4224. Patch by sebres.
2017-01-13 12:20:21 +00:00
jan.nijtmans
6ecb7aeabf
Patch from Zoran Vasiljevic, fix for missing proper initialization of the threaded allocator in some situations.
2017-01-13 11:17:17 +00:00
jan.nijtmans
d42b3a00d3
Merge core-8-6-branch
2017-01-12 10:34:05 +00:00
sebres
77481ec3e1
code review and inline documentation
2017-01-11 16:36:28 +00:00
sebres
f03990cd12
code review: small optimization of msgcat::mcget, prevents infinite loop if at all no translation
2017-01-11 16:35:41 +00:00
jan.nijtmans
1ebb964dbc
Use more Tcl_AppendResult(), in order to prevent the use of a (char *) type case.
2017-01-11 16:23:18 +00:00
jan.nijtmans
e6d3efd5e1
Merge core-8-6-branch.
...
Do gcc-compiles with the option -Wwrite-strings, so we can detect mis-usage of "const".
Make Tcl_AddErrorInfo() and Tcl_AddObjErrorInfo() a macro.
2017-01-11 14:10:33 +00:00
sebres
a841205be9
amend lost changes after rebase to fossil
2017-01-10 23:09:23 +00:00
sebres
df7cbb28e0
small amend (reset have rel flag)
2017-01-10 23:02:14 +00:00
sebres
01697f2acc
"clock add" rewritten in C, using common functionality of "clock scan" (and freescan)...
...
test-performance.tcl: test cases extended to cover "clock add"
2017-01-10 23:02:02 +00:00
sebres
0a1c05fbb8
code review and inline documentation
2017-01-10 23:01:23 +00:00
sebres
8fa2e7802e
correct output of total resp. average values considering net execution time (overhead considered)
2017-01-10 23:00:05 +00:00
sebres
c2ee1525ef
[unix] resolving of several warnings (gcc 5.x):
...
- static used in non-static inline function;
- x64 int cast on pointer [-Wpointer-to-int-cast];
- (obscure) may be used uninitialized in this function [-Wmaybe-uninitialized];
- TclEnvEpoch initialized and declared extern;
2017-01-10 22:59:16 +00:00
sebres
ae731e3e50
test-performance: added calibration of timerate to minimize influence of the parasitical execution-overhead by extremely fast execution times
2017-01-10 22:58:29 +00:00
sebres
bc879a58f2
Merge remote-tracking branch 'remotes/fossil/trunk' into sb/trunk-rewrite-clock-in-c; + minor fixes after merge.
2017-01-10 22:56:13 +00:00
sebres
d551c0972c
[unix] build for *nix fixed, code clean-ups; missing declarations; unused vars, functions etc; types normalization;
2017-01-10 22:55:00 +00:00
sebres
27fd5c0793
dict: unused variable removed
2017-01-10 22:53:05 +00:00
sebres
264cc47fd4
another way to make greedy search more precise, some greedy matches are fixed (see test cases clock-6.22.11 - clock-6.22.20), additionally involving look ahead token of known type into pre-search process.
2017-01-10 22:52:44 +00:00
sebres
866efbc904
some greedy matches are fixed (see test cases clock-6.22.11 and clock-6.22.12), involving space count in look ahead and end distance calculation (because spaces are optional in date-time string as well as in scanning format).
2017-01-10 22:52:12 +00:00
sebres
941e45f907
clock.tcl: clean unused resp. obsolete commands
2017-01-10 22:45:59 +00:00
sebres
7a654297a0
small code review, performance test cases ready.
2017-01-10 22:45:29 +00:00
sebres
4600d7c026
performance test cases ready
2017-01-10 22:44:55 +00:00
sebres
c97ddc73f6
several missing scan tokens added, test cases extended and fixed;
...
token "%s" used for seconds only (time zone independent), additionally "%Es" token added for local seconds (zone dependent seconds);
2017-01-10 22:44:30 +00:00
sebres
bd20b3429a
porting of clock format completed; all clock test cases passed
2017-01-10 22:43:22 +00:00
sebres
d830389b53
[temp-commit]: format almost ready (missing some tokens), sprintf replaced with _itoaw (because "sprintf" too slow)
2017-01-10 22:42:15 +00:00
sebres
63c8495242
[temp-commit]: format almost ready (missing some tokens)
2017-01-10 22:41:18 +00:00
sebres
9d7b1b2b03
min length of %Y token (year with century) is 4, optional tokens possibility (zone), test cases extended
2017-01-10 22:40:16 +00:00
sebres
0f7c885e8c
other locale scan token switched from list seek to index tree + list search case insensitive now
2017-01-10 22:39:45 +00:00
sebres
95b63f4c39
locale months scan switched to from list seek to index tree; bug fixing
2017-01-10 22:38:56 +00:00
sebres
20ec6252d1
lowercase on demand, string index tree can search any-case now, clock scan considered utf-8 char length in words by format parsing
2017-01-10 22:38:22 +00:00
sebres
2ba998572c
string index tree for fast greedy search of the string (index) by unique string prefix as key;
...
clock scan rewritten to use string index tries search;
2017-01-10 22:37:40 +00:00
sebres
c5ff074db9
cacheable conversions Local2UTC / UTC2Local fixed (some TZ switches time seconds bound) and optimized (last period ranges saved);
...
prepare to back-port clock format
2017-01-10 22:36:19 +00:00
sebres
717e43f1bd
estimate token count by % char and format length (don't use fix TOK_CHAIN_BLOCK_SIZE by creation, minimized memory usage)
2017-01-10 22:35:34 +00:00
sebres
e130d09c74
small optimization (determine min/max length, end distance, etc.)
2017-01-10 22:35:14 +00:00
sebres
36d60df82c
clock scan almost ready (currently test-case covered tokens only), test cases passed; todo - check other tokens from "clock.tcl"
2017-01-10 22:34:42 +00:00
sebres
e9177a25c1
bug fix by match word token (FindWordEnd fixed);
...
repaired current locale switch
2017-01-10 22:34:11 +00:00
sebres
02b4c1de38
repaired system/current locale caching (also for legacy clock format) and legacy timezone cached as last
2017-01-10 22:33:41 +00:00
sebres
feb62aa2bd
scan format: several tokens implemented, bug fixing and code review;
...
precedence yyyymmdd over yyyyddd was changed (and re-covered in test-cases also), see http://core.tcl.tk/tcl/tktview/e7a722cd3573fedda5d1e528f95902776f996e06
2017-01-10 22:32:46 +00:00
sebres
6c38124bb9
%j token as day of year; clear flags implemented (to provide last-wins functionality)
2017-01-10 22:31:43 +00:00
sebres
caf50ef7ea
seconds token (%s) take precedence over all other tokens
2017-01-10 22:31:12 +00:00
sebres
c51ce8e879
list index logic optimized regarding greedy search (don't stop by first found - try to find longest)
2017-01-10 22:30:49 +00:00
sebres
94dc5e4e43
improve LocalizeFormat, internal caching of localized formats inside msgcat for locale and format objects
...
smart reference introduced in dict (smart pointer with 0 object reference but increase dict-reference, provide changeable locale dict)
code review
2017-01-10 22:30:24 +00:00
sebres
c52322d409
improve LocalizeFormat, internal caching of localized formats inside msgcat for locale and format objects
...
smart reference introduced in dict (smart pointer with 0 object reference but increase dict-reference, provide changeable locale dict)
2017-01-10 22:28:25 +00:00
sebres
a4c93085d2
l10n (with caching) implemented, msgcat package optimized, code review, etc.
2017-01-10 22:25:20 +00:00
sebres
18dc49dd08
[temp-commit]: not ready
2017-01-10 22:23:37 +00:00
sebres
c5d6cc90d9
several initialize and finalize facilities
2017-01-10 22:21:26 +00:00
sebres
bcb2a0a181
amend for caching of UTC2Local / Local2UTC:
...
* tzdata used internally only (because cached, replaced with timezone object as parameter for several functions)
* small improvement (don't need to convert UTC to UTC)
2017-01-10 22:20:25 +00:00
sebres
940c0805c0
[temp-commit]: code review, DST-hole mistake by scan with relative time resolved;
...
caching of UTC2Local / Local2UTC cherry picked
2017-01-10 22:19:01 +00:00
sebres
a3c42aef3e
[temp-commit]: clock scan tokenizer logic ready (still needs many rules)
...
caching extended (currentYearCentury, yearOfCenturySwitch, lastBaseDate ...)
2017-01-10 22:15:36 +00:00
sebres
aba1f29686
[temp-commit]: rewrite scan token map handling
2017-01-10 22:12:07 +00:00
sebres
898bc97bbe
[temp-commit]: tclClockFmt.c - amend for 2nd try (with cherry picking of tclSE incompatible facilities)
...
Prepared for common usage of both scan commands - free scan / scan with format (currently faked via eval to __org_scan);
test cases passed.
2017-01-10 22:10:44 +00:00
sebres
5ab3eafa66
[temp-commit]: tclClockFmt.c - 2nd try (with cherry picking of tclSE incompatible facilities)
...
Prepared for common usage of scan command (free scan / format scan)
2017-01-10 22:09:02 +00:00
sebres
1f1f1e4dfc
[temp-commit]: tclClockFmt.c - 1st try
...
using "timerate" instead "time" by performance measurement tests (more precise and fixed time, so no switch of factor expected)
2017-01-10 22:07:37 +00:00
sebres
32b5c49ef3
[temp-commit]: ClockFreeScan back-ported (cherry picked), all tests case passed + several new test-cases for bug fixing implemented here;
...
environment epoch ported, several fixes for the time zone / tzdata caching ported;
mem-leak fix + memory leak test cases passed
2017-01-10 22:04:49 +00:00
sebres
21878028d5
[temp-commit]: ClockFreeScan ready, test case passed (2 failure because of wrong :localtime zone by TZ-switch, to be fixed)
2017-01-10 22:02:10 +00:00
sebres
18b31092c6
[temp-commit]: ClockFreeScan seems to be ready, test case should be checked
2017-01-10 22:01:13 +00:00
sebres
736824a259
[temp-commit]: ClockFreeScan almost ready, test-performance cases merged
2017-01-10 21:59:59 +00:00
sebres
9e52bb21b7
[temp-commit]: clock scan with several optimization porting, still not-ready
2017-01-10 21:58:33 +00:00
sebres
a3433951b0
1st try to rewrite clock in C
2017-01-10 21:57:06 +00:00
sebres
ad284758d3
Create new branch named "sebres-clock-speedup"
2017-01-10 21:20:03 +00:00
sebres
6aed9a6630
[win] load win-registry library also in development environment (uninstalled)
2017-01-09 19:33:23 +00:00
sebres
704f3a5483
missing entry of tclInt.h added
2017-01-09 19:31:08 +00:00
sebres
2de37edd0d
New performance measurement routine "timerate" in opposition to "time" the execution
...
limited by fixed time (in milliseconds) instead of repetition count (more precise
results, to prevent very long execution time it is no more necessary to estimate
repetition count)
Syntax: timerate ?-direct? ?-calibrate? ?-overhead double? command ?time?
2017-01-09 19:09:49 +00:00
sebres
ec306bb22e
Merge fix clock test-cases from 8.6: Make test clock-67.5 time zone independent - execution fails in the time zones below gmt
2017-01-09 18:28:56 +00:00
sebres
8b67c7f038
Merge bug_b87ad7e914
2017-01-09 17:53:00 +00:00
jan.nijtmans
cc89e55f7d
Merge trunk
2017-01-06 11:39:10 +00:00
jan.nijtmans
860e480e47
Complete the upgrade to Zlib 1.2.10: Now add the *.lib and *.dll files
2017-01-06 10:30:31 +00:00
jan.nijtmans
03d119a937
Make TclGetLoadedPackagesEx() work with other than the only current interpreter (didn't really think about that earlier ... ). Actually slightly more correct.
2017-01-05 15:13:58 +00:00
jan.nijtmans
3703dbd940
Merge trunk
2017-01-05 14:47:07 +00:00
jan.nijtmans
570a13bc17
Fix [7c7d3b4481d4e4e86420b54031f4abd1df18d64|7c7d3b4481]: load test failures. There's a difference between "" and NULL as interpreter name.
2017-01-05 14:27:20 +00:00
jan.nijtmans
8da19e064b
One more ::tcl::Pkg::source, for the Mac
2017-01-05 13:09:26 +00:00
jan.nijtmans
666afa7352
Merge trunk. Improve test-case. Bring back "source -nopkg", but only as undocumented internal helper for ::tcl::Pkg::source.
2017-01-05 11:55:56 +00:00
fvogel
45db025684
Added more glob patterns in order to ignore html generated documentation and Windows-specific compilation products when running fossil extra
2017-01-04 16:34:03 +00:00
jan.nijtmans
5e02396d5e
In stead of "source -nopkg" use a ::tcl::Pkg::source utility function.
2017-01-04 16:23:23 +00:00
jan.nijtmans
2e108cd831
Fix safe.tcl test-cases: "source -nopkg" is not necessary here: "source" is an alias for "::safe::AliasSource", which doesn't use "source"
2017-01-04 15:16:31 +00:00
jan.nijtmans
27fb8875b7
Merge trunk. First steps in eliminating "source -nopkg". Some test-cases still fail.
2017-01-04 14:05:20 +00:00
jan.nijtmans
acdb5b2026
Fix 2 test-cases, due to changed command options.
2017-01-04 13:51:26 +00:00
jan.nijtmans
f711652d04
TIP [ http://www.tcl.tk/cgi-bin/tct/tip/459 |459] implementation, but (for now) without the "source -nopkg" part.
2017-01-04 13:38:56 +00:00
jan.nijtmans
ca2077254b
TIP [ http://www.tcl.tk/cgi-bin/tct/tip/456 |456] implementation: Extend the C API to Support Passing Options to TCP Server Creation
2017-01-04 12:55:27 +00:00
jan.nijtmans
99fa27bc91
merge core-8-6-branch
2017-01-04 11:55:28 +00:00
limeboy
a2c66d61f0
Make the code slightly more pleasing to the eyes.
2017-01-01 22:19:26 +00:00
jan.nijtmans
aba0a7a6cd
Make options -reuseaddr/-reuseport forbidden without -server, no matter the value being true or false. Some additional test-cases.
2016-12-20 12:35:33 +00:00
jan.nijtmans
d97bb854b0
merge fork
2016-12-20 11:47:11 +00:00
limeboy
f208386ff7
Decouple the switch handling.
2016-12-20 10:56:53 +00:00
limeboy
e574cfbc71
Correct the handling of -server and its options.
2016-12-20 10:22:22 +00:00
jan.nijtmans
7a1d9d5758
merge trunk (still has test failure in socket.test)
2016-12-20 09:30:02 +00:00
jan.nijtmans
9d13b8508a
merge trunk
2016-12-16 15:25:04 +00:00
jan.nijtmans
99ba3608b0
Merge trunk
2016-12-15 11:28:32 +00:00
limeboy
dfbc8a6296
Update the documentation
2016-12-14 16:03:53 +00:00
limeboy
cbe4a7dae5
Adjust OpenTcpServer for the latest changes to OpenTcpServerEx
2016-12-14 15:59:43 +00:00
limeboy
caf8932e2e
Fix for the argument parsing phase in the [socket] command.
2016-12-14 15:52:21 +00:00
limeboy
2e467a4c9a
Make OpenTcpServerEx accept a 'service' string parameter instead of a port.
2016-12-14 15:49:27 +00:00
jan.nijtmans
3df1a90364
Bring back stub table in original state.
...
Merge trunk
2016-12-08 17:52:36 +00:00
limeboy
13a4d32330
merge trunk
2016-12-01 12:01:01 +00:00
jan.nijtmans
804199d4b7
Implement the "package forget" part, which was still missing. Handle the case that a filename contains spaces.
2016-11-29 09:45:20 +00:00
jan.nijtmans
1df184e860
slightly simpler
2016-11-28 15:29:36 +00:00
jan.nijtmans
b7e862c565
Complete implementation, tests and documentation
2016-11-28 13:17:47 +00:00
jan.nijtmans
ee6806b80d
Add "package files" testcase, which doesn give the right answer. So still work to do
2016-11-26 17:47:27 +00:00
dkf
cdb6b73776
Implementation of improved notifier from Lucio Andrés Illanes Albornoz.
2016-11-25 15:44:43 +00:00
jan.nijtmans
ecda933dfc
Merge trunk.
...
Implementation looks complete. Still missing: test-cases and documentation.
2016-11-25 15:06:13 +00:00
limeboy
8fe50e3f91
Windows support and minor touchups to the documentation.
2016-11-25 14:53:20 +00:00
limeboy
3d5c28f527
Minor documentation touchups.
2016-11-25 13:27:56 +00:00
jan.nijtmans
7a6b829025
Merge trunk, and fix two socket test-cases.
2016-11-25 09:38:04 +00:00
limeboy
e123cfc452
Forgot a - in the parameters array.
2016-11-24 21:15:15 +00:00
limeboy
467b6eeb8e
Allow a boolean argument to be passed.
2016-11-24 21:01:43 +00:00
jan.nijtmans
43f0f22700
merge trunk
2016-11-24 20:55:43 +00:00
limeboy
07020d6350
First round of documentation update.
2016-11-24 20:28:42 +00:00
jan.nijtmans
2cbc2f1993
merge fork
2016-11-24 16:21:20 +00:00
jan.nijtmans
1b0d436cc7
Starting implementing the "package files" command. TIP still to be written.
2016-11-24 16:20:05 +00:00
limeboy
15b2687d3c
Adjust the tests and add a handful of new ones.
2016-11-24 15:00:36 +00:00
jan.nijtmans
842d6d00f1
Fix compile error if SO_REUSEPORT not supported. Put command options in alphabetical order
2016-11-24 13:18:10 +00:00
limeboy
1859293255
Implement the whole TIP 456 specification.
...
Also introduces the `-reuseaddr' and `-reuseport' options for the `socket'
command.
2016-11-24 12:47:21 +00:00
jan.nijtmans
32f810fc3b
Fix indenting
2016-11-22 11:24:48 +00:00
jan.nijtmans
6989a199e7
Added stub entry for tip #456 . Documentation and tests still missing. Doesn't conform to TIP yet.
2016-11-22 11:21:00 +00:00
jan.nijtmans
ee70b22d59
This is patch.002 from ticket [0b9d3ba2ba3e1e3fc33c97d5a9fa7ef85d11a696|0b9d3ba2ba], as first start of tip-456 implementation
2016-11-22 10:06:18 +00:00
jan.nijtmans
73eba9c51c
merge trunk
2016-11-02 12:56:09 +00:00
jan.nijtmans
44c6dd4e06
Fix: 3 places where a superfluous TCL_MINOR_VERSION is still used where it shouldn't.
2016-09-28 14:20:59 +00:00
jan.nijtmans
6b44c55123
merge trunk
2016-09-28 13:59:27 +00:00
jan.nijtmans
4f06f3cc81
merge trunk
2016-09-16 09:25:10 +00:00
jan.nijtmans
1400cb8082
merge trunk
2016-08-30 13:41:27 +00:00
jan.nijtmans
ed1882a83b
merge trunk
2016-08-19 08:48:20 +00:00
jan.nijtmans
a132b14f9d
Merge trunk
2016-06-30 13:55:26 +00:00
jan.nijtmans
0b3ef351aa
Merge trunk
2016-06-29 12:07:12 +00:00
jan.nijtmans
3815952b56
Merge trunk. Add "--with-dbgx" configure option, so the name of the tclsh executable/sharedlibrary can be modified (request at EuroTcl 2016)
2016-06-29 10:03:59 +00:00
jan.nijtmans
b3b8293b8a
Merge trunk. Update the "package" documentation regarding compatibility with the "Semantic Versioning" specification.
2016-06-22 14:44:02 +00:00
jan.nijtmans
900590be7b
Merge trunk
2016-06-21 10:27:22 +00:00
jan.nijtmans
b64f0f8376
merge trunk
2016-03-17 15:54:22 +00:00
jan.nijtmans
429f7134b4
merge trunk
2016-03-13 17:31:09 +00:00
jan.nijtmans
c746a673fc
Merge trunk
2016-03-08 14:20:24 +00:00
jan.nijtmans
e90545855f
merge trunk
2016-03-07 08:39:32 +00:00
jan.nijtmans
5bfce469ff
merge trunk
2016-03-04 08:21:06 +00:00
jan.nijtmans
76810a91c5
merge trunk
2016-03-02 09:32:33 +00:00
jan.nijtmans
2271d85d60
merge trunk
2016-01-24 16:57:28 +00:00
jan.nijtmans
51ec2a3862
Remove build information from TIP-439 implementation: At the least should be a different separate TIP
2016-01-23 21:54:46 +00:00
jan.nijtmans
24dba328fa
fix generiation of tclUuid.h on win32/unix. Add build information (experimental)
2016-01-22 12:51:25 +00:00
jan.nijtmans
78e0b60876
Merge trunk. Simplify build information to "+core.<UUID>"
2016-01-22 10:56:45 +00:00
jan.nijtmans
25b132c55d
Add 'engine' core.tcl.tk and build information to the output of "package require Tcl". Alternative suggestion to TIP #440
2016-01-19 21:54:56 +00:00
jan.nijtmans
e6bd929886
now really set the "manifest" setting
2016-01-19 20:32:47 +00:00
jan.nijtmans
e0a3388465
Set versioned "manifest" setting
2016-01-19 20:28:46 +00:00
jan.nijtmans
f3913010d0
merge trunk
2016-01-19 14:00:36 +00:00
jan.nijtmans
912208469b
Start implementing TCL_NO_DEPRECATED part of TIP #439
2016-01-19 13:57:35 +00:00
jan.nijtmans
06a80fa07a
Fix last bug (hopefully) in this branch, found by test-case safe-14.1
2016-01-19 10:38:04 +00:00
jan.nijtmans
4a1edbbc86
Merge trunk
2016-01-19 09:25:04 +00:00
jan.nijtmans
d2438fd3c5
Fix determination of TCL_WIN_VERSION for manifest: Didn't take the semantic version into account yet.
2016-01-06 13:16:09 +00:00
jan.nijtmans
78c3d98edf
Merge trunk.
...
If TCL_NO_DEPRECATED is defined, make all internal stub funcions MODULE_SCOPE
2016-01-06 11:46:58 +00:00
jan.nijtmans
024a5290d1
More 8.6 -> 8.7
2016-01-02 23:42:54 +00:00
jan.nijtmans
3072103385
merge trunk. Fix versioning on OSX
2016-01-02 21:41:08 +00:00
jan.nijtmans
dd81b3e791
Make symbols which are deprecated MODULE_SCOPE, if the flag TCL_NO_DEPRECATED is specified
2015-12-18 15:41:52 +00:00
jan.nijtmans
4a343bdb40
Merge trunk.
...
Fix configure scripts: dot should be part of TCL_PATCH_LEVEL
2015-12-15 13:22:53 +00:00
jan.nijtmans
7e3a1abc07
Bug in tclPkg.c, use semantic version in more places., but don't use "+" syntax yet.
2015-12-11 09:29:27 +00:00
jan.nijtmans
39069282e2
revert some unintentional changes
2015-12-11 08:51:52 +00:00
jan.nijtmans
494a069ca6
Experiments with [ http://semver.org/ |Semantic Versioning] in Tcl. (Don't look!)
2015-12-11 08:43:28 +00:00
jan.nijtmans
fad7a0e23d
merge trunk
2014-07-31 08:39:50 +00:00
jan.nijtmans
da7cc28446
Make sure the "sockettest" command is available even when running socket.test individually.
2014-07-18 10:00:52 +00:00
jan.nijtmans
e6e391530f
merge trunk
2014-07-18 07:32:43 +00:00
oehhar
a0256cda63
Replaced option "-unsupported1" by test command "testsocket debugflags" (thanks Donal, Donald).
2014-07-17 09:53:36 +00:00
oehhar
85daeb5e16
Robust async connect tests by temporarely switching off auto continuation. Ticket [13d3af3ad5]
2014-06-05 19:09:51 +00:00