forked from tcltk/tcl
-
Notifications
You must be signed in to change notification settings - Fork 1
/
ChangeLog.2005
3822 lines (2759 loc) · 142 KB
/
ChangeLog.2005
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
2005-12-30 Kevin B. Kenny <kennykb@acm.org>
* generic/tclStubLib.c: Corrected a typo in "missing Stubs table
pointer."
2005-12-27 Kevin B. Kenny <kennykb@acm.org>
* generic/tcl.decls: Destubbed TclTomMathInitializeStubs - it is in
* generic/tcl.h: the stub library, not the main shared
* generic/tclBasic.c: library. Exported Tcl_InitBignumFromDouble.
* generic/tclExecute.c:
* generic/tclInt.h:
* generic/tclStrToD.c:
* generic/tclDecls.h:
* generic/tclStubLib.c:
* generic/tclStubInit.c: Regenerated.
* generic/clock.tcl: Reverted to using the time zone abbreviation and
not its name to "stop the bleeding" on [Bug 1386377]. This is *not* a
good long-term solution, but there may not be one.
* libtommath/bn_mp_sqrt.c: Improved the initial approximation to the
square root, roughly doubling the speed of the routine. (This is a
local change that needs to be communicated to Tom.)
* win/Makefile.in: Corrected a bug where tommath_class.h and
tommath_superclass.h were not installed, making it impossible for
client code to compile against the tommath stubs.
* library/tzdata: Updated to Olson's tzdata2005r. (Latest changes to
Daylight Saving Time in Canada, plus redefinition of the Posix-style
zones [e.g., EST5EDT] to be locale-independent.)
* libtommath: Updated to Tom St.Denis's release 0.37.
2005-12-20 Donal K. Fellows <donal.k.fellows@manchester.ac.uk>
* generic/tclThreadAlloc.c (Tcl_GetMemoryInfo): Format values as longs
and not ints, so they are less likely to wrap on 64-bit machines.
2005-12-19 Don Porter <dgp@users.sourceforge.net>
* generic/tclCmdMZ.c: Modified [string is double] to use
* tests/string.test: TclParseNumber() to parse trailing whitespace.
Ensures consistency, and makes it easier to cleanup after invalid
internal reps left behind by parsing [Bugs 1360532 1382287].
* generic/tclParseExpr.c: Added TCL_PARSE_NO_WHITESPACE to
* generic/tclScan.c: TclParseNumber() calls since [scan] and [expr]
* tests/scan.test: parsing don't want spaces in parsed numbers.
* generic/tclInt.h: Added TCL_PARSE_NO_WHITESPACE flag to the
* generic/tclStrToD.c: TclParseNumber() interface.
2005-12-19 Donal K. Fellows <donal.k.fellows@manchester.ac.uk>
* doc/Tcl.n: Clarify what is going on in variable substitution
following thread on comp.lang.tcl.
2005-12-18 Donal K. Fellows <donal.k.fellows@manchester.ac.uk>
* generic/tclCompCmds.c (TclCompileDictCmd): Ensure that we only do an
'endCatch' when there's a preceding 'beginCatch'. [Bug 1382528] Many
thanks to Anton Kovalenko for finding this and pointing out that it was
a catch stack handling problem!
2005-12-14 Daniel Steffen <das@users.sourceforge.net>
* generic/tclIOUtil.c: workaround gcc warning "comparison is always
* generic/tclTest.c: false due to limited range of data type".
* macosx/Tcl.xcode/project.pbxproj:
* macosx/Tcl.xcodeproj/project.pbxproj:
* unix/Makefile.in: add new tclTomMath* files.
* generic/tclBasic.c: replace panic with Tcl_Panic.
2005-12-13 Kevin B. Kenny <kennykb@acm.org>
* generic/tcl.decls: Added changes to export an additional stubs
* generic/tclBasic.c: table to represent the 'libtommath' routines
* generic/tclDecls.h: that Tcl uses and export them to callers.
* generic/tclInt.decls: Reran 'genstubs'
* generic/tclInt.h:
* generic/tclIntDecls.h:
* generic/tclIntPlatDecls.h:
* generic/tclStubInit.c:
* generic/tclStubLib.c:
* generic/tclTomMath.decls:
* generic/tclTomMath.h:
* generic/tclTomMathDecls.h:
* generic/tclTomMathInterface.c:
* generic/tommath.h:
* tools/fix_tommath_h.tcl:
* unix/Makefile.in:
* win/Makefile.in:
* win/makefile.vc:
* generic/tclClock.c: Made changes to silence a number of compiler
* generic/tclIO.c: warnings when building with mingw.
* generic/tclIORChan.c:
* generic/tclLink.c:
* generic/tclListObj.c:
* generic/tclObj.c:
* generic/tclParseExpr.c:
* generic/tclProc.c:
* generic/tclTimer.c:
* win/tclWinChan.c:
* win/tclWinConsole.c:
* win/tclWinDde.c:
* win/tclWinFCmd.c:
* win/tclWinFile.c:
* win/tclWinReg.c:
* win/tclWinSock.c:
2005-12-13 Donal K. Fellows <donal.k.fellows@manchester.ac.uk>
* generic/tclExecute.c (TEBC:DICT_FIRST,DICT_DONE): Only decrease the
references to the dictionary once the iteration completes. Do this by
storing the dict in the iterator context variable. [Bug 1379349] Thanks
to Ulrich Ring and Tobias Hippler for finding this.
2005-12-12 Jeff Hobbs <jeffh@ActiveState.com>
* unix/tcl.m4, unix/configure: Fix sh quoting error reported in
bash-3.1+ [Bug 1377619] (schafer)
2005-12-12 Kevin B. Kenny <kennykb@acm.org>
* doc/mathfunc.n: Changed two examples from the incorrect 'tcl::math::'
to 'tcl::mathfunc::' [Bug 1378818]
2005-12-09 Mo DeJong <mdejong@users.sourceforge.net>
* win/configure: Regen.
* win/tcl.m4 (SC_CONFIG_CFLAGS): Define MACHINE for gcc builds. The
lack of a definition of this variable in the manifest file was causing
a runtime error in wish built with gcc.
2005-12-09 Donal K. Fellows <donal.k.fellows@manchester.ac.uk>
* tests/lsearch.test (lsearch-10.8..10): If the -start is off the end,
* generic/tclCmdIL.c (Tcl_LsearchObjCmd): searching should find nothing
at all. [Bug 1374778]
2005-12-08 Jeff Hobbs <jeffh@ActiveState.com>
* win/Makefile.in, win/makefile.vc: Add Win x64 and CE build support
* win/tcl.m4, win/configure: CE still requires C code fixes.
* generic/tcl.h: use struct __stat64 (not _stat64) for MSC_VER >= 1400
(i.e. latest Platform SDK).
2005-12-07 Donal K. Fellows <donal.k.fellows@manchester.ac.uk>
* doc/socket.n: Cross-referenced the socket documentation better to the
fconfigure documentation on the topic of asynch sockets.
* doc/fconfigure.n: Added keyword to documentation of -blocking option
so that people looking for "asynch" can find it as well.
2005-12-05 Daniel Steffen <das@users.sourceforge.net>
* unix/tclUnixPort.h (Darwin): fix incorrect __DARWIN_UNIX03 configure
overrides that were originally copied from Darwin CVS (rdar://3693001)
2005-12-05 Kevin B. Kenny <kennykb@acm.org>
* tools/tclZIC.tcl: Updated to reflect changes in calling sequence when
GetJulianDateFromEraYearMonthDay moved to C.
* library/tzdata: Regenerated from Olson's tzdata2005p.tar.gz - the
'systemv' changes appear not to affect Tcl's processing of the dates.
2005-12-05 Daniel Steffen <das@users.sourceforge.net>
* unix/configure.in: move check for fts API to configure.in and run it
* unix/tcl.m4: on all platforms, since Linux glibc2 and *BSDs
also have this; using fts is more efficient than a recursive
opendir/readdir.
* unix/tclUnixFCmd.c (TraverseUnixTree): add support to fts code for
platforms with stat64.
* unix/configure:
* unix/tclConfig.h.in: regen.
2005-12-05 Jeff Hobbs <jeffh@ActiveState.com>
* unix/configure: Use fts file API on Darwin if available.
* unix/tcl.m4: Addresses file delete issues in readdir noted
* unix/tclUnixFCmd.c: in [Bug 1034337]. (steffen)
Remove redundant stat call for each file in DoCopyFile. (steffen)
2005-12-02 Kevin B. Kenny <kennykb@acm.org>
* generic/tclClock.c: Moved a tiny bit more of [clock format] from run
* library/clock.tcl: time to compile time, and fixed a l10n bug in the
process. [Bug 1371446]. Also, conditoned the call to SetupTimeZone to
speed the common case where TZData($timezone) already exists, and
achieved a puny speedup by making ::tcl::clock::getenv not throw
errors.
* unix/Makefile.in: Made some changes to support a 'make' command that
is present on some antiquated versions of Solaris.
2005-12-01 Kevin B. Kenny <kennykb@acm.org>
* library/clock.tcl: Continued rationalizing the code, eliminating
numerous redundant [mc] calls. Added another time boost by precompiling
a [::format] command to do the bulk of the work of [clock format].
2005-12-01 Donal K. Fellows <donal.k.fellows@manchester.ac.uk>
* unix/Makefile.in: Add remaining dependency info. While automated
maintenance of this information would be good, having it at all is much
better than a poke in the eye with a sharp stick...
2005-12-01 Daniel Steffen <das@users.sourceforge.net>
* generic/tclClock.c: fix warning.
* unix/tcl.m4 (Darwin): fix error when MACOSX_DEPLOYMENT_TARGET unset
* unix/configure: regen.
2005-11-30 Donal K. Fellows <donal.k.fellows@manchester.ac.uk>
* unix/Makefile.in: Add dependency information relating to tclCompile.h
since when the list of opcodes changes it is usually useful to rebuild
everything that depends on it (but which is nonetheless a small
fraction of the total set of Tcl source files).
***POTENTIAL INCOMPATIBILITY*** for bytecode savers/loaders. See below
* generic/tclCompCmds.c (TclCompileSwitchCmd): Arrange for very simple
[switch] invokations to be compiled into hash lookups into jump tables;
only a very specific kind of [switch] can be safely compiled this way,
but that happens to be the most common kind. This makes around 5-10%
difference to the speed of execution of clock.test.
* generic/tclExecute.c (TEBC:INST_JUMP_TABLE): New instruction to allow
for jumps to locations looked up in a hashtable. Requires a new AuxData
type, tclJumptableInfoType (supported by the functions DupJumptableInfo
and FreeJumptableInfo in tclCompCmds.c) so anything that saves bytecode
containing this *must* be updated!
2005-11-30 Kevin Kenny <kennykb@acm.org>
* generic/tclClock.c: Fixed a bad refcount in previous commit that led
to a corrupted heap. Also silenced a warning that some compilers gave
about the excessively long constant for JULIAN_SEC_POSIX_EPOCH. Also
fixed a bug where [clock format] would fail in the :localtime zone for
times before the Posix Epoch. Thanks to Miguel Sofer for pointing out
all of these. Also rationalized the code a little bit by moving parts
of [clock scan] into C, eliminating some code that was duplicated in
the C and Tcl layers.
2005-11-29 Kevin Kenny <kennykb@acm.org>
* generic/tclBasic.c: Moved a big part of [clock format] down
* generic/tclClock.c: to the C level in order to make it go faster.
* generic/tclInt.h: Preliminary measurements suggest that it
* generic/clock.tcl: more than doubles in speed with this change.
2005-11-29 Donal K. Fellows <donal.k.fellows@manchester.ac.uk>
* generic/tclCmdIL.c (Tcl_LsearchObjCmd): Allow [lsearch -regexp] to
process REs that contain backreferences. This expensive mode of
operation is only used if the RE would otherwise cause a compilation
failure. [Bug 1366683]
2005-11-28 Kevin Kenny <kennykb@acm.org>
* tools/tclZIC.tcl (convertTimeOfDay): Corrected a typo that caused
wrong DST transitions in any time zone where the transition is
specified as local Standard Time (as opposed to wall-clock or UTC).
(Also updated the code to be bignum-safe.)
* tests/clock.test (clock-51.1): Added regression test for the above.
* library/tzdata: Updated to Olson's 'tzdata2005o' (changes for Cuba,
Nicaragua, Jordan, and Georgia) and regenerated. Thanks to Paul
Mackerras for reporting this problem.
2005-11-27 Daniel Steffen <das@users.sourceforge.net>
* unix/tcl.m4 (Darwin): add 64bit support, check for Tiger copyfile(),
add CFLAGS to SHLIB_LD to support passing -isysroot in env(CFLAGS) to
configure (flag can't be present twice, so can't be in both CFLAGS and
LDFLAGS during configure), don't use -prebind when deploying on 10.4,
define TCL_IO_TRACK_OS_FOR_DRIVER_WITH_BAD_BLOCKING (rdar://3171542).
(SC_ENABLE_LANGINFO, SC_TIME_HANDLER): add/fix caching, fix obsolete
autoconf macros. Sync with tk/unix/tcl.m4.
* unix/configure.in: fix obsolete autoconf macros, sync gratuitous
formatting/ordering differences with tk/unix/configure.in.
* unix/Makefile.in: add CFLAGS to tclsh/tcltest link to make executable
linking the same as during configure (needed to avoid losing any linker
relevant flags in CFLAGS, in particular flags that cannot be in
LDFLAGS). Avoid concurrent linking of tclsh and compiling of
tclTestInit.o or xtTestInit.o during parallel make.
(checkstubs, checkdoc, checkexports): dependency and Darwin fixes
(dist): add new macosx files.
* unix/tclLoadDyld.c (TclpDlopen): use NSADDIMAGE_OPTION_WITH_SEARCHING
on second NSAddImage only. [Bug 1204237]
(TclGuessPackageName): should not be MODULE_SCOPE.
(TclpLoadMemory): ppc64 and endian (i386) fixes, add support for
loading universal (fat) bundles from memory.
* unix/tclUnixFCmd.c:
* macosx/tclMacOSXFCmd.c: ppc64 and endian (i386) fixes.
(TclMacOSXCopyFileAttributes): add support for new Tiger copyfile() API
to enable copying of xattrs & ACLs by [file copy].
* generic/tcl.h: add Darwin specifc configure overrides for TCL_WIDE
defines to support fat compiles of ppc and ppc64 at the same time,
(replaces Darwin CVS fix by emoy, rdar://3693001). add/correct location
of version numbers in macosx files.
* generic/tclInt.h: clarify fat compile comment.
* unix/tclUnixPort.h: add Darwin specifc configure overrides to support
fat compiles, where configure runs only once for multiple architectures
(replaces Darwin CVS fix by emoy, rdar://3693001).
* macosx/tclMacOSXBundle.c:
* macosx/tclMacOSXNotify.c:
* unix/tclUnixNotfy.c:
* unix/tclUnixPort.h: fix #include order to support compile time
override of HAVE_COREFOUNDATION in tclUnixPort.h when building for
ppc64
* macosx/Tcl.pbproj/default.pbxuser (new file):
* macosx/Tcl.pbproj/jingham.pbxuser:
* macosx/Tcl.pbproj/project.pbxproj:
* macosx/Tcl.xcode/default.pbxuser (new file):
* macosx/Tcl.xcode/project.pbxproj (new file):
* macosx/Tcl.xcodeproj/default.pbxuser (new file):
* macosx/Tcl.xcodeproj/project.pbxproj (new file): new/updated
projects for Xcode 2.2 on 10.4, Xcode 1.5 on 10.3 & ProjectBuilder on
10.2, with native tcltest targets and support for universal (fat)
compiles.
* macosx/README: clarification/cleanup, document new Xcode projects and
universal (fat) builds via CFLAGS (i.e. all of ppc ppc64 i386 at once).
* unix/Makefile.in:
* unix/aclocal.m4:
* unix/configure.in:
* unix/dltest/Makefile.in:
* macosx/configure.ac (new file): add support for inclusion of
unix/configure.in by macosx/configure.ac, allows generation of a config
headers enabled configure script in macosx (required by Xcode
projects).
* macosx/GNUmakefile: rename from Makefile to avoid overwriting by
configure run in tcl/macosx, add support for reusing configure cache,
build target fixes, remove GENERIC_FLAGS override now handled by
tcl.m4.
* generic/tcl.decls: add Tcl_Main declaration as comment to avoid
'checkstubs' target complaining about it missing from stubs.
* generic/regex.h:
* generic/tclDate.c:
* generic/tclEnv.c:
* generic/tclGetDate.y:
* generic/tclIOUtil.c:
* generic/tclObj.c:
* generic/tclStubInit.c:
* generic/tclStubLib.c:
* generic/tclPathObj.c:
* generic/tclThreadAlloc.c:
* generic/tclThreadStorage.c:
* generic/tclTrace.c:
* generic/tclVar.c:
* generic/tommath.h:
* tools/fix_tommath_h.tcl:
* unix/tclUnixFCmd.c: ensure externally visible symbols not contained
in stubs table are declared as MODULE_SCOPE (or as static if not used
outside of own source file). These changes allow 'make checkstubs' to
complete without error on Darwin with gcc 4.
* generic/rege_dfa.c (getvacant):
* generic/regexec.c (cfind):
* generic/tclCompExpr.c (CompileSubExpr):
* generic/tclNamesp.c (NamespaceEnsembleCmd):
* unix/tclUnixChan.c (TclUnixWaitForFile): initialise variables to
silence gcc 4 warnings.
* generic/tclExecute.c (TclExecuteByteCode): fix unused variable
warning when NO_WIDE_TYPE is defined.
* generic/regguts.h: only #define NDEBUG if not already #defined.
* unix/tclUnixNotfy.c:
* macosx/tclMacOSXNotify.c: sync whitespace & comments.
* unix/tclUnixPort.h:
* win/tclWinPort.h: remove declaration of obsolete&unused TclpMutex
API.
* unix/configure:
* unix/tclConfig.h.in: regen.
2005-11-21 Andreas Kupries <andreask@activestate.com>
* unix/Makefile.in (install-libraries): Updated Makefile to new
* win/Makefile.in (install-libraries): version of the http package.
This fixes the ifneeded/provide mismatch reported when trying to
require http. Should we maybe try to automatically extract the version
number from the http code to prevent future breakage ?
This follows the update of the version number by dgp on Nov 15 (No
entry found in the ChangeLog).
2005-11-20 Joe English <jenglish@users.sourceforge.net>
* generic/tclStubLib.c: Don't set tclStubsPtr to 0 when
Tcl_PkgRequireEx() fails [Fix for [Bug 1091431] "Tcl_InitStubs failure
crashes wish"]
2005-11-18 Miguel Sofer <msofer@users.sf.net>
* tests/trace.test (trace-34.5): [Bug 1047286], added a second test
illustrating the role of "ns in callStack" in the ns's visibility
during deletion traces.
2005-11-18 Kevin B. Kenny <kennykb@acm.org>
* doc/clock.n: Restored several missing lines near the %w format group
so that %w and %W are documented with their actual behaviour. [Bug
1359183]
2005-11-18 Jeff Hobbs <jeffh@ActiveState.com>
* generic/tclIO.c (TclFinalizeIOSubsystem): preserve statePtr until we
retrieve the next statePtr from it.
2005-11-18 Miguel Sofer <msofer@users.sf.net>
* generic/tclObj.c (GetBignumFromObj): replace NULL with
tclEmptyStringRep to stop memcpy from complaining in a debug build
(the corresponding branch is eliminated by the optimiser otherwise).
2005-11-18 Andreas Kupries <andreask@activestate.com>
* generic/tclIO.c (TclFinalizeIOSubsystem): Applied Pat Thoyts' patch
for [Bug 1359094]. This moves the retrieval of the next channel state
to the end of the loop, as the called closeproc may close other
channels, i.e. modify the list we are iterating, invalidating any
pointer retrieved earlier.
2005-11-18 Don Porter <dgp@users.sourceforge.net>
* generic/tclListObj.c: Restored the SetListFromAny routine to the
* generic/tclObj.c: "list" Tcl_ObjType, and restored the
Tcl_RegisterObjType() call for "list". This addresses the needs of some
"bridge" extensions to examine whether the Tcl_ObjType of a Tcl_Obj is
that of the "list" Tcl_ObjType.
2005-11-18 Donal K. Fellows <donal.k.fellows@manchester.ac.uk>
* library/http/http.tcl (http::geturl): Improved syntactic validation
of URLs, and better error messages in some cases. [Bug 1358369]
2005-11-17 Miguel Sofer <msofer@users.sf.net>
* tests/namespace.test: fix comment
2005-11-14 Don Porter <dgp@users.sourceforge.net>
* generic/tclStrToD.c: More data in the "can't happen" Tcl_Panic to
aid debugging.
* generic/tclBasic.c (CallCommandTraces): Save/restore the interp
result during traces to fix [Bug 1355342].
2005-11-13 Miguel Sofer <msofer@users.sf.net>
* generic/tclInt.h:
* generic/tclNamesp.c:
* tests/namespace.test: fix for [Bug 1354540] and [Bug 1355942]. The
new tests 7.3-6 and the modified 51.13 fail due to the unrelated [Bug
1355342]
* tests/trace.test: added tests 20.13-16 for [Bug 1355342]
2005-11-12 Miguel Sofer <msofer@users.sf.net>
* generic/tclBasic.c (Tcl_DeleteCommandFromToken):
* generic/tclObj.c (Tcl_GetCommandFromObj): more partial fixes for
[Bug 1354540] - making sure that cached references to a command being
deleted cannot be made reusable by a delete trace.
2005-11-12 Donal K. Fellows <dkf@users.sf.net>
* generic/tclNamesp.c (Tcl_FindCommand): Do not find commands in dead
namespaces on the path. Partial fix for [Bug 1354540].
2005-11-11 Don Porter <dgp@users.sourceforge.net>
* generic/tclInt.h: Revised TclParseNumber interface to enable
* generic/tclScan.c: revision to the [scan] command implementation
* generic/tclStrToD.c: to permit tests scan-4.44,55 to pass again.
[Bug 1348067].
2005-11-11 Miguel Sofer <msofer@users.sf.net>
* generic/tclBasic.c (Tcl_DeleteCommandFromToken):
* generic/tclObj.c (Tcl_GetCommandFromObj): bump the cmd epoch early
to insure that cached references to this command are invalidated.
Partial fix for [Bug 1352734] - at least insures that namespace-51.13
does not cause a panic. The test is still marked as knownbug, pending
resolution of what is actually the correct return value ([Bug
1354540])
2005-11-09 Kevin B. Kenny <kennykb@acm.org>
* generic/tclTimer.c: Changed [after] so that it behaves correctly
* tests/timer.test: with negative arguments [Bug 1350293] and
arguments that overflow a 32-bit word. [Bug 1350291]
2005-11-08 Don Porter <dgp@users.sourceforge.net>
* tests/compile.test: Updated tests with changed behavior
* tests/execute.test: due to addition of bignums.
* tests/expr-old.test:
* tests/expr.test:
* tests/parseExpr.test:
* tests/platform.test:
* tests/string.test:
2005-11-08 Jeff Hobbs <jeffh@ActiveState.com>
* unix/tclUnixFCmd.c (MAX_READDIR_UNLINK_THRESHOLD): reduce to 130
based on errors seen on OS X 10.3 with lots of links in a dir.
[Bug 1034337 followup]
2005-11-09 Donal K. Fellows <donal.k.fellows@manchester.ac.uk>
* unix/Makefile.in (gdb-test): Added a new target to make it easier to
run the test suite inside a debugger.
2005-11-08 Don Porter <dgp@users.sourceforge.net>
* tests/compExpr-old.test: Updated tests with changed behavior due
to addition of bignums.
* tests/expr.test: Portable tests expr-46.13-18 [Bug 1341368]
* generic/tclPkg.c: Corrected inconsistencies in the value returned
* tests/pkg.test: by Tcl_PkgRequire(Ex) so that the returned
values will always agree with what is stored in the package database.
This way repeated calls to Tcl_PkgRequire(Ex) have the same results.
Thanks to Hemang Lavana. [Bug 1162286].
2005-11-08 Donal K. Fellows <donal.k.fellows@manchester.ac.uk>
* generic/tclTrace.c (TraceVarEx): Factor out heart of Tcl_TraceVar2
(TclTraceVariableObjCmd,TraceVarProc): Use the new internal API to
arrange for the clientData to be cleaned up at the same time as the
rest of the main trace record. This simplifies the code a bit at the
same time.
2005-11-07 Miguel Sofer <msofer@users.sf.net>
* tests/trace.test (trace-13.2-4): added tests to detect leak, see [Bug
1348775]. The recently added trace-8.9 test is now 13.4.
2005-11-07 Donal K. Fellows <donal.k.fellows@manchester.ac.uk>
* tests/dict.test (dict-19.2): arrange for the stress testing code to
only stress test the dict code and not the trace code as well. [Bug
1342858]
2005-11-05 Miguel Sofer <msofer@users.sf.net>
* tests/trace.test (trace-8.9): added test to detect leak, see [Bug
1348775].
2005-11-04 Pat Thoyts <patthoyts@users.sourceforge.net>
* win/tclWinPort.h: Applied [Patch 1267871] by Matt Newman for
* win/tclWinPipe.c: extended error code support on Windows.
* tests/exec.test: Tests for extended error codes.
* generic/tclPipe.c: Permit long codes (platform macros permitting).
2005-11-04 Miguel Sofer <msofer@users.sf.net>
* generic/tclBinary.c:
* generic/tclCmdAH.c:
* generic/tclCmdIL.c:
* generic/tclCmdMZ.c:
* generic/tclDictObj.c:
* generic/tclExecute.c:
* generic/tclIOCmd.c:
* generic/tclLink.c:
* generic/tclTest.c:
* generic/tclVar.c: fix for [Bug 1334947]. The functions TclPtrSetVar,
Tcl_ObjSetVar2 and Tcl_SetVar2Ex now always consume the newValuePtr
argument - i.e., they will free a 0-refCount object if they failed to
set the variable. Fixed all callers in the core.
2005-11-04 Kevin Kenny <kennykb@acm.org>
* generic/tclGetDate.y: Added abbreviations for the Korean
* library/clock.tcl: timezone. [Patch 1298737]
* generic/tclDate.c: Regenerated.
* tools/findBadExternals.tcl: Added this script, which locates external
symbols that do not begin with 'Tcl' or 'tcl' and hence might be in
conflict with other link libraries. Thanks to George Peter Staplin for
the idea and the initial version of the script. [Bug 1263012]
* unix/Makefile.in: Trimmed a bunch of fat out of the tommath/
directory in 'make dist'. [RFE 1333318]
* unix/tcl.m4: Added code to enable [load] on LynxOS. Thanks to
heidibr@users.sf.net for the patch. [Bug 1163896]. Removed the last
vestiges of GNU dld from the Unix build [RFE 1071992].
* unix/tclLoadDld.c: Removed.
* unix/configure: Regenerated.
2005-11-04 Miguel Sofer <msofer@users.sf.net>
* generic/tclInt.h:
* generic/tclNamesp.c:
* generic/tclVar.c:
* tests/trace.test: fix for [Bugs 1338280/1337229]; changed to use the
same approach as the 8.4 patch in the ticket (i.e., removed the patch
committed on 2005-31-10).
2005-11-03 Pat Thoyts <patthoyts@users.sourceforge.net>
* win/tclWin32Dll.c: Applied [Patch 1256872] to provide unicode
* win/tclWinConsole.c: support in the console on suitable systems.
* win/tclWinInt.h: Patch by Anton Kovalenko
2005-11-02 Pat Thoyts <patthoyts@users.sourceforge.net>
Applied [Patch 1096916] to support building with MSVC 8.
* generic/regerror.c: Avoid use of reserved word.
* generic/tcl.h: Select the right Tcl_Stat structure
* generic/tclDate.c: Casts to handle 64 bit time_t case.
* tests/env.test: Include essential envvar on Win32
* win/nmakehlp.c: Handle new return codes.
* win/makefile.vc: Use the selected options.
* win/rules.vc: Check options are applicable
* win/tclWinPort.h: Disable deprecated function warnings
* win/tclWinSock.c: Provide default value to avoid warning.
* win/tclWinTime.c: Add casts to handle 64bit time_t type.
2005-11-01 Don Porter <dgp@users.sourceforge.net>
* generic/tclTrace.c (TclCheckExecutionTraces): Corrected mistaken
assumption that all command traces are set at the script level.
Report/fix from Jacques H. de Villiers. [Bug 1337941]
* tests/unixNotfy.test (1.1,2): Update error message whitespace to
match changes in code.
* tests/expr-old.test (expr-32.52): Use int(.) to restrict result of
left shift to the C long range.
* expr.test (expr-46.13): Added test that illustrates shortcoming of
[Patch 1340260].
2005-10-31 Miguel Sofer <msofer@users.sf.net>
* generic/tclNamesp.c: fix for [Bugs 1338280/1337229]. Thanks Don.
* tests/trace.test: fix duplicate test numbers
2005-10-31 Donal K. Fellows <donal.k.fellows@manchester.ac.uk>
* win/tclWinSerial.c (SerialSetOptionProc): Cleaned up option parsing
to produce more informative error messages and separate error and
non-error code paths better.
* tests/ioCmd.test (iocmd-8-19): Updated.
2005-10-29 Miguel Sofer <msofer@users.sf.net>
* generic/tclTrace.c (TraceVarProc): [Bug 1337229], partial fix. Ensure
that a second call with TCL_TRACE_DESTROYED does not lead to a second
call to Tcl_EventuallyFree(). It is still true that that second call
should not happen, so the bug is not completely fixed.
* tests/trace.test (test-18.3-4): added tests for [Bug 1337229] and
[Bug 1338280].
2005-10-23 Vince Darley <vincentdarley@sourceforge.net>
* generic/tclFileName.c: fix to memory leak in glob [Bug 1335006] Obj
leak detection and patch by Eric Melbardis.
* tests/fCmd.test:
* win/tclWinFile.c: where appropriate windows API is available, try to
set 'nlink' and 'ino' stat fields (previously they were always 0). [Bug
1325803]
2005-10-22 Miguel Sofer <msofer@users.sf.net>
* tests/foreach.test (foreach-8.1): added test for [Bug 1189274]
2005-10-22 Miguel Sofer <msofer@users.sf.net>
* generic/tclExecute.c (INST_INCR_*): fixed [Bug 1334570]. Obj leak
detection and patch by Eric Melbardis.
2005-10-21 Kevin B. Kenny <kennykb@acm.org>
* generic/tclStrToD.c (RefineApproximation): Plugged a memory leak
where two intermediate results were not freed on one return path. [Bug
1334461]. Thanks to Eric Melbardis for the patch.
2005-10-21 Donal K. Fellows <dkf@users.sf.net>
* doc/binary.n: Clarify that virtually all code that uses the 'h'
format in [binary scan] should be using the 'H' format instead. It is
nearly always a bug to use the other!
2005-10-20 Miguel Sofer <msofer@users.sf.net>
* generic/tclListObj.c (TclLsetFlat):
* tests/lset.test (lset-10.3): fixed handling of unshared lists with
shared sublists, [Bug 1333036] reported by neuronstorm.
2005-10-19 Donal K. Fellows <dkf@users.sf.net>
* generic/tclIORChan.c (PassReceivedError,PassReceivedErrorInterp):
Fix crash caused by passing -1 as the length to TclNewStringObj(). Only
Tcl_NewStringObj (the function call, not the macro) handles that sort
of thing correctly. This makes ioCmd.test pass again.
2005-10-19 Don Porter <dgp@users.sourceforge.net>
* generic/tclClock.c: Removed some dead code.
* generic/tclCmdIL.c:
* generic/tclCompCmds.c:
* generic/tclDictObj.c:
* generic/tclExecute.c:
* generic/tclLiteral.c:
* generic/tclParseExpr.c:
* generic/tclScan.c:
* generic/tclUtil.c:
* generic/tclVar.c:
2005-10-19 Donal K. Fellows <donal.k.fellows@manchester.ac.uk>
* generic/tclIORChan.c: General cleanup, removing checks that are
unnecessary due to the general contracts of other functions in the
core, converting to using ANSI declarations, etc. Note that nearly the
whole file has changed, but it is often just cosmetic.
2005-10-19 Miguel Sofer <msofer@users.sf.net>
* generic/tclExecute.c (INST_DICT_APPEND, INST_DICT_LAPPEND): fixed
faulty peephole optimisation that can cause crashes, [Bug 1331475]
reported by Aric Bills.
2005-10-18 Don Porter <dgp@users.sourceforge.net>
* generic/tclExecute.c: Added optimization for I32L64 systems to avoid
using bignums to perform int multiplies. The improvement shows up most
dramatically in tclbench's matrix.bench.
2005-10-15 Don Porter <dgp@users.sourceforge.net>
* generic/tclExecute.c: Restored some optimizations of the
INST_INCR_SCALAR1_IMM opcode.
2005-10-14 Zoran Vasiljevic <vasiljevic@users.sourceforge.net>
* generic/tclIO.c (Tcl_ClearChannelHandlers): removed change dated
2005-10-04 (see below). Look into [Bug 1323992] for detailed
discussion.
* generic/tcl.h: Fixed bad definition of CRTEXPORT which should have
been CRTIMPORT rather. This broke compilation of generic/tclMain.c and
was probably introduced by mistake while applying the fix for [Bug
1256937] below.
2005-10-14 Kevin Kenny <kennykb@acm.org>
* generic/tclExecute.c (TclIncrObj, TclExecuteByteCode): Tidied up a
couple of infelicitous do {...} while(0) constructs.
2005-10-14 Pat Thoyts <patthoyts@users.sourceforge.net>
* generic/tcl.h: Fix for [Bug 1256937] - correctly decorate
* generic/tclMain.c: imported functions from msvcrt in static builds.
2005-10-13 Donal K. Fellows <donal.k.fellows@man.ac.uk>
* tests/format.test: "Forward"-port of test updates relating to [Bug
1284178]. The bug itself was fixed by TIP#237.
2005-10-13 Zoran Vasiljevic <vasiljevic@users.sourceforge.net>
* generic/tclIO.c (Tcl_ClearChannelHandlers): temporary ifdef
TCL_THREADS changes done to de-activate pending event processing when
channel is being closed/cutted.
2005-10-13 Don Porter <dgp@users.sourceforge.net>
* generic/tclExecute.c: Removed obsolete use of NO_ERRNO_H.
* tools/man2tcl.c:
* unix/tcl.m4:
* unix/tclConfig.h.in:
* win/configure.in:
* unix/configure: autoconf-2.59
* win/configure:
* compat/tclErrno.h: Removed obsolete file.
* generic/tclStrToD.c (TclParseNumber): Missing goto caused crash when
parsing "Na". [Bug 1325833]
2005-10-12 Don Porter <dgp@users.sourceforge.net>
* generic/tclExecute.c (GetNumberFromObj): Restored some lost
optimizations for empty string values. We avoid cost of a call to
TclParseNumber just to tell us an empty string isn't a number.
2005-10-12 Donal K. Fellows <dkf@users.sf.net>
* generic/tclPathObj.c (SetFsPathFromAny): TclGetString macro must not
be combined with post-increment arguments. [Bug 1325099]
2005-10-12 Kevin Kenny <kennykb@acm.org>
* generic/tclExecute.c (Tcl_ExecuteByteCode, TclIncrObj): Several
common cases inlined in hopes of gaining a little performance in [incr]
2005-10-10 Miguel Sofer <msofer@users.sf.net>
* generic/tclCompCmds.c: New convenience macro CompileTokens().
2005-10-10 Don Porter <dgp@users.sourceforge.net>
* generic/tclExecute.c: Corrections to the NO_WIDE_TYPE build. Also
added missing "break" to a switch that broke wide XOR operations.
2005-10-10 Donal K. Fellows <donal.k.fellows@man.ac.uk>
* generic/tclInterp.c (DeleteScriptLimitCallback)
(SetScriptLimitCallback): Improve the interlocking between the script
limit callback record and the hash table of current such records, to
prevent crashes in callbacks that create callbacks.
(Tcl_LimitSetTime): Reset the correct flag. Problem reported by
Nicolas Castagne <castagne@imag.fr> on comp.lang.tcl
2005-10-10 Miguel Sofer <msofer@users.sf.net>
* generic/tclExecute.c: Fixing errors in last commit. (Two commits, the
second removes wrong comment).
2005-10-09 Miguel Sofer <msofer@users.sf.net>
* generic/tclBasic.c:
* generic/tclExecute.c:
* generic/tclStrToD.c:
* generic/tclStringObj.c: Initialise variables to avoid compiler
warnings ([Bug 1320818] among others).
2005-10-08 Don Porter <dgp@users.sourceforge.net>
TIP#237 IMPLEMENTATION
[kennykb-numerics-branch] Resynchronized with the HEAD; at this
checkpoint [-rkennykb-numerics-branch-20051008], the HEAD and
kennykb-numerics-branch contain identical code.
[kennykb-numerics-branch] Merge updates from HEAD
* generic/tclExecute.c: More performance macros and special handling of
the wide integer type for performance on 32-bit systems.
2005-10-07 Don Porter <dgp@users.sourceforge.net>
[kennykb-numerics-branch]
* generic/tclExecute.c: Macro GetNumberFromObj() is version of
TclGetNumberFromObj() that saves a function call for common uses.
* generic/tclInt.h: Made #undef NO_WIDE_TYPE the default on 32-bit
systems. Being able to use 64-bit values without leaping to mp_int
should help with performance.
* generic/tclObj.c: Bug fixes in the #undef NO_WIDE_TYPE
* generic/tclExecute.c: configuration.
* generic/tclExecute.c: Improved performance of comparison opcodes and
bitwise operations and removed yet more dead code.
2005-10-07 Jeff Hobbs <jeffh@ActiveState.com>
* unix/tclUnixFCmd.c (TraverseUnixTree): Adjust 2004-11-11 change to
* tests/fCmd.test (fCmd-20.2): account for NFS special files
with a readdir rewind threshold. [Bug 1034337]
2005-10-06 Don Porter <dgp@users.sourceforge.net>
[kennykb-numerics-branch]
* generic/tclExecute.c: Improved performance of INST_RSHIFT and
INST_LSHIFT.
2005-10-05 Don Porter <dgp@users.sourceforge.net>
[kennykb-numerics-branch]
* generic/tclExecute.c: Improved performance of INST_MULT, INST_DIV,
INST_ADD, and INST_SUB and replaced a "goto... label" with a "break
from loop" in TclIncrObj() and removed some dead code.
2005-10-05 Andreas Kupries <andreask@activestate.com>
* generic/tclPipe.c (TclCreatePipeline): Fixed [Bug 1109294]. Applied
the patch provided by David Gravereaux.
* doc/CrtChannel.3: Fixed [Bug 1104682], by application of David
Welton's patch for it, and added a note about wideSeekProc.
* generic/tclIORChan.c (RcClose): Removed unreachable panic/return
statements. This fixes the remainder of [Bug 1286256].
2005-10-05 Jeff Hobbs <jeffh@ActiveState.com>
* tests/env.test (env-6.1):
* win/tclWinPort.h: define USE_PUTENV_FOR_UNSET 1
* generic/tclEnv.c (TclSetEnv, TclUnsetEnv): add USE_PUTENV_FOR_UNSET
to existing USE_PUTENV define to account for various systems that have
putenv(), but can't unset env vars with it. Note difference between
Windows and Linux for actually unsetting the env var (use of '=').
Correct the resizing of the environ array. We assume that we are in
full ownership, but that's not correct.[Bug 979640]
2005-10-04 Don Porter <dgp@users.sourceforge.net>
[kennykb-numerics-branch]
* generic/tclExecute.c: Updated TclIncrObj() to more efficiently add
native long integers. Also updated IllegalExprOperandType and the
INST_UMINUS, INST_UPLUS, INST_BITNOT, and INST_TRY_CVT_TO_NUMERIC
sections for performance.
* generic/tclBasic.c: Updated more callers to make use of
TclGetNumberFromObj. Removed some dead code.
2005-10-04 Jeff Hobbs <jeffh@ActiveState.com>
* win/tclWinSerial.c (SerialSetOptionProc): free argv [Bug 1067708]
* tests/http.test: do not URI encode -._~ according
* library/http/http.tcl (init): to RFC3986. [Bug 1182373] (aho)
* unix/tclLoadShl.c (TclpDlopen): use DYNAMIC_PATH on second shl_load
only. [Bug 1204237]
* doc/scan.n: scan %[] requires "one or more chars" [Bug 1277503]
* tests/winFile.test (getuser): allow valid Windows usernames. [Bug
1311285]
* generic/tclParse.c (Tcl_ParseCommand): add code that recognizes {} in
addition to {expand} for word expansion (make with
-DALLOW_EMPTY_EXPAND).
2005-10-04 Zoran Vasiljevic <vasiljevic@users.sourceforge.net>
* generic/tclIO.c (Tcl_ClearChannelHandlers): now deletes any
outstanding timer for the channel. Also, prevents events still in the
event queue from triggering on the current channel.
* generic/tclTimer.c (Tcl_DeleteTimerHandler): bail out early if passed
NULL argument.
2005-10-03 Don Porter <dgp@users.sourceforge.net>
[kennykb-numerics-branch]
* generic/tclBasic.c: Re-implemented ExprRoundFunc and
ExprEntierFunc to use TclGetNumberFromObj.
* generic/tclInt.h: Added new routine TclGetNumberFromObj to
* generic/tclObj.c: provide efficient access to the actual
internal rep of a numeric Tcl_Obj without conversions.
2005-10-03 Kevin Kenny <kennykb@acm.org>
* tools/loadICU.tcl: Changed the file names of message catalogs to
lowercase.
* tools/makeTestCases.tcl:
* library/tzdata/*: Olson's tzdata2005n.tar.gz. Includes new DST
rules for USA and a number of changes to other locales.
* tests/clock.test: Regenerated for new US DST rules.
2005-09-30 Don Porter <dgp@users.sourceforge.net>
* generic/tclMain.c: Separate encoding conversion of command line
arguments from list formatting. [Bug 1306162].
2005-09-30 Don Porter <dgp@users.sourceforge.net>