forked from tcltk/tcl
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ChangeLog.2001
3629 lines (2752 loc) · 135 KB
/
ChangeLog.2001
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
2001-12-28 Jeff Hobbs <[email protected]>
* library/init.tcl: make sure env(COMSPEC) on Windows is executed with
the right case, as it may otherwise fail inexplicably.
2001-12-28 Don Porter <[email protected]>
* generic/tclCkalloc.c (MemoryCmd, TclFinalizeMemorySubsystem): Added
the [memory onexit] command, intended to replace [checkmem].
* doc/DumpActiveMemory.3:
* doc/memory.n: Updated documentation for [memory] and related
matters. [Bug 487677]
* mac/tclMacBOAMain.c (Tcl_Main, CheckmemCmd): Removed all the
machinery for the [checkmem] command that is completely duplicated by
code in generic/tclCkalloc.c.
* generic/tclBinary.c:
* generic/tclListObj.c:
* generic/tclObj.c:
* generic/tclStringObj.c: Removed references to [checkmem] in
comments, referencing [memory active] instead, since it is
documented.
2001-12-28 Daniel Steffen <[email protected]>
* mac/tclMacInit.c:
* mac/tclMacTclCode.r: synced up tclInit features to unix/win:
implemented TclSetPreInitScript support, use of existing tclInit proc
if defined, check of default encoding dir if set. Changed script
library resource names to lowercase (i.e. same as corresponding
files). Used Tcl_JoinPath instead of string append. Check that system
encoding could be loaded before utf translating the LibraryPath.
* mac/tclMacApplication.r:
* mac/tclMacLibrary.r:
* mac/tclMacOSA.r:
* mac/tclMacResource.r: minor version resources cleanup
2001-12-21 Mo DeJong <[email protected]>
* unix/tcl.m4 (SC_PATH_TCLCONFIG, SC_PATH_TKCONFIG):
Search for config file using exec_prefix instead of prefix when no
--with-tcl or --with-tk argument is used. [Bug 492418]
2001-12-21 Daniel Steffen <[email protected]>
* unix/tcl.m4: fixed incorrect SHLIB_LD_LIBS setting for MacOSX /
Darwin.
* unix/configure: Regen.
* unix/mkLinks.tcl: improved case-insensitive filesystem support.
* unix/mkLinks: Regen.
2001-12-19 Don Porter <[email protected]>
* unix/Makefile.in (dist): corrected use of eolFix.tcl on working
files. It should operate on distributed files. [Bug 495120]
2001-12-19 David Gravereaux <[email protected]>
* tools/tcl.wse.in: Fix for [Bug 495120]. tcl.wse.in was stored in cvs
with improper <eol>. This resulted in corrupted <eol> when checked-out
on translating CVS clients such as windows (CRCRLF) and mac (CRCR).
2001-12-19 Mo DeJong <[email protected]>
* unix/configure:
* unix/tcl.m4 (SC_CONFIG_CFLAGS): Update SunOS 5.[0-6] target so that
correct linker options are passed to gcc or ld. [Tk Bug 220863]
2001-12-19 Mo DeJong <[email protected]>
* unix/README: Update to account for changes in the unix/dltest
directory, the way autoconf is run, and the new "make shell" target.
2001-12-19 Mo DeJong <[email protected]>
* unix/Makefile.in: Rename dltest to dlpkgs to fix problem where lib
files were not getting built because dltest/ directory already
existed.
2001-12-19 Jeff Hobbs <[email protected]>
* win/tclWinSerial.c (SerialCheckProc): corrected time calculations to
be unsigned. (schroedter)
2001-12-18 Mo DeJong <[email protected]>
* unix/Makefile.in: Define new dltest target that simply does a cd to
dltest/ before running make. There is no need for the separate
configure script that was previously being used.
* unix/configure: Regen.
* unix/configure.in: Subst into dltest/Makefile.
* unix/dltest/Makefile.in: Define LIBS using DL_LIBS, LIBS, and
MATH_LIBS variables instead of TCL_LIBS variable from tclConfig.sh.
* unix/dltest/README: Update readme to account for new configure free
implementation.
* unix/dltest/configure: Removed.
* unix/dltest/configure.in: Removed.
2001-12-18 Donal K. Fellows <[email protected]>
* generic/tcl.h (TCL_STUB_MAGIC): Added cast to force type to be an
int and get rid of a persistent and pointless warning with SunPro
compiler.
* generic/tclCkalloc.c (Tcl_AttemptDbCkalloc,Tcl_AttemptDbCkrealloc):
* generic/tcl.decls (Tcl_AttemptDbCkalloc,Tcl_AttemptDbCkrealloc):
Made the file parameters to these functions into CONST char *, like
they always should have been to match the other Tcl*Db* API functions.
2001-12-17 Andreas Kupries <[email protected]>
* Applied [Bug 219311] on behalf of Rolf Schroedter
<[email protected]> to prevent fcopy on serial ports
from flooding the event queue.
2001-12-11 Miguel Sofer <[email protected]>
* doc/CrtInterp.3:
* generic/tclBasic.c: docs and comments corrections. [Bug 493412]
Bug & patch by Don Porter.
2001-12-14 Donal K. Fellows <[email protected]>
* win/tclWinNotify.c (Tcl_FinalizeNotifier): Stop Tcl on Windows from
crashing when shutdown from a non-Tcl thread. Fixes [Bug 217982]
[orig. 5804] reported by Hugh Vu and Gene Leache. I'm not convinced
that the shutdown process is right even with this, but it was
definitely wrong without...
2001-12-13 Andreas Kupries <[email protected]>
* win/tclWinSock.c (TcpGetOptionProc): Fix for [Bug 478565] reported
by an unknown person. Bypasses all calls to "gethostbyaddr" for
address "0.0.0.0" to prevent delays on Win/NT.
2001-12-12 Jeff Hobbs <[email protected]>
* doc/Preserve.3: doc'd TCL_DYNAMIC use. [Patch 483989] (porter)
2001-12-12 Andreas Kupries <[email protected]>
* generic/tclIO.c (Tcl_GetsObj): Applied patch for [Bug 491341] as
provided by Don Porter <[email protected]>. Fixes the
assumption of having an empty Tcl_Obj to work with.
2001-12-11 Miguel Sofer <[email protected]>
* generic/tclCompCmds.c:
* generic/tclCompile.c:
* generic/tclExecute.c: consistency patch, to make all instructions
that pop a variable number of Tcl_Obj's off the execution stack take
the number of popped objects as first operand. Modified *only* the new
instructions INST_LIST_INDEX_MULTI and INST_LSET_FLAT, so this has no
effect on bytecodes generated up to tcl8.4a3 inclusive.
* generic/tclExecute.c: fix debug messages in INST_LSET_LIST.
* generic/tclCompCmds.c (TclCompileLindexCmd):
* generic/tclCompExpr.c (CompileMathFuncCall): removed the last two
overestimates of the necessary stack depth for bytecodes in the fix of
[Bug 483611]
2001-12-10 Andreas Kupries <[email protected]>
* unix/tclUnixPipe.c (TclpCreateProcess): Applied Don Porter's patch
fixing [Bug 437489].
2001-12-10 Miguel Sofer <[email protected]>
* generic/tclEvent.c:
* tests/event.test: fix background error reporting in the absence of a
bgerror proc [Bug 219142].
2001-12-10 Don Porter <[email protected]>
* doc/Access.3:
* doc/CrtChannel.3:
* doc/DString.3:
* doc/ExprLong.3:
* doc/FileSystem.3:
* doc/GetStdChan.3:
* doc/OpenFileChnl.3:
* doc/StdChannels.3:
* doc/TCL_MEM_DEBUG.3:
* doc/Tcl_Main.3:
* doc/Utf.3:
* doc/file.n:
* doc/tclsh.1: Several typo and formatting corrections discovered
during conversion to TMML. Thanks to Joe English. [Patch 490514]
* unix/mkLinks: 'make mklinks'
2001-12-10 Miguel Sofer <[email protected]>
* generic/tclCompCmds.c:
* generic/tclCompExpr.c:
* generic/tclCompile.c:
* generic/tclCompile.h:
* generic/tclExecute.c:
* generic/tclProc.c: fixed the calculation of the maximal stack depth
required by bytecodes. [Bug 483611]
2001-12-07 Miguel Sofer <[email protected]>
* generic/tclVar.c:
* tests/trace.test: restored consistency in refCount accounting by
array traces [Bug 4484339], submitted by Don Porter.
2001-12-06 Donal K. Fellows <[email protected]>
* tests/parseExpr.test, tests/for.test, tests/expr.test:
* tests/expr-old.test, tests/compile.test, tests/compExpr.test
* tests/compExpr-old.test: Kept up to date with syntax errors.
* generic/tclParseExpr.c (ParsePrimaryExpr): Rewrote to give even
better syntax errors in the fairly common case of an identifier
without decorations by guessing based on the currently available
functions. Also made messages consistent between memdebug and ordinary
builds.
2001-12-05 Miguel Sofer <[email protected]>
* generic/tclVar.c:
* tests/trace.test: new algorithm for [array get], safe when there are
traces that modify the array. [Bug 449893]
2001-12-04 Donal K. Fellows <[email protected]>
* tests/compExpr-old.test, tests/compExpr.test, tests/compile.test:
* tests/expr-old.test, tests/expr.test, tests/for.test:
* tests/while.test, tests/if.test: Rewrite to handle more specific
syntax errors.
* tests/parseExpr.test: Rewrite to get rid of dup test numbers and
handle more specific syntax errors.
* generic/tclParseExpr.c (LogSyntaxError): Added a detail message
argument to help explain what the syntax error is.
(Tcl_ParseExpr, ParseCondExpr, ParsePrimaryExpr): Added detail
messages.
(UNKNOWN_CHAR): New lexeme for characters that are always illegal in
expressions outside strings.
2001-12-03 Donal K. Fellows <[email protected]>
* doc/expr.n: Various documentation improvements in relation to the
function calls. Includes fix for [Bug 487704] submitted by Devin Eyre.
2001-12-03 David Gravereaux <[email protected]>
* win/makefile.vc: Some install target bugs repaired along with
$(TCLSTUBLIB) added to the dependencies rather than implicit through
the dde and reg extensions which don't happen to always require it for
some build types.
2001-11-30 Miguel Sofer <[email protected]>
* generic/tclVar.c: Tcl_Preserve'ing VarTrace structures to avoid
memory corruption. Patch for [Bug 484334] provided by Don Porter
2001-11-29 Miguel Sofer <[email protected]>
* tests/namespace.test: modified namespace-41.2, added 41.3
{knownbug} after discussion with Don Porter and Kevin Kenny.
2001-11-29 Miguel Sofer <[email protected]>
* tests/namespace.test: added namespace-41.2, a simpler test for
[Bug 231259]
2001-11-29 Donal K. Fellows <[email protected]>
* generic/tclBinary.c (BINARY_SCAN_MAX_CACHE, Tcl_BinaryObjCmd,
(ScanNumber): Added caching scheme to reduce number of object
allocations when doing scans of large repetitive binary strings. See
comments in file for reasoning behind implementation. Suggested by
Miguel Sofer in [Patch 429916], but independently implemented.
2001-11-28 Donal K. Fellows <[email protected]>
* doc/regsub.n, doc/regexp.n: Converted dangling references to
METASYNTAX section into references to the re_syntax manual page.
2001-11-27 D. Richard Hipp <[email protected]>
* win/tclWinFCmd.c: Fix a coredump in the filename normalizer code for
Win95/98.
2001-11-27 David Gravereaux <[email protected]>
* win/makefile.vc: Removed the Tk reference for the 'winhelp' target.
Converge at install will need to be the solution for Tk and all other
extensions.
2001-11-27 Donal K. Fellows <[email protected]>
* tests/cmdAH.test (cmdAH-24.2): Made test less sensitive to OS
preemption, but perfection isn't practical. [Bug 463189, reported by
Don Porter]
* tests/switch.test (switch-9.*): Added tests to exercise more of the
argument checking. (switch-7.2,switch-7.3): Test changed behaviour
slightly.
* generic/tclCmdMZ.c (Tcl_SwitchObjCmd): Reworked argument parsing to
be stricter about what it accepts. This should make uses of the
[switch] command be more maintainable. [Bug 475397, reported by Don
Porter]
2001-11-26 Don Porter <[email protected]>
* generic/tclIntPlatDecls.h: 'make genstubs' after changes in
2001-11-23 commit from Daniel Steffen.
2001-11-24 Mo DeJong <[email protected]>
* unix/Makefile.in: Add comments to better describe TCL_EXE and when
it should be available.
* win/Makefile.in: Add TCL_EXE variable to be used by rules like `make
genstubs`. Don't set TCL_LIBRARY before running `make genstubs` since
we will be running with a tclsh from the PATH not the one we build.
2001-11-24 Mo DeJong <[email protected]>
* win/configure: Regen.
* win/tcl.m4 (SC_CONFIG_CFLAGS): Add comctl32.lib to wish link libs.
This change was originally added to Tk on 2001-11-09 but was not
committed to Tcl.
2001-11-23 Daniel Steffen <[email protected]>
* unix/Makefile.in:
* unix/configure.in:
* unix/install-sh:
* unix/mkLinks:
* unix/mkLinks.tcl:
* unix/tclLoadDyld.c:
* unix/tclMtherr.c: Mac OSX support: build system, dynamic code loading
and support for case-insensitive filesystems in mkLinks. [Patch 435258]
2001-11-23 Daniel Steffen <[email protected]>
Up-port to 8.4 of mac code changes for 8.3.3 & various new changes for
8.4, some already backported to 8.3.4. [Patch 435658]
* generic/tclObj.c: added #include to fix missing prototype errors
* generic/tcl.h: MAC_TCL: addition of ConditionalMacros.h and use of
DLLIMPORT and DLLEXPORT like on other platforms. ( => no longer need
the .exp files and can remove use of #pragma export that never worked
well)
removed line continuation in #if clause as this breaks the mac
resource compiler (note that *.r files include tcl.h)
* mac/tclMacFile.c: fixed bug in permission checking code
* mac/tclMacLoad.c: corrected utf8 handling, comparison of package
names to code fragment names changed to only match on the length of
package name, this allows for fragment names with version numbers
appended.
* mac/tclMacInt.h:
* generic/tclInt.h:
* mac/tclMacTime.c:
* generic/tclIOUtil.c: moved declaration of TclpGetGMTOffset()
* mac/tclMacShLib.exp:
* mac/tclMacOSA.exp:
* mac/tclMacMSLPrefix.h: removed files
* unix/Makefile.in: removed reference to .exp files
* mac/MW_TclBuildLibHeader.h:
* mac/MW_TclBuildLibHeader.pch:
* mac/MW_TclHeaderCommon.h:
* mac/MW_TclStaticHeader.h:
* mac/MW_TclStaticHeader.pch: new precompiled header files
* mac/MW_TclAppleScriptHeader.pch:
* mac/MW_TclHeader.pch:
* mac/MW_TclTestHeader.pch:
* mac/tclMacCommonPch.h: revised precompiled header handling: now
include a common header file 'MW_TclHeaderCommon.h' from all .pch
files, the .pch files themselves now only setup #defines (e.g.
BUILD_tcl, STATIC_BUILD, TCL_DEBUG, TCL_THREADS) like in makefiles on
other platforms.
* mac/tclMac.h:
* mac/tclMacPort.h:
* mac/tclMacInt.h: use of BUILD_tcl and TCL_STORAGE_CLASS like on other
platforms, standardize #include'd files to what's done on other
platforms, removed use of #pragma export.
* mac/tcltkMacBuildSupport.sea.hqx: new archive of mac build support
files & suggested build environment directory hierarchy:
'Building MacTclTk' & 'CW Pro6 changes' readme's.
projects for MoreFiles 1.5.2 static & shared libraries.
project & sources for 'pseudoCarbonSupport', see below.
included XML versions of the projects for CW Pro5 or Pro7 users.
* mac/tclMacProjects.sea.hqx: updated mac build project files:
build support for CodeWarrior Pro6, UnivIntf 3.4 & shared runtime
libraries: the MSL libraries and MoreFiles are no longer compiled into
Tcl.shlb, all non-static binaries now use the Pro6 shared runtime
libraries and MoreFiles.shlb. These shlbs are merged into the standard
Wish and TclShell, but 3rd party applications linking with Tcl.shlb or
Tk.shlb need to setup access to them. (see the "(sh-ppc)" targets
for how to do this.)
included XML versions of the projects for CW Pro5 or Pro7 users.
use compat/strtod.c instead of MSL's strtod()
use WASTE versions of MSL for tcl test target to avoid text buffer
cutoff at 32k.
Merging the full MSL.shlb and the other shlbs into Wish & TclShell
makes them a bit larger than before, use unmerged binaries to avoid
copying the shared code with every application, e.g. when deploying
numerous Wish based droplets.
Note that using CW Pro5 to compile extensions is in principle still
possible, but need to link with Pro6 runtime libraries.
Tclapplescript now loads and runs on CFM68k.
Highly experimental "pseudoCarbon" support for Tcl only on OS 8/9:
binaries in "Build:(Carbon):" link against CarbonLib instead of
InterfaceLib, however the actual code has not been carbonized! i.e. it
will not run on OSX and may not even run properly with CarbonLib.
This should in principle allow you to build & test OS9 CFM Carbon
binaries that need to link with Tcl.shlb. On OSX you can use the
native Tcl.framework, but you have to build a MachO binary as there
is no CFM glue lib for Tcl.framework.
the library pseudoCarbonSupport.shlb manually loads the symbols from
InterfaceLib that are not in CarbonLib but are needed by the
uncarbonized code in Tcl.shlb and TclShell.
* generic/tclMain.c: MAC_TCL: workaround for broken/non-standard isatty
on MW Pro6, #include <unistd.h> instead of defining isatty
* mac/tclMacPort.h: MW Pro6 changes for MSL fcntl.h, stat.h & isatty
* mac/tclMacAppInit.c: add EXTERN to InstallConsole to enable DLL
export via the TCL_STORAGE_CLASS mechanism.
* mac/tclMacFCmd.c: fix for FSpDirectoryCopy API change
* mac/tclMacLibrary.c: emit compile time error when
TCL_REGISTER_LIBRARY and USE_TCL_STUBS are both defined at the same
time in an extension, this use is not currently supported and will
result in a crash when dynamically loading the extension.
* mac/tclMacApplication.r:
* mac/tclMacLibrary.r:
* mac/tclMacOSA.r:
* mac/tclMacResource.r: fixed obsolete copyrights/dates in version
strings; updated version strings to standard usage; added support for
'(Support Libraries)' subfolder for shared runtime libraries in
unmerged binaries; commented out demo setting of "Tcl Environment
Variables"; reorganized resources among these files to avoid multiple
copies in applications and shared libraries, the script libraries are
now no longer duplicated in Tclsh but are only included in the
resources of Tcl.shlb.
* mac/tclMacChan.c:
* mac/tclMacSock.c: cast for *BlockMode
* mac/tclMacUtil.c:
* mac/tclMacMath.h: removed obsolete hypot() definition
* generic/tclIntPlatDecls.h:
* generic/tclInt.decls:
* generic/tclStubInit.c:
* mac/tclMacNotify.c:
* mac/tclMacOSA.c:
* mac/tclMacUtil.c:
* generic/tclThreadTest.c: renamed routines conflicting with standard
Apple or MoreFiles headers (at compile or link time):
GetGlobalMouse -> GetGlobalMouseTcl
FSpGetDirectoryID -> FSpGetDirectoryIDTcl
FSpOpenResFileCompat -> FSpOpenResFileCompatTcl
FSpCreateResFileCompat -> FSpCreateResFileCompatTcl
NewThread -> NewTestThread
the renamed MoreFiles *Tcl routines are just wrappers calling into the
MoreFiles DLL.
* mac/tclMacCommonPch.h:
* mac/tclMacThrd.c:
* mac/tclMacPanic.c: removed OLDROUTINENAMES define, renamed obsolete
apple API names to modern equivalents; UH3.4 support: added #include
<ControlDefinitions.h>, updated New*Proc() calls to New*UPP().
* mac/tclMacUnix.c: added missing (Tcl_Obj ***) cast to
Tcl_ListObjGetElements call
* mac/tclMacAlloc.c: modernized TclpSysAlloc() to use temporary memory
instead of system heap memory when available (MacOS >= 7.5 and
possibly earlier, use of system heap has been discouraged for a long
time and has many disadvantages, e.g. memory isn't paged out, and
errors can very easily bring the system down); fixed crashing bug in
TclpSysRealloc() and CleanUpExitProc() where memory was being accessed
after having been deallocated; fixed memory leak in (de)allocation
code (for every block ever allocated with TclpSysAlloc, a Ptr was
leaked), if temporary memory is available, don't track allocated
memory, instead use RecoverHandle() to get Handle from Ptr, otherwise
use doubly linked list to correctly track memory and free all
allocated memory; added new option for ConfigureMemory:
MEMORY_DONT_USE_TEMPMEM, disables use of temporary memory even when it
would be available, only necessary when writing e.g. a driver (using
tcl??); increased fraction of application heap reserved for OS
routines to 512K
* compat/strftime.c:
* mac/tclMacTime.c:
* mac/tclMacPort.h:
* generic/tclInt.decls:
* generic/tclIntPlatDecls.h:
* generic/tclStubInit.c: timezone support for mac via TclpGetTZName()
like on windows, using an inverse timezone table adapted from
tclDate.c to map gmtoffset in seconds gotten from the MacOS APIs to a
timezone string, as there is no good way to get this info from MacOS.
I had to make up some unusual timezones and arbitrarily decide on the
most standard of the multiple choices available for every timezone.
* generic/tclExecute.c: workaround for a MSL bug/misfeature: for very
small floats, MSL can return errno ERANGE but a non-zero value (<
LDBL_MIN however)
* mac/tclMacAppInit.c: support for WASTE text library using temporary
memory, setting has no effect if WASTE is not used.
* mac/tclMacPanic.c: removed duplicate code from generic/tclPanic.c
and added that file to projects instead.
* tests/all.tcl: set tcltest::singleProcess 1 as multiple processes
are not available on the mac.
* tests/cmdAH.test: access time not available on the mac, skip the
atime touch test
* tests/appendComp.test:
* tests/cmdMZ.test:
* tests/compile.test:
* tests/exec.test:
* tests/fileName.test:
* tests/lset.test:
* tests/namespace.test:
* tests/tcltest.test: added missing cleanups/tests/catches that caused
tests to fail on the mac.
* doc/tclvars.n: doc bug, env(PWD) should be env(HOME) [Bug 463834]
2001-11-21 Don Porter <[email protected]>
* tests/trace.test (trace-8.8): Corrected test for Bug 219393.
* generic/tclBasic.c (Tcl_DeleteCommandFromToken,CallCommandTraces):
* generic/tclCmdMZ>c (Tcl_UntraceCommand): Added Tcl_Preserve and
Tcl_Release calls to prevent deletion of CommandTrace structures until
all callers are done using them, preventing memory corruption. [Bug
453805]
2001-11-20 Kevin B. Kenny <[email protected]>
* doc/GetTime.3 (Tcl_GetTime):
* generic/tcl.decls (Tcl_GetTime):
* generic/tclClock.c (Tcl_ClockObjCmd):
* generic/tclCompile.c (TclCleanupByteCode, TclInitByteCodeObj):
* generic/tclCmdMZ.c (Tcl_TimeObjCmd):
* generic/tclUtil.c (TclpGetTime):
* generic/tclTest.c (GetTimesCmd):
* generic/tclTimer.c (Tcl_CreateTimerHandler, TimerSetupProc,
(TimerCheckProc, TimerHandlerEventProc):
* mac/tclMacNotify.c (Tcl_SetTimer):
* mac/tclMacShLib.exp (Tcl_GetTime):
* mac/tclMacTime.c (Tcl_GetTime):
* unix/tclUnixChan.c (TclUnixWaitForFile):
* unix/tclUnixEvent.c (Tcl_Sleep):
* unix/tclUnixThrd.c (Tcl_ConditionWait):
* unix/tclUnixTime.c (Tcl_GetTime):
* win/tclWinNotify.c (Tcl_Sleep):
* win/tclWinTest.c (TestwinclockCmd):
* win/tclWinTime.c (TclpGetSeconds, TclpGetClicks, Tcl_GetTime):
Changed all uses of TclpGetTime to Tcl_GetTime. Added Tcl_GetTime to
the Stubs table and the library documentation. Added a TclpGetTime in
tclUtil.c for backward compatibility of extensions. [Patch 483500,
TIP#73]
* generic/tclCmdMZ.c (Tcl_TimeObjCmd): Corrected an error in the
[time] command that caused incorrect results to be returned if the
total duration of all iterations exceeded 2**31 microseconds. [Bug
478847]
* generic/tclInt.decls:
* generic/tclInt.h:
* generic/tclStubInit.h: Reran 'make genstubs'
2001-11-20 Miguel Sofer <[email protected]>
* generic/tclBasic.c
* generic/tclCompile.h:
* generic/tclExecute.c: moving all code relative to bytecodes from
tclBasic.c to tclExecute.c - the functions RecordTracebackInfo and
Tcl_ExprObj went to tclExecute.c, and new interface function was
defined (TclCompEvalObj).
The final objective of this sequence of moves is to provide a clean,
clear-cut interface between Tcl's core and the compiler/engine
subsystem.
2001-11-20 Miguel Sofer <[email protected]>
* generic/tclBasic.c
* generic/tclCompile.h:
* generic/tclExecute.c: factoring out of common code in tclBasic.c
(new function TclInterpReady defined: it resets the interp's result,
then checks that it hasn't been deleted and that the nesting level is
acceptable). Passed the responsibility of calling it to the *callers*
of TclEvalObjvInternal.
2001-11-20 Miguel Sofer <[email protected]>
* generic/tclBasic.c
* generic/tclExecute.c: a better variant of the previous-to-last
commit (restoring numLevels computations). The managing of the levels
now has to be done by the *callers* of TclEvalObjvInternal
2001-11-20 Miguel Sofer <[email protected]>
* generic/tclExecute.c: missing variable declaration under
TCL_COMPILE_DEBUG.
2001-11-20 Miguel Sofer <[email protected]>
* generic/tclExecute.c:
* generic/tclProc.c: restoring the computations of iPtr->numLevels to
the original logic (previous to buggy modifs on 2001-11-16).
2001-11-20 Jeff Hobbs <[email protected]>
* tools/eolFix.tcl (new-file):
* unix/Makefile.in: added EOL correction for Windows bat files to
dist target. [Bug 219409] (davygrvy)
* unix/tclUnixInit.c (TclpSetInitialEncodings): update of patch from
2001-11-16 that uses the old Tcl encoding check mechanism as a
fallback to the original. Also added a TCL_DEFAULT_ENCODING #define
(defaults to iso8859-1). Tcl will first try setlocale and nl_langinfo,
and if that fails, guess based on certain LANG|LC_* env vars. [Patch
418645]
2001-11-19 David Gravereaux <[email protected]>
* win/buildall.vc.bat: Added useful comments.
2001-11-19 Miguel Sofer <[email protected]>
* tests/compile.test: added a test for bug [Bug 483309]
2001-11-19 Vince Darley <[email protected]>
* win/tclWinFile.c:
* win/tclWinFCmd.c:
* win/tclWin32Dll.c:
* doc/file.n:
* tests/winFCmd.test: improved speed of file normalization for
Win95/98, and clarified docs on differences in file normalization
between NT/2000 and the older operating systems. Added test to ensure
normalization is correct.
2001-11-19 Miguel Sofer <[email protected]>
* generic/tclBasic.c:
* generic/tclParse.c: Code reorganisation. Moved all evaluation
functions from tclParse.c to tclBasic.c, so that now tclParse.c deals
exclusively with parsing and all evaluations are done by code in
tclBasic.c. The functions moved are: TclEvalObjvInternal,
Tcl_EvalObjv, Tcl_LogCommandInfo, Tcl_EvalTokensStandard,
Tcl_EvalTokens, Tcl_EvalEx, Tcl_Eval, Tcl_EvalObj and
Tcl_GlobalEvalObj.
2001-11-19 Donal K. Fellows <[email protected]>
* tests/trace.test (trace-8.8): Added adapted version of [Bug 219393]
as new test; the test won't reliably show up the old problem unless it
is being run under something like Purify, but something is better than
nothing...
* generic/tclVar.c (Tcl_TraceVar2, Tcl_UntraceVar2): Added missing
mask bits for trace result type and a check for a nonsense flag
combination.
* generic/tclCmdMZ.c (TraceVarProc): Added missing test for NULL when
deleting a trace that doesn't cause an error.
* doc/TraceVar.3: Added documentation for change due to TIP#68.
* generic/tclCmdMZ.c (TraceVarInfo): Removed problematic errMsg field
from structure.
(TraceVarProc): Removed references to errMsg field and changed
handling of errors so that they returned a Tcl_Obj* containing the
error string. This minimizes the number of calls to the memory
management subsystem.
(TclTraceCommandObjCmd, TraceCommandProc): Removed references to
errMsg field which was never used in command traces in any case.
(Tcl_TraceObjCmd, TclTraceVariableObjCmd): Removed references to
errMsg field and made variable traces register with
TCL_TRACE_RESULT_OBJECT bit set.
* generic/tcl.h (TCL_TRACE_RESULT_DYNAMIC,TCL_TRACE_RESULT_OBJECT):
New constants to define how to handle the strings returned from trace
callbacks [TIP#68]
* generic/tclVar.c (CallTraces, Tcl_GetVar2Ex, TclGetIndexedScalar,
(TclGetElementOfIndexedArray, Tcl_SetVar2Ex, TclSetIndexedScalar,
(TclSetElementOfIndexedArray, Tcl_UnsetVar2, Tcl_ArrayObjCmd,
(TclDeleteVars, TclDeleteCompiledLocalVars, DeleteArray,
(TclVarTraceExists): Support for those new trace flags.
2001-11-19 Miguel Sofer <[email protected]>
* generic/tclCompCmds.c: patch for [Bug 483309] (petasis).
2001-11-16 Kevin B. Kenny <[email protected]>
* generic/tclListObj.c: removed a C++-style comment that was
inadvertently left in the source code.
2001-11-16 Jeff Hobbs <[email protected]>
* tests/interp.test:
* generic/tclInterp.c (SlaveObjCmd): Corrected argument checking for
'$interp alias|aliases|issafe'. [Patch 479560] (thoyts, hobbs)
* unix/tclUnixInit.c: added HAVE_LANGINFO code block.
* unix/configure: regened
* unix/configure.in: added SC_ENABLE_LANGINFO call
* unix/tcl.m4: made SHLIB_LD_LIBS='${LIBS}' for FreeBSD* (meyer)
Added modified version of Wagner patch to make use of nl_langinfo
where possible to determine Unix platform encoding, instead of the
inflexible built-in system. This is used by default when possible, and
can be disabled with --enable-langinfo=no. [Patch 418645] (hobbs,
wagner)
2001-11-16 Miguel Sofer <[email protected]>
* generic/tclCompile.h:
* generic/tclExecute.c:
* generic/tclObj.c: moved Tcl_GetCommandFromObj and all defining code
for tclCmdNameType objects to tclObj.c (from tclExecute.c). This code
has nothing to do with bytecodes.
2001-11-16 Miguel Sofer <[email protected]>
* generic/tclBasic.c:
* generic/tclCompile.h:
* generic/tclExecute.c:
* generic/tclParse.c:
* generic/tclProc.c:
* tests/stack.test: consolidation of duplicated code (in
TclExecuteByteCode and EvalObjv); renaming of EvalObjv to TclEvalObjv
as it is not static anymore; restored consistency of level counts
between compiled and directly evaled code. [Bug 480896]
2001-11-12 David Gravereaux <[email protected]>
* win/makefile.vc:
* win/rules.vc: Small bug fixes.
* win/README: added some docs pointing to the docs in makefile.vc for
it's use.
2001-10-17 Kevin B. Kenny <[email protected]>
* doc/lappend.n:
* doc/lindex.n:
* doc/linsert.n:
* doc/list.n:
* doc/llength.n:
* doc/lrange.n:
* doc/lsearch.n:
* doc/lset.n (new-file):
* doc/lsort.n:
* generic/tclBasic.c (builtInCmds, Tcl_EvalObjEx):
* generic/tclCmdIL.c (Tcl_LindexObjCmd, Tcl_LindexList):
(Tcl_LindexFlat, Tcl_LsetObjCmd):
* generic/tclCompCmds.c (Tcl_CompileLindexCmd, Tcl_CompileLsetCmd):
* generic/tclCompile.c:
* generic/tclCompile.h:
* generic/tclExecute.c (TclExecuteByteCode):
* generic/tclInt.decls:
* generic/tclInt.h:
* generic/tclIntDecls.h:
* generic/tclListObj.c (TclLsetList, TclLsetFlat, TclSetListElement):
* generic/tclObj.c (TclInitObjSubsystem):
* generic/tclStubInit.c:
* generic/tclTestObj.c (TestobjCmd):
* generic/tclUtil.c (TclGetIntForIndex, SetEndOffsetFromAny):
* generic/tclVar.c (Tcl_LappendObjCmd):
* tests/lindex.test:
* tests/lset.test (new-file):
* tests/lsetComp.test (new-file):
* tests/obj.test:
* tests/string.test:
* tests/stringComp.test:
Reference implementation of TIP's #22, #33 and #45. Adds the ability
of the [lindex] command to have multiple index arguments, and adds the
[lset] command. Both commands are byte-code compiled. [Patch 471874]
(work by Kenny, commited by Hobbs)
2001-11-12 David Gravereaux <[email protected]>
* win/buildall.vc.bat(new):
* win/makefile.vc: Small fix with deriving the "OriginalFilename"
string in the .rc scripts. Added a quick batchfile for building the
entire thing.
2001-11-12 Jeff Hobbs <[email protected]>
* doc/FileSystem.3:
* doc/file.n:
* doc/tcltest.n: converted use of \' to more reasonable format.
2001-11-10 Mo DeJong <[email protected]>
* unix/Makefile.in:
* win/Makefile.in: Add "make gdb" target. This target can run tclsh
inside either gdb or insight.
2001-11-10 David Gravereaux <[email protected]>
* win/makefile.vc: Added a check to make sure one runs the makefile
from the /win directory only.
* win/mkd.bat:
* win/rmd.bat: Changes from Llyod Lim for better stability.
[Patch 456759]
2001-11-09 David Gravereaux <[email protected]>
* win/makefile.vc:
* win/tcl.dsp: winhelp target fixes for non-NT systems. It seems
NMAKE under these remembers changed directories during commands. A new
tcltest feature from Peter Spjuth <[email protected]> to specify a
pattern file from the commandline and redirecting output to a file
when not under NT with it's scrollback console. Then it replays it,
piped through more. Added 2 new static "configurations" to tcl.dsp.
I could keep adding more, but I think we should leave it up to the
user for customizing it.
Sticky-points left: 'profile' option.
2001-11-09 Jeff Hobbs <[email protected]>
* doc/FileSystem.3:
* doc/StdChannels.3:
* doc/file.n:
* doc/tcltest.n:
* tools/man2help.tcl:
* tools/man2help2.tcl: fixed winhelp generation problems
[Patch 480268]
* unix/configure:
* unix/tcl.m4: added -lc to AIX libs, fixed path to ldAix
2001-11-09 Don Porter <[email protected]>
* tests/var.test:
* generic/tclVar.c: Corrected bug in [global] when dealing with
variable names matching :*. [Bug 480176]
2001-11-08 Mo DeJong <[email protected]>
Fixup stack size under OSF1. [Patch 474790]
* unix/configure: Regen.
* unix/tcl.m4: Add HAVE_PTHREAD_ATTR_SETSTACKSIZE define to
EXTRA_CFLAGS to adjust initial stack size.
2001-11-08 Mo DeJong <[email protected]>
Enable thread support under FreeBSD. [Bug 473708]
* unix/configure: Regen.
* unix/tcl.m4 (SC_ENABLE_THREADS): Check for pthread functions in
libc_r and enable thread support if found.
* unix/dltest/Makefile.in: Set SHLIB_LD_LIBS and use it in the
Makefile to properly link a shared library.
2001-11-08 Mo DeJong <[email protected]>
* unix/Makefile.in:
* unix/dltest/Makefile.in: Avoid adding libc to the LIBS variable
since it is not needed when linking with CC. If required when linking
with LD it should be done on a case by case basis in tcl.m4.
2001-11-08 David Gravereaux <[email protected]>
* win/rules.vc:
* win/makefile.vc: Fixed install target to adjust for the different
build types. Added a 'linkexten' option to link the win extensions
inside the shell when built static. Placed win/tclAppInit.c patch in
SF patch DB for approval. 'profile' option not hooked in yet.
Everything else know is done.
* win/tcl.dsp(new):
* win/tcl.dsw(new): Simple MsDev stub project files that calls
makefile.vc. Will help run Tcl in the debugger easier without
confusing MsDev for where the .pdb files are.
2001-11-07 Mo DeJong <[email protected]>
* unix/Makefile.in:
* win/Makefile.in: Print a message indicating that the user should run
"make genstubs" when the generated tclStubInit.c file is out of date.
We can't regenerate automatically since there may be no tclsh on the
system and that would cause bootstrap problems. [Bug 465874]
2001-11-07 Mo DeJong <[email protected]>
Define TCL_INCLUDE_SPEC in tclConfig.sh. It should be included by
extensions that need to find Tcl include headers in the install
location. The user can override the include install dir with
--includedir so we need to record this information for extensions.
[Bug 421835]
* unix/configure: Regen.
* unix/configure.in: Define TCL_INCLUDE_SPEC.
* unix/tclConfig.sh.in: Define TCL_INCLUDE_SPEC.
* win/configure: Regen.
* win/configure.in: Define TCL_INCLUDE_SPEC.
* win/tclConfig.sh.in: Define TCL_INCLUDE_SPEC.
2001-11-07 David Gravereaux <[email protected]>
* win/rules.vc:
* win/makefile.vc: Dropped the NOMSVCRT macro and put it on the option
list instead. It makes more sense to me this way as NOMSVCRT=0 would
only be the valid setting. Fixed the dde and reg extension for
building static. Improved, but not perfected, the winhelp target.
2001-11-07 Mo DeJong <[email protected]>
* win/README: Change minimum VC++ version to 5.X since 4.X is known
not to work.
Indicate that Mingw is required and building with Cygwin gcc is not
supported. Include instructions that indicate how to install Mingw and
what URLs folks should use to download the supported version of Mingw.
* win/configure: Regen.
* win/configure.in: Error out if user tries to compile the Windows
version of Tcl with Cygwin gcc. Users should compile with Mingw gcc
instead.
2001-11-06 Andreas Kupries <[email protected]>
* generic/tclIO.c (ReadChars): Fixed [Bug 478856] reported by Stuart
Cassoff <[email protected]>. The bug caused loss of
fileevents when [read]ing less data from the channel than buffered.
Due to an empty input buffer the flag CHANNEL_NEED_MORE_DATA was set
but never reset, causing the I/O system to wait for more data instead
of using a timer to synthesize fileevents and to flush the pending
data out of the buffers.
2001-11-06 David Gravereaux <[email protected]>
* win/rules.vc (new):
* win/makefile.vc: Complete over/under rewrite to support numerous
build options all from the commandline itself without needing to edit
the makefile. Now requires vcvars32.bat to be run prior to running
nmake for bootstraping the environment. Fully doc'd usage for it is in
makefile.vc. Commentary welcome. Sticky points left are:
1) winhelp target shows errors in the converting script.
2) .rc scripts aren't getting the right #defines to build the correct
"OriginalFilename" strings. (have patch, won't commit yet)
3) Naming convention with suffixes describing the buildtype are 'tsdx'
which will need public acceptance. ie. tclsh84tsx.exe is a (t)
threaded shell (s) statically linked to the core and (x) uses
msvcrt instead of libcmt.
2001-11-04 Vince Darley <[email protected]>
* library/init.tcl: made filesystem fallback proc ::tcl::CopyDirectory
more robust to vagaries of non-native filesystems.
2001-11-02 Vince Darley <[email protected]>
* doc/file.n:
* generic/tclIOUtil.c: updated documentation and comments to clarify
behaviour of 'file copy' wrt soft links.
2001-10-29 Vince Darley <[email protected]>
* win/tclWinFile.c: fix to '-types {f r}' bug in TclpMatchInDirectory
(which could cause a UMR, as well as returning wrong results). Also
improved API for 'stat' to resolve [Bug 219258].
* win/tclWin32Dll.c
* win/tclWinInt.h: addition of improved stat API to internal lookup
table.
* tests/fileName.test: two new tests for the above bug.
* generic/tclIOUtil.c: some cleanup of comments and #ifdefs
2001-10-29 Donal K. Fellows <[email protected]>
* unix/tclUnixFile.c (TclpMatchInDirectory): Argument to access() was
entryPtr->d_name instead of nativeEntry which failed when trying to
check access for files in other than the current directory. [Bug
475941, reported by Georgios Petasis]
2001-10-25 Donal K. Fellows <[email protected]>
* unix/tclUnixChan.c: Added stateUpdated member to struct TtyState.