-
Notifications
You must be signed in to change notification settings - Fork 0
/
ChangeLog.2004
4619 lines (3406 loc) · 177 KB
/
ChangeLog.2004
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
2004-12-29 Jeff Hobbs <[email protected]>
* win/tcl.m4, win/configure: update MSVC CFLAGS_OPT to -O2, remove -Gs
(included in -O2) and -GD (outdated). Use "link -lib" instead of "lib"
binary and remove -YX for MSVC7 portability. Add -fomit-frame-pointer
for gcc OPT compiles. [Bug 1092952, 1091967] Align LIBS_GUI with Tk
head needs.
2004-12-29 Kevin B. Kenny <[email protected]>
* generic/tclDate.c: Regen
* generic/tclGetDate.y (TclDatelex): Fixed a problem where a
four-digit group with >=2 leading zeroes appeared to be a two-digit
group, leading to misinterpreting the time 0012 as 1200. [Bug 1090413]
* library/clock.tcl: Added code to interpret correctly months outside
the range 01-12 as reduced modulo 12 with a corresponding adjustment
to the year. [Bug 1092789]
* tests/clock.test: Added regression test cases for the above two bugs
* unix/Makefile.in: Added --no-lines to the 'bison' command line to
* win/Makefile.in: help constrain the number of diffs in a cvs checkin
2004-12-24 Miguel Sofer <[email protected]>
* generic/tclCompile.c:
* generic/tclCompile.h:
* generic/tclExecute.c:
* generic/tclInt.h:
* generic/tclLiteral.c:
* generic/tclProc.c:
Avoid sharing cmdName literals accross namespaces, and generalise
usage of the TclRegisterNewLiteral macro. [Patch 1090905]
2004-12-20 Miguel Sofer <[email protected]>
* generic/tclCompile.c: moved TclInitCompiledLocals to tclProc.c
* generic/tclProc.c: new static InitCompiledLocals to allow for a
single pass over the proc's arguments at proc load time (instead of
two as previously). TclObjInterpProc() now allocates the
compiledLocals on the tcl execution stack, using the new
TclStackAlloc/Free functions.
2004-12-16 Donal K. Fellows <[email protected]>
* generic/tclInterp.c (Tcl_LimitSetTime, TimeLimitCallback):
(TclLimitRemoveAllHandlers, TclInitLimitSupport): Set a timer event to
trigger when the time limit runs out. All the time limit actually does
is check to see if the time limit has been exceeded, but this is
enough to fix [Bug 1085023].
* generic/tclInt.h (struct Interp): Added a field to hold the token
for the timer event handler associated with the current time limit.
* generic/tclEvent.c (Tcl_UpdateObjCmd, Tcl_VwaitObjCmd): Add error
message when limit exceeded.
* tests/interp.test (interp-34.[89]): Check that time limits handle
the two cases reported in [Bug 1085023]
* generic/tclTimer.c (TclCreateAbsoluteTimerHandler): New internal
function that allows setting a timer handler that will be triggered at
(or after) a specific time instead of at some number of milliseconds
in the future. This is a candidate for future exposure via a TIP.
2004-12-15 Miguel Sofer <[email protected]>
* generic/tclBasic.c:
* generic/tclExecute.c:
* generic/tclInt.decls:
* generic/tclIntDecls.h:
* generic/tclNamesp.c:
* generic/tclProc.c:
* generic/tclStubInit.c:
* generic/tclTest.c: Added two new functions to allocate memory from
the execution stack (TclStackAlloc, TclStackFree). Added functions
TclPushStackFrame and TclPopStackFrame that do the work of
Tcl_PushCallFrame and Tcl_PopCallFrame, but using frames allocated in
the execution stack - i.e., heap instead of C-stack. The core uses
these two new functions exclusively; the old ones remain for backwards
compat, as at least two popular extensions (itcl, xotcl) are known to
use them.
2004-12-14 Miguel Sofer <[email protected]>
* generic/tclCmdIL.c:
* generic/tclInt.h:
* generic/tclProc.c:
* generic/tclVar.c: changing the isProcCallFrame field of the
CallFrame struct from a 0/1 field to flags. Should be perfectly
backwards compatible.
2004-12-14 Don Porter <[email protected]>
* unix/configure.in: Added special processing to remove "$U" from
libraries in the LIBOBJS value. This is an auto-make-ism we need to
avoid. [Bug 1081541]
* unix/configure: autoconf-2.57
2004-12-13 Don Porter <[email protected]>
* generic/tcl.h: Restored extern "C" guards so that C++ code sees
function pointer typedef linkage consistent with earlier Tcl releases.
[Bug 1082349]
* generic/tclEncoding.c: Plugged some memory leaks. Thanks to Rolf Ade
* generic/tclUtil.c: for reports and testing [Bug 1083082]
2004-12-13 Kevin B. Kenny <[email protected]>
* doc/clock.n: Clarify that the [clock scan] command does not accept
the full range of ISO8601 point-in-time formats. [Bug 1075433]
2004-12-12 Miguel Sofer <[email protected]>
* generic/tclVar.c (TclArrayObjCmd - ARRAY_NAMES): leaking an object
[Bug 1084111] - thanks to Rolf Ade.
2004-12-12 Miguel Sofer <[email protected]>
* generic/tclObj.c (TclSetCmdNameObj): special handling for fully
qualified command names (as in fix [Patch 456668]).
2004-12-11 Miguel Sofer <[email protected]>
* generic/tclInt.h:
* generic/tclNamesp.c: converting the static function
GetNamespaceFromObj() to MODULE_SCOPE TclGetNamespaceFromObj().
2004-12-10 Donal K. Fellows <[email protected]>
* tools/tcl.wse.in, unix/tcl.spec, win/README.binary, README:
* win/configure.in, unix/configure.in, generic/tcl.h:
Bumped version number to 8.5a3 to distinguish HEAD of CVS development
from the recent 8.5a2 release.
2004-12-10 Miguel Sofer <[email protected]>
* generic/tclCompile.c (TclInitCompiledLocals):
* generic/tclCompile.h:
* generic/tclInt.h:
* generic/tclProc.c (TclObjInterpProc, TclCreateProc): optimised
loops that initialise a proc's arguments and compiled local
variables, removing tests from inner loops.
2004-12-10 Donal K. Fellows <[email protected]>
* generic/tclInt.h: Move ensemble API decls here from tclNamesp.c
2004-12-09 Donal K. Fellows <[email protected]>
* generic/tclNamesp.c (TclMakeEnsembleCmd, TclSetEnsemble*)
(TclSetEnsemble*, TclFindEnsemble): Build an internal API for creating
and manipulating ensembles; they can be deleted using the normal
command-deletion API.
* doc/Async.3: Reword for better grammar, better nroff and get the
flag name right. (Reported by David Welton.)
2004-12-07 Don Porter <[email protected]>
* tests/unixInit.test (2.1-4): Added constraints so that when a value
of TCL_LIBRARY is required for process initialization, we skip the
tests that mess with that value.
2004-12-07 Donal K. Fellows <[email protected]>
*** 8.5a2 TAGGED FOR RELEASE ***
* unix/Makefile.in: add library/{tzdata,msgs} to dist target (kbk)
* doc/foreach.n: Adjust tabs to be friendlier to some HTML
converters. [Bug 1078760]
2004-12-06 Jeff Hobbs <[email protected]>
* unix/tclUnixNotfy.c (NotifierThreadProc): init numFdBits
[Bug 1079286]
* doc/error.n, doc/SaveResult.3, doc/Thread.3: minor nroff typos
2004-12-06 Don Porter <[email protected]>
* tests/safe.test: Trim auto_path to improve performance [1080039]
* tests/msgcat.test: makeFile/removeFile cleanup [1079117]
2004-12-04 Don Porter <[email protected]>
* generic/tclEncoding.c: Different fix for [Bug 1077005].
* generic/tclEvent.c: Broke apart TclpSetInitialEncodings() on
* generic/tclInt.h: Windows into TclpSetInterfaces(), that is
* unix/tclUnixInit.c: fundamentally essential, and the initialization
* win/tclWinInit.c: of the system encoding, which is not. Made
the TclpSetInterfaces call part of TclInitSubsystems so it cannot be
overlooked.
2004-12-03 Jeff Hobbs <[email protected]>
* changes: updated for 8.5a2 release
2004-12-02 Don Porter <[email protected]>
* generic/tclUtil.c (TclSetProcessGlobalValue): Handle the case where
a ProcessGlobalValue might be assigned to itself.
* generic/tclEncoding.c (MakeFileMap): Correct refcounting errors
managing values returned by TclPathPart (with refCount of 1!) that led
to a memory leak. [Bug 1077474].
2004-12-02 Vince Darley <[email protected]>
* generic/tclPathObj.c: fix and new tests for [Bug 1074671] to ensure
* tests/fileSystem.test: tilde paths are not returned specially by
'glob'.
2004-12-02 Kevin B. Kenny <[email protected]>
* win/Makefile.in: Added a 'sed' in the setting of ROOT_DIR_NATIVE to
compensate for a bug in cygpath (at least version 1.36) that leaves a
trailing backslash on the end of the converted path.
2004-12-02 Donal K. Fellows <[email protected]>
* generic/tclInterp.c (Alias,Target,Master): Rewrote these so that the
aliases that refer to an interpreter are stored in a list and not a
hashtable (which was only ever a convenience, and forced the use of a
global mutex to generate keys!) [FRQ 1077210]
* generic/tclNamesp.c (numNsCreated): Moved into thread-local storage
to remove a global mutex. [FRQ 1077210]
2004-12-01 Don Porter <[email protected]>
* generic/tclUtil.c (TclGetProcessGlobalValue): Narrowed the scope of
mutex locks.
* generic/tclUtil.c: Updated Tcl_GetNameOfExecutable() to
* generic/tclEncoding.c: make use of a ProcessGlobalValue for
* generic/tclEvent.c: storing the executable name. Added
internal routines Tcl(Get|Set)ObjNameOfExecutable() to access that
storage in Tcl_Obj, rather than string format.
* unix/tclUnixFile.c: Rewrote TclpFindExecutable() to use
* win/tclWinFile.c: TclSetObjNameOfExecutable to store the
executable name it computes.
* generic/tclInt.h: Added internal stub entries for
* generic/tclInt.decls: TclpFindExecutable and
Tcl(Get|Set)ObjNameOfExecutable.
* generic/tclIntDecls.h: make genstubs
* generic/tclStubInit.c:
* generic/tclCmdIL.c: Retrieve executable name in Tcl_Obj form
* win/tclWinPipe.c: instead of string form.
* unix/tclUnixTest.c: Update [testfindexecutable] command to use new
internal interfaces.
* generic/tclEncoding.c: Moved TclpSetInitialEncodings() call
from Tcl_FindExecutable() into TclInitEncodingSubsystem(). This is
important on Windows where it establishes whether the "ascii" or
"unicode" set of system routines will be used, and that needs to be
done earlier to support filesystem operations. [Bug 1077005]
2004-12-01 Donal K. Fellows <[email protected]>
* tests/winDde.test: Rewritten to use tcltest2 features more
thoroughly (reducing the [catch] count!) and fix the problem with
winDde-6.1 being out of synch with the implementation.
2004-11-30 Don Porter <[email protected]>
* library/init.tcl ([unknown]): Restored the save/restore of the
variables ::errorCode and ::errorInfo. This is needed when the
[::bgerror] command is auto-loaded (as it is by Tk).
Patch 976520 reworks several of the details involved with
startup/initialization of the Tcl library, focused on the activities
of Tcl_FindExecutable().
* generic/tclIO.c: Removed bogus claim in comment that encoding
"iso8859-1" is "built-in" to Tcl.
* generic/tclInt.h: Created a new struct ProcessGlobalValue,
* generic/tclUtil.c: routines Tcl(Get|Set)ProcessGlobalValue, and
function type TclInitProcessGlobalValueProc. Together, these take care
of the housekeeping for "values" (things that can be held in a
Tcl_Obj) that are global across a whole process. That is, they are
shared among multiple threads, and epoch and mutex protection must
govern the validity of cached copies maintained in each thread.
* generic/tclNotify.c: Modified TclInitNotifier() to tolerate being
called multiple times in the same thread.
* generic/tclEvent.c: Dropped the unused argv0 argument to
TclInitSubsystems(). Removed machinery to unsure only one
TclInitNotifier() call per thread, now that that is safe. Converted
Tcl(Get|Set)LibraryPath to use a ProcessGlobalValue, and moved them to
tclEncoding.c.
* generic/tclBasic.c: Updated caller.
* generic/tclInt.h: TclpFindExecutable now returns void.
* unix/tclUnixFile.c:
* win/tclWinFile.c:
* win/tclWinPipe.c:
* generic/tclEncoding.c: Built new encoding search initialization on a
foundation of ProcessGlobalValues, exposing new routines
Tcl(Get|Set)EncodingSearchPath. A cache of a map from encoding name to
directory pathname keeps track of where encodings are available for
loading. Tcl_FindExecutable greatly simplified into just three
function calls. The "library path" is now misnamed, as its only
remaining purpose is as a foundation for the default encoding search
path.
* generic/tclInterp.c: Inlined the initScript that is evaluated by
Tcl_Init(). Added verification after initScript evaluation that Tcl
can find its installed *.enc files, and that it has initialized
[encoding system] in agreement with what the environment expects.
[tclInit] no longer driven by the value of $::tcl_libPath; it largely
constructs its own search path now, rather than attempt to share one
with the encoding system.
* unix/tclUnixInit.c: TclpSetInitialEncodings factored so that a new
* win/tclWinInit.c: routine TclpGetEncodingNameFromEnvironment can
reveal that Tcl thinks the [encoding system] should be, even when an
incomplete encoding search path, or a missing *.enc file won't allow
that initialization to succeed. TclpInitLibraryPath reworked as an
initializer of a ProcessGlobalValue.
* unix/tclUnixTest.c: Update implementations of [testfindexecutable],
[testgetdefenc], and [testsetdefenc].
* tests/unixInit.test: Corrected tests to operate properly even when
a value of TCL_LIBRARY is required to find encodings.
* generic/tclInt.decls: New internal stubs: TclGetEncodingSearchPath,
TclSetEncodingSearchPath, TclpGetEncodingNameFromEnvironment. These
are candidates for public exposure by future TIPs.
* generic/tclIntDecls.h: make genstubs
* generic/tclStubInit.c:
* generic/tclTest.c: Updated [testencoding] to use
* tests/encoding.test: Tcl(Get|Set)EncodingSearchPath. Updated tests.
2004-11-30 Kevin B. Kenny <[email protected]>
* library/clock.tcl: Corrected the regular expressions that match a
time zone to allow for time zones specified as +HH or -HH.
* tests/clock.test: Added regression test case for the above issue.
Thanks to Rolf Ade for reporting this issue [http://wiki.tcl.tk/13094]
* win/tclWinDde.c (Tcl_DdeObjCmd): Corrected a typo that caused a
compilation failure on VC++.
2004-11-29 Andreas Kupries <[email protected]>
* win/Makefile.in (install-libraries): Brought entry '2004-10-26 Don
Porter (Tcl Modules)' into the windows world, actually the
win/configure buildsystem. The other windows buildsystems (.vc, .bc)
still have to be updated as well.
2004-11-26 Andreas Kupries <[email protected]>
* win/tclWinDde.c (ExecuteRemoteObject): Removed bogus semicolon found
at the end of the header for the function definition, terminating it
early and preventing a compile. This is likely a fix for '2004-11-25
Donal'. I have to conclude that it is also unknown if the other
changes to this file actually pass the testsuite. Running testsuite
... They don't. winDde-6.1 fails. This is only a message discrepance,
i.e. not too bad. Leaving resolution of that to Pat and Donal.
2004-11-26 Don Porter <[email protected]>
* library/auto.tcl (tcl_findLibrary): Made sure the uniquifying
operations on the search path does not also normalize. [Bug 1072136]
2004-11-26 Donal K. Fellows <[email protected]>
* unix/configure.in: Simplify the code to check for correctness of
strstr, strtoul and strtod.
* unix/tcl.m4 (SC_TCL_CHECK_BROKEN_FUNC): Split a complex stanza out
of configure.in into its own function. Also force it to do the right
thing with cacheing of results of AC_TRY_RUN to deal with issue raised
in [Patch 1073524]
* doc/foreach.n: Added simple example. [FRQ 1073334]
2004-11-25 Donal K. Fellows <[email protected]>
* generic/tclProc.c (TclObjInterpProc): Make it so that only
* generic/tclIndexObj.c (Tcl_WrongNumArgs): [proc] instances do
* tests/indexObj.test (indexObj-5.7): quoting of their first
arguments, so keeping [Bug 942757] fixed and making [Bug 1066837] be
fixed as well. Done with a load of #ifdef-ery because this hack is so
ugly nobody should keep it around once Itcl's fixed.
2004-11-25 Reinhard Max <[email protected]>
* tests/tcltest.test: The order in which [glob] returns the file names
is undefined, so tests should not depend on it.
2004-11-25 Zoran Vasiljevic <[email protected]>
* doc/Thread.3:
* doc/Notifier.3: Added changes from the core-8-4-branch
2004-11-25 Donal K. Fellows <[email protected]>
* doc/dde.n: Synchronized the documentation of the commands with the
header of the docs and what the package actually does. Thanks to
Andreas Kupries for spotting this.
* win/tclWinDde.c (Tcl_DdeObjCmd): Much cleanup of argument parsing
code.
2004-11-24 David Gravereaux <[email protected]>
* generic/tclPort.h: Relative include of tclWinPort.h returned as it
was requiring me set -I$(tcl_root)/win for my extensions that need to
include tclInt.h and doesn't appear to serve any purpose for windows
builds.
2004-11-24 Kevin B. Kenny <[email protected]>
* unix/tcl.m4 (SC_ENABLE_THREADS): Corrected bad check for 3-argument
readdir_r [Bug 1001325].
* unix/configure: Regenerated.
* unix/tclUnixNotfy.c: Corrected all uses of 'select' to manage their
masks using the FD_CLR, FD_ISSET, FD_SET, and FD_ZERO macros rather
than bit-whacking that failed under Solaris-Sparc-64. [Bug 1071807]
* win/tclWinInit.c (TclpInitLibraryPath): Removed unused vars 'pathc'
and 'pathv' that caused compilation problems on VC++ with
--enable-symbols.
2004-11-24 Don Porter <[email protected]>
* unix/tcl.m4 (SC_ENABLE_THREADS): Corrected failure to determine the
number of arguments for readdir_r on SunOS systems. [Bug 1071701]
* unix/configure: autoconf-2.57
* generic/tclCmdIL.c (InfoVarsCmd): Corrected segfault in new
* tests/info.test (info-19.6): trivial matching branch [Bug 1072654]
2004-11-24 Donal K. Fellows <[email protected]>
* tools/man2html.tcl, tools/man2html1.tcl: Update to use Tcl 8.4.
* tools/man2html2.tcl: Fix broken .SS handling.
2004-11-23 Donal K. Fellows <[email protected]>
* unix/Makefile.in: Add (commented-out) code to integrate tclConfig.h
into the dependency tree and 'make distclean'. [Bug 1068171]
* generic/tclResult.c (Tcl_AppendResultVA): Remove call to
Tcl_GetStringResult to speed up repeated calls to Tcl_AppendResult
with the side effect that code that wants to access interp->result
should always call Tcl_GetStringResult first. See [Patch 1041072]
discussion for more details.
2004-11-22 Mo DeJong <[email protected]>
* unix/configure: Regen.
* unix/tcl.m4 (SC_TCL_64BIT_FLAGS): Define HAVE_TYPE_OFF64_T only when
off64_t, open64(), and lseek64() are defined. IRIX 5.3 is known to not
include an open64 function. [Bug 1030465]
2004-11-22 Mo DeJong <[email protected]>
* unix/configure: Regen.
* unix/tcl.m4 (SC_ENABLE_THREADS): Check for a 2 argument version of
readdir_r that is known to exists under IRIX 5.3.
* unix/tclUnixThrd.c (TclpReaddir): Use either 2 arg or 3 arg version
of readdir_r. [Bug 1001325]
2004-11-22 Don Porter <[email protected]>
* unix/tclUnixInit.c (TclpInitLibraryPath): Purged dead code that used
* win/tclWinInit.c (TclpInitLibraryPath): to extend the "library
path". Search path construction for init.tcl is now done within the
[tclInit] proc.
* generic/tclInterp.c: Restored several directories to the search
* tests/unixInit.test: path used to locate init.tcl within [tclInit].
This change does not restore any directories to the encoding search
path, so should still avoid the price of an unreasonably large number
of filesystem accesses during encoding initialization at startup
[Bug 976438]
2004-11-22 Vince Darley <[email protected]>
* generic/tclPathObj.c: fix and new test for [Bug 1043129] in the
* tests/fileSystem.test: treatment of backslashes in file join on
Windows.
2004-11-21 Don Porter <[email protected]>
* doc/AddErrInfo.3: Typo corrections (Thanks Daniel South).
* doc/interp.n:
2004-11-19 Don Porter <[email protected]>
* doc/AddErrInfo.3: Docs for Tcl_(Get|Set)ReturnOptions. [TIP 227]
* doc/AddErrInfo.3:
* doc/Async.3: Documentation updates to replace references
* doc/BackgdErr.3: to global variable ::errorInfo and ::errorCode
* doc/SaveResult.3: and to the ::bgerror command with references
* doc/after.n: to their preferred replacements, the
* doc/bgerror.n: -errorinfo and -errorcode return options,
* doc/error.n: the Tcl_*InterpState routines, and the
* doc/exec.n: [interp bgerror] command.
* doc/exit.n:
* doc/fileevent.n:
* doc/interp.n:
* doc/return.n:
* doc/tclvars.n:
* doc/update.n:
* tests/unixInit.test: Removed "knownBug" constraints to prompt bug
fixing before 8.5a2 release.
2004-11-19 Daniel Steffen <[email protected]>
* macosx/Makefile:
* unix/configure.in:
* unix/tclUnixInit.c (MacOSXGetLibraryPath): changed detection of tcl
framework build when determining tclLibPath from overloaded
TCL_LIBRARY to configuration define TCL_FRAMEWORK. [Bug 1068088]
* unix/configure: autoconf-2.57
* unix/tclConfig.h.in: autoheader-2.57
2004-11-18 Don Porter <[email protected]>
* doc/SaveResult.3: Documentation for Tcl_*InterpState (TIP 226).
* generic/tclEvent.c (HandleBgErrors): Simplified program flow.
* tests/basic.test: Updated functional (not testing) uses of
* tests/io.test: [bgerror] to make use of [interp bgerror].
* tests/socket.test:
* tests/timer.test:
* tests/interp.test (interp-36.*): [interp bgerror] tests.
* generic/tclInterp.c: Corrected [interp bgerror] error messages.
2004-11-18 Reinhard Max <[email protected]>
* unix/tcl.m4 (SC_CONFIG_MANPAGES): Applied an improved version of
* unix/configure.in: [Patch 996085], that introduces
* unix/Makefile.in: --enable-man-suffix.
* unix/installManPage: added
* unix/mkLinks.tcl: removed
* unix/mkLinks: removed
* unix/configure: generated
* unix/Makefile.in: Don't install tclConfig.h .
2004-11-17 Don Porter <[email protected]>
* unix/configure.in: The change below reveals that the public data
type Tcl_StatBuf relies on config information. For now, disabled the
use of the tclConfig.h file until its full impact on Tcl's interface
can be assessed.
* unix/configure: autoconf-2.57
* generic/tcl.h: Moved the #include "tclConfig.h" out of
* generic/tclInt.h: tcl.h. The config settings are not part of
* generic/tclPort.: the public interface, and having it there
breaks compiled against uninstalled Tcl and extensions using
autoconf-2.5*.
2004-11-16 Jeff Hobbs <[email protected]>
* unix/tclUnixChan.c (TtySetOptionProc): fixed crash configuring
-ttycontrol on a channel. [Bug 1067708]
2004-11-16 Don Porter <[email protected]>
* generic/tclIOUtil.c (TclFSEpochOk): There were two code paths via
which the thread copy of filesystemEpoch could be synched with the
master copy, but only one kept the filesystem list cache up to date.
Fix routes everything through a single code path. [Bug 1035775].
2004-11-16 Donal K. Fellows <[email protected]>
* unix/tcl.m4 (SC_CONFIG_CFLAGS): Stop architecture flags to 'ld' from
getting lost when [load] is disabled. [Bug 1016796]
2004-11-16 Daniel Steffen <[email protected]>
* generic/tcl.h:
* unix/configure.in: changed HAVE_CONFIG_H to HAVE_TCL_CONFIG_H.
* unix/configure: autoconf-2.57
2004-11-15 Don Porter <[email protected]>
* generic/tclInt.h: Added comment warning that the old ERR_IN_PROGRESS
and ERROR_CODE_SET flag values should not be re-used for the sake of
those extensions that have accessed them.
* generic/tclCmdMZ.c (Tcl_TraceObjCmd): Fixed Bug 1065378 which failed
* tests/trace.test (trace-33.1): to permit a variable trace
created with [trace variable] to be destroyed with [trace remove].
Thanks to Keith Vetter for the report.
2004-11-15 Donal K. Fellows <[email protected]>
* doc/tclvars.n: Added section to documentation on global variables
that are specific to tclsh and wish. [Patch 1065732]
2004-11-12 Jeff Hobbs <[email protected]>
* generic/tclEncoding.c (TableFromUtfProc): correct crash condition
when TCL_UTF_MAX == 6. [Bug 1004065]
2004-11-12 Donal K. Fellows <[email protected]>
* doc/interp.n: Basic documentation of the TIP#221 API.
2004-11-12 Don Porter <[email protected]>
TIP #221 IMPLEMENTATION
* generic/tclBasic.c: Define [::tcl::Bgerror] in new interps.
* generic/tclEvent.c: Update Tcl_BackgroundError to make use of the
registered [interp bgerror] command.
* generic/tclInterp.c: New [interp bgerror] subcommand.
* tests/interp.test: syntax tests updated.
TIP #226 IMPLEMENTATION
* generic/tcl.decls: Stubs for Tcl_(Save|Restore|Discard)InterpState
* generic/tcl.h: New public opaque type, Tcl_InterpState.
* generic/tclInt.h: Drop old private declarations. Add
Tcl(Get|Set)BgErrorHandler
* generic/tclResult.c: Tcl_*InterpState implementations.
* generic/tclDictObj.c: Update callers.
* generic/tclIOGT.c:
* generic/tclTrace.c:
TIP #227 IMPLEMENTATION
* generic/tcl.decls: Stubs for Tcl_(Get|Set)ReturnOptions.
* generic/tclInt.h: Drop old private declarations.
* generic/tclResult.c: Tcl_*ReturnOptions implementations.
* generic/tclCmdAH.c: Update callers.
* generic/tclMain.c:
* generic/tclDecls.h: make genstubs
* generic/tclStubInit.c:
* unix/tclAppInit.c: Removed tclConfig.h #include, now that tcl.h
takes care of it for us.
* generic/tclInt.h: Moved verification of ptrdiff_t typedef from
* generic/tclExecute.c: multiple .c files into one common header where
* generic/tclVar.c: it is verifiably after tclConfig.h inclusion.
2004-11-12 Daniel Steffen <[email protected]>
* generic/tcl.h:
* generic/tclInt.h:
* unix/Makefile.in: include tclConfig.h from tcl.h and install it as a
public header. Normalized compiler include path order to
-I${BUILD_DIR} -I${UNIX_DIR} -I${GENERIC_DIR}.
* unix/dltest/Makefile.in: add ${BUILD_DIR}/.. to include path to pick
up tclConfig.h.
* unix/tclUnixInit.c: moved check for HAVE_CFBUNDLE define after
#include "tclInt.h" to ensure tclConfig.h has been included.
2004-11-12 Reinhard Max <[email protected]>
* unix/config.h.in:
* unix/tclConfig.h.in: renamed
* unix/Makefile.in: Completed support for config header,
* unix/configure.in: fixed building outside of the unix dir,
* unix/tclAppinit.c: and reflected the name change of config.h.
* generic/tclInt.h:
* unix/configure: generated
2004-11-12 Donal K. Fellows <[email protected]>
* unix/config.h.in: Allow configure to put all the C #defs into
* unix/configure.in: a file (called config.h) so that Unix builds
* unix/tcl.m4: now take far fewer lines of scrollback to
* unix/Makefile.in: proceed (making it less likely that any errors
* generic/tclInt.h: or warnings will get missed).
* unix/tclAppInit.c: Part of the TIP#34 upgrades.
* unix/tcl.m4, unix/tclUnixPort.h: Check for pthread_attr_get_np in
<pthread.h> before forcing the use of <pthread_np.h> to make things
work on NetBSD 2.0. [Bug 1064882]
* doc/binary.n, doc/upvar.n: More minor fixes.
2004-11-12 Daniel Steffen <[email protected]>
* doc/CrtChannel.3:
* doc/Interp.3:
* doc/Limit.3:
* doc/binary.n:
* doc/dict.n:
* doc/tm.n:
* doc/upvar.n: fixed *roff errors uncovered by running 'make html'.
* tools/tcltk-man2html.tcl: added faked support for bullet point
lists, i.e. *nroff ".IP \(bu" syntax.
2004-11-11 Daniel Steffen <[email protected]>
* tests/fCmd.test:
* unix/tclUnixFCmd.c (TraverseUnixTree): added option to rewind() the
readdir() loop whenever the source hierarchy has been modified by
traverseProc (e.g. by deleting files); this is required to ensure
complete traversal of the source hierarchy on certain filesystems like
HFS+. Added test for failing recursive delete on Mac OS X that was due
to this. [Bug 1034337]
* generic/tclListObj.c (Tcl_ListObjReplace): use memmove() instead of
manual copy loop to shift list elements. Decreases time spent in
Tcl_ListObjReplace() from 5.2% to 1.7% of overall runtime of tclbench
on a ppc 7455 (i.e. 200% speed increase). [Patch 1064243]
* generic/tclHash.c: hoisted some constant pointer dereferences out of
loops to eliminate redundant loads that the gcc optimizer didn't deal
with. Decreases time spend in Tcl_FindHashEntry() by 10% over a full
run of the tcl testuite on a ppc 7455. [Patch 1064243]
* tests/fileName.test:
* tests/fileSystem.test:
* tests/io.test:
* tests/msgcat.test:
* tests/tcltest.test:
* tests/unixInit.test: fixed bugs causing failures when running tests
with -tmpdir arg not set to working dir.
* macosx/Makefile: corrected path to html help inside framework.
Prevent parallel make from building several targets at the same time.
* macosx/tclMacOSXFCmd.c (struct fileinfobuf): force struct to be
packed to prevent failures when builing with -malign=natural.
2004-11-10 Andreas Kupries <[email protected]>
* unix/tclUnixChan.c: [Bug 727786]. Exterminated the code marked
DEPRECATED. This code has not been used in over a year now, and we
have no complaints.
2004-11-08 David Gravereaux <[email protected]>
* win/tclWinPipe.c: The pipe channel driver now respects the -blocking
option when closing is the same way the UNIX side works. This is to
avoid a hung shell when exiting due to open pipes that refuse to close
in a graceful manner.
* doc/open.n: Added a note about -blocking 0 and lack of exit status
as it had never been documented. [Bug 947693]
***POTENTIAL INCOMPATIBILITY***
Scripts that use async pipes on windows, must (like the UNIX side) set
-blocking to 1 before calling [close] to receive the exit status.
2004-11-07 David Gravereaux <[email protected]>
* tests/winFile.test: added contraint to winFile-4.0 to prevent it
being run on NT4 [Bug 981829]
2004-11-05 Donal K. Fellows <[email protected]>
* tests/reg.test: Major reorganization so that this file is much
easier for a normal Tcl maintainer to comprehend. The test flags are
still very cryptic, but they appear to have to be that way. The number
of skipped tests has increased, but now the skipped tests have much
more meaningful content.
* tests/tm.test (genpaths): Add a [file normalize] so we pick up
Windows drive letters, etc. [Bug 1053568]
2004-11-04 Don Porter <[email protected]>
* changes: Updates toward an 8.5a2 release.
2004-11-03 Kevin B. Kenny <[email protected]>
* library/clock.tcl (FreeScan): Fixed a bug where scanning "Monday"
with a base time other than midnight incorrectly carried the base time
forward.
* test/clock.test (clock-33.{5,5a}): Made the test failure more
informative.
* tests/clock.test (clock-34.{28,44,45,46}): Removed 'knownBug'
constraints from tests that no longer fail.
Thanks to Don Porter for reporting these.
2004-11-03 David Gravereaux <[email protected]>
* generic/tcl.h: Moved the preprocessor logic
* generic/tclDecls.h: from tclInt.h of setting the
* generic/tclInt.h: TCL_STORAGE_CLASS macro to the
* generic/tclIntDecls.h: tcl*Decls.h files now that no
* generic/tclIntPlatDecls.h: use of EXTERN is left in tclInt.h.
* generic/tclPlatDecls.h: Proto for Tcl_Main moved in tcl.h
* win/tclWinPort.h: to prior the inclusion of the Stubs
headers as they are now resetting TCL_STORAGE_CLASS. Removed
extraineous reset from tclWinPort.h. [Patch 1055668]
* generic/tclCompile.h: Removed extrainious reset of TCL_STORAGE_CLASS
missed in my last edit.
2004-11-03 Don Porter <[email protected]>
* library/init.tcl ([unknown]): Corrections to the 2004-10-25 mods to
Aunt ??? in [unknown]. Flaws revealed by Itcl test suite, which still
apparently relies on this brokenness. Also added comment suggesting
the error message that any code using this hack *ought* to receive in
reply.
* generic/tclTrace.c (TclCallVarTraces): Improved ability to debug
* tests/incr-old.test (incr-old-2.6): errors during variable
* tests/incr.test (incr-{1,2}.28): traces by preserving the
* tests/set.test (set-{2,4}.4): -errorinfo data.
* tests/trace.test (trace-33.1): [Bug 527164]
2004-11-02 David Gravereaux <[email protected]>
* generic/tclInt.h: added a check for #ifdef __cplusplus around the
#define of MODULE_SCOPE. About the only time it would be problem is
when someone is statically linking to Tcl and accessing internals from
a C++ file and has name mangling issues from the lack of "C" after
'extern' [Patch 1055668].
* generic/tclCompile.h: Exchanged use of the EXTERN macro to the new
MODULE_SCOPE macro. Lowered exported internals count by 35. [Patch
1055668]
* win/tclWinInt.h:
* win/tclWinPort.h: exported internals dropped by a count of 14.
* generic/tclFileSystem.h: Added use of MODULE_SCOPE on protos.
* generic/tclRegexp.h: manipulating TCL_STORAGE_CLASS unnecessary.
2004-11-02 Don Porter <[email protected]>
* library/tcltest/tcltest.tcl: Corrected some misleading
* tests/tcltest.test (tcltest-26.1,2): displays of ::errorInfo and
::errorCode information when the -setup, -body, and/or -cleanup scripts
return an unexpected return code. Thanks to Robert Seeger for the fix.
[RFE 1017151].
2004-11-02 Donal K. Fellows <[email protected]>
* generic/tclExecute.c (TclExecuteByteCode): Improved version of the
NaN fix from Miguel Sofer. [Bug 761471]
2004-11-02 Kevin Kenny <[email protected]>
* library/tzdata/America/Cuiaba: Change to DST rules for
* library/tzdata/America/Havana: autumn of 2004.
[ftp://elsie.nci.nih.gov/pub/tzdata2004g.tar.gz]
* tools/tclZIC.tcl: Updated to be compatible with recent changes in
library/clock.tcl.
2004-11-02 Vince Darley <[email protected]>
* win/tclWinFile.c: Simplify TclpUtime to use Tcl_FSGetNativePath, and
add comments.
2004-11-02 Donal K. Fellows <[email protected]>
* generic/tclInt.h: Change uses of EXTERN to MODULE_SCOPE (defined in
this file too to be 'extern' if not overridden) as nothing declared in
tclInt.h is supposed to be visible outside the Tcl core. If there *is*
anything that extensions are actually using, we can open this up later
on. [Patch 1055668]
* doc/CrtChannel.3 (Tcl_GetChannelMode): Add synopsis. [Bug 1058446]
2004-11-01 Kevin B. Kenny <[email protected]>
* win/tclWinFile.c (FromCTime, TclpUtime): Replaced a call to the
Posix 'utime' function with calls to Windows-API equivalents, to avoid
a bug where the VC++ versions misconvert times across a Daylight
Saving Time boundary. [Bug 926106]
* win/tclWinInt.h (TclWinProcs):
* win/tclWin32Dll.c (asciiProcs, unicodeProcs): Removed now-unused
reference to 'utime'.
* tests/cmdAH.test (cmdAH-24.12): Added test case for the above bug.
2004-11-01 Donal K. Fellows <[email protected]>
* generic/tclExecute.c (TclExecuteByteCode): Make INST_EQ and friends
handle NaN correctly in all cases. [Bug 761471]
* generic/tclNamesp.c (NamespaceInscopeCmd): Make the error message
generation the same as in NamespaceEvalCmd().
(Tcl_Import): Rationalized to use Tcl_EvalObjv().
2004-10-31 Donal K. Fellows <[email protected]>
* tests/io.test (io-40.3): Convert umask2 test constraint into a form
that most people will be able to satisfy.
* tests/cmdAH.test (cmdAH-8.45): Removed broken test constraint. It
didn't do what it was intended to do, and it implied the other correct
constraint. [Bug 1053908]
* generic/tclCmdIL.c (InfoGlobalsCmd):
* tests/info.test (info-8.4): Strip leading global-namespace
specifiers from the pattern argument. [Bug 1057461]
2004-10-30 Kevin Kenny <[email protected]>
* generic/clock.c: Replaced WIN32 macro with __WIN32__. [Bug 1054357].
Thanks to David Gravereaux for the patch.
* win/tclWinFile.c: Removed a long-standing bug that causes incorrect
conversion between file time and UTC time if the file time is recorded
in a different Daylight Saving Time status than the current one. [Bug
926106]
2004-10-29 Don Porter <[email protected]>
* library/tcltest/tcltest.tcl: Correct reaction to errors in the
obsolete processCmdLineArgsHook. [Bug 1055673]
* library/tcltest/pkgIndex.tcl: Bump to tcltest 2.2.7
* unix/Makefile.in:
* tests/all.tcl: Update to use [tcltest::configure].
2004-10-29 Donal K. Fellows <[email protected]>
* library/tm.tcl (::tcl::tm::*): Use the core proc engine to generate
the wrong-num-args error messages for the path ensemble.
Ensembles can now (sometimes) rewrite the error messages of their
subcommands so they appear more like the arguments that the user
passed to the ensemble. Below is a description of changes involved in
doing this.
* tests/namespace.test (namespace-50.*): Tests of ensemble subcommand
error message rewriting.
* generic/tclProc.c (TclObjInterpProc): Make procedures implement
their wrong-num-args message using Tcl_WrongNumArgs instead of
something baked-at-home.
* generic/tclNamesp.c (TclIsEnsemble, NsEnsembleImplementationCmd):
Added test of ensemble-hood (available to rest of core) and made
ensembles set up the rewriting for Tcl_WrongNumArgs to take advantage
of.
* generic/tclInt.h (Interp.ensembleRewrite): Extra fields.
* generic/tclIndexObj.c (Tcl_WrongNumArgs): Add knowledge of what is
going on in ensembles' command rewriting so this command can generate
the right error message itself.
* generic/tclBasic.c (Tcl_CreateInterp, TclEvalObjvInternal): Added
code to initialize (as empty) the rewriting fields and reset them when
we leak outside an ensemble implementation.
2004-10-28 Miguel Sofer <[email protected]>
* generic/tclExecute.c (INST_START_CMD):
* tests/execute.test (execute-8.3): fix for execution stack corruption
[Bug 1055676]. Credit dgp for detective work and fix.
2004-10-27 Don Porter <[email protected]>
* tests/socket.test (socket-13.1): Balanced [makeFile] and
[removeFile] commands.
* tests/clock.test: Correct duplicate test names.
* tests/namespace.test:
* tests/string.test:
* tests/io.test (io-50.4): Use namespace variables.
2004-10-27 David Gravereaux <[email protected]>
* generic/tclInt.decls: The following 9 functions were moved from
* generic/tclInt.h: tclInt.h to the private/int Stubs table for
* generic/tclIntDecls.h: use by the test suite. As tclTest.obj is
* generic/tclStubInit.c: linked to the shell, these functions need
"blessed" status so as to always be exported from the library. Being
placed in the Stubs table guarantees this [Bug 1054748]:
TclpObjRemoveDirectory, TclpObjCopyDirectory,
TclpObjCreateDirectory, TclpObjDeleteFile,
TclpObjCopyFile, TclpObjRenameFile,
TclpObjStat, TclpObjAccess,
TclpOpenFileChannel
* tests/registry.test: Fixed test files to load the correct
* tests/winDde.test: registry and dde packages by using the info
* win/Makefile.in: from makefiles to tell tcltest where to load
* win/makefile.vc: them from. This avoids grabbing the wrong
package from $auto_path which might be the install point rather than
the dev location. Kudos to Jennifer Hom for adding -load and
-loadfile to the tcltest package. [Bug 926088]
* win/tclWinThrd.c (TclFinalizeLock): release the critical section
before deleting it. [Bug 731778]
* generic/tcl.h: Removed the file level 'extern "C" {' and the
coresponding closing block as it serves no purpose given that all the
function prototypes have the proper extern usage already.