-
Notifications
You must be signed in to change notification settings - Fork 1
/
ChangeLog.2000
2539 lines (1861 loc) · 91.7 KB
/
ChangeLog.2000
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
2000-12-14 Don Porter <[email protected]>
* generic/tclExecute.c:
* tests/expr-old.test: Re-wrote Tcl's [expr rand()] and [expr
srand($seed)] implementations, fixing a range error on some 64-bit
platforms. Added tests that detect the bug. The rewrite changes the
seed -> sequence map on 64-bit platforms, only for seed >= 2^31, a
slight incompatibility. [Bug 121072, Patch 102781]
2000-12-10 Don Porter <[email protected]>
* library/init.tcl:
* library/msgcat/msgcat.tcl:
* library/msgcat/pkgIndex.tcl:
* library/opt/optparse.tcl:
* library/opt/pkgIndex.tcl: Where [uplevel] is used in a proc to
evaluate a Tcl built-in command in the caller's context, the built-in
commands are now fully namespace-qualified. This prevents problems
when the caller context is in a namespace where the built-in command
name has been used by a command in the namespace. (For example,
[::ns::set] might be called instead of the intended [::set]). [Bug
119422, Patch 102545]
2000-12-09 Jeff Hobbs <[email protected]>
* win/tclWinTime.c (CalibrationThread): added lint return value to
prevent compiler warning. [Bug 125005]
* docs/scan.n:
* tests/scan.test:
* generic/tclScan.c (Tcl_ScanObjCmd): changed %o and %x to use strtoul
instead of strtol to correctly preserve scan<>format conversion of
large integers. [Patch 102663, Bug 124600]
* generic/tclExecute.c (TclExecuteByteCode): Commited patch fixing
handling of {!<boolean>} in expressions. [Patch 102702]
2000-12-08 Jeff Hobbs <[email protected]>
* library/init.tcl: Added support for PATHEXT variable in auto_execok,
recognizing the proper set of executable extensions on Windows. [Patch
102719]
2000-12-08 Andreas Kupries <[email protected]>
* generic/tclEncoding.c (LoadTableEncoding): Changed dangerous code to
something less critical. This fixes [Bug 119417], part A without
affecting the speed when loading encodings.
2000-12-08 Donal K. Fellows <[email protected]>
* doc/open.n: Added xref to fconfigure and advice on the opening of
binary files. Should help prevent a recurrence of bugs like [Bug
124558]
2000-12-07 Jeff Hobbs <[email protected]>
* generic/tcl.h: added note about need to updated
library/dde/pkgIndex.tcl with minor version increment.
* library/dde/pkgIndex.tcl: updated to use 84 version to reflect the
makefile. Should probably be updated to use its real version at some
point. [Patch 102560, Bug 119421]
2000-12-06 Eric Melski <[email protected]>
* generic/tcl.h (attemptckalloc): Fixed typo for #define of
attemptckalloc (was defined to Tcl_AttempDbCkalloc, should have been
Tcl_AttemptDbCkalloc). [Bug 124384]
* generic/tclCkalloc.c: Added TCL_MEM_DEBUG versions of
Tcl_AttemptDbCkrealloc and Tcl_AttemptDbCkalloc. [Bug 124384].
2000-11-24 Donal K. Fellows <[email protected]>
* generic/tclExecute.c (TclExecuteByteCode): Logical negation "!" can
now handle string booleans, provided those values are placed in
variables.
* tests/expr.test (expr-13.17): Check that [expr {!$var}] can negate
the string-versions of booleans "yes", "false", etc.
* library/tcltest/tcltest.tcl (getMatchingFiles,
(getMatchingDirectories):
* tools/man2html.tcl (doDir):
* tools/man2help.tcl (doDir):
* library/package.tcl (tclPkgUnknown,tclMacPkgSearch):
* library/safe.tcl (AddSubDirs): [glob] uses -directory instead of
unsafe [file join]. [Bug 123313]
* generic/tclIndexObj.c:
* generic/tclTestObj.c (TestindexobjCmd): Changed internal
representation of index objects to fix [Bug 119082]; fix shouldn't be
visible to outside world...
* generic/tclTest.c (TestGetIndexFromObjStructObjCmd):
* tests/indexObj.test: (indexObj-6.*) Added to test for presence of
[Bug 119082].
2000-11-23 Donal K. Fellows <[email protected]>
* generic/tclCmdIL.c (Tcl_LsortObjCmd): Fixed memory leak from [Bug
119398]
* library/init.tcl (unknown): Added specific level parameters to
all uplevel invokations to boost performance; didn't dare touch
the "namespace inscope" stuff though, since it looks sensitive
to me! Should fix [Bug 123217], though testing is tricky...
2000-11-21 Andreas Kupries <[email protected]>
All of the changes below are described in TIP #7 ~ Specification and
result from the application of the patch contained therein. Creator of
the patch is Kevin Kenny <[email protected]>. The patch used here is
actually a bit different. Two MS specific constant values (format
FOOui64) were replaced with a more portable formatting of the values
and an additional cast to LONGLONG. My cross-compiling gcc was unable
to process the original form. [Patch 102459]
* tclWinTime.c: Add to the static data a set of variables that manage
the phase-locked techniques, including a ''CRITICAL_SECTION'' to guard
them so that multi-threaded code is stable.
* tclWinTime.c: Modify ''TclpGetSeconds'' to call ''TclpGetTime'' and
return the 'seconds' portion of the result. This change is necessary
to make sure that the two times are consistent near the rollover from
one second to another.
* tclWinTime.c: Modify ''TclpGetClicks'' to use TclpGetTime to
determine the click count as a number of microseconds.
* tclWinTime.c: Modify ''TclpGetTime'' to return the time as M*Q+B,
where Q is the result of ''QueryPerformanceCounter'', and M and B are
variables maintained by the phase-locked loop to keep the result as
close as possible to the system clock. The ''TclpGetTime'' call will
also launch the phase-lock management in a separate thread the first
time that it is invoked. If the performance counter is unavailable, or
if its frequency is not one of the two common 8254-compatible rates,
then ''TclpGetTime'' will return the result of ''ftime'' as it does in
Tcl 8.3.2.
* tclWinTime.c: Add the clock calibration procedure. The calibration
is somewhat complex; to save space, the reader is referred to the
reference implementation for the details of how the time base and
frequency are maintained.
* tclWinNotify.c: Modify ''Tcl_Sleep'' to test that the process has,
in fact, slept for the requisite time by calling ''TclpGetTime'' and
comparing with the desired time. Otherwise, roundoff errors may cause
the process to awaken early.
* tclWinTest.c: Add a ''testwinclock'' command. This command returns a
four element list comprising the seconds and microseconds portions of
the system clock and the seconds and microseconds portions of the Tcl
clock.
* winTime.test: Add to the test suite a test that makes sure that the
Tcl clock stays within 1.1 ms of the system clock over the duration of
the test.
2000-11-21 Donal K. Fellows <[email protected]>
* doc/global.n:
* doc/upvar.n:
* doc/variable.n: Improved documentation to mention that variables so
created are listed in [info locals] and added a few more cross-links
between these commands. [Bug 119387]
2000-11-17 Donal K. Fellows <[email protected]>
* tests/safe.test: (safe-4.3):
* generic/tclVar.c (TclLookupVar): Changed again. Now passes all the
tests, though one needed modifying since it required the wrong answer.
(Why on earth do we have inline modification of argument strings? This
sort of thing is horrendous to debug and doesn't work well in a
multithreaded environment!) [Bug 119192]
* tests/var.test: (var-1.19) If my attempts to fix the problem aren't
right yet, my attempts to describe it look pretty good to me...
2000-11-16 Andreas Kupries <[email protected]>
* win/tclWinPort.h (line 69): Changed reference to winsock2.h into
winsock.h. This was a leftover from a foray into using winsock version
2 (History lesson from Scott Redman and Jeff Hobbs). This code was no
problem when compiling Tcl itself, but could trip extensions. [Bug
122568]
2000-11-15 Jeff Hobbs <[email protected]>
* unix/Makefile.in: removed bp.c references (hasn't existed in a long
time). Corrected 'make dist' to make dist with unversioned library
directories (same as out of cvs), so make install works correctly with
either source tree.
2000-11-15 Jeff Hobbs <[email protected]>
* generic/tclVar.c (TclLookupVar): reverted fix below as it broke all
other array unset error reporting. Bug 119192 is still open.
2000-11-15 Donal K. Fellows <[email protected]>
* generic/tclVar.c (TclLookupVar): Changed references to part2 to use
elName instead in various error message generating spots. [Bug 119192]
2000-11-03 David Gravereaux <[email protected]>
* win/.cvsignore: Removed 'configure' from the glob list now that it's
included.
2000-11-03 Jeff Hobbs <[email protected]>
8.4a2 RELEASE
* unix/Makefile.in (install-libraries, dist):
* win/makefile.vc (install-libraries):
* win/Makefile.in (install-libraries): updated to install unversioned
library directories into versioned directories.
* tools/tcl.wse.in: updated for unversioning of library dirs
* unix/mkLinks: updated mkLinks with latest doc updates
* doc/Tcl_Main.3: added docs for Tcl_SetMainLoop
* generic/tclStubInit.c:
* generic/tclDecls.h:
* generic/tcl.decls: added Tcl_SetMainLoop proc that allows people to
set a main loop that will run for tclsh.
* generic/tcl.h: added Tcl_MainLoopProc typedef
* generic/tclMain.c (Tcl_SetMainLoop, StdinProc, Prompt): new
StdinProc and Prompt static procs and Tcl_SetMainLoop stubs proc. The
first two handle a fileevent based prompt (taken from tkMain.c).
Tcl_SetMainLoop enables the interactive setting of a main loop
procedure. This enables Tk to be a loadable package.
2000-11-02 David Gravereaux <[email protected]>
* generic/tclEvent.c: tclLibraryPath Tcl_Obj didn't have a way to
share its data among threads. This caused Tcl_Init() to always fail in
threads. Added a way to pass the data around with a global char*.
[BUG: 5301]
2000-11-02 Jeff Hobbs <[email protected]>
* unix/configure:
* unix/dltest/configure:
* win/configure:
* tools/configure: checked in configure scripts so people doing CVS
checkouts aren't required to have autoconf. Changes to configure.in in
the future will require the corresponding configure script to also be
re-autoconf'ed and checked in.
* win/makefile.vc:
* win/tcl.m4: makefile fixes for Win64 support
* generic/tclIndexObj.c (Tcl_GetIndexFromObjStruct): minor cast
changes.
2000-11-01 Jeff Hobbs <[email protected]>
* unix/tcl.m4: removed use of -lbsd and -ldl for AIX-5.
* tests/subst.test: added tests for non-zero return code handling by
subst.
* generic/tclParse.c (Tcl_EvalEx): corrected handling of non-zero,
non-error return code cases for subst. [Bug 119829]
* generic/tclVar.c (TclVarTraceExists): Corrected excessive mem use
when info exists was called on a non-existent array element. [Bug
119213, 119336]
2000-10-30 David Gravereaux <[email protected]>
* win/configure.in:
* win/Makefile.in:
* win/makefile.vc:
* win/tcl.rc:
* win/tclsh.rc: Added logic to derive filenames better in the resource
scripts based on compile options.
2000-10-30 Jeff Hobbs <[email protected]>
* unix/tclUnixInit.c: added default encoding map from "ja_JP.eucJP" to
"euc-jp". (takahashi)
* tests/clock.test: corrected clock-2.* test numbering
* unix/configure.in (SC_TCL_LINK_LIBS): removed code that was
commented out (it had been moved to tcl.m4's SC_TCL_LINK_LIBS
already).
* unix/tcl.m4: consolidated gettimeofday check for AIX.
2000-10-27 Jeff Hobbs <[email protected]>
* unix/configure.in:
* unix/tcl.m4: added support for AIX-5.
* generic/tclIO.c (Tcl_NotifyChannel): removed #ifdef around code for
old channel structures, placed preserve/release around statePtr
* generic/tclIO.c (CloseChannel): the statePtr for a channel was not
being freed when the last channel in a stack was freed, causing a mem
leak.
* unix/tclUnixChan.c: updated channel types to strict
TCL_CHANNEL_VERSION_2 style to avoid compiler warnings. They work
either way, but this avoids compiler warnings (that worries people).
2000-10-27 Jennifer Hom <[email protected]>
* library/tcltest1.0/tcltest.tcl: Removed a cd into the test directory
in runAllTests that screwed up the temporary directory setting,
effectively preventing users from running tests on multiple platforms
at the same time.
2000-10-26 David Gravereaux <[email protected]>
* win/tclWinFile.c (TclpMatchFilesTypes): NULL was being set to "attr"
which was a DWORD. Changed NULL to zero because a 'void *' can't be
set to a DWORD to avoid the compiler warning.
2000-10-24 Jennifer Hom <[email protected]>
* tests/all.tcl: Removed support for tcltest 1.0.
* tests/tcltest.test:
* library/tcltest1.0/tcltest.tcl:
* library/tcltest1.0/pkgIndex.tcl:
* docs/tcltest.n: Moved tcltest2 code so that it's the standard
version of tcltest. Removed all tcltest2 files (tests/tcltest2.test,
library/tcltest1.0/tcltest2.tcl, docs/tcltest2.n).
2000-10-20 Jeff Hobbs <[email protected]>
* win/tclWinFile.c (TclpMatchFilesTypes): made the stat call only
occur when necessary (for 'glob' command). Significantly speeds up
glob command from 8.3. [BUG: 6216]
2000-10-19 Jennifer Hom <[email protected]>
* library/tcltest1.0/tcltest2.tcl:
* tests/tcltest2
* doc/tcltest2.n: Code and documentation cleanup. Modified -verbose to
take list of keywords as well as string of letters. Removed Tcl
version information from tcltest. Removed tcltest::grep from tcltest
package. Added optional 3rd directory argument to
makeFile/makeDirectory and removeFile/removeDirectory.
* tests/basic.test: Changed references to tcltest::tclVersion to
hardcoded numbers.
* generic/tcl.h: Changed reference to tcltest2.tcl and tcltest.tcl in
comments to tests/basic.test.
2000-10-06 David Gravereaux <[email protected]>
* win/tclWinChan.c: moved Win2K bug case test with GetStdHandle() from
TclpGetDefaultStdChannel into Tcl_MakeFileChannel to enable a more
general method in detecting invalid OS handles rather than just a
specific known case. [BUG: 5971]
2000-10-06 Jeff Hobbs <[email protected]>
* tests/cmdAH.test: extra tests for 'file channels' that include
multiple interpreter tests and channel sharing
* generic/tclIO.c (Tcl_GetChannelNamesEx): corrected function (and
consequently 'file channels') to return channels that are actually
registered for this specific interp, rather than this thread.
* doc/CrtChannel.3: fixed spelling mistakes
2000-09-29 Jennifer Hom <[email protected]>
* library/tcltest1.0/tcltest2.tcl:
* tests/tcltest2.test:
* doc/tcltest2.n: Modified the new form of the test command to accept
both attribute-value pairs and command line options. Updated the tests
and the documentation for this new format. Also changed the option
names for the test command.
2000-09-29 Jeff Hobbs <[email protected]>
* win/tclWinSerial.c (SerialGetOptionProc): corrected reporting of
space parity on Windows (Eason) [Bug 6057].
* win/Makefile.in: commented use of TESTFLAGS
* unix/Makefile.in: added TESTFLAGS to test target to conform with
Windows makefile and TEA style.
* tests/stack.test: prevented possible crash on systems with low
default stacksize (Tru64, AIX) in infinite recursion test. A solution
to check remaining stack space in the core is best, but hard to do in
a cross-platform manner.
* generic/tclIOGT.c (FLUSH_DELAY): renamed DELAY define to FLUSH_DELAY
to avoid defn conflict using Tru64's cc.
2000-09-28 Jeff Hobbs <[email protected]>
* tools/tcl.wse.in: added tclPlatDecls.h and tkPlatDecls.h to the
Windows .exe install.
* tests/fCmd.test (fCmd-6.20): corrected test to remove c:/tcl8975@
after creating it.
* tests/fileName.test: cleaned up the testing of glob patterns for
c:/globTest (Windows) to directly create/remove directory.
2000-09-27 Jeff Hobbs <[email protected]>
* generic/tcl.decls:
* generic/tclIO.c: updated Tcl_IsChannelShared,
Tcl_IsChannelRegistered, Tcl_CutChannel, Tcl_SpliceChannel,
Tcl_IsChannelExisting, and Tcl_ClearChannelHandlers to conform to the
new stacked channel implementation. Their stub slots were also moved
to give preference to the new 8.3.2 stub functions. This will cause an
incompatibility with 8.4a1 only.
(StopCopy): fixed a bug introduced by a partial fix in 8.3.2 that
didn't set nonBlocking correctly when resetting the flags for the
write side. [Bug: 6261]
* doc/ChnlStack.3:
* doc/CrtChannel.3:
* generic/tcl.decls:
* generic/tcl.h:
* generic/tclDecls.h:
* generic/tclIO.c:
* generic/tclIO.h:
* generic/tclIOGT.c:
* generic/tclInt.decls:
* generic/tclIntDecls.h:
* generic/tclStubInit.c:
* generic/tclTest.c:
* tests/iogt.test:
* unix/Makefile.in:
* win/Makefile.in:
* win/makefile.vc:
* win/tclConfig.sh.in:
* win/tclWinChan.c:
* win/tclWinConsole.c:
* win/tclWinPipe.c:
* win/tclWinSerial.c:
* win/tclWinSock.c: Up-port of changes made in 8.3.2 to 8.4a2 code
base. Most of these changes relate to the rewrite of the stacked
channel implementation, with a few config related fixes.
Following is an asynchronous include of the applicable ChangeLog
entries from 8.3.2.
********************************************************
** START OF ASYNCHRONOUS UP-PORT LOG (8.3.2 -> 8.4a2) **
********************************************************
2000-08-07 Jeff Hobbs <[email protected]>
* doc/ChnlStack.3:
* doc/CrtChannel.3: updated the docs to be aware of the
TCL_CHANNEL_VERSION_2 style of Tcl channels.
* generic/tclIO.c (Tcl_CreateChannel): added assertion to verify that
the new channel versioning will be binary compatible with older
channel drivers.
2000-08-05 Jeff Hobbs <[email protected]>
* generic/tclIOGT.c (TclChannelTransform): fixed segfault that would
occur when transforming a channel with a proc that did not yet exist.
(Kupries)
* generic/tclTest.c (TestChannelCmd): added some lint init'ing of
statePtr and chan vars.
2000-07-26 Jeff Hobbs <[email protected]>
Merged core-8-3-1-io-rewrite back into core-8-3-1-branch. The
core-8-3-1-io-rewrite branch should now be considered defunct.
* generic/tclStubInit.c:
* generic/tclDecls.h:
* generic/tcl.decls:
* generic/tcl.h:
* generic/tclIO.c: moved the Tcl_Channel* macros from tcl.h to tclIO.c
and made them proper stubbed functions. These are: Tcl_ChannelName,
Tcl_ChannelVersion, Tcl_ChannelBlockModeProc, Tcl_ChannelCloseProc,
Tcl_ChannelClose2Proc, Tcl_ChannelInputProc, Tcl_ChannelOutputProc,
Tcl_ChannelSeekProc, Tcl_ChannelSetOptionProc,
Tcl_ChannelGetOptionProc, Tcl_ChannelWatchProc,
Tcl_ChannelGetHandleProc, Tcl_ChannelFlushProc, and
Tcl_ChannelHandlerProc. These should be used to access the
Tcl_ChannelType structure instead of direct pointer dereferencing.
* tests/iogt.test: added RCS string, marked tests 2.* to be unixOnly
due to underlying system differences.
2000-07-25 Andreas Kupries <[email protected]>
* tests/iogt.test: (line 866f) New tests iogt-6.[01], highlighting
buffering trouble when stacking and unstacking transformations.
iogt-6.0 is solved, see the changes below. iogt-6.1 remains, for now,
due to the perceived complexity of solutions.
* generic/tclIO.h: (line 139f) struct Channel, added a buffer queue,
to hold data pushed back when stacking a transformation.
* generic/tclIO.c:
(line 91f, line 7434f) New internal function 'CopyBuffer'. Derived
from 'CopyAndTranslateBuffer', with translation removed.
(line 1025f, line 1212f): Initialization of new queue.
(line 1164f, Tcl_StackChannel): Pushback of input queue.
(line 1293f, Tcl_UnstackChannel): Discard input and pushback.
(line 3748f, Tcl_ReadRaw): Modified to use data in the push back area
before going to the driver. Uses 'CopyBuffer', s.a.
(line 4702f, GetInput): Modified to use data in the push back area
before going to the driver.
(line 4867f, Tcl_Seek): Modified to take pushback of the topmost
channel in a stack into account.
(line 5620f, Tcl_InputBuffered): See above. Added
'Tcl_ChannelBuffered'. Analog to 'Tcl_InputBuffered' but for the
buffer area in the channel.
* generic/tcl.decls: New public API 'Tcl_ChannelBuffered'. S.a.
2000-07-17 Jeff Hobbs <[email protected]>
* unix/Makefile.in:
* win/Makefile.in:
* win/makefile.vc: added tclIOGT.c to objects list to compile.
* generic/tclStubInit.c:
* generic/tclIntDecls.h:
* generic/tclInt.decls: commented out internal decls for
TclTestChannelCmd and TclTestChannelEventCmd as they were moved to
tclTest.c. Added new decls for TclChannelEventScriptInvoker and
TclChannelTransform.
* generic/tclIO.c (CloseChannel): stopped masking out of the
TCL_READABLE|TCL_WRITABLE bits from the state flags in CloseChannel,
instead adding extra intelligence to CheckChannelErrors with a new
CHANNEL_RAW_MODE bit for special behavior when called from Raw channel
APIs.
2000-07-13 Jeff Hobbs <[email protected]>
* generic/tclIO.c (StackSetBlockMode): moved set of chanPtr outside of
blockModeProc check to avoid infinite loop when blockModeProc was
NULL. Updated TransformSeekProc to not call Tcl_Seek directly
(Kupries).
* win/tclWinChan.c: updated fileChannelType to v2 channel struct
* win/tclWinConsole.c: updated consoleChannelType to v2 channel struct
* win/tclWinPipe.c: updated pipeChannelType to v2 channel struct
* win/tclWinSerial.c: updated serialChannelType to v2 channel struct
* win/tclWinSock.c: updated tcpChannelType to v2 channel struct
2000-07-11 Brent Welch <[email protected]>
* win/tclConfig.sh.in (TCL_LIBS): Cleaned up unix-specific autoconf
variables.
2000-07-11 Jeff Hobbs <[email protected]>
* tests/iogt.test: made tests [345].0 not run by default as they were
failing in the new design, but I'm not convinced that the returned
result isn't correct.
* generic/tclDecls.h:
* generic/tclStubInit.c:
* generic/tcl.decls: added Tcl_GetTopChannel C API that returns the
current top channel of a channel stack. Tcl_GetChannel was changed
earlier to return the bottommost channel of a stack because that is
the one that is guaranteed to stay around the longest, and this was
needed to compensate for certain operations that want to look at the
state of the main channel. Most channel APIs already compensate for
grabbing the top, so it shouldn't be needed often.
* generic/tclIO.c (Tcl_StackChannel, Tcl_UnstackChannel): Added
flushing of buffers (Kupries), removed use of DownChannel macro, added
Tcl_GetTopChannel public API to get to the top channel of the channel
stack (necessary for TLS). Rewrote Tcl_NotifyChannel for new channel
design (Kupries). Did some code cleanup in the transform code.
tclIO.c must still be broken into bits (separate out test code and
giot code, create tclIO.h).
2000-07-10 Andreas Kupries <[email protected]>
* tests/iogt.test: Reverted some earlier changes as a fix by Jeff
revived the original and correct behaviour. IOW, the tests showed a
genuine error and I didn't see it :(.
* generic/tclIO.c (Tcl_Read|Write_Raw): Changed to directly use the
drivers and not DoRead|DoWrite. The latter use the buffering system,
encoding and eol-translation and this wreaks havoc with the data going
through the transformations. Both procedures use CheckForchannelErrors
and let it believe that there is no background copy in progress or
else stacked channels could not be used for that.
* generic/tclIO.c (TclCopyChannel, CopyData): Moved access to the
topmost channel from the first to the second procedure to make the
decision about that at the last possible time (Callbacks can change
the stacking).
test suite: failures of iogt-[345].0
2000-07-06 Jeff Hobbs <[email protected]>
* tests/iogt.test: new tests for stacked channel stuff based off new
'testchannel transform|unstack' code (Kupries IOGT extension).
* generic/tcl.decls:
* generic/tcl.h:
* generic/tclDecls.h:
* generic/tclStubsInit.c:
* generic/tclIO.c: complete rewrite of Tcl Channel code for stacked
channels. Channels are now designed to work in a more stacked fashion
with a shared ChannelState data structure.
2000-06-02 Jeff Hobbs <[email protected]>
* generic/tclIO.c (CloseChannel): removed the &ing out of
(TCL_READABLE|TCL_WRITABLE) from the flags, as CloseChannel does this
on the next pass through for the top channel, and it appeared to be
causing hangs by not allowing the final flush.
2000-06-01 Jeff Hobbs <[email protected]>
* generic/tclIO.c (CloseChannel): Rewrote CloseChannel code to unstack
a channel during the close process. Fixed a refcount bug in
Tcl_UnstackChannel. [Bug: 5623]
(CloseChannel): further extended CloseChannel in the stacked case to
effect certain operations on the next channel that would have been
done in Tcl_Close. Also added CHANNEL_CLOSED and removed
(TCL_READABLE|TCL_WRITABLE) bits from chanPtr->flags. Changed final
reset of the WatchProc to check the chanDownPtr's (next) interestMask.
******************************************************
** END OF ASYNCHRONOUS UP-PORT LOG (8.3.2 -> 8.4a2) **
******************************************************
2000-09-20 Jeff Hobbs <[email protected]>
* tests/socket.test: removed doTestsWithRemoteServer constraint from
socket-12.*. It requires 'exec', not a remote server. Cleaned up some
coding errors.
2000-09-20 Jennifer Hom <[email protected]>
* library/tcltest1.0/pkgIndex.tcl: Updated to load tcltest 2.0.
* library/tcltest1.0/tcltest2.tcl: New version of tcltest.
Cleanup of command line parsing: allows users to specify command line
arguments through an environment variable named TCLTEST_OPTIONS [RFE:
3748], does not respond to incorrect arguments, and forces usage of
entire flag name when using command line arguments. Defines accessor
procs for all tcltest variables. Allows users to use 'return' in test
scripts. Allow users to specify whether test files should be sourced
or run in a separate process. 'all.tcl' code moved to tcltest package.
'test' proc modified to use attribute-value pairs. Allow users to
specify what return codes, output, and errors can be compared and
whether these values should be compared using regexp, glob, or exact
matching. makeDirectory & removeDirectory now operate with respect to
temporaryDirectory [Bug: 6001]. Test results from tests run in slave
interpreters are now included in test totals [Bug: 1493]. Test files
that return error values are now reported.
* tests/all.tcl: Added code to check for the tcltest version loaded;
modified to figure out which tests to run based on the tcltest version
loaded.
* tests/tcltest.test: Modified to explicitly load version 1.0 of
tcltest.
* tests/tcltest2.test: New test suite for tcltest; includes all of the
old tests plus new ones reflecting changes made for version 2.0.
* tests/cmdAH.test: Added singleTestInterp constraint to cmdAH-31.2;
this test does not run if tests aren't sourced into a single
interpreter.
* tests/socket.test: Fixed two tests that were referencing variables
outside of scope.
* tools/tcl.wse.in: Added code to install tcltest2.tcl.
* doc/tcltest2.n: New documentation for tcltest version 2.0. Removes
documentation for tcltest namespace variables. Adds documentation for
new tcltest procs.
* unix/mkLinks: Added code to link to tcltest2.n.
* generic/tcl.h: Added comment to modify tcltest2.tcl as well as
tcltest.tcl for version changes.
2000-09-19 Eric Melski <[email protected]>
* generic/tclCmdMZ.c (Tcl_RegexpObjCmd): When using -all, all attempts
after the first to match the regexp against the string should include
the TCL_REG_NOTBOL flag, to avoid erroneously matching ^ in the middle
of the string. Added code to set this flag after the first pass
through the matching loop. [Bug: 6284].
2000-09-19 David Gravereaux <[email protected]>
* doc/Eval.3: Added a note about the script argument to Tcl_Eval()
should be in UTF-8 or risk implied conversion errors when possible
combinations of upper ascii can be valid UTF-8 special codes.
2000-09-17 Eric Melski <[email protected]>
* tests/cmdIL.test: Added a test for fix for [Bug: 6212].
* generic/tclCmdIL.c (Tcl_LsortObjCmd): Applied patch from [Bug:
6212], which corrected an error in the handling of the -index option.
2000-09-14 Eric Melski <[email protected]>
* doc/Alloc.3: Added entries for Tcl_AttemptAlloc, Tcl_AttempRealloc.
* doc/StringObj.3: Added entry for Tcl_AttemptSetObjLength.
* generic/tclDecls.h:
* generic/tclStubInit.c: Regen'ed stubs files from new tcl.decls.
* generic/tcl.decls: Added stubs for the Tcl_Attempt* memory
allocators and for Tcl_AttemptSetObjLength.
* generic/tcl.h: Added #define's for attemptckalloc, attemptckrealloc,
which map to the Tcl_Attempt* memory allocators.
* generic/tclCkalloc.c: Added non-panic'ing versions of Tcl_Alloc,
Tcl_Realloc, etc.; these are called Tcl_AttemptAlloc,
Tcl_AttemptRealloc, etc. These are used by Tcl_AttemptSetObjLength and
the string obj append functions.
* generic/tclStringObj.c: Modified string growth algorithm to use
doubling algorithm as long as possible, and only fall back when that
fails. Added Tcl_AttemptSetObjLength, and modified
AppendUnicodeToUnicodeRep, AppendUtfToUtfRep, and
Tcl_AppendStringsToObjVA to support this.
2000-09-07 David Gravereaux <[email protected]>
* win/.cvsignore: changed the glob patterns a bit to exclude VC++
project conversion backups.
* win/tclWinPipe.c: Stage-1 bug fix for TR#2460 "exec leaks memory".
Added more logic around the close-down of the pipe reader thread so as
to avoid, at all cost, a TerminateThread. Most cases with exec are
fixed, but I don't consider 2460 done yet. Closing down the read side
of a pipe before the child process, doesn't really fit the windows
model. [BUG: 2460]
2000-09-07 Jeff Hobbs <[email protected]>
* doc/trace.n: minor doc cleanup
2000-09-06 André Pönitz <[email protected]>
* doc/*.n: added or changed "SEE ALSO:" section
2000-09-06 Jeff Hobbs <[email protected]>
* win/tclWinLoad.c (TclpLoadFile): added special message for
ERROR_PROC_NOT_FOUND exception in loading a dll.
* win/tclWinError.c: changed ERROR_PROC_NOT_FOUND to map from ESRCH
(POSIX: no such process) to EINVAL because there is no good mapping
for "procedure not found".
* README:
* generic/tcl.h:
* library/tcltest1.0/tcltest.tcl:
* tools/tcl.wse.in:
* tools/tcltk-man2html.tcl:
* unix/configure.in:
* unix/tcl.spec:
* win/README.binary:
* win/configure.in: updated patchlevel to 8.4a2
* unix/tclUnixPipe.c (TclpCreateProcess): Removed WNOHANG from
Tcl_WaitPid call in error case of process creation on Unix, as it
would lead to defunct processes. [Bug: 6148]
* tests/string.test: extended string repeat tests
* generic/tclCmdMZ.c (Tcl_StringObjCmd): changed STR_REPEAT to
preallocate the full space of the final string, avoided repeated
appends.
* doc/source.n:
* doc/Eval.3: added extra note about how to safe use ^Z in code, as it
is now a cross-platform (was just Windows) EOF char.
2000-09-05 Jeff Hobbs <[email protected]>
* generic/tclHash.c: fixed pedantic warning of incorrectly placed
#endif
* generic/tclExecute.c (TclExecuteByteCode): INST_STR_INDEX fixed
pedantic cast warning.
Corrected support for building with -DTCL_COMPILE_STATS.
Added efficiency check of object equality.
2000-08-29 Eric Melski <[email protected]>
* generic/tclStringObj.c: Applied patch from Gerhard Hintermayer to
provide a more conservative string growth algorithm for strings larger
than one megabyte; this allows more efficient use of memory for very
large strings.
2000-08-25 Eric Melski <[email protected]>
* tests/trace.test: Extended array tracing tests.
* doc/trace.n: Clarified information about when array traces will be
fired.
* generic/tclVar.c (Tcl_ArrayObjCmd): Corrected call to CallTraces
(for TCL_TRACE_ARRAY) to only be called when the variable is either an
array or is undefined, to ensure that array traces do not fire for
scalar variables.
2000-08-24 Eric Melski <[email protected]>
* doc/man.macros: Tweaked tab settings for .SO (Standard Options)
sections, based on suggestion from Peter Spjuth.
2000-08-24 Mo DeJong <[email protected]>
* unix/README: Update to account for removal of --enable-gcc.
* unix/configure.in:
* unix/tcl.m4 (SC_ENABLE_GCC): Remove --enable-gcc option.
* win/README: Add note about building with Cygwin.
* win/configure.in:
* win/tcl.m4 (SC_ENABLE_GCC): Remove --enable-gcc option. Remove quick
hack that provided cross compile support for windows builds.
2000-08-24 Eric Melski <[email protected]>
Overall change: Added support for command rename/delete traces and new
trace syntax, from patch from Vince Darley. Added support for array
traces for variables. [RFE: 5048, 5967].
* doc/trace.n: Updated documentation for new syntax; flagged old
syntax as deprecated; added documentation for command rename/delete
traces and variable array traces.
* tests/trace.test: Updated tests for new trace syntax; new tests for
command rename/delete traces; new tests for array traces.
* generic/tclVar.c: Support for new trace syntax; support for
TCL_TRACE_ARRAY.
* generic/tclStubInit.c:
* generic/tclDecls.h:
* generic/tcl.decls: Stub functions for command rename/delete traces.
* generic/tcl.h:
* generic/tclInt.h:
* generic/tclBasic.c: Support for command traces.
* generic/tclCmdMZ.c (TclTraceVariableObjCmd): Patched to support new
[trace] syntax:
trace {add|remove|list} {variable|command} name ops command
Added support for command traces (rename, delete operations).
Added support for TCL_TRACE_ARRAY at Tcl level (array operation for
variable traces).
2000-08-20 Eric Melski <[email protected]>
* generic/tclVar.c: Added check for non-arrays for [array statistics]
command (patch from Mark Patton).
2000-08-19 David Gravereaux <[email protected]>
* generic/tclPlatDecls.h: without a previous '#include <windows.h>',
tclPlatDecls.h can't be parsed due to a missing definition of TCHAR.
Added a check to include it when not defined.
***POSSIBLE OBSCURE BUG*** could be caused when the compile flags for
the core happen to be different than a project who uses these publics
regarding -D_MBCS and -D_UNICODE. This added check might have to be
revisited later with a better understanding of the reprocusions. I
think TCHAR should be replaced with it's expansion.
2000-08-18 David Gravereaux <[email protected]>
* win/.cvsignore (added): provides a cleaner build environment with
graphical CVS clients.
2000-08-15 Eric Melski <[email protected]>
* library/tcltest1.0/tcltest.tcl: Set debug level in
tcltest::restoreState to 2, for consistancy with the debug level in
tcltest::saveState [Bug: 4505].
2000-08-14 Eric Melski <[email protected]>
* win/makefile.vc:
* win/Makefile.in:
* unix/Makefile.in: Added tclPlatDecls.h to the list of installed
headers, for more complete stubs support. [Bug: 5241].
* generic/tcl.h: Added #include "tclPlatDecls.h" to get
platform-specific stubs declarations (Tcl_WinTCharToUtf, etc)
[Bug: 5241].
* README: Updated link for instructions on compiling Tcl from sources
to point to correct location (http://dev.scriptics.com/doc/... instead
of http://dev.scriptics.com/support/...).
2000-08-11 Eric Melski <[email protected]>
* generic/tclEnv.c (TclUnsetEnv): Changed declaration of length
variable from "unsigned int" to "int", to match usage when passed to
TclpFindVariable [Bug: 6126].
2000-08-10 Eric Melski <[email protected]>
* library/msgcat1.0/pkgIndex.tcl: Bumped version number to 1.2 [Bug:
6100].
* library/msgcat1.0/msgcat.tcl: Removed erroneous [package forget] in
msgcat namespace initializer. Bumped version number to 1.2 [Bug: 6100]
2000-08-10 David Gravereaux <[email protected]>
* generic/tclObj.c: r1.15 accidentally changed a global mutex name
tclObjMutex to ObjMutex. Put the correct name back.
2000-08-07 Eric Melski <[email protected]>
* tests/indexObj.test: Added tests using the [testwrongnumargs]
command to test Tcl_WrongNumArgs.
* generic/tclTest.c (TestWrongNumArgsObjCmd): Added test function for
the Tcl_WrongNumArgs function.
* generic/tclIndexObj.c (Tcl_WrongNumArgs): Corrected algorithm to not
insert a space before the message component when objc == 0 [Bug: 6078]
2000-07-27 Mo DeJong <[email protected]>
* win/configure.in: TCL_STUB_LIB_FLAG should not include ${TCL_DBGX}
in win/tclConfig.sh, fix that.
2000-07-25 David Gravereaux <[email protected]>
* doc/Async.3:
* generic/tclAsync.c:
* generic/tclInt.decls:
* generic/tclIntPlatDecls.h:
* generic/tclStubInit.c:
* generic/tclTest.c:
* mac/tclMacPort.h:
* unix/tclUnixPort.h:
* win/tclWinInit.c: Thread-safe rewrite for tclAsync.c. Added notifier
alerting on all platforms as it was only working on Win before.
Removed older Win hacks that would end-up waking the wrong notifier in
the presence of a threaded build. All tests pass as before. New test
cases will be added soon for the new behavior. [BUG: 5791]
2000-07-25 Eric Melski <[email protected]>
* generic/tclVar.c (CallTraces): Added check for VAR_TRACE_ACTIVE on
the array containing the variable before executing traces on that
array, to conform with normal variable traces and the documentation,
which states that while executing a trace, other traces on that
variable are disabled. [Bug: 6049].
* win/tclWinPipe.c (BuildCommandLine): Added Tcl_DStringFree call to
prevent potential memory leaks [Bug: 6041].
2000-07-24 Eric Melski <[email protected]>
* doc/msgcat.n: Added documentation about the selection of the default
locale on Windows.
2000-07-23 Joe English <[email protected]>
* doc/AddErrInfo.3:
* doc/ChnlStack.3:
* doc/Exit.3:
* doc/GetIndex.3:
* doc/Notifier.3:
* doc/Object.3:
* doc/RegExp.3:
* doc/SetResult.3:
* doc/SplitList.3:
* doc/Thread.3: Added missing entries to NAME section.
* doc/AddErrInfo.3:
* doc/CrtObjCmd.3:
* doc/RecEvalObj.3: Changed Tcl_EvalObj to Tcl_EvalObjEx
2000-07-21 Eric Melski <[email protected]>
* generic/tclStubInit.c:
* generic/tclObj.c:
* generic/tclInt.h:
* generic/tclHash.c:
* generic/tclDecls.h:
* generic/tcl.h:
* generic/tcl.decls:
* doc/Hash.3: Reapplied patch from Paul Duffin to extend hash tables
to allow custom key types, such as Tcl_Obj *'s, and others.
* doc/binary.n: Noted that the example in the introduction assumes a
32-bit system [Bug: 6035].