home *** CD-ROM | disk | FTP | other *** search
open in:
MacOS 8.1
|
Win98
|
DOS
browse contents |
view JSON data
|
view as text
This file was processed as: SHell self-extracting ARchive
(archive/shar).
Confidence | Program | Detection | Match Type | Support
|
---|
100%
| dexvert
| Newsgroup Content (archive/news)
| magic
| Supported |
100%
| dexvert
| SHell self-extracting ARchive (archive/shar)
| magic
| Supported |
100%
| dexvert
| Internet Message Format (text/imf)
| magic
| Supported |
1%
| dexvert
| Text File (text/txt)
| fallback
| Supported |
100%
| file
| news or mail, ASCII text
| default
| |
100%
| checkBytes
| Printable ASCII
| default
| |
100%
| perlTextCheck
| Likely Text (Perl)
| default
| |
100%
| siegfried
| fmt/329 Shell Archive Format
| default
| |
100%
| detectItEasy
| Format: plain text[LF]
| default (weak)
| |
100%
| xdgMime
| message/rfc822
| default
|
|
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 53 75 62 6a 65 63 74 3a | 20 20 76 31 36 69 30 36 |Subject:| v16i06|
|00000010| 37 3a 20 20 53 70 69 66 | 66 2c 20 66 69 6e 64 20 |7: Spif|f, find |
|00000020| 61 70 70 72 6f 78 69 6d | 61 74 65 20 64 69 66 66 |approxim|ate diff|
|00000030| 65 72 65 6e 63 65 73 20 | 69 6e 20 66 69 6c 65 73 |erences |in files|
|00000040| 2c 20 50 61 72 74 30 31 | 2f 30 34 0a 4e 65 77 73 |, Part01|/04.News|
|00000050| 67 72 6f 75 70 73 3a 20 | 63 6f 6d 70 2e 73 6f 75 |groups: |comp.sou|
|00000060| 72 63 65 73 2e 75 6e 69 | 78 0a 53 65 6e 64 65 72 |rces.uni|x.Sender|
|00000070| 3a 20 73 6f 75 72 63 65 | 73 0a 41 70 70 72 6f 76 |: source|s.Approv|
|00000080| 65 64 3a 20 72 73 61 6c | 7a 40 75 75 6e 65 74 2e |ed: rsal|z@uunet.|
|00000090| 55 55 2e 4e 45 54 0a 0a | 53 75 62 6d 69 74 74 65 |UU.NET..|Submitte|
|000000a0| 64 2d 62 79 3a 20 44 61 | 6e 69 65 6c 20 57 20 4e |d-by: Da|niel W N|
|000000b0| 61 63 68 62 61 72 20 3c | 64 61 6e 69 65 6c 40 77 |achbar <|daniel@w|
|000000c0| 69 6e 64 2e 62 65 6c 6c | 63 6f 72 65 2e 63 6f 6d |ind.bell|core.com|
|000000d0| 3e 0a 50 6f 73 74 69 6e | 67 2d 6e 75 6d 62 65 72 |>.Postin|g-number|
|000000e0| 3a 20 56 6f 6c 75 6d 65 | 20 31 36 2c 20 49 73 73 |: Volume| 16, Iss|
|000000f0| 75 65 20 36 37 0a 41 72 | 63 68 69 76 65 2d 6e 61 |ue 67.Ar|chive-na|
|00000100| 6d 65 3a 20 73 70 69 66 | 66 2f 70 61 72 74 30 31 |me: spif|f/part01|
|00000110| 0a 0a 5b 20 20 54 68 69 | 73 20 69 73 20 74 68 65 |..[ Thi|s is the|
|00000120| 20 70 72 6f 67 72 61 6d | 20 44 61 6e 20 70 72 65 | program| Dan pre|
|00000130| 73 65 6e 74 65 64 20 61 | 74 20 68 69 73 20 5c 66 |sented a|t his \f|
|00000140| 49 65 78 63 65 6c 6c 65 | 6e 74 5c 66 50 20 74 61 |Iexcelle|nt\fP ta|
|00000150| 6c 6b 20 61 74 0a 20 20 | 20 53 46 20 55 73 65 6e |lk at. | SF Usen|
|00000160| 69 78 2e 20 20 46 6f 72 | 20 74 68 6f 73 65 20 77 |ix. For| those w|
|00000170| 68 6f 20 77 65 72 65 6e | 27 74 20 74 68 65 72 65 |ho weren|'t there|
|00000180| 2c 20 79 65 73 2c 20 53 | 70 69 66 66 20 69 73 20 |, yes, S|piff is |
|00000190| 6e 61 6d 65 64 20 61 66 | 74 65 72 0a 20 20 20 74 |named af|ter. t|
|000001a0| 68 65 20 63 6f 6d 69 63 | 20 73 74 72 69 70 20 63 |he comic| strip c|
|000001b0| 68 61 72 61 63 74 65 72 | 20 69 6e 20 43 61 6c 76 |haracter| in Calv|
|000001c0| 69 6e 20 61 6e 64 20 48 | 6f 62 62 65 73 2e 20 20 |in and H|obbes. |
|000001d0| 54 68 65 20 22 4d 47 52 | 22 20 77 69 6e 64 6f 77 |The "MGR|" window|
|000001e0| 0a 20 20 20 73 79 73 74 | 65 6d 20 6d 65 6e 74 69 |. syst|em menti|
|000001f0| 6f 6e 65 64 20 69 6e 20 | 74 68 65 20 52 45 41 44 |oned in |the READ|
|00000200| 4d 45 20 77 69 6c 6c 20 | 62 65 20 61 70 70 65 61 |ME will |be appea|
|00000210| 72 69 6e 67 20 68 65 72 | 65 20 73 68 6f 72 74 6c |ring her|e shortl|
|00000220| 79 2e 20 20 49 0a 20 20 | 20 72 65 70 61 63 6b 65 |y. I. | repacke|
|00000230| 64 20 74 68 69 73 20 73 | 75 62 6d 69 73 73 69 6f |d this s|ubmissio|
|00000240| 6e 2e 20 20 2d 2d 72 24 | 20 20 5d 0a 0a 54 68 65 |n. --r$| ]..The|
|00000250| 20 77 65 6c 6c 20 6b 6e | 6f 77 6e 20 70 72 6f 67 | well kn|own prog|
|00000260| 72 61 6d 20 64 69 66 66 | 20 69 73 20 69 6e 61 70 |ram diff| is inap|
|00000270| 70 72 6f 70 72 69 61 74 | 65 20 66 6f 72 20 73 6f |propriat|e for so|
|00000280| 6d 65 20 63 6f 6d 6d 6f | 6e 20 74 61 73 6b 73 20 |me commo|n tasks |
|00000290| 73 75 63 68 20 61 73 0a | 63 6f 6d 70 61 72 69 6e |such as.|comparin|
|000002a0| 67 20 74 68 65 20 6f 75 | 74 70 75 74 20 6f 66 20 |g the ou|tput of |
|000002b0| 66 6c 6f 61 74 69 6e 67 | 20 70 6f 69 6e 74 20 63 |floating| point c|
|000002c0| 61 6c 63 75 6c 61 74 69 | 6f 6e 73 20 77 68 65 72 |alculati|ons wher|
|000002d0| 65 20 72 6f 75 6e 64 6f | 66 66 20 65 72 72 6f 72 |e roundo|ff error|
|000002e0| 73 0a 6c 65 61 64 20 64 | 69 66 66 20 61 73 74 72 |s.lead d|iff astr|
|000002f0| 61 79 20 61 6e 64 20 63 | 6f 6d 70 61 72 69 6e 67 |ay and c|omparing|
|00000300| 20 70 72 6f 67 72 61 6d | 20 73 6f 75 72 63 65 20 | program| source |
|00000310| 63 6f 64 65 20 77 68 65 | 72 65 20 73 6f 6d 65 20 |code whe|re some |
|00000320| 64 69 66 66 65 72 65 6e | 63 65 73 0a 69 6e 20 74 |differen|ces.in t|
|00000330| 68 65 20 74 65 78 74 20 | 28 73 75 63 68 20 61 73 |he text |(such as|
|00000340| 20 77 68 69 74 65 20 73 | 70 61 63 65 20 61 6e 64 | white s|pace and|
|00000350| 20 63 6f 6d 6d 65 6e 74 | 73 29 20 68 61 76 65 20 | comment|s) have |
|00000360| 6e 6f 20 65 66 66 65 63 | 74 20 6f 6e 20 74 68 65 |no effec|t on the|
|00000370| 0a 6f 70 65 72 61 74 69 | 6f 6e 20 6f 66 20 74 68 |.operati|on of th|
|00000380| 65 20 63 6f 6d 70 69 6c | 65 64 20 63 6f 64 65 2e |e compil|ed code.|
|00000390| 20 41 20 6e 65 77 20 70 | 72 6f 67 72 61 6d 2c 20 | A new p|rogram, |
|000003a0| 6e 61 6d 65 64 20 73 70 | 69 66 66 2c 20 61 64 64 |named sp|iff, add|
|000003b0| 72 65 73 73 65 73 0a 74 | 68 65 73 65 20 61 6e 64 |resses.t|hese and|
|000003c0| 20 6f 74 68 65 72 20 73 | 69 6d 69 6c 61 72 20 63 | other s|imilar c|
|000003d0| 61 73 65 73 20 62 79 20 | 6c 65 78 69 63 61 6c 20 |ases by |lexical |
|000003e0| 70 61 72 73 69 6e 67 20 | 6f 66 20 74 68 65 20 69 |parsing |of the i|
|000003f0| 6e 70 75 74 20 66 69 6c | 65 73 20 61 6e 64 0a 74 |nput fil|es and.t|
|00000400| 68 65 6e 20 61 70 70 6c | 79 69 6e 67 20 61 20 64 |hen appl|ying a d|
|00000410| 69 66 66 65 72 65 6e 63 | 69 6e 67 20 61 6c 67 6f |ifferenc|ing algo|
|00000420| 72 69 74 68 6d 20 74 6f | 20 74 68 65 20 74 6f 6b |rithm to| the tok|
|00000430| 65 6e 20 73 65 71 75 65 | 6e 63 65 73 2e 20 53 70 |en seque|nces. Sp|
|00000440| 69 66 66 0a 69 67 6e 6f | 72 65 73 20 64 69 66 66 |iff.igno|res diff|
|00000450| 65 72 65 6e 63 65 73 20 | 62 65 74 77 65 65 6e 20 |erences |between |
|00000460| 66 6c 6f 61 74 69 6e 67 | 20 70 6f 69 6e 74 20 6e |floating| point n|
|00000470| 75 6d 62 65 72 73 20 74 | 68 61 74 20 61 72 65 20 |umbers t|hat are |
|00000480| 62 65 6c 6f 77 20 61 20 | 75 73 65 72 0a 73 65 74 |below a |user.set|
|00000490| 74 61 62 6c 65 20 74 6f | 6c 65 72 61 6e 63 65 2e |table to|lerance.|
|000004a0| 20 20 4f 74 68 65 72 20 | 66 65 61 74 75 72 65 73 | Other |features|
|000004b0| 20 69 6e 63 6c 75 64 65 | 20 75 73 65 72 20 73 65 | include| user se|
|000004c0| 74 74 61 62 6c 65 20 63 | 6f 6d 6d 65 6e 74 69 6e |ttable c|ommentin|
|000004d0| 67 20 61 6e 64 0a 6c 69 | 74 65 72 61 6c 20 73 74 |g and.li|teral st|
|000004e0| 72 69 6e 67 20 63 6f 6e | 76 65 6e 74 69 6f 6e 73 |ring con|ventions|
|000004f0| 20 61 6e 64 20 61 20 63 | 68 6f 69 63 65 20 6f 66 | and a c|hoice of|
|00000500| 20 64 69 66 66 65 72 65 | 6e 63 69 6e 67 20 61 6c | differe|ncing al|
|00000510| 67 6f 72 69 74 68 6d 2e | 20 54 68 65 72 65 0a 69 |gorithm.| There.i|
|00000520| 73 20 61 6c 73 6f 20 61 | 6e 20 69 6e 74 65 72 61 |s also a|n intera|
|00000530| 63 74 69 76 65 20 6d 6f | 64 65 20 77 68 65 72 65 |ctive mo|de where|
|00000540| 69 6e 20 74 68 65 20 69 | 6e 70 75 74 20 74 65 78 |in the i|nput tex|
|00000550| 74 73 20 61 72 65 20 64 | 69 73 70 6c 61 79 65 64 |ts are d|isplayed|
|00000560| 20 77 69 74 68 0a 64 69 | 66 66 65 72 65 6e 63 65 | with.di|fference|
|00000570| 73 20 68 69 67 68 6c 69 | 67 68 74 65 64 2e 20 54 |s highli|ghted. T|
|00000580| 68 65 20 75 73 65 72 20 | 63 61 6e 20 63 68 61 6e |he user |can chan|
|00000590| 67 65 20 6e 75 6d 65 72 | 69 63 20 74 6f 6c 65 72 |ge numer|ic toler|
|000005a0| 61 6e 63 65 73 20 22 6f | 6e 20 74 68 65 0a 66 6c |ances "o|n the.fl|
|000005b0| 79 22 20 61 6e 64 20 73 | 70 69 66 66 20 77 69 6c |y" and s|piff wil|
|000005c0| 6c 20 61 64 6a 75 73 74 | 20 74 68 65 20 68 69 67 |l adjust| the hig|
|000005d0| 68 6c 69 67 68 74 69 6e | 67 20 61 63 63 6f 72 64 |hlightin|g accord|
|000005e0| 69 6e 67 6c 79 2e 0a 0a | 23 21 20 2f 62 69 6e 2f |ingly...|#! /bin/|
|000005f0| 73 68 0a 23 20 54 68 69 | 73 20 69 73 20 61 20 73 |sh.# Thi|s is a s|
|00000600| 68 65 6c 6c 20 61 72 63 | 68 69 76 65 2e 20 20 52 |hell arc|hive. R|
|00000610| 65 6d 6f 76 65 20 61 6e | 79 74 68 69 6e 67 20 62 |emove an|ything b|
|00000620| 65 66 6f 72 65 20 74 68 | 69 73 20 6c 69 6e 65 2c |efore th|is line,|
|00000630| 20 74 68 65 6e 20 75 6e | 70 61 63 6b 0a 23 20 69 | then un|pack.# i|
|00000640| 74 20 62 79 20 73 61 76 | 69 6e 67 20 69 74 20 69 |t by sav|ing it i|
|00000650| 6e 74 6f 20 61 20 66 69 | 6c 65 20 61 6e 64 20 74 |nto a fi|le and t|
|00000660| 79 70 69 6e 67 20 22 73 | 68 20 66 69 6c 65 22 2e |yping "s|h file".|
|00000670| 20 20 54 6f 20 6f 76 65 | 72 77 72 69 74 65 20 65 | To ove|rwrite e|
|00000680| 78 69 73 74 69 6e 67 0a | 23 20 66 69 6c 65 73 2c |xisting.|# files,|
|00000690| 20 74 79 70 65 20 22 73 | 68 20 66 69 6c 65 20 2d | type "s|h file -|
|000006a0| 63 22 2e 20 20 59 6f 75 | 20 63 61 6e 20 61 6c 73 |c". You| can als|
|000006b0| 6f 20 66 65 65 64 20 74 | 68 69 73 20 61 73 20 73 |o feed t|his as s|
|000006c0| 74 61 6e 64 61 72 64 20 | 69 6e 70 75 74 20 76 69 |tandard |input vi|
|000006d0| 61 0a 23 20 75 6e 73 68 | 61 72 2c 20 6f 72 20 62 |a.# unsh|ar, or b|
|000006e0| 79 20 74 79 70 69 6e 67 | 20 22 73 68 20 3c 66 69 |y typing| "sh <fi|
|000006f0| 6c 65 22 2c 20 65 2e 67 | 2e 2e 20 20 49 66 20 74 |le", e.g|.. If t|
|00000700| 68 69 73 20 61 72 63 68 | 69 76 65 20 69 73 20 63 |his arch|ive is c|
|00000710| 6f 6d 70 6c 65 74 65 2c | 20 79 6f 75 0a 23 20 77 |omplete,| you.# w|
|00000720| 69 6c 6c 20 73 65 65 20 | 74 68 65 20 66 6f 6c 6c |ill see |the foll|
|00000730| 6f 77 69 6e 67 20 6d 65 | 73 73 61 67 65 20 61 74 |owing me|ssage at|
|00000740| 20 74 68 65 20 65 6e 64 | 3a 0a 23 09 09 22 45 6e | the end|:.#.."En|
|00000750| 64 20 6f 66 20 61 72 63 | 68 69 76 65 20 31 20 28 |d of arc|hive 1 (|
|00000760| 6f 66 20 34 29 2e 22 0a | 23 20 43 6f 6e 74 65 6e |of 4).".|# Conten|
|00000770| 74 73 3a 20 20 4d 41 4e | 49 46 45 53 54 20 52 45 |ts: MAN|IFEST RE|
|00000780| 41 44 4d 45 20 53 61 6d | 70 6c 65 2e 31 20 53 61 |ADME Sam|ple.1 Sa|
|00000790| 6d 70 6c 65 2e 32 20 53 | 61 6d 70 6c 65 2e 33 20 |mple.2 S|ample.3 |
|000007a0| 53 61 6d 70 6c 65 2e 34 | 0a 23 20 20 20 63 6f 6d |Sample.4|.# com|
|000007b0| 6d 61 6e 64 2e 63 20 63 | 6f 6d 6d 61 6e 64 2e 68 |mand.c c|ommand.h|
|000007c0| 20 63 6f 6d 6d 65 6e 74 | 2e 68 20 63 6f 6d 70 61 | comment|.h compa|
|000007d0| 72 65 2e 68 20 65 64 69 | 74 2e 68 20 65 78 61 63 |re.h edi|t.h exac|
|000007e0| 74 2e 63 20 65 78 61 63 | 74 2e 68 0a 23 20 20 20 |t.c exac|t.h.# |
|000007f0| 66 6c 61 67 64 65 66 73 | 2e 68 20 66 6c 6f 61 74 |flagdefs|.h float|
|00000800| 2e 68 20 66 6c 6f 61 74 | 72 65 70 2e 63 20 66 6c |.h float|rep.c fl|
|00000810| 6f 61 74 72 65 70 2e 68 | 20 6d 69 6c 6c 65 72 2e |oatrep.h| miller.|
|00000820| 63 20 6d 69 6c 6c 65 72 | 2e 68 20 6d 69 73 63 2e |c miller|.h misc.|
|00000830| 63 0a 23 20 20 20 6d 69 | 73 63 2e 68 20 6f 75 74 |c.# mi|sc.h out|
|00000840| 70 75 74 2e 68 20 70 61 | 72 73 65 2e 68 20 73 74 |put.h pa|rse.h st|
|00000850| 72 69 6e 67 73 2e 63 20 | 73 74 72 69 6e 67 73 2e |rings.c |strings.|
|00000860| 68 20 74 6f 6b 65 6e 2e | 63 20 74 6f 6b 65 6e 2e |h token.|c token.|
|00000870| 68 20 74 6f 6c 2e 68 0a | 23 20 20 20 76 69 73 75 |h tol.h.|# visu|
|00000880| 61 6c 2e 68 0a 23 20 57 | 72 61 70 70 65 64 20 62 |al.h.# W|rapped b|
|00000890| 79 20 72 73 61 6c 7a 40 | 70 61 70 61 79 61 2e 62 |y rsalz@|papaya.b|
|000008a0| 62 6e 2e 63 6f 6d 20 6f | 6e 20 46 72 69 20 4e 6f |bn.com o|n Fri No|
|000008b0| 76 20 31 31 20 31 33 3a | 31 32 3a 32 32 20 31 39 |v 11 13:|12:22 19|
|000008c0| 38 38 0a 50 41 54 48 3d | 2f 62 69 6e 3a 2f 75 73 |88.PATH=|/bin:/us|
|000008d0| 72 2f 62 69 6e 3a 2f 75 | 73 72 2f 75 63 62 20 3b |r/bin:/u|sr/ucb ;|
|000008e0| 20 65 78 70 6f 72 74 20 | 50 41 54 48 0a 69 66 20 | export |PATH.if |
|000008f0| 74 65 73 74 20 2d 66 20 | 27 4d 41 4e 49 46 45 53 |test -f |'MANIFES|
|00000900| 54 27 20 2d 61 20 22 24 | 7b 31 7d 22 20 21 3d 20 |T' -a "$|{1}" != |
|00000910| 22 2d 63 22 20 3b 20 74 | 68 65 6e 20 0a 20 20 65 |"-c" ; t|hen . e|
|00000920| 63 68 6f 20 73 68 61 72 | 3a 20 57 69 6c 6c 20 6e |cho shar|: Will n|
|00000930| 6f 74 20 63 6c 6f 62 62 | 65 72 20 65 78 69 73 74 |ot clobb|er exist|
|00000940| 69 6e 67 20 66 69 6c 65 | 20 5c 22 27 4d 41 4e 49 |ing file| \"'MANI|
|00000950| 46 45 53 54 27 5c 22 0a | 65 6c 73 65 0a 65 63 68 |FEST'\".|else.ech|
|00000960| 6f 20 73 68 61 72 3a 20 | 45 78 74 72 61 63 74 69 |o shar: |Extracti|
|00000970| 6e 67 20 5c 22 27 4d 41 | 4e 49 46 45 53 54 27 5c |ng \"'MA|NIFEST'\|
|00000980| 22 20 5c 28 31 32 37 20 | 63 68 61 72 61 63 74 65 |" \(127 |characte|
|00000990| 72 73 5c 29 0a 73 65 64 | 20 22 73 2f 5e 58 2f 2f |rs\).sed| "s/^X//|
|000009a0| 22 20 3e 27 4d 41 4e 49 | 46 45 53 54 27 20 3c 3c |" >'MANI|FEST' <<|
|000009b0| 27 45 4e 44 5f 4f 46 5f | 46 49 4c 45 27 0a 58 20 |'END_OF_|FILE'.X |
|000009c0| 20 20 46 69 6c 65 20 4e | 61 6d 65 09 09 41 72 63 | File N|ame..Arc|
|000009d0| 68 69 76 65 20 23 09 44 | 65 73 63 72 69 70 74 69 |hive #.D|escripti|
|000009e0| 6f 6e 0a 58 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |on.X----|--------|
|000009f0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00000a00| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00000a10| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 0a |--------|-------.|
|00000a20| 58 20 4d 41 4e 49 46 45 | 53 54 20 20 20 20 20 20 |X MANIFE|ST |
|00000a30| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 31 09 0a | | 1..|
|00000a40| 45 4e 44 5f 4f 46 5f 46 | 49 4c 45 0a 69 66 20 74 |END_OF_F|ILE.if t|
|00000a50| 65 73 74 20 31 32 37 20 | 2d 6e 65 20 60 77 63 20 |est 127 |-ne `wc |
|00000a60| 2d 63 20 3c 27 4d 41 4e | 49 46 45 53 54 27 60 3b |-c <'MAN|IFEST'`;|
|00000a70| 20 74 68 65 6e 0a 20 20 | 20 20 65 63 68 6f 20 73 | then. | echo s|
|00000a80| 68 61 72 3a 20 5c 22 27 | 4d 41 4e 49 46 45 53 54 |har: \"'|MANIFEST|
|00000a90| 27 5c 22 20 75 6e 70 61 | 63 6b 65 64 20 77 69 74 |'\" unpa|cked wit|
|00000aa0| 68 20 77 72 6f 6e 67 20 | 73 69 7a 65 21 0a 66 69 |h wrong |size!.fi|
|00000ab0| 0a 23 20 65 6e 64 20 6f | 66 20 27 4d 41 4e 49 46 |.# end o|f 'MANIF|
|00000ac0| 45 53 54 27 0a 66 69 0a | 69 66 20 74 65 73 74 20 |EST'.fi.|if test |
|00000ad0| 2d 66 20 27 52 45 41 44 | 4d 45 27 20 2d 61 20 22 |-f 'READ|ME' -a "|
|00000ae0| 24 7b 31 7d 22 20 21 3d | 20 22 2d 63 22 20 3b 20 |${1}" !=| "-c" ; |
|00000af0| 74 68 65 6e 20 0a 20 20 | 65 63 68 6f 20 73 68 61 |then . |echo sha|
|00000b00| 72 3a 20 57 69 6c 6c 20 | 6e 6f 74 20 63 6c 6f 62 |r: Will |not clob|
|00000b10| 62 65 72 20 65 78 69 73 | 74 69 6e 67 20 66 69 6c |ber exis|ting fil|
|00000b20| 65 20 5c 22 27 52 45 41 | 44 4d 45 27 5c 22 0a 65 |e \"'REA|DME'\".e|
|00000b30| 6c 73 65 0a 65 63 68 6f | 20 73 68 61 72 3a 20 45 |lse.echo| shar: E|
|00000b40| 78 74 72 61 63 74 69 6e | 67 20 5c 22 27 52 45 41 |xtractin|g \"'REA|
|00000b50| 44 4d 45 27 5c 22 20 5c | 28 39 37 30 32 20 63 68 |DME'\" \|(9702 ch|
|00000b60| 61 72 61 63 74 65 72 73 | 5c 29 0a 73 65 64 20 22 |aracters|\).sed "|
|00000b70| 73 2f 5e 58 2f 2f 22 20 | 3e 27 52 45 41 44 4d 45 |s/^X//" |>'README|
|00000b80| 27 20 3c 3c 27 45 4e 44 | 5f 4f 46 5f 46 49 4c 45 |' <<'END|_OF_FILE|
|00000b90| 27 0a 58 49 4e 53 54 41 | 4c 4c 41 54 49 4f 4e 0a |'.XINSTA|LLATION.|
|00000ba0| 58 09 31 29 20 43 68 61 | 6e 67 65 20 6d 61 6b 65 |X.1) Cha|nge make|
|00000bb0| 66 69 6c 65 20 73 65 74 | 74 69 6e 67 73 20 74 6f |file set|tings to|
|00000bc0| 20 72 65 66 6c 65 63 74 | 0a 58 09 09 41 54 54 20 | reflect|.X..ATT |
|00000bd0| 76 73 2e 20 42 53 44 20 | 73 6f 66 74 77 61 72 65 |vs. BSD |software|
|00000be0| 0a 58 09 09 74 65 72 6d | 69 6f 20 76 73 2e 20 74 |.X..term|io vs. t|
|00000bf0| 65 72 6d 63 61 70 0a 58 | 09 09 4d 47 52 20 76 73 |ermcap.X|..MGR vs|
|00000c00| 2e 20 6e 6f 20 4d 47 52 | 09 09 28 4d 47 52 20 69 |. no MGR|..(MGR i|
|00000c10| 73 20 61 20 42 45 4c 4c | 43 4f 52 45 20 70 72 6f |s a BELL|CORE pro|
|00000c20| 64 75 63 65 64 0a 58 09 | 09 09 09 09 20 77 69 6e |duced.X.|.... win|
|00000c30| 64 6f 77 20 6d 61 6e 61 | 67 65 72 20 74 68 61 74 |dow mana|ger that|
|00000c40| 20 69 73 20 61 6c 73 6f | 20 61 76 61 69 6c 61 62 | is also| availab|
|00000c50| 6c 65 0a 58 09 09 09 09 | 09 20 66 72 65 65 20 74 |le.X....|. free t|
|00000c60| 6f 20 74 68 65 20 70 75 | 62 6c 69 63 2e 29 0a 58 |o the pu|blic.).X|
|00000c70| 09 32 29 20 54 68 65 6e | 2c 20 6a 75 73 74 20 73 |.2) Then|, just s|
|00000c80| 61 79 20 22 6d 61 6b 65 | 22 2e 0a 58 09 09 49 66 |ay "make|"..X..If|
|00000c90| 20 79 6f 75 20 77 61 6e | 74 20 74 6f 20 22 6d 61 | you wan|t to "ma|
|00000ca0| 6b 65 20 69 6e 73 74 61 | 6c 6c 22 2c 20 79 6f 75 |ke insta|ll", you|
|00000cb0| 20 73 68 6f 75 6c 64 20 | 66 69 72 73 74 0a 58 09 | should |first.X.|
|00000cc0| 09 63 68 61 6e 67 65 20 | 64 65 66 69 6e 69 74 69 |.change |definiti|
|00000cd0| 6f 6e 20 6f 66 20 49 4e | 53 44 49 52 20 69 6e 20 |on of IN|SDIR in |
|00000ce0| 74 68 65 20 6d 61 6b 65 | 66 69 6c 65 0a 58 0a 58 |the make|file.X.X|
|00000cf0| 09 33 29 20 74 6f 20 74 | 65 73 74 20 74 68 65 20 |.3) to t|est the |
|00000d00| 73 6f 66 74 77 61 72 65 | 20 73 61 79 0a 58 0a 58 |software| say.X.X|
|00000d10| 09 09 09 73 70 69 66 66 | 20 53 61 6d 70 6c 65 2e |...spiff| Sample.|
|00000d20| 31 20 53 61 6d 70 6c 65 | 2e 32 0a 58 0a 58 09 09 |1 Sample|.2.X.X..|
|00000d30| 73 70 69 66 66 20 73 68 | 6f 75 6c 64 20 66 69 6e |spiff sh|ould fin|
|00000d40| 64 20 34 20 64 69 66 66 | 65 72 65 6e 63 65 73 20 |d 4 diff|erences |
|00000d50| 61 6e 64 0a 58 09 09 79 | 6f 75 20 73 68 6f 75 6c |and.X..y|ou shoul|
|00000d60| 64 20 73 65 65 20 74 68 | 65 20 77 6f 72 64 73 20 |d see th|e words |
|00000d70| 22 61 64 64 65 64 22 2c | 20 22 64 65 6c 65 74 65 |"added",| "delete|
|00000d80| 64 22 2c 20 22 63 68 61 | 6e 67 65 64 22 2c 0a 58 |d", "cha|nged",.X|
|00000d90| 09 09 61 6e 64 20 22 61 | 6c 74 65 72 65 64 22 20 |..and "a|ltered" |
|00000da0| 61 73 20 77 65 6c 6c 20 | 61 73 20 66 6f 75 72 20 |as well |as four |
|00000db0| 6e 75 6d 62 65 72 20 69 | 6e 20 73 74 61 6e 64 2d |number i|n stand-|
|00000dc0| 6f 75 74 20 6d 6f 64 65 | 2e 0a 58 0a 58 09 09 09 |out mode|..X.X...|
|00000dd0| 73 70 69 66 66 20 53 61 | 6d 70 6c 65 2e 31 20 53 |spiff Sa|mple.1 S|
|00000de0| 61 6d 70 6c 65 2e 32 20 | 7c 20 63 61 74 0a 58 0a |ample.2 || cat.X.|
|00000df0| 58 09 09 73 68 6f 75 6c | 64 20 70 72 6f 64 75 63 |X..shoul|d produc|
|00000e00| 65 20 74 68 65 20 73 61 | 6d 65 20 6f 75 74 70 75 |e the sa|me outpu|
|00000e10| 74 2c 20 6f 6e 6c 79 20 | 74 68 65 20 64 69 66 66 |t, only |the diff|
|00000e20| 65 72 65 6e 63 65 73 0a | 58 09 09 73 68 6f 75 6c |erences.|X..shoul|
|00000e30| 64 20 62 65 20 75 6e 64 | 65 72 6c 69 6e 65 64 20 |d be und|erlined |
|00000e40| 48 6f 77 65 76 65 72 2c | 20 6f 6e 20 6d 61 6e 79 |However,| on many|
|00000e50| 20 74 65 72 6d 69 6e 61 | 6c 73 20 74 68 65 20 75 | termina|ls the u|
|00000e60| 6e 64 65 72 6c 69 6e 69 | 6e 67 0a 58 09 09 64 6f |nderlini|ng.X..do|
|00000e70| 65 73 20 6e 6f 74 20 61 | 70 70 65 61 72 2e 20 53 |es not a|ppear. S|
|00000e80| 6f 20 74 72 79 20 74 68 | 65 20 63 6f 6d 6d 61 6e |o try th|e comman|
|00000e90| 64 0a 58 0a 58 09 09 09 | 73 70 69 66 66 20 53 61 |d.X.X...|spiff Sa|
|00000ea0| 6d 70 6c 65 2e 31 20 53 | 61 6d 70 6c 65 2e 32 20 |mple.1 S|ample.2 |
|00000eb0| 7c 20 63 61 74 20 2d 76 | 0a 58 0a 58 09 09 6f 72 || cat -v|.X.X..or|
|00000ec0| 20 77 68 61 74 65 76 65 | 72 20 74 68 65 20 65 71 | whateve|r the eq|
|00000ed0| 75 69 76 61 6c 65 6e 74 | 20 74 6f 20 63 61 74 20 |uivalent| to cat |
|00000ee0| 2d 76 20 69 73 20 6f 6e | 20 79 6f 75 72 20 73 79 |-v is on| your sy|
|00000ef0| 73 74 65 6d 2e 0a 58 0a | 58 09 09 41 20 6d 6f 72 |stem..X.|X..A mor|
|00000f00| 65 20 63 6f 6d 70 6c 69 | 63 61 74 65 64 20 74 65 |e compli|cated te|
|00000f10| 73 74 20 73 65 74 20 69 | 73 20 66 6f 75 6e 64 20 |st set i|s found |
|00000f20| 69 6e 20 53 61 6d 70 6c | 65 2e 33 20 61 6e 64 20 |in Sampl|e.3 and |
|00000f30| 53 61 6d 70 6c 65 2e 34 | 0a 58 09 09 54 68 65 73 |Sample.4|.X..Thes|
|00000f40| 65 20 66 69 6c 65 73 20 | 73 68 6f 77 20 68 6f 77 |e files |show how|
|00000f50| 20 74 6f 20 75 73 65 20 | 65 6d 62 65 64 64 65 64 | to use |embedded|
|00000f60| 20 63 6f 6d 6d 61 6e 64 | 73 20 74 6f 20 64 6f 20 | command|s to do |
|00000f70| 74 68 69 6e 67 73 0a 58 | 09 09 6c 69 6b 65 20 63 |things.X|..like c|
|00000f80| 68 61 6e 67 65 20 74 68 | 65 20 63 6f 6d 6d 65 6e |hange th|e commen|
|00000f90| 74 69 6e 67 20 63 6f 6e | 76 65 6e 74 69 6f 6e 20 |ting con|vention |
|00000fa0| 61 6e 64 20 74 6f 6c 65 | 72 61 6e 63 65 73 20 6f |and tole|rances o|
|00000fb0| 6e 20 74 68 65 0a 58 09 | 09 66 6c 79 2e 20 20 42 |n the.X.|.fly. B|
|00000fc0| 65 20 73 75 72 65 20 74 | 6f 20 72 75 6e 20 74 68 |e sure t|o run th|
|00000fd0| 65 20 63 6f 6d 6d 61 6e | 64 20 77 69 74 68 20 74 |e comman|d with t|
|00000fe0| 68 65 20 2d 73 20 6f 70 | 74 69 6f 6e 20 74 6f 20 |he -s op|tion to |
|00000ff0| 73 70 69 66 66 3a 0a 58 | 0a 58 09 09 09 73 70 69 |spiff:.X|.X...spi|
|00001000| 66 66 20 2d 73 20 27 63 | 6f 6d 6d 61 6e 64 20 73 |ff -s 'c|ommand s|
|00001010| 70 69 66 66 77 6f 72 64 | 27 20 53 61 6d 70 6c 65 |piffword|' Sample|
|00001020| 2e 33 20 53 61 6d 70 6c | 65 2e 34 0a 58 0a 58 09 |.3 Sampl|e.4.X.X.|
|00001030| 09 54 68 65 73 65 20 66 | 69 6c 65 73 20 62 79 20 |.These f|iles by |
|00001040| 6e 6f 20 6d 65 61 6e 73 | 20 70 72 6f 76 69 64 65 |no means| provide|
|00001050| 20 61 6e 20 65 78 68 61 | 75 73 74 69 76 65 20 74 | an exha|ustive t|
|00001060| 65 73 74 20 6f 66 0a 58 | 09 09 73 70 69 66 66 27 |est of.X|..spiff'|
|00001070| 73 20 66 65 61 74 75 72 | 65 73 2e 20 42 75 74 20 |s featur|es. But |
|00001080| 74 68 65 79 20 73 68 6f | 75 6c 64 20 67 69 76 65 |they sho|uld give|
|00001090| 20 79 6f 75 20 73 6f 6d | 65 20 69 64 65 61 20 69 | you som|e idea i|
|000010a0| 66 20 74 68 69 6e 67 73 | 0a 58 09 09 61 72 65 20 |f things|.X..are |
|000010b0| 77 6f 72 6b 69 6e 67 20 | 72 69 67 68 74 2e 0a 58 |working |right..X|
|000010c0| 0a 58 09 54 68 69 73 20 | 63 6f 64 65 20 28 6f 72 |.X.This |code (or|
|000010d0| 20 69 74 27 73 20 63 6c | 6f 73 65 6c 79 20 72 65 | it's cl|osely re|
|000010e0| 6c 61 74 65 64 20 63 6f | 75 73 69 6e 73 29 20 68 |lated co|usins) h|
|000010f0| 61 73 20 62 65 65 6e 20 | 72 75 6e 20 6f 6e 0a 58 |as been |run on.X|
|00001100| 09 56 61 78 65 6e 20 72 | 75 6e 6e 69 6e 67 20 34 |.Vaxen r|unning 4|
|00001110| 2e 33 42 53 44 2c 20 61 | 20 43 43 49 20 50 6f 77 |.3BSD, a| CCI Pow|
|00001120| 65 72 20 36 2c 20 73 6f | 6d 65 20 58 45 4e 49 58 |er 6, so|me XENIX|
|00001130| 20 6d 61 63 68 69 6e 65 | 73 2c 20 61 6e 64 20 73 | machine|s, and s|
|00001140| 6f 6d 65 0a 58 09 6f 74 | 68 65 72 20 6d 61 63 68 |ome.X.ot|her mach|
|00001150| 69 6e 65 73 20 72 75 6e | 6e 69 6e 67 20 53 79 73 |ines run|ning Sys|
|00001160| 74 65 6d 20 56 20 64 65 | 72 69 76 61 74 69 76 65 |tem V de|rivative|
|00001170| 73 20 61 73 20 77 65 6c | 6c 20 61 73 0a 58 09 28 |s as wel|l as.X.(|
|00001180| 74 68 61 6e 6b 73 20 74 | 6f 20 65 75 67 65 6e 65 |thanks t|o eugene|
|00001190| 40 61 6d 65 73 2e 61 72 | 70 61 29 20 43 72 61 79 |@ames.ar|pa) Cray|
|000011a0| 2c 20 41 6d 64 61 68 6c | 20 61 6e 64 20 43 6f 6e |, Amdahl| and Con|
|000011b0| 76 65 78 20 6d 61 63 68 | 69 6e 65 73 2e 0a 58 0a |vex mach|ines..X.|
|000011c0| 58 09 34 29 20 53 68 61 | 72 65 20 61 6e 64 20 65 |X.4) Sha|re and e|
|000011d0| 6e 6a 6f 79 2e 0a 58 0a | 58 41 55 54 48 4f 52 27 |njoy..X.|XAUTHOR'|
|000011e0| 53 20 41 44 44 52 45 53 | 53 0a 58 09 50 6c 65 61 |S ADDRES|S.X.Plea|
|000011f0| 73 65 20 73 65 6e 64 20 | 63 6f 6d 70 6c 61 69 6e |se send |complain|
|00001200| 74 73 2c 20 63 6f 6d 6d | 65 6e 74 73 2c 20 70 72 |ts, comm|ents, pr|
|00001210| 61 69 73 65 2c 20 62 75 | 67 20 72 65 70 6f 72 74 |aise, bu|g report|
|00001220| 73 2c 20 65 74 63 20 74 | 6f 0a 58 09 09 44 61 6e |s, etc t|o.X..Dan|
|00001230| 20 4e 61 63 68 62 61 72 | 0a 58 09 09 42 65 6c 6c | Nachbar|.X..Bell|
|00001240| 20 43 6f 6d 6d 75 6e 69 | 63 61 74 69 6f 6e 73 20 | Communi|cations |
|00001250| 52 65 73 65 61 72 63 68 | 20 20 28 61 6c 73 6f 20 |Research| (also |
|00001260| 6b 6e 6f 77 6e 20 61 73 | 20 42 45 4c 4c 43 4f 52 |known as| BELLCOR|
|00001270| 45 29 0a 58 09 09 34 34 | 35 20 53 6f 75 74 68 20 |E).X..44|5 South |
|00001280| 53 74 2e 20 52 6f 6f 6d | 20 32 42 2d 33 38 39 0a |St. Room| 2B-389.|
|00001290| 58 09 09 4d 6f 72 72 69 | 73 74 6f 77 6e 2c 20 4e |X..Morri|stown, N|
|000012a0| 4a 20 30 37 39 36 30 0a | 58 0a 58 09 09 09 6e 61 |J 07960.|X.X...na|
|000012b0| 63 68 62 61 72 40 62 65 | 6c 6c 63 6f 72 65 2e 63 |chbar@be|llcore.c|
|000012c0| 6f 6d 0a 58 09 09 6f 72 | 0a 58 09 09 09 62 65 6c |om.X..or|.X...bel|
|000012d0| 6c 63 6f 72 65 21 6e 61 | 63 68 62 61 72 0a 58 09 |lcore!na|chbar.X.|
|000012e0| 09 6f 72 0a 58 09 09 09 | 28 32 30 31 29 20 38 32 |.or.X...|(201) 82|
|000012f0| 39 2d 34 33 39 32 20 20 | 28 70 72 61 69 73 65 20 |9-4392 |(praise |
|00001300| 6f 6e 6c 79 2c 20 70 6c | 65 61 73 65 29 0a 58 0a |only, pl|ease).X.|
|00001310| 58 4f 56 45 52 56 49 45 | 57 20 4f 46 20 4f 50 45 |XOVERVIE|W OF OPE|
|00001320| 52 41 54 49 4f 4e 0a 58 | 0a 58 45 61 63 68 20 6f |RATION.X|.XEach o|
|00001330| 66 20 74 77 6f 20 69 6e | 70 75 74 20 66 69 6c 65 |f two in|put file|
|00001340| 73 20 69 73 20 72 65 61 | 64 20 61 6e 64 20 73 74 |s is rea|d and st|
|00001350| 6f 72 65 64 20 69 6e 20 | 63 6f 72 65 2e 0a 58 54 |ored in |core..XT|
|00001360| 68 65 6e 20 69 74 20 69 | 73 20 70 61 72 73 65 64 |hen it i|s parsed|
|00001370| 20 69 6e 74 6f 20 61 20 | 73 65 72 69 65 73 20 6f | into a |series o|
|00001380| 66 20 74 6f 6b 65 6e 73 | 20 28 6c 69 74 65 72 61 |f tokens| (litera|
|00001390| 6c 20 73 74 72 69 6e 67 | 73 20 61 6e 64 0a 58 66 |l string|s and.Xf|
|000013a0| 6c 6f 61 74 69 6e 67 20 | 70 6f 69 6e 74 20 6e 75 |loating |point nu|
|000013b0| 6d 62 65 72 73 2c 20 77 | 68 69 74 65 20 73 70 61 |mbers, w|hite spa|
|000013c0| 63 65 20 69 73 20 69 67 | 6e 6f 72 65 64 29 2e 0a |ce is ig|nored)..|
|000013d0| 58 54 68 65 20 74 6f 6b | 65 6e 20 73 65 71 75 65 |XThe tok|en seque|
|000013e0| 6e 63 65 73 20 61 72 65 | 20 73 74 6f 72 65 64 20 |nces are| stored |
|000013f0| 69 6e 20 63 6f 72 65 20 | 61 73 20 77 65 6c 6c 2e |in core |as well.|
|00001400| 0a 58 41 66 74 65 72 20 | 62 6f 74 68 20 66 69 6c |.XAfter |both fil|
|00001410| 65 73 20 68 61 76 65 20 | 62 65 65 6e 20 70 61 72 |es have |been par|
|00001420| 73 65 64 2c 20 61 20 64 | 69 66 66 65 72 65 6e 63 |sed, a d|ifferenc|
|00001430| 69 6e 67 20 61 6c 67 6f | 72 69 74 68 6d 20 69 73 |ing algo|rithm is|
|00001440| 20 61 70 70 6c 69 65 64 | 20 74 6f 0a 58 74 68 65 | applied| to.Xthe|
|00001450| 20 74 6f 6b 65 6e 20 73 | 65 71 75 65 6e 63 65 73 | token s|equences|
|00001460| 2e 20 20 54 68 65 20 64 | 69 66 66 65 72 65 6e 63 |. The d|ifferenc|
|00001470| 69 6e 67 20 61 6c 67 6f | 72 69 74 68 6d 0a 58 70 |ing algo|rithm.Xp|
|00001480| 72 6f 64 75 63 65 73 20 | 61 6e 20 65 64 69 74 20 |roduces |an edit |
|00001490| 73 63 72 69 70 74 2c 20 | 77 68 69 63 68 20 69 73 |script, |which is|
|000014a0| 20 74 68 65 6e 20 70 61 | 73 73 65 64 20 74 6f 20 | then pa|ssed to |
|000014b0| 61 6e 20 6f 75 74 70 75 | 74 20 72 6f 75 74 69 6e |an outpu|t routin|
|000014c0| 65 2e 0a 58 0a 58 53 49 | 5a 45 20 4c 49 4d 49 54 |e..X.XSI|ZE LIMIT|
|000014d0| 53 20 41 4e 44 20 4f 54 | 48 45 52 20 44 45 46 41 |S AND OT|HER DEFA|
|000014e0| 55 4c 54 53 0a 58 09 09 | 66 69 6c 65 20 69 6d 70 |ULTS.X..|file imp|
|000014f0| 6c 65 6d 65 6e 74 69 6e | 67 20 6c 69 6d 69 74 09 |lementin|g limit.|
|00001500| 09 6e 61 6d 65 09 09 64 | 65 66 61 75 6c 74 20 76 |.name..d|efault v|
|00001510| 61 6c 75 65 0a 58 6d 61 | 78 69 6d 75 6d 20 6e 75 |alue.Xma|ximum nu|
|00001520| 6d 62 65 72 20 6f 66 20 | 6c 69 6e 65 73 09 09 6c |mber of |lines..l|
|00001530| 69 6e 65 73 2e 68 09 09 | 5f 4c 5f 4d 41 58 4c 49 |ines.h..|_L_MAXLI|
|00001540| 4e 45 53 09 31 30 30 30 | 30 0a 58 09 70 65 72 20 |NES.1000|0.X.per |
|00001550| 66 69 6c 65 0a 58 6d 61 | 78 69 6d 75 6d 20 6e 75 |file.Xma|ximum nu|
|00001560| 6d 62 65 72 20 6f 66 20 | 74 6f 6b 65 6e 73 09 74 |mber of |tokens.t|
|00001570| 6f 6b 65 6e 2e 68 09 09 | 4b 5f 4d 41 58 54 4f 4b |oken.h..|K_MAXTOK|
|00001580| 45 4e 53 09 35 30 30 30 | 30 0a 58 09 70 65 72 20 |ENS.5000|0.X.per |
|00001590| 66 69 6c 65 0a 58 6d 61 | 78 69 6d 75 6d 20 6c 69 |file.Xma|ximum li|
|000015a0| 6e 65 20 6c 65 6e 67 74 | 68 09 09 6d 69 73 63 2e |ne lengt|h..misc.|
|000015b0| 68 09 09 5a 5f 4c 49 4e | 45 4c 45 4e 09 20 31 30 |h..Z_LIN|ELEN. 10|
|000015c0| 32 34 0a 58 6d 61 78 69 | 6d 75 6d 20 77 6f 72 64 |24.Xmaxi|mum word|
|000015d0| 20 6c 65 6e 67 74 68 09 | 09 6d 69 73 63 2e 68 09 | length.|.misc.h.|
|000015e0| 09 5a 5f 57 4f 52 44 4c | 45 4e 09 20 20 20 32 30 |.Z_WORDL|EN. 20|
|000015f0| 0a 58 20 28 6c 65 6e 67 | 74 68 20 6f 66 20 6d 69 |.X (leng|th of mi|
|00001600| 73 63 20 62 75 66 66 65 | 72 73 20 66 6f 72 0a 58 |sc buffe|rs for.X|
|00001610| 20 74 68 69 6e 67 73 20 | 6c 69 6b 65 20 6c 69 74 | things |like lit|
|00001620| 65 72 61 6c 0a 58 20 64 | 65 6c 69 6d 69 74 65 72 |eral.X d|elimiter|
|00001630| 73 2e 0a 58 20 4e 4f 54 | 20 6c 65 6e 67 74 68 20 |s..X NOT| length |
|00001640| 6f 66 20 74 6f 6b 65 6e | 73 20 77 68 69 63 68 0a |of token|s which.|
|00001650| 58 20 63 61 6e 20 62 65 | 20 76 69 72 74 75 61 6c |X can be| virtual|
|00001660| 6c 79 20 61 6e 79 20 6c | 65 6e 67 74 68 29 0a 58 |ly any l|ength).X|
|00001670| 64 65 66 61 75 6c 74 20 | 61 62 73 6f 6c 75 74 65 |default |absolute|
|00001680| 20 74 6f 6c 65 72 61 6e | 63 65 09 74 6f 6c 2e 68 | toleran|ce.tol.h|
|00001690| 09 09 5f 54 5f 41 44 45 | 46 09 09 20 20 20 22 31 |.._T_ADE|F.. "1|
|000016a0| 65 2d 31 30 22 20 20 20 | 0a 58 64 65 66 61 75 6c |e-10" |.Xdefaul|
|000016b0| 74 20 72 65 6c 61 74 69 | 76 65 20 74 6f 6c 65 72 |t relati|ve toler|
|000016c0| 61 6e 63 65 09 74 6f 6c | 2e 68 09 09 5f 54 5f 52 |ance.tol|.h.._T_R|
|000016d0| 44 45 46 09 09 20 20 20 | 22 31 65 2d 31 30 22 20 |DEF.. |"1e-10" |
|000016e0| 20 0a 58 6d 61 78 69 6d | 75 6d 20 6e 75 6d 62 65 | .Xmaxim|um numbe|
|000016f0| 72 20 6f 66 20 63 6f 6d | 6d 61 6e 64 73 09 63 6f |r of com|mands.co|
|00001700| 6d 6d 61 6e 64 2e 68 09 | 5f 43 5f 43 4d 44 4d 41 |mmand.h.|_C_CMDMA|
|00001710| 58 09 20 20 31 30 30 0a | 58 20 69 6e 20 65 66 66 |X. 100.|X in eff|
|00001720| 65 63 74 20 61 74 20 6f | 6e 65 20 74 69 6d 65 0a |ect at o|ne time.|
|00001730| 58 6d 61 78 69 6d 75 6d | 20 6e 75 6d 62 65 72 20 |Xmaximum| number |
|00001740| 6f 66 20 63 6f 6d 6d 65 | 6e 74 69 6e 67 09 63 6f |of comme|nting.co|
|00001750| 6d 6d 65 6e 74 2e 68 09 | 57 5f 43 4f 4d 4d 41 58 |mment.h.|W_COMMAX|
|00001760| 09 20 20 20 32 30 0a 58 | 20 63 6f 6e 76 65 6e 74 |. 20.X| convent|
|00001770| 69 6f 6e 73 20 74 68 61 | 74 20 63 61 6e 20 62 65 |ions tha|t can be|
|00001780| 0a 58 20 69 6e 20 65 66 | 66 65 63 74 20 61 74 20 |.X in ef|fect at |
|00001790| 6f 6e 65 20 74 69 6d 65 | 0a 58 20 28 6e 6f 74 20 |one time|.X (not |
|000017a0| 69 6e 63 6c 75 64 69 6e | 67 20 63 6f 6d 6d 65 6e |includin|g commen|
|000017b0| 74 69 6e 67 0a 58 20 20 | 63 6f 6e 76 65 6e 74 69 |ting.X |conventi|
|000017c0| 6f 6e 73 20 74 68 61 74 | 20 61 72 65 0a 58 20 20 |ons that| are.X |
|000017d0| 72 65 73 74 72 69 63 74 | 65 64 20 74 6f 20 62 65 |restrict|ed to be|
|000017e0| 67 69 6e 6e 69 6e 67 0a | 58 20 20 6f 66 20 6c 69 |ginning.|X of li|
|000017f0| 6e 65 29 0a 58 6d 61 78 | 69 6d 75 6d 20 6e 75 6d |ne).Xmax|imum num|
|00001800| 62 65 72 20 6f 66 20 63 | 6f 6d 6d 65 6e 74 69 6e |ber of c|ommentin|
|00001810| 67 09 63 6f 6d 6d 65 6e | 74 2e 68 09 57 5f 42 4f |g.commen|t.h.W_BO|
|00001820| 4c 4d 41 58 09 20 20 20 | 32 30 0a 58 20 63 6f 6e |LMAX. |20.X con|
|00001830| 76 65 6e 74 69 6f 6e 73 | 20 74 68 61 74 20 61 72 |ventions| that ar|
|00001840| 65 0a 58 20 72 65 73 74 | 72 69 63 74 65 64 20 74 |e.X rest|ricted t|
|00001850| 6f 20 62 65 67 69 6e 6e | 69 6e 67 20 6f 66 0a 58 |o beginn|ing of.X|
|00001860| 20 6c 69 6e 65 20 74 68 | 61 74 20 61 72 65 20 69 | line th|at are i|
|00001870| 6e 20 65 66 66 65 63 74 | 20 61 74 0a 58 20 6f 6e |n effect| at.X on|
|00001880| 65 20 74 69 6d 65 0a 58 | 6d 61 78 69 6d 75 6d 20 |e time.X|maximum |
|00001890| 6e 75 6d 62 65 72 20 6f | 66 20 6c 69 74 65 72 61 |number o|f litera|
|000018a0| 6c 09 63 6f 6d 6d 65 6e | 74 2e 68 09 57 5f 4c 49 |l.commen|t.h.W_LI|
|000018b0| 54 4d 41 58 09 20 20 20 | 32 30 0a 58 20 73 74 72 |TMAX. |20.X str|
|000018c0| 69 6e 67 20 63 6f 6e 76 | 65 6e 74 69 6f 6e 73 20 |ing conv|entions |
|000018d0| 74 68 61 74 0a 58 20 63 | 61 6e 20 62 65 20 69 6e |that.X c|an be in|
|000018e0| 20 65 66 66 65 63 74 20 | 61 74 20 6f 6e 65 20 74 | effect |at one t|
|000018f0| 69 6d 65 0a 58 6d 61 78 | 69 6d 75 6d 20 6e 75 6d |ime.Xmax|imum num|
|00001900| 62 65 72 20 6f 66 20 74 | 6f 6c 65 72 61 6e 63 65 |ber of t|olerance|
|00001910| 73 09 74 6f 6c 2e 68 09 | 09 5f 54 5f 54 4f 4c 4d |s.tol.h.|._T_TOLM|
|00001920| 41 58 09 20 20 20 31 30 | 0a 58 20 74 68 61 74 20 |AX. 10|.X that |
|00001930| 63 61 6e 20 62 65 20 69 | 6e 20 65 66 66 65 63 74 |can be i|n effect|
|00001940| 20 61 74 20 6f 6e 65 0a | 58 20 74 69 6d 65 0a 58 | at one.|X time.X|
|00001950| 0a 58 0a 58 44 49 46 46 | 45 52 45 4e 43 45 53 20 |.X.XDIFF|ERENCES |
|00001960| 42 45 54 57 45 45 4e 20 | 54 48 45 20 43 55 52 52 |BETWEEN |THE CURR|
|00001970| 45 4e 54 20 56 45 52 53 | 49 4f 4e 20 41 4e 44 20 |ENT VERS|ION AND |
|00001980| 54 48 45 20 45 4e 43 4c | 4f 53 45 44 20 50 41 50 |THE ENCL|OSED PAP|
|00001990| 45 52 0a 58 0a 58 54 68 | 65 20 66 69 6c 65 73 20 |ER.X.XTh|e files |
|000019a0| 70 61 70 65 72 2e 6d 73 | 20 61 6e 64 20 70 61 70 |paper.ms| and pap|
|000019b0| 65 72 2e 6f 75 74 20 63 | 6f 6e 74 61 69 6e 20 74 |er.out c|ontain t|
|000019c0| 68 65 20 6e 72 6f 66 66 | 20 2d 6d 73 20 69 6e 70 |he nroff| -ms inp|
|000019d0| 75 74 20 61 6e 64 0a 58 | 6f 75 74 70 75 74 20 72 |ut and.X|output r|
|000019e0| 65 73 70 65 63 74 69 76 | 65 6c 79 20 6f 66 20 61 |espectiv|ely of a|
|000019f0| 20 70 61 70 65 72 20 6f | 6e 20 73 70 69 66 66 20 | paper o|n spiff |
|00001a00| 74 68 61 74 20 77 61 73 | 20 67 69 76 65 6e 20 74 |that was| given t|
|00001a10| 68 65 20 53 75 6d 6d 65 | 72 20 27 38 38 0a 58 55 |he Summe|r '88.XU|
|00001a20| 53 45 4e 49 58 20 63 6f | 6e 66 65 72 65 6e 63 65 |SENIX co|nference|
|00001a30| 20 69 6e 20 53 61 6e 20 | 46 72 61 6e 63 69 73 63 | in San |Francisc|
|00001a40| 6f 2e 20 20 53 69 6e 63 | 65 20 74 68 61 74 20 74 |o. Sinc|e that t|
|00001a50| 69 6d 65 20 6d 61 6e 79 | 20 63 68 61 6e 67 65 73 |ime many| changes|
|00001a60| 0a 58 68 61 76 65 20 62 | 65 65 6e 20 6d 61 64 65 |.Xhave b|een made|
|00001a70| 20 74 6f 20 74 68 65 20 | 63 6f 64 65 2e 20 20 4d | to the |code. M|
|00001a80| 61 6e 79 20 66 6c 61 67 | 73 20 68 61 76 65 20 63 |any flag|s have c|
|00001a90| 68 61 6e 67 65 64 20 61 | 6e 64 20 73 6f 6d 65 20 |hanged a|nd some |
|00001aa0| 68 61 76 65 0a 58 68 61 | 64 20 74 68 65 69 72 20 |have.Xha|d their |
|00001ab0| 6d 65 61 6e 69 6e 67 73 | 20 72 65 76 65 72 73 65 |meanings| reverse|
|00001ac0| 64 2c 20 73 65 65 20 74 | 68 65 20 65 6e 63 6c 6f |d, see t|he enclo|
|00001ad0| 73 65 64 20 6d 61 6e 20 | 70 61 67 65 20 66 6f 72 |sed man |page for|
|00001ae0| 20 74 68 65 20 63 75 72 | 72 65 6e 74 0a 58 75 73 | the cur|rent.Xus|
|00001af0| 61 67 65 2e 20 20 41 6c | 73 6f 2c 20 74 68 65 72 |age. Al|so, ther|
|00001b00| 65 20 69 73 20 6e 6f 20 | 6c 6f 6e 67 65 72 20 63 |e is no |longer c|
|00001b10| 6f 6e 74 72 6f 6c 20 6f | 76 65 72 20 74 68 65 0a |ontrol o|ver the.|
|00001b20| 58 67 72 61 6e 75 6c 61 | 72 69 74 79 20 6f 66 20 |Xgranula|rity of |
|00001b30| 6f 62 6a 65 63 74 20 75 | 73 65 64 20 77 68 65 6e |object u|sed when|
|00001b40| 20 61 70 70 6c 79 69 6e | 67 20 74 68 65 20 64 69 | applyin|g the di|
|00001b50| 66 66 65 72 65 6e 63 69 | 6e 67 20 61 6c 67 6f 72 |fferenci|ng algor|
|00001b60| 69 74 68 6d 2e 0a 58 54 | 68 65 20 63 75 72 72 65 |ithm..XT|he curre|
|00001b70| 6e 74 20 76 65 72 73 69 | 6f 6e 20 6f 66 20 73 70 |nt versi|on of sp|
|00001b80| 69 66 66 20 61 6c 77 61 | 79 73 20 61 70 70 6c 69 |iff alwa|ys appli|
|00001b90| 65 73 20 74 68 65 20 64 | 69 66 66 65 72 65 6e 63 |es the d|ifferenc|
|00001ba0| 69 6e 67 0a 58 69 6e 20 | 74 65 72 6d 73 20 6f 66 |ing.Xin |terms of|
|00001bb0| 20 69 6e 64 69 76 69 64 | 75 61 6c 20 74 6f 6b 65 | individ|ual toke|
|00001bc0| 6e 73 2e 20 20 54 68 65 | 20 2d 74 20 66 6c 61 67 |ns. The| -t flag|
|00001bd0| 20 63 6f 6e 74 72 6f 6c | 73 20 68 6f 77 20 74 68 | control|s how th|
|00001be0| 65 20 65 64 69 74 20 73 | 63 72 69 70 74 0a 58 69 |e edit s|cript.Xi|
|00001bf0| 73 20 70 72 69 6e 74 65 | 64 2e 20 20 54 68 69 73 |s printe|d. This|
|00001c00| 20 61 72 72 61 6e 67 65 | 6d 65 6e 74 20 6d 6f 72 | arrange|ment mor|
|00001c10| 65 20 63 6c 6f 73 65 6c | 79 20 72 65 66 6c 65 63 |e closel|y reflec|
|00001c20| 74 73 20 74 68 65 20 6f | 72 69 67 69 6e 61 6c 20 |ts the o|riginal |
|00001c30| 69 6e 74 65 6e 74 0a 58 | 6f 66 20 68 61 76 69 6e |intent.X|of havin|
|00001c40| 67 20 6d 75 6c 74 69 70 | 6c 65 20 64 69 66 66 65 |g multip|le diffe|
|00001c50| 72 65 6e 63 69 6e 67 20 | 67 72 61 6e 75 6c 61 72 |rencing |granular|
|00001c60| 69 74 69 65 73 2e 20 0a | 58 0a 58 50 45 52 46 4f |ities. .|X.XPERFO|
|00001c70| 52 4d 41 4e 43 45 0a 58 | 0a 58 53 70 69 66 66 20 |RMANCE.X|.XSpiff |
|00001c80| 69 73 20 62 69 67 20 61 | 6e 64 20 73 6c 6f 77 2e |is big a|nd slow.|
|00001c90| 20 20 49 74 20 69 73 20 | 62 69 67 20 62 65 63 61 | It is |big beca|
|00001ca0| 75 73 65 20 61 6c 6c 20 | 74 68 65 20 73 74 6f 72 |use all |the stor|
|00001cb0| 61 67 65 20 69 73 0a 58 | 69 6e 20 63 6f 72 65 2e |age is.X|in core.|
|00001cc0| 20 20 49 74 20 69 73 20 | 61 20 73 74 72 61 69 67 | It is |a straig|
|00001cd0| 68 74 66 6f 72 77 61 72 | 64 20 62 75 74 20 62 6f |htforwar|d but bo|
|00001ce0| 72 69 6e 67 20 74 61 73 | 6b 20 74 6f 20 6d 6f 76 |ring tas|k to mov|
|00001cf0| 65 20 74 68 65 20 74 65 | 6d 70 6f 72 61 72 79 0a |e the te|mporary.|
|00001d00| 58 73 74 6f 72 61 67 65 | 20 69 6e 74 6f 20 61 20 |Xstorage| into a |
|00001d10| 66 69 6c 65 2e 20 20 53 | 6f 6d 65 6f 6e 65 20 77 |file. S|omeone w|
|00001d20| 68 6f 20 63 61 72 65 73 | 20 69 73 20 69 6e 76 69 |ho cares| is invi|
|00001d30| 74 65 64 20 74 6f 20 74 | 61 6b 65 20 6f 6e 20 74 |ted to t|ake on t|
|00001d40| 68 65 20 6a 6f 62 2e 0a | 58 53 70 69 66 66 20 69 |he job..|XSpiff i|
|00001d50| 73 20 73 6c 6f 77 20 62 | 65 63 61 75 73 65 20 77 |s slow b|ecause w|
|00001d60| 68 65 6e 65 76 65 72 20 | 61 20 63 68 6f 69 63 65 |henever |a choice|
|00001d70| 20 68 61 64 20 74 6f 20 | 62 65 20 6d 61 64 65 20 | had to |be made |
|00001d80| 62 65 74 77 65 65 6e 0a | 58 73 70 65 65 64 20 6f |between.|Xspeed o|
|00001d90| 66 20 6f 70 65 72 61 74 | 69 6f 6e 20 61 6e 64 20 |f operat|ion and |
|00001da0| 65 61 73 65 20 6f 66 20 | 63 6f 64 69 6e 67 2c 20 |ease of |coding, |
|00001db0| 73 70 65 65 64 20 6f 66 | 20 6f 70 65 72 61 74 69 |speed of| operati|
|00001dc0| 6f 6e 20 61 6c 6d 6f 73 | 74 20 61 6c 77 61 79 73 |on almos|t always|
|00001dd0| 20 6c 6f 73 74 2e 0a 58 | 41 73 20 74 68 65 20 70 | lost..X|As the p|
|00001de0| 72 6f 67 72 61 6d 20 6d | 61 74 75 72 65 73 20 69 |rogram m|atures i|
|00001df0| 74 20 77 69 6c 6c 20 61 | 6c 6d 6f 73 74 20 63 65 |t will a|lmost ce|
|00001e00| 72 74 61 69 6e 6c 79 20 | 67 65 74 20 73 6d 61 6c |rtainly |get smal|
|00001e10| 6c 65 72 20 61 6e 64 20 | 66 61 73 74 65 72 2e 0a |ler and |faster..|
|00001e20| 58 4f 62 76 69 6f 75 73 | 20 70 65 72 66 6f 72 6d |XObvious| perform|
|00001e30| 61 6e 63 65 20 65 6e 68 | 61 6e 63 65 6d 65 6e 74 |ance enh|ancement|
|00001e40| 73 20 68 61 76 65 20 62 | 65 65 6e 20 61 76 6f 69 |s have b|een avoi|
|00001e50| 64 65 64 20 69 6e 20 6f | 72 64 65 72 20 74 6f 20 |ded in o|rder to |
|00001e60| 6d 61 6b 65 20 74 68 65 | 0a 58 70 72 6f 67 72 61 |make the|.Xprogra|
|00001e70| 6d 20 61 76 61 69 6c 61 | 62 6c 65 20 61 73 20 73 |m availa|ble as s|
|00001e80| 6f 6f 6e 20 61 73 20 70 | 6f 73 73 69 62 6c 65 2e |oon as p|ossible.|
|00001e90| 0a 58 0a 58 43 4f 50 59 | 52 49 47 48 54 0a 58 0a |.X.XCOPY|RIGHT.X.|
|00001ea0| 58 4f 75 72 20 6c 61 77 | 79 65 72 73 20 61 64 76 |XOur law|yers adv|
|00001eb0| 69 73 65 20 74 68 65 20 | 66 6f 6c 6c 6f 77 69 6e |ise the |followin|
|00001ec0| 67 3a 0a 58 0a 58 20 20 | 20 20 20 20 20 20 20 20 |g:.X.X | |
|00001ed0| 20 20 20 20 20 20 20 20 | 20 43 6f 70 79 72 69 67 | | Copyrig|
|00001ee0| 68 74 20 28 63 29 20 31 | 39 38 38 20 42 65 6c 6c |ht (c) 1|988 Bell|
|00001ef0| 63 6f 72 65 0a 58 20 20 | 20 20 20 20 20 20 20 20 |core.X | |
|00001f00| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 41 6c 6c | | All|
|00001f10| 20 52 69 67 68 74 73 20 | 52 65 73 65 72 76 65 64 | Rights |Reserved|
|00001f20| 0a 58 20 20 50 65 72 6d | 69 73 73 69 6f 6e 20 69 |.X Perm|ission i|
|00001f30| 73 20 67 72 61 6e 74 65 | 64 20 74 6f 20 63 6f 70 |s grante|d to cop|
|00001f40| 79 20 6f 72 20 75 73 65 | 20 74 68 69 73 20 70 72 |y or use| this pr|
|00001f50| 6f 67 72 61 6d 2c 20 45 | 58 43 45 50 54 20 74 68 |ogram, E|XCEPT th|
|00001f60| 61 74 20 69 74 0a 58 20 | 20 6d 61 79 20 6e 6f 74 |at it.X | may not|
|00001f70| 20 62 65 20 73 6f 6c 64 | 20 66 6f 72 20 70 72 6f | be sold| for pro|
|00001f80| 66 69 74 2c 20 74 68 65 | 20 63 6f 70 79 72 69 67 |fit, the| copyrig|
|00001f90| 68 74 20 6e 6f 74 69 63 | 65 20 6d 75 73 74 20 62 |ht notic|e must b|
|00001fa0| 65 20 72 65 70 72 6f 64 | 75 63 65 64 0a 58 20 20 |e reprod|uced.X |
|00001fb0| 6f 6e 20 63 6f 70 69 65 | 73 2c 20 61 6e 64 20 63 |on copie|s, and c|
|00001fc0| 72 65 64 69 74 20 73 68 | 6f 75 6c 64 20 62 65 20 |redit sh|ould be |
|00001fd0| 67 69 76 65 6e 20 74 6f | 20 42 65 6c 6c 63 6f 72 |given to| Bellcor|
|00001fe0| 65 20 77 68 65 72 65 20 | 69 74 20 69 73 20 64 75 |e where |it is du|
|00001ff0| 65 2e 0a 58 20 20 42 45 | 4c 4c 43 4f 52 45 20 4d |e..X BE|LLCORE M|
|00002000| 41 4b 45 53 20 4e 4f 20 | 57 41 52 52 41 4e 54 59 |AKES NO |WARRANTY|
|00002010| 20 41 4e 44 20 41 43 43 | 45 50 54 53 20 4e 4f 20 | AND ACC|EPTS NO |
|00002020| 4c 49 41 42 49 4c 49 54 | 59 20 46 4f 52 20 54 48 |LIABILIT|Y FOR TH|
|00002030| 49 53 20 50 52 4f 47 52 | 41 4d 2e 0a 58 0a 58 47 |IS PROGR|AM..X.XG|
|00002040| 69 76 65 6e 20 74 68 61 | 74 20 61 6c 6c 20 6f 66 |iven tha|t all of|
|00002050| 20 74 68 65 20 61 62 6f | 76 65 20 73 65 65 6d 73 | the abo|ve seems|
|00002060| 20 74 6f 20 62 65 20 76 | 65 72 79 20 72 65 61 73 | to be v|ery reas|
|00002070| 6f 6e 61 62 6c 65 2c 20 | 74 68 65 72 65 20 73 68 |onable, |there sh|
|00002080| 6f 75 6c 64 20 62 65 20 | 6e 6f 0a 58 72 65 61 73 |ould be |no.Xreas|
|00002090| 6f 6e 20 66 6f 72 20 61 | 6e 79 6f 6e 65 20 74 6f |on for a|nyone to|
|000020a0| 20 6e 6f 74 20 70 6c 61 | 79 20 62 79 20 74 68 65 | not pla|y by the|
|000020b0| 20 72 75 6c 65 73 2e 0a | 58 0a 58 0a 58 4e 41 4d | rules..|X.X.XNAM|
|000020c0| 49 4e 47 20 43 4f 4e 56 | 45 4e 54 49 4f 4e 53 20 |ING CONV|ENTIONS |
|000020d0| 55 53 45 44 20 49 4e 20 | 54 48 45 20 43 4f 44 45 |USED IN |THE CODE|
|000020e0| 0a 58 0a 58 41 6c 6c 20 | 73 79 6d 62 6f 6c 73 20 |.X.XAll |symbols |
|000020f0| 28 66 75 6e 63 74 69 6f | 6e 73 2c 20 64 61 74 61 |(functio|ns, data|
|00002100| 20 64 65 63 6c 61 72 61 | 74 69 6f 6e 73 2c 20 6d | declara|tions, m|
|00002110| 61 63 72 6f 73 29 20 61 | 72 65 20 6e 61 6d 65 64 |acros) a|re named|
|00002120| 20 61 73 20 66 6f 6c 6c | 6f 77 73 3a 0a 58 0a 58 | as foll|ows:.X.X|
|00002130| 09 4c 5f 66 6f 6f 09 2d | 2d 20 66 6f 72 20 6e 61 |.L_foo.-|- for na|
|00002140| 6d 65 73 20 65 78 70 6f | 72 74 65 64 20 74 6f 20 |mes expo|rted to |
|00002150| 6f 74 68 65 72 20 6d 6f | 64 75 6c 65 73 0a 58 09 |other mo|dules.X.|
|00002160| 09 09 61 6e 64 20 70 6f | 73 73 69 62 6c 79 20 75 |..and po|ssibly u|
|00002170| 73 65 64 20 69 6e 73 69 | 64 65 20 74 68 65 20 6d |sed insi|de the m|
|00002180| 6f 64 75 6c 65 20 61 73 | 20 77 65 6c 6c 2e 0a 58 |odule as| well..X|
|00002190| 09 5f 4c 5f 66 6f 6f 09 | 2d 2d 20 66 6f 72 20 6e |._L_foo.|-- for n|
|000021a0| 61 6d 65 73 20 75 73 65 | 64 20 62 79 20 6d 6f 72 |ames use|d by mor|
|000021b0| 65 20 74 68 61 6e 20 6f | 6e 65 20 72 6f 75 74 69 |e than o|ne routi|
|000021c0| 6e 65 0a 58 09 09 09 77 | 69 74 68 69 6e 20 61 20 |ne.X...w|ithin a |
|000021d0| 6d 6f 64 75 6c 65 0a 58 | 09 66 6f 6f 09 2d 2d 20 |module.X|.foo.-- |
|000021e0| 66 6f 72 20 6e 61 6d 65 | 73 20 75 73 65 64 20 69 |for name|s used i|
|000021f0| 6e 73 69 64 65 20 61 20 | 73 69 6e 67 6c 65 20 72 |nside a |single r|
|00002200| 6f 75 74 69 6e 65 2e 0a | 58 0a 58 45 61 63 68 20 |outine..|X.XEach |
|00002210| 6d 6f 64 75 6c 65 20 75 | 73 65 73 20 61 20 64 69 |module u|ses a di|
|00002220| 66 66 65 72 65 6e 74 20 | 76 61 6c 75 65 20 66 6f |fferent |value fo|
|00002230| 72 20 22 4c 22 20 2d 2d | 20 0a 58 09 6d 6f 64 75 |r "L" --| .X.modu|
|00002240| 6c 65 20 66 69 6c 65 73 | 09 20 20 20 6c 65 74 74 |le files|. lett|
|00002250| 65 72 20 75 73 65 64 20 | 20 20 20 20 69 6d 70 6c |er used | impl|
|00002260| 65 6d 65 6e 74 73 0a 58 | 09 73 70 69 66 66 2e 63 |ements.X|.spiff.c|
|00002270| 09 09 09 59 09 74 6f 70 | 20 6c 65 76 65 6c 20 72 |...Y.top| level r|
|00002280| 6f 75 74 69 6e 65 73 0a | 58 09 6d 69 73 63 2e 5b |outines.|X.misc.[|
|00002290| 63 68 5d 09 09 5a 09 76 | 61 72 69 6f 75 73 20 72 |ch]..Z.v|arious r|
|000022a0| 6f 75 74 69 6e 65 73 20 | 75 73 65 64 20 74 68 72 |outines |used thr|
|000022b0| 6f 75 67 68 6f 75 74 0a | 58 09 73 74 72 69 6e 67 |oughout.|X.string|
|000022c0| 73 2e 5b 63 68 5d 09 09 | 53 09 72 6f 75 74 69 6e |s.[ch]..|S.routin|
|000022d0| 65 73 20 66 6f 72 20 68 | 61 6e 64 6c 69 6e 67 20 |es for h|andling |
|000022e0| 73 74 72 69 6e 67 73 0a | 58 09 65 64 69 74 2e 68 |strings.|X.edit.h|
|000022f0| 09 09 09 45 09 6c 69 73 | 74 20 6f 66 20 63 68 61 |...E.lis|t of cha|
|00002300| 6e 67 65 73 20 66 6f 75 | 6e 64 20 61 6e 64 20 70 |nges fou|nd and p|
|00002310| 72 69 6e 74 65 64 0a 58 | 09 74 6f 6c 2e 5b 63 68 |rinted.X|.tol.[ch|
|00002320| 5d 09 09 54 09 74 6f 6c | 65 72 61 6e 63 65 73 20 |]..T.tol|erances |
|00002330| 66 6f 72 20 72 65 61 6c | 20 6e 75 6d 62 65 72 73 |for real| numbers|
|00002340| 0a 58 09 74 6f 6b 65 6e | 2e 5b 63 68 5d 09 09 4b |.X.token|.[ch]..K|
|00002350| 09 73 74 6f 72 61 67 65 | 20 66 6f 72 20 6f 62 6a |.storage| for obj|
|00002360| 65 63 74 73 0a 58 09 66 | 6c 6f 61 74 2e 5b 63 68 |ects.X.f|loat.[ch|
|00002370| 5d 09 09 46 09 6d 61 6e | 69 70 75 6c 61 74 69 6f |]..F.man|ipulatio|
|00002380| 6e 20 6f 66 20 66 6c 6f | 61 74 73 0a 58 09 66 6c |n of flo|ats.X.fl|
|00002390| 6f 61 74 72 65 70 2e 5b | 63 68 5d 09 09 52 09 72 |oatrep.[|ch]..R.r|
|000023a0| 65 70 72 65 73 65 6e 74 | 61 74 69 6f 6e 20 6f 66 |epresent|ation of|
|000023b0| 20 66 6c 6f 61 74 73 0a | 58 09 6c 69 6e 65 2e 5b | floats.|X.line.[|
|000023c0| 63 68 5d 09 09 4c 09 73 | 74 6f 72 61 67 65 20 66 |ch]..L.s|torage f|
|000023d0| 6f 72 20 69 6e 70 75 74 | 20 6c 69 6e 65 73 0a 58 |or input| lines.X|
|000023e0| 09 70 61 72 73 65 2e 5b | 63 68 5d 09 09 50 09 70 |.parse.[|ch]..P.p|
|000023f0| 61 72 73 65 20 66 6f 72 | 20 69 6e 70 75 74 20 66 |arse for| input f|
|00002400| 69 6c 65 73 0a 58 09 63 | 6f 6d 6d 61 6e 64 2e 5b |iles.X.c|ommand.[|
|00002410| 63 68 5d 09 09 43 09 73 | 74 6f 72 61 67 65 20 61 |ch]..C.s|torage a|
|00002420| 6e 64 20 72 65 63 6f 67 | 6e 69 74 69 6f 6e 20 6f |nd recog|nition o|
|00002430| 66 20 63 6f 6d 6d 61 6e | 64 73 0a 58 09 63 6f 6d |f comman|ds.X.com|
|00002440| 6d 65 6e 74 2e 5b 63 68 | 5d 09 09 57 09 63 6f 6d |ment.[ch|]..W.com|
|00002450| 6d 65 6e 74 20 6c 69 73 | 74 20 6d 61 69 6e 74 65 |ment lis|t mainte|
|00002460| 6e 61 6e 63 65 0a 58 09 | 63 6f 6d 70 61 72 65 2e |nance.X.|compare.|
|00002470| 5b 63 68 5d 09 09 58 09 | 63 6f 6d 70 61 72 69 73 |[ch]..X.|comparis|
|00002480| 6f 6e 73 20 6f 66 20 61 | 20 73 69 6e 67 6c 65 20 |ons of a| single |
|00002490| 74 6f 6b 65 6e 0a 58 09 | 65 78 61 63 74 2e 5b 63 |token.X.|exact.[c|
|000024a0| 68 5d 09 09 51 09 65 78 | 61 63 74 20 6d 61 74 63 |h]..Q.ex|act matc|
|000024b0| 68 20 64 69 66 66 65 72 | 65 6e 63 69 6e 67 20 61 |h differ|encing a|
|000024c0| 6c 67 6f 72 69 74 68 6d | 0a 58 09 6d 69 6c 6c 65 |lgorithm|.X.mille|
|000024d0| 72 2e 5b 63 68 5d 09 09 | 47 09 6d 69 6c 6c 65 72 |r.[ch]..|G.miller|
|000024e0| 2f 6d 79 65 72 73 20 64 | 69 66 66 65 72 65 6e 63 |/myers d|ifferenc|
|000024f0| 69 6e 67 20 61 6c 67 6f | 72 69 74 68 6d 0a 58 09 |ing algo|rithm.X.|
|00002500| 6f 75 74 70 75 74 2e 5b | 63 68 5d 09 09 4f 09 70 |output.[|ch]..O.p|
|00002510| 72 69 6e 74 20 6c 69 73 | 74 69 6e 67 20 6f 66 20 |rint lis|ting of |
|00002520| 64 69 66 66 65 72 65 6e | 63 65 73 0a 58 09 66 6c |differen|ces.X.fl|
|00002530| 61 67 64 65 66 73 2e 68 | 09 09 55 09 64 65 66 69 |agdefs.h|..U.defi|
|00002540| 6e 65 20 66 6c 61 67 20 | 62 69 74 73 20 74 68 61 |ne flag |bits tha|
|00002550| 74 20 61 72 65 20 75 73 | 65 64 20 69 6e 0a 58 09 |t are us|ed in.X.|
|00002560| 09 09 09 09 73 65 76 65 | 72 61 6c 20 6f 66 20 74 |....seve|ral of t|
|00002570| 68 65 20 6f 74 68 65 72 | 20 6d 6f 64 75 6c 65 73 |he other| modules|
|00002580| 2e 0a 58 09 09 09 09 09 | 54 68 65 73 65 20 23 64 |..X.....|These #d|
|00002590| 65 66 69 6e 65 73 20 63 | 6f 75 6c 64 20 68 61 76 |efines c|ould hav|
|000025a0| 65 20 62 65 65 6e 0a 58 | 09 09 09 09 09 69 6e 63 |e been.X|.....inc|
|000025b0| 6c 75 64 65 64 20 69 6e | 20 6d 69 73 63 2e 63 2c |luded in| misc.c,|
|000025c0| 20 62 75 74 20 77 65 72 | 65 20 73 65 70 61 72 61 | but wer|e separa|
|000025d0| 74 65 64 0a 58 09 09 09 | 09 09 6f 75 74 20 62 65 |ted.X...|..out be|
|000025e0| 63 61 75 73 65 20 6f 66 | 20 74 68 65 69 72 20 65 |cause of| their e|
|000025f0| 78 70 6c 69 63 69 74 0a | 58 09 09 09 09 09 63 6f |xplicit.|X.....co|
|00002600| 6d 6d 75 6e 69 63 61 74 | 69 6f 6e 20 66 75 6e 63 |mmunicat|ion func|
|00002610| 74 69 6f 6e 2e 0a 58 09 | 76 69 73 75 61 6c 2e 5b |tion..X.|visual.[|
|00002620| 63 68 5d 09 09 56 09 73 | 63 72 65 65 6e 20 6f 72 |ch]..V.s|creen or|
|00002630| 69 65 6e 74 65 64 20 64 | 69 73 70 6c 61 79 20 66 |iented d|isplay f|
|00002640| 6f 72 20 4d 47 52 0a 58 | 09 09 09 09 09 77 69 6e |or MGR.X|.....win|
|00002650| 64 6f 77 20 6d 61 6e 61 | 67 65 72 2c 20 61 6c 73 |dow mana|ger, als|
|00002660| 6f 20 63 6f 6e 74 61 69 | 6e 73 0a 58 09 09 09 09 |o contai|ns.X....|
|00002670| 09 64 75 6d 6d 79 20 72 | 6f 75 74 69 6e 65 73 20 |.dummy r|outines |
|00002680| 66 6f 72 20 70 65 6f 70 | 6c 65 20 77 68 6f 20 64 |for peop|le who d|
|00002690| 6f 6e 27 74 0a 58 09 09 | 09 09 09 68 61 76 65 20 |on't.X..|...have |
|000026a0| 4d 47 52 20 0a 58 0a 58 | 49 20 68 61 76 65 6e 27 |MGR .X.X|I haven'|
|000026b0| 74 20 63 6c 65 61 6e 65 | 64 20 75 70 20 76 69 73 |t cleane|d up vis|
|000026c0| 75 61 6c 2e 63 20 79 65 | 74 2e 20 20 49 74 20 70 |ual.c ye|t. It p|
|000026d0| 72 6f 62 61 62 6c 79 20 | 64 6f 65 73 6e 27 74 20 |robably |doesn't |
|000026e0| 65 76 65 6e 20 63 6f 6d | 70 69 6c 65 0a 58 69 6e |even com|pile.Xin|
|000026f0| 20 74 68 69 73 20 76 65 | 72 73 69 6f 6e 20 61 6e | this ve|rsion an|
|00002700| 79 77 61 79 2e 20 42 75 | 74 20 73 69 6e 63 65 20 |yway. Bu|t since |
|00002710| 6d 6f 73 74 20 70 65 6f | 70 6c 65 20 64 6f 6e 27 |most peo|ple don'|
|00002720| 74 20 68 61 76 65 20 6d | 67 72 2c 20 74 68 69 73 |t have m|gr, this|
|00002730| 0a 58 69 73 6e 27 74 20 | 75 72 67 65 6e 74 2e 0a |.Xisn't |urgent..|
|00002740| 58 0a 58 4e 4f 4e 2d 4f | 42 56 49 4f 55 53 20 44 |X.XNON-O|BVIOUS D|
|00002750| 41 54 41 20 53 54 52 55 | 43 54 55 52 45 53 0a 58 |ATA STRU|CTURES.X|
|00002760| 0a 58 54 68 65 20 46 6c | 6f 61 74 69 6e 67 20 50 |.XThe Fl|oating P|
|00002770| 6f 69 6e 74 20 52 65 70 | 72 65 73 65 6e 74 61 74 |oint Rep|resentat|
|00002780| 69 6f 6e 0a 58 0a 58 46 | 6c 6f 61 74 69 6e 67 20 |ion.X.XF|loating |
|00002790| 70 6f 69 6e 74 20 6e 75 | 6d 62 65 72 73 20 61 72 |point nu|mbers ar|
|000027a0| 65 20 73 74 6f 72 65 64 | 20 69 6e 20 61 20 73 74 |e stored| in a st|
|000027b0| 72 75 63 74 20 52 5f 66 | 6c 73 74 72 0a 58 54 68 |ruct R_f|lstr.XTh|
|000027c0| 65 20 66 72 61 63 74 69 | 6f 6e 61 6c 20 70 61 72 |e fracti|onal par|
|000027d0| 74 20 69 73 20 6f 66 74 | 65 6e 20 63 61 6c 6c 65 |t is oft|en calle|
|000027e0| 64 20 74 68 65 20 6d 61 | 6e 74 69 73 73 61 2e 0a |d the ma|ntissa..|
|000027f0| 58 0a 58 54 68 65 20 73 | 74 72 75 63 74 75 72 65 |X.XThe s|tructure|
|00002800| 20 63 6f 6e 73 69 73 74 | 73 20 6f 66 0a 58 09 61 | consist|s of.X.a|
|00002810| 20 66 6c 61 67 20 66 6f | 72 20 74 68 65 20 73 69 | flag fo|r the si|
|00002820| 67 6e 20 6f 66 20 74 68 | 65 20 66 61 63 74 69 6f |gn of th|e factio|
|00002830| 6e 61 6c 20 70 61 72 74 | 0a 58 09 74 68 65 20 65 |nal part|.X.the e|
|00002840| 78 70 6f 6e 65 6e 74 20 | 69 6e 20 62 69 6e 61 72 |xponent |in binar|
|00002850| 79 20 0a 58 09 61 20 63 | 68 61 72 61 63 74 65 72 |y .X.a c|haracter|
|00002860| 20 73 74 72 69 6e 67 20 | 63 6f 6e 74 61 69 6e 69 | string |containi|
|00002870| 6e 67 20 74 68 65 20 66 | 72 61 63 74 69 6f 6e 61 |ng the f|ractiona|
|00002880| 6c 20 70 61 72 74 0a 58 | 0a 58 54 68 65 20 73 74 |l part.X|.XThe st|
|00002890| 72 75 63 74 75 72 65 20 | 63 6f 75 6c 64 20 62 65 |ructure |could be|
|000028a0| 20 63 6f 6e 76 65 72 74 | 65 64 20 74 6f 20 61 20 | convert|ed to a |
|000028b0| 66 6c 6f 61 74 20 76 69 | 61 0a 58 09 61 74 6f 66 |float vi|a.X.atof|
|000028c0| 28 73 74 72 63 61 74 28 | 22 2e 22 2c 6d 61 6e 74 |(strcat(|".",mant|
|000028d0| 69 73 73 61 29 29 20 2a | 20 28 31 30 5e 65 78 70 |issa)) *| (10^exp|
|000028e0| 6f 6e 65 6e 74 29 0a 58 | 0a 58 54 6f 20 62 65 20 |onent).X|.XTo be |
|000028f0| 70 72 6f 70 65 72 6c 79 | 20 66 6f 72 6d 65 64 2c |properly| formed,|
|00002900| 20 74 68 65 20 6d 61 6e | 74 69 73 73 61 20 73 74 | the man|tissa st|
|00002910| 72 69 6e 67 20 6d 75 73 | 74 3a 0a 58 09 73 74 61 |ring mus|t:.X.sta|
|00002920| 72 74 20 77 69 74 68 20 | 61 20 64 69 67 69 74 20 |rt with |a digit |
|00002930| 62 65 74 77 65 65 6e 20 | 31 20 61 6e 64 20 39 20 |between |1 and 9 |
|00002940| 28 69 2e 65 2e 20 6e 6f | 20 6c 65 61 64 69 6e 67 |(i.e. no| leading|
|00002950| 20 7a 65 72 6f 73 29 0a | 58 09 09 65 78 63 65 70 | zeros).|X..excep|
|00002960| 74 20 66 6f 72 20 74 68 | 65 20 7a 65 72 6f 2c 20 |t for th|e zero, |
|00002970| 69 6e 20 77 68 69 63 68 | 20 63 61 73 65 20 74 68 |in which| case th|
|00002980| 65 20 6d 61 6e 74 69 73 | 73 61 20 69 73 20 65 78 |e mantis|sa is ex|
|00002990| 61 63 74 6c 79 20 22 30 | 22 0a 58 09 66 6f 72 20 |actly "0|".X.for |
|000029a0| 74 68 65 20 73 70 65 63 | 69 61 6c 20 63 61 73 65 |the spec|ial case|
|000029b0| 20 6f 66 20 7a 65 72 6f | 2c 20 74 68 65 20 65 78 | of zero|, the ex|
|000029c0| 70 6f 6e 65 6e 74 20 69 | 73 20 61 6c 77 61 79 73 |ponent i|s always|
|000029d0| 20 30 2c 20 61 6e 64 20 | 74 68 65 0a 58 09 09 73 | 0, and |the.X..s|
|000029e0| 69 67 6e 20 69 73 20 61 | 6c 77 61 79 73 20 70 6f |ign is a|lways po|
|000029f0| 73 69 74 69 76 65 2e 20 | 28 69 2e 65 2e 20 6e 6f |sitive. |(i.e. no|
|00002a00| 20 6e 65 67 61 74 69 76 | 65 20 30 29 0a 58 0a 58 | negativ|e 0).X.X|
|00002a10| 49 6e 20 6f 74 68 65 72 | 20 77 6f 72 64 73 2c 20 |In other| words, |
|00002a20| 28 65 78 63 65 70 74 20 | 66 6f 72 20 74 68 65 20 |(except |for the |
|00002a30| 76 61 6c 75 65 20 30 29 | 0a 58 74 68 65 20 6d 61 |value 0)|.Xthe ma|
|00002a40| 6e 74 69 73 73 61 20 69 | 73 20 61 20 66 72 61 63 |ntissa i|s a frac|
|00002a50| 74 69 6f 6e 61 6c 20 6e | 75 6d 62 65 72 20 72 61 |tional n|umber ra|
|00002a60| 6e 67 69 6e 67 0a 58 62 | 65 74 77 65 65 6e 20 30 |nging.Xb|etween 0|
|00002a70| 2e 31 20 28 69 6e 63 6c | 75 73 69 76 65 29 20 61 |.1 (incl|usive) a|
|00002a80| 6e 64 20 31 2e 30 20 28 | 65 78 63 6c 75 73 69 76 |nd 1.0 (|exclusiv|
|00002a90| 65 29 2e 0a 58 54 68 65 | 20 65 78 70 6f 6e 65 6e |e)..XThe| exponen|
|00002aa0| 74 20 69 73 20 69 6e 74 | 65 72 70 72 65 74 65 64 |t is int|erpreted|
|00002ab0| 20 61 73 20 61 20 70 6f | 77 65 72 20 6f 66 20 31 | as a po|wer of 1|
|00002ac0| 30 2e 0a 58 0a 58 4c 69 | 6e 65 73 20 0a 58 74 68 |0..X.XLi|nes .Xth|
|00002ad0| 65 72 65 20 61 72 65 20 | 74 68 72 65 65 20 73 65 |ere are |three se|
|00002ae0| 74 73 20 6f 66 20 6c 69 | 6e 65 73 3a 0a 58 69 6d |ts of li|nes:.Xim|
|00002af0| 70 6c 65 6d 65 6e 74 65 | 64 20 69 6e 20 6c 69 6e |plemente|d in lin|
|00002b00| 65 2e 63 20 61 6e 64 20 | 6c 69 6e 65 2e 68 0a 58 |e.c and |line.h.X|
|00002b10| 09 72 65 61 6c 5f 6c 69 | 6e 65 73 20 2d 2d 0a 58 |.real_li|nes --.X|
|00002b20| 09 20 20 74 68 65 20 6c | 69 6e 65 73 20 61 73 20 |. the l|ines as |
|00002b30| 74 68 65 79 20 63 6f 6d | 65 20 66 72 6f 6d 20 74 |they com|e from t|
|00002b40| 68 65 20 66 69 6c 65 0a | 58 09 63 6f 6e 74 65 6e |he file.|X.conten|
|00002b50| 74 5f 6c 69 6e 65 73 20 | 2d 2d 0a 58 09 20 20 61 |t_lines |--.X. a|
|00002b60| 20 73 75 62 73 65 74 20 | 6f 66 20 72 65 61 6c 6c | subset |of reall|
|00002b70| 69 6e 65 73 20 74 68 61 | 74 20 65 78 63 6c 75 64 |ines tha|t exclud|
|00002b80| 69 6e 67 20 65 6d 62 65 | 64 64 65 64 20 63 6f 6d |ing embe|dded com|
|00002b90| 6d 61 6e 64 73 0a 58 69 | 6d 70 6c 65 6d 65 6e 74 |mands.Xi|mplement|
|00002ba0| 65 64 20 69 6e 20 74 6f | 6b 65 6e 2e 63 20 61 6e |ed in to|ken.c an|
|00002bb0| 64 20 74 6f 6b 65 6e 2e | 68 20 0a 58 09 74 6f 6b |d token.|h .X.tok|
|00002bc0| 65 6e 5f 6c 69 6e 65 73 | 20 2d 2d 0a 58 09 20 20 |en_lines| --.X. |
|00002bd0| 61 20 73 75 62 73 65 74 | 20 6f 66 20 63 6f 6e 74 |a subset| of cont|
|00002be0| 65 6e 74 5f 6c 69 6e 65 | 73 20 63 6f 6e 73 69 73 |ent_line|s consis|
|00002bf0| 74 69 6e 67 20 6f 66 20 | 74 68 6f 73 65 20 6c 69 |ting of |those li|
|00002c00| 6e 65 73 20 74 68 61 74 | 0a 58 09 09 68 61 76 65 |nes that|.X..have|
|00002c10| 20 74 6f 6b 65 6e 73 20 | 74 68 61 74 20 62 65 67 | tokens |that beg|
|00002c20| 69 6e 20 6f 6e 20 74 68 | 65 6d 20 28 6c 69 74 65 |in on th|em (lite|
|00002c30| 72 61 6c 73 20 63 61 6e | 20 67 6f 20 6f 6e 20 66 |rals can| go on f|
|00002c40| 6f 72 0a 58 09 09 6d 6f | 72 65 20 74 68 61 6e 20 |or.X..mo|re than |
|00002c50| 6f 6e 65 20 6c 69 6e 65 | 29 0a 58 09 09 69 2e 65 |one line|).X..i.e|
|00002c60| 2e 20 63 6f 6e 74 65 6e | 74 5f 6c 69 6e 65 73 20 |. conten|t_lines |
|00002c70| 65 78 63 6c 75 64 69 6e | 67 20 63 6f 6d 6d 65 6e |excludin|g commen|
|00002c80| 74 73 20 61 6e 64 20 62 | 6c 61 6e 6b 20 6c 69 6e |ts and b|lank lin|
|00002c90| 65 73 2e 0a 58 0a 58 0a | 58 54 48 45 20 53 54 41 |es..X.X.|XTHE STA|
|00002ca0| 54 45 20 4f 46 20 54 48 | 45 20 43 4f 44 45 0a 58 |TE OF TH|E CODE.X|
|00002cb0| 54 68 69 6e 67 73 20 74 | 68 61 74 20 73 68 6f 75 |Things t|hat shou|
|00002cc0| 6c 64 20 62 65 20 61 64 | 64 65 64 0a 58 09 76 69 |ld be ad|ded.X.vi|
|00002cd0| 73 75 61 6c 20 6d 6f 64 | 65 20 73 68 6f 75 6c 64 |sual mod|e should|
|00002ce0| 20 68 61 6e 64 6c 65 20 | 74 61 62 73 20 61 6e 64 | handle |tabs and|
|00002cf0| 20 77 72 61 70 70 65 64 | 20 6c 69 6e 65 73 0a 58 | wrapped| lines.X|
|00002d00| 09 68 61 6e 64 6c 69 6e | 67 20 68 75 67 65 20 66 |.handlin|g huge f|
|00002d10| 69 6c 65 73 20 69 6e 20 | 63 68 75 6e 6b 73 20 77 |iles in |chunks w|
|00002d20| 68 65 6e 20 69 6e 20 75 | 73 69 6e 67 20 74 68 65 |hen in u|sing the|
|00002d30| 20 6f 72 64 69 6e 61 6c | 20 6d 61 74 63 68 0a 58 | ordinal| match.X|
|00002d40| 09 61 6c 67 6f 72 69 74 | 68 6d 2e 20 72 69 67 68 |.algorit|hm. righ|
|00002d50| 74 20 6e 6f 77 20 79 6f | 75 20 68 61 76 65 20 74 |t now yo|u have t|
|00002d60| 6f 20 70 61 72 73 65 20 | 61 6e 64 20 74 68 65 6e |o parse |and then|
|00002d70| 20 64 69 66 66 20 74 68 | 65 0a 58 09 77 68 6f 6c | diff th|e.X.whol|
|00002d80| 65 20 74 68 69 6e 67 20 | 62 65 66 6f 72 65 20 79 |e thing |before y|
|00002d90| 6f 75 20 67 65 74 20 61 | 6e 79 20 6f 75 74 70 75 |ou get a|ny outpu|
|00002da0| 74 2e 20 20 6f 66 74 65 | 6e 2c 20 79 6f 75 20 72 |t. ofte|n, you r|
|00002db0| 75 6e 20 6f 75 74 20 6f | 66 20 6d 65 6d 6f 72 79 |un out o|f memory|
|00002dc0| 2e 0a 58 0a 58 54 68 69 | 6e 67 73 20 74 68 61 74 |..X.XThi|ngs that|
|00002dd0| 20 77 6f 75 6c 64 20 62 | 65 20 6e 69 63 65 20 74 | would b|e nice t|
|00002de0| 6f 20 61 64 64 0a 58 09 | 6f 75 74 70 75 74 20 73 |o add.X.|output s|
|00002df0| 68 6f 75 6c 64 20 6f 70 | 74 69 6f 6e 61 6c 6c 79 |hould op|tionally|
|00002e00| 20 62 65 20 65 78 70 72 | 65 73 73 65 64 20 69 6e | be expr|essed in|
|00002e10| 20 72 65 61 6c 20 6c 69 | 6e 65 20 6e 75 6d 62 65 | real li|ne numbe|
|00002e20| 72 73 0a 58 09 09 28 69 | 2e 65 2e 20 69 6e 63 6c |rs.X..(i|.e. incl|
|00002e30| 75 64 69 6e 67 20 63 6f | 6d 6d 61 6e 64 20 6c 69 |uding co|mmand li|
|00002e40| 6e 65 73 29 0a 58 09 61 | 74 20 70 72 65 73 65 6e |nes).X.a|t presen|
|00002e50| 74 2c 20 61 6c 6c 20 73 | 74 6f 72 61 67 65 20 69 |t, all s|torage i|
|00002e60| 73 20 69 6e 20 63 6f 72 | 65 2e 20 74 68 65 72 65 |s in cor|e. there|
|00002e70| 20 73 68 6f 75 6c 64 0a | 58 09 09 62 65 20 61 20 | should.|X..be a |
|00002e80| 63 6f 6d 70 69 6c 65 20 | 74 69 6d 65 20 64 65 63 |compile |time dec|
|00002e90| 69 73 69 6f 6e 20 74 6f | 20 61 6c 6c 6f 77 20 74 |ision to| allow t|
|00002ea0| 65 6d 70 6f 72 61 72 79 | 20 73 74 6f 72 61 67 65 |emporary| storage|
|00002eb0| 0a 58 09 09 69 6e 20 66 | 69 6c 65 73 20 72 61 74 |.X..in f|iles rat|
|00002ec0| 68 65 72 20 74 68 61 6e | 20 63 6f 72 65 2e 20 0a |her than| core. .|
|00002ed0| 58 09 09 74 68 61 74 20 | 77 61 79 20 74 68 65 20 |X..that |way the |
|00002ee0| 75 73 65 72 20 63 6f 75 | 6c 64 20 64 65 63 69 64 |user cou|ld decid|
|00002ef0| 65 20 68 6f 77 20 74 6f | 20 68 61 6e 64 6c 65 20 |e how to| handle |
|00002f00| 74 68 65 0a 58 09 09 09 | 73 70 65 65 64 2f 73 70 |the.X...|speed/sp|
|00002f10| 61 63 65 20 74 72 61 64 | 65 6f 66 66 0a 58 09 61 |ace trad|eoff.X.a|
|00002f20| 20 66 72 6f 6e 74 20 65 | 6e 64 20 74 68 61 74 20 | front e|nd that |
|00002f30| 6c 6f 6f 6b 65 64 20 6c | 69 6b 65 20 64 69 66 66 |looked l|ike diff|
|00002f40| 20 73 68 6f 75 6c 64 20 | 62 65 20 61 64 64 65 64 | should |be added|
|00002f50| 20 73 6f 20 74 68 61 74 | 0a 58 09 09 6f 6e 65 20 | so that|.X..one |
|00002f60| 63 6f 75 6c 64 20 64 72 | 6f 70 20 73 70 69 66 66 |could dr|op spiff|
|00002f70| 20 69 6e 74 6f 20 65 78 | 69 73 74 69 6e 67 20 73 | into ex|isting s|
|00002f80| 68 65 6c 6c 20 73 63 72 | 69 70 74 73 0a 58 09 74 |hell scr|ipts.X.t|
|00002f90| 68 65 20 70 61 72 73 65 | 72 20 63 6f 6e 76 65 72 |he parse|r conver|
|00002fa0| 74 73 20 66 6c 6f 61 74 | 73 20 69 6e 74 6f 20 74 |ts float|s into t|
|00002fb0| 68 65 69 72 20 69 6e 74 | 65 72 6e 61 6c 20 66 6f |heir int|ernal fo|
|00002fc0| 72 6d 20 65 76 65 6e 20 | 77 68 65 6e 0a 58 09 09 |rm even |when.X..|
|00002fd0| 69 74 20 69 73 6e 27 74 | 20 6e 65 63 65 73 73 61 |it isn't| necessa|
|00002fe0| 72 79 2e 0a 58 09 69 6e | 20 74 68 65 20 6d 69 6c |ry..X.in| the mil|
|00002ff0| 6c 65 72 2f 6d 79 65 72 | 20 63 6f 64 65 2c 20 74 |ler/myer| code, t|
|00003000| 68 65 20 63 6f 64 65 20 | 73 68 6f 75 6c 64 20 63 |he code |should c|
|00003010| 68 65 63 6b 20 66 6f 72 | 20 6d 61 74 63 68 69 6e |heck for| matchin|
|00003020| 67 0a 58 09 09 65 6e 64 | 20 73 65 71 75 65 6e 63 |g.X..end| sequenc|
|00003030| 65 73 2e 20 20 69 74 20 | 63 75 72 72 65 6e 74 6c |es. it |currentl|
|00003040| 79 20 6c 6f 6f 6b 73 20 | 6d 61 74 63 68 69 6e 67 |y looks |matching|
|00003050| 20 62 65 67 69 6e 6e 69 | 6e 67 0a 58 09 09 73 65 | beginni|ng.X..se|
|00003060| 71 75 65 6e 63 65 73 2e | 0a 58 0a 58 4d 69 6e 6f |quences.|.X.XMino|
|00003070| 72 20 70 72 6f 67 72 61 | 6d 6d 69 6e 67 20 69 6d |r progra|mming im|
|00003080| 70 72 6f 76 65 6d 65 6e | 74 73 20 28 70 72 6f 67 |provemen|ts (prog|
|00003090| 72 61 6d 6d 69 6e 67 20 | 62 6f 74 63 68 65 73 29 |ramming |botches)|
|000030a0| 0a 58 09 73 6f 6d 65 20 | 6f 66 20 74 68 65 20 23 |.X.some |of the #|
|000030b0| 64 65 66 69 6e 65 73 20 | 73 68 6f 75 6c 64 20 72 |defines |should r|
|000030c0| 65 61 6c 6c 79 20 62 65 | 20 65 6e 75 6d 65 72 61 |eally be| enumera|
|000030d0| 74 65 64 20 74 79 70 65 | 73 0a 58 09 61 6c 6c 20 |ted type|s.X.all |
|000030e0| 74 68 65 20 72 6f 75 74 | 69 6e 65 73 20 69 6e 20 |the rout|ines in |
|000030f0| 73 74 72 69 6e 67 73 2e | 63 20 74 68 61 74 20 61 |strings.|c that a|
|00003100| 6c 74 65 72 20 74 68 65 | 20 64 61 74 61 20 61 74 |lter the| data at|
|00003110| 20 74 68 65 20 65 6e 64 | 20 6f 66 0a 58 09 09 61 | the end| of.X..a|
|00003120| 20 70 6f 69 6e 74 65 72 | 20 62 75 74 20 72 65 74 | pointer| but ret|
|00003130| 75 72 6e 20 76 6f 69 64 | 20 73 68 6f 75 6c 64 20 |urn void| should |
|00003140| 6a 75 73 74 20 72 65 74 | 75 72 6e 20 74 68 65 20 |just ret|urn the |
|00003150| 63 6f 72 72 65 63 74 0a | 58 09 09 64 61 74 61 2e |correct.|X..data.|
|00003160| 20 74 68 65 20 63 75 72 | 72 65 6e 74 20 61 72 72 | the cur|rent arr|
|00003170| 61 6e 67 65 6d 65 6e 74 | 20 69 73 20 61 20 68 69 |angement| is a hi|
|00003180| 73 74 6f 72 69 63 61 6c | 20 61 72 74 69 66 61 63 |storical| artifac|
|00003190| 74 0a 58 09 09 6f 66 20 | 74 68 65 20 64 61 79 73 |t.X..of |the days|
|000031a0| 20 77 68 65 6e 20 74 68 | 65 73 65 20 72 6f 75 74 | when th|ese rout|
|000031b0| 69 6e 65 73 20 72 65 74 | 75 72 6e 65 64 20 61 20 |ines ret|urned a |
|000031c0| 73 74 61 74 75 73 20 63 | 6f 64 65 2e 0a 58 09 09 |status c|ode..X..|
|000031d0| 62 75 74 20 74 68 65 6e | 20 74 68 65 20 63 6f 64 |but then| the cod|
|000031e0| 65 20 77 61 73 20 6e 65 | 76 65 72 20 65 78 61 6d |e was ne|ver exam|
|000031f0| 69 6e 65 64 2c 0a 58 09 | 09 73 6f 20 69 20 6d 61 |ined,.X.|.so i ma|
|00003200| 64 65 20 74 68 65 6d 20 | 76 6f 69 64 20 2e 20 2e |de them |void . .|
|00003210| 20 2e 0a 58 09 63 6f 6d | 6d 65 6e 74 73 20 73 68 | ..X.com|ments sh|
|00003220| 6f 75 6c 64 20 62 65 20 | 61 64 64 65 64 20 74 6f |ould be |added to|
|00003230| 20 74 68 65 20 6d 69 6c | 6c 65 72 2f 6d 79 65 72 | the mil|ler/myer|
|00003240| 20 63 6f 64 65 0a 58 09 | 69 6e 20 76 69 73 75 61 | code.X.|in visua|
|00003250| 6c 20 6d 6f 64 65 2c 20 | 61 73 6b 20 66 6f 72 20 |l mode, |ask for |
|00003260| 66 6f 6e 74 20 62 79 20 | 6e 61 6d 65 20 72 61 74 |font by |name rat|
|00003270| 68 65 72 20 74 68 61 6e | 20 6e 75 6d 62 65 72 0a |her than| number.|
|00003280| 45 4e 44 5f 4f 46 5f 46 | 49 4c 45 0a 69 66 20 74 |END_OF_F|ILE.if t|
|00003290| 65 73 74 20 39 37 30 32 | 20 2d 6e 65 20 60 77 63 |est 9702| -ne `wc|
|000032a0| 20 2d 63 20 3c 27 52 45 | 41 44 4d 45 27 60 3b 20 | -c <'RE|ADME'`; |
|000032b0| 74 68 65 6e 0a 20 20 20 | 20 65 63 68 6f 20 73 68 |then. | echo sh|
|000032c0| 61 72 3a 20 5c 22 27 52 | 45 41 44 4d 45 27 5c 22 |ar: \"'R|EADME'\"|
|000032d0| 20 75 6e 70 61 63 6b 65 | 64 20 77 69 74 68 20 77 | unpacke|d with w|
|000032e0| 72 6f 6e 67 20 73 69 7a | 65 21 0a 66 69 0a 23 20 |rong siz|e!.fi.# |
|000032f0| 65 6e 64 20 6f 66 20 27 | 52 45 41 44 4d 45 27 0a |end of '|README'.|
|00003300| 66 69 0a 69 66 20 74 65 | 73 74 20 2d 66 20 27 53 |fi.if te|st -f 'S|
|00003310| 61 6d 70 6c 65 2e 31 27 | 20 2d 61 20 22 24 7b 31 |ample.1'| -a "${1|
|00003320| 7d 22 20 21 3d 20 22 2d | 63 22 20 3b 20 74 68 65 |}" != "-|c" ; the|
|00003330| 6e 20 0a 20 20 65 63 68 | 6f 20 73 68 61 72 3a 20 |n . ech|o shar: |
|00003340| 57 69 6c 6c 20 6e 6f 74 | 20 63 6c 6f 62 62 65 72 |Will not| clobber|
|00003350| 20 65 78 69 73 74 69 6e | 67 20 66 69 6c 65 20 5c | existin|g file \|
|00003360| 22 27 53 61 6d 70 6c 65 | 2e 31 27 5c 22 0a 65 6c |"'Sample|.1'\".el|
|00003370| 73 65 0a 65 63 68 6f 20 | 73 68 61 72 3a 20 45 78 |se.echo |shar: Ex|
|00003380| 74 72 61 63 74 69 6e 67 | 20 5c 22 27 53 61 6d 70 |tracting| \"'Samp|
|00003390| 6c 65 2e 31 27 5c 22 20 | 5c 28 33 37 38 20 63 68 |le.1'\" |\(378 ch|
|000033a0| 61 72 61 63 74 65 72 73 | 5c 29 0a 73 65 64 20 22 |aracters|\).sed "|
|000033b0| 73 2f 5e 58 2f 2f 22 20 | 3e 27 53 61 6d 70 6c 65 |s/^X//" |>'Sample|
|000033c0| 2e 31 27 20 3c 3c 27 45 | 4e 44 5f 4f 46 5f 46 49 |.1' <<'E|ND_OF_FI|
|000033d0| 4c 45 27 0a 58 74 65 73 | 74 20 66 69 6c 65 20 66 |LE'.Xtes|t file f|
|000033e0| 6f 72 20 73 70 69 66 66 | 2e 0a 58 74 68 65 72 65 |or spiff|..Xthere|
|000033f0| 20 69 73 20 61 20 77 6f | 72 64 20 20 20 20 20 20 | is a wo|rd |
|00003400| 20 68 65 72 65 2e 0a 58 | 74 68 65 72 65 20 69 73 | here..X|there is|
|00003410| 20 61 20 64 65 6c 65 74 | 65 64 20 77 6f 72 64 20 | a delet|ed word |
|00003420| 69 6e 20 74 68 69 73 20 | 6c 69 6e 65 2e 0a 58 74 |in this |line..Xt|
|00003430| 68 65 72 65 20 69 73 20 | 61 20 77 6f 72 64 20 74 |here is |a word t|
|00003440| 68 61 74 20 69 73 20 63 | 68 61 6e 67 65 64 20 68 |hat is c|hanged h|
|00003450| 65 72 65 2e 0a 58 0a 58 | 6e 6f 20 64 69 66 66 65 |ere..X.X|no diffe|
|00003460| 72 65 6e 63 65 20 6f 6e | 20 09 74 68 69 73 20 6c |rence on| .this l|
|00003470| 69 6e 65 20 20 64 75 65 | 20 74 6f 20 20 20 20 20 |ine due| to |
|00003480| 20 77 68 69 74 65 20 73 | 70 61 63 65 2e 0a 58 64 | white s|pace..Xd|
|00003490| 65 66 61 75 6c 74 20 61 | 62 73 6f 6c 75 74 65 20 |efault a|bsolute |
|000034a0| 74 6f 6c 65 72 61 6e 63 | 65 20 73 68 6f 75 6c 64 |toleranc|e should|
|000034b0| 20 62 65 20 31 65 2d 31 | 30 20 20 20 0a 58 6e 6f | be 1e-1|0 .Xno|
|000034c0| 20 64 69 66 66 65 72 65 | 6e 63 65 20 2d 2d 3e 20 | differe|nce --> |
|000034d0| 30 2e 30 20 20 20 20 20 | 20 20 20 20 20 20 64 69 |0.0 | di|
|000034e0| 66 66 65 72 65 6e 74 20 | 2d 2d 3e 20 30 2e 30 0a |fferent |--> 0.0.|
|000034f0| 58 64 65 66 61 75 6c 74 | 20 72 65 6c 61 74 69 76 |Xdefault| relativ|
|00003500| 65 20 74 6f 6c 65 72 61 | 6e 63 65 20 73 68 6f 75 |e tolera|nce shou|
|00003510| 6c 64 20 62 65 20 31 65 | 2d 31 30 20 20 20 0a 58 |ld be 1e|-10 .X|
|00003520| 6e 6f 20 64 69 66 66 65 | 72 65 6e 63 65 20 2d 2d |no diffe|rence --|
|00003530| 3e 20 31 30 2e 20 20 20 | 20 20 20 20 20 20 20 20 |> 10. | |
|00003540| 64 69 66 66 65 72 65 6e | 74 20 2d 2d 3e 20 31 30 |differen|t --> 10|
|00003550| 2e 30 30 30 30 30 0a 58 | 0a 45 4e 44 5f 4f 46 5f |.00000.X|.END_OF_|
|00003560| 46 49 4c 45 0a 69 66 20 | 74 65 73 74 20 33 37 38 |FILE.if |test 378|
|00003570| 20 2d 6e 65 20 60 77 63 | 20 2d 63 20 3c 27 53 61 | -ne `wc| -c <'Sa|
|00003580| 6d 70 6c 65 2e 31 27 60 | 3b 20 74 68 65 6e 0a 20 |mple.1'`|; then. |
|00003590| 20 20 20 65 63 68 6f 20 | 73 68 61 72 3a 20 5c 22 | echo |shar: \"|
|000035a0| 27 53 61 6d 70 6c 65 2e | 31 27 5c 22 20 75 6e 70 |'Sample.|1'\" unp|
|000035b0| 61 63 6b 65 64 20 77 69 | 74 68 20 77 72 6f 6e 67 |acked wi|th wrong|
|000035c0| 20 73 69 7a 65 21 0a 66 | 69 0a 23 20 65 6e 64 20 | size!.f|i.# end |
|000035d0| 6f 66 20 27 53 61 6d 70 | 6c 65 2e 31 27 0a 66 69 |of 'Samp|le.1'.fi|
|000035e0| 0a 69 66 20 74 65 73 74 | 20 2d 66 20 27 53 61 6d |.if test| -f 'Sam|
|000035f0| 70 6c 65 2e 32 27 20 2d | 61 20 22 24 7b 31 7d 22 |ple.2' -|a "${1}"|
|00003600| 20 21 3d 20 22 2d 63 22 | 20 3b 20 74 68 65 6e 20 | != "-c"| ; then |
|00003610| 0a 20 20 65 63 68 6f 20 | 73 68 61 72 3a 20 57 69 |. echo |shar: Wi|
|00003620| 6c 6c 20 6e 6f 74 20 63 | 6c 6f 62 62 65 72 20 65 |ll not c|lobber e|
|00003630| 78 69 73 74 69 6e 67 20 | 66 69 6c 65 20 5c 22 27 |xisting |file \"'|
|00003640| 53 61 6d 70 6c 65 2e 32 | 27 5c 22 0a 65 6c 73 65 |Sample.2|'\".else|
|00003650| 0a 65 63 68 6f 20 73 68 | 61 72 3a 20 45 78 74 72 |.echo sh|ar: Extr|
|00003660| 61 63 74 69 6e 67 20 5c | 22 27 53 61 6d 70 6c 65 |acting \|"'Sample|
|00003670| 2e 32 27 5c 22 20 5c 28 | 33 39 34 20 63 68 61 72 |.2'\" \(|394 char|
|00003680| 61 63 74 65 72 73 5c 29 | 0a 73 65 64 20 22 73 2f |acters\)|.sed "s/|
|00003690| 5e 58 2f 2f 22 20 3e 27 | 53 61 6d 70 6c 65 2e 32 |^X//" >'|Sample.2|
|000036a0| 27 20 3c 3c 27 45 4e 44 | 5f 4f 46 5f 46 49 4c 45 |' <<'END|_OF_FILE|
|000036b0| 27 0a 58 74 65 73 74 20 | 66 69 6c 65 20 66 6f 72 |'.Xtest |file for|
|000036c0| 20 73 70 69 66 66 2e 0a | 58 74 68 65 72 65 20 69 | spiff..|Xthere i|
|000036d0| 73 20 61 20 77 6f 72 64 | 20 61 64 64 65 64 20 68 |s a word| added h|
|000036e0| 65 72 65 2e 0a 58 74 68 | 65 72 65 20 69 73 20 61 |ere..Xth|ere is a|
|000036f0| 20 20 20 20 20 20 20 20 | 20 77 6f 72 64 20 69 6e | | word in|
|00003700| 20 74 68 69 73 20 6c 69 | 6e 65 2e 0a 58 74 68 65 | this li|ne..Xthe|
|00003710| 72 65 20 69 73 20 61 20 | 77 6f 72 64 20 74 68 61 |re is a |word tha|
|00003720| 74 20 69 73 20 61 6c 74 | 65 72 65 64 20 68 65 72 |t is alt|ered her|
|00003730| 65 2e 0a 58 6e 6f 20 64 | 69 66 66 65 72 65 6e 63 |e..Xno d|ifferenc|
|00003740| 65 20 6f 6e 20 74 68 69 | 73 20 6c 69 6e 65 20 64 |e on thi|s line d|
|00003750| 75 65 20 74 6f 20 77 68 | 69 74 65 20 73 70 61 63 |ue to wh|ite spac|
|00003760| 65 2e 0a 58 0a 58 64 65 | 66 61 75 6c 74 20 61 62 |e..X.Xde|fault ab|
|00003770| 73 6f 6c 75 74 65 20 74 | 6f 6c 65 72 61 6e 63 65 |solute t|olerance|
|00003780| 20 73 68 6f 75 6c 64 20 | 62 65 20 2e 30 30 30 30 | should |be .0000|
|00003790| 30 30 30 30 30 31 20 20 | 20 0a 58 6e 6f 20 64 69 |000001 | .Xno di|
|000037a0| 66 66 65 72 65 6e 63 65 | 20 2d 2d 3e 20 30 2e 30 |fference| --> 0.0|
|000037b0| 30 30 30 30 30 30 30 30 | 31 20 20 64 69 66 66 65 |00000000|1 diffe|
|000037c0| 72 65 6e 74 20 2d 2d 3e | 20 30 2e 30 30 30 30 30 |rent -->| 0.00000|
|000037d0| 30 30 30 30 31 31 0a 58 | 64 65 66 61 75 6c 74 20 |000011.X|default |
|000037e0| 72 65 6c 61 74 69 76 65 | 20 74 6f 6c 65 72 61 6e |relative| toleran|
|000037f0| 63 65 20 73 68 6f 75 6c | 64 20 62 65 20 31 2e 30 |ce shoul|d be 1.0|
|00003800| 65 2d 31 30 20 20 20 0a | 58 6e 6f 20 64 69 66 66 |e-10 .|Xno diff|
|00003810| 65 72 65 6e 63 65 20 2d | 2d 3e 20 31 30 2e 30 30 |erence -|-> 10.00|
|00003820| 30 30 30 30 30 30 31 20 | 20 64 69 66 66 65 72 65 |0000001 | differe|
|00003830| 6e 74 20 2d 2d 3e 20 31 | 30 2e 30 30 30 30 30 30 |nt --> 1|0.000000|
|00003840| 30 30 31 31 0a 58 0a 45 | 4e 44 5f 4f 46 5f 46 49 |0011.X.E|ND_OF_FI|
|00003850| 4c 45 0a 69 66 20 74 65 | 73 74 20 33 39 34 20 2d |LE.if te|st 394 -|
|00003860| 6e 65 20 60 77 63 20 2d | 63 20 3c 27 53 61 6d 70 |ne `wc -|c <'Samp|
|00003870| 6c 65 2e 32 27 60 3b 20 | 74 68 65 6e 0a 20 20 20 |le.2'`; |then. |
|00003880| 20 65 63 68 6f 20 73 68 | 61 72 3a 20 5c 22 27 53 | echo sh|ar: \"'S|
|00003890| 61 6d 70 6c 65 2e 32 27 | 5c 22 20 75 6e 70 61 63 |ample.2'|\" unpac|
|000038a0| 6b 65 64 20 77 69 74 68 | 20 77 72 6f 6e 67 20 73 |ked with| wrong s|
|000038b0| 69 7a 65 21 0a 66 69 0a | 23 20 65 6e 64 20 6f 66 |ize!.fi.|# end of|
|000038c0| 20 27 53 61 6d 70 6c 65 | 2e 32 27 0a 66 69 0a 69 | 'Sample|.2'.fi.i|
|000038d0| 66 20 74 65 73 74 20 2d | 66 20 27 53 61 6d 70 6c |f test -|f 'Sampl|
|000038e0| 65 2e 33 27 20 2d 61 20 | 22 24 7b 31 7d 22 20 21 |e.3' -a |"${1}" !|
|000038f0| 3d 20 22 2d 63 22 20 3b | 20 74 68 65 6e 20 0a 20 |= "-c" ;| then . |
|00003900| 20 65 63 68 6f 20 73 68 | 61 72 3a 20 57 69 6c 6c | echo sh|ar: Will|
|00003910| 20 6e 6f 74 20 63 6c 6f | 62 62 65 72 20 65 78 69 | not clo|bber exi|
|00003920| 73 74 69 6e 67 20 66 69 | 6c 65 20 5c 22 27 53 61 |sting fi|le \"'Sa|
|00003930| 6d 70 6c 65 2e 33 27 5c | 22 0a 65 6c 73 65 0a 65 |mple.3'\|".else.e|
|00003940| 63 68 6f 20 73 68 61 72 | 3a 20 45 78 74 72 61 63 |cho shar|: Extrac|
|00003950| 74 69 6e 67 20 5c 22 27 | 53 61 6d 70 6c 65 2e 33 |ting \"'|Sample.3|
|00003960| 27 5c 22 20 5c 28 32 30 | 37 32 20 63 68 61 72 61 |'\" \(20|72 chara|
|00003970| 63 74 65 72 73 5c 29 0a | 73 65 64 20 22 73 2f 5e |cters\).|sed "s/^|
|00003980| 58 2f 2f 22 20 3e 27 53 | 61 6d 70 6c 65 2e 33 27 |X//" >'S|ample.3'|
|00003990| 20 3c 3c 27 45 4e 44 5f | 4f 46 5f 46 49 4c 45 27 | <<'END_|OF_FILE'|
|000039a0| 0a 58 73 70 69 66 66 77 | 6f 72 64 20 72 65 6d 20 |.Xspiffw|ord rem |
|000039b0| 74 68 69 73 20 66 69 6c | 65 20 73 68 6f 75 6c 64 |this fil|e should|
|000039c0| 20 62 65 20 6e 61 6d 65 | 64 20 53 61 6d 70 6c 65 | be name|d Sample|
|000039d0| 2e 33 0a 58 73 70 69 66 | 66 77 6f 72 64 20 72 65 |.3.Xspif|fword re|
|000039e0| 6d 20 69 74 20 69 73 20 | 61 20 74 65 73 74 20 69 |m it is |a test i|
|000039f0| 6e 70 75 74 20 66 69 6c | 65 20 66 6f 72 20 73 70 |nput fil|e for sp|
|00003a00| 69 66 66 0a 58 73 70 69 | 66 66 77 6f 72 64 20 72 |iff.Xspi|ffword r|
|00003a10| 65 6d 20 69 74 20 73 68 | 6f 75 6c 64 20 62 65 20 |em it sh|ould be |
|00003a20| 63 6f 6d 70 61 72 65 64 | 20 77 69 74 68 20 61 20 |compared| with a |
|00003a30| 66 69 6c 65 20 6e 61 6d | 65 64 20 53 61 6d 70 6c |file nam|ed Sampl|
|00003a40| 65 2e 34 2c 20 74 6f 20 | 75 73 65 20 69 74 0a 58 |e.4, to |use it.X|
|00003a50| 73 70 69 66 66 77 6f 72 | 64 20 72 65 6d 20 65 78 |spiffwor|d rem ex|
|00003a60| 65 63 75 74 65 3a 20 73 | 70 69 66 66 20 2d 73 20 |ecute: s|piff -s |
|00003a70| 27 63 6f 6d 6d 61 6e 64 | 20 73 70 69 66 66 77 6f |'command| spiffwo|
|00003a80| 72 64 27 20 53 61 6d 70 | 6c 65 2e 33 20 53 61 6d |rd' Samp|le.3 Sam|
|00003a90| 70 6c 65 2e 34 0a 58 73 | 70 69 66 66 77 6f 72 64 |ple.4.Xs|piffword|
|00003aa0| 20 72 65 6d 20 74 68 65 | 20 2d 73 20 61 72 67 75 | rem the| -s argu|
|00003ab0| 6d 65 6e 74 20 69 73 20 | 20 65 73 73 65 6e 74 69 |ment is | essenti|
|00003ac0| 61 6c 2c 20 6f 74 68 65 | 72 77 69 73 65 20 73 70 |al, othe|rwise sp|
|00003ad0| 69 66 66 20 77 69 6c 6c | 0a 58 73 70 69 66 66 77 |iff will|.Xspiffw|
|00003ae0| 6f 72 64 20 72 65 6d 20 | 77 69 6c 6c 20 6e 6f 74 |ord rem |will not|
|00003af0| 20 72 65 63 6f 67 6e 69 | 7a 65 64 20 74 68 65 73 | recogni|zed thes|
|00003b00| 65 20 63 6f 6d 6d 65 6e | 74 73 20 66 6f 72 20 77 |e commen|ts for w|
|00003b10| 68 61 74 20 74 68 65 79 | 20 61 72 65 2e 0a 58 73 |hat they| are..Xs|
|00003b20| 70 69 66 66 77 6f 72 64 | 20 72 65 6d 20 66 69 72 |piffword| rem fir|
|00003b30| 73 74 20 77 65 27 6c 6c | 20 63 68 65 63 6b 20 74 |st we'll| check t|
|00003b40| 68 65 20 64 65 66 61 75 | 6c 74 20 74 6f 6c 65 72 |he defau|lt toler|
|00003b50| 61 6e 63 65 73 2e 20 20 | 74 68 69 73 20 69 73 20 |ances. |this is |
|00003b60| 74 68 65 0a 58 73 70 69 | 66 66 77 6f 72 64 20 72 |the.Xspi|ffword r|
|00003b70| 65 6d 20 73 61 6d 65 20 | 74 65 73 74 20 61 73 20 |em same |test as |
|00003b80| 69 73 20 66 6f 75 6e 64 | 20 69 6e 20 53 61 6d 70 |is found| in Samp|
|00003b90| 6c 65 2e 31 2f 53 61 6d | 70 6c 65 2e 32 0a 58 64 |le.1/Sam|ple.2.Xd|
|00003ba0| 65 66 61 75 6c 74 20 61 | 62 73 6f 6c 75 74 65 20 |efault a|bsolute |
|00003bb0| 74 6f 6c 65 72 61 6e 63 | 65 20 73 68 6f 75 6c 64 |toleranc|e should|
|00003bc0| 20 62 65 20 31 65 2d 31 | 30 20 20 20 0a 58 6e 6f | be 1e-1|0 .Xno|
|00003bd0| 20 64 69 66 66 65 72 65 | 6e 63 65 20 2d 2d 3e 20 | differe|nce --> |
|00003be0| 30 2e 30 20 20 20 20 20 | 20 20 20 20 20 20 64 69 |0.0 | di|
|00003bf0| 66 66 65 72 65 6e 74 20 | 2d 2d 3e 20 30 2e 30 0a |fferent |--> 0.0.|
|00003c00| 58 64 65 66 61 75 6c 74 | 20 72 65 6c 61 74 69 76 |Xdefault| relativ|
|00003c10| 65 20 74 6f 6c 65 72 61 | 6e 63 65 20 73 68 6f 75 |e tolera|nce shou|
|00003c20| 6c 64 20 62 65 20 31 65 | 2d 31 30 20 20 20 0a 58 |ld be 1e|-10 .X|
|00003c30| 6e 6f 20 64 69 66 66 65 | 72 65 6e 63 65 20 2d 2d |no diffe|rence --|
|00003c40| 3e 20 31 30 2e 20 20 20 | 20 20 20 20 20 20 20 20 |> 10. | |
|00003c50| 64 69 66 66 65 72 65 6e | 74 20 2d 2d 3e 20 31 30 |differen|t --> 10|
|00003c60| 2e 30 30 30 30 30 0a 58 | 73 70 69 66 66 77 6f 72 |.00000.X|spiffwor|
|00003c70| 64 20 72 65 6d 20 4e 6f | 74 65 20 74 68 61 74 20 |d rem No|te that |
|00003c80| 73 70 69 66 66 20 73 61 | 69 64 20 74 68 61 74 20 |spiff sa|id that |
|00003c90| 74 68 65 20 64 69 66 66 | 65 72 65 6e 63 65 73 20 |the diff|erences |
|00003ca0| 77 65 72 65 20 6f 6e 20 | 6c 69 6e 65 73 20 32 20 |were on |lines 2 |
|00003cb0| 61 6e 64 20 34 0a 58 73 | 70 69 66 66 77 6f 72 64 |and 4.Xs|piffword|
|00003cc0| 20 72 65 6d 20 6f 66 20 | 74 68 65 20 69 6e 70 75 | rem of |the inpu|
|00003cd0| 74 20 66 69 6c 65 73 20 | 65 76 65 6e 20 74 68 6f |t files |even tho|
|00003ce0| 75 67 68 20 74 68 65 79 | 20 77 65 72 65 20 72 65 |ugh they| were re|
|00003cf0| 61 6c 6c 79 20 6f 6e 20 | 6c 69 6e 65 73 20 31 30 |ally on |lines 10|
|00003d00| 20 61 6e 64 0a 58 73 70 | 69 66 66 77 6f 72 64 20 | and.Xsp|iffword |
|00003d10| 72 65 6d 20 6f 66 20 74 | 68 69 73 20 66 69 6c 65 |rem of t|his file|
|00003d20| 2e 0a 58 73 70 69 66 66 | 77 6f 72 64 20 72 65 6d |..Xspiff|word rem|
|00003d30| 20 54 68 61 74 27 73 20 | 62 65 63 61 75 73 65 20 | That's |because |
|00003d40| 73 70 69 66 66 20 64 6f | 65 73 20 6e 6f 74 20 63 |spiff do|es not c|
|00003d50| 6f 75 6e 74 20 6c 69 6e | 65 73 20 77 69 74 68 20 |ount lin|es with |
|00003d60| 63 6f 6d 6d 61 6e 64 73 | 2e 0a 58 73 70 69 66 66 |commands|..Xspiff|
|00003d70| 77 6f 72 64 20 72 65 6d | 20 41 73 20 70 61 72 74 |word rem| As part|
|00003d80| 20 6f 66 20 73 70 69 66 | 66 27 73 20 64 65 73 69 | of spif|f's desi|
|00003d90| 67 6e 2c 20 69 74 20 69 | 73 20 61 73 73 75 6d 65 |gn, it i|s assume|
|00003da0| 64 20 74 68 61 74 20 22 | 65 6d 62 65 64 64 65 64 |d that "|embedded|
|00003db0| 20 63 6f 6d 6d 61 6e 64 | 73 22 0a 58 73 70 69 66 | command|s".Xspif|
|00003dc0| 66 77 6f 72 64 20 72 65 | 6d 20 73 75 63 68 20 61 |fword re|m such a|
|00003dd0| 73 20 74 68 65 73 65 20 | 61 72 65 20 6e 6f 74 20 |s these |are not |
|00003de0| 6f 66 20 64 69 72 65 63 | 74 20 69 6e 74 65 72 65 |of direc|t intere|
|00003df0| 73 74 20 61 6e 64 20 68 | 61 76 65 20 62 65 65 6e |st and h|ave been|
|00003e00| 20 61 64 64 65 64 0a 58 | 73 70 69 66 66 77 6f 72 | added.X|spiffwor|
|00003e10| 64 20 72 65 6d 20 73 6f | 6c 65 79 20 66 6f 72 20 |d rem so|ley for |
|00003e20| 74 68 65 20 70 75 72 70 | 6f 73 65 20 6f 66 20 63 |the purp|ose of c|
|00003e30| 6f 6e 74 72 6f 6c 6c 69 | 6e 67 20 74 68 65 20 73 |ontrolli|ng the s|
|00003e40| 70 69 66 66 69 6e 67 20 | 70 72 6f 63 65 73 73 2e |piffing |process.|
|00003e50| 0a 58 73 70 69 66 66 77 | 6f 72 64 20 72 65 6d 20 |.Xspiffw|ord rem |
|00003e60| 4f 4b 2e 20 4e 6f 77 20 | 77 65 27 6c 6c 20 74 72 |OK. Now |we'll tr|
|00003e70| 79 20 63 68 61 6e 67 69 | 6e 67 20 73 6f 6d 65 20 |y changi|ng some |
|00003e80| 74 68 69 6e 67 73 2e 20 | 66 69 72 73 74 2c 20 77 |things. |first, w|
|00003e90| 65 27 6c 6c 20 61 64 64 | 20 0a 58 73 70 69 66 66 |e'll add| .Xspiff|
|00003ea0| 77 6f 72 64 20 72 65 6d | 20 61 20 63 6f 6d 6d 65 |word rem| a comme|
|00003eb0| 6e 74 69 6e 67 20 63 6f | 6e 76 65 6e 74 69 6f 6e |nting co|nvention|
|00003ec0| 2c 20 65 76 65 72 79 74 | 68 69 6e 67 20 66 72 6f |, everyt|hing fro|
|00003ed0| 6d 20 23 20 74 6f 20 65 | 6e 64 20 6f 66 20 6c 69 |m # to e|nd of li|
|00003ee0| 6e 65 0a 58 73 70 69 66 | 66 77 6f 72 64 20 72 65 |ne.Xspif|fword re|
|00003ef0| 6d 20 77 69 6c 6c 20 62 | 65 20 69 67 6e 6f 72 65 |m will b|e ignore|
|00003f00| 64 2e 0a 58 73 70 69 66 | 66 77 6f 72 64 20 63 6f |d..Xspif|fword co|
|00003f10| 6d 6d 65 6e 74 20 23 20 | 24 0a 58 74 68 65 72 65 |mment # |$.Xthere|
|00003f20| 20 73 68 6f 75 6c 64 20 | 62 65 20 4e 4f 20 64 69 | should |be NO di|
|00003f30| 66 66 65 72 65 6e 63 65 | 73 20 6f 6e 20 74 68 69 |fference|s on thi|
|00003f40| 73 20 6c 69 6e 65 20 21 | 21 21 21 20 23 20 4e 61 |s line !|!!! # Na|
|00003f50| 68 2c 20 4e 61 68 2c 20 | 63 61 6e 27 74 20 73 65 |h, Nah, |can't se|
|00003f60| 65 20 6d 65 20 21 21 0a | 58 73 70 69 66 66 77 6f |e me !!.|Xspiffwo|
|00003f70| 72 64 20 72 65 6d 20 57 | 65 6c 6c 2c 20 74 68 61 |rd rem W|ell, tha|
|00003f80| 74 20 77 61 73 20 66 75 | 6e 2e 20 4e 6f 77 20 77 |t was fu|n. Now w|
|00003f90| 65 27 6c 6c 20 69 67 6e | 6f 72 65 20 61 6c 6c 20 |e'll ign|ore all |
|00003fa0| 64 69 66 66 65 72 65 6e | 63 65 73 0a 58 73 70 69 |differen|ces.Xspi|
|00003fb0| 66 66 77 6f 72 64 20 74 | 6f 6c 20 69 0a 58 73 70 |ffword t|ol i.Xsp|
|00003fc0| 69 66 66 77 6f 72 64 20 | 72 65 6d 20 61 6e 64 20 |iffword |rem and |
|00003fd0| 74 68 65 72 65 20 73 68 | 6f 75 6c 64 20 62 65 20 |there sh|ould be |
|00003fe0| 6e 6f 20 64 69 66 66 65 | 72 65 6e 63 65 73 20 74 |no diffe|rences t|
|00003ff0| 68 65 20 66 6f 6c 6c 6f | 77 69 6e 67 20 6c 69 6e |he follo|wing lin|
|00004000| 65 73 0a 58 6e 6f 20 64 | 69 66 66 65 72 65 6e 63 |es.Xno d|ifferenc|
|00004010| 65 20 2d 2d 3e 20 30 2e | 30 20 20 20 20 20 20 20 |e --> 0.|0 |
|00004020| 20 20 20 20 4e 4f 20 64 | 69 66 66 65 72 65 6e 63 | NO d|ifferenc|
|00004030| 65 20 2d 2d 3e 20 30 2e | 30 0a 58 6e 6f 20 64 69 |e --> 0.|0.Xno di|
|00004040| 66 66 65 72 65 6e 63 65 | 20 2d 2d 3e 20 31 30 2e |fference| --> 10.|
|00004050| 20 20 20 20 20 20 20 20 | 20 20 20 4e 4f 20 64 69 | | NO di|
|00004060| 66 66 65 72 65 6e 63 65 | 20 2d 2d 3e 20 31 30 2e |fference| --> 10.|
|00004070| 30 30 30 30 30 0a 58 73 | 70 69 66 66 77 6f 72 64 |00000.Xs|piffword|
|00004080| 20 72 65 6d 20 6e 6f 77 | 20 77 65 27 6c 6c 20 73 | rem now| we'll s|
|00004090| 65 74 20 74 68 65 20 74 | 6f 6c 65 72 61 6e 63 65 |et the t|olerance|
|000040a0| 20 66 6f 72 20 74 68 65 | 20 73 65 63 6f 6e 64 20 | for the| second |
|000040b0| 6e 75 6d 62 65 72 0a 58 | 73 70 69 66 66 77 6f 72 |number.X|spiffwor|
|000040c0| 64 20 72 65 6d 20 6f 6e | 20 65 61 63 68 20 6c 69 |d rem on| each li|
|000040d0| 6e 65 2c 20 74 6f 20 62 | 65 20 6c 6f 77 65 72 20 |ne, to b|e lower |
|000040e0| 74 68 61 6e 20 74 68 65 | 20 6f 74 68 65 72 73 2e |than the| others.|
|000040f0| 0a 58 73 70 69 66 66 77 | 6f 72 64 20 74 6f 6c 20 |.Xspiffw|ord tol |
|00004100| 61 30 2e 30 32 20 3b 20 | 61 30 2e 30 31 20 3b 20 |a0.02 ; |a0.01 ; |
|00004110| 61 30 2e 30 32 0a 58 73 | 70 69 66 66 77 6f 72 64 |a0.02.Xs|piffword|
|00004120| 20 72 65 6d 20 61 6e 64 | 20 6f 6e 6c 79 20 74 68 | rem and| only th|
|00004130| 65 20 6d 69 64 64 6c 65 | 20 6e 75 6d 62 65 72 20 |e middle| number |
|00004140| 73 68 6f 75 6c 64 20 61 | 70 70 65 61 72 20 64 69 |should a|ppear di|
|00004150| 66 66 65 72 65 6e 74 0a | 58 6e 6f 74 20 64 69 66 |fferent.|Xnot dif|
|00004160| 66 65 72 65 6e 74 20 2d | 2d 3e 20 30 2e 30 20 20 |ferent -|-> 0.0 |
|00004170| 20 20 64 69 66 66 65 72 | 65 6e 74 20 2d 2d 3e 20 | differ|ent --> |
|00004180| 30 2e 30 20 20 20 20 6e | 6f 74 20 64 69 66 66 65 |0.0 n|ot diffe|
|00004190| 72 65 6e 74 20 2d 2d 3e | 20 30 2e 30 0a 58 73 70 |rent -->| 0.0.Xsp|
|000041a0| 69 66 66 77 6f 72 64 20 | 72 65 6d 20 59 6f 75 20 |iffword |rem You |
|000041b0| 67 65 74 20 74 68 65 20 | 69 64 65 61 2e 20 45 6e |get the |idea. En|
|000041c0| 6f 75 67 68 20 66 75 6e | 20 66 6f 72 20 6e 6f 77 |ough fun| for now|
|000041d0| 2e 0a 58 42 79 65 2c 20 | 42 79 65 2e 0a 45 4e 44 |..XBye, |Bye..END|
|000041e0| 5f 4f 46 5f 46 49 4c 45 | 0a 69 66 20 74 65 73 74 |_OF_FILE|.if test|
|000041f0| 20 32 30 37 32 20 2d 6e | 65 20 60 77 63 20 2d 63 | 2072 -n|e `wc -c|
|00004200| 20 3c 27 53 61 6d 70 6c | 65 2e 33 27 60 3b 20 74 | <'Sampl|e.3'`; t|
|00004210| 68 65 6e 0a 20 20 20 20 | 65 63 68 6f 20 73 68 61 |hen. |echo sha|
|00004220| 72 3a 20 5c 22 27 53 61 | 6d 70 6c 65 2e 33 27 5c |r: \"'Sa|mple.3'\|
|00004230| 22 20 75 6e 70 61 63 6b | 65 64 20 77 69 74 68 20 |" unpack|ed with |
|00004240| 77 72 6f 6e 67 20 73 69 | 7a 65 21 0a 66 69 0a 23 |wrong si|ze!.fi.#|
|00004250| 20 65 6e 64 20 6f 66 20 | 27 53 61 6d 70 6c 65 2e | end of |'Sample.|
|00004260| 33 27 0a 66 69 0a 69 66 | 20 74 65 73 74 20 2d 66 |3'.fi.if| test -f|
|00004270| 20 27 53 61 6d 70 6c 65 | 2e 34 27 20 2d 61 20 22 | 'Sample|.4' -a "|
|00004280| 24 7b 31 7d 22 20 21 3d | 20 22 2d 63 22 20 3b 20 |${1}" !=| "-c" ; |
|00004290| 74 68 65 6e 20 0a 20 20 | 65 63 68 6f 20 73 68 61 |then . |echo sha|
|000042a0| 72 3a 20 57 69 6c 6c 20 | 6e 6f 74 20 63 6c 6f 62 |r: Will |not clob|
|000042b0| 62 65 72 20 65 78 69 73 | 74 69 6e 67 20 66 69 6c |ber exis|ting fil|
|000042c0| 65 20 5c 22 27 53 61 6d | 70 6c 65 2e 34 27 5c 22 |e \"'Sam|ple.4'\"|
|000042d0| 0a 65 6c 73 65 0a 65 63 | 68 6f 20 73 68 61 72 3a |.else.ec|ho shar:|
|000042e0| 20 45 78 74 72 61 63 74 | 69 6e 67 20 5c 22 27 53 | Extract|ing \"'S|
|000042f0| 61 6d 70 6c 65 2e 34 27 | 5c 22 20 5c 28 32 31 31 |ample.4'|\" \(211|
|00004300| 30 20 63 68 61 72 61 63 | 74 65 72 73 5c 29 0a 73 |0 charac|ters\).s|
|00004310| 65 64 20 22 73 2f 5e 58 | 2f 2f 22 20 3e 27 53 61 |ed "s/^X|//" >'Sa|
|00004320| 6d 70 6c 65 2e 34 27 20 | 3c 3c 27 45 4e 44 5f 4f |mple.4' |<<'END_O|
|00004330| 46 5f 46 49 4c 45 27 0a | 58 73 70 69 66 66 77 6f |F_FILE'.|Xspiffwo|
|00004340| 72 64 20 72 65 6d 20 74 | 68 69 73 20 66 69 6c 65 |rd rem t|his file|
|00004350| 20 73 68 6f 75 6c 64 20 | 62 65 20 6e 61 6d 65 64 | should |be named|
|00004360| 20 53 61 6d 70 6c 65 2e | 34 0a 58 73 70 69 66 66 | Sample.|4.Xspiff|
|00004370| 77 6f 72 64 20 72 65 6d | 20 69 74 20 69 73 20 61 |word rem| it is a|
|00004380| 20 74 65 73 74 20 69 6e | 70 75 74 20 66 69 6c 65 | test in|put file|
|00004390| 20 66 6f 72 20 73 70 69 | 66 66 0a 58 73 70 69 66 | for spi|ff.Xspif|
|000043a0| 66 77 6f 72 64 20 72 65 | 6d 20 69 74 20 73 68 6f |fword re|m it sho|
|000043b0| 75 6c 64 20 62 65 20 63 | 6f 6d 70 61 72 65 64 20 |uld be c|ompared |
|000043c0| 77 69 74 68 20 61 20 66 | 69 6c 65 20 6e 61 6d 65 |with a f|ile name|
|000043d0| 64 20 53 61 6d 70 6c 65 | 2e 33 2c 20 74 6f 20 75 |d Sample|.3, to u|
|000043e0| 73 65 20 69 74 0a 58 73 | 70 69 66 66 77 6f 72 64 |se it.Xs|piffword|
|000043f0| 20 72 65 6d 20 65 78 65 | 63 75 74 65 3a 20 73 70 | rem exe|cute: sp|
|00004400| 69 66 66 20 2d 73 20 27 | 63 6f 6d 6d 61 6e 64 20 |iff -s '|command |
|00004410| 73 70 69 66 66 77 6f 72 | 64 27 20 53 61 6d 70 6c |spiffwor|d' Sampl|
|00004420| 65 2e 33 20 53 61 6d 70 | 6c 65 2e 34 0a 58 73 70 |e.3 Samp|le.4.Xsp|
|00004430| 69 66 66 77 6f 72 64 20 | 72 65 6d 20 74 68 65 20 |iffword |rem the |
|00004440| 2d 73 20 61 72 67 75 6d | 65 6e 74 20 69 73 20 20 |-s argum|ent is |
|00004450| 65 73 73 65 6e 74 69 61 | 6c 2c 20 6f 74 68 65 72 |essentia|l, other|
|00004460| 77 69 73 65 20 73 70 69 | 66 66 20 77 69 6c 6c 0a |wise spi|ff will.|
|00004470| 58 73 70 69 66 66 77 6f | 72 64 20 72 65 6d 20 77 |Xspiffwo|rd rem w|
|00004480| 69 6c 6c 20 6e 6f 74 20 | 72 65 63 6f 67 6e 69 7a |ill not |recogniz|
|00004490| 65 64 20 74 68 65 73 65 | 20 63 6f 6d 6d 65 6e 74 |ed these| comment|
|000044a0| 73 20 66 6f 72 20 77 68 | 61 74 20 74 68 65 79 20 |s for wh|at they |
|000044b0| 61 72 65 2e 0a 58 73 70 | 69 66 66 77 6f 72 64 20 |are..Xsp|iffword |
|000044c0| 72 65 6d 20 66 69 72 73 | 74 20 77 65 27 6c 6c 20 |rem firs|t we'll |
|000044d0| 63 68 65 63 6b 20 74 68 | 65 20 64 65 66 61 75 6c |check th|e defaul|
|000044e0| 74 20 74 6f 6c 65 72 61 | 6e 63 65 73 2e 20 20 74 |t tolera|nces. t|
|000044f0| 68 69 73 20 69 73 20 74 | 68 65 0a 58 73 70 69 66 |his is t|he.Xspif|
|00004500| 66 77 6f 72 64 20 72 65 | 6d 20 73 61 6d 65 20 74 |fword re|m same t|
|00004510| 65 73 74 20 61 73 20 69 | 73 20 66 6f 75 6e 64 20 |est as i|s found |
|00004520| 69 6e 20 53 61 6d 70 6c | 65 2e 31 2f 53 61 6d 70 |in Sampl|e.1/Samp|
|00004530| 6c 65 2e 32 0a 58 64 65 | 66 61 75 6c 74 20 61 62 |le.2.Xde|fault ab|
|00004540| 73 6f 6c 75 74 65 20 74 | 6f 6c 65 72 61 6e 63 65 |solute t|olerance|
|00004550| 20 73 68 6f 75 6c 64 20 | 62 65 20 2e 30 30 30 30 | should |be .0000|
|00004560| 30 30 30 30 30 31 20 20 | 20 0a 58 6e 6f 20 64 69 |000001 | .Xno di|
|00004570| 66 66 65 72 65 6e 63 65 | 20 2d 2d 3e 20 30 2e 30 |fference| --> 0.0|
|00004580| 30 30 30 30 30 30 30 30 | 31 20 20 64 69 66 66 65 |00000000|1 diffe|
|00004590| 72 65 6e 74 20 2d 2d 3e | 20 30 2e 30 30 30 30 30 |rent -->| 0.00000|
|000045a0| 30 30 30 30 31 31 0a 58 | 64 65 66 61 75 6c 74 20 |000011.X|default |
|000045b0| 72 65 6c 61 74 69 76 65 | 20 74 6f 6c 65 72 61 6e |relative| toleran|
|000045c0| 63 65 20 73 68 6f 75 6c | 64 20 62 65 20 31 2e 30 |ce shoul|d be 1.0|
|000045d0| 65 2d 31 30 20 20 20 0a | 58 6e 6f 20 64 69 66 66 |e-10 .|Xno diff|
|000045e0| 65 72 65 6e 63 65 20 2d | 2d 3e 20 31 30 2e 30 30 |erence -|-> 10.00|
|000045f0| 30 30 30 30 30 30 31 20 | 20 64 69 66 66 65 72 65 |0000001 | differe|
|00004600| 6e 74 20 2d 2d 3e 20 31 | 30 2e 30 30 30 30 30 30 |nt --> 1|0.000000|
|00004610| 30 30 31 31 0a 58 73 70 | 69 66 66 77 6f 72 64 20 |0011.Xsp|iffword |
|00004620| 72 65 6d 20 4e 6f 74 65 | 20 74 68 61 74 20 73 70 |rem Note| that sp|
|00004630| 69 66 66 20 73 61 69 64 | 20 74 68 61 74 20 74 68 |iff said| that th|
|00004640| 65 20 64 69 66 66 65 72 | 65 6e 63 65 73 20 77 65 |e differ|ences we|
|00004650| 72 65 20 6f 6e 20 6c 69 | 6e 65 73 20 31 20 61 6e |re on li|nes 1 an|
|00004660| 64 20 33 0a 58 73 70 69 | 66 66 77 6f 72 64 20 72 |d 3.Xspi|ffword r|
|00004670| 65 6d 20 6f 66 20 74 68 | 65 20 69 6e 70 75 74 20 |em of th|e input |
|00004680| 66 69 6c 65 73 20 65 76 | 65 6e 20 74 68 6f 75 67 |files ev|en thoug|
|00004690| 68 20 74 68 65 79 20 77 | 65 72 65 20 72 65 61 6c |h they w|ere real|
|000046a0| 6c 79 20 6f 6e 20 6c 69 | 6e 65 73 20 31 30 20 61 |ly on li|nes 10 a|
|000046b0| 6e 64 0a 58 73 70 69 66 | 66 77 6f 72 64 20 72 65 |nd.Xspif|fword re|
|000046c0| 6d 20 6f 66 20 74 68 69 | 73 20 66 69 6c 65 2e 0a |m of thi|s file..|
|000046d0| 58 73 70 69 66 66 77 6f | 72 64 20 72 65 6d 20 54 |Xspiffwo|rd rem T|
|000046e0| 68 61 74 27 73 20 62 65 | 63 61 75 73 65 20 73 70 |hat's be|cause sp|
|000046f0| 69 66 66 20 64 6f 65 73 | 20 6e 6f 74 20 63 6f 75 |iff does| not cou|
|00004700| 6e 74 20 6c 69 6e 65 73 | 20 77 69 74 68 20 63 6f |nt lines| with co|
|00004710| 6d 6d 61 6e 64 73 2e 0a | 58 73 70 69 66 66 77 6f |mmands..|Xspiffwo|
|00004720| 72 64 20 72 65 6d 20 41 | 73 20 70 61 72 74 20 6f |rd rem A|s part o|
|00004730| 66 20 73 70 69 66 66 27 | 73 20 64 65 73 69 67 6e |f spiff'|s design|
|00004740| 2c 20 69 74 20 69 73 20 | 61 73 73 75 6d 65 64 20 |, it is |assumed |
|00004750| 74 68 61 74 20 22 65 6d | 62 65 64 64 65 64 20 63 |that "em|bedded c|
|00004760| 6f 6d 6d 61 6e 64 73 22 | 0a 58 73 70 69 66 66 77 |ommands"|.Xspiffw|
|00004770| 6f 72 64 20 72 65 6d 20 | 73 75 63 68 20 61 73 20 |ord rem |such as |
|00004780| 74 68 65 73 65 20 61 72 | 65 20 6e 6f 74 20 6f 66 |these ar|e not of|
|00004790| 20 64 69 72 65 63 74 20 | 69 6e 74 65 72 65 73 74 | direct |interest|
|000047a0| 20 61 6e 64 20 68 61 76 | 65 20 62 65 65 6e 20 61 | and hav|e been a|
|000047b0| 64 64 65 64 0a 58 73 70 | 69 66 66 77 6f 72 64 20 |dded.Xsp|iffword |
|000047c0| 72 65 6d 20 73 6f 6c 65 | 79 20 66 6f 72 20 74 68 |rem sole|y for th|
|000047d0| 65 20 70 75 72 70 6f 73 | 65 20 6f 66 20 63 6f 6e |e purpos|e of con|
|000047e0| 74 72 6f 6c 6c 69 6e 67 | 20 74 68 65 20 73 70 69 |trolling| the spi|
|000047f0| 66 66 69 6e 67 20 70 72 | 6f 63 65 73 73 2e 0a 58 |ffing pr|ocess..X|
|00004800| 73 70 69 66 66 77 6f 72 | 64 20 72 65 6d 20 4f 4b |spiffwor|d rem OK|
|00004810| 2e 20 4e 6f 77 20 77 65 | 27 6c 6c 20 74 72 79 20 |. Now we|'ll try |
|00004820| 63 68 61 6e 67 69 6e 67 | 20 73 6f 6d 65 20 74 68 |changing| some th|
|00004830| 69 6e 67 73 2e 20 66 69 | 72 73 74 2c 20 77 65 27 |ings. fi|rst, we'|
|00004840| 6c 6c 20 61 64 64 20 0a | 58 73 70 69 66 66 77 6f |ll add .|Xspiffwo|
|00004850| 72 64 20 72 65 6d 20 61 | 20 63 6f 6d 6d 65 6e 74 |rd rem a| comment|
|00004860| 69 6e 67 20 63 6f 6e 76 | 65 6e 74 69 6f 6e 2c 20 |ing conv|ention, |
|00004870| 65 76 65 72 79 74 68 69 | 6e 67 20 66 72 6f 6d 20 |everythi|ng from |
|00004880| 23 20 74 6f 20 65 6e 64 | 20 6f 66 20 6c 69 6e 65 |# to end| of line|
|00004890| 0a 58 73 70 69 66 66 77 | 6f 72 64 20 72 65 6d 20 |.Xspiffw|ord rem |
|000048a0| 77 69 6c 6c 20 62 65 20 | 69 67 6e 6f 72 65 64 2e |will be |ignored.|
|000048b0| 0a 58 73 70 69 66 66 77 | 6f 72 64 20 63 6f 6d 6d |.Xspiffw|ord comm|
|000048c0| 65 6e 74 20 23 20 24 0a | 58 74 68 65 72 65 20 73 |ent # $.|Xthere s|
|000048d0| 68 6f 75 6c 64 20 62 65 | 20 4e 4f 20 64 69 66 66 |hould be| NO diff|
|000048e0| 65 72 65 6e 63 65 73 20 | 6f 6e 20 74 68 69 73 20 |erences |on this |
|000048f0| 6c 69 6e 65 20 21 21 21 | 21 20 23 20 4e 6f 20 64 |line !!!|! # No d|
|00004900| 69 66 66 65 72 65 6e 63 | 65 20 68 65 72 65 20 21 |ifferenc|e here !|
|00004910| 21 0a 58 73 70 69 66 66 | 77 6f 72 64 20 72 65 6d |!.Xspiff|word rem|
|00004920| 20 57 65 6c 6c 2c 20 74 | 68 61 74 20 77 61 73 20 | Well, t|hat was |
|00004930| 66 75 6e 2e 20 4e 6f 77 | 20 77 65 27 6c 6c 20 69 |fun. Now| we'll i|
|00004940| 67 6e 6f 72 65 20 61 6c | 6c 20 64 69 66 66 65 72 |gnore al|l differ|
|00004950| 65 6e 63 65 73 0a 58 73 | 70 69 66 66 77 6f 72 64 |ences.Xs|piffword|
|00004960| 20 74 6f 6c 20 69 0a 58 | 73 70 69 66 66 77 6f 72 | tol i.X|spiffwor|
|00004970| 64 20 72 65 6d 20 61 6e | 64 20 74 68 65 72 65 20 |d rem an|d there |
|00004980| 73 68 6f 75 6c 64 20 62 | 65 20 6e 6f 20 64 69 66 |should b|e no dif|
|00004990| 66 65 72 65 6e 63 65 73 | 20 74 68 65 20 66 6f 6c |ferences| the fol|
|000049a0| 6c 6f 77 69 6e 67 20 6c | 69 6e 65 73 0a 58 6e 6f |lowing l|ines.Xno|
|000049b0| 20 64 69 66 66 65 72 65 | 6e 63 65 20 2d 2d 3e 20 | differe|nce --> |
|000049c0| 30 2e 30 30 30 30 30 30 | 30 30 30 31 20 20 4e 4f |0.000000|0001 NO|
|000049d0| 20 64 69 66 66 65 72 65 | 6e 63 65 20 2d 2d 3e 20 | differe|nce --> |
|000049e0| 30 2e 30 30 30 30 30 30 | 30 30 30 31 31 0a 58 6e |0.000000|00011.Xn|
|000049f0| 6f 20 64 69 66 66 65 72 | 65 6e 63 65 20 2d 2d 3e |o differ|ence -->|
|00004a00| 20 31 30 2e 30 30 30 30 | 30 30 30 30 31 20 20 4e | 10.0000|00001 N|
|00004a10| 4f 20 64 69 66 66 65 72 | 65 6e 63 65 20 2d 2d 3e |O differ|ence -->|
|00004a20| 20 31 30 2e 30 30 30 30 | 30 30 30 30 31 31 0a 58 | 10.0000|000011.X|
|00004a30| 73 70 69 66 66 77 6f 72 | 64 20 72 65 6d 20 6e 6f |spiffwor|d rem no|
|00004a40| 77 20 77 65 27 6c 6c 20 | 73 65 74 20 74 68 65 20 |w we'll |set the |
|00004a50| 74 6f 6c 65 72 61 6e 63 | 65 20 66 6f 72 20 74 68 |toleranc|e for th|
|00004a60| 65 20 73 65 63 6f 6e 64 | 20 6e 75 6d 62 65 72 0a |e second| number.|
|00004a70| 58 73 70 69 66 66 77 6f | 72 64 20 72 65 6d 20 6f |Xspiffwo|rd rem o|
|00004a80| 6e 20 65 61 63 68 20 6c | 69 6e 65 2c 20 74 6f 20 |n each l|ine, to |
|00004a90| 62 65 20 6c 6f 77 65 72 | 20 74 68 61 6e 20 74 68 |be lower| than th|
|00004aa0| 65 20 6f 74 68 65 72 73 | 2e 0a 58 73 70 69 66 66 |e others|..Xspiff|
|00004ab0| 77 6f 72 64 20 74 6f 6c | 20 61 30 2e 30 32 20 3b |word tol| a0.02 ;|
|00004ac0| 20 61 30 2e 30 31 20 3b | 20 61 30 2e 30 32 0a 58 | a0.01 ;| a0.02.X|
|00004ad0| 73 70 69 66 66 77 6f 72 | 64 20 72 65 6d 20 61 6e |spiffwor|d rem an|
|00004ae0| 64 20 6f 6e 6c 79 20 74 | 68 65 20 6d 69 64 64 6c |d only t|he middl|
|00004af0| 65 20 6e 75 6d 62 65 72 | 20 73 68 6f 75 6c 64 20 |e number| should |
|00004b00| 61 70 70 65 61 72 20 64 | 69 66 66 65 72 65 6e 74 |appear d|ifferent|
|00004b10| 0a 58 6e 6f 74 20 64 69 | 66 66 65 72 65 6e 74 20 |.Xnot di|fferent |
|00004b20| 2d 2d 3e 20 30 2e 30 31 | 31 20 20 64 69 66 66 65 |--> 0.01|1 diffe|
|00004b30| 72 65 6e 74 20 2d 2d 3e | 20 30 2e 30 31 31 20 20 |rent -->| 0.011 |
|00004b40| 6e 6f 74 20 64 69 66 66 | 65 72 65 6e 74 20 2d 2d |not diff|erent --|
|00004b50| 3e 20 30 2e 30 31 31 20 | 20 0a 58 73 70 69 66 66 |> 0.011 | .Xspiff|
|00004b60| 77 6f 72 64 20 72 65 6d | 20 59 6f 75 20 67 65 74 |word rem| You get|
|00004b70| 20 74 68 65 20 69 64 65 | 61 2e 20 45 6e 6f 75 67 | the ide|a. Enoug|
|00004b80| 68 20 66 75 6e 20 66 6f | 72 20 6e 6f 77 2e 0a 58 |h fun fo|r now..X|
|00004b90| 41 6c 6c 20 64 6f 6e 65 | 2e 0a 45 4e 44 5f 4f 46 |All done|..END_OF|
|00004ba0| 5f 46 49 4c 45 0a 69 66 | 20 74 65 73 74 20 32 31 |_FILE.if| test 21|
|00004bb0| 31 30 20 2d 6e 65 20 60 | 77 63 20 2d 63 20 3c 27 |10 -ne `|wc -c <'|
|00004bc0| 53 61 6d 70 6c 65 2e 34 | 27 60 3b 20 74 68 65 6e |Sample.4|'`; then|
|00004bd0| 0a 20 20 20 20 65 63 68 | 6f 20 73 68 61 72 3a 20 |. ech|o shar: |
|00004be0| 5c 22 27 53 61 6d 70 6c | 65 2e 34 27 5c 22 20 75 |\"'Sampl|e.4'\" u|
|00004bf0| 6e 70 61 63 6b 65 64 20 | 77 69 74 68 20 77 72 6f |npacked |with wro|
|00004c00| 6e 67 20 73 69 7a 65 21 | 0a 66 69 0a 23 20 65 6e |ng size!|.fi.# en|
|00004c10| 64 20 6f 66 20 27 53 61 | 6d 70 6c 65 2e 34 27 0a |d of 'Sa|mple.4'.|
|00004c20| 66 69 0a 69 66 20 74 65 | 73 74 20 2d 66 20 27 63 |fi.if te|st -f 'c|
|00004c30| 6f 6d 6d 61 6e 64 2e 63 | 27 20 2d 61 20 22 24 7b |ommand.c|' -a "${|
|00004c40| 31 7d 22 20 21 3d 20 22 | 2d 63 22 20 3b 20 74 68 |1}" != "|-c" ; th|
|00004c50| 65 6e 20 0a 20 20 65 63 | 68 6f 20 73 68 61 72 3a |en . ec|ho shar:|
|00004c60| 20 57 69 6c 6c 20 6e 6f | 74 20 63 6c 6f 62 62 65 | Will no|t clobbe|
|00004c70| 72 20 65 78 69 73 74 69 | 6e 67 20 66 69 6c 65 20 |r existi|ng file |
|00004c80| 5c 22 27 63 6f 6d 6d 61 | 6e 64 2e 63 27 5c 22 0a |\"'comma|nd.c'\".|
|00004c90| 65 6c 73 65 0a 65 63 68 | 6f 20 73 68 61 72 3a 20 |else.ech|o shar: |
|00004ca0| 45 78 74 72 61 63 74 69 | 6e 67 20 5c 22 27 63 6f |Extracti|ng \"'co|
|00004cb0| 6d 6d 61 6e 64 2e 63 27 | 5c 22 20 5c 28 33 32 33 |mmand.c'|\" \(323|
|00004cc0| 36 20 63 68 61 72 61 63 | 74 65 72 73 5c 29 0a 73 |6 charac|ters\).s|
|00004cd0| 65 64 20 22 73 2f 5e 58 | 2f 2f 22 20 3e 27 63 6f |ed "s/^X|//" >'co|
|00004ce0| 6d 6d 61 6e 64 2e 63 27 | 20 3c 3c 27 45 4e 44 5f |mmand.c'| <<'END_|
|00004cf0| 4f 46 5f 46 49 4c 45 27 | 0a 58 2f 2a 20 20 20 20 |OF_FILE'|.X/* |
|00004d00| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00004d10| 20 20 20 20 43 6f 70 79 | 72 69 67 68 74 20 28 63 | Copy|right (c|
|00004d20| 29 20 31 39 38 38 20 42 | 65 6c 6c 63 6f 72 65 0a |) 1988 B|ellcore.|
|00004d30| 58 2a 2a 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |X** | |
|00004d40| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 41 | | A|
|00004d50| 6c 6c 20 52 69 67 68 74 | 73 20 52 65 73 65 72 76 |ll Right|s Reserv|
|00004d60| 65 64 0a 58 2a 2a 20 20 | 20 20 20 20 20 50 65 72 |ed.X** | Per|
|00004d70| 6d 69 73 73 69 6f 6e 20 | 69 73 20 67 72 61 6e 74 |mission |is grant|
|00004d80| 65 64 20 74 6f 20 63 6f | 70 79 20 6f 72 20 75 73 |ed to co|py or us|
|00004d90| 65 20 74 68 69 73 20 70 | 72 6f 67 72 61 6d 2c 20 |e this p|rogram, |
|00004da0| 45 58 43 45 50 54 20 74 | 68 61 74 20 69 74 0a 58 |EXCEPT t|hat it.X|
|00004db0| 2a 2a 20 20 20 20 20 20 | 20 6d 61 79 20 6e 6f 74 |** | may not|
|00004dc0| 20 62 65 20 73 6f 6c 64 | 20 66 6f 72 20 70 72 6f | be sold| for pro|
|00004dd0| 66 69 74 2c 20 74 68 65 | 20 63 6f 70 79 72 69 67 |fit, the| copyrig|
|00004de0| 68 74 20 6e 6f 74 69 63 | 65 20 6d 75 73 74 20 62 |ht notic|e must b|
|00004df0| 65 20 72 65 70 72 6f 64 | 75 63 65 64 0a 58 2a 2a |e reprod|uced.X**|
|00004e00| 20 20 20 20 20 20 20 6f | 6e 20 63 6f 70 69 65 73 | o|n copies|
|00004e10| 2c 20 61 6e 64 20 63 72 | 65 64 69 74 20 73 68 6f |, and cr|edit sho|
|00004e20| 75 6c 64 20 62 65 20 67 | 69 76 65 6e 20 74 6f 20 |uld be g|iven to |
|00004e30| 42 65 6c 6c 63 6f 72 65 | 20 77 68 65 72 65 20 69 |Bellcore| where i|
|00004e40| 74 20 69 73 20 64 75 65 | 2e 0a 58 2a 2a 20 20 20 |t is due|..X** |
|00004e50| 20 20 20 20 42 45 4c 4c | 43 4f 52 45 20 4d 41 4b | BELL|CORE MAK|
|00004e60| 45 53 20 4e 4f 20 57 41 | 52 52 41 4e 54 59 20 41 |ES NO WA|RRANTY A|
|00004e70| 4e 44 20 41 43 43 45 50 | 54 53 20 4e 4f 20 4c 49 |ND ACCEP|TS NO LI|
|00004e80| 41 42 49 4c 49 54 59 20 | 46 4f 52 20 54 48 49 53 |ABILITY |FOR THIS|
|00004e90| 20 50 52 4f 47 52 41 4d | 2e 0a 58 2a 2f 0a 58 0a | PROGRAM|..X*/.X.|
|00004ea0| 58 0a 58 23 69 66 6e 64 | 65 66 20 6c 69 6e 74 0a |X.X#ifnd|ef lint.|
|00004eb0| 58 73 74 61 74 69 63 20 | 63 68 61 72 20 72 63 73 |Xstatic |char rcs|
|00004ec0| 69 64 5b 5d 3d 20 22 24 | 48 65 61 64 65 72 3a 20 |id[]= "$|Header: |
|00004ed0| 63 6f 6d 6d 61 6e 64 2e | 63 2c 76 20 31 2e 31 20 |command.|c,v 1.1 |
|00004ee0| 38 38 2f 30 39 2f 31 35 | 20 31 31 3a 33 33 3a 35 |88/09/15| 11:33:5|
|00004ef0| 38 20 64 61 6e 69 65 6c | 20 52 65 6c 20 24 22 3b |8 daniel| Rel $";|
|00004f00| 0a 58 23 65 6e 64 69 66 | 0a 58 0a 58 0a 58 23 69 |.X#endif|.X.X.X#i|
|00004f10| 6e 63 6c 75 64 65 20 22 | 6d 69 73 63 2e 68 22 0a |nclude "|misc.h".|
|00004f20| 58 23 69 6e 63 6c 75 64 | 65 20 22 74 6f 6c 2e 68 |X#includ|e "tol.h|
|00004f30| 22 0a 58 23 69 6e 63 6c | 75 64 65 20 22 63 6f 6d |".X#incl|ude "com|
|00004f40| 6d 65 6e 74 2e 68 22 0a | 58 23 69 6e 63 6c 75 64 |ment.h".|X#includ|
|00004f50| 65 20 22 63 6f 6d 6d 61 | 6e 64 2e 68 22 0a 58 23 |e "comma|nd.h".X#|
|00004f60| 69 6e 63 6c 75 64 65 20 | 22 73 74 72 69 6e 67 73 |include |"strings|
|00004f70| 2e 68 22 0a 58 23 69 6e | 63 6c 75 64 65 20 22 70 |.h".X#in|clude "p|
|00004f80| 61 72 73 65 2e 68 22 0a | 58 0a 58 2f 2a 0a 58 2a |arse.h".|X.X/*.X*|
|00004f90| 2a 09 73 74 6f 72 61 67 | 65 20 66 6f 72 20 74 68 |*.storag|e for th|
|00004fa0| 65 20 73 74 72 69 6e 67 | 20 74 68 61 74 20 73 69 |e string| that si|
|00004fb0| 67 6e 61 6c 73 20 61 6e | 20 65 6d 62 65 64 64 65 |gnals an| embedde|
|00004fc0| 64 20 63 6f 6d 6d 61 6e | 64 0a 58 2a 2f 0a 58 73 |d comman|d.X*/.Xs|
|00004fd0| 74 61 74 69 63 20 63 68 | 61 72 20 5f 43 5f 63 6d |tatic ch|ar _C_cm|
|00004fe0| 64 77 6f 72 64 5b 5a 5f | 57 4f 52 44 4c 45 4e 5d |dword[Z_|WORDLEN]|
|00004ff0| 3b 0a 58 0a 58 2f 2a 0a | 58 2a 2a 09 73 74 6f 72 |;.X.X/*.|X**.stor|
|00005000| 61 67 65 20 66 6f 72 20 | 74 68 65 20 63 6f 6d 6d |age for |the comm|
|00005010| 61 6e 64 20 73 63 72 69 | 70 74 0a 58 2a 2f 0a 58 |and scri|pt.X*/.X|
|00005020| 73 74 61 74 69 63 20 69 | 6e 74 20 5f 43 5f 6e 65 |static i|nt _C_ne|
|00005030| 78 74 63 6d 64 20 3d 20 | 30 3b 0a 58 73 74 61 74 |xtcmd = |0;.Xstat|
|00005040| 69 63 20 63 68 61 72 20 | 2a 5f 43 5f 63 6d 64 73 |ic char |*_C_cmds|
|00005050| 5b 5f 43 5f 43 4d 44 4d | 41 58 5d 3b 0a 58 0a 58 |[_C_CMDM|AX];.X.X|
|00005060| 0a 58 2f 2a 0a 58 2a 2a | 09 61 64 64 20 61 20 73 |.X/*.X**|.add a s|
|00005070| 74 72 69 6e 67 20 74 6f | 20 74 68 65 20 63 6f 6d |tring to| the com|
|00005080| 6d 61 6e 64 20 62 75 66 | 66 65 72 0a 58 2a 2f 0a |mand buf|fer.X*/.|
|00005090| 58 76 6f 69 64 0a 58 43 | 5f 61 64 64 63 6d 64 28 |Xvoid.XC|_addcmd(|
|000050a0| 73 74 72 29 0a 58 63 68 | 61 72 20 2a 73 74 72 3b |str).Xch|ar *str;|
|000050b0| 0a 58 7b 0a 58 09 53 5f | 73 61 76 65 73 74 72 28 |.X{.X.S_|savestr(|
|000050c0| 26 5f 43 5f 63 6d 64 73 | 5b 5f 43 5f 6e 65 78 74 |&_C_cmds|[_C_next|
|000050d0| 63 6d 64 2b 2b 5d 2c 73 | 74 72 29 3b 0a 58 09 72 |cmd++],s|tr);.X.r|
|000050e0| 65 74 75 72 6e 3b 0a 58 | 7d 0a 58 0a 58 2f 2a 0a |eturn;.X|}.X.X/*.|
|000050f0| 58 2a 2a 09 65 78 65 63 | 75 74 65 20 61 20 73 69 |X**.exec|ute a si|
|00005100| 6e 67 6c 65 20 63 6f 6d | 6d 61 6e 64 0a 58 2a 2f |ngle com|mand.X*/|
|00005110| 0a 58 73 74 61 74 69 63 | 20 76 6f 69 64 0a 58 5f |.Xstatic| void.X_|
|00005120| 43 5f 64 6f 5f 61 5f 63 | 6d 64 28 73 74 72 29 0a |C_do_a_c|md(str).|
|00005130| 58 63 68 61 72 20 2a 73 | 74 72 3b 0a 58 7b 0a 58 |Xchar *s|tr;.X{.X|
|00005140| 09 2f 2a 0a 58 09 2a 2a | 09 70 6c 61 63 65 20 68 |./*.X.**|.place h|
|00005150| 6f 6c 64 65 72 20 66 6f | 72 20 74 68 65 20 62 65 |older fo|r the be|
|00005160| 67 69 6e 6e 69 6e 67 20 | 6f 66 20 74 68 65 20 73 |ginning |of the s|
|00005170| 74 72 69 6e 67 0a 58 09 | 2a 2f 0a 58 09 63 68 61 |tring.X.|*/.X.cha|
|00005180| 72 20 2a 62 65 67 69 6e | 6e 69 6e 67 20 3d 20 73 |r *begin|ning = s|
|00005190| 74 72 3b 0a 58 0a 58 09 | 53 5f 73 6b 69 70 73 70 |tr;.X.X.|S_skipsp|
|000051a0| 61 63 65 28 26 73 74 72 | 29 3b 0a 58 0a 58 09 2f |ace(&str|);.X.X./|
|000051b0| 2a 0a 58 09 2a 2a 09 73 | 65 74 20 74 68 65 20 63 |*.X.**.s|et the c|
|000051c0| 6f 6d 6d 61 6e 64 20 73 | 74 72 69 6e 67 20 74 6f |ommand s|tring to|
|000051d0| 20 61 6c 6c 6f 77 20 65 | 6d 62 65 64 64 65 64 20 | allow e|mbedded |
|000051e0| 63 6f 6d 6d 61 6e 64 73 | 0a 58 09 2a 2f 0a 58 09 |commands|.X.*/.X.|
|000051f0| 69 66 20 09 28 21 53 5f | 77 6f 72 64 63 6d 70 28 |if .(!S_|wordcmp(|
|00005200| 73 74 72 2c 22 63 6f 6d | 6d 61 6e 64 22 29 29 0a |str,"com|mand")).|
|00005210| 58 09 7b 0a 58 09 09 53 | 5f 6e 65 78 74 77 6f 72 |X.{.X..S|_nextwor|
|00005220| 64 28 26 73 74 72 29 3b | 0a 58 09 09 69 66 20 28 |d(&str);|.X..if (|
|00005230| 73 74 72 6c 65 6e 28 73 | 74 72 29 20 3e 3d 20 5a |strlen(s|tr) >= Z|
|00005240| 5f 57 4f 52 44 4c 45 4e | 29 0a 58 09 09 7b 0a 58 |_WORDLEN|).X..{.X|
|00005250| 09 09 09 5a 5f 66 61 74 | 61 6c 28 22 63 6f 6d 6d |...Z_fat|al("comm|
|00005260| 61 6e 64 20 77 6f 72 64 | 20 69 73 20 74 6f 6f 20 |and word| is too |
|00005270| 6c 6f 6e 67 22 29 3b 0a | 58 09 09 7d 0a 58 09 09 |long");.|X..}.X..|
|00005280| 53 5f 77 6f 72 64 63 70 | 79 28 5f 43 5f 63 6d 64 |S_wordcp|y(_C_cmd|
|00005290| 77 6f 72 64 2c 73 74 72 | 29 3b 0a 58 09 7d 0a 58 |word,str|);.X.}.X|
|000052a0| 09 2f 2a 0a 58 09 2a 2a | 09 73 65 74 20 74 68 65 |./*.X.**|.set the|
|000052b0| 20 74 6f 6c 65 72 61 6e | 63 65 73 0a 58 09 2a 2f | toleran|ces.X.*/|
|000052c0| 0a 58 09 65 6c 73 65 20 | 69 66 20 28 21 53 5f 77 |.X.else |if (!S_w|
|000052d0| 6f 72 64 63 6d 70 28 73 | 74 72 2c 22 74 6f 6c 22 |ordcmp(s|tr,"tol"|
|000052e0| 29 29 0a 58 09 7b 0a 58 | 09 09 53 5f 6e 65 78 74 |)).X.{.X|..S_next|
|000052f0| 77 6f 72 64 28 26 73 74 | 72 29 3b 0a 58 09 09 54 |word(&st|r);.X..T|
|00005300| 5f 74 6f 6c 6c 69 6e 65 | 28 73 74 72 29 3b 0a 58 |_tolline|(str);.X|
|00005310| 09 7d 0a 58 09 2f 2a 0a | 58 09 2a 2a 09 61 64 64 |.}.X./*.|X.**.add|
|00005320| 20 61 20 63 6f 6d 6d 65 | 6e 74 20 73 70 65 63 69 | a comme|nt speci|
|00005330| 66 69 63 61 74 69 6f 6e | 0a 58 09 2a 2f 0a 58 09 |fication|.X.*/.X.|
|00005340| 65 6c 73 65 20 69 66 20 | 28 21 53 5f 77 6f 72 64 |else if |(!S_word|
|00005350| 63 6d 70 28 73 74 72 2c | 22 63 6f 6d 6d 65 6e 74 |cmp(str,|"comment|
|00005360| 22 29 29 0a 58 09 7b 0a | 58 09 09 53 5f 6e 65 78 |")).X.{.|X..S_nex|
|00005370| 74 77 6f 72 64 28 26 73 | 74 72 29 3b 0a 58 09 09 |tword(&s|tr);.X..|
|00005380| 69 66 20 28 73 74 72 6c | 65 6e 28 73 74 72 29 20 |if (strl|en(str) |
|00005390| 3e 3d 20 5a 5f 57 4f 52 | 44 4c 45 4e 29 0a 58 09 |>= Z_WOR|DLEN).X.|
|000053a0| 09 7b 0a 58 09 09 09 5a | 5f 66 61 74 61 6c 28 22 |.{.X...Z|_fatal("|
|000053b0| 63 6f 6d 6d 61 6e 64 20 | 77 6f 72 64 20 69 73 20 |command |word is |
|000053c0| 74 6f 6f 20 6c 6f 6e 67 | 22 29 3b 0a 58 09 09 7d |too long|");.X..}|
|000053d0| 0a 58 09 09 57 5f 61 64 | 64 63 6f 6d 28 73 74 72 |.X..W_ad|dcom(str|
|000053e0| 2c 30 29 3b 0a 58 09 7d | 0a 58 09 65 6c 73 65 20 |,0);.X.}|.X.else |
|000053f0| 69 66 20 28 21 53 5f 77 | 6f 72 64 63 6d 70 28 73 |if (!S_w|ordcmp(s|
|00005400| 74 72 2c 22 6e 65 73 74 | 63 6f 6d 22 29 29 0a 58 |tr,"nest|com")).X|
|00005410| 09 7b 0a 58 09 09 53 5f | 6e 65 78 74 77 6f 72 64 |.{.X..S_|nextword|
|00005420| 28 26 73 74 72 29 3b 0a | 58 09 09 69 66 20 28 73 |(&str);.|X..if (s|
|00005430| 74 72 6c 65 6e 28 73 74 | 72 29 20 3e 3d 20 5a 5f |trlen(st|r) >= Z_|
|00005440| 57 4f 52 44 4c 45 4e 29 | 0a 58 09 09 7b 0a 58 09 |WORDLEN)|.X..{.X.|
|00005450| 09 09 5a 5f 66 61 74 61 | 6c 28 22 63 6f 6d 6d 61 |..Z_fata|l("comma|
|00005460| 6e 64 20 77 6f 72 64 20 | 69 73 20 74 6f 6f 20 6c |nd word |is too l|
|00005470| 6f 6e 67 22 29 3b 0a 58 | 09 09 7d 0a 58 09 09 57 |ong");.X|..}.X..W|
|00005480| 5f 61 64 64 63 6f 6d 28 | 73 74 72 2c 31 29 3b 0a |_addcom(|str,1);.|
|00005490| 58 09 7d 0a 58 09 2f 2a | 0a 58 09 2a 2a 09 61 64 |X.}.X./*|.X.**.ad|
|000054a0| 64 20 61 20 6c 69 74 65 | 72 61 6c 20 73 74 72 69 |d a lite|ral stri|
|000054b0| 6e 67 20 73 70 65 63 69 | 66 69 63 61 74 69 6f 6e |ng speci|fication|
|000054c0| 0a 58 09 2a 2f 0a 58 09 | 65 6c 73 65 20 69 66 20 |.X.*/.X.|else if |
|000054d0| 28 21 53 5f 77 6f 72 64 | 63 6d 70 28 73 74 72 2c |(!S_word|cmp(str,|
|000054e0| 22 6c 69 74 65 72 61 6c | 22 29 29 0a 58 09 7b 0a |"literal|")).X.{.|
|000054f0| 58 09 09 53 5f 6e 65 78 | 74 77 6f 72 64 28 26 73 |X..S_nex|tword(&s|
|00005500| 74 72 29 3b 0a 58 09 09 | 69 66 20 28 73 74 72 6c |tr);.X..|if (strl|
|00005510| 65 6e 28 73 74 72 29 20 | 3e 3d 20 5a 5f 57 4f 52 |en(str) |>= Z_WOR|
|00005520| 44 4c 45 4e 29 0a 58 09 | 09 7b 0a 58 09 09 09 5a |DLEN).X.|.{.X...Z|
|00005530| 5f 66 61 74 61 6c 28 22 | 63 6f 6d 6d 61 6e 64 20 |_fatal("|command |
|00005540| 77 6f 72 64 20 69 73 20 | 74 6f 6f 20 6c 6f 6e 67 |word is |too long|
|00005550| 22 29 3b 0a 58 09 09 7d | 0a 58 09 09 57 5f 61 64 |");.X..}|.X..W_ad|
|00005560| 64 6c 69 74 28 73 74 72 | 29 3b 0a 58 09 7d 0a 58 |dlit(str|);.X.}.X|
|00005570| 09 65 6c 73 65 20 69 66 | 20 28 21 53 5f 77 6f 72 |.else if| (!S_wor|
|00005580| 64 63 6d 70 28 73 74 72 | 2c 22 72 65 73 65 74 63 |dcmp(str|,"resetc|
|00005590| 6f 6d 6d 65 6e 74 73 22 | 29 29 0a 58 09 7b 0a 58 |omments"|)).X.{.X|
|000055a0| 09 09 57 5f 63 6c 65 61 | 72 63 6f 6d 73 28 29 3b |..W_clea|rcoms();|
|000055b0| 0a 58 09 7d 0a 58 09 65 | 6c 73 65 20 69 66 20 28 |.X.}.X.e|lse if (|
|000055c0| 21 53 5f 77 6f 72 64 63 | 6d 70 28 73 74 72 2c 22 |!S_wordc|mp(str,"|
|000055d0| 72 65 73 65 74 6c 69 74 | 65 72 61 6c 73 22 29 29 |resetlit|erals"))|
|000055e0| 0a 58 09 7b 0a 58 09 09 | 57 5f 63 6c 65 61 72 6c |.X.{.X..|W_clearl|
|000055f0| 69 74 73 28 29 3b 0a 58 | 09 7d 0a 58 09 65 6c 73 |its();.X|.}.X.els|
|00005600| 65 20 69 66 20 28 21 53 | 5f 77 6f 72 64 63 6d 70 |e if (!S|_wordcmp|
|00005610| 28 73 74 72 2c 22 62 65 | 67 69 6e 63 68 61 72 22 |(str,"be|ginchar"|
|00005620| 29 29 0a 58 09 7b 0a 58 | 09 09 53 5f 6e 65 78 74 |)).X.{.X|..S_next|
|00005630| 77 6f 72 64 28 26 73 74 | 72 29 3b 0a 58 09 09 57 |word(&st|r);.X..W|
|00005640| 5f 73 65 74 62 6f 6c 63 | 68 61 72 28 2a 73 74 72 |_setbolc|har(*str|
|00005650| 29 3b 0a 58 09 7d 0a 58 | 09 65 6c 73 65 20 69 66 |);.X.}.X|.else if|
|00005660| 20 28 21 53 5f 77 6f 72 | 64 63 6d 70 28 73 74 72 | (!S_wor|dcmp(str|
|00005670| 2c 22 65 6e 64 63 68 61 | 72 22 29 29 0a 58 09 7b |,"endcha|r")).X.{|
|00005680| 0a 58 09 09 53 5f 6e 65 | 78 74 77 6f 72 64 28 26 |.X..S_ne|xtword(&|
|00005690| 73 74 72 29 3b 0a 58 09 | 09 57 5f 73 65 74 65 6f |str);.X.|.W_seteo|
|000056a0| 6c 63 68 61 72 28 2a 73 | 74 72 29 3b 0a 58 09 7d |lchar(*s|tr);.X.}|
|000056b0| 0a 58 09 65 6c 73 65 20 | 69 66 20 28 21 53 5f 77 |.X.else |if (!S_w|
|000056c0| 6f 72 64 63 6d 70 28 73 | 74 72 2c 22 61 64 64 61 |ordcmp(s|tr,"adda|
|000056d0| 6c 70 68 61 22 29 29 0a | 58 09 7b 0a 58 09 09 53 |lpha")).|X.{.X..S|
|000056e0| 5f 6e 65 78 74 77 6f 72 | 64 28 26 73 74 72 29 3b |_nextwor|d(&str);|
|000056f0| 0a 58 09 09 50 5f 61 64 | 64 61 6c 70 68 61 28 73 |.X..P_ad|dalpha(s|
|00005700| 74 72 29 3b 0a 58 09 7d | 0a 58 09 65 6c 73 65 20 |tr);.X.}|.X.else |
|00005710| 69 66 20 28 28 30 20 3d | 3d 20 73 74 72 6c 65 6e |if ((0 =|= strlen|
|00005720| 28 73 74 72 29 29 20 7c | 7c 20 21 53 5f 77 6f 72 |(str)) ||| !S_wor|
|00005730| 64 63 6d 70 28 73 74 72 | 2c 22 72 65 6d 22 29 20 |dcmp(str|,"rem") |
|00005740| 0a 58 09 09 09 09 20 20 | 20 20 7c 7c 20 28 27 23 |.X.... | || ('#|
|00005750| 27 20 3d 3d 20 2a 73 74 | 72 29 29 0a 58 09 7b 0a |' == *st|r)).X.{.|
|00005760| 58 09 09 2f 2a 20 64 6f | 20 6e 6f 74 68 69 6e 67 |X../* do| nothing|
|00005770| 20 2a 2f 0a 58 09 7d 0a | 58 09 65 6c 73 65 0a 58 | */.X.}.|X.else.X|
|00005780| 09 7b 0a 58 09 09 28 76 | 6f 69 64 29 20 73 70 72 |.{.X..(v|oid) spr|
|00005790| 69 6e 74 66 28 5a 5f 65 | 72 72 5f 62 75 66 2c 0a |intf(Z_e|rr_buf,.|
|000057a0| 58 09 09 09 20 20 20 20 | 20 20 20 22 64 6f 6e 27 |X... | "don'|
|000057b0| 74 20 75 6e 64 65 72 73 | 74 61 6e 64 20 63 6f 6d |t unders|tand com|
|000057c0| 6d 61 6e 64 20 25 73 5c | 6e 22 2c 0a 58 09 09 09 |mand %s\|n",.X...|
|000057d0| 20 20 20 20 20 20 20 62 | 65 67 69 6e 6e 69 6e 67 | b|eginning|
|000057e0| 29 3b 0a 58 09 09 5a 5f | 66 61 74 61 6c 28 5a 5f |);.X..Z_|fatal(Z_|
|000057f0| 65 72 72 5f 62 75 66 29 | 3b 0a 58 09 7d 0a 58 09 |err_buf)|;.X.}.X.|
|00005800| 72 65 74 75 72 6e 3b 0a | 58 7d 0a 58 0a 58 2f 2a |return;.|X}.X.X/*|
|00005810| 0a 58 2a 2a 09 65 78 65 | 63 75 74 65 20 74 68 65 |.X**.exe|cute the|
|00005820| 20 63 6f 6d 6d 61 6e 64 | 73 20 69 6e 20 74 68 65 | command|s in the|
|00005830| 20 63 6f 6d 6d 61 6e 64 | 20 62 75 66 66 65 72 0a | command| buffer.|
|00005840| 58 2a 2f 0a 58 76 6f 69 | 64 0a 58 43 5f 64 6f 63 |X*/.Xvoi|d.XC_doc|
|00005850| 6d 64 73 28 29 0a 58 7b | 0a 58 09 69 6e 74 20 69 |mds().X{|.X.int i|
|00005860| 3b 0a 58 09 66 6f 72 20 | 28 69 3d 30 3b 69 3c 5f |;.X.for |(i=0;i<_|
|00005870| 43 5f 6e 65 78 74 63 6d | 64 3b 69 2b 2b 29 0a 58 |C_nextcm|d;i++).X|
|00005880| 09 7b 0a 58 09 09 5f 43 | 5f 64 6f 5f 61 5f 63 6d |.{.X.._C|_do_a_cm|
|00005890| 64 28 5f 43 5f 63 6d 64 | 73 5b 69 5d 29 3b 0a 58 |d(_C_cmd|s[i]);.X|
|000058a0| 09 7d 0a 58 09 72 65 74 | 75 72 6e 3b 0a 58 7d 0a |.}.X.ret|urn;.X}.|
|000058b0| 58 0a 58 2f 2a 0a 58 2a | 2a 09 64 69 73 61 62 6c |X.X/*.X*|*.disabl|
|000058c0| 65 20 65 6d 62 65 64 64 | 65 64 20 63 6f 6d 6d 61 |e embedd|ed comma|
|000058d0| 6e 64 20 6b 65 79 20 77 | 6f 72 64 20 72 65 63 6f |nd key w|ord reco|
|000058e0| 67 6e 69 74 69 6f 6e 0a | 58 2a 2f 0a 58 76 6f 69 |gnition.|X*/.Xvoi|
|000058f0| 64 0a 58 43 5f 63 6c 65 | 61 72 5f 63 6d 64 28 29 |d.XC_cle|ar_cmd()|
|00005900| 0a 58 7b 0a 58 09 5f 43 | 5f 63 6d 64 77 6f 72 64 |.X{.X._C|_cmdword|
|00005910| 5b 30 5d 20 3d 20 27 5c | 30 27 3b 0a 58 09 72 65 |[0] = '\|0';.X.re|
|00005920| 74 75 72 6e 3b 0a 58 7d | 0a 58 0a 58 69 6e 74 0a |turn;.X}|.X.Xint.|
|00005930| 58 43 5f 69 73 5f 63 6d | 64 28 69 6e 6c 69 6e 65 |XC_is_cm|d(inline|
|00005940| 29 0a 58 63 68 61 72 20 | 2a 69 6e 6c 69 6e 65 3b |).Xchar |*inline;|
|00005950| 0a 58 7b 0a 58 09 63 68 | 61 72 20 2a 70 74 72 3b |.X{.X.ch|ar *ptr;|
|00005960| 0a 58 09 2f 2a 0a 58 09 | 2a 2a 09 73 65 65 20 69 |.X./*.X.|**.see i|
|00005970| 66 20 74 68 69 73 20 69 | 73 20 61 20 63 6f 6d 6d |f this i|s a comm|
|00005980| 61 6e 64 20 6c 69 6e 65 | 0a 58 09 2a 2a 09 61 6e |and line|.X.**.an|
|00005990| 64 20 69 66 20 73 6f 2c | 20 64 6f 20 74 68 65 20 |d if so,| do the |
|000059a0| 63 6f 6d 6d 61 6e 64 20 | 72 69 67 68 74 20 61 77 |command |right aw|
|000059b0| 61 79 0a 58 09 2a 2f 0a | 58 09 69 66 20 28 28 27 |ay.X.*/.|X.if (('|
|000059c0| 5c 30 27 20 21 3d 20 5f | 43 5f 63 6d 64 77 6f 72 |\0' != _|C_cmdwor|
|000059d0| 64 5b 30 5d 29 20 26 26 | 20 28 21 53 5f 77 6f 72 |d[0]) &&| (!S_wor|
|000059e0| 64 63 6d 70 28 69 6e 6c | 69 6e 65 2c 5f 43 5f 63 |dcmp(inl|ine,_C_c|
|000059f0| 6d 64 77 6f 72 64 29 29 | 29 0a 58 09 7b 0a 58 09 |mdword))|).X.{.X.|
|00005a00| 09 70 74 72 20 3d 20 69 | 6e 6c 69 6e 65 3b 0a 58 |.ptr = i|nline;.X|
|00005a10| 09 09 53 5f 6e 65 78 74 | 77 6f 72 64 28 26 70 74 |..S_next|word(&pt|
|00005a20| 72 29 3b 0a 58 09 09 5f | 43 5f 64 6f 5f 61 5f 63 |r);.X.._|C_do_a_c|
|00005a30| 6d 64 28 70 74 72 29 3b | 0a 58 09 09 72 65 74 75 |md(ptr);|.X..retu|
|00005a40| 72 6e 28 31 29 3b 0a 58 | 09 7d 0a 58 09 72 65 74 |rn(1);.X|.}.X.ret|
|00005a50| 75 72 6e 28 30 29 3b 0a | 58 7d 0a 58 0a 45 4e 44 |urn(0);.|X}.X.END|
|00005a60| 5f 4f 46 5f 46 49 4c 45 | 0a 69 66 20 74 65 73 74 |_OF_FILE|.if test|
|00005a70| 20 33 32 33 36 20 2d 6e | 65 20 60 77 63 20 2d 63 | 3236 -n|e `wc -c|
|00005a80| 20 3c 27 63 6f 6d 6d 61 | 6e 64 2e 63 27 60 3b 20 | <'comma|nd.c'`; |
|00005a90| 74 68 65 6e 0a 20 20 20 | 20 65 63 68 6f 20 73 68 |then. | echo sh|
|00005aa0| 61 72 3a 20 5c 22 27 63 | 6f 6d 6d 61 6e 64 2e 63 |ar: \"'c|ommand.c|
|00005ab0| 27 5c 22 20 75 6e 70 61 | 63 6b 65 64 20 77 69 74 |'\" unpa|cked wit|
|00005ac0| 68 20 77 72 6f 6e 67 20 | 73 69 7a 65 21 0a 66 69 |h wrong |size!.fi|
|00005ad0| 0a 23 20 65 6e 64 20 6f | 66 20 27 63 6f 6d 6d 61 |.# end o|f 'comma|
|00005ae0| 6e 64 2e 63 27 0a 66 69 | 0a 69 66 20 74 65 73 74 |nd.c'.fi|.if test|
|00005af0| 20 2d 66 20 27 63 6f 6d | 6d 61 6e 64 2e 68 27 20 | -f 'com|mand.h' |
|00005b00| 2d 61 20 22 24 7b 31 7d | 22 20 21 3d 20 22 2d 63 |-a "${1}|" != "-c|
|00005b10| 22 20 3b 20 74 68 65 6e | 20 0a 20 20 65 63 68 6f |" ; then| . echo|
|00005b20| 20 73 68 61 72 3a 20 57 | 69 6c 6c 20 6e 6f 74 20 | shar: W|ill not |
|00005b30| 63 6c 6f 62 62 65 72 20 | 65 78 69 73 74 69 6e 67 |clobber |existing|
|00005b40| 20 66 69 6c 65 20 5c 22 | 27 63 6f 6d 6d 61 6e 64 | file \"|'command|
|00005b50| 2e 68 27 5c 22 0a 65 6c | 73 65 0a 65 63 68 6f 20 |.h'\".el|se.echo |
|00005b60| 73 68 61 72 3a 20 45 78 | 74 72 61 63 74 69 6e 67 |shar: Ex|tracting|
|00005b70| 20 5c 22 27 63 6f 6d 6d | 61 6e 64 2e 68 27 5c 22 | \"'comm|and.h'\"|
|00005b80| 20 5c 28 35 38 32 20 63 | 68 61 72 61 63 74 65 72 | \(582 c|haracter|
|00005b90| 73 5c 29 0a 73 65 64 20 | 22 73 2f 5e 58 2f 2f 22 |s\).sed |"s/^X//"|
|00005ba0| 20 3e 27 63 6f 6d 6d 61 | 6e 64 2e 68 27 20 3c 3c | >'comma|nd.h' <<|
|00005bb0| 27 45 4e 44 5f 4f 46 5f | 46 49 4c 45 27 0a 58 2f |'END_OF_|FILE'.X/|
|00005bc0| 2a 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |* | |
|00005bd0| 20 20 20 20 20 20 20 20 | 20 43 6f 70 79 72 69 67 | | Copyrig|
|00005be0| 68 74 20 28 63 29 20 31 | 39 38 38 20 42 65 6c 6c |ht (c) 1|988 Bell|
|00005bf0| 63 6f 72 65 0a 58 2a 2a | 20 20 20 20 20 20 20 20 |core.X**| |
|00005c00| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00005c10| 20 20 20 20 41 6c 6c 20 | 52 69 67 68 74 73 20 52 | All |Rights R|
|00005c20| 65 73 65 72 76 65 64 0a | 58 2a 2a 20 20 20 20 20 |eserved.|X** |
|00005c30| 20 20 50 65 72 6d 69 73 | 73 69 6f 6e 20 69 73 20 | Permis|sion is |
|00005c40| 67 72 61 6e 74 65 64 20 | 74 6f 20 63 6f 70 79 20 |granted |to copy |
|00005c50| 6f 72 20 75 73 65 20 74 | 68 69 73 20 70 72 6f 67 |or use t|his prog|
|00005c60| 72 61 6d 2c 20 45 58 43 | 45 50 54 20 74 68 61 74 |ram, EXC|EPT that|
|00005c70| 20 69 74 0a 58 2a 2a 20 | 20 20 20 20 20 20 6d 61 | it.X** | ma|
|00005c80| 79 20 6e 6f 74 20 62 65 | 20 73 6f 6c 64 20 66 6f |y not be| sold fo|
|00005c90| 72 20 70 72 6f 66 69 74 | 2c 20 74 68 65 20 63 6f |r profit|, the co|
|00005ca0| 70 79 72 69 67 68 74 20 | 6e 6f 74 69 63 65 20 6d |pyright |notice m|
|00005cb0| 75 73 74 20 62 65 20 72 | 65 70 72 6f 64 75 63 65 |ust be r|eproduce|
|00005cc0| 64 0a 58 2a 2a 20 20 20 | 20 20 20 20 6f 6e 20 63 |d.X** | on c|
|00005cd0| 6f 70 69 65 73 2c 20 61 | 6e 64 20 63 72 65 64 69 |opies, a|nd credi|
|00005ce0| 74 20 73 68 6f 75 6c 64 | 20 62 65 20 67 69 76 65 |t should| be give|
|00005cf0| 6e 20 74 6f 20 42 65 6c | 6c 63 6f 72 65 20 77 68 |n to Bel|lcore wh|
|00005d00| 65 72 65 20 69 74 20 69 | 73 20 64 75 65 2e 0a 58 |ere it i|s due..X|
|00005d10| 2a 2a 20 20 20 20 20 20 | 20 42 45 4c 4c 43 4f 52 |** | BELLCOR|
|00005d20| 45 20 4d 41 4b 45 53 20 | 4e 4f 20 57 41 52 52 41 |E MAKES |NO WARRA|
|00005d30| 4e 54 59 20 41 4e 44 20 | 41 43 43 45 50 54 53 20 |NTY AND |ACCEPTS |
|00005d40| 4e 4f 20 4c 49 41 42 49 | 4c 49 54 59 20 46 4f 52 |NO LIABI|LITY FOR|
|00005d50| 20 54 48 49 53 20 50 52 | 4f 47 52 41 4d 2e 0a 58 | THIS PR|OGRAM..X|
|00005d60| 2a 2f 0a 58 0a 58 23 69 | 66 6e 64 65 66 20 43 5f |*/.X.X#i|fndef C_|
|00005d70| 49 4e 43 4c 55 44 45 44 | 0a 58 65 78 74 65 72 6e |INCLUDED|.Xextern|
|00005d80| 20 69 6e 74 20 43 5f 69 | 73 5f 63 6d 64 28 29 3b | int C_i|s_cmd();|
|00005d90| 0a 58 65 78 74 65 72 6e | 20 76 6f 69 64 20 43 5f |.Xextern| void C_|
|00005da0| 63 6c 65 61 72 5f 63 6d | 64 28 29 3b 0a 58 65 78 |clear_cm|d();.Xex|
|00005db0| 74 65 72 6e 20 76 6f 69 | 64 20 43 5f 61 64 64 63 |tern voi|d C_addc|
|00005dc0| 6d 64 28 29 3b 0a 58 65 | 78 74 65 72 6e 20 76 6f |md();.Xe|xtern vo|
|00005dd0| 69 64 20 43 5f 64 6f 63 | 6d 64 73 28 29 3b 0a 58 |id C_doc|mds();.X|
|00005de0| 0a 58 23 64 65 66 69 6e | 65 20 5f 43 5f 43 4d 44 |.X#defin|e _C_CMD|
|00005df0| 4d 41 58 09 31 30 30 0a | 58 0a 58 23 64 65 66 69 |MAX.100.|X.X#defi|
|00005e00| 6e 65 20 43 5f 49 4e 43 | 4c 55 44 45 44 0a 58 23 |ne C_INC|LUDED.X#|
|00005e10| 65 6e 64 69 66 0a 45 4e | 44 5f 4f 46 5f 46 49 4c |endif.EN|D_OF_FIL|
|00005e20| 45 0a 69 66 20 74 65 73 | 74 20 35 38 32 20 2d 6e |E.if tes|t 582 -n|
|00005e30| 65 20 60 77 63 20 2d 63 | 20 3c 27 63 6f 6d 6d 61 |e `wc -c| <'comma|
|00005e40| 6e 64 2e 68 27 60 3b 20 | 74 68 65 6e 0a 20 20 20 |nd.h'`; |then. |
|00005e50| 20 65 63 68 6f 20 73 68 | 61 72 3a 20 5c 22 27 63 | echo sh|ar: \"'c|
|00005e60| 6f 6d 6d 61 6e 64 2e 68 | 27 5c 22 20 75 6e 70 61 |ommand.h|'\" unpa|
|00005e70| 63 6b 65 64 20 77 69 74 | 68 20 77 72 6f 6e 67 20 |cked wit|h wrong |
|00005e80| 73 69 7a 65 21 0a 66 69 | 0a 23 20 65 6e 64 20 6f |size!.fi|.# end o|
|00005e90| 66 20 27 63 6f 6d 6d 61 | 6e 64 2e 68 27 0a 66 69 |f 'comma|nd.h'.fi|
|00005ea0| 0a 69 66 20 74 65 73 74 | 20 2d 66 20 27 63 6f 6d |.if test| -f 'com|
|00005eb0| 6d 65 6e 74 2e 68 27 20 | 2d 61 20 22 24 7b 31 7d |ment.h' |-a "${1}|
|00005ec0| 22 20 21 3d 20 22 2d 63 | 22 20 3b 20 74 68 65 6e |" != "-c|" ; then|
|00005ed0| 20 0a 20 20 65 63 68 6f | 20 73 68 61 72 3a 20 57 | . echo| shar: W|
|00005ee0| 69 6c 6c 20 6e 6f 74 20 | 63 6c 6f 62 62 65 72 20 |ill not |clobber |
|00005ef0| 65 78 69 73 74 69 6e 67 | 20 66 69 6c 65 20 5c 22 |existing| file \"|
|00005f00| 27 63 6f 6d 6d 65 6e 74 | 2e 68 27 5c 22 0a 65 6c |'comment|.h'\".el|
|00005f10| 73 65 0a 65 63 68 6f 20 | 73 68 61 72 3a 20 45 78 |se.echo |shar: Ex|
|00005f20| 74 72 61 63 74 69 6e 67 | 20 5c 22 27 63 6f 6d 6d |tracting| \"'comm|
|00005f30| 65 6e 74 2e 68 27 5c 22 | 20 5c 28 32 30 33 36 20 |ent.h'\"| \(2036 |
|00005f40| 63 68 61 72 61 63 74 65 | 72 73 5c 29 0a 73 65 64 |characte|rs\).sed|
|00005f50| 20 22 73 2f 5e 58 2f 2f | 22 20 3e 27 63 6f 6d 6d | "s/^X//|" >'comm|
|00005f60| 65 6e 74 2e 68 27 20 3c | 3c 27 45 4e 44 5f 4f 46 |ent.h' <|<'END_OF|
|00005f70| 5f 46 49 4c 45 27 0a 58 | 2f 2a 20 20 20 20 20 20 |_FILE'.X|/* |
|00005f80| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00005f90| 20 20 43 6f 70 79 72 69 | 67 68 74 20 28 63 29 20 | Copyri|ght (c) |
|00005fa0| 31 39 38 38 20 42 65 6c | 6c 63 6f 72 65 0a 58 2a |1988 Bel|lcore.X*|
|00005fb0| 2a 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |* | |
|00005fc0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 41 6c 6c | | All|
|00005fd0| 20 52 69 67 68 74 73 20 | 52 65 73 65 72 76 65 64 | Rights |Reserved|
|00005fe0| 0a 58 2a 2a 20 20 20 20 | 20 20 20 50 65 72 6d 69 |.X** | Permi|
|00005ff0| 73 73 69 6f 6e 20 69 73 | 20 67 72 61 6e 74 65 64 |ssion is| granted|
|00006000| 20 74 6f 20 63 6f 70 79 | 20 6f 72 20 75 73 65 20 | to copy| or use |
|00006010| 74 68 69 73 20 70 72 6f | 67 72 61 6d 2c 20 45 58 |this pro|gram, EX|
|00006020| 43 45 50 54 20 74 68 61 | 74 20 69 74 0a 58 2a 2a |CEPT tha|t it.X**|
|00006030| 20 20 20 20 20 20 20 6d | 61 79 20 6e 6f 74 20 62 | m|ay not b|
|00006040| 65 20 73 6f 6c 64 20 66 | 6f 72 20 70 72 6f 66 69 |e sold f|or profi|
|00006050| 74 2c 20 74 68 65 20 63 | 6f 70 79 72 69 67 68 74 |t, the c|opyright|
|00006060| 20 6e 6f 74 69 63 65 20 | 6d 75 73 74 20 62 65 20 | notice |must be |
|00006070| 72 65 70 72 6f 64 75 63 | 65 64 0a 58 2a 2a 20 20 |reproduc|ed.X** |
|00006080| 20 20 20 20 20 6f 6e 20 | 63 6f 70 69 65 73 2c 20 | on |copies, |
|00006090| 61 6e 64 20 63 72 65 64 | 69 74 20 73 68 6f 75 6c |and cred|it shoul|
|000060a0| 64 20 62 65 20 67 69 76 | 65 6e 20 74 6f 20 42 65 |d be giv|en to Be|
|000060b0| 6c 6c 63 6f 72 65 20 77 | 68 65 72 65 20 69 74 20 |llcore w|here it |
|000060c0| 69 73 20 64 75 65 2e 0a | 58 2a 2a 20 20 20 20 20 |is due..|X** |
|000060d0| 20 20 42 45 4c 4c 43 4f | 52 45 20 4d 41 4b 45 53 | BELLCO|RE MAKES|
|000060e0| 20 4e 4f 20 57 41 52 52 | 41 4e 54 59 20 41 4e 44 | NO WARR|ANTY AND|
|000060f0| 20 41 43 43 45 50 54 53 | 20 4e 4f 20 4c 49 41 42 | ACCEPTS| NO LIAB|
|00006100| 49 4c 49 54 59 20 46 4f | 52 20 54 48 49 53 20 50 |ILITY FO|R THIS P|
|00006110| 52 4f 47 52 41 4d 2e 0a | 58 2a 2f 0a 58 0a 58 23 |ROGRAM..|X*/.X.X#|
|00006120| 69 66 6e 64 65 66 20 57 | 5f 49 4e 43 4c 55 44 45 |ifndef W|_INCLUDE|
|00006130| 44 0a 58 0a 58 23 69 6e | 63 6c 75 64 65 20 3c 73 |D.X.X#in|clude <s|
|00006140| 74 64 69 6f 2e 68 3e 0a | 58 0a 58 23 64 65 66 69 |tdio.h>.|X.X#defi|
|00006150| 6e 65 20 5f 57 5f 43 4f | 4d 57 4f 52 44 09 31 36 |ne _W_CO|MWORD.16|
|00006160| 0a 58 23 64 65 66 69 6e | 65 20 5f 57 5f 43 4f 4d |.X#defin|e _W_COM|
|00006170| 4d 41 58 09 32 30 0a 58 | 23 64 65 66 69 6e 65 20 |MAX.20.X|#define |
|00006180| 5f 57 5f 42 4f 4c 4d 41 | 58 09 32 30 0a 58 23 64 |_W_BOLMA|X.20.X#d|
|00006190| 65 66 69 6e 65 20 5f 57 | 5f 4c 49 54 4d 41 58 09 |efine _W|_LITMAX.|
|000061a0| 32 30 0a 58 0a 58 2f 2a | 0a 58 2a 2a 09 74 68 65 |20.X.X/*|.X**.the|
|000061b0| 73 65 20 74 68 72 65 65 | 20 64 61 74 61 20 73 74 |se three| data st|
|000061c0| 72 75 63 74 75 72 65 73 | 20 75 73 65 64 20 74 6f |ructures| used to|
|000061d0| 20 62 65 20 6d 75 63 68 | 0a 58 2a 2a 09 09 64 69 | be much|.X**..di|
|000061e0| 66 66 65 72 65 6e 74 2e | 20 20 65 76 65 6e 74 75 |fferent.| eventu|
|000061f0| 61 6c 6c 79 2c 20 74 68 | 65 20 64 69 66 66 65 72 |ally, th|e differ|
|00006200| 65 6e 63 65 73 0a 58 2a | 2a 09 09 68 61 76 65 20 |ences.X*|*..have |
|00006210| 64 69 73 61 70 70 65 61 | 72 65 64 20 61 73 20 74 |disappea|red as t|
|00006220| 68 65 20 63 6f 64 65 20 | 68 61 73 20 65 76 6f 6c |he code |has evol|
|00006230| 76 65 64 2e 0a 58 2a 2a | 09 09 6f 62 76 69 6f 75 |ved..X**|..obviou|
|00006240| 73 6c 79 2c 20 74 68 65 | 79 20 73 68 6f 75 6c 64 |sly, the|y should|
|00006250| 20 6e 6f 77 20 62 65 20 | 63 6f 6c 6c 61 70 73 65 | now be |collapse|
|00006260| 64 2e 0a 58 2a 2a 09 09 | 73 6f 6d 65 64 61 79 20 |d..X**..|someday |
|00006270| 2e 20 2e 20 2e 0a 58 2a | 2f 0a 58 74 79 70 65 64 |. . ..X*|/.Xtyped|
|00006280| 65 66 20 73 74 72 75 63 | 74 20 7b 0a 58 09 63 68 |ef struc|t {.X.ch|
|00006290| 61 72 20 62 65 67 69 6e | 5b 5f 57 5f 43 4f 4d 57 |ar begin|[_W_COMW|
|000062a0| 4f 52 44 5d 3b 0a 58 09 | 63 68 61 72 20 65 6e 64 |ORD];.X.|char end|
|000062b0| 5b 5f 57 5f 43 4f 4d 57 | 4f 52 44 5d 3b 0a 58 09 |[_W_COMW|ORD];.X.|
|000062c0| 63 68 61 72 20 65 73 63 | 61 70 65 5b 5f 57 5f 43 |char esc|ape[_W_C|
|000062d0| 4f 4d 57 4f 52 44 5d 3b | 0a 58 7d 20 5f 57 5f 62 |OMWORD];|.X} _W_b|
|000062e0| 6f 6c 73 74 72 75 63 74 | 2c 20 2a 57 5f 62 6f 6c |olstruct|, *W_bol|
|000062f0| 3b 0a 58 0a 58 74 79 70 | 65 64 65 66 20 73 74 72 |;.X.Xtyp|edef str|
|00006300| 75 63 74 20 7b 0a 58 09 | 63 68 61 72 20 62 65 67 |uct {.X.|char beg|
|00006310| 69 6e 5b 5f 57 5f 43 4f | 4d 57 4f 52 44 5d 3b 0a |in[_W_CO|MWORD];.|
|00006320| 58 09 63 68 61 72 20 65 | 6e 64 5b 5f 57 5f 43 4f |X.char e|nd[_W_CO|
|00006330| 4d 57 4f 52 44 5d 3b 0a | 58 09 63 68 61 72 20 65 |MWORD];.|X.char e|
|00006340| 73 63 61 70 65 5b 5f 57 | 5f 43 4f 4d 57 4f 52 44 |scape[_W|_COMWORD|
|00006350| 5d 3b 0a 58 09 69 6e 74 | 20 6e 65 73 74 62 69 74 |];.X.int| nestbit|
|00006360| 3b 0a 58 7d 20 5f 57 5f | 63 6f 6d 73 74 72 75 63 |;.X} _W_|comstruc|
|00006370| 74 2c 20 2a 57 5f 63 6f | 6d 3b 0a 58 0a 58 74 79 |t, *W_co|m;.X.Xty|
|00006380| 70 65 64 65 66 20 73 74 | 72 75 63 74 20 7b 0a 58 |pedef st|ruct {.X|
|00006390| 09 63 68 61 72 20 62 65 | 67 69 6e 5b 5f 57 5f 43 |.char be|gin[_W_C|
|000063a0| 4f 4d 57 4f 52 44 5d 3b | 0a 58 09 63 68 61 72 20 |OMWORD];|.X.char |
|000063b0| 65 6e 64 5b 5f 57 5f 43 | 4f 4d 57 4f 52 44 5d 3b |end[_W_C|OMWORD];|
|000063c0| 0a 58 09 63 68 61 72 20 | 65 73 63 61 70 65 5b 5f |.X.char |escape[_|
|000063d0| 57 5f 43 4f 4d 57 4f 52 | 44 5d 3b 0a 58 7d 20 5f |W_COMWOR|D];.X} _|
|000063e0| 57 5f 6c 69 74 73 74 72 | 75 63 74 2c 20 2a 57 5f |W_litstr|uct, *W_|
|000063f0| 6c 69 74 3b 0a 58 0a 58 | 23 64 65 66 69 6e 65 20 |lit;.X.X|#define |
+--------+-------------------------+-------------------------+--------+--------+
Only 25.0 KB of data is shown above.