home *** CD-ROM | disk | FTP | other *** search
MacBinary | 1987-10-31 | 7.8 KB | [ TEXT/MPS ]
open in: MacOS 8.1
extracted
|
Win98
extracted
|
DOS
extracted
view JSON data
|
view as text
This file was processed as: MacBinary
(archive/macBinary ).
You can browse this item here: FileName.p
Confidence Program Detection Match Type Support
66%
dexvert
ZX81 Sinclair BASIC (image/sinclairBASIC)
ext
Supported
10%
dexvert
MacBinary (archive/macBinary)
fallback
Supported
1%
dexvert
bsdiff patch (other/bsdiffPatch)
ext
Unsupported
1%
dexvert
imgdiff patch (other/imgdiffPatch)
ext
Unsupported
1%
dexvert
WSUS Patch Storage File (other/wsusPatchStorageFile)
ext
Unsupported
1%
dexvert
Text File (text/txt)
fallback
Supported
100%
file
MacBinary II, inited, Sat Oct 31 16:29:22 1987, modified Sat Oct 31 16:29:22 1987, creator 'MPS ', type ASCII, 7414 bytes "FileName.p" , at 0x1d76 382 bytes resource
default (weak)
99%
file
data
default
74%
TrID
Macintosh plain text (MacBinary)
default
25%
TrID
MacBinary 2
default (weak)
100%
siegfried
fmt/1762 MacBinary (II)
default
100%
lsar
MacBinary
default
id metadata key value macFileType [ TEXT] macFileCreator [ MPS ]
hex view +--------+-------------------------+-------------------------+--------+--------+ |00000000| 00 0a 46 69 6c 65 4e 61 | 6d 65 2e 70 00 00 00 00 |..FileNa|me.p....| |00000010| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |00000040| 00 54 45 58 54 4d 50 53 | 20 01 00 00 00 00 00 00 |.TEXTMPS| .......| |00000050| 00 00 00 00 00 1c f6 00 | 00 01 7e 9d b0 06 b2 9d |........|..~.....| |00000060| b0 06 b2 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 0c fc 00 00 |........|........| |00000080| 7b 24 52 2d 20 20 20 20 | 20 20 20 20 20 20 09 7d |{$R- | .}| |00000090| 0d 7b 24 53 20 46 69 6c | 65 4e 61 6d 65 20 7d 0d |.{$S Fil|eName }.| |000000a0| 0d 28 2a 2a 2a 20 46 69 | 6c 65 6e 61 6d 65 0d 0d |.(*** Fi|lename..| |000000b0| 54 68 69 73 20 48 79 70 | 65 72 43 61 72 64 20 58 |This Hyp|erCard X| |000000c0| 46 75 6e 63 74 69 6f 6e | 20 77 69 6c 6c 20 70 72 |Function| will pr| |000000d0| 65 73 65 6e 74 20 74 68 | 65 20 75 73 65 72 20 77 |esent th|e user w| |000000e0| 69 74 68 20 74 68 65 20 | 73 74 61 6e 64 61 72 64 |ith the |standard| |000000f0| 0d 53 46 47 65 74 46 69 | 6c 65 20 64 69 61 6c 6f |.SFGetFi|le dialo| |00000100| 67 20 62 6f 78 20 61 6e | 64 20 72 65 74 75 72 6e |g box an|d return| |00000110| 20 74 68 65 20 75 73 65 | 72 73 20 72 65 73 70 6f | the use|rs respo| |00000120| 6e 63 65 20 74 6f 20 74 | 68 65 20 63 61 6c 6c 65 |nce to t|he calle| |00000130| 72 0d 61 73 20 65 69 74 | 68 65 72 20 61 20 66 75 |r.as eit|her a fu| |00000140| 6c 6c 20 70 61 74 68 20 | 6e 61 6d 65 20 6f 66 20 |ll path |name of | |00000150| 74 68 65 20 6e 65 77 20 | 66 69 6c 65 20 6f 72 20 |the new |file or | |00000160| 65 6d 70 74 79 20 69 66 | 20 63 61 6e 63 65 6c 65 |empty if| cancele| |00000170| 64 2e 0d 0d 49 20 68 61 | 76 65 20 64 65 70 61 72 |d...I ha|ve depar| |00000180| 74 65 64 20 66 72 6f 6d | 20 74 68 65 20 68 75 6d |ted from| the hum| |00000190| 61 6e 20 69 6e 74 65 72 | 66 61 63 65 20 67 75 69 |an inter|face gui| |000001a0| 64 65 6c 69 6e 65 73 20 | 66 6f 72 20 64 69 61 6c |delines |for dial| |000001b0| 6f 67 0d 62 6f 78 65 73 | 20 61 73 20 74 68 65 20 |og.boxes| as the | |000001c0| 53 46 47 65 74 46 69 6c | 65 20 64 69 61 6c 6f 67 |SFGetFil|e dialog| |000001d0| 20 77 69 6c 6c 20 62 65 | 20 63 65 6e 74 65 72 65 | will be| centere| |000001e0| 64 20 69 6e 20 74 68 65 | 20 68 79 70 65 72 63 61 |d in the| hyperca| |000001f0| 72 64 0d 77 69 6e 64 6f | 77 20 61 6e 64 20 6e 6f |rd.windo|w and no| |00000200| 74 20 74 68 65 20 73 63 | 72 65 65 6e 2e 20 20 4d |t the sc|reen. M| |00000210| 79 20 72 65 73 6f 6e 20 | 66 6f 72 20 74 68 69 73 |y reson |for this| |00000220| 20 69 73 20 74 68 61 74 | 20 48 79 70 65 72 43 61 | is that| HyperCa| |00000230| 72 64 20 0d 68 61 73 20 | 6f 6e 6c 79 20 6f 6e 65 |rd .has |only one| |00000240| 20 77 69 6e 64 6f 77 20 | 28 69 67 6e 6f 72 69 6e | window |(ignorin| |00000250| 67 20 6d 65 73 73 61 67 | 65 20 62 6f 78 2c 20 26 |g messag|e box, &| |00000260| 63 29 20 77 69 74 68 69 | 6e 20 77 68 69 63 68 20 |c) withi|n which | |00000270| 6d 61 6e 79 0d 6f 66 20 | 74 68 65 20 72 75 6c 65 |many.of |the rule| |00000280| 73 20 61 72 65 20 62 72 | 6f 6b 65 6e 20 73 6f 20 |s are br|oken so | |00000290| 62 79 20 70 6c 61 63 69 | 6e 67 20 74 68 65 20 64 |by placi|ng the d| |000002a0| 69 61 6c 6f 67 20 63 65 | 6e 74 65 72 65 64 20 6f |ialog ce|ntered o| |000002b0| 6e 20 74 68 65 0d 77 69 | 6e 64 6f 77 20 69 74 20 |n the.wi|ndow it | |000002c0| 63 6c 65 61 72 6c 79 20 | 69 6e 64 69 63 61 74 65 |clearly |indicate| |000002d0| 73 20 74 68 65 20 64 69 | 61 6c 6f 67 20 68 61 73 |s the di|alog has| |000002e0| 20 62 65 65 6e 20 70 72 | 65 73 65 6e 74 65 64 20 | been pr|esented | |000002f0| 64 6f 20 74 6f 20 0d 70 | 72 65 73 73 69 6e 67 20 |do to .p|ressing | |00000300| 61 20 62 75 74 74 6f 6e | 2e 0d 09 0d 4d 75 63 68 |a button|....Much| |00000310| 20 6f 66 20 74 68 65 20 | 63 6f 64 65 20 69 73 20 | of the |code is | |00000320| 61 20 74 61 6b 65 6e 20 | 66 72 6f 6d 20 74 68 65 |a taken |from the| |00000330| 20 46 69 6c 65 4e 61 6d | 65 20 58 46 75 6e 63 74 | FileNam|e XFunct| |00000340| 69 6f 6e 20 62 79 0d 09 | 0d 09 53 74 65 76 65 20 |ion by..|..Steve | |00000350| 4d 61 6c 6c 65 72 0d 09 | 41 70 70 6c 65 20 43 6f |Maller..|Apple Co| |00000360| 6d 70 75 74 65 72 20 54 | 72 61 69 6e 69 6e 67 20 |mputer T|raining | |00000370| 53 75 70 70 6f 72 74 0d | 09 43 6f 70 79 72 69 67 |Support.|.Copyrig| |00000380| 68 74 20 a9 20 31 39 38 | 37 20 41 70 70 6c 65 20 |ht . 198|7 Apple | |00000390| 43 6f 6d 70 75 74 65 72 | 0d 09 41 70 70 6c 65 4c |Computer|..AppleL| |000003a0| 69 6e 6b 3a 20 4d 41 4c | 4c 45 52 31 0d 0d 54 6f |ink: MAL|LER1..To| |000003b0| 20 63 6f 6d 70 69 6c 65 | 20 61 6e 64 20 6c 69 6e | compile| and lin| |000003c0| 6b 20 77 69 74 68 20 4d | 50 57 20 61 6e 64 20 4d |k with M|PW and M| |000003d0| 50 57 20 50 61 73 63 61 | 6c 0d 09 0d 09 70 61 73 |PW Pasca|l....pas| |000003e0| 63 61 6c 20 2d 77 20 46 | 69 6c 65 4e 61 6d 65 2e |cal -w F|ileName.| |000003f0| 70 0d 09 0d 09 6c 69 6e | 6b 20 2d 6d 20 45 4e 54 |p....lin|k -m ENT| |00000400| 52 59 50 4f 49 4e 54 20 | 0d 09 09 20 2d 72 74 20 |RYPOINT |... -rt | |00000410| 58 46 43 4e 3d 31 20 0d | 09 09 20 2d 73 6e 20 4d |XFCN=1 .|.. -sn M| |00000420| 61 69 6e 3d 46 69 6c 65 | 4e 61 6d 65 20 0d 09 09 |ain=File|Name ...| |00000430| 20 2d 6f 20 48 79 70 65 | 72 43 6f 6d 6d 61 6e 64 | -o Hype|rCommand| |00000440| 73 0d 09 09 20 46 69 6c | 65 4e 61 6d 65 2e 70 2e |s... Fil|eName.p.| |00000450| 6f 0d 09 09 20 49 6e 74 | 65 72 66 61 63 65 2e 6f |o... Int|erface.o| |00000460| 09 09 09 20 0d 09 09 20 | 50 61 73 6c 69 62 2e 6f |... ... |Paslib.o| |00000470| 0d 0d 41 20 74 79 70 69 | 63 61 6c 20 48 79 70 65 |..A typi|cal Hype| |00000480| 72 54 61 6c 6b 20 73 63 | 72 69 70 74 20 63 61 6c |rTalk sc|ript cal| |00000490| 6c 69 6e 67 20 4e 65 77 | 46 69 6c 65 4e 61 6d 65 |ling New|FileName| |000004a0| 20 77 6f 75 6c 64 20 62 | 65 0d 0d 09 2d 2d 20 66 | would b|e...-- f| |000004b0| 75 6e 63 74 69 6f 6e 20 | 46 69 6c 65 4e 61 6d 65 |unction |FileName| |000004c0| 28 20 5b 20 3c 74 79 70 | 65 3e 20 5d 20 29 3a 20 |( [ <typ|e> ] ): | |000004d0| 3c 66 69 6c 65 6e 61 6d | 65 3e 0d 0d 09 6f 6e 20 |<filenam|e>...on | |000004e0| 6d 6f 75 73 65 55 70 0d | 09 09 70 75 74 20 46 69 |mouseUp.|..put Fi| |000004f0| 6c 65 4e 61 6d 65 28 20 | 22 54 45 58 54 22 20 29 |leName( |"TEXT" )| |00000500| 20 69 6e 74 6f 20 66 69 | 6c 65 6e 61 6d 65 0d 09 | into fi|lename..| |00000510| 09 09 0d 09 09 69 66 20 | 66 69 6c 65 6e 61 6d 65 |.....if |filename| |00000520| 20 69 73 20 6e 6f 74 20 | 65 6d 70 74 79 20 74 68 | is not |empty th| |00000530| 65 6e 0d 09 09 09 6f 70 | 65 6e 20 66 69 6c 65 20 |en....op|en file | |00000540| 66 69 6c 65 6e 61 6d 65 | 0d 09 09 09 72 65 61 64 |filename|....read| |00000550| 20 66 72 6f 6d 20 66 69 | 6c 65 20 66 69 6c 65 6e | from fi|le filen| |00000560| 61 6d 65 20 75 6e 74 69 | 6c 20 72 65 74 75 72 6e |ame unti|l return| |00000570| 0d 09 09 09 70 75 74 20 | 69 74 20 69 6e 74 6f 20 |....put |it into | |00000580| 66 69 65 6c 64 20 78 0d | 09 09 09 63 6c 6f 73 65 |field x.|...close| |00000590| 20 66 69 6c 65 20 66 69 | 6c 65 6e 61 6d 65 0d 09 | file fi|lename..| |000005a0| 09 65 6e 64 20 69 66 0d | 09 65 6e 64 20 6d 6f 75 |.end if.|.end mou| |000005b0| 73 65 44 6f 77 6e 0d 09 | 0d 57 72 69 74 74 65 6e |seDown..|.Written| |000005c0| 20 62 79 0d 09 0d 09 41 | 6e 64 72 65 77 20 47 69 | by....A|ndrew Gi| |000005d0| 6c 6d 61 72 74 69 6e 0d | 09 41 63 61 64 65 6d 69 |lmartin.|.Academi| |000005e0| 63 20 26 20 55 73 65 72 | 20 53 65 72 76 69 63 65 |c & User| Service| |000005f0| 2c 20 42 6f 78 20 31 38 | 38 35 0d 09 42 72 6f 77 |, Box 18|85..Brow| |00000600| 6e 20 55 6e 69 76 65 72 | 73 69 74 79 0d 09 50 72 |n Univer|sity..Pr| |00000610| 6f 76 69 64 65 6e 63 65 | 2c 20 52 68 6f 64 65 20 |ovidence|, Rhode | |00000620| 49 73 6c 61 6e 64 20 30 | 32 39 31 32 0d 09 43 6f |Island 0|2912..Co| |00000630| 70 79 72 69 67 68 74 20 | a9 20 31 39 38 37 20 42 |pyright |. 1987 B| |00000640| 72 6f 77 6e 20 55 6e 69 | 76 65 72 73 69 74 79 0d |rown Uni|versity.| |00000650| 09 62 69 74 6e 65 74 3a | 20 20 41 4e 44 52 45 57 |.bitnet:| ANDREW| |00000660| 40 42 52 4f 57 4e 56 4d | 0d 09 09 0d 09 4f 63 74 |@BROWNVM|.....Oct| |00000670| 6f 62 65 72 20 33 31 2c | 20 31 39 38 37 20 2a 2a |ober 31,| 1987 **| |00000680| 2a 29 0d 0d 0d 75 6e 69 | 74 20 66 69 6c 65 6e 61 |*)...uni|t filena| |00000690| 6d 65 55 6e 69 74 3b 0d | 0d 09 69 6e 74 65 72 66 |meUnit;.|..interf| |000006a0| 61 63 65 0d 0d 09 09 75 | 73 65 73 20 6d 65 6d 74 |ace....u|ses memt| |000006b0| 79 70 65 73 2c 20 71 75 | 69 63 6b 64 72 61 77 2c |ypes, qu|ickdraw,| |000006c0| 20 6f 73 69 6e 74 66 2c | 20 74 6f 6f 6c 69 6e 74 | osintf,| toolint| |000006d0| 66 2c 20 70 61 63 6b 69 | 6e 74 66 2c 20 68 79 70 |f, packi|ntf, hyp| |000006e0| 65 72 78 63 6d 64 3b 0d | 0d 09 09 70 72 6f 63 65 |erxcmd;.|...proce| |000006f0| 64 75 72 65 20 65 6e 74 | 72 79 70 6f 69 6e 74 28 |dure ent|rypoint(| |00000700| 70 61 72 61 6d 70 74 72 | 3a 20 78 63 6d 64 70 74 |paramptr|: xcmdpt| |00000710| 72 29 3b 0d 0d 09 69 6d | 70 6c 65 6d 65 6e 74 61 |r);...im|plementa| |00000720| 74 69 6f 6e 0d 0d 09 09 | 70 72 6f 63 65 64 75 72 |tion....|procedur| |00000730| 65 20 66 69 6c 65 6e 61 | 6d 65 28 70 61 72 61 6d |e filena|me(param| |00000740| 70 74 72 3a 20 78 63 6d | 64 70 74 72 29 3b 20 66 |ptr: xcm|dptr); f| |00000750| 6f 72 77 61 72 64 3b 0d | 0d 09 09 70 72 6f 63 65 |orward;.|...proce| |00000760| 64 75 72 65 20 65 6e 74 | 72 79 70 6f 69 6e 74 28 |dure ent|rypoint(| |00000770| 70 61 72 61 6d 70 74 72 | 3a 20 78 63 6d 64 70 74 |paramptr|: xcmdpt| |00000780| 72 29 3b 0d 09 09 62 65 | 67 69 6e 0d 09 09 09 66 |r);...be|gin....f| |00000790| 69 6c 65 6e 61 6d 65 28 | 70 61 72 61 6d 70 74 72 |ilename(|paramptr| |000007a0| 29 3b 0d 09 09 65 6e 64 | 28 2a 20 65 6e 74 72 79 |);...end|(* entry| |000007b0| 20 70 6f 69 6e 74 20 2a | 29 3b 0d 09 09 0d 09 09 | point *|);......| |000007c0| 70 72 6f 63 65 64 75 72 | 65 20 66 69 6c 65 6e 61 |procedur|e filena| |000007d0| 6d 65 3b 0d 0d 09 09 09 | 76 61 72 20 66 75 6c 6c |me;.....|var full| |000007e0| 70 61 74 68 6e 61 6d 65 | 3a 20 73 74 72 32 35 35 |pathname|: str255| |000007f0| 3b 0d 09 09 09 09 66 69 | 6c 65 6e 61 6d 65 09 3a |;.....fi|lename.:| |00000800| 20 73 74 72 32 35 35 3b | 0d 09 09 09 09 70 72 6f | str255;|.....pro| |00000810| 6d 70 74 09 09 3a 20 73 | 74 72 32 35 35 3b 0d 09 |mpt..: s|tr255;..| |00000820| 09 09 09 72 65 70 6c 79 | 09 09 3a 20 73 66 72 65 |...reply|..: sfre| |00000830| 70 6c 79 3b 0d 09 09 09 | 09 6e 75 6d 74 79 70 65 |ply;....|.numtype| |00000840| 73 09 3a 20 69 6e 74 65 | 67 65 72 3b 0d 09 09 09 |s.: inte|ger;....| |00000850| 09 74 79 70 65 6c 69 73 | 74 09 3a 20 73 66 74 79 |.typelis|t.: sfty| |00000860| 70 65 6c 69 73 74 3b 0d | 0d 09 09 09 7b 24 49 20 |pelist;.|....{$I | |00000870| 78 63 6d 64 67 6c 75 65 | 2e 69 6e 63 20 7d 0d 0d |xcmdglue|.inc }..| |00000880| 0d 09 09 09 28 2a 2a 09 | 50 61 72 61 6d 20 54 6f |....(**.|Param To| |00000890| 20 4e 75 6d 0d 09 09 0d | 09 09 09 54 68 69 73 20 | Num....|...This | |000008a0| 66 75 6e 63 74 69 6f 6e | 20 72 65 74 75 72 6e 73 |function| returns| |000008b0| 20 61 20 6c 6f 6e 67 20 | 69 6e 74 65 67 65 72 20 | a long |integer | |000008c0| 69 6e 74 65 72 70 72 65 | 74 61 74 69 6f 6e 20 6f |interpre|tation o| |000008d0| 66 20 0d 09 09 09 61 20 | 7a 65 72 6f 20 74 65 72 |f ....a |zero ter| |000008e0| 6d 69 6e 61 74 65 64 20 | 73 74 72 69 6e 67 20 28 |minated |string (| |000008f0| 63 2d 73 74 72 69 6e 67 | 29 2e 20 2a 2a 29 0d 09 |c-string|). **)..| |00000900| 09 09 0d 09 09 09 66 75 | 6e 63 74 69 6f 6e 20 70 |......fu|nction p| |00000910| 61 72 61 6d 74 6f 6e 75 | 6d 28 20 70 61 72 61 6d |aramtonu|m( param| |00000920| 3a 20 68 61 6e 64 6c 65 | 20 29 3a 20 6c 6f 6e 67 |: handle| ): long| |00000930| 49 6e 74 3b 0d 09 09 09 | 09 76 61 72 20 53 74 72 |Int;....|.var Str| |00000940| 3a 20 53 74 72 32 35 35 | 3b 0d 09 09 09 62 65 67 |: Str255|;....beg| |00000950| 69 6e 0d 09 09 09 09 7a | 65 72 6f 74 6f 70 61 73 |in.....z|erotopas| |00000960| 28 20 70 61 72 61 6d 5e | 2c 20 73 74 72 20 29 3b |( param^|, str );| |00000970| 0d 09 09 09 09 70 61 72 | 61 6d 74 6f 6e 75 6d 20 |.....par|amtonum | |00000980| 3a 3d 20 73 74 72 74 6f | 6e 75 6d 28 20 73 74 72 |:= strto|num( str| |00000990| 20 29 0d 09 09 09 65 6e | 64 28 2a 20 50 61 72 61 | )....en|d(* Para| |000009a0| 6d 54 6f 4e 75 6d 20 2a | 29 3b 0d 09 09 09 0d 0d |mToNum *|);......| |000009b0| 09 09 09 28 2a 2a 20 20 | 43 65 6e 74 65 72 52 65 |...(** |CenterRe| |000009c0| 63 74 0d 09 09 09 0d 09 | 09 09 54 68 69 73 20 66 |ct......|..This f| |000009d0| 75 6e 63 74 69 6f 6e 20 | 77 69 6c 6c 20 72 65 74 |unction |will ret| |000009e0| 75 72 6e 20 74 68 65 20 | 70 6f 69 6e 74 20 77 68 |urn the |point wh| |000009f0| 65 72 65 20 74 68 65 20 | 74 6f 70 20 6c 65 66 74 |ere the |top left| |00000a00| 20 63 6f 72 6e 65 72 0d | 09 09 09 6f 66 20 69 6e | corner.|...of in| |00000a10| 73 69 64 65 20 72 65 63 | 74 61 6e 67 65 20 73 68 |side rec|tange sh| |00000a20| 6f 75 6c 64 20 62 65 20 | 70 6c 61 63 65 64 20 69 |ould be |placed i| |00000a30| 6e 6f 72 64 65 72 20 66 | 6f 72 20 69 74 20 74 6f |norder f|or it to| |00000a40| 20 62 65 0d 09 09 09 63 | 65 6e 74 65 72 65 64 20 | be....c|entered | |00000a50| 77 69 74 68 69 6e 20 6f | 75 74 73 69 64 65 20 72 |within o|utside r| |00000a60| 65 63 74 61 6e 67 6c 65 | 2e 0d 09 09 09 09 0d 09 |ectangle|........| |00000a70| 09 09 49 74 20 69 73 20 | 6e 6f 74 20 63 68 65 63 |..It is |not chec| |00000a80| 6b 65 64 20 74 68 61 74 | 20 69 6e 73 69 64 65 20 |ked that| inside | |00000a90| 69 73 20 69 6e 64 65 65 | 64 20 77 68 6f 6c 65 6c |is indee|d wholel| |00000aa0| 79 20 69 6e 73 69 64 65 | 20 6f 66 0d 09 09 09 6f |y inside| of....o| |00000ab0| 75 74 73 69 64 65 20 2a | 2a 29 0d 09 09 09 0d 09 |utside *|*)......| |00000ac0| 09 09 66 75 6e 63 74 69 | 6f 6e 20 63 65 6e 74 65 |..functi|on cente| |00000ad0| 72 72 65 63 74 28 20 6f | 75 74 72 2c 20 69 6e 72 |rrect( o|utr, inr| |00000ae0| 3a 20 72 65 63 74 20 29 | 3a 20 70 6f 69 6e 74 3b |: rect )|: point;| |00000af0| 0d 09 09 09 09 76 61 72 | 20 70 3a 20 70 6f 69 6e |.....var| p: poin| |00000b00| 74 3b 0d 09 09 09 62 65 | 67 69 6e 0d 09 09 09 09 |t;....be|gin.....| |00000b10| 70 2e 76 20 3a 3d 20 6f | 75 74 72 2e 74 6f 70 20 |p.v := o|utr.top | |00000b20| 20 2b 20 28 28 28 6f 75 | 74 72 2e 62 6f 74 74 6f | + (((ou|tr.botto| |00000b30| 6d 20 2d 20 6f 75 74 72 | 2e 74 6f 70 29 20 2d 20 |m - outr|.top) - | |00000b40| 28 69 6e 72 2e 62 6f 74 | 74 6f 6d 20 20 2d 20 69 |(inr.bot|tom - i| |00000b50| 6e 72 2e 74 6f 70 29 29 | 20 64 69 76 20 32 29 3b |nr.top))| div 2);| |00000b60| 0d 09 09 09 09 70 2e 68 | 20 3a 3d 20 6f 75 74 72 |.....p.h| := outr| |00000b70| 2e 6c 65 66 74 20 2b 20 | 28 28 28 6f 75 74 72 2e |.left + |(((outr.| |00000b80| 72 69 67 68 74 20 2d 20 | 6f 75 74 72 2e 6c 65 66 |right - |outr.lef| |00000b90| 74 29 20 2d 20 28 69 6e | 72 2e 72 69 67 68 74 20 |t) - (in|r.right | |00000ba0| 20 2d 20 69 6e 72 2e 6c | 65 66 74 29 29 20 64 69 | - inr.l|eft)) di| |00000bb0| 76 20 32 29 3b 0d 09 09 | 09 09 63 65 6e 74 65 72 |v 2);...|..center| |00000bc0| 72 65 63 74 20 3a 3d 20 | 70 0d 09 09 09 65 6e 64 |rect := |p....end| |00000bd0| 28 2a 20 63 65 6e 74 65 | 72 20 72 65 63 74 20 2a |(* cente|r rect *| |00000be0| 29 3b 0d 0d 09 09 09 0d | 09 09 09 28 2a 2a 09 43 |);......|...(**.C| |00000bf0| 61 72 64 20 52 65 63 74 | 0d 09 09 09 0d 09 09 09 |ard Rect|........| |00000c00| 54 68 69 73 20 66 75 6e | 63 74 69 6f 6e 20 77 69 |This fun|ction wi| |00000c10| 6c 6c 20 72 65 74 75 72 | 6e 20 61 20 72 65 63 74 |ll retur|n a rect| |00000c20| 61 6e 67 6c 65 20 74 68 | 61 74 20 73 70 65 63 69 |angle th|at speci| |00000c30| 66 69 65 73 20 77 68 65 | 72 65 0d 09 09 09 74 68 |fies whe|re....th| |00000c40| 65 20 48 79 70 65 72 43 | 61 72 64 20 77 69 6e 64 |e HyperC|ard wind| |00000c50| 6f 77 20 28 61 6b 61 20 | 74 68 69 73 20 63 61 72 |ow (aka |this car| |00000c60| 64 29 20 69 73 20 75 70 | 6f 6e 20 74 68 65 20 73 |d) is up|on the s| |00000c70| 63 72 65 65 6e 2e 0d 09 | 09 09 49 74 20 73 68 6f |creen...|..It sho| |00000c80| 75 6c 64 20 62 65 20 6e | 6f 74 65 64 20 74 68 61 |uld be n|oted tha| |00000c90| 74 20 74 68 65 20 70 6f | 73 69 74 69 6f 6e 20 69 |t the po|sition i| |00000ca0| 73 20 64 65 74 65 72 6d | 69 6e 65 64 20 62 79 20 |s determ|ined by | |00000cb0| 61 73 6b 69 6e 67 0d 09 | 09 09 48 79 70 65 72 43 |asking..|..HyperC| |00000cc0| 61 72 64 20 72 61 74 68 | 65 72 20 74 68 61 6e 20 |ard rath|er than | |00000cd0| 63 61 6c 6c 69 6e 67 20 | 74 6f 6f 6c 62 6f 78 20 |calling |toolbox | |00000ce0| 72 6f 75 74 69 6e 65 73 | 2e 20 2a 2a 29 0d 09 09 |routines|. **)...| |00000cf0| 09 0d 09 09 09 66 75 6e | 63 74 69 6f 6e 20 63 61 |.....fun|ction ca| |00000d00| 72 64 72 65 63 74 3a 20 | 72 65 63 74 3b 0d 09 09 |rdrect: |rect;...| |00000d10| 09 09 76 61 72 20 63 61 | 72 64 3a 20 72 65 63 74 |..var ca|rd: rect| |00000d20| 3b 0d 09 09 09 62 65 67 | 69 6e 0d 09 09 09 09 63 |;....beg|in.....c| |00000d30| 61 72 64 2e 74 6f 70 20 | 20 20 20 3a 3d 20 50 61 |ard.top | := Pa| |00000d40| 72 61 6d 54 6f 4e 75 6d | 28 20 65 76 61 6c 65 78 |ramToNum|( evalex| |00000d50| 70 72 28 20 27 69 74 65 | 6d 20 74 77 6f 20 6f 66 |pr( 'ite|m two of| |00000d60| 20 6c 6f 63 20 6f 66 20 | 63 61 72 64 20 77 69 6e | loc of |card win| |00000d70| 64 6f 77 27 20 29 20 29 | 3b 0d 09 09 09 09 63 61 |dow' ) )|;.....ca| |00000d80| 72 64 2e 6c 65 66 74 20 | 20 20 3a 3d 20 50 61 72 |rd.left | := Par| |00000d90| 61 6d 54 6f 4e 75 6d 28 | 20 65 76 61 6c 65 78 70 |amToNum(| evalexp| |00000da0| 72 28 20 27 69 74 65 6d | 20 6f 6e 65 20 6f 66 20 |r( 'item| one of | |00000db0| 6c 6f 63 20 6f 66 20 63 | 61 72 64 20 77 69 6e 64 |loc of c|ard wind| |00000dc0| 6f 77 27 20 29 20 29 3b | 0d 09 09 09 09 63 61 72 |ow' ) );|.....car| |00000dd0| 64 2e 62 6f 74 74 6f 6d | 20 3a 3d 20 63 61 72 64 |d.bottom| := card| |00000de0| 2e 74 6f 70 20 20 2b 20 | 33 34 32 3b 0d 09 09 09 |.top + |342;....| |00000df0| 09 63 61 72 64 2e 72 69 | 67 68 74 20 20 3a 3d 20 |.card.ri|ght := | |00000e00| 63 61 72 64 2e 6c 65 66 | 74 20 2b 20 35 31 32 3b |card.lef|t + 512;| |00000e10| 0d 09 09 09 09 63 61 72 | 64 72 65 63 74 09 3a 3d |.....car|drect.:=| |00000e20| 20 63 61 72 64 0d 09 09 | 09 65 6e 64 28 2a 20 63 | card...|.end(* c| |00000e30| 61 72 64 20 72 65 63 74 | 20 2a 29 3b 0d 09 09 09 |ard rect| *);....| |00000e40| 0d 09 09 09 0d 09 09 09 | 28 2a 2a 09 44 69 61 6c |........|(**.Dial| |00000e50| 6f 67 20 52 65 63 74 0d | 09 09 09 0d 09 09 09 54 |og Rect.|.......T| |00000e60| 68 69 73 20 66 75 6e 63 | 74 69 6f 6e 20 72 65 74 |his func|tion ret| |00000e70| 75 72 6e 73 20 61 20 72 | 65 63 74 61 6e 67 6c 65 |urns a r|ectangle| |00000e80| 20 74 68 61 74 20 73 70 | 65 63 69 66 69 65 73 20 | that sp|ecifies | |00000e90| 77 68 65 72 65 20 74 68 | 65 0d 09 09 09 53 46 47 |where th|e....SFG| |00000ea0| 65 74 46 69 6c 65 20 64 | 69 61 6c 6f 67 20 77 68 |etFile d|ialog wh| |00000eb0| 6f 75 6c 64 20 62 65 20 | 70 6c 61 63 65 64 20 75 |ould be |placed u| |00000ec0| 70 6f 6e 20 74 68 65 20 | 73 63 72 65 65 6e 2e 20 |pon the |screen. | |00000ed0| 2a 2a 29 0d 09 09 09 0d | 09 09 09 66 75 6e 63 74 |**).....|...funct| |00000ee0| 69 6f 6e 20 64 69 61 6c | 6f 67 72 65 63 74 3a 20 |ion dial|ogrect: | |00000ef0| 72 65 63 74 3b 0d 09 09 | 09 09 76 61 72 20 64 69 |rect;...|..var di| |00000f00| 61 6c 6f 67 3a 20 64 69 | 61 6c 6f 67 74 68 6e 64 |alog: di|alogthnd| |00000f10| 6c 3b 0d 09 09 09 62 65 | 67 69 6e 0d 09 09 09 09 |l;....be|gin.....| |00000f20| 64 69 61 6c 6f 67 09 20 | 20 20 3a 3d 20 64 69 61 |dialog. | := dia| |00000f30| 6c 6f 67 74 68 6e 64 6c | 28 20 67 65 74 72 65 73 |logthndl|( getres| |00000f40| 6f 75 72 63 65 28 20 27 | 44 4c 4f 47 27 2c 20 67 |ource( '|DLOG', g| |00000f50| 65 74 64 6c 67 69 64 20 | 29 20 29 3b 0d 09 09 09 |etdlgid |) );....| |00000f60| 09 64 69 61 6c 6f 67 72 | 65 63 74 20 3a 3d 20 64 |.dialogr|ect := d| |00000f70| 69 61 6c 6f 67 5e 5e 2e | 62 6f 75 6e 64 73 72 65 |ialog^^.|boundsre| |00000f80| 63 74 0d 09 09 09 65 6e | 64 28 2a 20 64 69 61 6c |ct....en|d(* dial| |00000f90| 6f 67 20 72 65 63 74 20 | 2a 29 3b 0d 09 09 09 0d |og rect |*);.....| |00000fa0| 09 09 09 0d 09 09 09 28 | 2a 2a 09 42 75 69 6c 64 |.......(|**.Build| |00000fb0| 20 50 61 74 68 6e 61 6d | 65 0d 09 09 09 0d 09 09 | Pathnam|e.......| |00000fc0| 09 54 68 69 73 20 66 75 | 6e 63 74 69 6f 6e 20 77 |.This fu|nction w| |00000fd0| 69 6c 6c 20 72 65 74 75 | 72 6e 20 74 68 65 20 66 |ill retu|rn the f| |00000fe0| 75 6c 6c 20 70 61 74 68 | 6e 61 6d 65 20 66 72 6f |ull path|name fro| |00000ff0| 6d 20 74 68 65 20 76 6f | 6c 75 6d 65 0d 09 09 09 |m the vo|lume....| |00001000| 72 65 66 65 72 65 6e 63 | 65 20 6e 75 6d 62 65 72 |referenc|e number| |00001010| 20 61 6e 64 20 66 69 6c | 65 6e 61 6d 65 2e 20 20 | and fil|ename. | |00001020| 54 68 69 73 20 63 6f 64 | 65 20 69 73 20 61 20 74 |This cod|e is a t| |00001030| 61 6b 65 6e 20 66 72 6f | 6d 0d 09 09 09 53 74 65 |aken fro|m....Ste| |00001040| 76 65 20 4d 61 6c 6c 65 | 72 27 73 20 6f 72 69 67 |ve Malle|r's orig| |00001050| 69 6e 61 6c 20 58 46 75 | 6e 63 74 69 6f 6e 20 22 |inal XFu|nction "| |00001060| 46 69 6c 65 4e 61 6d 65 | 22 2e 20 2a 2a 29 0d 09 |FileName|". **)..| |00001070| 09 09 0d 09 09 09 66 75 | 6e 63 74 69 6f 6e 20 62 |......fu|nction b| |00001080| 75 69 6c 64 70 61 74 68 | 6e 61 6d 65 28 20 76 6f |uildpath|name( vo| |00001090| 6c 75 6d 65 3a 69 6e 74 | 65 67 65 72 3b 20 66 69 |lume:int|eger; fi| |000010a0| 6c 65 6e 61 6d 65 3a 20 | 73 74 72 32 35 35 29 3a |lename: |str255):| |000010b0| 20 53 74 72 32 35 35 3b | 0d 09 09 09 09 76 61 72 | Str255;|.....var| |000010c0| 20 66 75 6c 6c 70 61 74 | 68 6e 61 6d 65 3a 20 73 | fullpat|hname: s| |000010d0| 74 72 32 35 35 3b 0d 09 | 09 09 09 09 6e 61 6d 65 |tr255;..|....name| |000010e0| 09 09 3a 20 73 74 72 32 | 35 35 3b 0d 09 09 09 09 |..: str2|55;.....| |000010f0| 09 65 72 72 09 09 09 3a | 20 69 6e 74 65 67 65 72 |.err...:| integer| |00001100| 3b 0d 09 09 09 09 09 6d | 79 77 64 70 62 09 09 3a |;......m|ywdpb..:| |00001110| 20 77 64 70 62 70 74 72 | 3b 0d 09 09 09 09 09 6d | wdpbptr|;......m| |00001120| 79 63 70 62 09 09 3a 20 | 63 69 6e 66 6f 70 62 70 |ycpb..: |cinfopbp| |00001130| 74 72 3b 0d 09 09 09 09 | 09 6d 79 70 62 09 09 3a |tr;.....|.mypb..:| |00001140| 20 68 70 61 72 6d 62 6c | 6b 70 74 72 3b 0d 09 09 | hparmbl|kptr;...| |00001150| 09 62 65 67 69 6e 0d 09 | 09 09 0d 09 09 09 09 62 |.begin..|.......b| |00001160| 75 69 6c 64 70 61 74 68 | 6e 61 6d 65 20 3a 3d 20 |uildpath|name := | |00001170| 27 27 3b 0d 09 09 09 09 | 0d 09 09 09 09 7b 20 0d |'';.....|.....{ .| |00001180| 09 09 09 09 66 69 72 73 | 74 20 77 65 20 61 6c 6c |....firs|t we all| |00001190| 6f 63 61 74 65 20 73 6f | 6d 65 20 6d 65 6d 6f 72 |ocate so|me memor| |000011a0| 79 20 69 6e 20 74 68 65 | 20 68 65 61 70 20 66 6f |y in the| heap fo| |000011b0| 72 20 74 68 65 20 0d 09 | 09 09 09 70 61 72 61 6d |r the ..|...param| |000011c0| 65 74 65 72 20 62 6c 6f | 63 6b 2e 20 74 68 69 73 |eter blo|ck. this| |000011d0| 20 63 6f 75 6c 64 20 69 | 6e 20 74 68 65 6f 72 79 | could i|n theory| |000011e0| 20 77 6f 72 6b 20 6f 6e | 20 74 68 65 20 73 74 61 | work on| the sta| |000011f0| 63 6b 2c 20 0d 09 09 09 | 09 62 75 74 20 69 6e 20 |ck, ....|.but in | |00001200| 72 65 61 6c 69 74 79 20 | 69 74 20 6d 61 6b 65 73 |reality |it makes| |00001210| 20 6e 6f 20 64 69 66 66 | 65 72 65 6e 63 65 20 61 | no diff|erence a| |00001220| 73 20 77 65 27 72 65 20 | 65 6e 74 69 72 65 6c 79 |s we're |entirely| |00001230| 20 0d 09 09 09 09 6d 6f | 64 61 6c 20 28 75 67 68 | .....mo|dal (ugh| |00001240| 29 20 68 65 72 65 2e 2e | 2e 0d 09 09 09 09 7d 0d |) here..|......}.| |00001250| 09 09 09 09 6d 79 63 70 | 62 20 20 3a 3d 20 63 69 |....mycp|b := ci| |00001260| 6e 66 6f 70 62 70 74 72 | 28 6e 65 77 70 74 72 28 |nfopbptr|(newptr(| |00001270| 73 69 7a 65 6f 66 28 68 | 70 61 72 61 6d 62 6c 6f |sizeof(h|paramblo| |00001280| 63 6b 72 65 63 29 29 29 | 3b 0d 09 09 09 09 69 66 |ckrec)))|;.....if| |00001290| 20 6f 72 64 34 28 6d 79 | 63 70 62 29 20 3c 3d 20 | ord4(my|cpb) <= | |000012a0| 30 20 74 68 65 6e 0d 09 | 09 09 09 09 65 78 69 74 |0 then..|....exit| |000012b0| 28 62 75 69 6c 64 70 61 | 74 68 6e 61 6d 65 29 3b |(buildpa|thname);| |000012c0| 09 09 09 7b 20 72 61 74 | 73 21 20 62 69 6c 6c 20 |...{ rat|s! bill | |000012d0| 64 69 64 6e 27 74 20 6c | 65 61 76 65 20 65 6e 6f |didn't l|eave eno| |000012e0| 75 67 68 20 72 6f 6f 6d | 20 7d 0d 09 09 09 09 6d |ugh room| }.....m| |000012f0| 79 77 64 70 62 20 3a 3d | 20 77 64 70 62 70 74 72 |ywdpb :=| wdpbptr| |00001300| 28 6d 79 63 70 62 29 3b | 09 09 09 7b 20 69 63 6b |(mycpb);|...{ ick| |00001310| 79 20 70 61 73 63 61 6c | 20 74 79 70 65 20 63 6f |y pascal| type co| |00001320| 65 72 63 69 6f 6e 73 20 | 66 6f 6c 6c 6f 77 20 7d |ercions |follow }| |00001330| 0d 09 09 09 09 6d 79 70 | 62 20 20 20 3a 3d 20 68 |.....myp|b := h| |00001340| 70 61 72 6d 62 6c 6b 70 | 74 72 28 6d 79 63 70 62 |parmblkp|tr(mycpb| |00001350| 29 3b 0d 0d 0d 09 09 09 | 09 6e 61 6d 65 20 3a 3d |);......|.name :=| |00001360| 20 27 27 3b 20 20 20 20 | 20 20 20 20 20 20 20 20 | ''; | | |00001370| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 7b 20 73 | | { s| |00001380| 74 61 72 74 20 77 69 74 | 68 20 61 6e 20 65 6d 70 |tart wit|h an emp| |00001390| 74 79 20 6e 61 6d 65 20 | 7d 0d 09 09 09 09 6d 79 |ty name |}.....my| |000013a0| 70 62 5e 2e 69 6f 6e 61 | 6d 65 70 74 72 20 3a 3d |pb^.iona|meptr :=| |000013b0| 20 40 6e 61 6d 65 3b 09 | 09 09 7b 20 77 65 20 77 | @name;.|..{ we w| |000013c0| 61 6e 74 20 74 68 65 20 | 76 6f 6c 75 6d 65 20 6e |ant the |volume n| |000013d0| 61 6d 65 20 7d 0d 09 09 | 09 09 6d 79 70 62 5e 2e |ame }...|..mypb^.| |000013e0| 69 6f 63 6f 6d 70 6c 65 | 74 69 6f 6e 20 3a 3d 20 |iocomple|tion := | |000013f0| 70 6f 69 6e 74 65 72 28 | 30 29 3b 0d 09 09 09 09 |pointer(|0);.....| |00001400| 6d 79 70 62 5e 2e 69 6f | 76 72 65 66 6e 75 6d 20 |mypb^.io|vrefnum | |00001410| 3a 3d 20 76 6f 6c 75 6d | 65 3b 09 09 09 7b 20 72 |:= volum|e;...{ r| |00001420| 65 74 75 72 6e 65 64 20 | 66 72 6f 6d 20 73 66 67 |eturned |from sfg| |00001430| 65 74 66 69 6c 65 20 7d | 0d 09 09 09 09 6d 79 70 |etfile }|.....myp| |00001440| 62 5e 2e 69 6f 76 6f 6c | 69 6e 64 65 78 20 3a 3d |b^.iovol|index :=| |00001450| 20 30 3b 09 09 09 09 7b | 20 75 73 65 20 74 68 65 | 0;....{| use the| |00001460| 20 76 72 65 66 6e 75 6d | 20 61 6e 64 20 6e 61 6d | vrefnum| and nam| |00001470| 65 20 7d 0d 09 09 09 09 | 65 72 72 20 3a 3d 20 70 |e }.....|err := p| |00001480| 62 68 67 65 74 76 69 6e | 66 6f 28 6d 79 70 62 2c |bhgetvin|fo(mypb,| |00001490| 20 66 61 6c 73 65 29 3b | 09 7b 20 66 69 6c 6c 20 | false);|.{ fill | |000014a0| 69 6e 20 74 68 65 20 76 | 6f 6c 75 6d 65 20 69 6e |in the v|olume in| |000014b0| 66 6f 20 7d 0d 09 09 09 | 09 69 66 20 65 72 72 20 |fo }....|.if err | |000014c0| 3c 3e 20 6e 6f 65 72 72 | 20 74 68 65 6e 0d 09 09 |<> noerr| then...| |000014d0| 09 09 09 65 78 69 74 28 | 62 75 69 6c 64 70 61 74 |...exit(|buildpat| |000014e0| 68 6e 61 6d 65 29 3b 0d | 0d 09 09 09 09 7b 20 09 |hname);.|.....{ .| |000014f0| 0d 09 09 09 09 6e 6f 77 | 20 77 65 20 6e 65 65 64 |.....now| we need| |00001500| 20 74 68 65 20 77 6f 72 | 6b 69 6e 67 20 64 69 72 | the wor|king dir| |00001510| 65 63 74 6f 72 79 20 28 | 77 64 29 20 69 6e 66 6f |ectory (|wd) info| |00001520| 72 6d 61 74 69 6f 6e 20 | 0d 09 09 09 09 62 65 63 |rmation |.....bec| |00001530| 61 75 73 65 20 77 65 27 | 72 65 20 67 6f 69 6e 67 |ause we'|re going| |00001540| 20 74 6f 20 73 74 65 70 | 20 62 61 63 6b 77 61 72 | to step| backwar| |00001550| 64 73 20 66 72 6f 6d 20 | 74 68 65 20 66 69 6c 65 |ds from |the file| |00001560| 20 0d 09 09 09 09 74 68 | 72 6f 75 67 68 20 61 6c | .....th|rough al| |00001570| 6c 20 6f 66 20 74 68 65 | 20 74 68 65 20 66 6f 6c |l of the| the fol| |00001580| 64 65 72 73 20 75 6e 74 | 69 6c 20 77 65 20 72 65 |ders unt|il we re| |00001590| 61 63 68 20 74 68 65 20 | 0d 09 09 09 09 72 6f 6f |ach the |.....roo| |000015a0| 74 20 64 69 72 65 63 74 | 6f 72 79 0d 09 09 09 09 |t direct|ory.....| |000015b0| 7d 0d 09 09 09 09 6d 79 | 77 64 70 62 5e 2e 69 6f |}.....my|wdpb^.io| |000015c0| 76 72 65 66 6e 75 6d 20 | 3a 3d 20 76 6f 6c 75 6d |vrefnum |:= volum| |000015d0| 65 3b 09 09 7b 20 74 68 | 69 73 20 67 6f 74 20 73 |e;..{ th|is got s| |000015e0| 65 74 20 74 6f 20 30 20 | 61 62 6f 76 65 20 7d 09 |et to 0 |above }.| |000015f0| 09 09 09 09 6d 79 77 64 | 70 62 5e 2e 69 6f 77 64 |....mywd|pb^.iowd| |00001600| 70 72 6f 63 69 64 20 3a | 3d 20 30 3b 09 09 09 09 |procid :|= 0;....| |00001610| 09 09 09 7b 20 75 73 65 | 20 74 68 65 20 76 72 65 |...{ use| the vre| |00001620| 66 6e 75 6d 20 7d 0d 09 | 09 09 09 6d 79 77 64 70 |fnum }..|...mywdp| |00001630| 62 5e 2e 69 6f 77 64 69 | 6e 64 65 78 20 3a 3d 20 |b^.iowdi|ndex := | |00001640| 30 3b 09 09 09 09 7b 20 | 77 65 20 77 61 6e 74 20 |0;....{ |we want | |00001650| 61 6c 6c 20 64 69 72 65 | 63 74 6f 72 69 65 73 20 |all dire|ctories | |00001660| 7d 0d 09 09 09 09 65 72 | 72 20 3a 3d 20 70 62 67 |}.....er|r := pbg| |00001670| 65 74 77 64 69 6e 66 6f | 28 6d 79 77 64 70 62 2c |etwdinfo|(mywdpb,| |00001680| 20 66 61 6c 73 65 29 3b | 09 7b 20 64 6f 20 69 74 | false);|.{ do it| |00001690| 20 7d 0d 09 09 09 09 69 | 66 20 65 72 72 20 3c 3e | }.....i|f err <>| |000016a0| 20 6e 6f 65 72 72 20 74 | 68 65 6e 0d 09 09 09 09 | noerr t|hen.....| |000016b0| 09 65 78 69 74 28 62 75 | 69 6c 64 70 61 74 68 6e |.exit(bu|ildpathn| |000016c0| 61 6d 65 29 3b 0d 0d 09 | 09 09 09 6d 79 63 70 62 |ame);...|...mycpb| |000016d0| 5e 2e 69 6f 66 64 69 72 | 69 6e 64 65 78 20 3a 3d |^.iofdir|index :=| |000016e0| 20 2d 20 31 3b 09 09 09 | 09 7b 20 75 73 65 20 74 | - 1;...|.{ use t| |000016f0| 68 65 20 69 6f 64 69 72 | 69 64 20 66 69 65 6c 64 |he iodir|id field| |00001700| 20 6f 6e 6c 79 20 7d 0d | 09 09 09 09 6d 79 63 70 | only }.|....mycp| |00001710| 62 5e 2e 69 6f 64 72 64 | 69 72 69 64 20 3a 3d 20 |b^.iodrd|irid := | |00001720| 6d 79 77 64 70 62 5e 2e | 69 6f 77 64 64 69 72 69 |mywdpb^.|iowddiri| |00001730| 64 3b 09 7b 20 69 6e 66 | 6f 20 72 65 74 75 72 6e |d;.{ inf|o return| |00001740| 65 64 20 61 62 6f 76 65 | 20 7d 0d 09 09 09 09 65 |ed above| }.....e| |00001750| 72 72 20 3a 3d 20 70 62 | 67 65 74 63 61 74 69 6e |rr := pb|getcatin| |00001760| 66 6f 28 6d 79 63 70 62 | 2c 20 66 61 6c 73 65 29 |fo(mycpb|, false)| |00001770| 3b 09 09 7b 20 64 6f 20 | 69 74 20 7d 0d 09 09 09 |;..{ do |it }....| |00001780| 09 69 66 20 65 72 72 20 | 3c 3e 20 6e 6f 65 72 72 |.if err |<> noerr| |00001790| 20 74 68 65 6e 0d 09 09 | 09 09 09 65 78 69 74 28 | then...|...exit(| |000017a0| 62 75 69 6c 64 70 61 74 | 68 6e 61 6d 65 29 3b 0d |buildpat|hname);.| |000017b0| 0d 09 09 09 09 7b 0d 09 | 09 09 09 68 65 72 65 20 |.....{..|...here | |000017c0| 73 74 61 72 74 73 20 74 | 68 65 20 72 65 61 6c 20 |starts t|he real | |000017d0| 77 6f 72 6b 20 2d 20 73 | 74 61 72 74 20 74 6f 20 |work - s|tart to | |000017e0| 63 6c 69 6d 62 20 74 68 | 65 20 74 72 65 65 20 62 |climb th|e tree b| |000017f0| 79 20 0d 09 09 09 09 63 | 6f 6e 74 69 6e 75 61 6c |y .....c|ontinual| |00001800| 6c 79 09 6c 6f 6f 6b 69 | 6e 67 20 69 6e 20 74 68 |ly.looki|ng in th| |00001810| 65 20 69 6f 64 72 70 61 | 72 69 64 20 66 69 65 6c |e iodrpa|rid fiel| |00001820| 64 20 66 6f 72 20 74 68 | 65 20 6e 65 78 74 20 0d |d for th|e next .| |00001830| 09 09 09 09 64 69 72 65 | 63 74 6f 72 79 20 61 62 |....dire|ctory ab| |00001840| 6f 76 65 20 75 6e 74 69 | 6c 20 77 65 20 66 61 69 |ove unti|l we fai| |00001850| 6c 2e 2e 2e 20 0d 09 09 | 09 09 7d 0d 09 09 09 09 |l... ...|..}.....| |00001860| 6d 79 63 70 62 5e 2e 69 | 6f 64 72 64 69 72 69 64 |mycpb^.i|odrdirid| |00001870| 20 3a 3d 20 6d 79 63 70 | 62 5e 2e 69 6f 64 72 70 | := mycp|b^.iodrp| |00001880| 61 72 69 64 3b 09 7b 20 | 74 68 65 20 66 69 72 73 |arid;.{ |the firs| |00001890| 74 20 66 6f 6c 64 65 72 | 7d 0d 09 09 09 09 66 75 |t folder|}.....fu| |000018a0| 6c 6c 70 61 74 68 6e 61 | 6d 65 20 09 20 3a 3d 20 |llpathna|me . := | |000018b0| 63 6f 6e 63 61 74 28 6d | 79 63 70 62 5e 2e 69 6f |concat(m|ycpb^.io| |000018c0| 6e 61 6d 65 70 74 72 5e | 2c 20 27 3a 27 2c 20 66 |nameptr^|, ':', f| |000018d0| 69 6c 65 6e 61 6d 65 29 | 3b 0d 09 09 09 09 0d 09 |ilename)|;.......| |000018e0| 09 09 09 72 65 70 65 61 | 74 0d 09 09 09 09 09 6d |...repea|t......m| |000018f0| 79 63 70 62 5e 2e 69 6f | 64 72 64 69 72 69 64 20 |ycpb^.io|drdirid | |00001900| 3a 3d 20 6d 79 63 70 62 | 5e 2e 69 6f 64 72 70 61 |:= mycpb|^.iodrpa| |00001910| 72 69 64 3b 0d 09 09 09 | 09 09 65 72 72 20 3a 3d |rid;....|..err :=| |00001920| 20 70 62 67 65 74 63 61 | 74 69 6e 66 6f 28 6d 79 | pbgetca|tinfo(my| |00001930| 63 70 62 2c 20 66 61 6c | 73 65 29 3b 09 7b 20 74 |cpb, fal|se);.{ t| |00001940| 68 65 20 6e 65 78 74 20 | 6c 65 76 65 6c 20 7d 0d |he next |level }.| |00001950| 0d 09 09 09 09 09 7b 20 | 0d 09 09 09 09 09 62 65 |......{ |......be| |00001960| 20 63 61 72 65 66 75 6c | 20 6f 66 20 61 6e 20 65 | careful| of an e| |00001970| 72 72 6f 72 20 72 65 74 | 75 72 6e 65 64 20 68 65 |rror ret|urned he| |00001980| 72 65 20 2d 20 69 74 20 | 6d 65 61 6e 73 20 74 68 |re - it |means th| |00001990| 65 20 75 73 65 72 20 0d | 09 09 09 09 09 63 68 6f |e user .|.....cho| |000019a0| 73 65 20 61 20 66 69 6c | 65 20 6f 6e 20 74 68 65 |se a fil|e on the| |000019b0| 20 64 65 73 6b 74 6f 70 | 20 6c 65 76 65 6c 20 6f | desktop| level o| |000019c0| 66 20 74 68 69 73 20 76 | 6f 6c 75 6d 65 2e 20 69 |f this v|olume. i| |000019d0| 66 20 74 68 69 73 20 0d | 09 09 09 09 09 69 73 20 |f this .|.....is | |000019e0| 74 68 65 20 63 61 73 65 | 2c 20 6a 75 73 74 20 73 |the case|, just s| |000019f0| 74 6f 70 20 68 65 72 65 | 20 61 6e 64 20 72 65 74 |top here| and ret| |00001a00| 75 72 6e 20 22 76 6f 6c | 75 6d 65 6e 61 6d 65 3a |urn "vol|umename:| |00001a10| 66 69 6c 65 6e 61 6d 65 | 22 2c 20 0d 09 09 09 09 |filename|", .....| |00001a20| 09 6f 74 68 65 72 77 69 | 73 65 20 6c 6f 6f 70 20 |.otherwi|se loop | |00001a30| 75 6e 74 69 6c 20 66 61 | 69 6c 75 72 65 20 0d 09 |until fa|ilure ..| |00001a40| 09 09 09 09 7d 0d 09 09 | 09 09 09 0d 09 09 09 09 |....}...|........| |00001a50| 09 69 66 20 65 72 72 20 | 3d 20 6e 6f 65 72 72 20 |.if err |= noerr | |00001a60| 74 68 65 6e 0d 09 09 09 | 09 09 09 66 75 6c 6c 70 |then....|...fullp| |00001a70| 61 74 68 6e 61 6d 65 20 | 3a 3d 20 63 6f 6e 63 61 |athname |:= conca| |00001a80| 74 28 6d 79 63 70 62 5e | 2e 69 6f 6e 61 6d 65 70 |t(mycpb^|.ionamep| |00001a90| 74 72 5e 2c 20 27 3a 27 | 2c 20 66 75 6c 6c 70 61 |tr^, ':'|, fullpa| |00001aa0| 74 68 6e 61 6d 65 29 3b | 0d 0d 09 09 09 09 75 6e |thname);|......un| |00001ab0| 74 69 6c 20 65 72 72 20 | 3c 3e 20 6e 6f 65 72 72 |til err |<> noerr| |00001ac0| 3b 0d 09 09 09 09 0d 09 | 09 09 09 64 69 73 70 6f |;.......|...dispo| |00001ad0| 73 70 74 72 28 70 6f 69 | 6e 74 65 72 28 6d 79 63 |sptr(poi|nter(myc| |00001ae0| 70 62 29 29 3b 09 7b 20 | 63 6c 65 61 6e 20 75 70 |pb));.{ |clean up| |00001af0| 20 79 6f 75 72 20 68 65 | 61 70 21 20 7d 0d 0d 09 | your he|ap! }...| |00001b00| 09 09 09 62 75 69 6c 64 | 70 61 74 68 6e 61 6d 65 |...build|pathname| |00001b10| 20 3a 3d 20 66 75 6c 6c | 70 61 74 68 6e 61 6d 65 | := full|pathname| |00001b20| 0d 09 09 09 09 0d 09 09 | 09 65 6e 64 28 2a 20 62 |........|.end(* b| |00001b30| 75 69 6c 64 20 70 61 74 | 68 20 6e 61 6d 65 20 2a |uild pat|h name *| |00001b40| 29 3b 0d 09 09 09 0d 09 | 09 62 65 67 69 6e 0d 09 |);......|.begin..| |00001b50| 09 0d 09 09 09 77 69 74 | 68 20 70 61 72 61 6d 70 |.....wit|h paramp| |00001b60| 74 72 5e 20 64 6f 0d 09 | 09 09 09 62 65 67 69 6e |tr^ do..|...begin| |00001b70| 09 0d 09 09 09 09 09 69 | 66 20 70 61 72 61 6d 63 |.......i|f paramc| |00001b80| 6f 75 6e 74 20 3c 3e 20 | 31 20 74 68 65 6e 20 7b |ount <> |1 then {| |00001b90| 20 66 69 6c 65 6e 61 6d | 65 28 29 20 7d 0d 09 09 | filenam|e() }...| |00001ba0| 09 09 09 09 6e 75 6d 74 | 79 70 65 73 20 3a 3d 20 |....numt|ypes := | |00001bb0| 2d 31 0d 09 09 09 09 09 | 65 6c 73 65 20 09 09 09 |-1......|else ...| |00001bc0| 09 09 7b 20 66 69 6c 65 | 6e 61 6d 65 28 20 22 54 |..{ file|name( "T| |00001bd0| 45 58 54 22 20 29 20 7d | 0d 09 09 09 09 09 09 62 |EXT" ) }|.......b| |00001be0| 65 67 69 6e 0d 09 09 09 | 09 09 09 09 6e 75 6d 74 |egin....|....numt| |00001bf0| 79 70 65 73 20 3a 3d 20 | 31 3b 0d 09 09 09 09 09 |ypes := |1;......| |00001c00| 09 09 62 6c 6f 63 6b 6d | 6f 76 65 28 20 70 61 72 |..blockm|ove( par| |00001c10| 61 6d 73 5b 20 31 20 5d | 5e 2c 20 40 74 79 70 65 |ams[ 1 ]|^, @type| |00001c20| 6c 69 73 74 5b 20 30 20 | 5d 2c 20 34 20 29 0d 09 |list[ 0 |], 4 )..| |00001c30| 09 09 09 09 09 65 6e 64 | 3b 0d 09 09 09 09 09 09 |.....end|;.......| |00001c40| 09 0d 09 09 09 09 09 73 | 66 67 65 74 66 69 6c 65 |.......s|fgetfile| |00001c50| 28 20 63 65 6e 74 65 72 | 72 65 63 74 28 20 63 61 |( center|rect( ca| |00001c60| 72 64 72 65 63 74 2c 20 | 64 69 61 6c 6f 67 72 65 |rdrect, |dialogre| |00001c70| 63 74 20 29 2c 20 0d 09 | 09 09 09 09 09 09 20 20 |ct ), ..|...... | |00001c80| 20 27 27 2c 20 6e 69 6c | 2c 20 6e 75 6d 74 79 70 | '', nil|, numtyp| |00001c90| 65 73 2c 20 74 79 70 65 | 6c 69 73 74 2c 20 6e 69 |es, type|list, ni| |00001ca0| 6c 2c 20 72 65 70 6c 79 | 20 29 3b 0d 0d 09 09 09 |l, reply| );.....| |00001cb0| 09 09 69 66 20 72 65 70 | 6c 79 2e 67 6f 6f 64 20 |..if rep|ly.good | |00001cc0| 74 68 65 6e 0d 09 09 09 | 09 09 09 66 75 6c 6c 70 |then....|...fullp| |00001cd0| 61 74 68 6e 61 6d 65 20 | 3a 3d 20 62 75 69 6c 64 |athname |:= build| |00001ce0| 70 61 74 68 6e 61 6d 65 | 28 20 72 65 70 6c 79 2e |pathname|( reply.| |00001cf0| 76 72 65 66 6e 75 6d 2c | 20 0d 09 09 09 09 09 09 |vrefnum,| .......| |00001d00| 09 09 09 09 09 09 09 20 | 20 20 72 65 70 6c 79 2e |....... | reply.| |00001d10| 66 6e 61 6d 65 20 29 3b | 0d 09 09 09 09 09 09 09 |fname );|........| |00001d20| 09 09 09 09 09 09 0d 09 | 09 09 09 09 72 65 74 75 |........|....retu| |00001d30| 72 6e 76 61 6c 75 65 20 | 3a 3d 20 70 61 73 74 6f |rnvalue |:= pasto| |00001d40| 7a 65 72 6f 28 66 75 6c | 6c 70 61 74 68 6e 61 6d |zero(ful|lpathnam| |00001d50| 65 29 0d 09 09 09 09 65 | 6e 64 0d 0d 09 09 65 6e |e).....e|nd....en| |00001d60| 64 28 2a 20 66 69 6c 65 | 6e 61 6d 65 20 2a 29 3b |d(* file|name *);| |00001d70| 0d 0d 65 6e 64 2e 00 00 | 00 00 00 00 00 00 00 00 |..end...|........| |00001d80| 00 00 01 00 00 00 01 4c | 00 00 00 4c 00 00 00 32 |.......L|...L...2| |00001d90| 36 2e 00 0e 22 54 7e 00 | 3e 31 30 06 2a 2b 00 0c |6..."T~.|>10.*+..| |00001da0| 47 f1 30 0a 20 6e 00 08 | 4a 6e 00 0c 67 06 76 00 |G.0. n..|Jn..g.v.| |00001db0| 0a 46 69 6c 65 4e 61 6d | 65 2e 70 2d 02 00 00 00 |.FileNam|e.p-....| |00001dc0| 54 45 58 54 4d 50 53 20 | 01 00 00 00 00 7d 00 00 |TEXTMPS |.....}..| |00001dd0| 00 00 54 45 58 54 4d 50 | 53 20 01 00 00 00 00 7d |..TEXTMP|S .....}| |00001de0| 00 00 55 0e 00 00 00 00 | 00 00 00 00 00 00 00 00 |..U.....|........| |00001df0| 06 62 9d 9c 10 e2 00 00 | 1c d4 00 00 01 7e 60 00 |.b......|.....~`.| |00001e00| ff 20 00 00 00 00 00 00 | 0f c0 08 60 08 70 08 10 |. ......|...`.p..| |00001e10| 08 10 08 10 08 10 08 10 | 08 10 0f f0 00 00 00 00 |........|........| |00001e20| 00 00 00 00 00 00 00 00 | 1e 00 21 f8 20 04 20 04 |........|..!. . .| |00001e30| 20 04 20 04 20 04 20 04 | 3f fc 00 00 00 00 00 00 | . . . .|?.......| |00001e40| 00 00 00 00 00 00 3f f0 | 48 a8 48 a4 48 24 47 c4 |......?.|H.H.H$G.| |00001e50| 40 04 40 04 47 c4 48 24 | 48 24 48 24 3f fc 00 00 |@.@.G.H$|H$H$?...| |00001e60| 00 00 00 00 00 00 00 00 | 1e 00 21 fc 20 02 ff e2 |........|..!. ...| |00001e70| 80 12 40 12 40 0a 20 0a | 20 06 1f fe 00 00 00 00 |..@.@. .| .......| |00001e80| 00 00 00 48 00 09 4d 6f | 6e 61 63 6f 00 00 00 00 |...H..Mo|naco....| |00001e90| 00 00 00 00 00 24 00 00 | 00 16 00 01 03 ee 00 01 |.....$..|........| |00001ea0| 00 00 04 2a 00 00 00 06 | 00 04 00 29 00 03 01 53 |...*....|...)...S| |00001eb0| 01 fd 00 c9 00 08 01 4e | 01 f8 9d af 93 64 00 00 |.......N|.....d..| |00001ec0| 02 d6 00 00 02 d6 00 00 | 00 20 01 00 00 00 01 00 |........|. ......| |00001ed0| 00 00 01 4c 00 00 00 4c | 00 00 00 32 00 02 15 20 |...L...L|...2... | |00001ee0| 02 94 00 00 00 1c 00 32 | 00 00 4d 50 53 52 00 00 |.......2|..MPSR..| |00001ef0| 00 0a 03 ed ff ff 00 00 | 00 00 00 03 17 f6 00 00 |........|........| +--------+-------------------------+-------------------------+--------+--------+