home *** CD-ROM | disk | FTP | other *** search
MacBinary | 1994-03-08 | 5.4 KB | [TEXT/ALFA] |
open in:
MacOS 8.1
|
Win98
|
DOS
browse contents |
view JSON data
|
view as text
This file was processed as: MacBinary
(archive/macBinary).
Confidence | Program | Detection | Match Type | Support
|
---|
10%
| dexvert
| MacBinary (archive/macBinary)
| fallback
| Supported |
1%
| dexvert
| Text File (text/txt)
| fallback
| Supported |
100%
| file
| MacBinary II, Tue Mar 8 16:46:37 1994, modified Tue Mar 8 16:46:37 1994, creator Alpha editor, type ASCII, 4975 bytes "compare-windows.tcl" , at 0x13ef 382 bytes resource
| default (weak)
| |
99%
| file
| data
| default
| |
74%
| TrID
| Macintosh plain text (MacBinary)
| default
| |
25%
| TrID
| MacBinary 2
| default (weak)
| |
100%
| lsar
| MacBinary
| default
|
|
id metadata |
---|
key | value |
---|
macFileType | [TEXT] |
macFileCreator | [ALFA] |
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 13 63 6f 6d 70 61 72 | 65 2d 77 69 6e 64 6f 77 |..compar|e-window|
|00000010| 73 2e 74 63 6c 00 00 00 | 00 00 00 00 00 00 00 00 |s.tcl...|........|
|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 41 4c 46 | 41 00 00 00 00 00 00 00 |.TEXTALF|A.......|
|00000050| 00 00 00 00 00 13 6f 00 | 00 01 7e a9 a2 a2 bd a9 |......o.|..~.....|
|00000060| a2 a2 bd 00 00 04 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 f6 44 00 00 |........|.....D..|
|00000080| 23 20 46 49 4c 45 3a 20 | 63 6f 6d 70 61 72 65 2d |# FILE: |compare-|
|00000090| 77 69 6e 64 6f 77 73 2e | 74 63 6c 0d 23 0d 23 20 |windows.|tcl.#.# |
|000000a0| 4c 41 53 54 20 55 50 44 | 41 54 45 3a 20 30 31 2f |LAST UPD|ATE: 01/|
|000000b0| 30 36 2f 39 33 20 35 3a | 32 34 3a 33 32 20 41 4d |06/93 5:|24:32 AM|
|000000c0| 0d 23 0d 23 20 54 68 69 | 73 20 66 69 6c 65 20 63 |.#.# Thi|s file c|
|000000d0| 6f 6e 74 61 69 6e 73 20 | 74 68 65 20 66 6f 6c 6c |ontains |the foll|
|000000e0| 6f 77 69 6e 67 20 54 43 | 4c 20 70 72 6f 63 65 64 |owing TC|L proced|
|000000f0| 75 72 65 28 73 29 3a 0d | 23 0d 23 09 63 6f 6d 70 |ure(s):.|#.#.comp|
|00000100| 61 72 65 2d 77 69 6e 64 | 6f 77 73 20 2d 2d 20 43 |are-wind|ows -- C|
|00000110| 6f 6d 70 61 72 65 20 74 | 77 6f 20 77 69 6e 64 6f |ompare t|wo windo|
|00000120| 77 73 20 66 72 6f 6d 20 | 74 68 65 20 63 75 72 73 |ws from |the curs|
|00000130| 6f 72 20 61 6e 64 20 70 | 6f 73 69 74 69 6f 6e 0d |or and p|osition.|
|00000140| 23 09 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |#. | |
|00000150| 20 20 20 20 20 74 68 65 | 20 63 75 72 73 6f 72 73 | the| cursors|
|00000160| 20 61 74 20 74 68 65 20 | 6e 65 78 74 20 64 69 66 | at the |next dif|
|00000170| 66 65 72 65 6e 63 65 0d | 23 0d 23 20 54 43 4c 20 |ference.|#.# TCL |
|00000180| 53 59 4e 54 41 58 3a 0d | 23 0d 23 09 4e 4f 54 45 |SYNTAX:.|#.#.NOTE|
|00000190| 3a 20 54 68 65 20 6f 70 | 74 69 6f 6e 73 20 61 72 |: The op|tions ar|
|000001a0| 65 20 6e 6f 74 20 79 65 | 74 20 66 75 6c 6c 79 20 |e not ye|t fully |
|000001b0| 66 75 6e 63 74 69 6f 6e | 61 6c 0d 23 0d 23 09 63 |function|al.#.#.c|
|000001c0| 6f 6d 70 61 72 65 2d 77 | 69 6e 64 6f 77 73 20 5b |ompare-w|indows [|
|000001d0| 2d 77 7c 2d 62 5d 20 5b | 2d 63 5d 20 5b 66 69 6c |-w|-b] [|-c] [fil|
|000001e0| 65 31 5d 20 5b 66 69 6c | 65 32 5d 0d 23 0d 23 09 |e1] [fil|e2].#.#.|
|000001f0| 2d 62 20 69 67 6e 6f 72 | 65 20 62 6c 61 6e 6b 73 |-b ignor|e blanks|
|00000200| 20 61 6e 64 20 74 61 62 | 73 0d 23 09 2d 77 20 69 | and tab|s.#.-w i|
|00000210| 67 6e 6f 72 65 20 62 6c | 61 63 6b 73 2c 20 74 61 |gnore bl|acks, ta|
|00000220| 62 73 2c 20 6e 65 77 6c | 69 6e 65 73 2c 20 72 65 |bs, newl|ines, re|
|00000230| 74 75 72 6e 73 0d 23 09 | 2d 63 20 63 61 73 65 20 |turns.#.|-c case |
|00000240| 69 6e 73 65 6e 73 74 69 | 76 65 20 28 69 65 2e 20 |insensti|ve (ie. |
|00000250| 41 20 6d 61 74 63 68 65 | 73 20 61 29 0d 23 0d 23 |A matche|s a).#.#|
|00000260| 09 54 6f 20 75 73 65 2c | 20 73 69 6d 70 6c 79 20 |.To use,| simply |
|00000270| 73 6f 75 72 63 65 20 74 | 68 69 73 20 66 69 6c 65 |source t|his file|
|00000280| 20 70 6c 61 63 65 20 69 | 74 20 69 6e 20 74 68 65 | place i|t in the|
|00000290| 20 61 20 66 6f 6c 64 65 | 72 20 77 69 74 68 20 74 | a folde|r with t|
|000002a0| 68 65 0d 23 09 6e 61 6d | 65 20 24 48 4f 4d 45 3a |he.#.nam|e $HOME:|
|000002b0| 54 63 6c 3a 55 73 65 72 | 63 6f 64 65 3a 20 61 6e |Tcl:User|code: an|
|000002c0| 64 20 69 6e 76 6f 6b 65 | 20 69 74 20 69 6d 70 6c |d invoke| it impl|
|000002d0| 69 63 69 74 6c 79 20 76 | 69 61 20 74 68 65 20 22 |icitly v|ia the "|
|000002e0| 75 6e 6b 6e 6f 77 6e 20 | 70 72 6f 63 22 2e 0d 23 |unknown |proc"..#|
|000002f0| 0d 23 20 53 45 45 20 41 | 4c 53 4f 20 75 6e 6b 6e |.# SEE A|LSO unkn|
|00000300| 6f 77 6e 2e 74 63 6c 0d | 0d 23 20 43 4f 50 59 52 |own.tcl.|.# COPYR|
|00000310| 49 47 48 54 3a 0d 23 0d | 23 09 43 6f 70 79 72 69 |IGHT:.#.|#.Copyri|
|00000320| 67 68 74 20 a9 20 31 39 | 39 32 2c 31 39 39 33 20 |ght . 19|92,1993 |
|00000330| 62 79 20 44 61 76 69 64 | 20 43 2e 20 42 6c 61 63 |by David| C. Blac|
|00000340| 6b 0d 23 09 41 6c 6c 20 | 72 69 67 68 74 73 20 72 |k.#.All |rights r|
|00000350| 65 73 65 72 76 65 64 2e | 0d 23 0d 23 09 52 65 64 |eserved.|.#.#.Red|
|00000360| 69 73 74 72 69 62 75 74 | 69 6f 6e 20 61 6e 64 20 |istribut|ion and |
|00000370| 75 73 65 20 69 6e 20 73 | 6f 75 72 63 65 20 61 6e |use in s|ource an|
|00000380| 64 20 62 69 6e 61 72 79 | 20 66 6f 72 6d 73 20 61 |d binary| forms a|
|00000390| 72 65 20 70 65 72 6d 69 | 74 74 65 64 0d 23 09 70 |re permi|tted.#.p|
|000003a0| 72 6f 76 69 64 65 64 20 | 74 68 61 74 20 74 68 65 |rovided |that the|
|000003b0| 20 61 62 6f 76 65 20 63 | 6f 70 79 72 69 67 68 74 | above c|opyright|
|000003c0| 20 6e 6f 74 69 63 65 20 | 61 6e 64 20 74 68 69 73 | notice |and this|
|000003d0| 20 70 61 72 61 67 72 61 | 70 68 20 61 72 65 0d 23 | paragra|ph are.#|
|000003e0| 09 64 75 70 6c 69 63 61 | 74 65 64 20 69 6e 20 61 |.duplica|ted in a|
|000003f0| 6c 6c 20 73 75 63 68 20 | 66 6f 72 6d 73 20 61 6e |ll such |forms an|
|00000400| 64 20 74 68 61 74 20 61 | 6e 79 20 64 6f 63 75 6d |d that a|ny docum|
|00000410| 65 6e 74 61 74 69 6f 6e | 2c 0d 23 09 61 64 76 65 |entation|,.#.adve|
|00000420| 72 74 69 73 69 6e 67 20 | 6d 61 74 65 72 69 61 6c |rtising |material|
|00000430| 73 2c 20 61 6e 64 20 6f | 74 68 65 72 20 6d 61 74 |s, and o|ther mat|
|00000440| 65 72 69 61 6c 73 20 72 | 65 6c 61 74 65 64 20 74 |erials r|elated t|
|00000450| 6f 20 73 75 63 68 0d 23 | 09 64 69 73 74 72 69 62 |o such.#|.distrib|
|00000460| 75 74 69 6f 6e 20 61 6e | 64 20 75 73 65 20 61 63 |ution an|d use ac|
|00000470| 6b 6e 6f 77 6c 65 64 67 | 65 20 74 68 61 74 20 74 |knowledg|e that t|
|00000480| 68 65 20 73 6f 66 74 77 | 61 72 65 20 77 61 73 20 |he softw|are was |
|00000490| 64 65 76 65 6c 6f 70 65 | 64 0d 23 09 62 79 20 44 |develope|d.#.by D|
|000004a0| 61 76 69 64 20 43 2e 20 | 42 6c 61 63 6b 2e 0d 23 |avid C. |Black..#|
|000004b0| 0d 23 09 54 48 49 53 20 | 53 4f 46 54 57 41 52 45 |.#.THIS |SOFTWARE|
|000004c0| 20 49 53 20 50 52 4f 56 | 49 44 45 44 20 22 41 53 | IS PROV|IDED "AS|
|000004d0| 20 49 53 22 20 41 4e 44 | 20 57 49 54 48 4f 55 54 | IS" AND| WITHOUT|
|000004e0| 20 41 4e 59 20 45 58 50 | 52 45 53 53 20 4f 52 0d | ANY EXP|RESS OR.|
|000004f0| 23 09 49 4d 50 4c 49 45 | 44 20 57 41 52 52 41 4e |#.IMPLIE|D WARRAN|
|00000500| 54 49 45 53 2c 20 49 4e | 43 4c 55 44 49 4e 47 2c |TIES, IN|CLUDING,|
|00000510| 20 57 49 54 48 4f 55 54 | 20 4c 49 4d 49 54 41 54 | WITHOUT| LIMITAT|
|00000520| 49 4f 4e 2c 20 54 48 45 | 20 49 4d 50 4c 49 45 44 |ION, THE| IMPLIED|
|00000530| 0d 23 09 57 41 52 52 41 | 4e 54 49 45 53 20 4f 46 |.#.WARRA|NTIES OF|
|00000540| 20 4d 45 52 43 48 41 4e | 54 41 42 49 4c 49 54 59 | MERCHAN|TABILITY|
|00000550| 20 41 4e 44 20 46 49 54 | 4e 45 53 53 20 46 4f 52 | AND FIT|NESS FOR|
|00000560| 20 41 20 50 41 52 54 49 | 43 55 4c 41 52 20 50 55 | A PARTI|CULAR PU|
|00000570| 52 50 4f 53 45 2e 0d 23 | 0d 23 23 23 23 23 23 23 |RPOSE..#|.#######|
|00000580| 23 23 23 23 23 23 23 23 | 23 23 23 23 23 23 23 23 |########|########|
|00000590| 23 23 23 23 23 23 23 23 | 23 23 23 23 23 23 23 23 |########|########|
|000005a0| 23 23 23 23 23 23 23 23 | 23 23 23 23 23 23 23 23 |########|########|
|000005b0| 23 23 23 23 23 23 23 23 | 23 23 23 23 23 23 23 23 |########|########|
|000005c0| 23 23 23 23 23 23 23 23 | 23 0d 0d 23 20 41 55 54 |########|#..# AUT|
|000005d0| 48 4f 52 0d 23 0d 23 09 | 44 61 76 69 64 20 43 2e |HOR.#.#.|David C.|
|000005e0| 20 42 6c 61 63 6b 0d 23 | 09 49 6e 74 65 72 6e 65 | Black.#|.Interne|
|000005f0| 74 3a 20 62 6c 61 63 6b | 40 6d 70 64 2e 74 61 6e |t: black|@mpd.tan|
|00000600| 64 65 6d 2e 63 6f 6d 20 | 28 70 72 65 66 65 72 72 |dem.com |(preferr|
|00000610| 65 64 29 0d 23 09 47 45 | 6e 69 65 3a 20 20 20 20 |ed).#.GE|nie: |
|00000620| 44 2e 43 2e 42 6c 61 63 | 6b 0d 23 09 55 53 6e 61 |D.C.Blac|k.#.USna|
|00000630| 69 6c 3a 20 20 20 36 32 | 31 37 20 4a 6f 68 6e 20 |il: 62|17 John |
|00000640| 43 68 69 73 75 6d 20 4c | 61 6e 65 2c 20 41 75 73 |Chisum L|ane, Aus|
|00000650| 74 69 6e 2c 20 54 58 20 | 37 38 37 34 39 0d 23 0d |tin, TX |78749.#.|
|00000660| 23 23 23 23 23 23 23 23 | 23 23 23 23 23 23 23 23 |########|########|
|00000670| 23 23 23 23 23 23 23 23 | 23 23 23 23 23 23 23 23 |########|########|
|00000680| 23 23 23 23 23 23 23 23 | 23 23 23 23 23 23 23 23 |########|########|
|00000690| 23 23 23 23 23 23 23 23 | 23 23 23 23 23 23 23 23 |########|########|
|000006a0| 23 23 23 23 23 23 23 23 | 23 23 23 23 23 23 23 23 |########|########|
|000006b0| 0d 0d 23 20 48 49 53 54 | 4f 52 59 0d 23 20 20 20 |..# HIST|ORY.# |
|000006c0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 0d | | .|
|000006d0| 23 20 6d 6f 64 69 66 69 | 65 64 20 77 68 6f 20 72 |# modifi|ed who r|
|000006e0| 65 76 20 72 65 61 73 6f | 6e 0d 23 20 2d 2d 2d 2d |ev reaso|n.# ----|
|000006f0| 2d 2d 2d 2d 20 2d 2d 2d | 20 2d 2d 2d 20 2d 2d 2d |---- ---| --- ---|
|00000700| 2d 2d 2d 0d 23 20 30 31 | 2f 30 36 2f 39 33 20 44 |---.# 01|/06/93 D|
|00000710| 43 42 20 31 2e 30 20 4f | 72 69 67 69 6e 61 6c 0d |CB 1.0 O|riginal.|
|00000720| 0d 70 72 6f 63 20 63 6f | 6d 70 61 72 65 2d 77 69 |.proc co|mpare-wi|
|00000730| 6e 64 6f 77 73 20 7b 61 | 72 67 73 7d 20 7b 0d 0d |ndows {a|rgs} {..|
|00000740| 09 73 65 74 20 70 61 74 | 74 20 7b 7d 0d 09 73 65 |.set pat|t {}..se|
|00000750| 74 20 66 6f 6c 64 20 30 | 0d 09 73 65 74 20 77 69 |t fold 0|..set wi|
|00000760| 6e 73 20 5b 77 69 6e 4e | 61 6d 65 73 5d 0d 23 09 |ns [winN|ames].#.|
|00000770| 73 65 74 20 77 69 6e 73 | 20 5b 77 69 6e 4e 61 6d |set wins| [winNam|
|00000780| 65 73 20 2d 66 5d 0d 09 | 73 65 74 20 66 69 6c 65 |es -f]..|set file|
|00000790| 73 20 7b 7d 0d 09 69 66 | 20 7b 5b 6c 6c 65 6e 67 |s {}..if| {[lleng|
|000007a0| 74 68 20 24 61 72 67 73 | 5d 20 3e 20 30 7d 20 7b |th $args|] > 0} {|
|000007b0| 0d 09 09 66 6f 72 65 61 | 63 68 20 61 72 67 20 24 |...forea|ch arg $|
|000007c0| 61 72 67 73 20 7b 0d 09 | 09 09 63 61 73 65 20 24 |args {..|..case $|
|000007d0| 61 72 67 20 7b 0d 09 09 | 09 09 7b 2d 63 7d 20 7b |arg {...|..{-c} {|
|000007e0| 0d 09 09 09 09 09 73 65 | 74 20 66 6f 6c 64 20 31 |......se|t fold 1|
|000007f0| 0d 09 09 09 09 7d 0d 09 | 09 09 09 7b 2d 62 7d 20 |.....}..|...{-b} |
|00000800| 7b 0d 09 09 09 09 09 73 | 65 74 20 70 61 74 74 20 |{......s|et patt |
|00000810| 22 5c 5b 20 5c 74 5c 5d | 2b 22 0d 09 09 09 09 7d |"\[ \t\]|+".....}|
|00000820| 0d 09 09 09 09 7b 2d 77 | 7d 20 7b 0d 09 09 09 09 |.....{-w|} {.....|
|00000830| 09 73 65 74 20 70 61 74 | 74 20 22 5c 5b 20 5c 74 |.set pat|t "\[ \t|
|00000840| 5c 6e 5c 72 5c 5d 2b 22 | 0d 09 09 09 09 7d 0d 09 |\n\r\]+"|.....}..|
|00000850| 09 09 09 7b 7d 20 7b 0d | 09 09 09 09 7d 0d 09 09 |...{} {.|....}...|
|00000860| 09 09 64 65 66 61 75 6c | 74 20 7b 0d 09 09 09 09 |..defaul|t {.....|
|00000870| 09 69 66 20 7b 5b 73 74 | 72 69 6e 67 20 66 69 72 |.if {[st|ring fir|
|00000880| 73 74 20 22 3a 22 20 24 | 61 72 67 5d 20 3c 20 30 |st ":" $|arg] < 0|
|00000890| 7d 20 7b 0d 09 09 09 09 | 09 09 73 65 74 20 61 72 |} {.....|..set ar|
|000008a0| 67 20 22 5b 70 77 64 5d | 24 61 72 67 22 0d 09 09 |g "[pwd]|$arg"...|
|000008b0| 09 09 09 7d 0d 09 09 09 | 09 09 73 65 74 20 66 6f |...}....|..set fo|
|000008c0| 75 6e 64 20 30 0d 09 09 | 09 09 09 66 6f 72 65 61 |und 0...|...forea|
|000008d0| 63 68 20 77 69 6e 20 24 | 77 69 6e 73 20 7b 0d 09 |ch win $|wins {..|
|000008e0| 09 09 09 09 09 69 66 20 | 7b 24 61 72 67 20 3d 3d |.....if |{$arg ==|
|000008f0| 20 24 77 69 6e 7d 20 7b | 0d 09 09 09 09 09 09 09 | $win} {|........|
|00000900| 73 65 74 20 66 6f 75 6e | 64 20 31 0d 09 09 09 09 |set foun|d 1.....|
|00000910| 09 09 09 62 72 65 61 6b | 0d 09 09 09 09 09 09 7d |...break|.......}|
|00000920| 0d 09 09 09 09 09 7d 0d | 09 09 09 09 09 69 66 20 |......}.|.....if |
|00000930| 7b 24 66 6f 75 6e 64 7d | 20 7b 0d 09 09 09 09 09 |{$found}| {......|
|00000940| 09 6c 61 70 70 65 6e 64 | 20 66 69 6c 65 73 20 24 |.lappend| files $|
|00000950| 61 72 67 0d 09 09 09 09 | 09 7d 20 65 6c 73 65 20 |arg.....|.} else |
|00000960| 7b 0d 09 09 09 09 09 09 | 69 66 20 7b 5b 66 69 6c |{.......|if {[fil|
|00000970| 65 20 65 78 69 73 74 73 | 20 24 61 72 67 5d 7d 20 |e exists| $arg]} |
|00000980| 7b 0d 09 09 09 09 09 09 | 09 6c 61 70 70 65 6e 64 |{.......|.lappend|
|00000990| 20 66 69 6c 65 73 20 24 | 61 72 67 0d 09 09 09 09 | files $|arg.....|
|000009a0| 09 09 09 65 64 69 74 20 | 24 61 72 67 20 2d 72 0d |...edit |$arg -r.|
|000009b0| 09 09 09 09 09 09 7d 20 | 65 6c 73 65 20 7b 0d 09 |......} |else {..|
|000009c0| 09 09 09 09 09 09 61 6c | 65 72 74 6e 6f 74 65 20 |......al|ertnote |
|000009d0| 22 43 61 6e 6e 6f 74 20 | 72 65 61 64 20 24 61 72 |"Cannot |read $ar|
|000009e0| 67 22 0d 09 09 09 09 09 | 09 7d 0d 09 09 09 09 09 |g"......|.}......|
|000009f0| 7d 0d 09 09 09 09 7d 0d | 09 09 09 7d 0d 09 09 7d |}.....}.|...}...}|
|00000a00| 0d 09 7d 0d 09 73 65 74 | 20 66 69 6c 65 73 20 5b |..}..set| files [|
|00000a10| 63 6f 6e 63 61 74 20 24 | 66 69 6c 65 73 20 24 77 |concat $|files $w|
|00000a20| 69 6e 73 5d 0d 0d 09 69 | 66 20 7b 5b 6c 6c 65 6e |ins]...i|f {[llen|
|00000a30| 67 74 68 20 24 66 69 6c | 65 73 5d 20 3c 20 32 7d |gth $fil|es] < 2}|
|00000a40| 20 7b 0d 09 09 61 6c 65 | 72 74 6e 6f 74 65 20 22 | {...ale|rtnote "|
|00000a50| 4e 65 65 64 20 61 74 20 | 6c 65 61 73 74 20 32 20 |Need at |least 2 |
|00000a60| 77 69 6e 64 6f 77 73 2f | 66 69 6c 65 73 22 0d 09 |windows/|files"..|
|00000a70| 09 72 65 74 75 72 6e 0d | 09 7d 0d 0d 09 23 20 47 |.return.|.}...# G|
|00000a80| 65 74 20 77 69 6e 64 6f | 77 20 31 20 74 65 78 74 |et windo|w 1 text|
|00000a90| 20 74 6f 20 63 6f 6d 70 | 61 72 65 0d 09 73 65 74 | to comp|are..set|
|00000aa0| 20 77 6e 28 31 29 20 5b | 6c 69 6e 64 65 78 20 24 | wn(1) [|lindex $|
|00000ab0| 66 69 6c 65 73 20 30 5d | 0d 09 62 72 69 6e 67 54 |files 0]|..bringT|
|00000ac0| 6f 46 72 6f 6e 74 20 24 | 77 6e 28 31 29 0d 09 69 |oFront $|wn(1)..i|
|00000ad0| 66 20 7b 5b 67 65 74 53 | 65 6c 65 63 74 5d 20 21 |f {[getS|elect] !|
|00000ae0| 3d 20 22 22 7d 20 7b 0d | 09 09 66 6f 72 77 61 72 |= ""} {.|..forwar|
|00000af0| 64 43 68 61 72 0d 09 7d | 0d 09 73 65 74 20 77 70 |dChar..}|..set wp|
|00000b00| 28 31 29 20 5b 67 65 74 | 50 6f 73 5d 0d 09 73 65 |(1) [get|Pos]..se|
|00000b10| 74 20 77 6f 28 31 29 20 | 5b 67 65 74 54 65 78 74 |t wo(1) |[getText|
|00000b20| 20 24 77 70 28 31 29 20 | 5b 6d 61 78 50 6f 73 5d | $wp(1) |[maxPos]|
|00000b30| 5d 0d 09 73 65 74 20 77 | 74 28 31 29 20 24 77 6f |]..set w|t(1) $wo|
|00000b40| 28 31 29 0d 09 69 66 20 | 7b 24 70 61 74 74 20 21 |(1)..if |{$patt !|
|00000b50| 3d 20 22 22 7d 20 7b 0d | 09 09 72 65 67 73 75 62 |= ""} {.|..regsub|
|00000b60| 20 2d 61 6c 6c 20 24 70 | 61 74 74 20 24 77 74 28 | -all $p|att $wt(|
|00000b70| 31 29 20 22 20 22 20 77 | 74 28 31 29 0d 09 7d 0d |1) " " w|t(1)..}.|
|00000b80| 09 69 66 20 7b 24 66 6f | 6c 64 7d 20 7b 0d 09 09 |.if {$fo|ld} {...|
|00000b90| 73 65 74 20 77 74 28 31 | 29 20 5b 73 74 72 69 6e |set wt(1|) [strin|
|00000ba0| 67 20 74 6f 6c 6f 77 65 | 72 20 24 77 74 28 31 29 |g tolowe|r $wt(1)|
|00000bb0| 5d 0d 09 7d 0d 0d 09 23 | 20 47 65 74 20 77 69 6e |]..}...#| Get win|
|00000bc0| 64 6f 77 20 32 20 74 65 | 78 74 20 74 6f 20 63 6f |dow 2 te|xt to co|
|00000bd0| 6d 70 61 72 65 0d 09 73 | 65 74 20 77 6e 28 32 29 |mpare..s|et wn(2)|
|00000be0| 20 5b 6c 69 6e 64 65 78 | 20 24 66 69 6c 65 73 20 | [lindex| $files |
|00000bf0| 31 5d 0d 09 62 72 69 6e | 67 54 6f 46 72 6f 6e 74 |1]..brin|gToFront|
|00000c00| 20 24 77 6e 28 32 29 0d | 09 69 66 20 7b 5b 67 65 | $wn(2).|.if {[ge|
|00000c10| 74 53 65 6c 65 63 74 5d | 20 21 3d 20 22 22 7d 20 |tSelect]| != ""} |
|00000c20| 7b 0d 09 09 66 6f 72 77 | 61 72 64 43 68 61 72 0d |{...forw|ardChar.|
|00000c30| 09 7d 0d 09 73 65 74 20 | 77 70 28 32 29 20 5b 67 |.}..set |wp(2) [g|
|00000c40| 65 74 50 6f 73 5d 0d 09 | 73 65 74 20 77 6f 28 32 |etPos]..|set wo(2|
|00000c50| 29 20 5b 67 65 74 54 65 | 78 74 20 24 77 70 28 32 |) [getTe|xt $wp(2|
|00000c60| 29 20 5b 6d 61 78 50 6f | 73 5d 5d 0d 09 73 65 74 |) [maxPo|s]]..set|
|00000c70| 20 77 74 28 32 29 20 24 | 77 6f 28 32 29 0d 09 69 | wt(2) $|wo(2)..i|
|00000c80| 66 20 7b 24 70 61 74 74 | 20 21 3d 20 22 22 7d 20 |f {$patt| != ""} |
|00000c90| 7b 0d 09 09 72 65 67 73 | 75 62 20 2d 61 6c 6c 20 |{...regs|ub -all |
|00000ca0| 24 70 61 74 74 20 24 77 | 74 28 32 29 20 22 20 22 |$patt $w|t(2) " "|
|00000cb0| 20 77 74 28 32 29 0d 09 | 7d 0d 0d 09 23 20 45 78 | wt(2)..|}...# Ex|
|00000cc0| 61 63 74 6c 79 20 65 71 | 75 61 6c 0d 09 69 66 20 |actly eq|ual..if |
|00000cd0| 7b 24 77 74 28 31 29 20 | 3d 3d 20 24 77 74 28 32 |{$wt(1) |== $wt(2|
|00000ce0| 29 7d 20 7b 0d 09 09 6d | 65 73 73 61 67 65 20 22 |)} {...m|essage "|
|00000cf0| 49 64 65 6e 74 69 63 61 | 6c 22 0d 09 09 72 65 74 |Identica|l"...ret|
|00000d00| 75 72 6e 0d 09 7d 0d 0d | 09 23 20 4f 6e 6c 79 20 |urn..}..|.# Only |
|00000d10| 63 6f 6e 73 69 64 65 72 | 20 73 6d 61 6c 6c 65 72 |consider| smaller|
|00000d20| 20 6f 66 20 74 77 6f 20 | 73 74 72 69 6e 67 73 09 | of two |strings.|
|00000d30| 0d 09 73 65 74 20 73 69 | 7a 20 5b 73 74 72 69 6e |..set si|z [strin|
|00000d40| 67 20 6c 65 6e 67 74 68 | 20 24 77 74 28 31 29 5d |g length| $wt(1)]|
|00000d50| 0d 09 69 66 20 7b 24 73 | 69 7a 20 3e 20 5b 73 74 |..if {$s|iz > [st|
|00000d60| 72 69 6e 67 20 6c 65 6e | 67 74 68 20 24 77 74 28 |ring len|gth $wt(|
|00000d70| 32 29 5d 7d 20 7b 0d 09 | 09 73 65 74 20 73 69 7a |2)]} {..|.set siz|
|00000d80| 20 5b 73 74 72 69 6e 67 | 20 6c 65 6e 67 74 68 20 | [string| length |
|00000d90| 24 77 74 28 32 29 5d 0d | 09 7d 0d 09 0d 09 23 20 |$wt(2)].|.}....# |
|00000da0| 45 71 75 61 6c 20 65 78 | 63 65 70 74 20 66 6f 72 |Equal ex|cept for|
|00000db0| 20 61 64 64 65 64 20 73 | 74 75 66 66 0d 09 73 65 | added s|tuff..se|
|00000dc0| 74 20 6c 20 5b 65 78 70 | 72 20 7b 24 73 69 7a 2d |t l [exp|r {$siz-|
|00000dd0| 31 7d 5d 0d 09 69 66 20 | 7b 5b 73 74 72 69 6e 67 |1}]..if |{[string|
|00000de0| 20 72 61 6e 67 65 20 24 | 77 74 28 31 29 20 30 20 | range $|wt(1) 0 |
|00000df0| 24 6c 5d 20 3d 3d 20 5b | 73 74 72 69 6e 67 20 72 |$l] == [|string r|
|00000e00| 61 6e 67 65 20 24 77 74 | 28 32 29 20 30 20 24 6c |ange $wt|(2) 0 $l|
|00000e10| 5d 7d 20 7b 0d 09 09 73 | 65 74 20 62 65 67 20 24 |]} {...s|et beg $|
|00000e20| 73 69 7a 0d 09 09 73 65 | 74 20 6f 66 66 73 65 74 |siz...se|t offset|
|00000e30| 28 31 29 20 24 62 65 67 | 0d 09 09 73 65 74 20 6f |(1) $beg|...set o|
|00000e40| 66 66 73 65 74 28 32 29 | 20 24 62 65 67 0d 09 7d |ffset(2)| $beg..}|
|00000e50| 20 65 6c 73 65 20 7b 0d | 09 09 73 65 74 20 62 65 | else {.|..set be|
|00000e60| 67 20 30 0d 09 09 73 65 | 74 20 74 72 61 63 65 20 |g 0...se|t trace |
|00000e70| 7b 7d 0d 09 0d 09 09 77 | 68 69 6c 65 20 7b 24 73 |{}.....w|hile {$s|
|00000e80| 69 7a 7d 20 7b 0d 09 09 | 09 73 65 74 20 73 69 7a |iz} {...|.set siz|
|00000e90| 20 5b 65 78 70 72 20 7b | 24 73 69 7a 20 2f 20 32 | [expr {|$siz / 2|
|00000ea0| 7d 5d 0d 09 09 09 73 65 | 74 20 65 6e 64 20 5b 65 |}]....se|t end [e|
|00000eb0| 78 70 72 20 7b 24 62 65 | 67 2b 24 73 69 7a 7d 5d |xpr {$be|g+$siz}]|
|00000ec0| 0d 09 09 09 69 66 20 7b | 5b 73 74 72 69 6e 67 20 |....if {|[string |
|00000ed0| 72 61 6e 67 65 20 24 77 | 74 28 31 29 20 24 62 65 |range $w|t(1) $be|
|00000ee0| 67 20 24 65 6e 64 5d 20 | 3d 3d 20 5b 73 74 72 69 |g $end] |== [stri|
|00000ef0| 6e 67 20 72 61 6e 67 65 | 20 24 77 74 28 32 29 20 |ng range| $wt(2) |
|00000f00| 24 62 65 67 20 24 65 6e | 64 5d 7d 20 7b 0d 09 09 |$beg $en|d]} {...|
|00000f10| 09 09 69 6e 63 72 20 62 | 65 67 20 24 73 69 7a 0d |..incr b|eg $siz.|
|00000f20| 09 09 09 09 69 6e 63 72 | 20 62 65 67 0d 09 09 09 |....incr| beg....|
|00000f30| 7d 0d 09 09 7d 0d 0d 09 | 09 73 65 74 20 6f 66 66 |}...}...|.set off|
|00000f40| 73 65 74 28 31 29 20 24 | 62 65 67 0d 09 09 73 65 |set(1) $|beg...se|
|00000f50| 74 20 6f 66 66 73 65 74 | 28 32 29 20 24 62 65 67 |t offset|(2) $beg|
|00000f60| 0d 09 0d 09 09 23 20 61 | 64 6a 75 73 74 20 66 6f |.....# a|djust fo|
|00000f70| 72 20 24 70 61 74 74 0d | 09 09 69 66 20 7b 24 70 |r $patt.|..if {$p|
|00000f80| 61 74 74 20 21 3d 20 22 | 22 7d 20 7b 0d 09 09 09 |att != "|"} {....|
|00000f90| 66 6f 72 65 61 63 68 20 | 69 20 7b 31 20 32 7d 20 |foreach |i {1 2} |
|00000fa0| 7b 0d 09 09 09 09 73 65 | 74 20 66 72 6f 6e 74 20 |{.....se|t front |
|00000fb0| 22 22 0d 09 09 09 09 73 | 65 74 20 6c 65 66 74 20 |"".....s|et left |
|00000fc0| 5b 65 78 70 72 20 7b 24 | 62 65 67 2b 31 7d 5d 0d |[expr {$|beg+1}].|
|00000fd0| 09 09 09 09 73 65 74 20 | 62 61 63 6b 20 24 77 6f |....set |back $wo|
|00000fe0| 28 24 69 29 0d 09 09 09 | 09 73 65 74 20 69 74 65 |($i)....|.set ite|
|00000ff0| 72 61 74 69 6f 6e 73 20 | 30 0d 09 09 09 09 77 68 |rations |0.....wh|
|00001000| 69 6c 65 20 7b 24 6c 65 | 66 74 20 3e 20 30 7d 20 |ile {$le|ft > 0} |
|00001010| 7b 0d 09 09 09 09 09 61 | 70 70 65 6e 64 20 66 72 |{......a|ppend fr|
|00001020| 6f 6e 74 20 5b 73 74 72 | 69 6e 67 20 72 61 6e 67 |ont [str|ing rang|
|00001030| 65 20 24 62 61 63 6b 20 | 30 20 5b 65 78 70 72 20 |e $back |0 [expr |
|00001040| 7b 24 6c 65 66 74 2d 31 | 7d 5d 5d 0d 09 09 09 09 |{$left-1|}]].....|
|00001050| 09 73 65 74 20 20 20 20 | 62 61 63 6b 20 20 5b 73 |.set |back [s|
|00001060| 74 72 69 6e 67 20 72 61 | 6e 67 65 20 24 62 61 63 |tring ra|nge $bac|
|00001070| 6b 20 24 6c 65 66 74 20 | 65 6e 64 5d 0d 09 09 09 |k $left |end]....|
|00001080| 09 09 72 65 67 73 75 62 | 20 2d 61 6c 6c 20 24 70 |..regsub| -all $p|
|00001090| 61 74 74 20 24 66 72 6f | 6e 74 20 7b 20 7d 20 66 |att $fro|nt { } f|
|000010a0| 72 6f 6e 74 0d 09 09 09 | 09 09 73 65 74 20 6c 65 |ront....|..set le|
|000010b0| 66 74 20 5b 65 78 70 72 | 20 7b 24 62 65 67 20 2b |ft [expr| {$beg +|
|000010c0| 20 31 20 2d 20 5b 73 74 | 72 69 6e 67 20 6c 65 6e | 1 - [st|ring len|
|000010d0| 67 74 68 20 24 66 72 6f | 6e 74 5d 7d 5d 0d 09 09 |gth $fro|nt]}]...|
|000010e0| 09 09 09 69 6e 63 72 20 | 6f 66 66 73 65 74 28 24 |...incr |offset($|
|000010f0| 69 29 20 24 6c 65 66 74 | 0d 09 09 09 09 09 69 66 |i) $left|......if|
|00001100| 20 7b 5b 69 6e 63 72 20 | 69 74 65 72 61 74 69 6f | {[incr |iteratio|
|00001110| 6e 73 5d 20 3e 20 31 30 | 30 7d 20 7b 0d 09 09 09 |ns] > 10|0} {....|
|00001120| 09 09 09 61 6c 65 72 74 | 6e 6f 74 65 20 22 64 69 |...alert|note "di|
|00001130| 66 66 3a 20 69 74 65 72 | 61 74 69 6f 6e 73 20 65 |ff: iter|ations e|
|00001140| 78 63 65 65 64 65 64 20 | 31 30 30 22 0d 09 09 09 |xceeded |100"....|
|00001150| 09 09 09 62 72 65 61 6b | 0d 09 09 09 09 09 7d 0d |...break|......}.|
|00001160| 09 09 23 42 45 47 20 44 | 45 42 55 47 0d 09 09 67 |..#BEG D|EBUG...g|
|00001170| 6c 6f 62 61 6c 20 74 65 | 73 74 69 6e 67 0d 09 09 |lobal te|sting...|
|00001180| 69 66 20 7b 24 74 65 73 | 74 69 6e 67 7d 20 7b 0d |if {$tes|ting} {.|
|00001190| 09 09 09 73 65 74 20 6f | 20 24 6f 66 66 73 65 74 |...set o| $offset|
|000011a0| 28 24 69 29 0d 09 09 09 | 72 65 67 73 75 62 20 2d |($i)....|regsub -|
|000011b0| 61 6c 6c 20 22 5c 5b 5c | 72 5c 6e 5c 5d 2a 22 20 |all "\[\|r\n\]*" |
|000011c0| 24 66 72 6f 6e 74 20 22 | a5 22 20 74 0d 09 09 09 |$front "|." t....|
|000011d0| 69 66 20 7b 5b 67 65 74 | 6c 69 6e 65 20 22 24 69 |if {[get|line "$i|
|000011e0| c7 24 74 c8 20 24 6c 65 | 66 74 2f 24 6f 22 20 22 |.$t. $le|ft/$o" "|
|000011f0| 63 6f 6e 74 69 6e 75 65 | 22 5d 20 21 3d 20 22 63 |continue|"] != "c|
|00001200| 6f 6e 74 69 6e 75 65 22 | 7d 20 7b 0d 09 09 09 09 |ontinue"|} {.....|
|00001210| 62 72 65 61 6b 0d 09 09 | 09 7d 0d 09 09 7d 0d 09 |break...|.}...}..|
|00001220| 09 23 45 4e 44 20 44 45 | 42 55 47 0d 09 09 09 09 |.#END DE|BUG.....|
|00001230| 7d 0d 09 09 09 7d 0d 09 | 09 09 0d 09 09 7d 0d 09 |}....}..|.....}..|
|00001240| 7d 0d 09 0d 0d 23 09 62 | 72 69 6e 67 54 6f 46 72 |}....#.b|ringToFr|
|00001250| 6f 6e 74 20 24 77 6e 28 | 32 29 0d 09 73 65 74 20 |ont $wn(|2)..set |
|00001260| 70 6f 73 20 5b 65 78 70 | 72 20 7b 24 77 70 28 32 |pos [exp|r {$wp(2|
|00001270| 29 2b 24 6f 66 66 73 65 | 74 28 32 29 7d 5d 0d 09 |)+$offse|t(2)}]..|
|00001280| 69 66 20 7b 24 70 6f 73 | 20 3e 20 5b 6d 61 78 50 |if {$pos| > [maxP|
|00001290| 6f 73 5d 7d 20 7b 0d 09 | 09 67 6f 74 6f 20 65 6e |os]} {..|.goto en|
|000012a0| 64 0d 09 7d 20 65 6c 73 | 65 20 7b 0d 09 09 67 6f |d..} els|e {...go|
|000012b0| 74 6f 20 24 70 6f 73 0d | 09 7d 0d 09 63 65 6e 74 |to $pos.|.}..cent|
|000012c0| 65 72 52 65 64 72 61 77 | 0d 09 66 6f 72 77 61 72 |erRedraw|..forwar|
|000012d0| 64 43 68 61 72 53 65 6c | 65 63 74 0d 0d 09 62 72 |dCharSel|ect...br|
|000012e0| 69 6e 67 54 6f 46 72 6f | 6e 74 20 24 77 6e 28 31 |ingToFro|nt $wn(1|
|000012f0| 29 0d 23 09 6c 69 73 74 | 70 69 63 6b 20 24 74 72 |).#.list|pick $tr|
|00001300| 61 63 65 0d 09 73 65 74 | 20 70 6f 73 20 5b 65 78 |ace..set| pos [ex|
|00001310| 70 72 20 7b 24 77 70 28 | 31 29 2b 24 6f 66 66 73 |pr {$wp(|1)+$offs|
|00001320| 65 74 28 31 29 7d 5d 0d | 09 69 66 20 7b 24 70 6f |et(1)}].|.if {$po|
|00001330| 73 20 3e 20 5b 6d 61 78 | 50 6f 73 5d 7d 20 7b 0d |s > [max|Pos]} {.|
|00001340| 09 09 67 6f 74 6f 20 65 | 6e 64 0d 09 7d 20 65 6c |..goto e|nd..} el|
|00001350| 73 65 20 7b 0d 09 09 67 | 6f 74 6f 20 24 70 6f 73 |se {...g|oto $pos|
|00001360| 0d 09 7d 0d 09 63 65 6e | 74 65 72 52 65 64 72 61 |..}..cen|terRedra|
|00001370| 77 0d 09 66 6f 72 77 61 | 72 64 43 68 61 72 53 65 |w..forwa|rdCharSe|
|00001380| 6c 65 63 74 0d 0d 09 72 | 65 74 75 72 6e 0d 7d 0d |lect...r|eturn.}.|
|00001390| 0d 73 65 74 20 74 65 73 | 74 69 6e 67 20 30 0d 69 |.set tes|ting 0.i|
|000013a0| 66 20 7b 24 74 65 73 74 | 69 6e 67 7d 20 7b 0d 09 |f {$test|ing} {..|
|000013b0| 73 65 74 20 63 77 64 20 | 5b 70 77 64 5d 0d 09 64 |set cwd |[pwd]..d|
|000013c0| 69 66 66 20 2d 62 20 22 | 24 7b 63 77 64 7d 54 43 |iff -b "|${cwd}TC|
|000013d0| 4c 73 3a 31 2e 74 78 74 | 22 20 22 24 7b 63 77 64 |Ls:1.txt|" "${cwd|
|000013e0| 7d 54 43 4c 73 3a 32 2e | 74 78 74 22 0d 7d 0d 00 |}TCLs:2.|txt".}..|
|000013f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001400| 00 00 01 00 00 00 01 4c | 00 00 00 4c 00 00 00 32 |.......L|...L...2|
|00001410| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001420| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001430| 13 63 6f 6d 70 61 72 65 | 2d 77 69 6e 64 6f 77 73 |.compare|-windows|
|00001440| 2e 74 63 6c 02 00 00 00 | 50 61 72 74 53 49 54 21 |.tcl....|PartSIT!|
|00001450| 00 00 50 61 72 74 53 49 | 54 21 00 00 00 00 00 00 |..PartSI|T!......|
|00001460| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001470| 00 00 ab 97 aa ec 00 00 | 00 00 00 00 01 7e 00 00 |........|.....~..|
|00001480| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001490| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000014a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000014b0| 00 00 00 03 01 1a a7 72 | c8 e0 00 00 00 00 01 06 |.......r|........|
|000014c0| 00 01 01 03 00 01 01 00 | 00 01 00 00 0f 45 43 41 |........|.....ECA|
|000014d0| 44 20 6d 74 67 73 20 74 | 6f 64 61 79 65 74 74 69 |D mtgs t|odayetti|
|000014e0| 6e 67 73 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |ngs.....|........|
|000014f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001500| 00 00 00 48 00 09 4d 6f | 6e 61 63 6f 00 00 00 ab |...H..Mo|naco....|
|00001510| e9 2a 00 9f a5 32 00 00 | 00 6b 00 9d e6 86 00 a6 |.*...2..|.k......|
|00001520| 84 08 00 a5 45 82 00 04 | 00 04 00 2a 00 03 01 dd |....E...|...*....|
|00001530| 02 7d 00 2a 00 03 01 dd | 02 7d 00 06 4e 4f 00 00 |.}.*....|.}..NO..|
|00001540| 00 00 00 00 00 00 00 00 | 00 00 01 00 00 00 01 00 |........|........|
|00001550| 00 00 01 4c 00 00 00 4c | 00 00 00 32 00 9c e8 84 |...L...L|...2....|
|00001560| 05 e2 00 00 00 1c 00 32 | 00 00 4d 50 53 52 00 00 |.......2|..MPSR..|
|00001570| 00 0a 03 ed ff ff 00 00 | 00 00 00 9d df 40 00 00 |........|.....@..|
+--------+-------------------------+-------------------------+--------+--------+