summaryrefslogtreecommitdiffstats
path: root/mac/morefiles.doc
blob: 58f0929055aeead071562944a58663f1676939e6 (plain)
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
Notes about MoreFiles, dnr.c & other non-Tcl source files
---------------------------------------------------------

RCS: @(#) $Id: morefiles.doc,v 1.2 1998/09/14 18:40:04 stanton Exp $

The Macintosh distribution uses several source files that don't
actually ship with Tcl.  This sometimes causes problems or confusion
to developers.  This document should help clear up a few things.

dnr.c
-----

We have found a way to work around some bugs in dnr.c that 
Apple has never fixed even though we sent in numerous bug reports.
The file tclMacDNR.c simply set's some #pragma's and the includes
the Apple dnr.c file.  This should work the problems that many of
you have reported with dnr.c.

More Files
----------

Macintosh Tcl/Tk also uses Jim Luther's very useful package called
More Files.  More Files fixes many of the broken or underfunctional
parts of the file system.

More Files can be found on the MetroWerks CD and Developer CD from
Apple.  You can also down load the latest version from:

	ftp://members.aol.com/JumpLong/

The package can also be found at the home of Tcl/Tk for the mac:

	ftp://ftp.sunlabs.com/pub/tcl/mac/

I used to just link the More Files library in the Tcl projects.  
However, this caused problems when libraries wern't matched correctly.
I'm now including the files in the Tcl project directly.  This
solves the problem of missmatched libraries - but may not always
compile.

If you get a compiliation error in MoreFiles you need to contact
Jim Luther.  His email address:

	JumpLong@aol.com

The version of More Files that we use with Tcl/Tk is 1.4.3.  Early
version may work as well..

Unfortunantly, there is one bug in his library (in 1.4.3).  The bug is
in the function FSpGetFullPath found in the file FullPath.c.  After
the call to PBGetCatInfoSync you need to change the line:

    if ( result == noErr )

	to:

    if ( (result == noErr) || (result == fnfErr) )


The latest version of More Files is 1.4.6.  Unfortunantly, this
version has a bug that keeps it from working with shared libraries
right out of the box.  If you want to use 1.4.6 you can but you will
need to make the following fix:

	In the file "Opimization.h" in the More Files package you
	need to remove the line "#pragma internal on".  And in the
	file "OptimazationEnd.h" you need to remove the line
	"#pragma internal reset".

Note: the version of MoreFile downloaded from the Sun Tcl/Tk site
will have the fix included.  (If you want you can send email to
Jim Luther suggesting that he use Tcl for regression testing!)

Ray Johnson