dkf
a744556f14
merge main working branch
2014-02-02 15:08:40 +00:00
dkf
fd4bc0f106
compilation of [string is]
2014-02-02 14:43:48 +00:00
dkf
cca7f018e0
improve the disassembly
2014-02-02 14:42:12 +00:00
dkf
6597355ad8
Compile [string is] with character classes in a non-awful way. Needs more work to make resulting bytecode disassemble nicely.
2014-01-29 13:59:32 +00:00
dkf
f4549b8fc4
merge principal development branch
2014-01-25 09:02:30 +00:00
dkf
c9ae8d64d3
minor tidying up
2014-01-22 09:14:57 +00:00
dkf
7716fd3e46
[a90d9331bc]: must not crash when yieldto called in vanishing namespace
2014-01-22 09:07:45 +00:00
dkf
128e4211ae
implementation of [yieldto] in bytecode
2014-01-21 15:07:59 +00:00
dkf
88b2f7f06e
added compilation for [nextto]
2014-01-19 18:39:24 +00:00
dkf
12945e9a16
extend [string is] to booleans
2014-01-13 08:06:43 +00:00
dkf
2803a8a055
a different approach
2014-01-10 15:58:41 +00:00
dkf
29ae06c2d3
use compact form
2014-01-09 10:49:04 +00:00
dkf
8f95efa4cf
merge main working branch
2014-01-07 14:25:22 +00:00
dkf
cbc312324e
make function static once more; not needed outside of source file
2014-01-07 14:13:37 +00:00
dkf
03ecb591a6
reduce the overhead of NR-enabled TclOO [next]
2014-01-07 13:59:30 +00:00
dkf
6bb7b1e15d
factor out a common stanza
2014-01-05 17:31:38 +00:00
dkf
a2e12b4377
merge main working branch
2014-01-05 17:00:15 +00:00
dkf
6d9846f8c9
merge trunk
2014-01-05 16:57:05 +00:00
mig
666deab1ea
fix arraySet compiler to set -errorcode instead of -errorCode in return options
2014-01-05 15:01:52 +00:00
mig
bb9e19e6eb
skip the switch(result) on returning TCL_OK from a proc
2014-01-05 14:10:42 +00:00
mig
ea8a9ba071
reducing TEBCdata: pc and cleanup now passed in the NREcallback
2014-01-05 12:01:04 +00:00
dkf
430c9bc178
redevelop code to have more in common with the interpreted [string is] and to remove non-working types
2014-01-02 15:30:53 +00:00
jan.nijtmans
e7e7bafe96
merge-mark
2014-01-02 10:11:42 +00:00
dkf
9c349ce2e2
more fixes to instruction tracing; ensure all places that need DECACHE_STACK_INFO have it
2014-01-02 10:01:35 +00:00
dkf
e7f9c9c822
merge main working branch
2014-01-02 09:38:03 +00:00
dkf
e7d2bb4c60
merge main working branch
2014-01-02 09:35:43 +00:00
dkf
83fcae9bbe
implement TclOO's [next] in bytecode
2014-01-02 09:17:07 +00:00
dkf
d5961a83e0
merge main working branch; made opcode work by getting callback ordering right
2014-01-02 09:15:18 +00:00
dkf
9c6b83d5b1
merge trunk
2014-01-02 08:51:04 +00:00
dkf
8a115927af
... and more silly errors
2014-01-02 08:50:08 +00:00
dkf
68cab10668
merge trunk
2014-01-02 08:35:48 +00:00
dkf
c28c2d5b9a
oops...
2014-01-02 08:35:01 +00:00
dkf
78f85049ff
merge main working branch
2014-01-02 08:32:36 +00:00
dkf
a30f092ea3
merge trunk
2014-01-02 03:27:16 +00:00
dkf
4f13f826e4
more fixes to instruction tracing; ensure all places that need DECACHE_STACK_INFO have it. jan.nijtmans: Branch moved aside an hidden, so future bisects are not affected by this branch mistakes.
2014-01-02 03:10:43 +00:00
dkf
1c54736c0d
factor out a common peephole stanza
2014-01-01 16:19:14 +00:00
dkf
f9dd75e79c
another jump peephole, this time with string comparisons
2013-12-31 23:34:57 +00:00
dkf
d423ce0c06
more cleaning up of error-case instruction tracing
2013-12-31 17:28:16 +00:00
dkf
76b954ec41
merge trunk
2013-12-31 16:28:15 +00:00
dkf
c45f1130d1
more peephole optimizations in TEBC, and better instruction execution traces
2013-12-31 16:26:55 +00:00
mig
0891bbbcbb
clarify the resume sequence in TEBCresume; make checkInterp a local variable, remove it from the saved struct
2013-12-31 12:14:50 +00:00
dkf
05feb2c73f
merge trunk
2013-12-31 10:49:07 +00:00
dkf
0e49a49b8f
remove ill-advised change to assembler
...
What made sense for the compiler does not for the assembler, as that can (and does) build code blocks entirely out of order.
2013-12-31 10:47:19 +00:00
dkf
9daddcaad7
Now gets the stack depth about right, but still many test failures.
2013-12-31 10:37:31 +00:00
dgp
57dc79f34e
merge trunk
2013-12-30 16:36:12 +00:00
dkf
6799b19771
merge main working branch
2013-12-30 11:58:08 +00:00
dkf
413a0c2501
put the other definition of a trim set in the header file too
2013-12-30 11:56:54 +00:00
dkf
8a7b73aed2
merge main working branch
2013-12-30 11:44:34 +00:00
dkf
76007824cc
Factor out the definition of the default string trim set; define it once only.
2013-12-30 11:40:44 +00:00
dkf
db5995b2b8
merge main working branch
2013-12-30 10:24:20 +00:00
dkf
9083b5bf61
merge main working branch
2013-12-30 08:50:28 +00:00
dkf
7f1d218ef8
merge main working branch
2013-12-30 08:49:03 +00:00
dkf
4ad593f2bf
implement [namespace origin] in bytecode
2013-12-30 08:37:49 +00:00
dkf
cdacc33cbb
allow generation by assembler
2013-12-30 08:16:21 +00:00
dkf
f7157671ce
corrected comment
2013-12-30 08:12:52 +00:00
dkf
b004b21242
Improved general case of [string replace] implementation.
2013-12-29 18:49:20 +00:00
dkf
7319a7803b
precondition was wrong, and needed to flush part of the string/internal rep
2013-12-29 18:48:09 +00:00
dkf
7a36091c38
use the new instruction
2013-12-29 16:59:15 +00:00
dkf
4ee64245d2
completed instruction implementation
2013-12-28 17:21:39 +00:00
dkf
24707208d7
interim commit; not yet working
2013-12-24 18:57:46 +00:00
dkf
cbfb4c7624
merge trunk
2013-12-23 18:32:17 +00:00
mig
724d7b20d4
Added new tools for managing and verifying the stack depth during compilation. Used it in some spots in the compiler and in TclCompileCatchCommand.
2013-12-23 11:28:12 +00:00
mig
c339e59205
remove unnecessary messing around INST_CONTINUE and INST_BREAK: local continue/break are already converted to jumps, so that these are either caught or returned - in either case, the stacks are cleaned up properly by TEBC itself.
2013-12-22 14:11:46 +00:00
mig
9b9e35d814
remove duplicate statement in previous commit
2013-12-22 13:03:19 +00:00
mig
0065bfd6bc
fix stack counting bug in new catch compiler, commit 62a51cdb45.
2013-12-22 12:52:39 +00:00
mig
6bde9d5683
remove INST_TRY_CVT_TO_NUMERIC when it is known not be necessary (cherrypick from mig-optimize)
2013-12-20 21:59:28 +00:00
jan.nijtmans
f324306fb2
Add TclRegisterLiteral() to internal stub table (from "mig-optimize" branch, looks like a good idea anyway)
2013-12-19 14:35:50 +00:00
dgp
b23b38a551
[0b874c344d] Fix for nested coroutines ability to stitch together multiple
...
parts of the CmdFrame chain traversed by [info frame].
2013-12-18 18:23:20 +00:00
dgp
cd07187c44
merge trunk
2013-12-18 18:20:56 +00:00
dgp
b12d345ba7
Big simplification of the bug fix.
2013-12-18 18:09:09 +00:00
mig
7e06231c54
Making the optimizer pluggable by extensions
2013-12-18 16:06:22 +00:00
mig
1412caa12b
Making the optimizer pluggable by extensions; please review for committing to trunk
2013-12-18 15:34:39 +00:00
dgp
4994878d50
Factor out the level offsetting into a final pass. Let the first
...
pass of the "chain" operation just stitch things together and count levels.
2013-12-17 21:19:36 +00:00
dgp
fc27205f3f
Refactoring work on the "chain" operation.
2013-12-16 21:01:35 +00:00
dkf
27e8904ab4
Improve descriptions of character escapes and ranges in Tcl.n.
...
Improve output format handlers to cope with added escape for en-dashes.
2013-12-15 17:49:53 +00:00
dgp
0011796c30
Simplify the coding of the unchain operation.
2013-12-13 18:39:12 +00:00
dkf
f1a1245d74
simple compilation of [string replace]
2013-12-12 09:57:38 +00:00
dkf
03b5a36e45
merge trunk; document added instructions
2013-12-12 09:13:39 +00:00
dkf
19de6f5858
merge trunk
2013-12-12 08:09:45 +00:00
mig
7e2ce590ba
simplification of the catch compiler and new test
2013-12-11 16:46:38 +00:00
mig
3ad596b1a5
comments
2013-12-11 16:43:26 +00:00
mig
ac531cc463
comments
2013-12-11 16:33:21 +00:00
mig
e8186595e3
comments
2013-12-11 16:27:59 +00:00
mig
51c5c21dee
new test, and fix for bug
2013-12-11 15:55:28 +00:00
mig
411f830f50
simplify: remove the special case
2013-12-11 15:16:20 +00:00
mig
6f08bd3872
store options early: simplify compiler, reduce stack manipulations
2013-12-11 14:51:15 +00:00
mig
0cf62ad8a4
simplifying: drop early the evaled script
2013-12-11 13:49:20 +00:00
mig
6446b79fe2
fix stack computations for lmap
2013-12-10 12:05:06 +00:00
mig
1adbdd114b
new INST_LMAP_COLLECT, speeds up lmap and eliminates the need for a temp var
2013-12-10 11:38:17 +00:00
mig
2e16688b51
change NULL to INT2PTR(0), for clarity
2013-12-06 15:58:12 +00:00
mig
0c65e944bb
change NULL to INT2PTR(0), for clarity
2013-12-06 14:29:49 +00:00
mig
0e8f545071
merge trunk
2013-12-06 14:20:13 +00:00
jan.nijtmans
b737753dbb
Oops, wrong macro.
2013-12-06 10:17:58 +00:00
jan.nijtmans
43f960c3de
Introducing a new union member in Tcl_Obj is not a good idea in a patch release, especially using "long".
...
Better allow iterNum and iterMax to grow to ssize_t (or size_t) in Tcl 9 (or 8.x, why not?).
Usage of "long" in public API causes interoperability problems between Cygwin64 and Win64 (probably no-one cares except me).
2013-12-06 10:04:48 +00:00
dkf
2127f0af03
merge trunk
2013-12-06 09:33:14 +00:00
dkf
fd4b837586
Stop printing undefined values in disassembled code.
2013-12-06 09:28:45 +00:00
mig
e148764f60
3x speed improvement in foreach, via new compiler and opcodes. The old version remains for old .tbc sake, but is unused in the core.
2013-12-06 05:24:07 +00:00
mig
bd2bdc1904
adapted the array-set compiler to use the new foreach opcodes
2013-12-06 01:07:10 +00:00
mig
e839a385d8
tighter mem management in array-set compiler
2013-12-06 00:16:07 +00:00
mig
74ce54a69d
tighter mem management
2013-12-06 00:02:16 +00:00
dgp
a92abd2be9
Draft fix for Bug 0b874c344d. Includes test.
2013-12-05 20:45:45 +00:00
mig
b195b45848
add comments on INST_FOREACH_*
2013-12-05 17:18:54 +00:00
mig
d4c2352c27
add comments on field "misuse"
2013-12-05 16:01:16 +00:00
mig
fe466d7e44
New compiler and bytecodes for foreach and lmap: 70% faster
...
* speed as measured by http://wiki.tcl.tk/39021 : runs in <1/3 the time
* still need to adapt array-set to use this
* assemble.test-16.5 or 16.6 bombs in a purify/symbols build (?)
* removing the old opcodes would force recompilation of old .tbc files or adaptation of tbcload
2013-12-05 15:15:23 +00:00
dkf
f0e61b3c22
[a122627849] Improve stack trace from parray on not-array.
2013-11-24 18:35:01 +00:00
dkf
01b92615b5
[a122627849] Improve stack trace from parray on not-array.
2013-11-24 18:34:16 +00:00
jan.nijtmans
0e5086f719
revert accidental part of previous commit
2013-11-22 13:21:52 +00:00
jan.nijtmans
43ee8fffc8
Cygwin: Fix conflicting definition with _mingw_stat64.h, if included together with <tcl.h>
2013-11-22 13:17:43 +00:00
jan.nijtmans
cec233a888
Cygwin: Fix conflicting definition with _mingw_stat64.h, if included together with <tcl.h>
2013-11-22 13:16:21 +00:00
jan.nijtmans
dec33abc5a
Modify makefile.vc for Windows 8.1 support
2013-11-21 16:22:34 +00:00
jan.nijtmans
6a67104caf
Modify makefile.vc for Windows 8.1 support
2013-11-21 16:20:01 +00:00
jan.nijtmans
c82de03edf
Add support for Windows 8.1: See [ http://msdn.microsoft.com/en-us/library/windows/desktop/dn302074.aspx ]
2013-11-21 11:52:34 +00:00
jan.nijtmans
5709ed46ce
Add support for Windows 8.1: See [ http://msdn.microsoft.com/en-us/library/windows/desktop/dn302074.aspx ]
2013-11-21 11:43:00 +00:00
jan.nijtmans
c8f1a349c0
The only relyable way of changing environment variables to uppercase (e.g. env(ComSpec) to env(COMSPEC)) is unsetting the old one first. Long-standing bug, exposed by [219226].
2013-11-21 09:24:59 +00:00
jan.nijtmans
b89b27df42
The only relyable way of changing environment variables to uppercase (e.g. env(ComSpec) to env(COMSPEC)) is unsetting the old one first. Long-standing bug, exposed by [219226].
2013-11-21 09:18:04 +00:00
jan.nijtmans
d34df50ace
Safer clean-up of environment variables: Do removal after insertions -> tcltest 2.3.7
2013-11-20 16:06:35 +00:00
jan.nijtmans
8422ebbd58
Safer clean-up of environment variables: Do removal after insertions -> tcltest 2.3.7
2013-11-20 16:04:43 +00:00
jan.nijtmans
6df3935a96
Starting with Windows 8 DSK, GetVersionExA is deprecated
2013-11-20 14:40:38 +00:00
jan.nijtmans
26ecd5e219
Starting with Windows 8 DSK, GetVersionExA is deprecated
2013-11-20 14:38:08 +00:00
jan.nijtmans
153e7dd764
Fix env-5.1 test-case on Cygwin (and probably other platforms which don't have iso8859-1 as system-encoding)
2013-11-20 12:58:35 +00:00
jan.nijtmans
3d8b62339c
... and don't break env-5.3 and env-5.5 test-cases.
2013-11-20 11:34:29 +00:00
jan.nijtmans
4043a96088
Bug Fix: EnvTraceProc() MUST always return NULL to indicate success.
2013-11-20 11:20:32 +00:00
dkf
cdc8943683
merge trunk
2013-11-19 13:02:05 +00:00
jan.nijtmans
065d2c77e4
Some formatting
2013-11-19 11:50:03 +00:00
jan.nijtmans
2d9f60b950
Cygwin: Instead of checking whether the win32 part is configured properly, just configure it when needed.
...
Always build the stub library first (and - on Cygwin - configure win32 properly just before building the stub library)
2013-11-19 09:47:47 +00:00
jan.nijtmans
ca48321a28
Revert [5215b8740c] (Enh [2959069]), as it turns out that -fvisibility=hidden only affects definitions and not declarations.
...
Therefore explicitely declaring each MODULE_SCOPE function as __attribute__((__visibility__("hidden")) is much better.
Suggested by Stuart Cassoff (Thanks!).
2013-11-19 09:09:42 +00:00
jan.nijtmans
36434499c3
Cygwin: Instead of checking whether the win32 part is configured properly, just configure it when needed.
...
Always build the stub library first (and - on Cygwin - configure win32 properly just before building the stub library)
2013-11-19 08:23:05 +00:00
max
bb220ac0ad
Revert [3c0b0bbda6]. If this really is a problem, it needs to get fixed by other means than covering behind void pointers.
2013-11-18 13:32:30 +00:00
jan.nijtmans
317c7c6991
Eliminate some redundant Tcl_GetErrno() calls.
2013-11-18 11:00:51 +00:00
jan.nijtmans
114f20490f
Fix [e832d2b08]: unnecessary code in Tcl_SetMaxBlockTime.
2013-11-16 21:06:46 +00:00
jan.nijtmans
8b83c2b467
Fix [e832d2b08]: unnecessary code in Tcl_SetMaxBlockTime.
2013-11-16 21:05:38 +00:00
jan.nijtmans
8feecdc04e
Map WSAEWOULDBLOCK to EWOULDBLOCK. Suggested by Reinhard Max.
2013-11-16 20:33:17 +00:00
max
6529091343
Don't leak getaddrinfo() results
2013-11-15 16:13:53 +00:00
dkf
1be1a5dfa4
merge trunk
2013-11-14 10:25:33 +00:00
dkf
695df45b40
Grammar check...
2013-11-12 15:47:21 +00:00
dkf
dba0465748
[528717] Slight rewording to clarify what the evaluation steps are.
2013-11-12 15:43:55 +00:00
max
4de413a551
socket-14.6 only makes sense where both, IPv4 and IPv6 are supported.
2013-11-12 13:12:21 +00:00
max
50b02bc49a
Fix [5425f2c082]: [fconfigure -error] breaks the background processing of a pending [socket -async].
2013-11-12 11:45:04 +00:00
jan.nijtmans
47d3e9dbac
Fix [426679ef7d]: Having man.macros after .TH breaks rendering on OpenBSD and possibly others.
2013-11-05 12:39:47 +00:00
jan.nijtmans
edd7296583
Fix [426679ef7d]: Having man.macros after .TH breaks rendering on OpenBSD and possibly others.
2013-11-05 12:36:17 +00:00
jan.nijtmans
dd3a00dac4
Put extern "C" guards around all stub table struct definitions, so it is usable for C++ compilers as well without the danger of modifying the calling convention.
...
For tclDecls.h and tclOODecls.h it was no problem, because tcl.h and tclOO.h already contain those guards. But for the other *Decls.h files (e.g. tclTomMathDecls.h) it was not correct.
2013-11-04 10:13:59 +00:00
jan.nijtmans
010943474b
Put extern "C" guards around all stub table struct definitions, so it is usable for C++ compilers as well without the danger of modifying the calling convention.
...
For tclDecls.h it was no problem, because tcl.h already contains those guards. But for the other *Decls.h files (e.g. tclTomMathDecls.h) it was not correct.
2013-11-04 10:02:58 +00:00
jan.nijtmans
9e746d7f58
Windows dll's should be executable.
2013-10-31 11:44:37 +00:00
dkf
efa791f58b
merge trunk
2013-10-29 20:08:41 +00:00
dkf
bc84019495
Now do [string toupper], [string tolower] and [string totitle]. Only handles the no-indices case; that's the only case anyone actually commonly uses.
2013-10-29 20:07:56 +00:00
jan.nijtmans
89c02b35e1
Workaround for [414d10346b]: tcl 8.5.15/8.6.1(threaded build) hangs in exec on HP-UX
2013-10-29 08:17:19 +00:00
jan.nijtmans
71bc6d6f0a
Workaround for [414d10346b]: tcl 8.5.15/8.6.1(threaded build) hangs in exec on HP-UX
2013-10-29 08:15:36 +00:00
jan.nijtmans
31d8fbb925
Don't fix eol-style for Makefile.in in "make dist", if the file system is case-insensitive/case-preserving.
2013-10-28 10:57:25 +00:00
jan.nijtmans
c4047c81e6
Bump tcltest version to 2.3.6 (should have been done just before the 8.5.15 release, just as in Tcl 8.6.1).
...
Don't fix eol-style for Makefile.in in "make dist", if the file system is case-insensitive/case-preserving.
2013-10-28 10:55:37 +00:00
dkf
b5a083c5f4
[01b77111e5]: Small fixes relating to this bug. In particular, the package name
...
mapping was not being distributed, and there were some small problems with what
the mappings were and how they were applied. Also prevented external URLs from
ending with a '.'; that's vanishingly rare...
2013-10-28 09:23:30 +00:00
dkf
504122c70e
merge trunk
2013-10-27 08:32:38 +00:00
dkf
fee9da8b41
[53a917d6c9]: Correction to macro for determining how to deprecate things.
...
Thanks to Raphael Kubo da Costa <rakuco@FreeBSD.org > for the patch.
2013-10-27 08:28:43 +00:00
dkf
fad447d516
Take advantage of new concatenation opcode.
2013-10-26 09:41:31 +00:00
dkf
437c149fe1
merge
2013-10-26 08:27:34 +00:00
dkf
9cc416d585
General [concat] compilation.
2013-10-26 08:25:02 +00:00
dkf
f663a0f78d
Change name of instruction to make way for future changes.
2013-10-26 07:50:08 +00:00
jan.nijtmans
0b75dbad3d
Fix [3eb2ec1449]: Allow upper case scheme names in url. http -> 2.8.8
2013-10-25 13:08:04 +00:00
jan.nijtmans
216ade8493
Fix [3eb2ec1449]: Allow upper case scheme names in url. http -> 2.7.13
2013-10-25 12:57:19 +00:00
dkf
edff530f8d
First step in compiling [concat]: the trivial cases.
2013-10-24 07:21:14 +00:00
dgp
ffb2a3d9b4
merge trunk
2013-10-23 15:34:01 +00:00
dgp
c677a19c44
silence compiler warning
2013-10-23 15:32:58 +00:00
dkf
4b5edf953c
merge fix
2013-10-23 08:34:30 +00:00
dkf
cc5f831d90
Stack depth calculation correction.
2013-10-23 08:33:40 +00:00
dkf
01a1be21e0
Possible compilation of [eval].
2013-10-23 08:18:11 +00:00
dkf
905746921e
[3556215]: Made [scan] match [format] better in what it accepts as a format
...
string, by allowing uppercase %X, %E and %G.
2013-10-22 18:58:49 +00:00
dkf
383f020ee8
[3556215]: Made [scan] match [format] better in what it accepts as a format
...
string, by allowing uppercase %X, %E and %G.
2013-10-22 18:55:02 +00:00
dkf
054a071db5
merge fixes from trunk
2013-10-22 17:36:22 +00:00
dkf
2ffe17a9b3
Fix for assemble.test; problem was a total assumption failure caused by way that the assembler works.
2013-10-22 17:34:55 +00:00
dkf
fb7a292613
Fix problems in for.test
2013-10-22 14:29:03 +00:00
dkf
345c194b8e
corrected trace printing
2013-10-22 09:18:19 +00:00
dgp
7a42d12716
silence compiler warnings
2013-10-21 14:35:02 +00:00
dkf
e1e7fafd59
merge trunk
2013-10-20 18:44:22 +00:00
dkf
8d4b93ccb7
[2835313] Ensure correct stack balance when break and continue exceptions are about: the hard cases with potential concealed exception generation.
2013-10-20 18:15:08 +00:00
dkf
d9096d1ada
And the last bits that need fixing; the code is still less efficient than desired but should now not crash.
2013-10-20 18:11:35 +00:00
dkf
fc106439d4
Fix handling of 'invokeExpanded' and start to do 'returnStk'.
2013-10-19 14:11:28 +00:00
dkf
c0d3a447bc
Added missing exception range finalize.
2013-10-19 12:29:06 +00:00
dkf
0981d85b0c
Improve coverage of [error] compilation.
2013-10-19 11:20:46 +00:00
dkf
443ca84a71
Tackle evalStk by reusing existing machinery.
2013-10-18 07:08:46 +00:00
jan.nijtmans
c10d93603c
Fix execute permission on many files which shouldn't have it.
2013-10-17 09:40:27 +00:00
jan.nijtmans
edbfaa468e
Fix execute permission on many files which shouldn't have it.
2013-10-17 09:28:11 +00:00
jan.nijtmans
2d9a87e3f1
-I${BUILD_DIR}/.. doesn't work when BUILD_DIR != "unix".
...
Reported by Matthias Kraft
2013-10-15 21:09:19 +00:00
dkf
2aaf426036
Do jump generation at places where INST_RETURN_IMM might occur.
2013-10-15 00:27:56 +00:00
jan.nijtmans
d6d11c65a3
Tcl_SetResult -> Tcl_SetObjResult in two places (for Cygwin64 only).
2013-10-14 08:34:48 +00:00
jan.nijtmans
87660da586
Fix comment in tclOO.decls: tclOOStubLib.c is not generated by "make genstubs".
...
In pkgooa.c, check whether the internal TclOO stub table is initialized correctly as well, some internal simplifications and improved comments.
2013-10-14 08:11:59 +00:00
dkf
e15b769c9d
Added the tests I want to pass...
2013-10-13 13:57:27 +00:00
dkf
d197994bd2
update comments
2013-10-13 13:34:01 +00:00
dkf
19e7a90783
Stop crashing in interactive testing. (The unknown and history mechanisms tend
...
to exercise some parts of the bytecode compiler very well.)
2013-10-13 12:09:22 +00:00
jan.nijtmans
9ad995c1bb
Allow loading of pkgooa.so in Tcl 8.5 for (regression) test purposes.
...
Better error messages in stead of crashes in some (hypothetical) error situations.
2013-10-13 10:45:08 +00:00
jan.nijtmans
31d188239f
Even though TCLOO_PATCHLEVEL is equal to TCLOO_VERSION, using "patchlevel" is more appropriate in those two places.
2013-10-11 10:26:35 +00:00
dkf
976d7cab2f
[98c8b3ec12] Use constraint to work around failing test; it's just a bug in the
...
underlying library, and one that appears fixed in later versions. Not our fault
if some OSes don't update. (It's also in a very esoteric spot.)
2013-10-10 21:24:15 +00:00
jan.nijtmans
74f3e06000
Fix for bug [f51efe99a7]: MinGW build fails on current checkin. And a new test-case which makes the problem visible on UNIX as well.
2013-10-10 14:13:51 +00:00
jan.nijtmans
f4c238d6a7
Update to Unicode 6.3 tables
2013-10-09 22:03:28 +00:00
jan.nijtmans
9d1312440e
Update to Unicode 6.3 tables
2013-10-09 21:57:26 +00:00
dkf
daab595dea
Working towards better handling of stack balance with break and continue exceptions.
2013-10-08 09:02:50 +00:00
jan.nijtmans
f86d726f85
Fix for [d4e464ae48]: tcl 8.5.15/8.6.1 breaks python make check on darwin
2013-10-07 14:25:21 +00:00
jan.nijtmans
3ad87b0a02
Fix for [d4e464ae48]: tcl 8.5.15/8.6.1 breaks python make check on darwin
2013-10-07 14:23:00 +00:00
jan.nijtmans
c83af8f8d4
First attempt to fix bug [d4e464ae48]: tcl 8.5.15/8.61 breaks python make check on darwin
2013-10-06 19:27:50 +00:00
dkf
d6e62aeb84
[3381085] Improved way of detecting what version of the documentation to build.
...
Set the HTML_VERSION environment variable to override the (sensible) default.
2013-10-06 19:17:20 +00:00
dkf
a1ae407099
Factor out some knowledge of immediate index encoding.
2013-10-06 13:21:10 +00:00
Kevin B Kenny
eb7a25fe2b
mark merge
2013-10-05 16:30:16 +00:00
Kevin B Kenny
560c2dcbe1
Advance to tzdata2013g
2013-10-05 16:28:52 +00:00
Kevin B Kenny
7413854f34
Advance to tzdata2013g
2013-10-05 16:22:16 +00:00
dkf
e1e4f33ee4
merge trunk
2013-10-05 13:58:48 +00:00
dkf
d9b2d9628a
Added 'linsert' compiler. Factored out constant list index parser.
2013-10-05 13:53:30 +00:00
dkf
28552e2e35
Added missing documentation. Corrected result of Tcl_OOInitStubs in non-stub case.
2013-10-04 13:12:22 +00:00
jan.nijtmans
c3651154a7
When compiling with MSVC++, no longer link the stub library with msvcrt??.dll.
...
This way, workarounds in extensions like [http://core.tcl.tk/itcl/info/a961f0729c ] are no longer necessary.
2013-10-03 20:41:03 +00:00
jan.nijtmans
73b02508fa
When compiling with MSVC++, no longer link the stub library with msvcrt??.dll.
...
This way, workarounds in extensions like [http://core.tcl.tk/itcl/info/a961f0729c ] are no longer necessary.
2013-10-03 15:17:43 +00:00
dkf
7fc9ecd5ab
cleaner and faster 'string trim'
2013-10-03 13:32:06 +00:00
dkf
638b28b372
merge trunk
2013-10-03 08:54:01 +00:00
dkf
4759be8760
minor: whitespace correction (my bad!)
2013-10-02 14:35:30 +00:00
dkf
4b54ec077b
neater
2013-10-02 13:16:10 +00:00
dkf
76ca8e7008
silence warnings with clang
2013-10-02 13:14:29 +00:00
jan.nijtmans
31d38b0701
Fix compilation of Itcl and Tdbc
2013-10-02 10:30:19 +00:00
dkf
e104cccd94
Turn Tcl_OOInitStubs into a no-op in non-stub-enabled usage.
2013-10-02 10:01:50 +00:00
dkf
8789461a94
Fix TclOO API export rules.
2013-10-02 09:41:01 +00:00
dkf
066dd2cb10
Expand subset of lreplace functionality that is compiled.
2013-10-02 08:46:29 +00:00
jan.nijtmans
ec1dceef35
Fix compilation with latest MinGW-w64 version 3.0: Conflict on EXCEPTION_REGISTRATION typedef, which means something completely different in MinGW-w64.
2013-10-02 08:08:10 +00:00
jan.nijtmans
5e1eaa44bc
Fix compilation with latest MinGW-w64 version 3.0: Conflict on EXCEPTION_REGISTRATION typedef, which means something completely different in MinGW-w64.
2013-10-02 07:58:50 +00:00
jan.nijtmans
a403e2663e
Disable command line globbing on MinGW compiles: this saves startup time, since the result of the glob is not used anywhere.
2013-09-30 14:07:20 +00:00
jan.nijtmans
c5f68dde5c
Disable command line globbing on MinGW compiles: this saves startup time, since the result of the glob is not used anywhere.
2013-09-30 14:03:56 +00:00
jan.nijtmans
868c2951dc
Restore copyright assignments and some improved comments in tclOO.decls: previous commit was a blind revert of [371bcd0714], but those changes should not have been reverted.
2013-09-30 09:38:49 +00:00
jan.nijtmans
e438509c68
Fix [f51efe99a7] by reverting [371bcd0714]
2013-09-30 09:03:20 +00:00
dkf
93595c68aa
First attempt at [string trim] compilation.
2013-09-30 03:00:06 +00:00
dkf
324cc442eb
merge trunk
2013-09-30 01:05:48 +00:00
dkf
4f19f86513
typo; spotted by stu
2013-09-28 22:52:11 +00:00
dkf
fd38147f32
[dfc08326e3]: Corrected symbol export for TclOO to match Tcl so things work as
...
expected in a static build.
2013-09-28 21:10:22 +00:00
dgp
ce33f01bf1
Fix test source-4.1
2013-09-27 17:33:17 +00:00
dgp
bfb7ea0e46
merge 8.5
2013-09-27 16:10:43 +00:00
dgp
694bd3ba73
Merge forward new test, marked as knownBug, so other merges are no longer held back.
2013-09-27 15:34:09 +00:00
dkf
067ef1dcea
[219226]: Rewrote how ::env is synchronized to the environment so it no longer
...
smashes the array or its elements flat, This affects traces on env, links to
env, and iterations over env: it makes them work as naïvely expected.
2013-09-27 10:29:43 +00:00
jan.nijtmans
878c0cff52
Cherrypick [87d1313df3] from trunk:
...
Workaround for [http://sourceforge.net/p/mingw/bugs/2065/ |MinGW bug #2065 ].
Both MinGW and MinGW-w64 (32-bit) are affected.
Even though Win64 is not affected, adding -static-libgcc doesn't harm there, and we don't want to distrubute additional dll's with MinGW-compiled Tcl anyway.
2013-09-27 09:35:05 +00:00
jan.nijtmans
9bdcf8e201
Workaround for [ http://sourceforge.net/p/mingw/bugs/2065/ |MinGW bug #2065 ].
...
Both MinGW and MinGW-w64 (32-bit) are affected.
Even though Win64 is not affected, adding -static-libgcc doesn't harm there, and we don't want to distrubute additional dll's with MinGW-compiled Tcl anyway.
2013-09-27 09:18:36 +00:00
jan.nijtmans
09a4760ba3
Tcl_SetResult -> Tcl_SetObjResult
2013-09-26 14:27:37 +00:00
dkf
ce9b84204c
[d614d63989] Ensure that there are no trailing colons as that causes chaos when a deleteProc is specified.
2013-09-25 22:54:29 +00:00
dgp
e929b91222
Test demonstrating need for "adjust" manipulation in TclSubstTokens.
2013-09-25 16:39:26 +00:00
dgp
1d119413f6
revert mistaken commit of experiment
2013-09-23 12:18:45 +00:00
jan.nijtmans
1fce20754c
workaround for mingw bug [ http://comments.gmane.org/gmane.comp.gnu.mingw.user/41724 ]
2013-09-23 11:27:47 +00:00
jan.nijtmans
96fec1a88c
workaround for mingw bug [ http://comments.gmane.org/gmane.comp.gnu.mingw.user/41724 ]
2013-09-23 11:12:12 +00:00
jan.nijtmans
9e6b54e433
Make sure that panic's during finalization are handled by the custom panicproc not by the default panicproc, because stderr might not be available.
...
When the default panicproc is in use, this doesn't make any difference.
2013-09-20 09:11:51 +00:00
dgp
39fcdc3c6e
merge release
2013-09-20 05:28:59 +00:00
dkf
1479c62f1c
[3970f54c4e]: Improved fix that is more tolerant of a single variable varname.
2013-09-19 22:37:06 +00:00
dgp
54a81d4f0e
merge trunk
2013-09-19 20:07:41 +00:00
dkf
f95a5e7c82
[3970f54c4e]: Corrected regression in argument order processing in [unset].
2013-09-19 19:37:05 +00:00
dgp
5285fe3ede
merge trunk; update changes
2013-09-19 19:10:47 +00:00
dgp
8e1f9e82da
comment
2013-09-19 19:02:42 +00:00
dgp
fbac621bfc
Line numbers wrong in compiled [unset].
2013-09-19 18:53:01 +00:00
dgp
3cc058aa46
Line numbers wrong in compiled [dict with].
2013-09-19 17:21:41 +00:00
dgp
3e3649a18e
Line numbers wrong in compiled [dict exists].
2013-09-19 17:01:58 +00:00
dgp
d35d4b2c53
Line numbers wrong in compiled [global] and [variable].
2013-09-19 16:41:04 +00:00
dgp
c91c7b7cf1
Line numbers wrong in compiled [global] and [variable].
2013-09-19 16:33:36 +00:00
dgp
b4a00d3ac5
Line numbers wrong in compiled [namespace upvar].
2013-09-19 16:11:20 +00:00
dgp
bfcb6b40d2
renumber tests for branch merge
2013-09-19 16:06:53 +00:00
dgp
2440231062
Line numbers wrong in compiled [namespace upvar].
2013-09-19 16:04:48 +00:00
dgp
0f1e352369
Line numbers wrong in compiled [upvar].
2013-09-19 15:57:38 +00:00
dgp
aed9fbb19c
Line numbers wrong in compiled [upvar].
2013-09-19 15:44:21 +00:00
dgp
4551ca9b2c
Line numbers wrong in compiled [dict update].
2013-09-19 15:05:55 +00:00
dgp
e4dfb0d689
Line numbers wrong in compiled [dict update].
2013-09-19 15:04:47 +00:00
dgp
63e65ca6f1
Line numbers wrong in compiled [dict for].
2013-09-19 14:56:29 +00:00
dgp
7887926261
Line numbers wrong in compiled [dict for].
2013-09-19 14:55:05 +00:00
dgp
91eca443b7
Line numbers wrong in compiled [dict get].
2013-09-19 14:49:28 +00:00
dgp
cb5d76ed2b
Line numbers wrong in compiled [dict get].
2013-09-19 14:48:02 +00:00
dgp
10372d985a
Stop segfault due to OBOE in CompileWord() calls in [dict incr] compiler.
2013-09-19 14:22:37 +00:00
dkf
5aee161167
[3606943]: Corrected description of method search order.
2013-09-19 14:21:21 +00:00
dgp
657b49a9d1
Stop segfault due to OBOE in CompileWord() calls in [dict incr] compiler.
2013-09-19 14:06:46 +00:00
dgp
bbf4d17089
[31661d2135] Plug memory leak.
2013-09-19 13:44:18 +00:00
dgp
4a2c3b6440
[31661d2135] Plug memory leak.
2013-09-19 13:39:40 +00:00
dgp
3f481feba6
Line numbers wrong in compiled [dict set].
2013-09-19 13:13:00 +00:00
dgp
1b0845930c
Line numbers wrong in compiled [dict set].
2013-09-19 13:06:06 +00:00
jan.nijtmans
50a0b81579
consistant use of capitals
2013-09-19 13:00:02 +00:00
jan.nijtmans
ad07565ec0
consistant use of capitals.
2013-09-19 12:37:13 +00:00
dgp
3b93da87b3
Merge test; bug already fixed in trunk.
2013-09-19 12:22:25 +00:00
dgp
a414da9341
Line numbers wrong in compiled foreach body.
2013-09-19 12:20:13 +00:00
dgp
345bd636d4
Stop segfault due to OBOE in CompileWord() calls in [dict lappend] compiler.
2013-09-19 04:27:11 +00:00
dgp
134ada8ff9
Stop segfault due to OBOE in CompileWord() calls in [dict lappend] compiler.
2013-09-19 04:20:53 +00:00
dgp
3204893f09
[3487626] knownBug tests dict-23.2 and dist-24.21 already fixed on trunk.
2013-09-19 04:11:01 +00:00
dgp
7bc81bcbb0
[3487626] Backport fix for knownBug test dict-23.2.
2013-09-19 04:03:57 +00:00
dgp
6d44125712
merge release
2013-09-18 19:13:31 +00:00
dkf
a2df72aecb
Bump TclOO version to 1.0.1
2013-09-18 12:32:26 +00:00
dgp
85c48e5e91
merge trunk; update changes
2013-09-17 12:17:40 +00:00
dkf
d4d8f3201a
[2152292]: Corrected implementation of uuencode handling to support line length
...
indicator bytes.
***POTENTIAL INCOMPATIBILITY***
Existing code that was using the old versions and working around the
limitations will now need to do far less. The -maxlen option now has strict
limits on the range of supported lengths; this is a limitation of the format
itself.
2013-09-17 09:24:41 +00:00
dkf
debbae5fd9
ChangeLog entry
2013-09-17 09:20:58 +00:00
dkf
649d0983f9
small improvements to the documentation
2013-09-17 09:13:40 +00:00
dgp
3146ffb96b
[7b32d8d13b] Insert missing field initialization.
2013-09-16 23:18:54 +00:00
dgp
f1a2117967
merge trunk; update changes
2013-09-16 18:59:14 +00:00
dkf
2044cba5ac
Refactor to remove unused flexibility.
2013-09-16 09:03:50 +00:00
dkf
eee6883d2a
Be careful: separator needs to be bytes, not internal-encoded.
2013-09-16 08:52:12 +00:00
jan.nijtmans
472fd0a636
Add back -wrapchar option to "binary encode uuencode"
2013-09-15 16:30:01 +00:00
dkf
bfe331b12a
And the decoder too.
2013-09-14 18:25:45 +00:00
jan.nijtmans
1092cae12e
Hm, this check doesn't really add anything.
2013-09-14 08:59:41 +00:00
jan.nijtmans
54850c7528
Add back -wrapchar option to "binary encode uuencode".
2013-09-14 08:51:23 +00:00
dkf
365b878745
[2152292] Corrected implementation of uuencoding.
2013-09-14 07:07:03 +00:00
dgp
08390e5c47
Added note to ChangeLog pointing to the fossil timeline for better logging.
2013-09-13 16:02:11 +00:00
dgp
a52254cce9
merge 8.5; update changes
2013-09-13 14:14:24 +00:00
dgp
5cc8523f8e
merge mark
2013-09-13 14:12:40 +00:00
dgp
bcb4faa32f
[bdd91c7e43] Stop crash due to error in execution stack memory management.
...
Thanks to azazel for the fix.
2013-09-13 14:09:09 +00:00
jan.nijtmans
fa65ef51ba
Suggested fix for [bdd91c7e43]: tclsh crashes in [interp delete]
2013-09-13 10:53:32 +00:00
dgp
e94119e59b
More macro use.
2013-09-13 03:33:43 +00:00
dgp
0440ab215b
Push fixup on the stack only when needed.
2013-09-12 19:27:48 +00:00
dgp
27c4d781f4
Swap the two fixups used when compiling the ternary operator.
...
Push them on the stack only when needed, and pop as soon as possible.
2013-09-12 19:21:20 +00:00
dgp
8fd5bbdc7c
Stop allocating JumpFixups for jumps that can never need any fixing up.
2013-09-12 17:42:36 +00:00
dgp
612c7a7d4a
Eliminate another surplus storage field. Make a(n ab)use of the existing
...
JumpFixup fields instead.
2013-09-11 05:07:52 +00:00
dgp
c4a5440ed1
Make use of the existing JumpFixup fields. Eliminate extra storage
...
field 'offset' in JumpList that we don't require.
2013-09-11 04:49:08 +00:00
dgp
822fd2d405
Stop the save and restore of currStackDepth. Just manage it correctly so
...
it doesn't need correcting.
2013-09-11 02:32:04 +00:00
dkf
e723893895
[3609693] Must strip the internal representation of procedure-like methods in
...
order to ensure that any bound references to instance variables are removed.
2013-09-09 14:12:05 +00:00
dkf
e0623615e3
[3609693] Must strip the internal representation of procedure-like methods in
...
order to ensure that any bound references to instance variables are removed.
2013-09-09 13:34:06 +00:00
dkf
b348c536f6
merge trunk
2013-09-09 12:34:33 +00:00
dkf
2b788a21e4
[3611643] Stop polluting the global namespace.
...
Refactor the index entry generation so it is done right, once.
Handle more of [namespace ensemble create]'s behavior.
2013-09-08 10:21:37 +00:00
dgp
a8bbc9486a
merge 8.5. update changes.
2013-09-08 03:26:12 +00:00
dgp
f089b1e4a1
[86ceb4e2b6] Improve reaction when multiple *tm files purport to offer the
...
same version of the same package. Prefer the file that comes first on the
tm path. Makes TCL*_TM_PATH variables more useful. Thanks to Gustaf Neumann
for the suggestion.
[a16752c252] Revise (partially revert) bug fix to stop crashes in buggy
tclcompiler.
2013-09-07 22:19:49 +00:00
dgp
bb55ca2e95
[86ceb4e2b6] Improve reaction when multiple *tm files purport to offer the
...
same version of the same package. Prefer the file that comes first on
the tm path. Makes TCL*_TM_PATH variables more useful. Thanks to
Gustaf Neumann for the suggestion.
2013-09-07 21:36:37 +00:00
dgp
0288a572d8
merge trunk
2013-09-07 21:19:47 +00:00
dgp
1ecf461e41
Partial revert of [a16752c252] bug fix to stop crashes in buggy tclcompiler.
2013-09-07 18:49:55 +00:00
dgp
97f9595151
Partial revert of [a16752c252] bug fix to stop crashes in buggy tclcompiler.
2013-09-05 17:21:41 +00:00
dgp
30710a181c
Use ne instead of [string length] for less shimmer risk.
2013-09-05 15:47:29 +00:00
dgp
493b04cbc0
Error in order of #include lines broke some windows builds.
2013-09-05 12:45:11 +00:00
dgp
8938dbcc25
Merge commits to the correct branch -- trunk
2013-09-05 12:35:24 +00:00
dgp
db738e7756
[010f4162ef] Repair effect of trace errors on -errorinfo and -errorstack.
2013-09-05 12:31:46 +00:00
dgp
c6bb98e763
Cleaned up test command trying to make valgrind happy.
2013-09-04 12:45:51 +00:00
dkf
c938932757
[98c8b3ec12] Make test fail in less catastrophic manner.
2013-09-04 09:36:22 +00:00
jan.nijtmans
9878106deb
Fix 3 trivial (possible) errors, discovered by covertity.com
2013-09-04 07:22:45 +00:00
dgp
4d70c5f1e1
doc fix exposed by make html
2013-09-03 18:50:08 +00:00
dgp
c5cad32cd6
make dist
2013-09-03 17:39:34 +00:00
dgp
6a3868f2cc
typo
2013-09-03 17:07:41 +00:00
dgp
3116380710
Favor timeline over ChangeLog
2013-09-03 16:47:50 +00:00
dgp
53dc4dcdee
Favor timeline over ChangeLog
2013-09-03 16:45:56 +00:00
dgp
4733e874fc
update changes
2013-09-03 16:04:30 +00:00
dgp
a313e78ffa
some missed changes
2013-09-03 16:04:06 +00:00
dgp
2c3dbea378
Add test and improve errorInfo.
2013-09-02 18:47:07 +00:00
dgp
8520e69f32
[010f4162ef] First step of fix on stammering errorstack. errorstack fixed.
...
errorinfo revision still under consideration.
2013-09-02 17:59:42 +00:00
jan.nijtmans
54223a5f7e
typo
2013-09-02 14:01:00 +00:00
dkf
22515fc47f
[b98fa55285]: Fix handling of whitespace at end of hex strings to decode.
2013-09-01 20:08:50 +00:00
dgp
8932701ae7
Bump version number to 8.6.1.
2013-08-30 22:04:12 +00:00
dgp
6b45d21b4b
Bump to tcltest 2.3.6 to account for changes since Tcl 8.6.0 release.
2013-08-30 21:57:26 +00:00
dgp
3adc645802
fix date
2013-08-30 14:31:06 +00:00
dgp
743ced9da3
changes
2013-08-30 14:16:05 +00:00
dgp
b9ef276505
Bump to 8.5.15 for release.
2013-08-29 20:08:04 +00:00
dgp
ebd7e8a86b
[2486550] NR-enable same-interp invokehidden. Also, reroute all objProc
...
invocation through the common routines of EvalObjvCore and Dispatch.
2013-08-29 19:19:32 +00:00
dgp
4096bf5d01
New internal eval flag value so that all TclNREvalObjv() callers that
...
pre-resolve command names can choose whether or not TclNREvalObjv() should
attempt to re-do the resolution from objv[0] when something goes wrong.
2013-08-29 17:59:36 +00:00
dgp
6dcfcb8be9
Rework the re-resolution after enter traces machinery with cleaner
...
separations and neater interfaces.
2013-08-28 18:05:07 +00:00
dgp
24cec35f7b
Clarfy and prettify influence of flag settings and command lookups.
2013-08-28 02:44:50 +00:00
dgp
367ade79ed
Tidy up indenting for clarity in refactoring.
2013-08-27 20:25:15 +00:00
dgp
e6af5d333b
Exceptions raised from enter traces take priority over re-resolution games.
2013-08-27 20:06:08 +00:00
dgp
24be1383da
Inline TEOV_RunEnterTraces() so its interface can be redesigned.
2013-08-27 20:03:57 +00:00
dgp
28384139ba
Add test for Bug 2486550.
2013-08-27 18:11:53 +00:00
dgp
e5b2f21fe9
merge trunk
2013-08-26 18:32:55 +00:00
dkf
ccbbb5d288
Unbreak doc; the apropos index entry *must* be one line.
...
(This is an external constraint forced by the requirement to fit into the standard Unix manual system.)
2013-08-24 09:42:43 +00:00
dgp
2d27ea7088
merge trunk
2013-08-23 16:33:34 +00:00
dgp
a33a94ec85
Make sure all Tcl_NR*Eval*() routines do a schedule only. No errors raised.
2013-08-23 16:23:47 +00:00
mig
f36f801d24
fix NRE docs
2013-08-23 13:08:15 +00:00
dgp
841e525556
merge trunk
2013-08-23 12:04:12 +00:00
dgp
55b0c17067
Remove complications that no longer server any required purpose.
2013-08-23 05:59:48 +00:00
dgp
993b39c491
merge trunk
2013-08-22 20:41:02 +00:00
dgp
272b2008ad
compiler warning
2013-08-22 20:34:30 +00:00
dgp
f7cf1b2bae
Make Dispatch() the single point for calling a Tcl_ObjCmdProc, and attach
...
the DTRACE machinery there (one place, not two).
2013-08-22 20:21:15 +00:00
dgp
8173bccfd9
Remove assertion that is not true in some circumstances (--enable-dtrace).
2013-08-22 16:13:29 +00:00
dgp
a5b75dfa9a
More coroutine tests.
2013-08-22 13:01:31 +00:00
dkf
52b97dd00b
Correction to documentation
2013-08-22 08:07:33 +00:00
dgp
987eb68977
merge trunk
2013-08-22 01:13:13 +00:00
dgp
f632850eb8
[8ff0cb9fe1] Make Tcl_NREvalObj() (and friends) behave as documented, by
...
only scheduling evaluation and not doing any of it until the caller routine
returns. This fixes some serious errors in [coroutine] too.
2013-08-21 19:30:01 +00:00
dgp
ed72e77b7d
Tidy the code and add a test.
2013-08-21 19:18:28 +00:00
dgp
83d427e824
Don't allocate memory until you know you're going to use it and arrange for
...
it to be freed. Leak!
2013-08-21 19:00:17 +00:00
dgp
f18c1126d5
Don't use automatic storage to hold the invocation words of oo::define.
...
That practice doesn't agree with NRE execution.
2013-08-21 18:27:23 +00:00
dgp
62e1b3723e
merge trunk
2013-08-21 13:34:19 +00:00
dkf
4d6aaa2e8b
[3612422]: Refer to correct part of tclvars(n) rather than page itself.
2013-08-21 10:25:18 +00:00
dkf
6b6685b8fd
define tests for this bug; no fix yet
2013-08-21 09:35:50 +00:00
dgp
4bf79aef9b
Push out a trial patch for more eyes to see.
2013-08-20 14:00:05 +00:00
dgp
066a4b7b35
Revise execution trace handling to take account of the new reality in
...
Tcl 8.6 that callers can pre-resolve a cmdPtr for us. In that case
a re-resolution in the form of another command name lookup isn't the right
thing.
2013-08-19 16:34:10 +00:00
dgp
a6f2dee7fb
Testing doing away with the NRRunObjProc routine, which looks like a
...
useless extra bounce on the NRE trampoline.
Normal testing has no problem with it, but debug-enabled testing
triggers an assert failure.
Either it would be good to have a normal test that fails in the conditions
of the assert failure, or it would be good to discover the assert is
asserting something not actually required, and then make the purge.
2013-08-19 15:22:15 +00:00
dgp
a7e397556b
merge trunk
2013-08-15 20:00:34 +00:00
dgp
c084f0ea75
Make sure the errors raised by execution traces become errors raised by the
...
traced command, as documented. Deletion of the traced command was supressing
that.
2013-08-15 19:59:32 +00:00
dgp
5cdaf0e05b
Make sure the errors raised by execution traces become errors raised by
...
the traced command, as documented. Deletion of the traced command was
supressing that.
2013-08-15 19:55:26 +00:00
dgp
200e0742b8
merge trunk
2013-08-15 17:43:39 +00:00
dgp
fe60431f53
The fix for [3610404] leads to a simplification in the implementation of
...
forward methods.
2013-08-15 14:05:02 +00:00
dgp
160ba1cb95
merge trunk
2013-08-14 20:31:16 +00:00
dgp
058f0df44d
Add several tests to check consistency of stack traces.
2013-08-14 20:20:11 +00:00
dgp
ff926f2b01
merge trunk
2013-08-14 19:07:01 +00:00
dgp
bee5c35f44
[3610404] Re-resolution of command after enter traces invalidate epoch.
...
Make sure context is such that correct resolution happens.
2013-08-14 19:01:38 +00:00
dgp
8971b5cdea
merge trunk
2013-08-14 18:44:51 +00:00
dgp
b2e3f2fa04
merge trunk
2013-08-14 18:00:45 +00:00
dgp
0c1e275cdf
[a16752c252] Correct failure to call cmd deletion callbacks.
2013-08-14 17:07:00 +00:00
dgp
a2400fbe30
[a16752c252] Correct failure to call cmd deletion callbacks.
2013-08-14 17:02:41 +00:00
dgp
211f7d6466
Arrange for both execution traces and [info frame] to get their pre-subst
...
source strings from a common routine.
2013-08-14 12:43:22 +00:00
dgp
6dee5b3e07
Consolidate some helper routines.
2013-08-14 12:15:59 +00:00
dgp
9d1f38c3e3
Only schedule leave traces if enter traces complete successfully.
...
This avoids a memleak, and opens a data slot, so we can pass objc, objv
without the need to copy them into a list value.
2013-08-14 04:13:21 +00:00
dgp
33647e79c8
Use a new flag value TCL_EVAL_SOURCE_IN_FRAME passed in by callers to
...
determine whether the pre-subst source information in a CmdFrame is to
be used. This takes the place of numLevels cross checking, so that field
is removed. Routines are consolidated as well.
2013-08-12 20:00:14 +00:00
dgp
f440a6ef41
merge trunk
2013-08-12 15:52:28 +00:00
jan.nijtmans
c086de021c
Never guess non-existing timezone name "America/Brasilia" on Windows. Reported by Arnulf Wiedemann
2013-08-11 14:42:24 +00:00
jan.nijtmans
97eb71a629
Never guess non-existing timezone name "America/Brasilia" on Windows. Reported by Arnulf Wiedemann
2013-08-11 14:41:10 +00:00
dgp
e62b40c808
Arrange for both execution traces and [info frame] to get their pre-subst
...
source strings from a common routine, with care taken to reduce copying
by that routine.
2013-08-10 05:16:38 +00:00
dgp
234fb04984
Revised GetCommandSource() can (and thus should) return a normal zero
...
refcount value.
2013-08-09 16:48:30 +00:00
dgp
1b7d424507
Revise GetCommandSource() to return a normal Tcl_Obj value.
2013-08-07 20:27:30 +00:00
dgp
5797625e42
Give (objc, objv) their own ride from enter to leave traces.
2013-08-07 19:45:13 +00:00
dgp
987422a01f
Many simplifications to the TIP 280 machinery.
...
* Removed support for non-NULL invoker when TCL_EVAL_DIRECT requested.
* Eliminated TCL_EVAL_CTX eval flag.
* Removed Tcl_Preserve-ability of ContLineLoc pointers.
* Removed clLoc field of CompileEnv struct.
2013-08-07 17:11:21 +00:00
dgp
5f6b71f3f2
Remove Tcl_Preserve support for ContLineLoc values. It's not needed.
...
This allows the clLoc field of CompileEnv struct to go away too.
2013-08-07 16:44:03 +00:00
dgp
f6f0891fff
Test for TclContinuationsGet() usage, and simplifications.
2013-08-07 16:01:53 +00:00
dgp
27c5ada57e
Replace potentially memleak creating safety check of a "cannot happen"
...
condition with an assertion.
2013-08-07 14:41:46 +00:00
dgp
5f2f5b63c3
Add comment stating new limitation on Tcl(NR)EvalObjEx() interface.
2013-08-07 12:44:42 +00:00
dgp
59f7320bdd
All use of the evalFlag value TCL_EVAL_CTX is unused by the code and
...
unreachable by extensions. This checkin removes all the code supporting
that flag value.
The consequence is that all the calls to TclNREvalObjEx() and its callers
that are currently choosing not to pass the TCL_EVAL_DIRECT flag in when
they pass in a non-NULL invoker will no longer be free to change their
mind. That might be reason not to adopt this change.
2013-08-06 17:24:40 +00:00
dgp
00546e5e21
The value TCL_LOCATION_EVAL_LIST in the type field of a CmdFrame appears to
...
exist only for the sake of taking great pains to make sure that pure list
values remain pure list values.
The value of pure list values is no longer what it once was. For a long long
time now, any canonical list values have been equally good.
2013-08-06 16:41:41 +00:00
dgp
a63563bd9a
Add assertions that will guide and protect more discovery of dead code for elimination.
2013-08-06 16:20:59 +00:00
dgp
1d99884b08
Drop TCL_LOCATION_EVAL_LIST now that it is unused.
2013-08-06 13:30:36 +00:00
dgp
8bd533d76e
Eliminate the union that is no longer needed.
2013-08-06 13:20:36 +00:00
dgp
23d61a10c2
Revert the changes that went too far and broke things.
2013-08-06 13:08:54 +00:00
dgp
0ee8df700b
The value TCL_LOCATION_EVAL_LIST in the type field of a CmdFrame appears to
...
exist only for the sake of taking great pains to make sure that pure list
values remain pure list values.
The value of pure list values is no longer what it once was. For a long long
time now, any canonical list values have been equally good. This branch
is Work In Progress eliminating the complication of the additional type value.
Currently some minor botches are breaking execution tracing tests.
2013-08-06 04:15:16 +00:00
jan.nijtmans
50a950f2b1
Mark unixforkevent-1.1 nonPortable, until proven on more platforms.
...
Make sure that when testing for pthread_atfork the thread library is taken into account.
2013-08-05 22:00:58 +00:00
jan.nijtmans
c74640849e
Mark unixforkevent-1.1 nonPortable, until proven on more platforms.
2013-08-05 21:58:21 +00:00
dkf
861b34625c
[3611643fff]: Support TclOO in autoload mechanism.
2013-08-03 15:27:40 +00:00
dkf
0958b92b37
Deal with the elaborate rip-apart-a-metaclass case as well.
2013-08-02 20:19:44 +00:00
dkf
6d9ae4aa16
[9d61624b3d]: Stop crashes when emptying the superclass slot.
2013-08-02 14:58:58 +00:00
dgp
965128fe34
[1905562] [8d2c0da36d] Raise the recursion limits on regexps to allow
...
existing regexps "in the wild" to continue working with Tcl 8.6.
Latest example comes from DejaGnu.
2013-08-01 19:18:02 +00:00
jan.nijtmans
ebc5b27c8c
Tcl_InitNotifier: Bug [a0bc856dcd]. Start notifier thread again if we were forked, to solve Rivet bug 55153
2013-08-01 12:54:16 +00:00
jan.nijtmans
3916ce9d4c
Tcl_InitNotifier: Bug [a0bc856dcd].
...
Start notifier thread again if we were forked, to solve Rivet bug 55153
2013-08-01 12:38:04 +00:00
jan.nijtmans
4bd227bc12
Make sure that "string is space \u202f" will continue to return "1", even if in future Unicode this character (NARROW_NO_BREAK_SPACE) will cease to be a space. See: [ http://www.unicode.org/review/pri249/ ].
...
Don't hardcode "tclWinError.o" for Cygwin
2013-07-29 10:12:12 +00:00
jan.nijtmans
84e92af6dc
Make sure that "string is space \u202f" will continue to return "1", even if in future Unicode this character (NARROW_NO_BREAK_SPACE) will cease to be a space. See: [ http://www.unicode.org/review/pri249/ ]
2013-07-29 09:29:16 +00:00
dgp
15ca940ca7
Simplify AuxData access with a macro.
2013-07-27 20:29:42 +00:00
dgp
525bc7c9b5
[6585b21ca8] [regexp {(\w).*?\1} abb] failed to match. Thanks to Tom Lane for passing on the discovery in Postgres.
2013-07-26 13:24:19 +00:00
dgp
6adf3b8c6c
[6585b21ca8] [regexp {(\w).*?\1} abb] failed to match.
...
Thanks to Tom Lane for passing on the discovery in Postgres.
2013-07-26 13:21:30 +00:00
jan.nijtmans
3d14dd6bc9
Move test for pthread_atfork inside SC_ENABLE_THREADS
2013-07-26 09:20:28 +00:00
oehhar
41afeeec2b
Fixed test case variable clash with 'folder'
2013-07-25 17:20:02 +00:00
jan.nijtmans
623c1cbe5b
rebase
2013-07-25 14:25:47 +00:00
jan.nijtmans
60ef39d24a
Move test for pthread_atfork inside SC_ENABLE_THREADS
2013-07-25 14:24:39 +00:00
jan.nijtmans
889454ec06
Make sure that the notifierMutex and notifierCV in a forked child cannot block anything, even though the initialization of the Notifier Thread in the parent is not finished yet.
2013-07-25 08:29:56 +00:00
jan.nijtmans
752ab085d6
rebase
2013-07-25 07:02:59 +00:00
jan.nijtmans
c019848148
Put Cygwin's tclWinError.o in PLAT_OBJS, not in DL_OBJS
2013-07-25 06:59:08 +00:00
dgp
fd1c7c2fb3
Demonstrate and fix memory leak in Tcl_ParseVar().
2013-07-24 16:56:59 +00:00
dgp
8f2d19b951
Demonstrate and fix memory leak in Tcl_ParseVar().
2013-07-24 16:51:04 +00:00
dgp
f2bea640bb
Mark commands with potential to compile expansion arguments (as [list] does).
2013-07-24 13:58:35 +00:00
dgp
d818803502
more disabled code removal
2013-07-24 12:13:01 +00:00
dgp
e0437fdf58
Remove outdated, disabled code.
2013-07-23 20:11:00 +00:00
dgp
8163234efd
Remove outdated comment. Stack depths are well checked now.
2013-07-23 18:03:39 +00:00
dgp
f796ad762c
Stop checking stack depth in [catch] compiler.
...
Stack depth is checked in compiles of *all* Tcl commands/scripts/bodies
in debug builds already.
2013-07-23 18:01:36 +00:00
jan.nijtmans
0185dd6477
rebase
2013-07-23 09:54:05 +00:00
jan.nijtmans
07d10b8a58
Add "testfork" test command. Not used in any test-case yet
2013-07-23 09:27:59 +00:00
jan.nijtmans
bc28cd1ac8
Add "testfork" test command. Not used in any test-case yet
2013-07-23 09:07:21 +00:00
jan.nijtmans
9350513d16
Tcl_InitNotifier() call in TestforkObjCmd() is only necessary when pthread_atfork() is not available.
2013-07-22 11:11:10 +00:00
jan.nijtmans
4fb5d04b2f
Use pthread_atfork() when available.
2013-07-22 10:57:44 +00:00
jan.nijtmans
f287d8cb0f
Test-case should pass on Darwin or with non-threaded build as well.
2013-07-22 10:11:05 +00:00
jan.nijtmans
0c2e553e8f
Fix bug which hangs iocmd.tf-32.1
2013-07-22 10:10:00 +00:00
oehhar
915c6abe66
Test file tests/unixForkEvent.test added
2013-07-22 08:45:37 +00:00
jan.nijtmans
0070244914
Rebase to core-8-5-branch
...
Add "testfork" test command to be usable in testcase.
2013-07-21 14:52:57 +00:00
dgp
17ebc3cd20
Rewrite of the TclCompileScript() routine.
...
Primarily this breaks that large, rather convoluted routine into many
smaller more single-purpose routines for greater clarity. This also
permits more sharing of function components. Ensemble compiles now share
the same low level routines as top-level command compiles. This refactoring
should also have the benefit of easing merging between branches by better
locating patches according to what function or data structure they tweak.
Also in this checkin:
Minimized calls to Tcl_ResetResult() during compile.
Several commands compile their detected syntax errors into
bytecode that reports the syntax error.
Significant reform to the TIP 280 machinery, including elimination
of the litInfo hash table. Its function of finding the index
of a compiled command in a script from a pc value has been redone
using the codeDelta information already stored in ByteCode.
2013-07-18 20:27:01 +00:00
dgp
5e9e003379
[assemble] compile syntax error into bytecode reporting syntax error message.
2013-07-18 18:25:24 +00:00
dgp
2aed1acbd1
merge trunk
2013-07-18 15:42:54 +00:00
dgp
81a1a91361
[Bug 1c17fbba5d] Fix -errorinfo from syntax errors so that the error is
...
not obscured. Instead highlight it by making it the last character quoted.
2013-07-18 15:05:18 +00:00
oehhar
9a19e4cba0
Start notifier thread again if we were forked, to solve Rivet bug 55153 - RFE [a0bc856dcd]
2013-07-17 16:02:36 +00:00
dgp
c2d6c48dd9
Factor out the call to a compileProc into one place used by both ensemble
...
subcommand compiles and toplevel command compiles in TclCompileScript.
2013-07-17 13:57:23 +00:00
dgp
d383707870
Streamline the housekeeping on the operands of INST_START_CMD.
...
For example, do only incr on success, not incr on attempt + decr on error.
2013-07-16 20:48:37 +00:00
dgp
c33f97005c
Simplify the ensemble subcommand compile. There's no need to be
...
crafting synthetic Tcl_Parse and copying tokens. Some pointer shifts will do.
2013-07-16 17:21:12 +00:00
dgp
3f126895fb
Simplify arguments to TclContinuationsEnterDerived().
2013-07-16 14:52:33 +00:00
dgp
d848f30c45
Eliminate the litInfo table and all the code tending to its care and feeding.
...
The pc -> command index mapping function it provided can be achieved using
other data already in the ByteCode struct.
2013-07-16 14:07:41 +00:00
dgp
d860a2c3a4
Build CompileBasicNArgCommand on top of TclCompileInvocation.
2013-07-15 20:16:11 +00:00
dgp
009f2adf3d
merge trunk
2013-07-15 19:40:33 +00:00
dgp
5684ad8d94
Possible improvement in light of [86ceb4e2b6].
2013-07-15 19:09:59 +00:00
dgp
774c402365
Prefer CompileWord() over CompileTokens() when possible.
2013-07-15 17:07:51 +00:00
dgp
740d1811bc
Global replace: CompileBody() -> BODY().
2013-07-12 18:44:15 +00:00
dgp
451ab6927c
Tests demonstrating the need for the last two SetLineInformation() calls.
2013-07-12 16:25:51 +00:00
dgp
f302557ad5
Revise the CompileWord() and PushVarNameWord() macros to make explicit the
...
SetLineInformation() that's in each of them.
2013-07-11 23:19:14 +00:00
dgp
d061b31460
Have TclMakeEnsemble() set ENSEMBLE_COMPILE at creation, not as a separate
...
epoch-bumping step.
2013-07-11 17:06:35 +00:00
dgp
783aea7d3a
merge trunk
2013-07-11 04:12:01 +00:00
dgp
34c17bad36
Add a test for each call to SetLineInformation() demonstrating the need
...
for it to be there. Fixed bugs revealed by the new tests.
What's still missing are more tests demonstrating the need for other
SetLineInformation() calls that are not there yet. ;)
2013-07-11 04:07:39 +00:00
dgp
f0992177e4
Revert the revised macros used in developing the new tests.
2013-07-11 04:00:57 +00:00
dgp
6f4f296706
Add tests for the SetLineInformation() calls in tclEnsemble.c, and fix
...
the bugs around those calls exposed by the tests.
2013-07-11 03:48:40 +00:00
dgp
75bc23d59c
Add tests for SetLineInformation() calls in tclCompCmdsSZ.c as well as some
...
obvious refactoring improvements.
2013-07-10 20:33:45 +00:00
dgp
9d91a3db0b
Add tests for SetLineInformation() calls in tclCompCmdsGR.c.
2013-07-10 19:43:56 +00:00
dgp
1dc19d8370
Add tests for, and fix bugs in, the SetLineInformation() calls in tclCompCmds.c.
2013-07-10 19:34:55 +00:00
dgp
458197828b
merge trunk
2013-07-10 18:02:20 +00:00
dgp
c079ab076f
Fix for [86fb5ea28e]. Test will eventually merge in from tip280-test-coverage.
2013-07-10 17:58:45 +00:00
dgp
d69c39d52e
Next attempt. Appears to have uncovered a bug.
2013-07-10 16:43:01 +00:00
dgp
7a53c36e3a
First additional test. Remove dup macros in tclEnsemble.c.
2013-07-10 16:27:09 +00:00
dgp
ee74db1cbf
Disabling the SetLineInformation() macro entirely causes only 3 tests
...
in the test suite to fail. Restoring just 2 SetLineInformation() calls
fixes those failures. The need for all the other SLI() calls is not
demonstrated by any test. Without more complete test coverage, it is
difficult to confidently tweak the TIP 280 implementation without fear
that changes are introducing breakage.
2013-07-10 16:17:12 +00:00
dgp
1e62f5ac76
Remove the (now unused) wlineat arguments.
2013-07-10 03:28:37 +00:00
dgp
afad6ffbb4
Revise the litInfo table so that it gets built later (in TclInitByteCodeObj)
...
from a simpler store of data that can unwind.
2013-07-10 03:17:57 +00:00
dgp
d72d5f8b7a
Tentative Work In Progress unwinding TIP 280 line information.
2013-07-09 20:37:37 +00:00
dgp
c46c774126
Use the TokenAfter() macro.
2013-07-08 23:02:44 +00:00
dgp
ba3bf9b61f
Use TIP 280 macros.
2013-07-08 22:36:55 +00:00
dgp
82bddf4dca
merge trunk
2013-07-08 19:54:50 +00:00
dgp
e10479f3d7
Factor out compiling the Command literal.
2013-07-08 19:29:01 +00:00
jan.nijtmans
7183692271
Unbreak MSVC6 debug build (thanks Andreas Kupries!)
2013-07-08 18:56:13 +00:00
jan.nijtmans
b7fbf3c433
Unbreak MSVC6 debug build (thanks Andreas Kupries!)
2013-07-08 18:55:23 +00:00
dgp
c10c796a46
Plug memory leak; Break three compilation mechanisms into routines.
2013-07-08 18:08:01 +00:00
dgp
582824087d
Move TIP 280 and command extent housekeeping to the periphery.
2013-07-08 15:39:55 +00:00
dgp
da4296c06f
Defer expansion request detection as much as possible.
2013-07-08 15:24:56 +00:00
dgp
0dec640514
Consolidate the StartExpanding() calls.
2013-07-08 15:00:02 +00:00
dgp
d2b490f552
The routines StartExpanding() and EnterCmdWordData() are orthogonal, so it's
...
ok to reverse the order in which they are called.
2013-07-08 14:31:14 +00:00
dgp
4cfafc3002
merge trunk
2013-07-08 12:55:06 +00:00
jan.nijtmans
fb3fc7d5d3
Build stub objects with -DSTATIC_BUILD on all platforms. Only important on win32 (already done) and cygwin, on other platforms it should not have any effect.
2013-07-08 06:51:16 +00:00
jan.nijtmans
de31df63e7
Build stub objects with -DSTATIC_BUILD on all platforms. Only important on win32 (already done) and cygwin, on other platforms it should not have any effect.
2013-07-08 06:49:44 +00:00
jan.nijtmans
a7bebaafdb
merge-mark
2013-07-07 09:15:37 +00:00
stwo
bd6afa9af5
OpenBSD/m88k is now elf. Remove unneeded elf check.
2013-07-07 02:19:20 +00:00
stwo
c8629fcad6
OpenBSD/m88k is now elf. Remove unneeded elf check.
2013-07-07 02:11:57 +00:00
Kevin B Kenny
b52ba9ae90
Merge mark
2013-07-06 22:29:36 +00:00
Kevin B Kenny
a6fe3119b2
http://www.iana.org/time-zones/repository/releases/tzdata2013d.tar.gz
2013-07-06 22:24:52 +00:00
Kevin B Kenny
28bc2e5adf
http://www.iana.org/time-zones/repository/releases/tzdata2013d.tar.gz
2013-07-06 22:22:01 +00:00
dgp
191c6d2137
merge trunk
2013-07-05 19:56:12 +00:00
dgp
7eab500306
merge trunk
2013-07-05 19:54:56 +00:00
jan.nijtmans
421cc90918
Use X11/Xlib.h for checking where X11 can be found in stead of X11/XIntrinsic.h. Suggested by Pietro Cerutti.
...
(backported from tclconfig)
2013-07-05 14:56:24 +00:00
jan.nijtmans
e26d6e29c1
Use X11/Xlib.h for checking where X11 can be found in stead of X11/XIntrinsic.h. Suggested by Pietro Cerutti.
...
(Backported from tclconfig)
2013-07-05 14:52:07 +00:00
jan.nijtmans
57f4decd9b
CONST -> const in one place
2013-07-05 14:04:03 +00:00
jan.nijtmans
e0373f12ec
Allow successfull compilation, even if Tcl_GetErrorLine/Tcl_SetErrorLine are redefined as macros.
2013-07-05 14:02:59 +00:00
jan.nijtmans
fa8b071f04
Bug [817249]: bring tclXtNotify.c up to date with Tcl_SetNotifier() change
2013-07-03 10:43:49 +00:00
jan.nijtmans
6f68b762d3
Bug [817249]: bring tclXtNotify.c up to date with Tcl_SetNotifier() change
2013-07-03 10:39:50 +00:00
jan.nijtmans
ade4e6d9bb
Fix compiler warning when compiling Itcl 4.0:
...
In file included from ./generic/itcl2TclOO.c:12:0:
/Tcl/include/tclInt.h:3012:8: warning: ‘struct addrinfo’ declared inside parameter list [enabled by default]
const char **errorMsgPtr);
^
2013-07-03 08:59:09 +00:00
jan.nijtmans
a6b67f2ef2
Fix compiler warning when compiling Cygwin port with -Wwrite-strings
2013-07-03 08:56:34 +00:00
dgp
88731d9d93
comment improvements
2013-07-02 10:36:32 +00:00
jan.nijtmans
73faa3bbb6
Bug [32afa6e256]: dirent64 check is incorrect in tcl.m4. Thanks to Brian Griffin.
2013-07-02 07:17:19 +00:00
jan.nijtmans
89b2fc0982
Don't forget ChangeLog for previous commit
2013-07-02 07:16:22 +00:00
jan.nijtmans
7d8dff7c72
Bug [32afa6e256]: dirent64 check is incorrect in tcl.m4. Thanks to Brian Griffin.
2013-07-02 07:14:59 +00:00
dgp
aec5846c12
More Work In Progress.
2013-07-01 20:58:15 +00:00
dgp
05fb0c0810
More elimination of error message litter to fix [Bug 20a81392ec].
2013-06-28 02:58:15 +00:00
dgp
a47b03577b
Stop the compileProc routines leaving behind error messages in interp.
...
(Nicer way to solve [Bug 20a81392ec].) Make simplifications in
TclCompileScript() make possible by the new structure. Still a work
in progress.
2013-06-27 20:10:41 +00:00
dgp
fda71d6d4c
merge trunk
2013-06-27 13:12:09 +00:00
dgp
7070acfea1
plug memory leaks
2013-06-27 13:11:53 +00:00
jan.nijtmans
eec0dcb530
Fix [34538ba43f]
2013-06-27 12:35:47 +00:00
jan.nijtmans
c0f408b9cd
Fix [34538ba43f]
2013-06-27 12:34:49 +00:00
dgp
ddd130e532
merge trunk
2013-06-27 12:05:00 +00:00
jan.nijtmans
e592a6c9d5
Bug [9b2e636361]: Tcl_CreateInterp() needs initialized encodings.
2013-06-27 08:51:40 +00:00
jan.nijtmans
5ea3e8b570
Bug [9b2e636361]: Tcl_CreateInterp() needs initialized encodings.
2013-06-27 08:28:42 +00:00
dgp
324ca57f3d
merge trunk
2013-06-26 20:20:23 +00:00
dgp
a9f49cd781
Stop buffer overrun into undefined values detected by valgrind.
2013-06-26 20:13:57 +00:00
dgp
b3fea91162
Correct typo detected by valgrind.
2013-06-26 17:26:16 +00:00
dgp
ae7b32a706
Fix bytecode ranges in the cmdMapPtr. still leaky.
2013-06-26 16:06:44 +00:00
jan.nijtmans
eaf387ef13
typos.
...
On Cygwin, Tcl_SetPanicProc(NULL) should set back the panic proc to its default, which is not NULL.
2013-06-26 14:24:20 +00:00
jan.nijtmans
78b0a4a13c
formatting, typo
2013-06-26 14:20:26 +00:00
jan.nijtmans
f7fd65de47
Allocate encoding name, so caller of Tcl_RegisterConfig() doesn't need to keep it forever.
...
Fix some comments.
2013-06-26 08:10:36 +00:00
jan.nijtmans
d751f58f9d
Proposed solution for [9b2e636361]
2013-06-26 07:42:53 +00:00
dgp
5eecd400b7
A few bug fixes from failing tests; still leaky.
2013-06-26 03:46:54 +00:00
dgp
3f19b90244
merge trunk
2013-06-25 20:22:59 +00:00
dgp
11f1a88c12
Nearly functional now, but leaky and not yet as tidy as I'm hoping for.
2013-06-25 20:22:31 +00:00
dgp
c012287fc8
Replace always true test with assertion.
2013-06-25 19:23:24 +00:00
dgp
9fd3e86565
merge trunk
2013-06-25 15:01:31 +00:00
dgp
adb4b18477
Make more use of the CompileTokens() macro.
2013-06-25 15:01:03 +00:00
dgp
dc4782f595
Branch for rewriting TclCompileScript() and related routines, with the
...
intent to generally simplify and make more readable, as well as find and
eliminate duplication with ensemble machinery and improve mergeability
to other branches. Work in Progress. Doesn't work at all right now.
2013-06-25 14:19:39 +00:00
jan.nijtmans
708da35f79
Don't use deprecated Tcl_DStringTrunc any more
2013-06-25 12:06:07 +00:00
jan.nijtmans
07bfe18a21
Don't use deprecated Tcl_DStringTrunc any more.
2013-06-25 12:02:56 +00:00
jan.nijtmans
9497794406
Remove TclInitStubTable() function (but keep it in the "initsubsystems" branch).
2013-06-25 10:02:14 +00:00
jan.nijtmans
8d8c38c7c7
Don't use TclpInetNtoa any more, use inet_ntoa in stead. Since IP6 support it's even not necessary any more (except for fake-rfc2553, but mutexes are used here already) , but it's in the internal stub table so we cannot remove it until 9.0
2013-06-21 11:57:59 +00:00
jan.nijtmans
dcb4da22fa
Modify internal TclStubInfoType type: use TclStubs * in stead of ClientData, so less type casts are needed in the code.
...
Disadvantage: somewhat more code duplication, but it makes the code much more understandable.
2013-06-21 11:53:11 +00:00
dgp
130c6dd203
TclCompileScript() should not overwrite envPtr->numSrcBytes.
...
The envPtr already has the right value stored in it.
2013-06-20 14:20:59 +00:00
dgp
bbca4ec51b
TclCompileScript() should not overwrite envPtr->numSrcBytes.
...
The envPtr already has the right value stored in it.
2013-06-20 14:17:05 +00:00
dkf
4a6f1d02be
Fixed bug with optimizing with INST_START_CMD about.
2013-06-19 22:44:42 +00:00
dgp
202a7c4db1
More use of simplifying macros.
...
Replace dynamic allocation with automatic storage on the call stack.
2013-06-19 19:33:21 +00:00
jan.nijtmans
4d9fc81c0f
Eliminate a lot of dead code (for Windows 95/98/ME only).
...
Eliminate all usage of TclWinSetInterfaces(), which does exactly the same as TclpSetInterfaces(), but keep exported symbol and stub entry.
2013-06-19 12:53:53 +00:00
jan.nijtmans
cdd8467ca9
Fix [3611974]: InitSubsystems multiple thread issue
2013-06-18 10:36:06 +00:00
jan.nijtmans
099345d98c
Fix [3611974]: InitSubsystems multiple thread issue
2013-06-18 10:33:33 +00:00
jan.nijtmans
76df95e6e4
Fix uniClass tool which was the real cause for [a876646efe], and add test-case for it.
2013-06-18 07:50:19 +00:00
jan.nijtmans
7243b34d80
Fix uniClass tool which was the real cause for [a876646efe], and add test-case for it.
2013-06-18 07:43:59 +00:00
jan.nijtmans
6a445a3fe6
Better place to put vsnprintf switch, so it is usable by all *.c files.
...
Fix comment on _ANSI_ARGS_ which is no longer true since 8.6.
2013-06-18 07:00:04 +00:00
dgp
d6ca452640
Updates to redirect bug reports to the new tracker location.
2013-06-17 17:05:07 +00:00
jan.nijtmans
7b9871647a
Fix [42b8083613]
2013-06-17 17:03:49 +00:00
dgp
5f13065a33
Updates to redirect bug reports to the new tracker location.
2013-06-17 17:03:18 +00:00
jan.nijtmans
e80db5fa35
Use more portable TclIsSpaceProc() in stead of isspace().
2013-06-17 13:29:39 +00:00
jan.nijtmans
3215339ef0
Use more portable TclIsSpaceProc() in stead of isspace().
...
Make sure that "string is space \u180e" continues to return 1 for whatever unicode version.
2013-06-17 13:23:29 +00:00
jan.nijtmans
b7289f092d
Fix [a876646efe]: re_expr character class [:cntrl:] should contain \u0000 - \u001f
2013-06-17 04:54:35 +00:00
jan.nijtmans
ded13430f9
Fix [a876646efe]: re_expr character class [:cntrl:] should contain \u0000 - \u001f
2013-06-17 04:52:01 +00:00
jan.nijtmans
6eb0e8555d
On 32-bit platforms, 12 characters for version is enough, on 64-bit platforms it will be aligned to 16 characters anyway.
2013-06-17 04:41:57 +00:00
jan.nijtmans
c05b753e95
link tclsh with stub library, just like xttest and tcltest, in order to allow additional static stub-enabled libraries to be linked with it.
2013-06-16 20:48:57 +00:00
jan.nijtmans
f332c17690
split off TclInitStubTable() as separate function - which does the actual stub table initialization - previously part of Tcl_InitStubs().
2013-06-16 20:32:50 +00:00
jan.nijtmans
df6a99b1f7
Don't use deprecated stricmp/strnicmp any more, but underscored variant for non-GNU compilers.
...
Some formatting - improved comments.
2013-06-14 10:15:50 +00:00
jan.nijtmans
07096327dc
Don't use deprecated stricmp/strnicmp any more, but underscored variant for non-GNU compilers.
2013-06-14 10:11:08 +00:00
jan.nijtmans
a831b299f7
Fix env.test when running mingw-w64 (AMD64 build) test-suite on wine64.
...
Fix some gcc warnings which become visible with -Wextra
2013-06-13 07:23:08 +00:00
jan.nijtmans
b6b9185fa8
Fix some gcc warnings which become visible with -Wextra
2013-06-13 07:13:09 +00:00
jan.nijtmans
bd6f6a89c6
Fix env.test when running mingw-w64 (AMD64 build) test-suite on wine64
2013-06-12 19:36:49 +00:00
jan.nijtmans
169288808b
Workaround for mingw-w64 (AMD64-only) bug: It appears that zdll.lib (as produced by Microsoft tools) doesn't import the zlib symbols correctly, so use "libz.dll.a" produced with mingw-w64 tools in stead.
2013-06-12 12:24:23 +00:00
jan.nijtmans
615ab1a0d4
Silence various warnings when doing a 64-bit build with MSVC: Those warnings can only _really_ be fixed in "novem" (so, don't silence them there).
...
Use vsnprintf (more portable) in stead of _vsnprintf, except on MSVC
2013-06-12 10:29:01 +00:00
jan.nijtmans
c961880a26
Silence various warnings when doing a 64-bit build with MSVC: Those warnings can only _really_ be fixed in "novem" (so, don't silence them there)
2013-06-12 10:24:52 +00:00
dgp
f118d91a3d
Revise INST_EXPAND_STKTOP so that it no longer makes use of its operand.
...
All the information required to do a proper expansion of the exec stack
to support expanded command invocation is already present. The operand
doesn't provide any essential information. By ignoring it, we eliminate
the risk that the compiler might fill in the operand with a bad stack depth
estimate value. INST_EXPAND_STKTOP doesn't need an operand, but in order
to support loading of existing bytecodes we cannot change it now. There's
also no need to change what the compiler tries to place in the operand,
though changing it to always be zeros would be acceptable now.
2013-06-11 22:47:22 +00:00
dgp
3c473ee0c4
Select improvements in stack depth estimates brought over from mig-review.
...
Mostly these are just simplifications, removing code that wasn't needed.
Some changes make the stack depth estimate more accurate instruction by
instruction.
2013-06-11 20:38:00 +00:00
dgp
67264f1e10
Repairs to compile/exec debugging output.
2013-06-11 19:41:55 +00:00
dgp
9cccd5fd91
Stack housekeeping repair for last checkin.
2013-06-11 17:58:49 +00:00
dgp
470fc04dd0
[33b7abb8a2] [7174354ecb] Rewrite TclCompileThrowCmd().
2013-06-11 16:44:34 +00:00
jan.nijtmans
46db2c3edd
Improve compatibility detection for <time.h> and <sys/stat.h>:
...
- Move <time.h> before other includes on Windows, so we are sure the time_t definition being checked doesn't come from <sys/types.h>.
- Padding at the end of Tcl_StatBuf doesn't influcence binary compatibility, so relax panic check accordingly.
2013-06-11 08:12:09 +00:00
jan.nijtmans
52ce2fdeb0
Improve compatibility detection for <time.h> and <sys/stat.h>:
...
- Move <time.h> before other includes on Windows, so we are sure the time_t definition being checked doesn't come from <sys/types.h>.
- Padding at the end of Tcl_StatBuf doesn't influcence binary compatibility, so relax panic check accordingly.
2013-06-11 07:58:01 +00:00
dgp
cc984c4e6e
merge trunk
2013-04-16 17:34:32 +00:00
dgp
64bf3c8f4a
More progress. NR-enable [interp] and [$slave], completely with
...
invokehidden subcommand. Test suite passes with no errors.
2013-04-11 21:30:40 +00:00
dgp
064f7e5513
More revisions let multi-interp test case work, but at cost of panics
...
and segfaults. Pushing the NRE-envelope.
2013-04-11 19:36:37 +00:00
dgp
6597872335
New internal routine TclNRInvoke() - NR-enabled path through the machinery
...
behind invokehidden commands.
2013-04-11 14:39:56 +00:00
dgp
5044035ec0
merge trunk
2013-04-11 13:35:41 +00:00
dkf
b6b0d1b8dd
added some test cases, based on bug report
2013-04-09 20:01:08 +00:00
dgp
1ddb66bfda
Use the double-secret iPtr->lookupNsPtr field to get post-enter-trace
...
re-resolutions of commands done in the right context for oo forwards.
2013-04-09 19:04:04 +00:00
dgp
6b17a1e25a
Revise TclNREvalObjv so that pre-resolution of the Command by a caller
...
does not force suppression of exception handling. Let those be separable
demands. Aim is to bring TclObjInvoke*() into the fold.
2013-04-08 18:11:33 +00:00
dkf
967d113043
merge trunk
2013-02-04 22:02:53 +00:00
dkf
0eb33efc7a
merge main dev branch
2013-01-03 14:08:49 +00:00
dkf
53baa9e5c4
merge main dev branch
2013-01-03 14:07:24 +00:00
dkf
af735a0ba9
merge main dev branch
2012-12-19 11:43:40 +00:00
dkf
a7b60b26f1
merge main dev branch
2012-12-19 11:42:46 +00:00
dkf
d6bd07fecc
merge dkf-compile-misc-info
2012-11-20 12:14:18 +00:00
dkf
f497ce9a95
merge dkf-compile-misc-info
2012-11-20 12:13:43 +00:00
dkf
414163addc
merge main dev branch
2012-11-05 21:56:13 +00:00
dkf
71fd534215
merge main dev branch
2012-11-05 21:55:40 +00:00
dkf
b8bcc352ea
merge main dev branch
2012-11-05 15:33:44 +00:00
dkf
f04eef80d7
merge main dev branch
2012-11-05 15:28:01 +00:00
dkf
2de2d8678f
reorder to preserve main BC development branch sequence better
2012-11-02 20:39:10 +00:00
dkf
d5e04d6200
merge dkf-compile-misc-info
2012-11-02 20:25:57 +00:00
dkf
6d14b815b2
Work on compilation of [string is].
...
Hit some problem edge cases with differences in strictness of edge cases that
will force a rethink ([string is boolean] is significantly more strict than
Tcl_GetBooleanFromObj).
2012-11-02 16:50:06 +00:00
dkf
ed18777278
Working towards a BCCed [next].
...
This version <i>almost</i> works, except for a problem with restoring the
context namespace upon return (which produces very strange results!)
2012-11-01 20:40:55 +00:00