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%
| 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 32 34 69 30 31 |Subject:| v24i01|
|00000010| 37 3a 20 20 47 4e 55 20 | 44 69 66 66 2c 20 76 65 |7: GNU |Diff, ve|
|00000020| 72 73 69 6f 6e 20 31 2e | 31 35 2c 20 50 61 72 74 |rsion 1.|15, Part|
|00000030| 30 32 2f 30 38 0a 4e 65 | 77 73 67 72 6f 75 70 73 |02/08.Ne|wsgroups|
|00000040| 3a 20 63 6f 6d 70 2e 73 | 6f 75 72 63 65 73 2e 75 |: comp.s|ources.u|
|00000050| 6e 69 78 0a 41 70 70 72 | 6f 76 65 64 3a 20 72 73 |nix.Appr|oved: rs|
|00000060| 61 6c 7a 40 75 75 6e 65 | 74 2e 55 55 2e 4e 45 54 |alz@uune|t.UU.NET|
|00000070| 0a 58 2d 43 68 65 63 6b | 73 75 6d 2d 53 6e 65 66 |.X-Check|sum-Snef|
|00000080| 72 75 3a 20 30 64 64 64 | 65 38 36 35 20 33 39 64 |ru: 0ddd|e865 39d|
|00000090| 64 31 34 36 62 20 63 62 | 36 34 39 30 31 32 20 31 |d146b cb|649012 1|
|000000a0| 64 64 39 65 33 34 66 0a | 0a 53 75 62 6d 69 74 74 |dd9e34f.|.Submitt|
|000000b0| 65 64 2d 62 79 3a 20 50 | 61 75 6c 20 45 67 67 65 |ed-by: P|aul Egge|
|000000c0| 72 74 20 3c 65 67 67 65 | 72 74 40 74 77 69 6e 73 |rt <egge|rt@twins|
|000000d0| 75 6e 2e 63 6f 6d 3e 0a | 50 6f 73 74 69 6e 67 2d |un.com>.|Posting-|
|000000e0| 6e 75 6d 62 65 72 3a 20 | 56 6f 6c 75 6d 65 20 32 |number: |Volume 2|
|000000f0| 34 2c 20 49 73 73 75 65 | 20 31 37 0a 41 72 63 68 |4, Issue| 17.Arch|
|00000100| 69 76 65 2d 6e 61 6d 65 | 3a 20 67 6e 75 64 69 66 |ive-name|: gnudif|
|00000110| 66 31 2e 31 35 2f 70 61 | 72 74 30 32 0a 0a 23 21 |f1.15/pa|rt02..#!|
|00000120| 20 2f 62 69 6e 2f 73 68 | 0a 23 20 54 68 69 73 20 | /bin/sh|.# This |
|00000130| 69 73 20 61 20 73 68 65 | 6c 6c 20 61 72 63 68 69 |is a she|ll archi|
|00000140| 76 65 2e 20 20 52 65 6d | 6f 76 65 20 61 6e 79 74 |ve. Rem|ove anyt|
|00000150| 68 69 6e 67 20 62 65 66 | 6f 72 65 20 74 68 69 73 |hing bef|ore this|
|00000160| 20 6c 69 6e 65 2c 20 74 | 68 65 6e 20 75 6e 70 61 | line, t|hen unpa|
|00000170| 63 6b 0a 23 20 69 74 20 | 62 79 20 73 61 76 69 6e |ck.# it |by savin|
|00000180| 67 20 69 74 20 69 6e 74 | 6f 20 61 20 66 69 6c 65 |g it int|o a file|
|00000190| 20 61 6e 64 20 74 79 70 | 69 6e 67 20 22 73 68 20 | and typ|ing "sh |
|000001a0| 66 69 6c 65 22 2e 20 20 | 54 6f 20 6f 76 65 72 77 |file". |To overw|
|000001b0| 72 69 74 65 20 65 78 69 | 73 74 69 6e 67 0a 23 20 |rite exi|sting.# |
|000001c0| 66 69 6c 65 73 2c 20 74 | 79 70 65 20 22 73 68 20 |files, t|ype "sh |
|000001d0| 66 69 6c 65 20 2d 63 22 | 2e 20 20 59 6f 75 20 63 |file -c"|. You c|
|000001e0| 61 6e 20 61 6c 73 6f 20 | 66 65 65 64 20 74 68 69 |an also |feed thi|
|000001f0| 73 20 61 73 20 73 74 61 | 6e 64 61 72 64 20 69 6e |s as sta|ndard in|
|00000200| 70 75 74 20 76 69 61 0a | 23 20 75 6e 73 68 61 72 |put via.|# unshar|
|00000210| 2c 20 6f 72 20 62 79 20 | 74 79 70 69 6e 67 20 22 |, or by |typing "|
|00000220| 73 68 20 3c 66 69 6c 65 | 22 2c 20 65 2e 67 2e 2e |sh <file|", e.g..|
|00000230| 20 20 49 66 20 74 68 69 | 73 20 61 72 63 68 69 76 | If thi|s archiv|
|00000240| 65 20 69 73 20 63 6f 6d | 70 6c 65 74 65 2c 20 79 |e is com|plete, y|
|00000250| 6f 75 0a 23 20 77 69 6c | 6c 20 73 65 65 20 74 68 |ou.# wil|l see th|
|00000260| 65 20 66 6f 6c 6c 6f 77 | 69 6e 67 20 6d 65 73 73 |e follow|ing mess|
|00000270| 61 67 65 20 61 74 20 74 | 68 65 20 65 6e 64 3a 0a |age at t|he end:.|
|00000280| 23 09 09 22 45 6e 64 20 | 6f 66 20 61 72 63 68 69 |#.."End |of archi|
|00000290| 76 65 20 32 20 28 6f 66 | 20 38 29 2e 22 0a 23 20 |ve 2 (of| 8).".# |
|000002a0| 43 6f 6e 74 65 6e 74 73 | 3a 20 20 43 4f 50 59 49 |Contents|: COPYI|
|000002b0| 4e 47 20 63 6f 6e 74 65 | 78 74 2e 63 20 64 69 66 |NG conte|xt.c dif|
|000002c0| 66 2e 68 20 72 65 67 65 | 78 2e 68 0a 23 20 57 72 |f.h rege|x.h.# Wr|
|000002d0| 61 70 70 65 64 20 62 79 | 20 65 67 67 65 72 74 40 |apped by| eggert@|
|000002e0| 61 74 61 20 6f 6e 20 4d | 6f 6e 20 4a 61 6e 20 20 |ata on M|on Jan |
|000002f0| 37 20 31 31 3a 32 35 3a | 32 38 20 31 39 39 31 0a |7 11:25:|28 1991.|
|00000300| 50 41 54 48 3d 2f 62 69 | 6e 3a 2f 75 73 72 2f 62 |PATH=/bi|n:/usr/b|
|00000310| 69 6e 3a 2f 75 73 72 2f | 75 63 62 20 3b 20 65 78 |in:/usr/|ucb ; ex|
|00000320| 70 6f 72 74 20 50 41 54 | 48 0a 69 66 20 74 65 73 |port PAT|H.if tes|
|00000330| 74 20 2d 66 20 27 43 4f | 50 59 49 4e 47 27 20 2d |t -f 'CO|PYING' -|
|00000340| 61 20 22 24 7b 31 7d 22 | 20 21 3d 20 22 2d 63 22 |a "${1}"| != "-c"|
|00000350| 20 3b 20 74 68 65 6e 20 | 0a 20 20 65 63 68 6f 20 | ; then |. echo |
|00000360| 73 68 61 72 3a 20 57 69 | 6c 6c 20 6e 6f 74 20 63 |shar: Wi|ll not c|
|00000370| 6c 6f 62 62 65 72 20 65 | 78 69 73 74 69 6e 67 20 |lobber e|xisting |
|00000380| 66 69 6c 65 20 5c 22 27 | 43 4f 50 59 49 4e 47 27 |file \"'|COPYING'|
|00000390| 5c 22 0a 65 6c 73 65 0a | 65 63 68 6f 20 73 68 61 |\".else.|echo sha|
|000003a0| 72 3a 20 45 78 74 72 61 | 63 74 69 6e 67 20 5c 22 |r: Extra|cting \"|
|000003b0| 27 43 4f 50 59 49 4e 47 | 27 5c 22 20 5c 28 31 32 |'COPYING|'\" \(12|
|000003c0| 34 38 38 20 63 68 61 72 | 61 63 74 65 72 73 5c 29 |488 char|acters\)|
|000003d0| 0a 73 65 64 20 22 73 2f | 5e 58 2f 2f 22 20 3e 27 |.sed "s/|^X//" >'|
|000003e0| 43 4f 50 59 49 4e 47 27 | 20 3c 3c 27 45 4e 44 5f |COPYING'| <<'END_|
|000003f0| 4f 46 5f 46 49 4c 45 27 | 0a 58 0a 58 09 09 20 20 |OF_FILE'|.X.X.. |
|00000400| 20 20 47 4e 55 20 47 45 | 4e 45 52 41 4c 20 50 55 | GNU GE|NERAL PU|
|00000410| 42 4c 49 43 20 4c 49 43 | 45 4e 53 45 0a 58 09 09 |BLIC LIC|ENSE.X..|
|00000420| 20 20 20 20 20 56 65 72 | 73 69 6f 6e 20 31 2c 20 | Ver|sion 1, |
|00000430| 46 65 62 72 75 61 72 79 | 20 31 39 38 39 0a 58 0a |February| 1989.X.|
|00000440| 58 20 43 6f 70 79 72 69 | 67 68 74 20 28 43 29 20 |X Copyri|ght (C) |
|00000450| 31 39 38 39 20 46 72 65 | 65 20 53 6f 66 74 77 61 |1989 Fre|e Softwa|
|00000460| 72 65 20 46 6f 75 6e 64 | 61 74 69 6f 6e 2c 20 49 |re Found|ation, I|
|00000470| 6e 63 2e 0a 58 20 20 20 | 20 20 20 20 20 20 20 20 |nc..X | |
|00000480| 20 20 20 20 20 20 20 20 | 20 36 37 35 20 4d 61 73 | | 675 Mas|
|00000490| 73 20 41 76 65 2c 20 43 | 61 6d 62 72 69 64 67 65 |s Ave, C|ambridge|
|000004a0| 2c 20 4d 41 20 30 32 31 | 33 39 2c 20 55 53 41 0a |, MA 021|39, USA.|
|000004b0| 58 20 45 76 65 72 79 6f | 6e 65 20 69 73 20 70 65 |X Everyo|ne is pe|
|000004c0| 72 6d 69 74 74 65 64 20 | 74 6f 20 63 6f 70 79 20 |rmitted |to copy |
|000004d0| 61 6e 64 20 64 69 73 74 | 72 69 62 75 74 65 20 76 |and dist|ribute v|
|000004e0| 65 72 62 61 74 69 6d 20 | 63 6f 70 69 65 73 0a 58 |erbatim |copies.X|
|000004f0| 20 6f 66 20 74 68 69 73 | 20 6c 69 63 65 6e 73 65 | of this| license|
|00000500| 20 64 6f 63 75 6d 65 6e | 74 2c 20 62 75 74 20 63 | documen|t, but c|
|00000510| 68 61 6e 67 69 6e 67 20 | 69 74 20 69 73 20 6e 6f |hanging |it is no|
|00000520| 74 20 61 6c 6c 6f 77 65 | 64 2e 0a 58 0a 58 09 09 |t allowe|d..X.X..|
|00000530| 09 20 20 20 20 50 72 65 | 61 6d 62 6c 65 0a 58 0a |. Pre|amble.X.|
|00000540| 58 20 20 54 68 65 20 6c | 69 63 65 6e 73 65 20 61 |X The l|icense a|
|00000550| 67 72 65 65 6d 65 6e 74 | 73 20 6f 66 20 6d 6f 73 |greement|s of mos|
|00000560| 74 20 73 6f 66 74 77 61 | 72 65 20 63 6f 6d 70 61 |t softwa|re compa|
|00000570| 6e 69 65 73 20 74 72 79 | 20 74 6f 20 6b 65 65 70 |nies try| to keep|
|00000580| 20 75 73 65 72 73 0a 58 | 61 74 20 74 68 65 20 6d | users.X|at the m|
|00000590| 65 72 63 79 20 6f 66 20 | 74 68 6f 73 65 20 63 6f |ercy of |those co|
|000005a0| 6d 70 61 6e 69 65 73 2e | 20 20 42 79 20 63 6f 6e |mpanies.| By con|
|000005b0| 74 72 61 73 74 2c 20 6f | 75 72 20 47 65 6e 65 72 |trast, o|ur Gener|
|000005c0| 61 6c 20 50 75 62 6c 69 | 63 0a 58 4c 69 63 65 6e |al Publi|c.XLicen|
|000005d0| 73 65 20 69 73 20 69 6e | 74 65 6e 64 65 64 20 74 |se is in|tended t|
|000005e0| 6f 20 67 75 61 72 61 6e | 74 65 65 20 79 6f 75 72 |o guaran|tee your|
|000005f0| 20 66 72 65 65 64 6f 6d | 20 74 6f 20 73 68 61 72 | freedom| to shar|
|00000600| 65 20 61 6e 64 20 63 68 | 61 6e 67 65 20 66 72 65 |e and ch|ange fre|
|00000610| 65 0a 58 73 6f 66 74 77 | 61 72 65 2d 2d 74 6f 20 |e.Xsoftw|are--to |
|00000620| 6d 61 6b 65 20 73 75 72 | 65 20 74 68 65 20 73 6f |make sur|e the so|
|00000630| 66 74 77 61 72 65 20 69 | 73 20 66 72 65 65 20 66 |ftware i|s free f|
|00000640| 6f 72 20 61 6c 6c 20 69 | 74 73 20 75 73 65 72 73 |or all i|ts users|
|00000650| 2e 20 20 54 68 65 0a 58 | 47 65 6e 65 72 61 6c 20 |. The.X|General |
|00000660| 50 75 62 6c 69 63 20 4c | 69 63 65 6e 73 65 20 61 |Public L|icense a|
|00000670| 70 70 6c 69 65 73 20 74 | 6f 20 74 68 65 20 46 72 |pplies t|o the Fr|
|00000680| 65 65 20 53 6f 66 74 77 | 61 72 65 20 46 6f 75 6e |ee Softw|are Foun|
|00000690| 64 61 74 69 6f 6e 27 73 | 0a 58 73 6f 66 74 77 61 |dation's|.Xsoftwa|
|000006a0| 72 65 20 61 6e 64 20 74 | 6f 20 61 6e 79 20 6f 74 |re and t|o any ot|
|000006b0| 68 65 72 20 70 72 6f 67 | 72 61 6d 20 77 68 6f 73 |her prog|ram whos|
|000006c0| 65 20 61 75 74 68 6f 72 | 73 20 63 6f 6d 6d 69 74 |e author|s commit|
|000006d0| 20 74 6f 20 75 73 69 6e | 67 20 69 74 2e 0a 58 59 | to usin|g it..XY|
|000006e0| 6f 75 20 63 61 6e 20 75 | 73 65 20 69 74 20 66 6f |ou can u|se it fo|
|000006f0| 72 20 79 6f 75 72 20 70 | 72 6f 67 72 61 6d 73 2c |r your p|rograms,|
|00000700| 20 74 6f 6f 2e 0a 58 0a | 58 20 20 57 68 65 6e 20 | too..X.|X When |
|00000710| 77 65 20 73 70 65 61 6b | 20 6f 66 20 66 72 65 65 |we speak| of free|
|00000720| 20 73 6f 66 74 77 61 72 | 65 2c 20 77 65 20 61 72 | softwar|e, we ar|
|00000730| 65 20 72 65 66 65 72 72 | 69 6e 67 20 74 6f 20 66 |e referr|ing to f|
|00000740| 72 65 65 64 6f 6d 2c 20 | 6e 6f 74 0a 58 70 72 69 |reedom, |not.Xpri|
|00000750| 63 65 2e 20 20 53 70 65 | 63 69 66 69 63 61 6c 6c |ce. Spe|cificall|
|00000760| 79 2c 20 74 68 65 20 47 | 65 6e 65 72 61 6c 20 50 |y, the G|eneral P|
|00000770| 75 62 6c 69 63 20 4c 69 | 63 65 6e 73 65 20 69 73 |ublic Li|cense is|
|00000780| 20 64 65 73 69 67 6e 65 | 64 20 74 6f 20 6d 61 6b | designe|d to mak|
|00000790| 65 0a 58 73 75 72 65 20 | 74 68 61 74 20 79 6f 75 |e.Xsure |that you|
|000007a0| 20 68 61 76 65 20 74 68 | 65 20 66 72 65 65 64 6f | have th|e freedo|
|000007b0| 6d 20 74 6f 20 67 69 76 | 65 20 61 77 61 79 20 6f |m to giv|e away o|
|000007c0| 72 20 73 65 6c 6c 20 63 | 6f 70 69 65 73 20 6f 66 |r sell c|opies of|
|000007d0| 20 66 72 65 65 0a 58 73 | 6f 66 74 77 61 72 65 2c | free.Xs|oftware,|
|000007e0| 20 74 68 61 74 20 79 6f | 75 20 72 65 63 65 69 76 | that yo|u receiv|
|000007f0| 65 20 73 6f 75 72 63 65 | 20 63 6f 64 65 20 6f 72 |e source| code or|
|00000800| 20 63 61 6e 20 67 65 74 | 20 69 74 20 69 66 20 79 | can get| it if y|
|00000810| 6f 75 20 77 61 6e 74 20 | 69 74 2c 0a 58 74 68 61 |ou want |it,.Xtha|
|00000820| 74 20 79 6f 75 20 63 61 | 6e 20 63 68 61 6e 67 65 |t you ca|n change|
|00000830| 20 74 68 65 20 73 6f 66 | 74 77 61 72 65 20 6f 72 | the sof|tware or|
|00000840| 20 75 73 65 20 70 69 65 | 63 65 73 20 6f 66 20 69 | use pie|ces of i|
|00000850| 74 20 69 6e 20 6e 65 77 | 20 66 72 65 65 0a 58 70 |t in new| free.Xp|
|00000860| 72 6f 67 72 61 6d 73 3b | 20 61 6e 64 20 74 68 61 |rograms;| and tha|
|00000870| 74 20 79 6f 75 20 6b 6e | 6f 77 20 79 6f 75 20 63 |t you kn|ow you c|
|00000880| 61 6e 20 64 6f 20 74 68 | 65 73 65 20 74 68 69 6e |an do th|ese thin|
|00000890| 67 73 2e 0a 58 0a 58 20 | 20 54 6f 20 70 72 6f 74 |gs..X.X | To prot|
|000008a0| 65 63 74 20 79 6f 75 72 | 20 72 69 67 68 74 73 2c |ect your| rights,|
|000008b0| 20 77 65 20 6e 65 65 64 | 20 74 6f 20 6d 61 6b 65 | we need| to make|
|000008c0| 20 72 65 73 74 72 69 63 | 74 69 6f 6e 73 20 74 68 | restric|tions th|
|000008d0| 61 74 20 66 6f 72 62 69 | 64 0a 58 61 6e 79 6f 6e |at forbi|d.Xanyon|
|000008e0| 65 20 74 6f 20 64 65 6e | 79 20 79 6f 75 20 74 68 |e to den|y you th|
|000008f0| 65 73 65 20 72 69 67 68 | 74 73 20 6f 72 20 74 6f |ese righ|ts or to|
|00000900| 20 61 73 6b 20 79 6f 75 | 20 74 6f 20 73 75 72 72 | ask you| to surr|
|00000910| 65 6e 64 65 72 20 74 68 | 65 20 72 69 67 68 74 73 |ender th|e rights|
|00000920| 2e 0a 58 54 68 65 73 65 | 20 72 65 73 74 72 69 63 |..XThese| restric|
|00000930| 74 69 6f 6e 73 20 74 72 | 61 6e 73 6c 61 74 65 20 |tions tr|anslate |
|00000940| 74 6f 20 63 65 72 74 61 | 69 6e 20 72 65 73 70 6f |to certa|in respo|
|00000950| 6e 73 69 62 69 6c 69 74 | 69 65 73 20 66 6f 72 20 |nsibilit|ies for |
|00000960| 79 6f 75 20 69 66 20 79 | 6f 75 0a 58 64 69 73 74 |you if y|ou.Xdist|
|00000970| 72 69 62 75 74 65 20 63 | 6f 70 69 65 73 20 6f 66 |ribute c|opies of|
|00000980| 20 74 68 65 20 73 6f 66 | 74 77 61 72 65 2c 20 6f | the sof|tware, o|
|00000990| 72 20 69 66 20 79 6f 75 | 20 6d 6f 64 69 66 79 20 |r if you| modify |
|000009a0| 69 74 2e 0a 58 0a 58 20 | 20 46 6f 72 20 65 78 61 |it..X.X | For exa|
|000009b0| 6d 70 6c 65 2c 20 69 66 | 20 79 6f 75 20 64 69 73 |mple, if| you dis|
|000009c0| 74 72 69 62 75 74 65 20 | 63 6f 70 69 65 73 20 6f |tribute |copies o|
|000009d0| 66 20 61 20 73 75 63 68 | 20 61 20 70 72 6f 67 72 |f a such| a progr|
|000009e0| 61 6d 2c 20 77 68 65 74 | 68 65 72 0a 58 67 72 61 |am, whet|her.Xgra|
|000009f0| 74 69 73 20 6f 72 20 66 | 6f 72 20 61 20 66 65 65 |tis or f|or a fee|
|00000a00| 2c 20 79 6f 75 20 6d 75 | 73 74 20 67 69 76 65 20 |, you mu|st give |
|00000a10| 74 68 65 20 72 65 63 69 | 70 69 65 6e 74 73 20 61 |the reci|pients a|
|00000a20| 6c 6c 20 74 68 65 20 72 | 69 67 68 74 73 20 74 68 |ll the r|ights th|
|00000a30| 61 74 0a 58 79 6f 75 20 | 68 61 76 65 2e 20 20 59 |at.Xyou |have. Y|
|00000a40| 6f 75 20 6d 75 73 74 20 | 6d 61 6b 65 20 73 75 72 |ou must |make sur|
|00000a50| 65 20 74 68 61 74 20 74 | 68 65 79 2c 20 74 6f 6f |e that t|hey, too|
|00000a60| 2c 20 72 65 63 65 69 76 | 65 20 6f 72 20 63 61 6e |, receiv|e or can|
|00000a70| 20 67 65 74 20 74 68 65 | 0a 58 73 6f 75 72 63 65 | get the|.Xsource|
|00000a80| 20 63 6f 64 65 2e 20 20 | 41 6e 64 20 79 6f 75 20 | code. |And you |
|00000a90| 6d 75 73 74 20 74 65 6c | 6c 20 74 68 65 6d 20 74 |must tel|l them t|
|00000aa0| 68 65 69 72 20 72 69 67 | 68 74 73 2e 0a 58 0a 58 |heir rig|hts..X.X|
|00000ab0| 20 20 57 65 20 70 72 6f | 74 65 63 74 20 79 6f 75 | We pro|tect you|
|00000ac0| 72 20 72 69 67 68 74 73 | 20 77 69 74 68 20 74 77 |r rights| with tw|
|00000ad0| 6f 20 73 74 65 70 73 3a | 20 28 31 29 20 63 6f 70 |o steps:| (1) cop|
|00000ae0| 79 72 69 67 68 74 20 74 | 68 65 20 73 6f 66 74 77 |yright t|he softw|
|00000af0| 61 72 65 2c 20 61 6e 64 | 0a 58 28 32 29 20 6f 66 |are, and|.X(2) of|
|00000b00| 66 65 72 20 79 6f 75 20 | 74 68 69 73 20 6c 69 63 |fer you |this lic|
|00000b10| 65 6e 73 65 20 77 68 69 | 63 68 20 67 69 76 65 73 |ense whi|ch gives|
|00000b20| 20 79 6f 75 20 6c 65 67 | 61 6c 20 70 65 72 6d 69 | you leg|al permi|
|00000b30| 73 73 69 6f 6e 20 74 6f | 20 63 6f 70 79 2c 0a 58 |ssion to| copy,.X|
|00000b40| 64 69 73 74 72 69 62 75 | 74 65 20 61 6e 64 2f 6f |distribu|te and/o|
|00000b50| 72 20 6d 6f 64 69 66 79 | 20 74 68 65 20 73 6f 66 |r modify| the sof|
|00000b60| 74 77 61 72 65 2e 0a 58 | 0a 58 20 20 41 6c 73 6f |tware..X|.X Also|
|00000b70| 2c 20 66 6f 72 20 65 61 | 63 68 20 61 75 74 68 6f |, for ea|ch autho|
|00000b80| 72 27 73 20 70 72 6f 74 | 65 63 74 69 6f 6e 20 61 |r's prot|ection a|
|00000b90| 6e 64 20 6f 75 72 73 2c | 20 77 65 20 77 61 6e 74 |nd ours,| we want|
|00000ba0| 20 74 6f 20 6d 61 6b 65 | 20 63 65 72 74 61 69 6e | to make| certain|
|00000bb0| 0a 58 74 68 61 74 20 65 | 76 65 72 79 6f 6e 65 20 |.Xthat e|veryone |
|00000bc0| 75 6e 64 65 72 73 74 61 | 6e 64 73 20 74 68 61 74 |understa|nds that|
|00000bd0| 20 74 68 65 72 65 20 69 | 73 20 6e 6f 20 77 61 72 | there i|s no war|
|00000be0| 72 61 6e 74 79 20 66 6f | 72 20 74 68 69 73 20 66 |ranty fo|r this f|
|00000bf0| 72 65 65 0a 58 73 6f 66 | 74 77 61 72 65 2e 20 20 |ree.Xsof|tware. |
|00000c00| 49 66 20 74 68 65 20 73 | 6f 66 74 77 61 72 65 20 |If the s|oftware |
|00000c10| 69 73 20 6d 6f 64 69 66 | 69 65 64 20 62 79 20 73 |is modif|ied by s|
|00000c20| 6f 6d 65 6f 6e 65 20 65 | 6c 73 65 20 61 6e 64 20 |omeone e|lse and |
|00000c30| 70 61 73 73 65 64 20 6f | 6e 2c 20 77 65 0a 58 77 |passed o|n, we.Xw|
|00000c40| 61 6e 74 20 69 74 73 20 | 72 65 63 69 70 69 65 6e |ant its |recipien|
|00000c50| 74 73 20 74 6f 20 6b 6e | 6f 77 20 74 68 61 74 20 |ts to kn|ow that |
|00000c60| 77 68 61 74 20 74 68 65 | 79 20 68 61 76 65 20 69 |what the|y have i|
|00000c70| 73 20 6e 6f 74 20 74 68 | 65 20 6f 72 69 67 69 6e |s not th|e origin|
|00000c80| 61 6c 2c 20 73 6f 0a 58 | 74 68 61 74 20 61 6e 79 |al, so.X|that any|
|00000c90| 20 70 72 6f 62 6c 65 6d | 73 20 69 6e 74 72 6f 64 | problem|s introd|
|00000ca0| 75 63 65 64 20 62 79 20 | 6f 74 68 65 72 73 20 77 |uced by |others w|
|00000cb0| 69 6c 6c 20 6e 6f 74 20 | 72 65 66 6c 65 63 74 20 |ill not |reflect |
|00000cc0| 6f 6e 20 74 68 65 20 6f | 72 69 67 69 6e 61 6c 0a |on the o|riginal.|
|00000cd0| 58 61 75 74 68 6f 72 73 | 27 20 72 65 70 75 74 61 |Xauthors|' reputa|
|00000ce0| 74 69 6f 6e 73 2e 0a 58 | 0a 58 20 20 54 68 65 20 |tions..X|.X The |
|00000cf0| 70 72 65 63 69 73 65 20 | 74 65 72 6d 73 20 61 6e |precise |terms an|
|00000d00| 64 20 63 6f 6e 64 69 74 | 69 6f 6e 73 20 66 6f 72 |d condit|ions for|
|00000d10| 20 63 6f 70 79 69 6e 67 | 2c 20 64 69 73 74 72 69 | copying|, distri|
|00000d20| 62 75 74 69 6f 6e 20 61 | 6e 64 0a 58 6d 6f 64 69 |bution a|nd.Xmodi|
|00000d30| 66 69 63 61 74 69 6f 6e | 20 66 6f 6c 6c 6f 77 2e |fication| follow.|
|00000d40| 0a 58 0c 0a 58 09 09 20 | 20 20 20 47 4e 55 20 47 |.X..X.. | GNU G|
|00000d50| 45 4e 45 52 41 4c 20 50 | 55 42 4c 49 43 20 4c 49 |ENERAL P|UBLIC LI|
|00000d60| 43 45 4e 53 45 0a 58 20 | 20 20 54 45 52 4d 53 20 |CENSE.X | TERMS |
|00000d70| 41 4e 44 20 43 4f 4e 44 | 49 54 49 4f 4e 53 20 46 |AND COND|ITIONS F|
|00000d80| 4f 52 20 43 4f 50 59 49 | 4e 47 2c 20 44 49 53 54 |OR COPYI|NG, DIST|
|00000d90| 52 49 42 55 54 49 4f 4e | 20 41 4e 44 20 4d 4f 44 |RIBUTION| AND MOD|
|00000da0| 49 46 49 43 41 54 49 4f | 4e 0a 58 0a 58 20 20 30 |IFICATIO|N.X.X 0|
|00000db0| 2e 20 54 68 69 73 20 4c | 69 63 65 6e 73 65 20 41 |. This L|icense A|
|00000dc0| 67 72 65 65 6d 65 6e 74 | 20 61 70 70 6c 69 65 73 |greement| applies|
|00000dd0| 20 74 6f 20 61 6e 79 20 | 70 72 6f 67 72 61 6d 20 | to any |program |
|00000de0| 6f 72 20 6f 74 68 65 72 | 20 77 6f 72 6b 20 77 68 |or other| work wh|
|00000df0| 69 63 68 0a 58 63 6f 6e | 74 61 69 6e 73 20 61 20 |ich.Xcon|tains a |
|00000e00| 6e 6f 74 69 63 65 20 70 | 6c 61 63 65 64 20 62 79 |notice p|laced by|
|00000e10| 20 74 68 65 20 63 6f 70 | 79 72 69 67 68 74 20 68 | the cop|yright h|
|00000e20| 6f 6c 64 65 72 20 73 61 | 79 69 6e 67 20 69 74 20 |older sa|ying it |
|00000e30| 6d 61 79 20 62 65 0a 58 | 64 69 73 74 72 69 62 75 |may be.X|distribu|
|00000e40| 74 65 64 20 75 6e 64 65 | 72 20 74 68 65 20 74 65 |ted unde|r the te|
|00000e50| 72 6d 73 20 6f 66 20 74 | 68 69 73 20 47 65 6e 65 |rms of t|his Gene|
|00000e60| 72 61 6c 20 50 75 62 6c | 69 63 20 4c 69 63 65 6e |ral Publ|ic Licen|
|00000e70| 73 65 2e 20 20 54 68 65 | 0a 58 22 50 72 6f 67 72 |se. The|.X"Progr|
|00000e80| 61 6d 22 2c 20 62 65 6c | 6f 77 2c 20 72 65 66 65 |am", bel|ow, refe|
|00000e90| 72 73 20 74 6f 20 61 6e | 79 20 73 75 63 68 20 70 |rs to an|y such p|
|00000ea0| 72 6f 67 72 61 6d 20 6f | 72 20 77 6f 72 6b 2c 20 |rogram o|r work, |
|00000eb0| 61 6e 64 20 61 20 22 77 | 6f 72 6b 20 62 61 73 65 |and a "w|ork base|
|00000ec0| 64 0a 58 6f 6e 20 74 68 | 65 20 50 72 6f 67 72 61 |d.Xon th|e Progra|
|00000ed0| 6d 22 20 6d 65 61 6e 73 | 20 65 69 74 68 65 72 20 |m" means| either |
|00000ee0| 74 68 65 20 50 72 6f 67 | 72 61 6d 20 6f 72 20 61 |the Prog|ram or a|
|00000ef0| 6e 79 20 77 6f 72 6b 20 | 63 6f 6e 74 61 69 6e 69 |ny work |containi|
|00000f00| 6e 67 20 74 68 65 0a 58 | 50 72 6f 67 72 61 6d 20 |ng the.X|Program |
|00000f10| 6f 72 20 61 20 70 6f 72 | 74 69 6f 6e 20 6f 66 20 |or a por|tion of |
|00000f20| 69 74 2c 20 65 69 74 68 | 65 72 20 76 65 72 62 61 |it, eith|er verba|
|00000f30| 74 69 6d 20 6f 72 20 77 | 69 74 68 20 6d 6f 64 69 |tim or w|ith modi|
|00000f40| 66 69 63 61 74 69 6f 6e | 73 2e 20 20 45 61 63 68 |fication|s. Each|
|00000f50| 0a 58 6c 69 63 65 6e 73 | 65 65 20 69 73 20 61 64 |.Xlicens|ee is ad|
|00000f60| 64 72 65 73 73 65 64 20 | 61 73 20 22 79 6f 75 22 |dressed |as "you"|
|00000f70| 2e 0a 58 0a 58 20 20 31 | 2e 20 59 6f 75 20 6d 61 |..X.X 1|. You ma|
|00000f80| 79 20 63 6f 70 79 20 61 | 6e 64 20 64 69 73 74 72 |y copy a|nd distr|
|00000f90| 69 62 75 74 65 20 76 65 | 72 62 61 74 69 6d 20 63 |ibute ve|rbatim c|
|00000fa0| 6f 70 69 65 73 20 6f 66 | 20 74 68 65 20 50 72 6f |opies of| the Pro|
|00000fb0| 67 72 61 6d 27 73 20 73 | 6f 75 72 63 65 0a 58 63 |gram's s|ource.Xc|
|00000fc0| 6f 64 65 20 61 73 20 79 | 6f 75 20 72 65 63 65 69 |ode as y|ou recei|
|00000fd0| 76 65 20 69 74 2c 20 69 | 6e 20 61 6e 79 20 6d 65 |ve it, i|n any me|
|00000fe0| 64 69 75 6d 2c 20 70 72 | 6f 76 69 64 65 64 20 74 |dium, pr|ovided t|
|00000ff0| 68 61 74 20 79 6f 75 20 | 63 6f 6e 73 70 69 63 75 |hat you |conspicu|
|00001000| 6f 75 73 6c 79 20 61 6e | 64 0a 58 61 70 70 72 6f |ously an|d.Xappro|
|00001010| 70 72 69 61 74 65 6c 79 | 20 70 75 62 6c 69 73 68 |priately| publish|
|00001020| 20 6f 6e 20 65 61 63 68 | 20 63 6f 70 79 20 61 6e | on each| copy an|
|00001030| 20 61 70 70 72 6f 70 72 | 69 61 74 65 20 63 6f 70 | appropr|iate cop|
|00001040| 79 72 69 67 68 74 20 6e | 6f 74 69 63 65 20 61 6e |yright n|otice an|
|00001050| 64 0a 58 64 69 73 63 6c | 61 69 6d 65 72 20 6f 66 |d.Xdiscl|aimer of|
|00001060| 20 77 61 72 72 61 6e 74 | 79 3b 20 6b 65 65 70 20 | warrant|y; keep |
|00001070| 69 6e 74 61 63 74 20 61 | 6c 6c 20 74 68 65 20 6e |intact a|ll the n|
|00001080| 6f 74 69 63 65 73 20 74 | 68 61 74 20 72 65 66 65 |otices t|hat refe|
|00001090| 72 20 74 6f 20 74 68 69 | 73 0a 58 47 65 6e 65 72 |r to thi|s.XGener|
|000010a0| 61 6c 20 50 75 62 6c 69 | 63 20 4c 69 63 65 6e 73 |al Publi|c Licens|
|000010b0| 65 20 61 6e 64 20 74 6f | 20 74 68 65 20 61 62 73 |e and to| the abs|
|000010c0| 65 6e 63 65 20 6f 66 20 | 61 6e 79 20 77 61 72 72 |ence of |any warr|
|000010d0| 61 6e 74 79 3b 20 61 6e | 64 20 67 69 76 65 20 61 |anty; an|d give a|
|000010e0| 6e 79 0a 58 6f 74 68 65 | 72 20 72 65 63 69 70 69 |ny.Xothe|r recipi|
|000010f0| 65 6e 74 73 20 6f 66 20 | 74 68 65 20 50 72 6f 67 |ents of |the Prog|
|00001100| 72 61 6d 20 61 20 63 6f | 70 79 20 6f 66 20 74 68 |ram a co|py of th|
|00001110| 69 73 20 47 65 6e 65 72 | 61 6c 20 50 75 62 6c 69 |is Gener|al Publi|
|00001120| 63 20 4c 69 63 65 6e 73 | 65 0a 58 61 6c 6f 6e 67 |c Licens|e.Xalong|
|00001130| 20 77 69 74 68 20 74 68 | 65 20 50 72 6f 67 72 61 | with th|e Progra|
|00001140| 6d 2e 20 20 59 6f 75 20 | 6d 61 79 20 63 68 61 72 |m. You |may char|
|00001150| 67 65 20 61 20 66 65 65 | 20 66 6f 72 20 74 68 65 |ge a fee| for the|
|00001160| 20 70 68 79 73 69 63 61 | 6c 20 61 63 74 20 6f 66 | physica|l act of|
|00001170| 0a 58 74 72 61 6e 73 66 | 65 72 72 69 6e 67 20 61 |.Xtransf|erring a|
|00001180| 20 63 6f 70 79 2e 0a 58 | 0a 58 20 20 32 2e 20 59 | copy..X|.X 2. Y|
|00001190| 6f 75 20 6d 61 79 20 6d | 6f 64 69 66 79 20 79 6f |ou may m|odify yo|
|000011a0| 75 72 20 63 6f 70 79 20 | 6f 72 20 63 6f 70 69 65 |ur copy |or copie|
|000011b0| 73 20 6f 66 20 74 68 65 | 20 50 72 6f 67 72 61 6d |s of the| Program|
|000011c0| 20 6f 72 20 61 6e 79 20 | 70 6f 72 74 69 6f 6e 20 | or any |portion |
|000011d0| 6f 66 0a 58 69 74 2c 20 | 61 6e 64 20 63 6f 70 79 |of.Xit, |and copy|
|000011e0| 20 61 6e 64 20 64 69 73 | 74 72 69 62 75 74 65 20 | and dis|tribute |
|000011f0| 73 75 63 68 20 6d 6f 64 | 69 66 69 63 61 74 69 6f |such mod|ificatio|
|00001200| 6e 73 20 75 6e 64 65 72 | 20 74 68 65 20 74 65 72 |ns under| the ter|
|00001210| 6d 73 20 6f 66 20 50 61 | 72 61 67 72 61 70 68 0a |ms of Pa|ragraph.|
|00001220| 58 31 20 61 62 6f 76 65 | 2c 20 70 72 6f 76 69 64 |X1 above|, provid|
|00001230| 65 64 20 74 68 61 74 20 | 79 6f 75 20 61 6c 73 6f |ed that |you also|
|00001240| 20 64 6f 20 74 68 65 20 | 66 6f 6c 6c 6f 77 69 6e | do the |followin|
|00001250| 67 3a 0a 58 0a 58 20 20 | 20 20 61 29 20 63 61 75 |g:.X.X | a) cau|
|00001260| 73 65 20 74 68 65 20 6d | 6f 64 69 66 69 65 64 20 |se the m|odified |
|00001270| 66 69 6c 65 73 20 74 6f | 20 63 61 72 72 79 20 70 |files to| carry p|
|00001280| 72 6f 6d 69 6e 65 6e 74 | 20 6e 6f 74 69 63 65 73 |rominent| notices|
|00001290| 20 73 74 61 74 69 6e 67 | 20 74 68 61 74 0a 58 20 | stating| that.X |
|000012a0| 20 20 20 79 6f 75 20 63 | 68 61 6e 67 65 64 20 74 | you c|hanged t|
|000012b0| 68 65 20 66 69 6c 65 73 | 20 61 6e 64 20 74 68 65 |he files| and the|
|000012c0| 20 64 61 74 65 20 6f 66 | 20 61 6e 79 20 63 68 61 | date of| any cha|
|000012d0| 6e 67 65 3b 20 61 6e 64 | 0a 58 0a 58 20 20 20 20 |nge; and|.X.X |
|000012e0| 62 29 20 63 61 75 73 65 | 20 74 68 65 20 77 68 6f |b) cause| the who|
|000012f0| 6c 65 20 6f 66 20 61 6e | 79 20 77 6f 72 6b 20 74 |le of an|y work t|
|00001300| 68 61 74 20 79 6f 75 20 | 64 69 73 74 72 69 62 75 |hat you |distribu|
|00001310| 74 65 20 6f 72 20 70 75 | 62 6c 69 73 68 2c 20 74 |te or pu|blish, t|
|00001320| 68 61 74 0a 58 20 20 20 | 20 69 6e 20 77 68 6f 6c |hat.X | in whol|
|00001330| 65 20 6f 72 20 69 6e 20 | 70 61 72 74 20 63 6f 6e |e or in |part con|
|00001340| 74 61 69 6e 73 20 74 68 | 65 20 50 72 6f 67 72 61 |tains th|e Progra|
|00001350| 6d 20 6f 72 20 61 6e 79 | 20 70 61 72 74 20 74 68 |m or any| part th|
|00001360| 65 72 65 6f 66 2c 20 65 | 69 74 68 65 72 0a 58 20 |ereof, e|ither.X |
|00001370| 20 20 20 77 69 74 68 20 | 6f 72 20 77 69 74 68 6f | with |or witho|
|00001380| 75 74 20 6d 6f 64 69 66 | 69 63 61 74 69 6f 6e 73 |ut modif|ications|
|00001390| 2c 20 74 6f 20 62 65 20 | 6c 69 63 65 6e 73 65 64 |, to be |licensed|
|000013a0| 20 61 74 20 6e 6f 20 63 | 68 61 72 67 65 20 74 6f | at no c|harge to|
|000013b0| 20 61 6c 6c 0a 58 20 20 | 20 20 74 68 69 72 64 20 | all.X | third |
|000013c0| 70 61 72 74 69 65 73 20 | 75 6e 64 65 72 20 74 68 |parties |under th|
|000013d0| 65 20 74 65 72 6d 73 20 | 6f 66 20 74 68 69 73 20 |e terms |of this |
|000013e0| 47 65 6e 65 72 61 6c 20 | 50 75 62 6c 69 63 20 4c |General |Public L|
|000013f0| 69 63 65 6e 73 65 20 28 | 65 78 63 65 70 74 0a 58 |icense (|except.X|
|00001400| 20 20 20 20 74 68 61 74 | 20 79 6f 75 20 6d 61 79 | that| you may|
|00001410| 20 63 68 6f 6f 73 65 20 | 74 6f 20 67 72 61 6e 74 | choose |to grant|
|00001420| 20 77 61 72 72 61 6e 74 | 79 20 70 72 6f 74 65 63 | warrant|y protec|
|00001430| 74 69 6f 6e 20 74 6f 20 | 73 6f 6d 65 20 6f 72 20 |tion to |some or |
|00001440| 61 6c 6c 0a 58 20 20 20 | 20 74 68 69 72 64 20 70 |all.X | third p|
|00001450| 61 72 74 69 65 73 2c 20 | 61 74 20 79 6f 75 72 20 |arties, |at your |
|00001460| 6f 70 74 69 6f 6e 29 2e | 0a 58 0a 58 20 20 20 20 |option).|.X.X |
|00001470| 63 29 20 49 66 20 74 68 | 65 20 6d 6f 64 69 66 69 |c) If th|e modifi|
|00001480| 65 64 20 70 72 6f 67 72 | 61 6d 20 6e 6f 72 6d 61 |ed progr|am norma|
|00001490| 6c 6c 79 20 72 65 61 64 | 73 20 63 6f 6d 6d 61 6e |lly read|s comman|
|000014a0| 64 73 20 69 6e 74 65 72 | 61 63 74 69 76 65 6c 79 |ds inter|actively|
|000014b0| 20 77 68 65 6e 0a 58 20 | 20 20 20 72 75 6e 2c 20 | when.X | run, |
|000014c0| 79 6f 75 20 6d 75 73 74 | 20 63 61 75 73 65 20 69 |you must| cause i|
|000014d0| 74 2c 20 77 68 65 6e 20 | 73 74 61 72 74 65 64 20 |t, when |started |
|000014e0| 72 75 6e 6e 69 6e 67 20 | 66 6f 72 20 73 75 63 68 |running |for such|
|000014f0| 20 69 6e 74 65 72 61 63 | 74 69 76 65 20 75 73 65 | interac|tive use|
|00001500| 0a 58 20 20 20 20 69 6e | 20 74 68 65 20 73 69 6d |.X in| the sim|
|00001510| 70 6c 65 73 74 20 61 6e | 64 20 6d 6f 73 74 20 75 |plest an|d most u|
|00001520| 73 75 61 6c 20 77 61 79 | 2c 20 74 6f 20 70 72 69 |sual way|, to pri|
|00001530| 6e 74 20 6f 72 20 64 69 | 73 70 6c 61 79 20 61 6e |nt or di|splay an|
|00001540| 0a 58 20 20 20 20 61 6e | 6e 6f 75 6e 63 65 6d 65 |.X an|nounceme|
|00001550| 6e 74 20 69 6e 63 6c 75 | 64 69 6e 67 20 61 6e 20 |nt inclu|ding an |
|00001560| 61 70 70 72 6f 70 72 69 | 61 74 65 20 63 6f 70 79 |appropri|ate copy|
|00001570| 72 69 67 68 74 20 6e 6f | 74 69 63 65 20 61 6e 64 |right no|tice and|
|00001580| 20 61 20 6e 6f 74 69 63 | 65 0a 58 20 20 20 20 74 | a notic|e.X t|
|00001590| 68 61 74 20 74 68 65 72 | 65 20 69 73 20 6e 6f 20 |hat ther|e is no |
|000015a0| 77 61 72 72 61 6e 74 79 | 20 28 6f 72 20 65 6c 73 |warranty| (or els|
|000015b0| 65 2c 20 73 61 79 69 6e | 67 20 74 68 61 74 20 79 |e, sayin|g that y|
|000015c0| 6f 75 20 70 72 6f 76 69 | 64 65 20 61 0a 58 20 20 |ou provi|de a.X |
|000015d0| 20 20 77 61 72 72 61 6e | 74 79 29 20 61 6e 64 20 | warran|ty) and |
|000015e0| 74 68 61 74 20 75 73 65 | 72 73 20 6d 61 79 20 72 |that use|rs may r|
|000015f0| 65 64 69 73 74 72 69 62 | 75 74 65 20 74 68 65 20 |edistrib|ute the |
|00001600| 70 72 6f 67 72 61 6d 20 | 75 6e 64 65 72 20 74 68 |program |under th|
|00001610| 65 73 65 0a 58 20 20 20 | 20 63 6f 6e 64 69 74 69 |ese.X | conditi|
|00001620| 6f 6e 73 2c 20 61 6e 64 | 20 74 65 6c 6c 69 6e 67 |ons, and| telling|
|00001630| 20 74 68 65 20 75 73 65 | 72 20 68 6f 77 20 74 6f | the use|r how to|
|00001640| 20 76 69 65 77 20 61 20 | 63 6f 70 79 20 6f 66 20 | view a |copy of |
|00001650| 74 68 69 73 20 47 65 6e | 65 72 61 6c 0a 58 20 20 |this Gen|eral.X |
|00001660| 20 20 50 75 62 6c 69 63 | 20 4c 69 63 65 6e 73 65 | Public| License|
|00001670| 2e 0a 58 0a 58 20 20 20 | 20 64 29 20 59 6f 75 20 |..X.X | d) You |
|00001680| 6d 61 79 20 63 68 61 72 | 67 65 20 61 20 66 65 65 |may char|ge a fee|
|00001690| 20 66 6f 72 20 74 68 65 | 20 70 68 79 73 69 63 61 | for the| physica|
|000016a0| 6c 20 61 63 74 20 6f 66 | 20 74 72 61 6e 73 66 65 |l act of| transfe|
|000016b0| 72 72 69 6e 67 20 61 0a | 58 20 20 20 20 63 6f 70 |rring a.|X cop|
|000016c0| 79 2c 20 61 6e 64 20 79 | 6f 75 20 6d 61 79 20 61 |y, and y|ou may a|
|000016d0| 74 20 79 6f 75 72 20 6f | 70 74 69 6f 6e 20 6f 66 |t your o|ption of|
|000016e0| 66 65 72 20 77 61 72 72 | 61 6e 74 79 20 70 72 6f |fer warr|anty pro|
|000016f0| 74 65 63 74 69 6f 6e 20 | 69 6e 0a 58 20 20 20 20 |tection |in.X |
|00001700| 65 78 63 68 61 6e 67 65 | 20 66 6f 72 20 61 20 66 |exchange| for a f|
|00001710| 65 65 2e 0a 58 0a 58 4d | 65 72 65 20 61 67 67 72 |ee..X.XM|ere aggr|
|00001720| 65 67 61 74 69 6f 6e 20 | 6f 66 20 61 6e 6f 74 68 |egation |of anoth|
|00001730| 65 72 20 69 6e 64 65 70 | 65 6e 64 65 6e 74 20 77 |er indep|endent w|
|00001740| 6f 72 6b 20 77 69 74 68 | 20 74 68 65 20 50 72 6f |ork with| the Pro|
|00001750| 67 72 61 6d 20 28 6f 72 | 20 69 74 73 0a 58 64 65 |gram (or| its.Xde|
|00001760| 72 69 76 61 74 69 76 65 | 29 20 6f 6e 20 61 20 76 |rivative|) on a v|
|00001770| 6f 6c 75 6d 65 20 6f 66 | 20 61 20 73 74 6f 72 61 |olume of| a stora|
|00001780| 67 65 20 6f 72 20 64 69 | 73 74 72 69 62 75 74 69 |ge or di|stributi|
|00001790| 6f 6e 20 6d 65 64 69 75 | 6d 20 64 6f 65 73 20 6e |on mediu|m does n|
|000017a0| 6f 74 20 62 72 69 6e 67 | 0a 58 74 68 65 20 6f 74 |ot bring|.Xthe ot|
|000017b0| 68 65 72 20 77 6f 72 6b | 20 75 6e 64 65 72 20 74 |her work| under t|
|000017c0| 68 65 20 73 63 6f 70 65 | 20 6f 66 20 74 68 65 73 |he scope| of thes|
|000017d0| 65 20 74 65 72 6d 73 2e | 0a 58 0c 0a 58 20 20 33 |e terms.|.X..X 3|
|000017e0| 2e 20 59 6f 75 20 6d 61 | 79 20 63 6f 70 79 20 61 |. You ma|y copy a|
|000017f0| 6e 64 20 64 69 73 74 72 | 69 62 75 74 65 20 74 68 |nd distr|ibute th|
|00001800| 65 20 50 72 6f 67 72 61 | 6d 20 28 6f 72 20 61 20 |e Progra|m (or a |
|00001810| 70 6f 72 74 69 6f 6e 20 | 6f 72 20 64 65 72 69 76 |portion |or deriv|
|00001820| 61 74 69 76 65 20 6f 66 | 0a 58 69 74 2c 20 75 6e |ative of|.Xit, un|
|00001830| 64 65 72 20 50 61 72 61 | 67 72 61 70 68 20 32 29 |der Para|graph 2)|
|00001840| 20 69 6e 20 6f 62 6a 65 | 63 74 20 63 6f 64 65 20 | in obje|ct code |
|00001850| 6f 72 20 65 78 65 63 75 | 74 61 62 6c 65 20 66 6f |or execu|table fo|
|00001860| 72 6d 20 75 6e 64 65 72 | 20 74 68 65 20 74 65 72 |rm under| the ter|
|00001870| 6d 73 20 6f 66 0a 58 50 | 61 72 61 67 72 61 70 68 |ms of.XP|aragraph|
|00001880| 73 20 31 20 61 6e 64 20 | 32 20 61 62 6f 76 65 20 |s 1 and |2 above |
|00001890| 70 72 6f 76 69 64 65 64 | 20 74 68 61 74 20 79 6f |provided| that yo|
|000018a0| 75 20 61 6c 73 6f 20 64 | 6f 20 6f 6e 65 20 6f 66 |u also d|o one of|
|000018b0| 20 74 68 65 20 66 6f 6c | 6c 6f 77 69 6e 67 3a 0a | the fol|lowing:.|
|000018c0| 58 0a 58 20 20 20 20 61 | 29 20 61 63 63 6f 6d 70 |X.X a|) accomp|
|000018d0| 61 6e 79 20 69 74 20 77 | 69 74 68 20 74 68 65 20 |any it w|ith the |
|000018e0| 63 6f 6d 70 6c 65 74 65 | 20 63 6f 72 72 65 73 70 |complete| corresp|
|000018f0| 6f 6e 64 69 6e 67 20 6d | 61 63 68 69 6e 65 2d 72 |onding m|achine-r|
|00001900| 65 61 64 61 62 6c 65 0a | 58 20 20 20 20 73 6f 75 |eadable.|X sou|
|00001910| 72 63 65 20 63 6f 64 65 | 2c 20 77 68 69 63 68 20 |rce code|, which |
|00001920| 6d 75 73 74 20 62 65 20 | 64 69 73 74 72 69 62 75 |must be |distribu|
|00001930| 74 65 64 20 75 6e 64 65 | 72 20 74 68 65 20 74 65 |ted unde|r the te|
|00001940| 72 6d 73 20 6f 66 0a 58 | 20 20 20 20 50 61 72 61 |rms of.X| Para|
|00001950| 67 72 61 70 68 73 20 31 | 20 61 6e 64 20 32 20 61 |graphs 1| and 2 a|
|00001960| 62 6f 76 65 3b 20 6f 72 | 2c 0a 58 0a 58 20 20 20 |bove; or|,.X.X |
|00001970| 20 62 29 20 61 63 63 6f | 6d 70 61 6e 79 20 69 74 | b) acco|mpany it|
|00001980| 20 77 69 74 68 20 61 20 | 77 72 69 74 74 65 6e 20 | with a |written |
|00001990| 6f 66 66 65 72 2c 20 76 | 61 6c 69 64 20 66 6f 72 |offer, v|alid for|
|000019a0| 20 61 74 20 6c 65 61 73 | 74 20 74 68 72 65 65 0a | at leas|t three.|
|000019b0| 58 20 20 20 20 79 65 61 | 72 73 2c 20 74 6f 20 67 |X yea|rs, to g|
|000019c0| 69 76 65 20 61 6e 79 20 | 74 68 69 72 64 20 70 61 |ive any |third pa|
|000019d0| 72 74 79 20 66 72 65 65 | 20 28 65 78 63 65 70 74 |rty free| (except|
|000019e0| 20 66 6f 72 20 61 20 6e | 6f 6d 69 6e 61 6c 20 63 | for a n|ominal c|
|000019f0| 68 61 72 67 65 0a 58 20 | 20 20 20 66 6f 72 20 74 |harge.X | for t|
|00001a00| 68 65 20 63 6f 73 74 20 | 6f 66 20 64 69 73 74 72 |he cost |of distr|
|00001a10| 69 62 75 74 69 6f 6e 29 | 20 61 20 63 6f 6d 70 6c |ibution)| a compl|
|00001a20| 65 74 65 20 6d 61 63 68 | 69 6e 65 2d 72 65 61 64 |ete mach|ine-read|
|00001a30| 61 62 6c 65 20 63 6f 70 | 79 20 6f 66 20 74 68 65 |able cop|y of the|
|00001a40| 0a 58 20 20 20 20 63 6f | 72 72 65 73 70 6f 6e 64 |.X co|rrespond|
|00001a50| 69 6e 67 20 73 6f 75 72 | 63 65 20 63 6f 64 65 2c |ing sour|ce code,|
|00001a60| 20 74 6f 20 62 65 20 64 | 69 73 74 72 69 62 75 74 | to be d|istribut|
|00001a70| 65 64 20 75 6e 64 65 72 | 20 74 68 65 20 74 65 72 |ed under| the ter|
|00001a80| 6d 73 20 6f 66 0a 58 20 | 20 20 20 50 61 72 61 67 |ms of.X | Parag|
|00001a90| 72 61 70 68 73 20 31 20 | 61 6e 64 20 32 20 61 62 |raphs 1 |and 2 ab|
|00001aa0| 6f 76 65 3b 20 6f 72 2c | 0a 58 0a 58 20 20 20 20 |ove; or,|.X.X |
|00001ab0| 63 29 20 61 63 63 6f 6d | 70 61 6e 79 20 69 74 20 |c) accom|pany it |
|00001ac0| 77 69 74 68 20 74 68 65 | 20 69 6e 66 6f 72 6d 61 |with the| informa|
|00001ad0| 74 69 6f 6e 20 79 6f 75 | 20 72 65 63 65 69 76 65 |tion you| receive|
|00001ae0| 64 20 61 73 20 74 6f 20 | 77 68 65 72 65 20 74 68 |d as to |where th|
|00001af0| 65 0a 58 20 20 20 20 63 | 6f 72 72 65 73 70 6f 6e |e.X c|orrespon|
|00001b00| 64 69 6e 67 20 73 6f 75 | 72 63 65 20 63 6f 64 65 |ding sou|rce code|
|00001b10| 20 6d 61 79 20 62 65 20 | 6f 62 74 61 69 6e 65 64 | may be |obtained|
|00001b20| 2e 20 20 28 54 68 69 73 | 20 61 6c 74 65 72 6e 61 |. (This| alterna|
|00001b30| 74 69 76 65 20 69 73 0a | 58 20 20 20 20 61 6c 6c |tive is.|X all|
|00001b40| 6f 77 65 64 20 6f 6e 6c | 79 20 66 6f 72 20 6e 6f |owed onl|y for no|
|00001b50| 6e 63 6f 6d 6d 65 72 63 | 69 61 6c 20 64 69 73 74 |ncommerc|ial dist|
|00001b60| 72 69 62 75 74 69 6f 6e | 20 61 6e 64 20 6f 6e 6c |ribution| and onl|
|00001b70| 79 20 69 66 20 79 6f 75 | 0a 58 20 20 20 20 72 65 |y if you|.X re|
|00001b80| 63 65 69 76 65 64 20 74 | 68 65 20 70 72 6f 67 72 |ceived t|he progr|
|00001b90| 61 6d 20 69 6e 20 6f 62 | 6a 65 63 74 20 63 6f 64 |am in ob|ject cod|
|00001ba0| 65 20 6f 72 20 65 78 65 | 63 75 74 61 62 6c 65 20 |e or exe|cutable |
|00001bb0| 66 6f 72 6d 20 61 6c 6f | 6e 65 2e 29 0a 58 0a 58 |form alo|ne.).X.X|
|00001bc0| 53 6f 75 72 63 65 20 63 | 6f 64 65 20 66 6f 72 20 |Source c|ode for |
|00001bd0| 61 20 77 6f 72 6b 20 6d | 65 61 6e 73 20 74 68 65 |a work m|eans the|
|00001be0| 20 70 72 65 66 65 72 72 | 65 64 20 66 6f 72 6d 20 | preferr|ed form |
|00001bf0| 6f 66 20 74 68 65 20 77 | 6f 72 6b 20 66 6f 72 20 |of the w|ork for |
|00001c00| 6d 61 6b 69 6e 67 0a 58 | 6d 6f 64 69 66 69 63 61 |making.X|modifica|
|00001c10| 74 69 6f 6e 73 20 74 6f | 20 69 74 2e 20 20 46 6f |tions to| it. Fo|
|00001c20| 72 20 61 6e 20 65 78 65 | 63 75 74 61 62 6c 65 20 |r an exe|cutable |
|00001c30| 66 69 6c 65 2c 20 63 6f | 6d 70 6c 65 74 65 20 73 |file, co|mplete s|
|00001c40| 6f 75 72 63 65 20 63 6f | 64 65 20 6d 65 61 6e 73 |ource co|de means|
|00001c50| 0a 58 61 6c 6c 20 74 68 | 65 20 73 6f 75 72 63 65 |.Xall th|e source|
|00001c60| 20 63 6f 64 65 20 66 6f | 72 20 61 6c 6c 20 6d 6f | code fo|r all mo|
|00001c70| 64 75 6c 65 73 20 69 74 | 20 63 6f 6e 74 61 69 6e |dules it| contain|
|00001c80| 73 3b 20 62 75 74 2c 20 | 61 73 20 61 20 73 70 65 |s; but, |as a spe|
|00001c90| 63 69 61 6c 0a 58 65 78 | 63 65 70 74 69 6f 6e 2c |cial.Xex|ception,|
|00001ca0| 20 69 74 20 6e 65 65 64 | 20 6e 6f 74 20 69 6e 63 | it need| not inc|
|00001cb0| 6c 75 64 65 20 73 6f 75 | 72 63 65 20 63 6f 64 65 |lude sou|rce code|
|00001cc0| 20 66 6f 72 20 6d 6f 64 | 75 6c 65 73 20 77 68 69 | for mod|ules whi|
|00001cd0| 63 68 20 61 72 65 20 73 | 74 61 6e 64 61 72 64 0a |ch are s|tandard.|
|00001ce0| 58 6c 69 62 72 61 72 69 | 65 73 20 74 68 61 74 20 |Xlibrari|es that |
|00001cf0| 61 63 63 6f 6d 70 61 6e | 79 20 74 68 65 20 6f 70 |accompan|y the op|
|00001d00| 65 72 61 74 69 6e 67 20 | 73 79 73 74 65 6d 20 6f |erating |system o|
|00001d10| 6e 20 77 68 69 63 68 20 | 74 68 65 20 65 78 65 63 |n which |the exec|
|00001d20| 75 74 61 62 6c 65 0a 58 | 66 69 6c 65 20 72 75 6e |utable.X|file run|
|00001d30| 73 2c 20 6f 72 20 66 6f | 72 20 73 74 61 6e 64 61 |s, or fo|r standa|
|00001d40| 72 64 20 68 65 61 64 65 | 72 20 66 69 6c 65 73 20 |rd heade|r files |
|00001d50| 6f 72 20 64 65 66 69 6e | 69 74 69 6f 6e 73 20 66 |or defin|itions f|
|00001d60| 69 6c 65 73 20 74 68 61 | 74 0a 58 61 63 63 6f 6d |iles tha|t.Xaccom|
|00001d70| 70 61 6e 79 20 74 68 61 | 74 20 6f 70 65 72 61 74 |pany tha|t operat|
|00001d80| 69 6e 67 20 73 79 73 74 | 65 6d 2e 0a 58 0a 58 20 |ing syst|em..X.X |
|00001d90| 20 34 2e 20 59 6f 75 20 | 6d 61 79 20 6e 6f 74 20 | 4. You |may not |
|00001da0| 63 6f 70 79 2c 20 6d 6f | 64 69 66 79 2c 20 73 75 |copy, mo|dify, su|
|00001db0| 62 6c 69 63 65 6e 73 65 | 2c 20 64 69 73 74 72 69 |blicense|, distri|
|00001dc0| 62 75 74 65 20 6f 72 20 | 74 72 61 6e 73 66 65 72 |bute or |transfer|
|00001dd0| 20 74 68 65 0a 58 50 72 | 6f 67 72 61 6d 20 65 78 | the.XPr|ogram ex|
|00001de0| 63 65 70 74 20 61 73 20 | 65 78 70 72 65 73 73 6c |cept as |expressl|
|00001df0| 79 20 70 72 6f 76 69 64 | 65 64 20 75 6e 64 65 72 |y provid|ed under|
|00001e00| 20 74 68 69 73 20 47 65 | 6e 65 72 61 6c 20 50 75 | this Ge|neral Pu|
|00001e10| 62 6c 69 63 20 4c 69 63 | 65 6e 73 65 2e 0a 58 41 |blic Lic|ense..XA|
|00001e20| 6e 79 20 61 74 74 65 6d | 70 74 20 6f 74 68 65 72 |ny attem|pt other|
|00001e30| 77 69 73 65 20 74 6f 20 | 63 6f 70 79 2c 20 6d 6f |wise to |copy, mo|
|00001e40| 64 69 66 79 2c 20 73 75 | 62 6c 69 63 65 6e 73 65 |dify, su|blicense|
|00001e50| 2c 20 64 69 73 74 72 69 | 62 75 74 65 20 6f 72 20 |, distri|bute or |
|00001e60| 74 72 61 6e 73 66 65 72 | 0a 58 74 68 65 20 50 72 |transfer|.Xthe Pr|
|00001e70| 6f 67 72 61 6d 20 69 73 | 20 76 6f 69 64 2c 20 61 |ogram is| void, a|
|00001e80| 6e 64 20 77 69 6c 6c 20 | 61 75 74 6f 6d 61 74 69 |nd will |automati|
|00001e90| 63 61 6c 6c 79 20 74 65 | 72 6d 69 6e 61 74 65 20 |cally te|rminate |
|00001ea0| 79 6f 75 72 20 72 69 67 | 68 74 73 20 74 6f 20 75 |your rig|hts to u|
|00001eb0| 73 65 0a 58 74 68 65 20 | 50 72 6f 67 72 61 6d 20 |se.Xthe |Program |
|00001ec0| 75 6e 64 65 72 20 74 68 | 69 73 20 4c 69 63 65 6e |under th|is Licen|
|00001ed0| 73 65 2e 20 20 48 6f 77 | 65 76 65 72 2c 20 70 61 |se. How|ever, pa|
|00001ee0| 72 74 69 65 73 20 77 68 | 6f 20 68 61 76 65 20 72 |rties wh|o have r|
|00001ef0| 65 63 65 69 76 65 64 0a | 58 63 6f 70 69 65 73 2c |eceived.|Xcopies,|
|00001f00| 20 6f 72 20 72 69 67 68 | 74 73 20 74 6f 20 75 73 | or righ|ts to us|
|00001f10| 65 20 63 6f 70 69 65 73 | 2c 20 66 72 6f 6d 20 79 |e copies|, from y|
|00001f20| 6f 75 20 75 6e 64 65 72 | 20 74 68 69 73 20 47 65 |ou under| this Ge|
|00001f30| 6e 65 72 61 6c 20 50 75 | 62 6c 69 63 0a 58 4c 69 |neral Pu|blic.XLi|
|00001f40| 63 65 6e 73 65 20 77 69 | 6c 6c 20 6e 6f 74 20 68 |cense wi|ll not h|
|00001f50| 61 76 65 20 74 68 65 69 | 72 20 6c 69 63 65 6e 73 |ave thei|r licens|
|00001f60| 65 73 20 74 65 72 6d 69 | 6e 61 74 65 64 20 73 6f |es termi|nated so|
|00001f70| 20 6c 6f 6e 67 20 61 73 | 20 73 75 63 68 20 70 61 | long as| such pa|
|00001f80| 72 74 69 65 73 0a 58 72 | 65 6d 61 69 6e 20 69 6e |rties.Xr|emain in|
|00001f90| 20 66 75 6c 6c 20 63 6f | 6d 70 6c 69 61 6e 63 65 | full co|mpliance|
|00001fa0| 2e 0a 58 0a 58 20 20 35 | 2e 20 42 79 20 63 6f 70 |..X.X 5|. By cop|
|00001fb0| 79 69 6e 67 2c 20 64 69 | 73 74 72 69 62 75 74 69 |ying, di|stributi|
|00001fc0| 6e 67 20 6f 72 20 6d 6f | 64 69 66 79 69 6e 67 20 |ng or mo|difying |
|00001fd0| 74 68 65 20 50 72 6f 67 | 72 61 6d 20 28 6f 72 20 |the Prog|ram (or |
|00001fe0| 61 6e 79 20 77 6f 72 6b | 20 62 61 73 65 64 0a 58 |any work| based.X|
|00001ff0| 6f 6e 20 74 68 65 20 50 | 72 6f 67 72 61 6d 29 20 |on the P|rogram) |
|00002000| 79 6f 75 20 69 6e 64 69 | 63 61 74 65 20 79 6f 75 |you indi|cate you|
|00002010| 72 20 61 63 63 65 70 74 | 61 6e 63 65 20 6f 66 20 |r accept|ance of |
|00002020| 74 68 69 73 20 6c 69 63 | 65 6e 73 65 20 74 6f 20 |this lic|ense to |
|00002030| 64 6f 20 73 6f 2c 0a 58 | 61 6e 64 20 61 6c 6c 20 |do so,.X|and all |
|00002040| 69 74 73 20 74 65 72 6d | 73 20 61 6e 64 20 63 6f |its term|s and co|
|00002050| 6e 64 69 74 69 6f 6e 73 | 2e 0a 58 0a 58 20 20 36 |nditions|..X.X 6|
|00002060| 2e 20 45 61 63 68 20 74 | 69 6d 65 20 79 6f 75 20 |. Each t|ime you |
|00002070| 72 65 64 69 73 74 72 69 | 62 75 74 65 20 74 68 65 |redistri|bute the|
|00002080| 20 50 72 6f 67 72 61 6d | 20 28 6f 72 20 61 6e 79 | Program| (or any|
|00002090| 20 77 6f 72 6b 20 62 61 | 73 65 64 20 6f 6e 20 74 | work ba|sed on t|
|000020a0| 68 65 0a 58 50 72 6f 67 | 72 61 6d 29 2c 20 74 68 |he.XProg|ram), th|
|000020b0| 65 20 72 65 63 69 70 69 | 65 6e 74 20 61 75 74 6f |e recipi|ent auto|
|000020c0| 6d 61 74 69 63 61 6c 6c | 79 20 72 65 63 65 69 76 |maticall|y receiv|
|000020d0| 65 73 20 61 20 6c 69 63 | 65 6e 73 65 20 66 72 6f |es a lic|ense fro|
|000020e0| 6d 20 74 68 65 20 6f 72 | 69 67 69 6e 61 6c 0a 58 |m the or|iginal.X|
|000020f0| 6c 69 63 65 6e 73 6f 72 | 20 74 6f 20 63 6f 70 79 |licensor| to copy|
|00002100| 2c 20 64 69 73 74 72 69 | 62 75 74 65 20 6f 72 20 |, distri|bute or |
|00002110| 6d 6f 64 69 66 79 20 74 | 68 65 20 50 72 6f 67 72 |modify t|he Progr|
|00002120| 61 6d 20 73 75 62 6a 65 | 63 74 20 74 6f 20 74 68 |am subje|ct to th|
|00002130| 65 73 65 0a 58 74 65 72 | 6d 73 20 61 6e 64 20 63 |ese.Xter|ms and c|
|00002140| 6f 6e 64 69 74 69 6f 6e | 73 2e 20 20 59 6f 75 20 |ondition|s. You |
|00002150| 6d 61 79 20 6e 6f 74 20 | 69 6d 70 6f 73 65 20 61 |may not |impose a|
|00002160| 6e 79 20 66 75 72 74 68 | 65 72 20 72 65 73 74 72 |ny furth|er restr|
|00002170| 69 63 74 69 6f 6e 73 20 | 6f 6e 20 74 68 65 0a 58 |ictions |on the.X|
|00002180| 72 65 63 69 70 69 65 6e | 74 73 27 20 65 78 65 72 |recipien|ts' exer|
|00002190| 63 69 73 65 20 6f 66 20 | 74 68 65 20 72 69 67 68 |cise of |the righ|
|000021a0| 74 73 20 67 72 61 6e 74 | 65 64 20 68 65 72 65 69 |ts grant|ed herei|
|000021b0| 6e 2e 0a 58 0c 0a 58 20 | 20 37 2e 20 54 68 65 20 |n..X..X | 7. The |
|000021c0| 46 72 65 65 20 53 6f 66 | 74 77 61 72 65 20 46 6f |Free Sof|tware Fo|
|000021d0| 75 6e 64 61 74 69 6f 6e | 20 6d 61 79 20 70 75 62 |undation| may pub|
|000021e0| 6c 69 73 68 20 72 65 76 | 69 73 65 64 20 61 6e 64 |lish rev|ised and|
|000021f0| 2f 6f 72 20 6e 65 77 20 | 76 65 72 73 69 6f 6e 73 |/or new |versions|
|00002200| 0a 58 6f 66 20 74 68 65 | 20 47 65 6e 65 72 61 6c |.Xof the| General|
|00002210| 20 50 75 62 6c 69 63 20 | 4c 69 63 65 6e 73 65 20 | Public |License |
|00002220| 66 72 6f 6d 20 74 69 6d | 65 20 74 6f 20 74 69 6d |from tim|e to tim|
|00002230| 65 2e 20 20 53 75 63 68 | 20 6e 65 77 20 76 65 72 |e. Such| new ver|
|00002240| 73 69 6f 6e 73 20 77 69 | 6c 6c 0a 58 62 65 20 73 |sions wi|ll.Xbe s|
|00002250| 69 6d 69 6c 61 72 20 69 | 6e 20 73 70 69 72 69 74 |imilar i|n spirit|
|00002260| 20 74 6f 20 74 68 65 20 | 70 72 65 73 65 6e 74 20 | to the |present |
|00002270| 76 65 72 73 69 6f 6e 2c | 20 62 75 74 20 6d 61 79 |version,| but may|
|00002280| 20 64 69 66 66 65 72 20 | 69 6e 20 64 65 74 61 69 | differ |in detai|
|00002290| 6c 20 74 6f 0a 58 61 64 | 64 72 65 73 73 20 6e 65 |l to.Xad|dress ne|
|000022a0| 77 20 70 72 6f 62 6c 65 | 6d 73 20 6f 72 20 63 6f |w proble|ms or co|
|000022b0| 6e 63 65 72 6e 73 2e 0a | 58 0a 58 45 61 63 68 20 |ncerns..|X.XEach |
|000022c0| 76 65 72 73 69 6f 6e 20 | 69 73 20 67 69 76 65 6e |version |is given|
|000022d0| 20 61 20 64 69 73 74 69 | 6e 67 75 69 73 68 69 6e | a disti|nguishin|
|000022e0| 67 20 76 65 72 73 69 6f | 6e 20 6e 75 6d 62 65 72 |g versio|n number|
|000022f0| 2e 20 20 49 66 20 74 68 | 65 20 50 72 6f 67 72 61 |. If th|e Progra|
|00002300| 6d 0a 58 73 70 65 63 69 | 66 69 65 73 20 61 20 76 |m.Xspeci|fies a v|
|00002310| 65 72 73 69 6f 6e 20 6e | 75 6d 62 65 72 20 6f 66 |ersion n|umber of|
|00002320| 20 74 68 65 20 6c 69 63 | 65 6e 73 65 20 77 68 69 | the lic|ense whi|
|00002330| 63 68 20 61 70 70 6c 69 | 65 73 20 74 6f 20 69 74 |ch appli|es to it|
|00002340| 20 61 6e 64 20 22 61 6e | 79 0a 58 6c 61 74 65 72 | and "an|y.Xlater|
|00002350| 20 76 65 72 73 69 6f 6e | 22 2c 20 79 6f 75 20 68 | version|", you h|
|00002360| 61 76 65 20 74 68 65 20 | 6f 70 74 69 6f 6e 20 6f |ave the |option o|
|00002370| 66 20 66 6f 6c 6c 6f 77 | 69 6e 67 20 74 68 65 20 |f follow|ing the |
|00002380| 74 65 72 6d 73 20 61 6e | 64 20 63 6f 6e 64 69 74 |terms an|d condit|
|00002390| 69 6f 6e 73 0a 58 65 69 | 74 68 65 72 20 6f 66 20 |ions.Xei|ther of |
|000023a0| 74 68 61 74 20 76 65 72 | 73 69 6f 6e 20 6f 72 20 |that ver|sion or |
|000023b0| 6f 66 20 61 6e 79 20 6c | 61 74 65 72 20 76 65 72 |of any l|ater ver|
|000023c0| 73 69 6f 6e 20 70 75 62 | 6c 69 73 68 65 64 20 62 |sion pub|lished b|
|000023d0| 79 20 74 68 65 20 46 72 | 65 65 0a 58 53 6f 66 74 |y the Fr|ee.XSoft|
|000023e0| 77 61 72 65 20 46 6f 75 | 6e 64 61 74 69 6f 6e 2e |ware Fou|ndation.|
|000023f0| 20 20 49 66 20 74 68 65 | 20 50 72 6f 67 72 61 6d | If the| Program|
|00002400| 20 64 6f 65 73 20 6e 6f | 74 20 73 70 65 63 69 66 | does no|t specif|
|00002410| 79 20 61 20 76 65 72 73 | 69 6f 6e 20 6e 75 6d 62 |y a vers|ion numb|
|00002420| 65 72 20 6f 66 0a 58 74 | 68 65 20 6c 69 63 65 6e |er of.Xt|he licen|
|00002430| 73 65 2c 20 79 6f 75 20 | 6d 61 79 20 63 68 6f 6f |se, you |may choo|
|00002440| 73 65 20 61 6e 79 20 76 | 65 72 73 69 6f 6e 20 65 |se any v|ersion e|
|00002450| 76 65 72 20 70 75 62 6c | 69 73 68 65 64 20 62 79 |ver publ|ished by|
|00002460| 20 74 68 65 20 46 72 65 | 65 20 53 6f 66 74 77 61 | the Fre|e Softwa|
|00002470| 72 65 0a 58 46 6f 75 6e | 64 61 74 69 6f 6e 2e 0a |re.XFoun|dation..|
|00002480| 58 0a 58 20 20 38 2e 20 | 49 66 20 79 6f 75 20 77 |X.X 8. |If you w|
|00002490| 69 73 68 20 74 6f 20 69 | 6e 63 6f 72 70 6f 72 61 |ish to i|ncorpora|
|000024a0| 74 65 20 70 61 72 74 73 | 20 6f 66 20 74 68 65 20 |te parts| of the |
|000024b0| 50 72 6f 67 72 61 6d 20 | 69 6e 74 6f 20 6f 74 68 |Program |into oth|
|000024c0| 65 72 20 66 72 65 65 0a | 58 70 72 6f 67 72 61 6d |er free.|Xprogram|
|000024d0| 73 20 77 68 6f 73 65 20 | 64 69 73 74 72 69 62 75 |s whose |distribu|
|000024e0| 74 69 6f 6e 20 63 6f 6e | 64 69 74 69 6f 6e 73 20 |tion con|ditions |
|000024f0| 61 72 65 20 64 69 66 66 | 65 72 65 6e 74 2c 20 77 |are diff|erent, w|
|00002500| 72 69 74 65 20 74 6f 20 | 74 68 65 20 61 75 74 68 |rite to |the auth|
|00002510| 6f 72 0a 58 74 6f 20 61 | 73 6b 20 66 6f 72 20 70 |or.Xto a|sk for p|
|00002520| 65 72 6d 69 73 73 69 6f | 6e 2e 20 20 46 6f 72 20 |ermissio|n. For |
|00002530| 73 6f 66 74 77 61 72 65 | 20 77 68 69 63 68 20 69 |software| which i|
|00002540| 73 20 63 6f 70 79 72 69 | 67 68 74 65 64 20 62 79 |s copyri|ghted by|
|00002550| 20 74 68 65 20 46 72 65 | 65 0a 58 53 6f 66 74 77 | the Fre|e.XSoftw|
|00002560| 61 72 65 20 46 6f 75 6e | 64 61 74 69 6f 6e 2c 20 |are Foun|dation, |
|00002570| 77 72 69 74 65 20 74 6f | 20 74 68 65 20 46 72 65 |write to| the Fre|
|00002580| 65 20 53 6f 66 74 77 61 | 72 65 20 46 6f 75 6e 64 |e Softwa|re Found|
|00002590| 61 74 69 6f 6e 3b 20 77 | 65 20 73 6f 6d 65 74 69 |ation; w|e someti|
|000025a0| 6d 65 73 0a 58 6d 61 6b | 65 20 65 78 63 65 70 74 |mes.Xmak|e except|
|000025b0| 69 6f 6e 73 20 66 6f 72 | 20 74 68 69 73 2e 20 20 |ions for| this. |
|000025c0| 4f 75 72 20 64 65 63 69 | 73 69 6f 6e 20 77 69 6c |Our deci|sion wil|
|000025d0| 6c 20 62 65 20 67 75 69 | 64 65 64 20 62 79 20 74 |l be gui|ded by t|
|000025e0| 68 65 20 74 77 6f 20 67 | 6f 61 6c 73 0a 58 6f 66 |he two g|oals.Xof|
|000025f0| 20 70 72 65 73 65 72 76 | 69 6e 67 20 74 68 65 20 | preserv|ing the |
|00002600| 66 72 65 65 20 73 74 61 | 74 75 73 20 6f 66 20 61 |free sta|tus of a|
|00002610| 6c 6c 20 64 65 72 69 76 | 61 74 69 76 65 73 20 6f |ll deriv|atives o|
|00002620| 66 20 6f 75 72 20 66 72 | 65 65 20 73 6f 66 74 77 |f our fr|ee softw|
|00002630| 61 72 65 20 61 6e 64 0a | 58 6f 66 20 70 72 6f 6d |are and.|Xof prom|
|00002640| 6f 74 69 6e 67 20 74 68 | 65 20 73 68 61 72 69 6e |oting th|e sharin|
|00002650| 67 20 61 6e 64 20 72 65 | 75 73 65 20 6f 66 20 73 |g and re|use of s|
|00002660| 6f 66 74 77 61 72 65 20 | 67 65 6e 65 72 61 6c 6c |oftware |generall|
|00002670| 79 2e 0a 58 0a 58 09 09 | 09 20 20 20 20 4e 4f 20 |y..X.X..|. NO |
|00002680| 57 41 52 52 41 4e 54 59 | 0a 58 0a 58 20 20 39 2e |WARRANTY|.X.X 9.|
|00002690| 20 42 45 43 41 55 53 45 | 20 54 48 45 20 50 52 4f | BECAUSE| THE PRO|
|000026a0| 47 52 41 4d 20 49 53 20 | 4c 49 43 45 4e 53 45 44 |GRAM IS |LICENSED|
|000026b0| 20 46 52 45 45 20 4f 46 | 20 43 48 41 52 47 45 2c | FREE OF| CHARGE,|
|000026c0| 20 54 48 45 52 45 20 49 | 53 20 4e 4f 20 57 41 52 | THERE I|S NO WAR|
|000026d0| 52 41 4e 54 59 0a 58 46 | 4f 52 20 54 48 45 20 50 |RANTY.XF|OR THE P|
|000026e0| 52 4f 47 52 41 4d 2c 20 | 54 4f 20 54 48 45 20 45 |ROGRAM, |TO THE E|
|000026f0| 58 54 45 4e 54 20 50 45 | 52 4d 49 54 54 45 44 20 |XTENT PE|RMITTED |
|00002700| 42 59 20 41 50 50 4c 49 | 43 41 42 4c 45 20 4c 41 |BY APPLI|CABLE LA|
|00002710| 57 2e 20 20 45 58 43 45 | 50 54 20 57 48 45 4e 0a |W. EXCE|PT WHEN.|
|00002720| 58 4f 54 48 45 52 57 49 | 53 45 20 53 54 41 54 45 |XOTHERWI|SE STATE|
|00002730| 44 20 49 4e 20 57 52 49 | 54 49 4e 47 20 54 48 45 |D IN WRI|TING THE|
|00002740| 20 43 4f 50 59 52 49 47 | 48 54 20 48 4f 4c 44 45 | COPYRIG|HT HOLDE|
|00002750| 52 53 20 41 4e 44 2f 4f | 52 20 4f 54 48 45 52 20 |RS AND/O|R OTHER |
|00002760| 50 41 52 54 49 45 53 0a | 58 50 52 4f 56 49 44 45 |PARTIES.|XPROVIDE|
|00002770| 20 54 48 45 20 50 52 4f | 47 52 41 4d 20 22 41 53 | THE PRO|GRAM "AS|
|00002780| 20 49 53 22 20 57 49 54 | 48 4f 55 54 20 57 41 52 | IS" WIT|HOUT WAR|
|00002790| 52 41 4e 54 59 20 4f 46 | 20 41 4e 59 20 4b 49 4e |RANTY OF| ANY KIN|
|000027a0| 44 2c 20 45 49 54 48 45 | 52 20 45 58 50 52 45 53 |D, EITHE|R EXPRES|
|000027b0| 53 45 44 0a 58 4f 52 20 | 49 4d 50 4c 49 45 44 2c |SED.XOR |IMPLIED,|
|000027c0| 20 49 4e 43 4c 55 44 49 | 4e 47 2c 20 42 55 54 20 | INCLUDI|NG, BUT |
|000027d0| 4e 4f 54 20 4c 49 4d 49 | 54 45 44 20 54 4f 2c 20 |NOT LIMI|TED TO, |
|000027e0| 54 48 45 20 49 4d 50 4c | 49 45 44 20 57 41 52 52 |THE IMPL|IED WARR|
|000027f0| 41 4e 54 49 45 53 20 4f | 46 0a 58 4d 45 52 43 48 |ANTIES O|F.XMERCH|
|00002800| 41 4e 54 41 42 49 4c 49 | 54 59 20 41 4e 44 20 46 |ANTABILI|TY AND F|
|00002810| 49 54 4e 45 53 53 20 46 | 4f 52 20 41 20 50 41 52 |ITNESS F|OR A PAR|
|00002820| 54 49 43 55 4c 41 52 20 | 50 55 52 50 4f 53 45 2e |TICULAR |PURPOSE.|
|00002830| 20 20 54 48 45 20 45 4e | 54 49 52 45 20 52 49 53 | THE EN|TIRE RIS|
|00002840| 4b 20 41 53 0a 58 54 4f | 20 54 48 45 20 51 55 41 |K AS.XTO| THE QUA|
|00002850| 4c 49 54 59 20 41 4e 44 | 20 50 45 52 46 4f 52 4d |LITY AND| PERFORM|
|00002860| 41 4e 43 45 20 4f 46 20 | 54 48 45 20 50 52 4f 47 |ANCE OF |THE PROG|
|00002870| 52 41 4d 20 49 53 20 57 | 49 54 48 20 59 4f 55 2e |RAM IS W|ITH YOU.|
|00002880| 20 20 53 48 4f 55 4c 44 | 20 54 48 45 0a 58 50 52 | SHOULD| THE.XPR|
|00002890| 4f 47 52 41 4d 20 50 52 | 4f 56 45 20 44 45 46 45 |OGRAM PR|OVE DEFE|
|000028a0| 43 54 49 56 45 2c 20 59 | 4f 55 20 41 53 53 55 4d |CTIVE, Y|OU ASSUM|
|000028b0| 45 20 54 48 45 20 43 4f | 53 54 20 4f 46 20 41 4c |E THE CO|ST OF AL|
|000028c0| 4c 20 4e 45 43 45 53 53 | 41 52 59 20 53 45 52 56 |L NECESS|ARY SERV|
|000028d0| 49 43 49 4e 47 2c 0a 58 | 52 45 50 41 49 52 20 4f |ICING,.X|REPAIR O|
|000028e0| 52 20 43 4f 52 52 45 43 | 54 49 4f 4e 2e 0a 58 0a |R CORREC|TION..X.|
|000028f0| 58 20 20 31 30 2e 20 49 | 4e 20 4e 4f 20 45 56 45 |X 10. I|N NO EVE|
|00002900| 4e 54 20 55 4e 4c 45 53 | 53 20 52 45 51 55 49 52 |NT UNLES|S REQUIR|
|00002910| 45 44 20 42 59 20 41 50 | 50 4c 49 43 41 42 4c 45 |ED BY AP|PLICABLE|
|00002920| 20 4c 41 57 20 4f 52 20 | 41 47 52 45 45 44 20 54 | LAW OR |AGREED T|
|00002930| 4f 20 49 4e 20 57 52 49 | 54 49 4e 47 0a 58 57 49 |O IN WRI|TING.XWI|
|00002940| 4c 4c 20 41 4e 59 20 43 | 4f 50 59 52 49 47 48 54 |LL ANY C|OPYRIGHT|
|00002950| 20 48 4f 4c 44 45 52 2c | 20 4f 52 20 41 4e 59 20 | HOLDER,| OR ANY |
|00002960| 4f 54 48 45 52 20 50 41 | 52 54 59 20 57 48 4f 20 |OTHER PA|RTY WHO |
|00002970| 4d 41 59 20 4d 4f 44 49 | 46 59 20 41 4e 44 2f 4f |MAY MODI|FY AND/O|
|00002980| 52 0a 58 52 45 44 49 53 | 54 52 49 42 55 54 45 20 |R.XREDIS|TRIBUTE |
|00002990| 54 48 45 20 50 52 4f 47 | 52 41 4d 20 41 53 20 50 |THE PROG|RAM AS P|
|000029a0| 45 52 4d 49 54 54 45 44 | 20 41 42 4f 56 45 2c 20 |ERMITTED| ABOVE, |
|000029b0| 42 45 20 4c 49 41 42 4c | 45 20 54 4f 20 59 4f 55 |BE LIABL|E TO YOU|
|000029c0| 20 46 4f 52 20 44 41 4d | 41 47 45 53 2c 0a 58 49 | FOR DAM|AGES,.XI|
|000029d0| 4e 43 4c 55 44 49 4e 47 | 20 41 4e 59 20 47 45 4e |NCLUDING| ANY GEN|
|000029e0| 45 52 41 4c 2c 20 53 50 | 45 43 49 41 4c 2c 20 49 |ERAL, SP|ECIAL, I|
|000029f0| 4e 43 49 44 45 4e 54 41 | 4c 20 4f 52 20 43 4f 4e |NCIDENTA|L OR CON|
|00002a00| 53 45 51 55 45 4e 54 49 | 41 4c 20 44 41 4d 41 47 |SEQUENTI|AL DAMAG|
|00002a10| 45 53 20 41 52 49 53 49 | 4e 47 0a 58 4f 55 54 20 |ES ARISI|NG.XOUT |
|00002a20| 4f 46 20 54 48 45 20 55 | 53 45 20 4f 52 20 49 4e |OF THE U|SE OR IN|
|00002a30| 41 42 49 4c 49 54 59 20 | 54 4f 20 55 53 45 20 54 |ABILITY |TO USE T|
|00002a40| 48 45 20 50 52 4f 47 52 | 41 4d 20 28 49 4e 43 4c |HE PROGR|AM (INCL|
|00002a50| 55 44 49 4e 47 20 42 55 | 54 20 4e 4f 54 20 4c 49 |UDING BU|T NOT LI|
|00002a60| 4d 49 54 45 44 0a 58 54 | 4f 20 4c 4f 53 53 20 4f |MITED.XT|O LOSS O|
|00002a70| 46 20 44 41 54 41 20 4f | 52 20 44 41 54 41 20 42 |F DATA O|R DATA B|
|00002a80| 45 49 4e 47 20 52 45 4e | 44 45 52 45 44 20 49 4e |EING REN|DERED IN|
|00002a90| 41 43 43 55 52 41 54 45 | 20 4f 52 20 4c 4f 53 53 |ACCURATE| OR LOSS|
|00002aa0| 45 53 20 53 55 53 54 41 | 49 4e 45 44 20 42 59 0a |ES SUSTA|INED BY.|
|00002ab0| 58 59 4f 55 20 4f 52 20 | 54 48 49 52 44 20 50 41 |XYOU OR |THIRD PA|
|00002ac0| 52 54 49 45 53 20 4f 52 | 20 41 20 46 41 49 4c 55 |RTIES OR| A FAILU|
|00002ad0| 52 45 20 4f 46 20 54 48 | 45 20 50 52 4f 47 52 41 |RE OF TH|E PROGRA|
|00002ae0| 4d 20 54 4f 20 4f 50 45 | 52 41 54 45 20 57 49 54 |M TO OPE|RATE WIT|
|00002af0| 48 20 41 4e 59 20 4f 54 | 48 45 52 0a 58 50 52 4f |H ANY OT|HER.XPRO|
|00002b00| 47 52 41 4d 53 29 2c 20 | 45 56 45 4e 20 49 46 20 |GRAMS), |EVEN IF |
|00002b10| 53 55 43 48 20 48 4f 4c | 44 45 52 20 4f 52 20 4f |SUCH HOL|DER OR O|
|00002b20| 54 48 45 52 20 50 41 52 | 54 59 20 48 41 53 20 42 |THER PAR|TY HAS B|
|00002b30| 45 45 4e 20 41 44 56 49 | 53 45 44 20 4f 46 20 54 |EEN ADVI|SED OF T|
|00002b40| 48 45 0a 58 50 4f 53 53 | 49 42 49 4c 49 54 59 20 |HE.XPOSS|IBILITY |
|00002b50| 4f 46 20 53 55 43 48 20 | 44 41 4d 41 47 45 53 2e |OF SUCH |DAMAGES.|
|00002b60| 0a 58 0a 58 09 09 20 20 | 20 20 20 45 4e 44 20 4f |.X.X.. | END O|
|00002b70| 46 20 54 45 52 4d 53 20 | 41 4e 44 20 43 4f 4e 44 |F TERMS |AND COND|
|00002b80| 49 54 49 4f 4e 53 0a 58 | 0c 0a 58 09 41 70 70 65 |ITIONS.X|..X.Appe|
|00002b90| 6e 64 69 78 3a 20 48 6f | 77 20 74 6f 20 41 70 70 |ndix: Ho|w to App|
|00002ba0| 6c 79 20 54 68 65 73 65 | 20 54 65 72 6d 73 20 74 |ly These| Terms t|
|00002bb0| 6f 20 59 6f 75 72 20 4e | 65 77 20 50 72 6f 67 72 |o Your N|ew Progr|
|00002bc0| 61 6d 73 0a 58 0a 58 20 | 20 49 66 20 79 6f 75 20 |ams.X.X | If you |
|00002bd0| 64 65 76 65 6c 6f 70 20 | 61 20 6e 65 77 20 70 72 |develop |a new pr|
|00002be0| 6f 67 72 61 6d 2c 20 61 | 6e 64 20 79 6f 75 20 77 |ogram, a|nd you w|
|00002bf0| 61 6e 74 20 69 74 20 74 | 6f 20 62 65 20 6f 66 20 |ant it t|o be of |
|00002c00| 74 68 65 20 67 72 65 61 | 74 65 73 74 0a 58 70 6f |the grea|test.Xpo|
|00002c10| 73 73 69 62 6c 65 20 75 | 73 65 20 74 6f 20 68 75 |ssible u|se to hu|
|00002c20| 6d 61 6e 69 74 79 2c 20 | 74 68 65 20 62 65 73 74 |manity, |the best|
|00002c30| 20 77 61 79 20 74 6f 20 | 61 63 68 69 65 76 65 20 | way to |achieve |
|00002c40| 74 68 69 73 20 69 73 20 | 74 6f 20 6d 61 6b 65 20 |this is |to make |
|00002c50| 69 74 0a 58 66 72 65 65 | 20 73 6f 66 74 77 61 72 |it.Xfree| softwar|
|00002c60| 65 20 77 68 69 63 68 20 | 65 76 65 72 79 6f 6e 65 |e which |everyone|
|00002c70| 20 63 61 6e 20 72 65 64 | 69 73 74 72 69 62 75 74 | can red|istribut|
|00002c80| 65 20 61 6e 64 20 63 68 | 61 6e 67 65 20 75 6e 64 |e and ch|ange und|
|00002c90| 65 72 20 74 68 65 73 65 | 0a 58 74 65 72 6d 73 2e |er these|.Xterms.|
|00002ca0| 0a 58 0a 58 20 20 54 6f | 20 64 6f 20 73 6f 2c 20 |.X.X To| do so, |
|00002cb0| 61 74 74 61 63 68 20 74 | 68 65 20 66 6f 6c 6c 6f |attach t|he follo|
|00002cc0| 77 69 6e 67 20 6e 6f 74 | 69 63 65 73 20 74 6f 20 |wing not|ices to |
|00002cd0| 74 68 65 20 70 72 6f 67 | 72 61 6d 2e 20 20 49 74 |the prog|ram. It|
|00002ce0| 20 69 73 20 73 61 66 65 | 73 74 20 74 6f 0a 58 61 | is safe|st to.Xa|
|00002cf0| 74 74 61 63 68 20 74 68 | 65 6d 20 74 6f 20 74 68 |ttach th|em to th|
|00002d00| 65 20 73 74 61 72 74 20 | 6f 66 20 65 61 63 68 20 |e start |of each |
|00002d10| 73 6f 75 72 63 65 20 66 | 69 6c 65 20 74 6f 20 6d |source f|ile to m|
|00002d20| 6f 73 74 20 65 66 66 65 | 63 74 69 76 65 6c 79 20 |ost effe|ctively |
|00002d30| 63 6f 6e 76 65 79 0a 58 | 74 68 65 20 65 78 63 6c |convey.X|the excl|
|00002d40| 75 73 69 6f 6e 20 6f 66 | 20 77 61 72 72 61 6e 74 |usion of| warrant|
|00002d50| 79 3b 20 61 6e 64 20 65 | 61 63 68 20 66 69 6c 65 |y; and e|ach file|
|00002d60| 20 73 68 6f 75 6c 64 20 | 68 61 76 65 20 61 74 20 | should |have at |
|00002d70| 6c 65 61 73 74 20 74 68 | 65 0a 58 22 63 6f 70 79 |least th|e.X"copy|
|00002d80| 72 69 67 68 74 22 20 6c | 69 6e 65 20 61 6e 64 20 |right" l|ine and |
|00002d90| 61 20 70 6f 69 6e 74 65 | 72 20 74 6f 20 77 68 65 |a pointe|r to whe|
|00002da0| 72 65 20 74 68 65 20 66 | 75 6c 6c 20 6e 6f 74 69 |re the f|ull noti|
|00002db0| 63 65 20 69 73 20 66 6f | 75 6e 64 2e 0a 58 0a 58 |ce is fo|und..X.X|
|00002dc0| 20 20 20 20 3c 6f 6e 65 | 20 6c 69 6e 65 20 74 6f | <one| line to|
|00002dd0| 20 67 69 76 65 20 74 68 | 65 20 70 72 6f 67 72 61 | give th|e progra|
|00002de0| 6d 27 73 20 6e 61 6d 65 | 20 61 6e 64 20 61 20 62 |m's name| and a b|
|00002df0| 72 69 65 66 20 69 64 65 | 61 20 6f 66 20 77 68 61 |rief ide|a of wha|
|00002e00| 74 20 69 74 20 64 6f 65 | 73 2e 3e 0a 58 20 20 20 |t it doe|s.>.X |
|00002e10| 20 43 6f 70 79 72 69 67 | 68 74 20 28 43 29 20 31 | Copyrig|ht (C) 1|
|00002e20| 39 79 79 20 20 3c 6e 61 | 6d 65 20 6f 66 20 61 75 |9yy <na|me of au|
|00002e30| 74 68 6f 72 3e 0a 58 0a | 58 20 20 20 20 54 68 69 |thor>.X.|X Thi|
|00002e40| 73 20 70 72 6f 67 72 61 | 6d 20 69 73 20 66 72 65 |s progra|m is fre|
|00002e50| 65 20 73 6f 66 74 77 61 | 72 65 3b 20 79 6f 75 20 |e softwa|re; you |
|00002e60| 63 61 6e 20 72 65 64 69 | 73 74 72 69 62 75 74 65 |can redi|stribute|
|00002e70| 20 69 74 20 61 6e 64 2f | 6f 72 20 6d 6f 64 69 66 | it and/|or modif|
|00002e80| 79 0a 58 20 20 20 20 69 | 74 20 75 6e 64 65 72 20 |y.X i|t under |
|00002e90| 74 68 65 20 74 65 72 6d | 73 20 6f 66 20 74 68 65 |the term|s of the|
|00002ea0| 20 47 4e 55 20 47 65 6e | 65 72 61 6c 20 50 75 62 | GNU Gen|eral Pub|
|00002eb0| 6c 69 63 20 4c 69 63 65 | 6e 73 65 20 61 73 20 70 |lic Lice|nse as p|
|00002ec0| 75 62 6c 69 73 68 65 64 | 20 62 79 0a 58 20 20 20 |ublished| by.X |
|00002ed0| 20 74 68 65 20 46 72 65 | 65 20 53 6f 66 74 77 61 | the Fre|e Softwa|
|00002ee0| 72 65 20 46 6f 75 6e 64 | 61 74 69 6f 6e 3b 20 65 |re Found|ation; e|
|00002ef0| 69 74 68 65 72 20 76 65 | 72 73 69 6f 6e 20 31 2c |ither ve|rsion 1,|
|00002f00| 20 6f 72 20 28 61 74 20 | 79 6f 75 72 20 6f 70 74 | or (at |your opt|
|00002f10| 69 6f 6e 29 0a 58 20 20 | 20 20 61 6e 79 20 6c 61 |ion).X | any la|
|00002f20| 74 65 72 20 76 65 72 73 | 69 6f 6e 2e 0a 58 0a 58 |ter vers|ion..X.X|
|00002f30| 20 20 20 20 54 68 69 73 | 20 70 72 6f 67 72 61 6d | This| program|
|00002f40| 20 69 73 20 64 69 73 74 | 72 69 62 75 74 65 64 20 | is dist|ributed |
|00002f50| 69 6e 20 74 68 65 20 68 | 6f 70 65 20 74 68 61 74 |in the h|ope that|
|00002f60| 20 69 74 20 77 69 6c 6c | 20 62 65 20 75 73 65 66 | it will| be usef|
|00002f70| 75 6c 2c 0a 58 20 20 20 | 20 62 75 74 20 57 49 54 |ul,.X | but WIT|
|00002f80| 48 4f 55 54 20 41 4e 59 | 20 57 41 52 52 41 4e 54 |HOUT ANY| WARRANT|
|00002f90| 59 3b 20 77 69 74 68 6f | 75 74 20 65 76 65 6e 20 |Y; witho|ut even |
|00002fa0| 74 68 65 20 69 6d 70 6c | 69 65 64 20 77 61 72 72 |the impl|ied warr|
|00002fb0| 61 6e 74 79 20 6f 66 0a | 58 20 20 20 20 4d 45 52 |anty of.|X MER|
|00002fc0| 43 48 41 4e 54 41 42 49 | 4c 49 54 59 20 6f 72 20 |CHANTABI|LITY or |
|00002fd0| 46 49 54 4e 45 53 53 20 | 46 4f 52 20 41 20 50 41 |FITNESS |FOR A PA|
|00002fe0| 52 54 49 43 55 4c 41 52 | 20 50 55 52 50 4f 53 45 |RTICULAR| PURPOSE|
|00002ff0| 2e 20 20 53 65 65 20 74 | 68 65 0a 58 20 20 20 20 |. See t|he.X |
|00003000| 47 4e 55 20 47 65 6e 65 | 72 61 6c 20 50 75 62 6c |GNU Gene|ral Publ|
|00003010| 69 63 20 4c 69 63 65 6e | 73 65 20 66 6f 72 20 6d |ic Licen|se for m|
|00003020| 6f 72 65 20 64 65 74 61 | 69 6c 73 2e 0a 58 0a 58 |ore deta|ils..X.X|
|00003030| 20 20 20 20 59 6f 75 20 | 73 68 6f 75 6c 64 20 68 | You |should h|
|00003040| 61 76 65 20 72 65 63 65 | 69 76 65 64 20 61 20 63 |ave rece|ived a c|
|00003050| 6f 70 79 20 6f 66 20 74 | 68 65 20 47 4e 55 20 47 |opy of t|he GNU G|
|00003060| 65 6e 65 72 61 6c 20 50 | 75 62 6c 69 63 20 4c 69 |eneral P|ublic Li|
|00003070| 63 65 6e 73 65 0a 58 20 | 20 20 20 61 6c 6f 6e 67 |cense.X | along|
|00003080| 20 77 69 74 68 20 74 68 | 69 73 20 70 72 6f 67 72 | with th|is progr|
|00003090| 61 6d 3b 20 69 66 20 6e | 6f 74 2c 20 77 72 69 74 |am; if n|ot, writ|
|000030a0| 65 20 74 6f 20 74 68 65 | 20 46 72 65 65 20 53 6f |e to the| Free So|
|000030b0| 66 74 77 61 72 65 0a 58 | 20 20 20 20 46 6f 75 6e |ftware.X| Foun|
|000030c0| 64 61 74 69 6f 6e 2c 20 | 49 6e 63 2e 2c 20 36 37 |dation, |Inc., 67|
|000030d0| 35 20 4d 61 73 73 20 41 | 76 65 2c 20 43 61 6d 62 |5 Mass A|ve, Camb|
|000030e0| 72 69 64 67 65 2c 20 4d | 41 20 30 32 31 33 39 2c |ridge, M|A 02139,|
|000030f0| 20 55 53 41 2e 0a 58 0a | 58 41 6c 73 6f 20 61 64 | USA..X.|XAlso ad|
|00003100| 64 20 69 6e 66 6f 72 6d | 61 74 69 6f 6e 20 6f 6e |d inform|ation on|
|00003110| 20 68 6f 77 20 74 6f 20 | 63 6f 6e 74 61 63 74 20 | how to |contact |
|00003120| 79 6f 75 20 62 79 20 65 | 6c 65 63 74 72 6f 6e 69 |you by e|lectroni|
|00003130| 63 20 61 6e 64 20 70 61 | 70 65 72 20 6d 61 69 6c |c and pa|per mail|
|00003140| 2e 0a 58 0a 58 49 66 20 | 74 68 65 20 70 72 6f 67 |..X.XIf |the prog|
|00003150| 72 61 6d 20 69 73 20 69 | 6e 74 65 72 61 63 74 69 |ram is i|nteracti|
|00003160| 76 65 2c 20 6d 61 6b 65 | 20 69 74 20 6f 75 74 70 |ve, make| it outp|
|00003170| 75 74 20 61 20 73 68 6f | 72 74 20 6e 6f 74 69 63 |ut a sho|rt notic|
|00003180| 65 20 6c 69 6b 65 20 74 | 68 69 73 0a 58 77 68 65 |e like t|his.Xwhe|
|00003190| 6e 20 69 74 20 73 74 61 | 72 74 73 20 69 6e 20 61 |n it sta|rts in a|
|000031a0| 6e 20 69 6e 74 65 72 61 | 63 74 69 76 65 20 6d 6f |n intera|ctive mo|
|000031b0| 64 65 3a 0a 58 0a 58 20 | 20 20 20 47 6e 6f 6d 6f |de:.X.X | Gnomo|
|000031c0| 76 69 73 69 6f 6e 20 76 | 65 72 73 69 6f 6e 20 36 |vision v|ersion 6|
|000031d0| 39 2c 20 43 6f 70 79 72 | 69 67 68 74 20 28 43 29 |9, Copyr|ight (C)|
|000031e0| 20 31 39 78 78 20 6e 61 | 6d 65 20 6f 66 20 61 75 | 19xx na|me of au|
|000031f0| 74 68 6f 72 0a 58 20 20 | 20 20 47 6e 6f 6d 6f 76 |thor.X | Gnomov|
|00003200| 69 73 69 6f 6e 20 63 6f | 6d 65 73 20 77 69 74 68 |ision co|mes with|
|00003210| 20 41 42 53 4f 4c 55 54 | 45 4c 59 20 4e 4f 20 57 | ABSOLUT|ELY NO W|
|00003220| 41 52 52 41 4e 54 59 3b | 20 66 6f 72 20 64 65 74 |ARRANTY;| for det|
|00003230| 61 69 6c 73 20 74 79 70 | 65 20 60 73 68 6f 77 20 |ails typ|e `show |
|00003240| 77 27 2e 0a 58 20 20 20 | 20 54 68 69 73 20 69 73 |w'..X | This is|
|00003250| 20 66 72 65 65 20 73 6f | 66 74 77 61 72 65 2c 20 | free so|ftware, |
|00003260| 61 6e 64 20 79 6f 75 20 | 61 72 65 20 77 65 6c 63 |and you |are welc|
|00003270| 6f 6d 65 20 74 6f 20 72 | 65 64 69 73 74 72 69 62 |ome to r|edistrib|
|00003280| 75 74 65 20 69 74 0a 58 | 20 20 20 20 75 6e 64 65 |ute it.X| unde|
|00003290| 72 20 63 65 72 74 61 69 | 6e 20 63 6f 6e 64 69 74 |r certai|n condit|
|000032a0| 69 6f 6e 73 3b 20 74 79 | 70 65 20 60 73 68 6f 77 |ions; ty|pe `show|
|000032b0| 20 63 27 20 66 6f 72 20 | 64 65 74 61 69 6c 73 2e | c' for |details.|
|000032c0| 0a 58 0a 58 54 68 65 20 | 68 79 70 6f 74 68 65 74 |.X.XThe |hypothet|
|000032d0| 69 63 61 6c 20 63 6f 6d | 6d 61 6e 64 73 20 60 73 |ical com|mands `s|
|000032e0| 68 6f 77 20 77 27 20 61 | 6e 64 20 60 73 68 6f 77 |how w' a|nd `show|
|000032f0| 20 63 27 20 73 68 6f 75 | 6c 64 20 73 68 6f 77 20 | c' shou|ld show |
|00003300| 74 68 65 0a 58 61 70 70 | 72 6f 70 72 69 61 74 65 |the.Xapp|ropriate|
|00003310| 20 70 61 72 74 73 20 6f | 66 20 74 68 65 20 47 65 | parts o|f the Ge|
|00003320| 6e 65 72 61 6c 20 50 75 | 62 6c 69 63 20 4c 69 63 |neral Pu|blic Lic|
|00003330| 65 6e 73 65 2e 20 20 4f | 66 20 63 6f 75 72 73 65 |ense. O|f course|
|00003340| 2c 20 74 68 65 0a 58 63 | 6f 6d 6d 61 6e 64 73 20 |, the.Xc|ommands |
|00003350| 79 6f 75 20 75 73 65 20 | 6d 61 79 20 62 65 20 63 |you use |may be c|
|00003360| 61 6c 6c 65 64 20 73 6f | 6d 65 74 68 69 6e 67 20 |alled so|mething |
|00003370| 6f 74 68 65 72 20 74 68 | 61 6e 20 60 73 68 6f 77 |other th|an `show|
|00003380| 20 77 27 20 61 6e 64 20 | 60 73 68 6f 77 0a 58 63 | w' and |`show.Xc|
|00003390| 27 3b 20 74 68 65 79 20 | 63 6f 75 6c 64 20 65 76 |'; they |could ev|
|000033a0| 65 6e 20 62 65 20 6d 6f | 75 73 65 2d 63 6c 69 63 |en be mo|use-clic|
|000033b0| 6b 73 20 6f 72 20 6d 65 | 6e 75 20 69 74 65 6d 73 |ks or me|nu items|
|000033c0| 2d 2d 77 68 61 74 65 76 | 65 72 20 73 75 69 74 73 |--whatev|er suits|
|000033d0| 20 79 6f 75 72 0a 58 70 | 72 6f 67 72 61 6d 2e 0a | your.Xp|rogram..|
|000033e0| 58 0a 58 59 6f 75 20 73 | 68 6f 75 6c 64 20 61 6c |X.XYou s|hould al|
|000033f0| 73 6f 20 67 65 74 20 79 | 6f 75 72 20 65 6d 70 6c |so get y|our empl|
|00003400| 6f 79 65 72 20 28 69 66 | 20 79 6f 75 20 77 6f 72 |oyer (if| you wor|
|00003410| 6b 20 61 73 20 61 20 70 | 72 6f 67 72 61 6d 6d 65 |k as a p|rogramme|
|00003420| 72 29 20 6f 72 20 79 6f | 75 72 0a 58 73 63 68 6f |r) or yo|ur.Xscho|
|00003430| 6f 6c 2c 20 69 66 20 61 | 6e 79 2c 20 74 6f 20 73 |ol, if a|ny, to s|
|00003440| 69 67 6e 20 61 20 22 63 | 6f 70 79 72 69 67 68 74 |ign a "c|opyright|
|00003450| 20 64 69 73 63 6c 61 69 | 6d 65 72 22 20 66 6f 72 | disclai|mer" for|
|00003460| 20 74 68 65 20 70 72 6f | 67 72 61 6d 2c 20 69 66 | the pro|gram, if|
|00003470| 0a 58 6e 65 63 65 73 73 | 61 72 79 2e 20 20 48 65 |.Xnecess|ary. He|
|00003480| 72 65 20 61 20 73 61 6d | 70 6c 65 3b 20 61 6c 74 |re a sam|ple; alt|
|00003490| 65 72 20 74 68 65 20 6e | 61 6d 65 73 3a 0a 58 0a |er the n|ames:.X.|
|000034a0| 58 20 20 59 6f 79 6f 64 | 79 6e 65 2c 20 49 6e 63 |X Yoyod|yne, Inc|
|000034b0| 2e 2c 20 68 65 72 65 62 | 79 20 64 69 73 63 6c 61 |., hereb|y discla|
|000034c0| 69 6d 73 20 61 6c 6c 20 | 63 6f 70 79 72 69 67 68 |ims all |copyrigh|
|000034d0| 74 20 69 6e 74 65 72 65 | 73 74 20 69 6e 20 74 68 |t intere|st in th|
|000034e0| 65 0a 58 20 20 70 72 6f | 67 72 61 6d 20 60 47 6e |e.X pro|gram `Gn|
|000034f0| 6f 6d 6f 76 69 73 69 6f | 6e 27 20 28 61 20 70 72 |omovisio|n' (a pr|
|00003500| 6f 67 72 61 6d 20 74 6f | 20 64 69 72 65 63 74 20 |ogram to| direct |
|00003510| 63 6f 6d 70 69 6c 65 72 | 73 20 74 6f 20 6d 61 6b |compiler|s to mak|
|00003520| 65 20 70 61 73 73 65 73 | 0a 58 20 20 61 74 20 61 |e passes|.X at a|
|00003530| 73 73 65 6d 62 6c 65 72 | 73 29 20 77 72 69 74 74 |ssembler|s) writt|
|00003540| 65 6e 20 62 79 20 4a 61 | 6d 65 73 20 48 61 63 6b |en by Ja|mes Hack|
|00003550| 65 72 2e 0a 58 0a 58 20 | 20 3c 73 69 67 6e 61 74 |er..X.X | <signat|
|00003560| 75 72 65 20 6f 66 20 54 | 79 20 43 6f 6f 6e 3e 2c |ure of T|y Coon>,|
|00003570| 20 31 20 41 70 72 69 6c | 20 31 39 38 39 0a 58 20 | 1 April| 1989.X |
|00003580| 20 54 79 20 43 6f 6f 6e | 2c 20 50 72 65 73 69 64 | Ty Coon|, Presid|
|00003590| 65 6e 74 20 6f 66 20 56 | 69 63 65 0a 58 0a 58 54 |ent of V|ice.X.XT|
|000035a0| 68 61 74 27 73 20 61 6c | 6c 20 74 68 65 72 65 20 |hat's al|l there |
|000035b0| 69 73 20 74 6f 20 69 74 | 21 0a 45 4e 44 5f 4f 46 |is to it|!.END_OF|
|000035c0| 5f 46 49 4c 45 0a 69 66 | 20 74 65 73 74 20 31 32 |_FILE.if| test 12|
|000035d0| 34 38 38 20 2d 6e 65 20 | 60 77 63 20 2d 63 20 3c |488 -ne |`wc -c <|
|000035e0| 27 43 4f 50 59 49 4e 47 | 27 60 3b 20 74 68 65 6e |'COPYING|'`; then|
|000035f0| 0a 20 20 20 20 65 63 68 | 6f 20 73 68 61 72 3a 20 |. ech|o shar: |
|00003600| 5c 22 27 43 4f 50 59 49 | 4e 47 27 5c 22 20 75 6e |\"'COPYI|NG'\" un|
|00003610| 70 61 63 6b 65 64 20 77 | 69 74 68 20 77 72 6f 6e |packed w|ith wron|
|00003620| 67 20 73 69 7a 65 21 0a | 66 69 0a 23 20 65 6e 64 |g size!.|fi.# end|
|00003630| 20 6f 66 20 27 43 4f 50 | 59 49 4e 47 27 0a 66 69 | of 'COP|YING'.fi|
|00003640| 0a 69 66 20 74 65 73 74 | 20 2d 66 20 27 63 6f 6e |.if test| -f 'con|
|00003650| 74 65 78 74 2e 63 27 20 | 2d 61 20 22 24 7b 31 7d |text.c' |-a "${1}|
|00003660| 22 20 21 3d 20 22 2d 63 | 22 20 3b 20 74 68 65 6e |" != "-c|" ; then|
|00003670| 20 0a 20 20 65 63 68 6f | 20 73 68 61 72 3a 20 57 | . echo| shar: W|
|00003680| 69 6c 6c 20 6e 6f 74 20 | 63 6c 6f 62 62 65 72 20 |ill not |clobber |
|00003690| 65 78 69 73 74 69 6e 67 | 20 66 69 6c 65 20 5c 22 |existing| file \"|
|000036a0| 27 63 6f 6e 74 65 78 74 | 2e 63 27 5c 22 0a 65 6c |'context|.c'\".el|
|000036b0| 73 65 0a 65 63 68 6f 20 | 73 68 61 72 3a 20 45 78 |se.echo |shar: Ex|
|000036c0| 74 72 61 63 74 69 6e 67 | 20 5c 22 27 63 6f 6e 74 |tracting| \"'cont|
|000036d0| 65 78 74 2e 63 27 5c 22 | 20 5c 28 31 32 34 37 39 |ext.c'\"| \(12479|
|000036e0| 20 63 68 61 72 61 63 74 | 65 72 73 5c 29 0a 73 65 | charact|ers\).se|
|000036f0| 64 20 22 73 2f 5e 58 2f | 2f 22 20 3e 27 63 6f 6e |d "s/^X/|/" >'con|
|00003700| 74 65 78 74 2e 63 27 20 | 3c 3c 27 45 4e 44 5f 4f |text.c' |<<'END_O|
|00003710| 46 5f 46 49 4c 45 27 0a | 58 2f 2a 20 43 6f 6e 74 |F_FILE'.|X/* Cont|
|00003720| 65 78 74 2d 66 6f 72 6d | 61 74 20 6f 75 74 70 75 |ext-form|at outpu|
|00003730| 74 20 72 6f 75 74 69 6e | 65 73 20 66 6f 72 20 47 |t routin|es for G|
|00003740| 4e 55 20 44 49 46 46 2e | 0a 58 20 20 20 43 6f 70 |NU DIFF.|.X Cop|
|00003750| 79 72 69 67 68 74 20 28 | 43 29 20 31 39 38 38 2c |yright (|C) 1988,|
|00003760| 20 31 39 38 39 20 46 72 | 65 65 20 53 6f 66 74 77 | 1989 Fr|ee Softw|
|00003770| 61 72 65 20 46 6f 75 6e | 64 61 74 69 6f 6e 2c 20 |are Foun|dation, |
|00003780| 49 6e 63 2e 0a 58 0a 58 | 54 68 69 73 20 66 69 6c |Inc..X.X|This fil|
|00003790| 65 20 69 73 20 70 61 72 | 74 20 6f 66 20 47 4e 55 |e is par|t of GNU|
|000037a0| 20 44 49 46 46 2e 0a 58 | 0a 58 47 4e 55 20 44 49 | DIFF..X|.XGNU DI|
|000037b0| 46 46 20 69 73 20 66 72 | 65 65 20 73 6f 66 74 77 |FF is fr|ee softw|
|000037c0| 61 72 65 3b 20 79 6f 75 | 20 63 61 6e 20 72 65 64 |are; you| can red|
|000037d0| 69 73 74 72 69 62 75 74 | 65 20 69 74 20 61 6e 64 |istribut|e it and|
|000037e0| 2f 6f 72 20 6d 6f 64 69 | 66 79 0a 58 69 74 20 75 |/or modi|fy.Xit u|
|000037f0| 6e 64 65 72 20 74 68 65 | 20 74 65 72 6d 73 20 6f |nder the| terms o|
|00003800| 66 20 74 68 65 20 47 4e | 55 20 47 65 6e 65 72 61 |f the GN|U Genera|
|00003810| 6c 20 50 75 62 6c 69 63 | 20 4c 69 63 65 6e 73 65 |l Public| License|
|00003820| 20 61 73 20 70 75 62 6c | 69 73 68 65 64 20 62 79 | as publ|ished by|
|00003830| 0a 58 74 68 65 20 46 72 | 65 65 20 53 6f 66 74 77 |.Xthe Fr|ee Softw|
|00003840| 61 72 65 20 46 6f 75 6e | 64 61 74 69 6f 6e 3b 20 |are Foun|dation; |
|00003850| 65 69 74 68 65 72 20 76 | 65 72 73 69 6f 6e 20 31 |either v|ersion 1|
|00003860| 2c 20 6f 72 20 28 61 74 | 20 79 6f 75 72 20 6f 70 |, or (at| your op|
|00003870| 74 69 6f 6e 29 0a 58 61 | 6e 79 20 6c 61 74 65 72 |tion).Xa|ny later|
|00003880| 20 76 65 72 73 69 6f 6e | 2e 0a 58 0a 58 47 4e 55 | version|..X.XGNU|
|00003890| 20 44 49 46 46 20 69 73 | 20 64 69 73 74 72 69 62 | DIFF is| distrib|
|000038a0| 75 74 65 64 20 69 6e 20 | 74 68 65 20 68 6f 70 65 |uted in |the hope|
|000038b0| 20 74 68 61 74 20 69 74 | 20 77 69 6c 6c 20 62 65 | that it| will be|
|000038c0| 20 75 73 65 66 75 6c 2c | 0a 58 62 75 74 20 57 49 | useful,|.Xbut WI|
|000038d0| 54 48 4f 55 54 20 41 4e | 59 20 57 41 52 52 41 4e |THOUT AN|Y WARRAN|
|000038e0| 54 59 3b 20 77 69 74 68 | 6f 75 74 20 65 76 65 6e |TY; with|out even|
|000038f0| 20 74 68 65 20 69 6d 70 | 6c 69 65 64 20 77 61 72 | the imp|lied war|
|00003900| 72 61 6e 74 79 20 6f 66 | 0a 58 4d 45 52 43 48 41 |ranty of|.XMERCHA|
|00003910| 4e 54 41 42 49 4c 49 54 | 59 20 6f 72 20 46 49 54 |NTABILIT|Y or FIT|
|00003920| 4e 45 53 53 20 46 4f 52 | 20 41 20 50 41 52 54 49 |NESS FOR| A PARTI|
|00003930| 43 55 4c 41 52 20 50 55 | 52 50 4f 53 45 2e 20 20 |CULAR PU|RPOSE. |
|00003940| 53 65 65 20 74 68 65 0a | 58 47 4e 55 20 47 65 6e |See the.|XGNU Gen|
|00003950| 65 72 61 6c 20 50 75 62 | 6c 69 63 20 4c 69 63 65 |eral Pub|lic Lice|
|00003960| 6e 73 65 20 66 6f 72 20 | 6d 6f 72 65 20 64 65 74 |nse for |more det|
|00003970| 61 69 6c 73 2e 0a 58 0a | 58 59 6f 75 20 73 68 6f |ails..X.|XYou sho|
|00003980| 75 6c 64 20 68 61 76 65 | 20 72 65 63 65 69 76 65 |uld have| receive|
|00003990| 64 20 61 20 63 6f 70 79 | 20 6f 66 20 74 68 65 20 |d a copy| of the |
|000039a0| 47 4e 55 20 47 65 6e 65 | 72 61 6c 20 50 75 62 6c |GNU Gene|ral Publ|
|000039b0| 69 63 20 4c 69 63 65 6e | 73 65 0a 58 61 6c 6f 6e |ic Licen|se.Xalon|
|000039c0| 67 20 77 69 74 68 20 47 | 4e 55 20 44 49 46 46 3b |g with G|NU DIFF;|
|000039d0| 20 73 65 65 20 74 68 65 | 20 66 69 6c 65 20 43 4f | see the| file CO|
|000039e0| 50 59 49 4e 47 2e 20 20 | 49 66 20 6e 6f 74 2c 20 |PYING. |If not, |
|000039f0| 77 72 69 74 65 20 74 6f | 0a 58 74 68 65 20 46 72 |write to|.Xthe Fr|
|00003a00| 65 65 20 53 6f 66 74 77 | 61 72 65 20 46 6f 75 6e |ee Softw|are Foun|
|00003a10| 64 61 74 69 6f 6e 2c 20 | 36 37 35 20 4d 61 73 73 |dation, |675 Mass|
|00003a20| 20 41 76 65 2c 20 43 61 | 6d 62 72 69 64 67 65 2c | Ave, Ca|mbridge,|
|00003a30| 20 4d 41 20 30 32 31 33 | 39 2c 20 55 53 41 2e 20 | MA 0213|9, USA. |
|00003a40| 20 2a 2f 0a 58 0a 58 23 | 69 6e 63 6c 75 64 65 20 | */.X.X#|include |
|00003a50| 22 64 69 66 66 2e 68 22 | 0a 58 23 69 6e 63 6c 75 |"diff.h"|.X#inclu|
|00003a60| 64 65 20 22 72 65 67 65 | 78 2e 68 22 0a 58 0a 58 |de "rege|x.h".X.X|
|00003a70| 73 74 61 74 69 63 20 76 | 6f 69 64 20 70 72 5f 63 |static v|oid pr_c|
|00003a80| 6f 6e 74 65 78 74 5f 68 | 75 6e 6b 20 28 29 3b 0a |ontext_h|unk ();.|
|00003a90| 58 73 74 61 74 69 63 20 | 76 6f 69 64 20 70 72 5f |Xstatic |void pr_|
|00003aa0| 75 6e 69 64 69 66 66 5f | 68 75 6e 6b 20 28 29 3b |unidiff_|hunk ();|
|00003ab0| 0a 58 73 74 61 74 69 63 | 20 73 74 72 75 63 74 20 |.Xstatic| struct |
|00003ac0| 63 68 61 6e 67 65 20 2a | 66 69 6e 64 5f 68 75 6e |change *|find_hun|
|00003ad0| 6b 20 28 29 3b 0a 58 73 | 74 61 74 69 63 20 76 6f |k ();.Xs|tatic vo|
|00003ae0| 69 64 20 6d 61 72 6b 5f | 69 67 6e 6f 72 61 62 6c |id mark_|ignorabl|
|00003af0| 65 20 28 29 3b 0a 58 73 | 74 61 74 69 63 20 76 6f |e ();.Xs|tatic vo|
|00003b00| 69 64 20 66 69 6e 64 5f | 66 75 6e 63 74 69 6f 6e |id find_|function|
|00003b10| 20 28 29 3b 0a 58 0a 58 | 2f 2a 20 4c 61 73 74 20 | ();.X.X|/* Last |
|00003b20| 70 6c 61 63 65 20 66 69 | 6e 64 5f 66 75 6e 63 74 |place fi|nd_funct|
|00003b30| 69 6f 6e 20 73 74 61 72 | 74 65 64 20 73 65 61 72 |ion star|ted sear|
|00003b40| 63 68 69 6e 67 20 66 72 | 6f 6d 2e 20 20 2a 2f 0a |ching fr|om. */.|
|00003b50| 58 73 74 61 74 69 63 20 | 69 6e 74 20 66 69 6e 64 |Xstatic |int find|
|00003b60| 5f 66 75 6e 63 74 69 6f | 6e 5f 6c 61 73 74 5f 73 |_functio|n_last_s|
|00003b70| 65 61 72 63 68 3b 0a 58 | 0a 58 2f 2a 20 54 68 65 |earch;.X|.X/* The|
|00003b80| 20 76 61 6c 75 65 20 66 | 69 6e 64 5f 66 75 6e 63 | value f|ind_func|
|00003b90| 74 69 6f 6e 20 72 65 74 | 75 72 6e 65 64 20 77 68 |tion ret|urned wh|
|00003ba0| 65 6e 20 69 74 20 73 74 | 61 72 74 65 64 20 73 65 |en it st|arted se|
|00003bb0| 61 72 63 68 69 6e 67 20 | 74 68 65 72 65 2e 20 20 |arching |there. |
|00003bc0| 2a 2f 0a 58 73 74 61 74 | 69 63 20 69 6e 74 20 66 |*/.Xstat|ic int f|
|00003bd0| 69 6e 64 5f 66 75 6e 63 | 74 69 6f 6e 5f 6c 61 73 |ind_func|tion_las|
|00003be0| 74 5f 6d 61 74 63 68 3b | 0a 58 0c 0a 58 2f 2a 20 |t_match;|.X..X/* |
|00003bf0| 50 72 69 6e 74 20 61 20 | 6c 61 62 65 6c 20 66 6f |Print a |label fo|
|00003c00| 72 20 61 20 63 6f 6e 74 | 65 78 74 20 64 69 66 66 |r a cont|ext diff|
|00003c10| 2c 20 77 69 74 68 20 61 | 20 66 69 6c 65 20 6e 61 |, with a| file na|
|00003c20| 6d 65 20 61 6e 64 20 64 | 61 74 65 20 6f 72 20 61 |me and d|ate or a|
|00003c30| 20 6c 61 62 65 6c 2e 20 | 20 2a 2f 0a 58 0a 58 73 | label. | */.X.Xs|
|00003c40| 74 61 74 69 63 20 76 6f | 69 64 0a 58 70 72 69 6e |tatic vo|id.Xprin|
|00003c50| 74 5f 63 6f 6e 74 65 78 | 74 5f 6c 61 62 65 6c 20 |t_contex|t_label |
|00003c60| 28 6d 61 72 6b 2c 20 69 | 6e 66 2c 20 6c 61 62 65 |(mark, i|nf, labe|
|00003c70| 6c 29 0a 58 20 20 20 20 | 20 63 6f 6e 73 74 20 63 |l).X | const c|
|00003c80| 68 61 72 20 2a 6d 61 72 | 6b 3b 0a 58 20 20 20 20 |har *mar|k;.X |
|00003c90| 20 73 74 72 75 63 74 20 | 66 69 6c 65 5f 64 61 74 | struct |file_dat|
|00003ca0| 61 20 2a 69 6e 66 3b 0a | 58 20 20 20 20 20 63 6f |a *inf;.|X co|
|00003cb0| 6e 73 74 20 63 68 61 72 | 20 2a 6c 61 62 65 6c 3b |nst char| *label;|
|00003cc0| 0a 58 7b 0a 58 20 20 69 | 66 20 28 6c 61 62 65 6c |.X{.X i|f (label|
|00003cd0| 29 0a 58 20 20 20 20 66 | 70 72 69 6e 74 66 20 28 |).X f|printf (|
|00003ce0| 6f 75 74 66 69 6c 65 2c | 20 22 25 73 20 25 73 5c |outfile,| "%s %s\|
|00003cf0| 6e 22 2c 20 6d 61 72 6b | 2c 20 6c 61 62 65 6c 29 |n", mark|, label)|
|00003d00| 3b 0a 58 20 20 65 6c 73 | 65 20 69 66 20 28 69 6e |;.X els|e if (in|
|00003d10| 66 2d 3e 73 74 61 74 2e | 73 74 5f 6d 74 69 6d 65 |f->stat.|st_mtime|
|00003d20| 29 0a 58 20 20 20 20 66 | 70 72 69 6e 74 66 20 28 |).X f|printf (|
|00003d30| 6f 75 74 66 69 6c 65 2c | 20 22 25 73 20 25 73 5c |outfile,| "%s %s\|
|00003d40| 74 25 73 22 2c 20 6d 61 | 72 6b 2c 20 69 6e 66 2d |t%s", ma|rk, inf-|
|00003d50| 3e 6e 61 6d 65 2c 20 63 | 74 69 6d 65 28 26 69 6e |>name, c|time(&in|
|00003d60| 66 2d 3e 73 74 61 74 2e | 73 74 5f 6d 74 69 6d 65 |f->stat.|st_mtime|
|00003d70| 29 29 3b 0a 58 20 20 65 | 6c 73 65 0a 58 20 20 20 |));.X e|lse.X |
|00003d80| 20 2f 2a 20 44 6f 6e 27 | 74 20 70 72 65 74 65 6e | /* Don'|t preten|
|00003d90| 64 20 74 68 61 74 20 73 | 74 61 6e 64 61 72 64 20 |d that s|tandard |
|00003da0| 69 6e 70 75 74 20 69 73 | 20 61 6e 63 69 65 6e 74 |input is| ancient|
|00003db0| 2e 20 20 2a 2f 0a 58 20 | 20 20 20 66 70 72 69 6e |. */.X | fprin|
|00003dc0| 74 66 20 28 6f 75 74 66 | 69 6c 65 2c 20 22 25 73 |tf (outf|ile, "%s|
|00003dd0| 20 25 73 5c 6e 22 2c 20 | 6d 61 72 6b 2c 20 69 6e | %s\n", |mark, in|
|00003de0| 66 2d 3e 6e 61 6d 65 29 | 3b 0a 58 7d 0a 58 0a 58 |f->name)|;.X}.X.X|
|00003df0| 2f 2a 20 50 72 69 6e 74 | 20 61 20 68 65 61 64 65 |/* Print| a heade|
|00003e00| 72 20 66 6f 72 20 61 20 | 63 6f 6e 74 65 78 74 20 |r for a |context |
|00003e10| 64 69 66 66 2c 20 77 69 | 74 68 20 74 68 65 20 66 |diff, wi|th the f|
|00003e20| 69 6c 65 20 6e 61 6d 65 | 73 20 61 6e 64 20 64 61 |ile name|s and da|
|00003e30| 74 65 73 2e 20 20 2a 2f | 0a 58 0a 58 76 6f 69 64 |tes. */|.X.Xvoid|
|00003e40| 0a 58 70 72 69 6e 74 5f | 63 6f 6e 74 65 78 74 5f |.Xprint_|context_|
|00003e50| 68 65 61 64 65 72 20 28 | 69 6e 66 2c 20 75 6e 69 |header (|inf, uni|
|00003e60| 64 69 66 66 5f 66 6c 61 | 67 29 0a 58 20 20 20 20 |diff_fla|g).X |
|00003e70| 20 73 74 72 75 63 74 20 | 66 69 6c 65 5f 64 61 74 | struct |file_dat|
|00003e80| 61 20 2a 69 6e 66 3b 0a | 58 20 20 20 20 20 69 6e |a *inf;.|X in|
|00003e90| 74 20 75 6e 69 64 69 66 | 66 5f 66 6c 61 67 3b 0a |t unidif|f_flag;.|
|00003ea0| 58 7b 0a 58 20 20 69 66 | 20 28 75 6e 69 64 69 66 |X{.X if| (unidif|
|00003eb0| 66 5f 66 6c 61 67 29 0a | 58 20 20 20 20 7b 0a 58 |f_flag).|X {.X|
|00003ec0| 20 20 20 20 20 20 70 72 | 69 6e 74 5f 63 6f 6e 74 | pr|int_cont|
|00003ed0| 65 78 74 5f 6c 61 62 65 | 6c 20 28 22 2d 2d 2d 22 |ext_labe|l ("---"|
|00003ee0| 2c 20 26 69 6e 66 5b 30 | 5d 2c 20 66 69 6c 65 5f |, &inf[0|], file_|
|00003ef0| 6c 61 62 65 6c 5b 30 5d | 29 3b 0a 58 20 20 20 20 |label[0]|);.X |
|00003f00| 20 20 70 72 69 6e 74 5f | 63 6f 6e 74 65 78 74 5f | print_|context_|
|00003f10| 6c 61 62 65 6c 20 28 22 | 2b 2b 2b 22 2c 20 26 69 |label ("|+++", &i|
|00003f20| 6e 66 5b 31 5d 2c 20 66 | 69 6c 65 5f 6c 61 62 65 |nf[1], f|ile_labe|
|00003f30| 6c 5b 31 5d 29 3b 0a 58 | 20 20 20 20 7d 0a 58 20 |l[1]);.X| }.X |
|00003f40| 20 65 6c 73 65 0a 58 20 | 20 20 20 7b 0a 58 20 20 | else.X | {.X |
|00003f50| 20 20 20 20 70 72 69 6e | 74 5f 63 6f 6e 74 65 78 | prin|t_contex|
|00003f60| 74 5f 6c 61 62 65 6c 20 | 28 22 2a 2a 2a 22 2c 20 |t_label |("***", |
|00003f70| 26 69 6e 66 5b 30 5d 2c | 20 66 69 6c 65 5f 6c 61 |&inf[0],| file_la|
|00003f80| 62 65 6c 5b 30 5d 29 3b | 0a 58 20 20 20 20 20 20 |bel[0]);|.X |
|00003f90| 70 72 69 6e 74 5f 63 6f | 6e 74 65 78 74 5f 6c 61 |print_co|ntext_la|
|00003fa0| 62 65 6c 20 28 22 2d 2d | 2d 22 2c 20 26 69 6e 66 |bel ("--|-", &inf|
|00003fb0| 5b 31 5d 2c 20 66 69 6c | 65 5f 6c 61 62 65 6c 5b |[1], fil|e_label[|
|00003fc0| 31 5d 29 3b 0a 58 20 20 | 20 20 7d 0a 58 7d 0a 58 |1]);.X | }.X}.X|
|00003fd0| 0a 58 2f 2a 20 50 72 69 | 6e 74 20 61 6e 20 65 64 |.X/* Pri|nt an ed|
|00003fe0| 69 74 20 73 63 72 69 70 | 74 20 69 6e 20 63 6f 6e |it scrip|t in con|
|00003ff0| 74 65 78 74 20 66 6f 72 | 6d 61 74 2e 20 20 2a 2f |text for|mat. */|
|00004000| 0a 58 0a 58 76 6f 69 64 | 0a 58 70 72 69 6e 74 5f |.X.Xvoid|.Xprint_|
|00004010| 63 6f 6e 74 65 78 74 5f | 73 63 72 69 70 74 20 28 |context_|script (|
|00004020| 73 63 72 69 70 74 2c 20 | 75 6e 69 64 69 66 66 5f |script, |unidiff_|
|00004030| 66 6c 61 67 29 0a 58 20 | 20 20 20 20 73 74 72 75 |flag).X | stru|
|00004040| 63 74 20 63 68 61 6e 67 | 65 20 2a 73 63 72 69 70 |ct chang|e *scrip|
|00004050| 74 3b 0a 58 20 20 20 20 | 20 69 6e 74 20 75 6e 69 |t;.X | int uni|
|00004060| 64 69 66 66 5f 66 6c 61 | 67 3b 0a 58 7b 0a 58 20 |diff_fla|g;.X{.X |
|00004070| 20 69 66 20 28 69 67 6e | 6f 72 65 5f 62 6c 61 6e | if (ign|ore_blan|
|00004080| 6b 5f 6c 69 6e 65 73 5f | 66 6c 61 67 20 7c 7c 20 |k_lines_|flag || |
|00004090| 69 67 6e 6f 72 65 5f 72 | 65 67 65 78 70 29 0a 58 |ignore_r|egexp).X|
|000040a0| 20 20 20 20 6d 61 72 6b | 5f 69 67 6e 6f 72 61 62 | mark|_ignorab|
|000040b0| 6c 65 20 28 73 63 72 69 | 70 74 29 3b 0a 58 20 20 |le (scri|pt);.X |
|000040c0| 65 6c 73 65 0a 58 20 20 | 20 20 7b 0a 58 20 20 20 |else.X | {.X |
|000040d0| 20 20 20 73 74 72 75 63 | 74 20 63 68 61 6e 67 65 | struc|t change|
|000040e0| 20 2a 65 3b 0a 58 20 20 | 20 20 20 20 66 6f 72 20 | *e;.X | for |
|000040f0| 28 65 20 3d 20 73 63 72 | 69 70 74 3b 20 65 3b 20 |(e = scr|ipt; e; |
|00004100| 65 20 3d 20 65 2d 3e 6c | 69 6e 6b 29 0a 58 09 65 |e = e->l|ink).X.e|
|00004110| 2d 3e 69 67 6e 6f 72 65 | 20 3d 20 30 3b 0a 58 20 |->ignore| = 0;.X |
|00004120| 20 20 20 7d 0a 58 0a 58 | 20 20 66 69 6e 64 5f 66 | }.X.X| find_f|
|00004130| 75 6e 63 74 69 6f 6e 5f | 6c 61 73 74 5f 73 65 61 |unction_|last_sea|
|00004140| 72 63 68 20 3d 20 30 3b | 0a 58 20 20 66 69 6e 64 |rch = 0;|.X find|
|00004150| 5f 66 75 6e 63 74 69 6f | 6e 5f 6c 61 73 74 5f 6d |_functio|n_last_m|
|00004160| 61 74 63 68 20 3d 20 2d | 31 3b 0a 58 0a 58 20 20 |atch = -|1;.X.X |
|00004170| 69 66 20 28 75 6e 69 64 | 69 66 66 5f 66 6c 61 67 |if (unid|iff_flag|
|00004180| 29 0a 58 20 20 20 20 70 | 72 69 6e 74 5f 73 63 72 |).X p|rint_scr|
|00004190| 69 70 74 20 28 73 63 72 | 69 70 74 2c 20 66 69 6e |ipt (scr|ipt, fin|
|000041a0| 64 5f 68 75 6e 6b 2c 20 | 70 72 5f 75 6e 69 64 69 |d_hunk, |pr_unidi|
|000041b0| 66 66 5f 68 75 6e 6b 29 | 3b 0a 58 20 20 65 6c 73 |ff_hunk)|;.X els|
|000041c0| 65 0a 58 20 20 20 20 70 | 72 69 6e 74 5f 73 63 72 |e.X p|rint_scr|
|000041d0| 69 70 74 20 28 73 63 72 | 69 70 74 2c 20 66 69 6e |ipt (scr|ipt, fin|
|000041e0| 64 5f 68 75 6e 6b 2c 20 | 70 72 5f 63 6f 6e 74 65 |d_hunk, |pr_conte|
|000041f0| 78 74 5f 68 75 6e 6b 29 | 3b 0a 58 7d 0a 58 0c 0a |xt_hunk)|;.X}.X..|
|00004200| 58 2f 2a 20 50 72 69 6e | 74 20 61 20 70 61 69 72 |X/* Prin|t a pair|
|00004210| 20 6f 66 20 6c 69 6e 65 | 20 6e 75 6d 62 65 72 73 | of line| numbers|
|00004220| 20 77 69 74 68 20 61 20 | 63 6f 6d 6d 61 2c 20 74 | with a |comma, t|
|00004230| 72 61 6e 73 6c 61 74 65 | 64 20 66 6f 72 20 66 69 |ranslate|d for fi|
|00004240| 6c 65 20 46 49 4c 45 2e | 0a 58 20 20 20 49 66 20 |le FILE.|.X If |
|00004250| 74 68 65 20 73 65 63 6f | 6e 64 20 6e 75 6d 62 65 |the seco|nd numbe|
|00004260| 72 20 69 73 20 6e 6f 74 | 20 67 72 65 61 74 65 72 |r is not| greater|
|00004270| 2c 20 75 73 65 20 74 68 | 65 20 66 69 72 73 74 20 |, use th|e first |
|00004280| 69 6e 20 70 6c 61 63 65 | 20 6f 66 20 69 74 2e 0a |in place| of it..|
|00004290| 58 0a 58 20 20 20 41 72 | 67 73 20 41 20 61 6e 64 |X.X Ar|gs A and|
|000042a0| 20 42 20 61 72 65 20 69 | 6e 74 65 72 6e 61 6c 20 | B are i|nternal |
|000042b0| 6c 69 6e 65 20 6e 75 6d | 62 65 72 73 2e 0a 58 20 |line num|bers..X |
|000042c0| 20 20 57 65 20 70 72 69 | 6e 74 20 74 68 65 20 74 | We pri|nt the t|
|000042d0| 72 61 6e 73 6c 61 74 65 | 64 20 28 72 65 61 6c 29 |ranslate|d (real)|
|000042e0| 20 6c 69 6e 65 20 6e 75 | 6d 62 65 72 73 2e 20 20 | line nu|mbers. |
|000042f0| 2a 2f 0a 58 0a 58 73 74 | 61 74 69 63 20 76 6f 69 |*/.X.Xst|atic voi|
|00004300| 64 0a 58 70 72 69 6e 74 | 5f 63 6f 6e 74 65 78 74 |d.Xprint|_context|
|00004310| 5f 6e 75 6d 62 65 72 5f | 72 61 6e 67 65 20 28 66 |_number_|range (f|
|00004320| 69 6c 65 2c 20 61 2c 20 | 62 29 0a 58 20 20 20 20 |ile, a, |b).X |
|00004330| 20 73 74 72 75 63 74 20 | 66 69 6c 65 5f 64 61 74 | struct |file_dat|
|00004340| 61 20 2a 66 69 6c 65 3b | 0a 58 20 20 20 20 20 69 |a *file;|.X i|
|00004350| 6e 74 20 61 2c 20 62 3b | 0a 58 7b 0a 58 20 20 69 |nt a, b;|.X{.X i|
|00004360| 6e 74 20 74 72 61 6e 73 | 5f 61 2c 20 74 72 61 6e |nt trans|_a, tran|
|00004370| 73 5f 62 3b 0a 58 20 20 | 74 72 61 6e 73 6c 61 74 |s_b;.X |translat|
|00004380| 65 5f 72 61 6e 67 65 20 | 28 66 69 6c 65 2c 20 61 |e_range |(file, a|
|00004390| 2c 20 62 2c 20 26 74 72 | 61 6e 73 5f 61 2c 20 26 |, b, &tr|ans_a, &|
|000043a0| 74 72 61 6e 73 5f 62 29 | 3b 0a 58 0a 58 20 20 2f |trans_b)|;.X.X /|
|000043b0| 2a 20 4e 6f 74 65 3a 20 | 77 65 20 63 61 6e 20 68 |* Note: |we can h|
|000043c0| 61 76 65 20 42 20 3c 20 | 41 20 69 6e 20 74 68 65 |ave B < |A in the|
|000043d0| 20 63 61 73 65 20 6f 66 | 20 61 20 72 61 6e 67 65 | case of| a range|
|000043e0| 20 6f 66 20 6e 6f 20 6c | 69 6e 65 73 2e 0a 58 20 | of no l|ines..X |
|000043f0| 20 20 20 20 49 6e 20 74 | 68 69 73 20 63 61 73 65 | In t|his case|
|00004400| 2c 20 77 65 20 73 68 6f | 75 6c 64 20 70 72 69 6e |, we sho|uld prin|
|00004410| 74 20 74 68 65 20 6c 69 | 6e 65 20 6e 75 6d 62 65 |t the li|ne numbe|
|00004420| 72 20 62 65 66 6f 72 65 | 20 74 68 65 20 72 61 6e |r before| the ran|
|00004430| 67 65 2c 0a 58 20 20 20 | 20 20 77 68 69 63 68 20 |ge,.X | which |
|00004440| 69 73 20 42 2e 20 20 2a | 2f 0a 58 20 20 69 66 20 |is B. *|/.X if |
|00004450| 28 74 72 61 6e 73 5f 62 | 20 3e 20 74 72 61 6e 73 |(trans_b| > trans|
|00004460| 5f 61 29 0a 58 20 20 20 | 20 66 70 72 69 6e 74 66 |_a).X | fprintf|
|00004470| 20 28 6f 75 74 66 69 6c | 65 2c 20 22 25 64 2c 25 | (outfil|e, "%d,%|
|00004480| 64 22 2c 20 74 72 61 6e | 73 5f 61 2c 20 74 72 61 |d", tran|s_a, tra|
|00004490| 6e 73 5f 62 29 3b 0a 58 | 20 20 65 6c 73 65 0a 58 |ns_b);.X| else.X|
|000044a0| 20 20 20 20 66 70 72 69 | 6e 74 66 20 28 6f 75 74 | fpri|ntf (out|
|000044b0| 66 69 6c 65 2c 20 22 25 | 64 22 2c 20 74 72 61 6e |file, "%|d", tran|
|000044c0| 73 5f 62 29 3b 0a 58 7d | 0a 58 0c 0a 58 2f 2a 20 |s_b);.X}|.X..X/* |
|000044d0| 50 72 69 6e 74 20 61 20 | 70 6f 72 74 69 6f 6e 20 |Print a |portion |
|000044e0| 6f 66 20 61 6e 20 65 64 | 69 74 20 73 63 72 69 70 |of an ed|it scrip|
|000044f0| 74 20 69 6e 20 63 6f 6e | 74 65 78 74 20 66 6f 72 |t in con|text for|
|00004500| 6d 61 74 2e 0a 58 20 20 | 20 48 55 4e 4b 20 69 73 |mat..X | HUNK is|
|00004510| 20 74 68 65 20 62 65 67 | 69 6e 6e 69 6e 67 20 6f | the beg|inning o|
|00004520| 66 20 74 68 65 20 70 6f | 72 74 69 6f 6e 20 74 6f |f the po|rtion to|
|00004530| 20 62 65 20 70 72 69 6e | 74 65 64 2e 0a 58 20 20 | be prin|ted..X |
|00004540| 20 54 68 65 20 65 6e 64 | 20 69 73 20 6d 61 72 6b | The end| is mark|
|00004550| 65 64 20 62 79 20 61 20 | 60 6c 69 6e 6b 27 20 74 |ed by a |`link' t|
|00004560| 68 61 74 20 68 61 73 20 | 62 65 65 6e 20 6e 75 6c |hat has |been nul|
|00004570| 6c 65 64 20 6f 75 74 2e | 0a 58 0a 58 20 20 20 50 |led out.|.X.X P|
|00004580| 72 69 6e 74 73 20 6f 75 | 74 20 6c 69 6e 65 73 20 |rints ou|t lines |
|00004590| 66 72 6f 6d 20 62 6f 74 | 68 20 66 69 6c 65 73 2c |from bot|h files,|
|000045a0| 20 61 6e 64 20 70 72 65 | 63 65 64 65 73 20 65 61 | and pre|cedes ea|
|000045b0| 63 68 0a 58 20 20 20 6c | 69 6e 65 20 77 69 74 68 |ch.X l|ine with|
|000045c0| 20 74 68 65 20 61 70 70 | 72 6f 70 72 69 61 74 65 | the app|ropriate|
|000045d0| 20 66 6c 61 67 2d 63 68 | 61 72 61 63 74 65 72 2e | flag-ch|aracter.|
|000045e0| 20 20 2a 2f 0a 58 0a 58 | 73 74 61 74 69 63 20 76 | */.X.X|static v|
|000045f0| 6f 69 64 0a 58 70 72 5f | 63 6f 6e 74 65 78 74 5f |oid.Xpr_|context_|
|00004600| 68 75 6e 6b 20 28 68 75 | 6e 6b 29 0a 58 20 20 20 |hunk (hu|nk).X |
|00004610| 20 20 73 74 72 75 63 74 | 20 63 68 61 6e 67 65 20 | struct| change |
|00004620| 2a 68 75 6e 6b 3b 0a 58 | 7b 0a 58 20 20 69 6e 74 |*hunk;.X|{.X int|
|00004630| 20 66 69 72 73 74 30 2c | 20 6c 61 73 74 30 2c 20 | first0,| last0, |
|00004640| 66 69 72 73 74 31 2c 20 | 6c 61 73 74 31 2c 20 73 |first1, |last1, s|
|00004650| 68 6f 77 5f 66 72 6f 6d | 2c 20 73 68 6f 77 5f 74 |how_from|, show_t|
|00004660| 6f 2c 20 69 3b 0a 58 20 | 20 73 74 72 75 63 74 20 |o, i;.X | struct |
|00004670| 63 68 61 6e 67 65 20 2a | 6e 65 78 74 3b 0a 58 20 |change *|next;.X |
|00004680| 20 63 68 61 72 20 2a 70 | 72 65 66 69 78 3b 0a 58 | char *p|refix;.X|
|00004690| 20 20 63 68 61 72 20 2a | 66 75 6e 63 74 69 6f 6e | char *|function|
|000046a0| 3b 0a 58 20 20 69 6e 74 | 20 66 75 6e 63 74 69 6f |;.X int| functio|
|000046b0| 6e 5f 6c 65 6e 67 74 68 | 3b 0a 58 0a 58 20 20 2f |n_length|;.X.X /|
|000046c0| 2a 20 44 65 74 65 72 6d | 69 6e 65 20 72 61 6e 67 |* Determ|ine rang|
|000046d0| 65 20 6f 66 20 6c 69 6e | 65 20 6e 75 6d 62 65 72 |e of lin|e number|
|000046e0| 73 20 69 6e 76 6f 6c 76 | 65 64 20 69 6e 20 65 61 |s involv|ed in ea|
|000046f0| 63 68 20 66 69 6c 65 2e | 20 20 2a 2f 0a 58 0a 58 |ch file.| */.X.X|
|00004700| 20 20 61 6e 61 6c 79 7a | 65 5f 68 75 6e 6b 20 28 | analyz|e_hunk (|
|00004710| 68 75 6e 6b 2c 20 26 66 | 69 72 73 74 30 2c 20 26 |hunk, &f|irst0, &|
|00004720| 6c 61 73 74 30 2c 20 26 | 66 69 72 73 74 31 2c 20 |last0, &|first1, |
|00004730| 26 6c 61 73 74 31 2c 20 | 26 73 68 6f 77 5f 66 72 |&last1, |&show_fr|
|00004740| 6f 6d 2c 20 26 73 68 6f | 77 5f 74 6f 29 3b 0a 58 |om, &sho|w_to);.X|
|00004750| 0a 58 20 20 69 66 20 28 | 21 73 68 6f 77 5f 66 72 |.X if (|!show_fr|
|00004760| 6f 6d 20 26 26 20 21 73 | 68 6f 77 5f 74 6f 29 0a |om && !s|how_to).|
|00004770| 58 20 20 20 20 72 65 74 | 75 72 6e 3b 0a 58 0a 58 |X ret|urn;.X.X|
|00004780| 20 20 2f 2a 20 49 6e 63 | 6c 75 64 65 20 61 20 63 | /* Inc|lude a c|
|00004790| 6f 6e 74 65 78 74 27 73 | 20 77 69 64 74 68 20 62 |ontext's| width b|
|000047a0| 65 66 6f 72 65 20 61 6e | 64 20 61 66 74 65 72 2e |efore an|d after.|
|000047b0| 20 20 2a 2f 0a 58 0a 58 | 20 20 66 69 72 73 74 30 | */.X.X| first0|
|000047c0| 20 3d 20 6d 61 78 20 28 | 66 69 72 73 74 30 20 2d | = max (|first0 -|
|000047d0| 20 63 6f 6e 74 65 78 74 | 2c 20 30 29 3b 0a 58 20 | context|, 0);.X |
|000047e0| 20 66 69 72 73 74 31 20 | 3d 20 6d 61 78 20 28 66 | first1 |= max (f|
|000047f0| 69 72 73 74 31 20 2d 20 | 63 6f 6e 74 65 78 74 2c |irst1 - |context,|
|00004800| 20 30 29 3b 0a 58 20 20 | 6c 61 73 74 30 20 3d 20 | 0);.X |last0 = |
|00004810| 6d 69 6e 20 28 6c 61 73 | 74 30 20 2b 20 63 6f 6e |min (las|t0 + con|
|00004820| 74 65 78 74 2c 20 66 69 | 6c 65 73 5b 30 5d 2e 62 |text, fi|les[0].b|
|00004830| 75 66 66 65 72 65 64 5f | 6c 69 6e 65 73 20 2d 20 |uffered_|lines - |
|00004840| 31 29 3b 0a 58 20 20 6c | 61 73 74 31 20 3d 20 6d |1);.X l|ast1 = m|
|00004850| 69 6e 20 28 6c 61 73 74 | 31 20 2b 20 63 6f 6e 74 |in (last|1 + cont|
|00004860| 65 78 74 2c 20 66 69 6c | 65 73 5b 31 5d 2e 62 75 |ext, fil|es[1].bu|
|00004870| 66 66 65 72 65 64 5f 6c | 69 6e 65 73 20 2d 20 31 |ffered_l|ines - 1|
|00004880| 29 3b 0a 58 0a 58 20 20 | 2f 2a 20 49 66 20 64 65 |);.X.X |/* If de|
|00004890| 73 69 72 65 64 2c 20 66 | 69 6e 64 20 74 68 65 20 |sired, f|ind the |
|000048a0| 70 72 65 63 65 64 69 6e | 67 20 66 75 6e 63 74 69 |precedin|g functi|
|000048b0| 6f 6e 20 64 65 66 69 6e | 69 74 69 6f 6e 20 6c 69 |on defin|ition li|
|000048c0| 6e 65 20 69 6e 20 66 69 | 6c 65 20 30 2e 20 20 2a |ne in fi|le 0. *|
|000048d0| 2f 0a 58 20 20 66 75 6e | 63 74 69 6f 6e 20 3d 20 |/.X fun|ction = |
|000048e0| 30 3b 0a 58 20 20 69 66 | 20 28 66 75 6e 63 74 69 |0;.X if| (functi|
|000048f0| 6f 6e 5f 72 65 67 65 78 | 70 29 0a 58 20 20 20 20 |on_regex|p).X |
|00004900| 66 69 6e 64 5f 66 75 6e | 63 74 69 6f 6e 20 28 26 |find_fun|ction (&|
|00004910| 66 69 6c 65 73 5b 30 5d | 2c 20 66 69 72 73 74 30 |files[0]|, first0|
|00004920| 2c 20 26 66 75 6e 63 74 | 69 6f 6e 2c 20 26 66 75 |, &funct|ion, &fu|
|00004930| 6e 63 74 69 6f 6e 5f 6c | 65 6e 67 74 68 29 3b 0a |nction_l|ength);.|
|00004940| 58 0a 58 20 20 2f 2a 20 | 49 66 20 77 65 20 6c 6f |X.X /* |If we lo|
|00004950| 6f 6b 65 64 20 66 6f 72 | 20 61 6e 64 20 66 6f 75 |oked for| and fou|
|00004960| 6e 64 20 61 20 66 75 6e | 63 74 69 6f 6e 20 74 68 |nd a fun|ction th|
|00004970| 69 73 20 69 73 20 70 61 | 72 74 20 6f 66 2c 0a 58 |is is pa|rt of,.X|
|00004980| 20 20 20 20 20 69 6e 63 | 6c 75 64 65 20 69 74 73 | inc|lude its|
|00004990| 20 6e 61 6d 65 20 69 6e | 20 74 68 65 20 68 65 61 | name in| the hea|
|000049a0| 64 65 72 20 6f 66 20 74 | 68 65 20 64 69 66 66 20 |der of t|he diff |
|000049b0| 73 65 63 74 69 6f 6e 2e | 20 20 2a 2f 0a 58 20 20 |section.| */.X |
|000049c0| 66 70 72 69 6e 74 66 20 | 28 6f 75 74 66 69 6c 65 |fprintf |(outfile|
|000049d0| 2c 20 22 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |, "*****|********|
|000049e0| 2a 2a 22 29 3b 0a 58 0a | 58 20 20 69 66 20 28 66 |**");.X.|X if (f|
|000049f0| 75 6e 63 74 69 6f 6e 29 | 0a 58 20 20 20 20 7b 0a |unction)|.X {.|
|00004a00| 58 20 20 20 20 20 20 66 | 70 72 69 6e 74 66 20 28 |X f|printf (|
|00004a10| 6f 75 74 66 69 6c 65 2c | 20 22 20 22 29 3b 0a 58 |outfile,| " ");.X|
|00004a20| 20 20 20 20 20 20 66 77 | 72 69 74 65 20 28 66 75 | fw|rite (fu|
|00004a30| 6e 63 74 69 6f 6e 2c 20 | 31 2c 20 6d 69 6e 20 28 |nction, |1, min (|
|00004a40| 66 75 6e 63 74 69 6f 6e | 5f 6c 65 6e 67 74 68 20 |function|_length |
|00004a50| 2d 20 31 2c 20 34 30 29 | 2c 20 6f 75 74 66 69 6c |- 1, 40)|, outfil|
|00004a60| 65 29 3b 0a 58 20 20 20 | 20 7d 0a 58 0a 58 20 20 |e);.X | }.X.X |
|00004a70| 66 70 72 69 6e 74 66 20 | 28 6f 75 74 66 69 6c 65 |fprintf |(outfile|
|00004a80| 2c 20 22 5c 6e 2a 2a 2a | 20 22 29 3b 0a 58 20 20 |, "\n***| ");.X |
|00004a90| 70 72 69 6e 74 5f 63 6f | 6e 74 65 78 74 5f 6e 75 |print_co|ntext_nu|
|00004aa0| 6d 62 65 72 5f 72 61 6e | 67 65 20 28 26 66 69 6c |mber_ran|ge (&fil|
|00004ab0| 65 73 5b 30 5d 2c 20 66 | 69 72 73 74 30 2c 20 6c |es[0], f|irst0, l|
|00004ac0| 61 73 74 30 29 3b 0a 58 | 20 20 66 70 72 69 6e 74 |ast0);.X| fprint|
|00004ad0| 66 20 28 6f 75 74 66 69 | 6c 65 2c 20 22 20 2a 2a |f (outfi|le, " **|
|00004ae0| 2a 2a 5c 6e 22 29 3b 0a | 58 0a 58 20 20 69 66 20 |**\n");.|X.X if |
|00004af0| 28 73 68 6f 77 5f 66 72 | 6f 6d 29 0a 58 20 20 20 |(show_fr|om).X |
|00004b00| 20 7b 0a 58 20 20 20 20 | 20 20 6e 65 78 74 20 3d | {.X | next =|
|00004b10| 20 68 75 6e 6b 3b 0a 58 | 0a 58 20 20 20 20 20 20 | hunk;.X|.X |
|00004b20| 66 6f 72 20 28 69 20 3d | 20 66 69 72 73 74 30 3b |for (i =| first0;|
|00004b30| 20 69 20 3c 3d 20 6c 61 | 73 74 30 3b 20 69 2b 2b | i <= la|st0; i++|
|00004b40| 29 0a 58 09 7b 0a 58 09 | 20 20 2f 2a 20 53 6b 69 |).X.{.X.| /* Ski|
|00004b50| 70 20 70 61 73 74 20 63 | 68 61 6e 67 65 73 20 74 |p past c|hanges t|
|00004b60| 68 61 74 20 61 70 70 6c | 79 20 28 69 6e 20 66 69 |hat appl|y (in fi|
|00004b70| 6c 65 20 30 29 0a 58 09 | 20 20 20 20 20 6f 6e 6c |le 0).X.| onl|
|00004b80| 79 20 74 6f 20 6c 69 6e | 65 73 20 62 65 66 6f 72 |y to lin|es befor|
|00004b90| 65 20 6c 69 6e 65 20 49 | 2e 20 20 2a 2f 0a 58 0a |e line I|. */.X.|
|00004ba0| 58 09 20 20 77 68 69 6c | 65 20 28 6e 65 78 74 20 |X. whil|e (next |
|00004bb0| 26 26 20 6e 65 78 74 2d | 3e 6c 69 6e 65 30 20 2b |&& next-|>line0 +|
|00004bc0| 20 6e 65 78 74 2d 3e 64 | 65 6c 65 74 65 64 20 3c | next->d|eleted <|
|00004bd0| 3d 20 69 29 0a 58 09 20 | 20 20 20 6e 65 78 74 20 |= i).X. | next |
|00004be0| 3d 20 6e 65 78 74 2d 3e | 6c 69 6e 6b 3b 0a 58 0a |= next->|link;.X.|
|00004bf0| 58 09 20 20 2f 2a 20 43 | 6f 6d 70 75 74 65 20 74 |X. /* C|ompute t|
|00004c00| 68 65 20 6d 61 72 6b 69 | 6e 67 20 66 6f 72 20 6c |he marki|ng for l|
|00004c10| 69 6e 65 20 49 2e 20 20 | 2a 2f 0a 58 0a 58 09 20 |ine I. |*/.X.X. |
|00004c20| 20 70 72 65 66 69 78 20 | 3d 20 22 20 22 3b 0a 58 | prefix |= " ";.X|
|00004c30| 09 20 20 69 66 20 28 6e | 65 78 74 20 26 26 20 6e |. if (n|ext && n|
|00004c40| 65 78 74 2d 3e 6c 69 6e | 65 30 20 3c 3d 20 69 29 |ext->lin|e0 <= i)|
|00004c50| 0a 58 09 20 20 20 20 2f | 2a 20 54 68 65 20 63 68 |.X. /|* The ch|
|00004c60| 61 6e 67 65 20 4e 45 58 | 54 20 63 6f 76 65 72 73 |ange NEX|T covers|
|00004c70| 20 74 68 69 73 20 6c 69 | 6e 65 2e 0a 58 09 20 20 | this li|ne..X. |
|00004c80| 20 20 20 20 20 49 66 20 | 6c 69 6e 65 73 20 77 65 | If |lines we|
|00004c90| 72 65 20 69 6e 73 65 72 | 74 65 64 20 68 65 72 65 |re inser|ted here|
|00004ca0| 20 69 6e 20 66 69 6c 65 | 20 31 2c 20 74 68 69 73 | in file| 1, this|
|00004cb0| 20 69 73 20 22 63 68 61 | 6e 67 65 64 22 2e 0a 58 | is "cha|nged"..X|
|00004cc0| 09 20 20 20 20 20 20 20 | 4f 74 68 65 72 77 69 73 |. |Otherwis|
|00004cd0| 65 20 69 74 20 69 73 20 | 22 64 65 6c 65 74 65 64 |e it is |"deleted|
|00004ce0| 22 2e 20 20 2a 2f 0a 58 | 09 20 20 20 20 70 72 65 |". */.X|. pre|
|00004cf0| 66 69 78 20 3d 20 28 6e | 65 78 74 2d 3e 69 6e 73 |fix = (n|ext->ins|
|00004d00| 65 72 74 65 64 20 3e 20 | 30 20 3f 20 22 21 22 20 |erted > |0 ? "!" |
|00004d10| 3a 20 22 2d 22 29 3b 0a | 58 0a 58 09 20 20 70 72 |: "-");.|X.X. pr|
|00004d20| 69 6e 74 5f 31 5f 6c 69 | 6e 65 20 28 70 72 65 66 |int_1_li|ne (pref|
|00004d30| 69 78 2c 20 26 66 69 6c | 65 73 5b 30 5d 2e 6c 69 |ix, &fil|es[0].li|
|00004d40| 6e 62 75 66 5b 69 5d 29 | 3b 0a 58 09 7d 0a 58 20 |nbuf[i])|;.X.}.X |
|00004d50| 20 20 20 7d 0a 58 0a 58 | 20 20 66 70 72 69 6e 74 | }.X.X| fprint|
|00004d60| 66 20 28 6f 75 74 66 69 | 6c 65 2c 20 22 2d 2d 2d |f (outfi|le, "---|
|00004d70| 20 22 29 3b 0a 58 20 20 | 70 72 69 6e 74 5f 63 6f | ");.X |print_co|
|00004d80| 6e 74 65 78 74 5f 6e 75 | 6d 62 65 72 5f 72 61 6e |ntext_nu|mber_ran|
|00004d90| 67 65 20 28 26 66 69 6c | 65 73 5b 31 5d 2c 20 66 |ge (&fil|es[1], f|
|00004da0| 69 72 73 74 31 2c 20 6c | 61 73 74 31 29 3b 0a 58 |irst1, l|ast1);.X|
|00004db0| 20 20 66 70 72 69 6e 74 | 66 20 28 6f 75 74 66 69 | fprint|f (outfi|
|00004dc0| 6c 65 2c 20 22 20 2d 2d | 2d 2d 5c 6e 22 29 3b 0a |le, " --|--\n");.|
|00004dd0| 58 0a 58 20 20 69 66 20 | 28 73 68 6f 77 5f 74 6f |X.X if |(show_to|
|00004de0| 29 0a 58 20 20 20 20 7b | 0a 58 20 20 20 20 20 20 |).X {|.X |
|00004df0| 6e 65 78 74 20 3d 20 68 | 75 6e 6b 3b 0a 58 0a 58 |next = h|unk;.X.X|
|00004e00| 20 20 20 20 20 20 66 6f | 72 20 28 69 20 3d 20 66 | fo|r (i = f|
|00004e10| 69 72 73 74 31 3b 20 69 | 20 3c 3d 20 6c 61 73 74 |irst1; i| <= last|
|00004e20| 31 3b 20 69 2b 2b 29 0a | 58 09 7b 0a 58 09 20 20 |1; i++).|X.{.X. |
|00004e30| 2f 2a 20 53 6b 69 70 20 | 70 61 73 74 20 63 68 61 |/* Skip |past cha|
|00004e40| 6e 67 65 73 20 74 68 61 | 74 20 61 70 70 6c 79 20 |nges tha|t apply |
|00004e50| 28 69 6e 20 66 69 6c 65 | 20 31 29 0a 58 09 20 20 |(in file| 1).X. |
|00004e60| 20 20 20 6f 6e 6c 79 20 | 74 6f 20 6c 69 6e 65 73 | only |to lines|
|00004e70| 20 62 65 66 6f 72 65 20 | 6c 69 6e 65 20 49 2e 20 | before |line I. |
|00004e80| 20 2a 2f 0a 58 0a 58 09 | 20 20 77 68 69 6c 65 20 | */.X.X.| while |
|00004e90| 28 6e 65 78 74 20 26 26 | 20 6e 65 78 74 2d 3e 6c |(next &&| next->l|
|00004ea0| 69 6e 65 31 20 2b 20 6e | 65 78 74 2d 3e 69 6e 73 |ine1 + n|ext->ins|
|00004eb0| 65 72 74 65 64 20 3c 3d | 20 69 29 0a 58 09 20 20 |erted <=| i).X. |
|00004ec0| 20 20 6e 65 78 74 20 3d | 20 6e 65 78 74 2d 3e 6c | next =| next->l|
|00004ed0| 69 6e 6b 3b 0a 58 0a 58 | 09 20 20 2f 2a 20 43 6f |ink;.X.X|. /* Co|
|00004ee0| 6d 70 75 74 65 20 74 68 | 65 20 6d 61 72 6b 69 6e |mpute th|e markin|
|00004ef0| 67 20 66 6f 72 20 6c 69 | 6e 65 20 49 2e 20 20 2a |g for li|ne I. *|
|00004f00| 2f 0a 58 0a 58 09 20 20 | 70 72 65 66 69 78 20 3d |/.X.X. |prefix =|
|00004f10| 20 22 20 22 3b 0a 58 09 | 20 20 69 66 20 28 6e 65 | " ";.X.| if (ne|
|00004f20| 78 74 20 26 26 20 6e 65 | 78 74 2d 3e 6c 69 6e 65 |xt && ne|xt->line|
|00004f30| 31 20 3c 3d 20 69 29 0a | 58 09 20 20 20 20 2f 2a |1 <= i).|X. /*|
|00004f40| 20 54 68 65 20 63 68 61 | 6e 67 65 20 4e 45 58 54 | The cha|nge NEXT|
|00004f50| 20 63 6f 76 65 72 73 20 | 74 68 69 73 20 6c 69 6e | covers |this lin|
|00004f60| 65 2e 0a 58 09 20 20 20 | 20 20 20 20 49 66 20 6c |e..X. | If l|
|00004f70| 69 6e 65 73 20 77 65 72 | 65 20 64 65 6c 65 74 65 |ines wer|e delete|
|00004f80| 64 20 68 65 72 65 20 69 | 6e 20 66 69 6c 65 20 30 |d here i|n file 0|
|00004f90| 2c 20 74 68 69 73 20 69 | 73 20 22 63 68 61 6e 67 |, this i|s "chang|
|00004fa0| 65 64 22 2e 0a 58 09 20 | 20 20 20 20 20 20 4f 74 |ed"..X. | Ot|
|00004fb0| 68 65 72 77 69 73 65 20 | 69 74 20 69 73 20 22 69 |herwise |it is "i|
|00004fc0| 6e 73 65 72 74 65 64 22 | 2e 20 20 2a 2f 0a 58 09 |nserted"|. */.X.|
|00004fd0| 20 20 20 20 70 72 65 66 | 69 78 20 3d 20 28 6e 65 | pref|ix = (ne|
|00004fe0| 78 74 2d 3e 64 65 6c 65 | 74 65 64 20 3e 20 30 20 |xt->dele|ted > 0 |
|00004ff0| 3f 20 22 21 22 20 3a 20 | 22 2b 22 29 3b 0a 58 0a |? "!" : |"+");.X.|
|00005000| 58 09 20 20 70 72 69 6e | 74 5f 31 5f 6c 69 6e 65 |X. prin|t_1_line|
|00005010| 20 28 70 72 65 66 69 78 | 2c 20 26 66 69 6c 65 73 | (prefix|, &files|
|00005020| 5b 31 5d 2e 6c 69 6e 62 | 75 66 5b 69 5d 29 3b 0a |[1].linb|uf[i]);.|
|00005030| 58 09 7d 0a 58 20 20 20 | 20 7d 0a 58 7d 0a 58 0c |X.}.X | }.X}.X.|
|00005040| 0a 58 2f 2a 20 50 72 69 | 6e 74 20 61 20 70 61 69 |.X/* Pri|nt a pai|
|00005050| 72 20 6f 66 20 6c 69 6e | 65 20 6e 75 6d 62 65 72 |r of lin|e number|
|00005060| 73 20 77 69 74 68 20 61 | 20 63 6f 6d 6d 61 2c 20 |s with a| comma, |
|00005070| 74 72 61 6e 73 6c 61 74 | 65 64 20 66 6f 72 20 66 |translat|ed for f|
|00005080| 69 6c 65 20 46 49 4c 45 | 2e 0a 58 20 20 20 49 66 |ile FILE|..X If|
|00005090| 20 74 68 65 20 73 65 63 | 6f 6e 64 20 6e 75 6d 62 | the sec|ond numb|
|000050a0| 65 72 20 69 73 20 73 6d | 61 6c 6c 65 72 2c 20 75 |er is sm|aller, u|
|000050b0| 73 65 20 74 68 65 20 66 | 69 72 73 74 20 69 6e 20 |se the f|irst in |
|000050c0| 70 6c 61 63 65 20 6f 66 | 20 69 74 2e 0a 58 20 20 |place of| it..X |
|000050d0| 20 49 66 20 74 68 65 20 | 6e 75 6d 62 65 72 73 20 | If the |numbers |
|000050e0| 61 72 65 20 65 71 75 61 | 6c 2c 20 70 72 69 6e 74 |are equa|l, print|
|000050f0| 20 6a 75 73 74 20 6f 6e | 65 20 6e 75 6d 62 65 72 | just on|e number|
|00005100| 2e 0a 58 0a 58 20 20 20 | 41 72 67 73 20 41 20 61 |..X.X |Args A a|
|00005110| 6e 64 20 42 20 61 72 65 | 20 69 6e 74 65 72 6e 61 |nd B are| interna|
|00005120| 6c 20 6c 69 6e 65 20 6e | 75 6d 62 65 72 73 2e 0a |l line n|umbers..|
|00005130| 58 20 20 20 57 65 20 70 | 72 69 6e 74 20 74 68 65 |X We p|rint the|
|00005140| 20 74 72 61 6e 73 6c 61 | 74 65 64 20 28 72 65 61 | transla|ted (rea|
|00005150| 6c 29 20 6c 69 6e 65 20 | 6e 75 6d 62 65 72 73 2e |l) line |numbers.|
|00005160| 20 20 2a 2f 0a 58 0a 58 | 73 74 61 74 69 63 20 76 | */.X.X|static v|
|00005170| 6f 69 64 0a 58 70 72 69 | 6e 74 5f 75 6e 69 64 69 |oid.Xpri|nt_unidi|
|00005180| 66 66 5f 6e 75 6d 62 65 | 72 5f 72 61 6e 67 65 20 |ff_numbe|r_range |
|00005190| 28 66 69 6c 65 2c 20 61 | 2c 20 62 29 0a 58 20 20 |(file, a|, b).X |
|000051a0| 20 20 20 73 74 72 75 63 | 74 20 66 69 6c 65 5f 64 | struc|t file_d|
|000051b0| 61 74 61 20 2a 66 69 6c | 65 3b 0a 58 20 20 20 20 |ata *fil|e;.X |
|000051c0| 20 69 6e 74 20 61 2c 20 | 62 3b 0a 58 7b 0a 58 20 | int a, |b;.X{.X |
|000051d0| 20 69 6e 74 20 74 72 61 | 6e 73 5f 61 2c 20 74 72 | int tra|ns_a, tr|
|000051e0| 61 6e 73 5f 62 3b 0a 58 | 20 20 74 72 61 6e 73 6c |ans_b;.X| transl|
|000051f0| 61 74 65 5f 72 61 6e 67 | 65 20 28 66 69 6c 65 2c |ate_rang|e (file,|
|00005200| 20 61 2c 20 62 2c 20 26 | 74 72 61 6e 73 5f 61 2c | a, b, &|trans_a,|
|00005210| 20 26 74 72 61 6e 73 5f | 62 29 3b 0a 58 0a 58 20 | &trans_|b);.X.X |
|00005220| 20 2f 2a 20 4e 6f 74 65 | 3a 20 77 65 20 63 61 6e | /* Note|: we can|
|00005230| 20 68 61 76 65 20 42 20 | 3c 20 41 20 69 6e 20 74 | have B |< A in t|
|00005240| 68 65 20 63 61 73 65 20 | 6f 66 20 61 20 72 61 6e |he case |of a ran|
|00005250| 67 65 20 6f 66 20 6e 6f | 20 6c 69 6e 65 73 2e 0a |ge of no| lines..|
|00005260| 58 20 20 20 20 20 49 6e | 20 74 68 69 73 20 63 61 |X In| this ca|
|00005270| 73 65 2c 20 77 65 20 73 | 68 6f 75 6c 64 20 70 72 |se, we s|hould pr|
|00005280| 69 6e 74 20 74 68 65 20 | 6c 69 6e 65 20 6e 75 6d |int the |line num|
|00005290| 62 65 72 20 62 65 66 6f | 72 65 20 74 68 65 20 72 |ber befo|re the r|
|000052a0| 61 6e 67 65 2c 0a 58 20 | 20 20 20 20 77 68 69 63 |ange,.X | whic|
|000052b0| 68 20 69 73 20 42 2e 20 | 20 2a 2f 0a 58 20 20 69 |h is B. | */.X i|
|000052c0| 66 20 28 74 72 61 6e 73 | 5f 62 20 3c 3d 20 74 72 |f (trans|_b <= tr|
|000052d0| 61 6e 73 5f 61 29 0a 58 | 20 20 20 20 66 70 72 69 |ans_a).X| fpri|
|000052e0| 6e 74 66 20 28 6f 75 74 | 66 69 6c 65 2c 20 74 72 |ntf (out|file, tr|
|000052f0| 61 6e 73 5f 62 20 3d 3d | 20 74 72 61 6e 73 5f 61 |ans_b ==| trans_a|
|00005300| 20 3f 20 22 25 64 22 20 | 3a 20 22 25 64 2c 30 22 | ? "%d" |: "%d,0"|
|00005310| 2c 20 74 72 61 6e 73 5f | 62 29 3b 0a 58 20 20 65 |, trans_|b);.X e|
|00005320| 6c 73 65 0a 58 20 20 20 | 20 66 70 72 69 6e 74 66 |lse.X | fprintf|
|00005330| 20 28 6f 75 74 66 69 6c | 65 2c 20 22 25 64 2c 25 | (outfil|e, "%d,%|
|00005340| 64 22 2c 20 74 72 61 6e | 73 5f 61 2c 20 74 72 61 |d", tran|s_a, tra|
|00005350| 6e 73 5f 62 20 2d 20 74 | 72 61 6e 73 5f 61 20 2b |ns_b - t|rans_a +|
|00005360| 20 31 29 3b 0a 58 7d 0a | 58 0c 0a 58 2f 2a 20 50 | 1);.X}.|X..X/* P|
|00005370| 72 69 6e 74 20 61 20 70 | 6f 72 74 69 6f 6e 20 6f |rint a p|ortion o|
|00005380| 66 20 61 6e 20 65 64 69 | 74 20 73 63 72 69 70 74 |f an edi|t script|
|00005390| 20 69 6e 20 75 6e 69 64 | 69 66 66 20 66 6f 72 6d | in unid|iff form|
|000053a0| 61 74 2e 0a 58 20 20 20 | 48 55 4e 4b 20 69 73 20 |at..X |HUNK is |
|000053b0| 74 68 65 20 62 65 67 69 | 6e 6e 69 6e 67 20 6f 66 |the begi|nning of|
|000053c0| 20 74 68 65 20 70 6f 72 | 74 69 6f 6e 20 74 6f 20 | the por|tion to |
|000053d0| 62 65 20 70 72 69 6e 74 | 65 64 2e 0a 58 20 20 20 |be print|ed..X |
|000053e0| 54 68 65 20 65 6e 64 20 | 69 73 20 6d 61 72 6b 65 |The end |is marke|
|000053f0| 64 20 62 79 20 61 20 60 | 6c 69 6e 6b 27 20 74 68 |d by a `|link' th|
|00005400| 61 74 20 68 61 73 20 62 | 65 65 6e 20 6e 75 6c 6c |at has b|een null|
|00005410| 65 64 20 6f 75 74 2e 0a | 58 0a 58 20 20 20 50 72 |ed out..|X.X Pr|
|00005420| 69 6e 74 73 20 6f 75 74 | 20 6c 69 6e 65 73 20 66 |ints out| lines f|
|00005430| 72 6f 6d 20 62 6f 74 68 | 20 66 69 6c 65 73 2c 20 |rom both| files, |
|00005440| 61 6e 64 20 70 72 65 63 | 65 64 65 73 20 65 61 63 |and prec|edes eac|
|00005450| 68 0a 58 20 20 20 6c 69 | 6e 65 20 77 69 74 68 20 |h.X li|ne with |
|00005460| 74 68 65 20 61 70 70 72 | 6f 70 72 69 61 74 65 20 |the appr|opriate |
|00005470| 66 6c 61 67 2d 63 68 61 | 72 61 63 74 65 72 2e 20 |flag-cha|racter. |
|00005480| 20 2a 2f 0a 58 0a 58 73 | 74 61 74 69 63 20 76 6f | */.X.Xs|tatic vo|
|00005490| 69 64 0a 58 70 72 5f 75 | 6e 69 64 69 66 66 5f 68 |id.Xpr_u|nidiff_h|
|000054a0| 75 6e 6b 20 28 68 75 6e | 6b 29 0a 58 20 20 20 20 |unk (hun|k).X |
|000054b0| 20 73 74 72 75 63 74 20 | 63 68 61 6e 67 65 20 2a | struct |change *|
|000054c0| 68 75 6e 6b 3b 0a 58 7b | 0a 58 20 20 69 6e 74 20 |hunk;.X{|.X int |
|000054d0| 66 69 72 73 74 30 2c 20 | 6c 61 73 74 30 2c 20 66 |first0, |last0, f|
|000054e0| 69 72 73 74 31 2c 20 6c | 61 73 74 31 2c 20 73 68 |irst1, l|ast1, sh|
|000054f0| 6f 77 5f 66 72 6f 6d 2c | 20 73 68 6f 77 5f 74 6f |ow_from,| show_to|
|00005500| 2c 20 69 2c 20 6a 2c 20 | 6b 3b 0a 58 20 20 73 74 |, i, j, |k;.X st|
|00005510| 72 75 63 74 20 63 68 61 | 6e 67 65 20 2a 6e 65 78 |ruct cha|nge *nex|
|00005520| 74 3b 0a 58 20 20 69 6e | 74 20 6c 61 73 74 6c 69 |t;.X in|t lastli|
|00005530| 6e 65 3b 0a 58 20 20 63 | 68 61 72 20 2a 66 75 6e |ne;.X c|har *fun|
|00005540| 63 74 69 6f 6e 3b 0a 58 | 20 20 69 6e 74 20 66 75 |ction;.X| int fu|
|00005550| 6e 63 74 69 6f 6e 5f 6c | 65 6e 67 74 68 3b 0a 58 |nction_l|ength;.X|
|00005560| 0a 58 20 20 2f 2a 20 44 | 65 74 65 72 6d 69 6e 65 |.X /* D|etermine|
|00005570| 20 72 61 6e 67 65 20 6f | 66 20 6c 69 6e 65 20 6e | range o|f line n|
|00005580| 75 6d 62 65 72 73 20 69 | 6e 76 6f 6c 76 65 64 20 |umbers i|nvolved |
|00005590| 69 6e 20 65 61 63 68 20 | 66 69 6c 65 2e 20 20 2a |in each |file. *|
|000055a0| 2f 0a 58 0a 58 20 20 61 | 6e 61 6c 79 7a 65 5f 68 |/.X.X a|nalyze_h|
|000055b0| 75 6e 6b 20 28 68 75 6e | 6b 2c 20 26 66 69 72 73 |unk (hun|k, &firs|
|000055c0| 74 30 2c 20 26 6c 61 73 | 74 30 2c 20 26 66 69 72 |t0, &las|t0, &fir|
|000055d0| 73 74 31 2c 20 26 6c 61 | 73 74 31 2c 20 26 73 68 |st1, &la|st1, &sh|
|000055e0| 6f 77 5f 66 72 6f 6d 2c | 20 26 73 68 6f 77 5f 74 |ow_from,| &show_t|
|000055f0| 6f 29 3b 0a 58 0a 58 20 | 20 69 66 20 28 21 73 68 |o);.X.X | if (!sh|
|00005600| 6f 77 5f 66 72 6f 6d 20 | 26 26 20 21 73 68 6f 77 |ow_from |&& !show|
|00005610| 5f 74 6f 29 0a 58 20 20 | 20 20 72 65 74 75 72 6e |_to).X | return|
|00005620| 3b 0a 58 0a 58 20 20 2f | 2a 20 49 6e 63 6c 75 64 |;.X.X /|* Includ|
|00005630| 65 20 61 20 63 6f 6e 74 | 65 78 74 27 73 20 77 69 |e a cont|ext's wi|
|00005640| 64 74 68 20 62 65 66 6f | 72 65 20 61 6e 64 20 61 |dth befo|re and a|
|00005650| 66 74 65 72 2e 20 20 2a | 2f 0a 58 0a 58 20 20 66 |fter. *|/.X.X f|
|00005660| 69 72 73 74 30 20 3d 20 | 6d 61 78 20 28 66 69 72 |irst0 = |max (fir|
|00005670| 73 74 30 20 2d 20 63 6f | 6e 74 65 78 74 2c 20 30 |st0 - co|ntext, 0|
|00005680| 29 3b 0a 58 20 20 66 69 | 72 73 74 31 20 3d 20 6d |);.X fi|rst1 = m|
|00005690| 61 78 20 28 66 69 72 73 | 74 31 20 2d 20 63 6f 6e |ax (firs|t1 - con|
|000056a0| 74 65 78 74 2c 20 30 29 | 3b 0a 58 20 20 6c 61 73 |text, 0)|;.X las|
|000056b0| 74 30 20 3d 20 6d 69 6e | 20 28 6c 61 73 74 30 20 |t0 = min| (last0 |
|000056c0| 2b 20 63 6f 6e 74 65 78 | 74 2c 20 66 69 6c 65 73 |+ contex|t, files|
|000056d0| 5b 30 5d 2e 62 75 66 66 | 65 72 65 64 5f 6c 69 6e |[0].buff|ered_lin|
|000056e0| 65 73 20 2d 20 31 29 3b | 0a 58 20 20 6c 61 73 74 |es - 1);|.X last|
|000056f0| 31 20 3d 20 6d 69 6e 20 | 28 6c 61 73 74 31 20 2b |1 = min |(last1 +|
|00005700| 20 63 6f 6e 74 65 78 74 | 2c 20 66 69 6c 65 73 5b | context|, files[|
|00005710| 31 5d 2e 62 75 66 66 65 | 72 65 64 5f 6c 69 6e 65 |1].buffe|red_line|
|00005720| 73 20 2d 20 31 29 3b 0a | 58 0a 58 20 20 2f 2a 20 |s - 1);.|X.X /* |
|00005730| 49 66 20 64 65 73 69 72 | 65 64 2c 20 66 69 6e 64 |If desir|ed, find|
|00005740| 20 74 68 65 20 70 72 65 | 63 65 64 69 6e 67 20 66 | the pre|ceding f|
|00005750| 75 6e 63 74 69 6f 6e 20 | 64 65 66 69 6e 69 74 69 |unction |definiti|
|00005760| 6f 6e 20 6c 69 6e 65 20 | 69 6e 20 66 69 6c 65 20 |on line |in file |
|00005770| 30 2e 20 20 2a 2f 0a 58 | 20 20 66 75 6e 63 74 69 |0. */.X| functi|
|00005780| 6f 6e 20 3d 20 30 3b 0a | 58 20 20 69 66 20 28 66 |on = 0;.|X if (f|
|00005790| 75 6e 63 74 69 6f 6e 5f | 72 65 67 65 78 70 29 0a |unction_|regexp).|
|000057a0| 58 20 20 20 20 66 69 6e | 64 5f 66 75 6e 63 74 69 |X fin|d_functi|
|000057b0| 6f 6e 20 28 26 66 69 6c | 65 73 5b 30 5d 2c 20 66 |on (&fil|es[0], f|
|000057c0| 69 72 73 74 30 2c 20 26 | 66 75 6e 63 74 69 6f 6e |irst0, &|function|
|000057d0| 2c 20 26 66 75 6e 63 74 | 69 6f 6e 5f 6c 65 6e 67 |, &funct|ion_leng|
|000057e0| 74 68 29 3b 0a 58 0a 58 | 20 20 2f 2a 20 49 66 20 |th);.X.X| /* If |
|000057f0| 77 65 20 6c 6f 6f 6b 65 | 64 20 66 6f 72 20 61 6e |we looke|d for an|
|00005800| 64 20 66 6f 75 6e 64 20 | 61 20 66 75 6e 63 74 69 |d found |a functi|
|00005810| 6f 6e 20 74 68 69 73 20 | 69 73 20 70 61 72 74 20 |on this |is part |
|00005820| 6f 66 2c 0a 58 20 20 20 | 20 20 69 6e 63 6c 75 64 |of,.X | includ|
|00005830| 65 20 69 74 73 20 6e 61 | 6d 65 20 69 6e 20 74 68 |e its na|me in th|
|00005840| 65 20 68 65 61 64 65 72 | 20 6f 66 20 74 68 65 20 |e header| of the |
|00005850| 64 69 66 66 20 73 65 63 | 74 69 6f 6e 2e 20 20 2a |diff sec|tion. *|
|00005860| 2f 0a 58 0a 58 20 20 66 | 70 72 69 6e 74 66 20 28 |/.X.X f|printf (|
|00005870| 6f 75 74 66 69 6c 65 2c | 20 22 40 40 20 2d 22 29 |outfile,| "@@ -")|
|00005880| 3b 0a 58 20 20 70 72 69 | 6e 74 5f 75 6e 69 64 69 |;.X pri|nt_unidi|
|00005890| 66 66 5f 6e 75 6d 62 65 | 72 5f 72 61 6e 67 65 20 |ff_numbe|r_range |
|000058a0| 28 26 66 69 6c 65 73 5b | 30 5d 2c 20 66 69 72 73 |(&files[|0], firs|
|000058b0| 74 30 2c 20 6c 61 73 74 | 30 29 3b 0a 58 20 20 66 |t0, last|0);.X f|
|000058c0| 70 72 69 6e 74 66 20 28 | 6f 75 74 66 69 6c 65 2c |printf (|outfile,|
|000058d0| 20 22 20 2b 22 29 3b 0a | 58 20 20 70 72 69 6e 74 | " +");.|X print|
|000058e0| 5f 75 6e 69 64 69 66 66 | 5f 6e 75 6d 62 65 72 5f |_unidiff|_number_|
|000058f0| 72 61 6e 67 65 20 28 26 | 66 69 6c 65 73 5b 31 5d |range (&|files[1]|
|00005900| 2c 20 66 69 72 73 74 31 | 2c 20 6c 61 73 74 31 29 |, first1|, last1)|
|00005910| 3b 0a 58 20 20 66 70 72 | 69 6e 74 66 20 28 6f 75 |;.X fpr|intf (ou|
|00005920| 74 66 69 6c 65 2c 20 22 | 20 40 40 22 29 3b 0a 58 |tfile, "| @@");.X|
|00005930| 0a 58 20 20 69 66 20 28 | 66 75 6e 63 74 69 6f 6e |.X if (|function|
|00005940| 29 0a 58 20 20 20 20 7b | 0a 58 20 20 20 20 20 20 |).X {|.X |
|00005950| 70 75 74 63 20 28 27 20 | 27 2c 20 6f 75 74 66 69 |putc (' |', outfi|
|00005960| 6c 65 29 3b 0a 58 20 20 | 20 20 20 20 66 77 72 69 |le);.X | fwri|
|00005970| 74 65 20 28 66 75 6e 63 | 74 69 6f 6e 2c 20 31 2c |te (func|tion, 1,|
|00005980| 20 6d 69 6e 20 28 66 75 | 6e 63 74 69 6f 6e 5f 6c | min (fu|nction_l|
|00005990| 65 6e 67 74 68 20 2d 20 | 31 2c 20 34 30 29 2c 20 |ength - |1, 40), |
|000059a0| 6f 75 74 66 69 6c 65 29 | 3b 0a 58 20 20 20 20 7d |outfile)|;.X }|
|000059b0| 0a 58 20 20 70 75 74 63 | 20 28 27 5c 6e 27 2c 20 |.X putc| ('\n', |
|000059c0| 6f 75 74 66 69 6c 65 29 | 3b 0a 58 0a 58 20 20 6e |outfile)|;.X.X n|
|000059d0| 65 78 74 20 3d 20 68 75 | 6e 6b 3b 0a 58 20 20 69 |ext = hu|nk;.X i|
|000059e0| 20 3d 20 66 69 72 73 74 | 30 3b 0a 58 20 20 6a 20 | = first|0;.X j |
|000059f0| 3d 20 66 69 72 73 74 31 | 3b 0a 58 0a 58 20 20 77 |= first1|;.X.X w|
|00005a00| 68 69 6c 65 20 28 69 20 | 3c 3d 20 6c 61 73 74 30 |hile (i |<= last0|
|00005a10| 20 7c 7c 20 6a 20 3c 3d | 20 6c 61 73 74 31 29 0a | || j <=| last1).|
|00005a20| 58 20 20 20 20 7b 0a 58 | 0a 58 20 20 20 20 20 20 |X {.X|.X |
|00005a30| 2f 2a 20 49 66 20 74 68 | 65 20 6c 69 6e 65 20 69 |/* If th|e line i|
|00005a40| 73 6e 27 74 20 61 20 64 | 69 66 66 65 72 65 6e 63 |sn't a d|ifferenc|
|00005a50| 65 2c 20 6f 75 74 70 75 | 74 20 74 68 65 20 63 6f |e, outpu|t the co|
|00005a60| 6e 74 65 78 74 20 66 72 | 6f 6d 20 66 69 6c 65 20 |ntext fr|om file |
|00005a70| 30 2e 20 2a 2f 0a 58 0a | 58 20 20 20 20 20 20 69 |0. */.X.|X i|
|00005a80| 66 20 28 21 6e 65 78 74 | 20 7c 7c 20 69 20 3c 20 |f (!next| || i < |
|00005a90| 6e 65 78 74 2d 3e 6c 69 | 6e 65 30 29 0a 58 09 7b |next->li|ne0).X.{|
|00005aa0| 0a 58 09 20 20 70 75 74 | 63 20 28 27 20 27 2c 20 |.X. put|c (' ', |
|00005ab0| 6f 75 74 66 69 6c 65 29 | 3b 0a 58 09 20 20 70 72 |outfile)|;.X. pr|
|00005ac0| 69 6e 74 5f 31 5f 6c 69 | 6e 65 20 28 28 63 68 61 |int_1_li|ne ((cha|
|00005ad0| 72 20 2a 29 30 2c 20 26 | 66 69 6c 65 73 5b 30 5d |r *)0, &|files[0]|
|00005ae0| 2e 6c 69 6e 62 75 66 5b | 69 2b 2b 5d 29 3b 0a 58 |.linbuf[|i++]);.X|
|00005af0| 09 20 20 6a 2b 2b 3b 0a | 58 09 7d 0a 58 20 20 20 |. j++;.|X.}.X |
|00005b00| 20 20 20 65 6c 73 65 0a | 58 09 7b 0a 58 09 20 20 | else.|X.{.X. |
|00005b10| 2f 2a 20 46 6f 72 20 65 | 61 63 68 20 64 69 66 66 |/* For e|ach diff|
|00005b20| 65 72 65 6e 63 65 2c 20 | 66 69 72 73 74 20 6f 75 |erence, |first ou|
|00005b30| 74 70 75 74 20 74 68 65 | 20 64 65 6c 65 74 65 64 |tput the| deleted|
|00005b40| 20 70 61 72 74 2e 20 2a | 2f 0a 58 0a 58 09 20 20 | part. *|/.X.X. |
|00005b50| 6b 20 3d 20 6e 65 78 74 | 2d 3e 64 65 6c 65 74 65 |k = next|->delete|
|00005b60| 64 3b 0a 58 09 20 20 77 | 68 69 6c 65 20 28 6b 2d |d;.X. w|hile (k-|
|00005b70| 2d 29 0a 58 09 20 20 20 | 20 7b 0a 58 09 20 20 20 |-).X. | {.X. |
|00005b80| 20 20 20 70 75 74 63 20 | 28 27 2d 27 2c 20 6f 75 | putc |('-', ou|
|00005b90| 74 66 69 6c 65 29 3b 0a | 58 09 20 20 20 20 20 20 |tfile);.|X. |
|00005ba0| 70 72 69 6e 74 5f 31 5f | 6c 69 6e 65 20 28 28 63 |print_1_|line ((c|
|00005bb0| 68 61 72 20 2a 29 30 2c | 20 26 66 69 6c 65 73 5b |har *)0,| &files[|
|00005bc0| 30 5d 2e 6c 69 6e 62 75 | 66 5b 69 2b 2b 5d 29 3b |0].linbu|f[i++]);|
|00005bd0| 0a 58 09 20 20 20 20 7d | 0a 58 0a 58 09 20 20 2f |.X. }|.X.X. /|
|00005be0| 2a 20 54 68 65 6e 20 6f | 75 74 70 75 74 20 74 68 |* Then o|utput th|
|00005bf0| 65 20 69 6e 73 65 72 74 | 65 64 20 70 61 72 74 2e |e insert|ed part.|
|00005c00| 20 2a 2f 0a 58 0a 58 09 | 20 20 6b 20 3d 20 6e 65 | */.X.X.| k = ne|
|00005c10| 78 74 2d 3e 69 6e 73 65 | 72 74 65 64 3b 0a 58 09 |xt->inse|rted;.X.|
|00005c20| 20 20 77 68 69 6c 65 20 | 28 6b 2d 2d 29 0a 58 09 | while |(k--).X.|
|00005c30| 20 20 20 20 7b 0a 58 09 | 20 20 20 20 20 20 70 75 | {.X.| pu|
|00005c40| 74 63 20 28 27 2b 27 2c | 20 6f 75 74 66 69 6c 65 |tc ('+',| outfile|
|00005c50| 29 3b 0a 58 09 20 20 20 | 20 20 20 70 72 69 6e 74 |);.X. | print|
|00005c60| 5f 31 5f 6c 69 6e 65 20 | 28 28 63 68 61 72 20 2a |_1_line |((char *|
|00005c70| 29 30 2c 20 26 66 69 6c | 65 73 5b 31 5d 2e 6c 69 |)0, &fil|es[1].li|
|00005c80| 6e 62 75 66 5b 6a 2b 2b | 5d 29 3b 0a 58 09 20 20 |nbuf[j++|]);.X. |
|00005c90| 20 20 7d 0a 58 0a 58 09 | 20 20 2f 2a 20 57 65 27 | }.X.X.| /* We'|
|00005ca0| 72 65 20 64 6f 6e 65 20 | 77 69 74 68 20 74 68 69 |re done |with thi|
|00005cb0| 73 20 68 75 6e 6b 2c 20 | 73 6f 20 6f 6e 20 74 6f |s hunk, |so on to|
|00005cc0| 20 74 68 65 20 6e 65 78 | 74 21 20 2a 2f 0a 58 0a | the nex|t! */.X.|
|00005cd0| 58 09 20 20 6e 65 78 74 | 20 3d 20 6e 65 78 74 2d |X. next| = next-|
|00005ce0| 3e 6c 69 6e 6b 3b 0a 58 | 09 7d 0a 58 20 20 20 20 |>link;.X|.}.X |
|00005cf0| 7d 0a 58 7d 0a 58 0c 0a | 58 2f 2a 20 53 63 61 6e |}.X}.X..|X/* Scan|
|00005d00| 20 61 20 28 66 6f 72 77 | 61 72 64 2d 6f 72 64 65 | a (forw|ard-orde|
|00005d10| 72 65 64 29 20 65 64 69 | 74 20 73 63 72 69 70 74 |red) edi|t script|
|00005d20| 20 66 6f 72 20 74 68 65 | 20 66 69 72 73 74 20 70 | for the| first p|
|00005d30| 6c 61 63 65 20 74 68 61 | 74 20 61 74 20 6c 65 61 |lace tha|t at lea|
|00005d40| 73 74 0a 58 20 20 20 32 | 2a 43 4f 4e 54 45 58 54 |st.X 2|*CONTEXT|
|00005d50| 20 75 6e 63 68 61 6e 67 | 65 64 20 6c 69 6e 65 73 | unchang|ed lines|
|00005d60| 20 61 70 70 65 61 72 2c | 20 61 6e 64 20 72 65 74 | appear,| and ret|
|00005d70| 75 72 6e 20 61 20 70 6f | 69 6e 74 65 72 0a 58 20 |urn a po|inter.X |
|00005d80| 20 20 74 6f 20 74 68 65 | 20 60 73 74 72 75 63 74 | to the| `struct|
|00005d90| 20 63 68 61 6e 67 65 27 | 20 66 6f 72 20 74 68 65 | change'| for the|
|00005da0| 20 6c 61 73 74 20 63 68 | 61 6e 67 65 20 62 65 66 | last ch|ange bef|
|00005db0| 6f 72 65 20 74 68 6f 73 | 65 20 6c 69 6e 65 73 2e |ore thos|e lines.|
|00005dc0| 20 20 2a 2f 0a 58 0a 58 | 73 74 61 74 69 63 20 73 | */.X.X|static s|
|00005dd0| 74 72 75 63 74 20 63 68 | 61 6e 67 65 20 2a 0a 58 |truct ch|ange *.X|
|00005de0| 66 69 6e 64 5f 68 75 6e | 6b 20 28 73 74 61 72 74 |find_hun|k (start|
|00005df0| 29 0a 58 20 20 20 20 20 | 73 74 72 75 63 74 20 63 |).X |struct c|
|00005e00| 68 61 6e 67 65 20 2a 73 | 74 61 72 74 3b 0a 58 7b |hange *s|tart;.X{|
|00005e10| 0a 58 20 20 73 74 72 75 | 63 74 20 63 68 61 6e 67 |.X stru|ct chang|
|00005e20| 65 20 2a 70 72 65 76 3b | 0a 58 20 20 69 6e 74 20 |e *prev;|.X int |
|00005e30| 74 6f 70 30 2c 20 74 6f | 70 31 3b 0a 58 20 20 69 |top0, to|p1;.X i|
|00005e40| 6e 74 20 74 68 72 65 73 | 68 3b 0a 58 0a 58 20 20 |nt thres|h;.X.X |
|00005e50| 64 6f 0a 58 20 20 20 20 | 7b 0a 58 20 20 20 20 20 |do.X |{.X |
|00005e60| 20 2f 2a 20 43 6f 6d 70 | 75 74 65 72 20 6e 75 6d | /* Comp|uter num|
|00005e70| 62 65 72 20 6f 66 20 66 | 69 72 73 74 20 6c 69 6e |ber of f|irst lin|
|00005e80| 65 20 69 6e 20 65 61 63 | 68 20 66 69 6c 65 20 62 |e in eac|h file b|
|00005e90| 65 79 6f 6e 64 20 74 68 | 69 73 20 63 68 61 6e 67 |eyond th|is chang|
|00005ea0| 65 64 2e 20 20 2a 2f 0a | 58 20 20 20 20 20 20 74 |ed. */.|X t|
|00005eb0| 6f 70 30 20 3d 20 73 74 | 61 72 74 2d 3e 6c 69 6e |op0 = st|art->lin|
|00005ec0| 65 30 20 2b 20 73 74 61 | 72 74 2d 3e 64 65 6c 65 |e0 + sta|rt->dele|
|00005ed0| 74 65 64 3b 0a 58 20 20 | 20 20 20 20 74 6f 70 31 |ted;.X | top1|
|00005ee0| 20 3d 20 73 74 61 72 74 | 2d 3e 6c 69 6e 65 31 20 | = start|->line1 |
|00005ef0| 2b 20 73 74 61 72 74 2d | 3e 69 6e 73 65 72 74 65 |+ start-|>inserte|
|00005f00| 64 3b 0a 58 20 20 20 20 | 20 20 70 72 65 76 20 3d |d;.X | prev =|
|00005f10| 20 73 74 61 72 74 3b 0a | 58 20 20 20 20 20 20 73 | start;.|X s|
|00005f20| 74 61 72 74 20 3d 20 73 | 74 61 72 74 2d 3e 6c 69 |tart = s|tart->li|
|00005f30| 6e 6b 3b 0a 58 20 20 20 | 20 20 20 2f 2a 20 54 68 |nk;.X | /* Th|
|00005f40| 72 65 73 68 6f 6c 64 20 | 64 69 73 74 61 6e 63 65 |reshold |distance|
|00005f50| 20 69 73 20 32 2a 43 4f | 4e 54 45 58 54 20 62 65 | is 2*CO|NTEXT be|
|00005f60| 74 77 65 65 6e 20 74 77 | 6f 20 6e 6f 6e 2d 69 67 |tween tw|o non-ig|
|00005f70| 6e 6f 72 61 62 6c 65 20 | 63 68 61 6e 67 65 73 2c |norable |changes,|
|00005f80| 0a 58 09 20 62 75 74 20 | 6f 6e 6c 79 20 43 4f 4e |.X. but |only CON|
|00005f90| 54 45 58 54 20 69 66 20 | 6f 6e 65 20 69 73 20 69 |TEXT if |one is i|
|00005fa0| 67 6e 6f 72 61 62 6c 65 | 2e 20 20 2a 2f 0a 58 20 |gnorable|. */.X |
|00005fb0| 20 20 20 20 20 74 68 72 | 65 73 68 20 3d 20 28 28 | thr|esh = ((|
|00005fc0| 70 72 65 76 2d 3e 69 67 | 6e 6f 72 65 20 7c 7c 20 |prev->ig|nore || |
|00005fd0| 28 73 74 61 72 74 20 26 | 26 20 73 74 61 72 74 2d |(start &|& start-|
|00005fe0| 3e 69 67 6e 6f 72 65 29 | 29 0a 58 09 09 3f 20 63 |>ignore)|).X..? c|
|00005ff0| 6f 6e 74 65 78 74 0a 58 | 09 09 3a 20 32 20 2a 20 |ontext.X|..: 2 * |
|00006000| 63 6f 6e 74 65 78 74 29 | 3b 0a 58 20 20 20 20 20 |context)|;.X |
|00006010| 20 2f 2a 20 49 74 20 69 | 73 20 6e 6f 74 20 73 75 | /* It i|s not su|
|00006020| 70 70 6f 73 65 64 20 74 | 6f 20 6d 61 74 74 65 72 |pposed t|o matter|
|00006030| 20 77 68 69 63 68 20 66 | 69 6c 65 20 77 65 20 63 | which f|ile we c|
|00006040| 68 65 63 6b 20 69 6e 20 | 74 68 65 20 65 6e 64 2d |heck in |the end-|
|00006050| 74 65 73 74 2e 0a 58 09 | 20 49 66 20 69 74 20 77 |test..X.| If it w|
|00006060| 6f 75 6c 64 20 6d 61 74 | 74 65 72 2c 20 63 72 61 |ould mat|ter, cra|
|00006070| 73 68 2e 20 20 2a 2f 0a | 58 20 20 20 20 20 20 69 |sh. */.|X i|
|00006080| 66 20 28 73 74 61 72 74 | 20 26 26 20 73 74 61 72 |f (start| && star|
|00006090| 74 2d 3e 6c 69 6e 65 30 | 20 2d 20 74 6f 70 30 20 |t->line0| - top0 |
|000060a0| 21 3d 20 73 74 61 72 74 | 2d 3e 6c 69 6e 65 31 20 |!= start|->line1 |
|000060b0| 2d 20 74 6f 70 31 29 0a | 58 09 61 62 6f 72 74 20 |- top1).|X.abort |
|000060c0| 28 29 3b 0a 58 20 20 20 | 20 7d 20 77 68 69 6c 65 |();.X | } while|
|000060d0| 20 28 73 74 61 72 74 0a | 58 09 20 20 20 20 20 2f | (start.|X. /|
|000060e0| 2a 20 4b 65 65 70 20 67 | 6f 69 6e 67 20 69 66 20 |* Keep g|oing if |
|000060f0| 6c 65 73 73 20 74 68 61 | 6e 20 54 48 52 45 53 48 |less tha|n THRESH|
|00006100| 20 6c 69 6e 65 73 0a 58 | 09 09 65 6c 61 70 73 65 | lines.X|..elapse|
|00006110| 20 62 65 66 6f 72 65 20 | 74 68 65 20 61 66 66 65 | before |the affe|
|00006120| 63 74 65 64 20 6c 69 6e | 65 2e 20 20 2a 2f 0a 58 |cted lin|e. */.X|
|00006130| 09 20 20 20 20 20 26 26 | 20 73 74 61 72 74 2d 3e |. &&| start->|
|00006140| 6c 69 6e 65 30 20 3c 20 | 74 6f 70 30 20 2b 20 74 |line0 < |top0 + t|
|00006150| 68 72 65 73 68 29 3b 0a | 58 0a 58 20 20 72 65 74 |hresh);.|X.X ret|
|00006160| 75 72 6e 20 70 72 65 76 | 3b 0a 58 7d 0a 58 0a 58 |urn prev|;.X}.X.X|
|00006170| 2f 2a 20 53 65 74 20 74 | 68 65 20 60 69 67 6e 6f |/* Set t|he `igno|
|00006180| 72 65 27 20 66 6c 61 67 | 20 70 72 6f 70 65 72 6c |re' flag| properl|
|00006190| 79 20 69 6e 20 65 61 63 | 68 20 63 68 61 6e 67 65 |y in eac|h change|
|000061a0| 20 69 6e 20 53 43 52 49 | 50 54 2e 0a 58 20 20 20 | in SCRI|PT..X |
|000061b0| 49 74 20 73 68 6f 75 6c | 64 20 62 65 20 31 20 69 |It shoul|d be 1 i|
|000061c0| 66 20 61 6c 6c 20 74 68 | 65 20 6c 69 6e 65 73 20 |f all th|e lines |
|000061d0| 69 6e 73 65 72 74 65 64 | 20 6f 72 20 64 65 6c 65 |inserted| or dele|
|000061e0| 74 65 64 20 69 6e 20 74 | 68 61 74 20 63 68 61 6e |ted in t|hat chan|
|000061f0| 67 65 0a 58 20 20 20 61 | 72 65 20 69 67 6e 6f 72 |ge.X a|re ignor|
|00006200| 61 62 6c 65 20 6c 69 6e | 65 73 2e 20 20 2a 2f 0a |able lin|es. */.|
|00006210| 58 0a 58 73 74 61 74 69 | 63 20 76 6f 69 64 0a 58 |X.Xstati|c void.X|
|00006220| 6d 61 72 6b 5f 69 67 6e | 6f 72 61 62 6c 65 20 28 |mark_ign|orable (|
|00006230| 73 63 72 69 70 74 29 0a | 58 20 20 20 20 20 73 74 |script).|X st|
|00006240| 72 75 63 74 20 63 68 61 | 6e 67 65 20 2a 73 63 72 |ruct cha|nge *scr|
|00006250| 69 70 74 3b 0a 58 7b 0a | 58 20 20 77 68 69 6c 65 |ipt;.X{.|X while|
|00006260| 20 28 73 63 72 69 70 74 | 29 0a 58 20 20 20 20 7b | (script|).X {|
|00006270| 0a 58 20 20 20 20 20 20 | 73 74 72 75 63 74 20 63 |.X |struct c|
|00006280| 68 61 6e 67 65 20 2a 6e | 65 78 74 20 3d 20 73 63 |hange *n|ext = sc|
|00006290| 72 69 70 74 2d 3e 6c 69 | 6e 6b 3b 0a 58 20 20 20 |ript->li|nk;.X |
|000062a0| 20 20 20 69 6e 74 20 66 | 69 72 73 74 30 2c 20 6c | int f|irst0, l|
|000062b0| 61 73 74 30 2c 20 66 69 | 72 73 74 31 2c 20 6c 61 |ast0, fi|rst1, la|
|000062c0| 73 74 31 2c 20 64 65 6c | 65 74 65 73 2c 20 69 6e |st1, del|etes, in|
|000062d0| 73 65 72 74 73 3b 0a 58 | 0a 58 20 20 20 20 20 20 |serts;.X|.X |
|000062e0| 2f 2a 20 54 75 72 6e 20 | 74 68 69 73 20 63 68 61 |/* Turn |this cha|
|000062f0| 6e 67 65 20 69 6e 74 6f | 20 61 20 68 75 6e 6b 3a |nge into| a hunk:|
|00006300| 20 64 65 74 61 63 68 20 | 69 74 20 66 72 6f 6d 20 | detach |it from |
|00006310| 74 68 65 20 6f 74 68 65 | 72 73 2e 20 20 2a 2f 0a |the othe|rs. */.|
|00006320| 58 20 20 20 20 20 20 73 | 63 72 69 70 74 2d 3e 6c |X s|cript->l|
|00006330| 69 6e 6b 20 3d 20 30 3b | 0a 58 0a 58 20 20 20 20 |ink = 0;|.X.X |
|00006340| 20 20 2f 2a 20 44 65 74 | 65 72 6d 69 6e 65 20 77 | /* Det|ermine w|
|00006350| 68 65 74 68 65 72 20 74 | 68 69 73 20 63 68 61 6e |hether t|his chan|
|00006360| 67 65 20 69 73 20 69 67 | 6e 6f 72 61 62 6c 65 2e |ge is ig|norable.|
|00006370| 20 20 2a 2f 0a 58 20 20 | 20 20 20 20 61 6e 61 6c | */.X | anal|
|00006380| 79 7a 65 5f 68 75 6e 6b | 20 28 73 63 72 69 70 74 |yze_hunk| (script|
|00006390| 2c 20 26 66 69 72 73 74 | 30 2c 20 26 6c 61 73 74 |, &first|0, &last|
|000063a0| 30 2c 20 26 66 69 72 73 | 74 31 2c 20 26 6c 61 73 |0, &firs|t1, &las|
|000063b0| 74 31 2c 20 26 64 65 6c | 65 74 65 73 2c 20 26 69 |t1, &del|etes, &i|
|000063c0| 6e 73 65 72 74 73 29 3b | 0a 58 20 20 20 20 20 20 |nserts);|.X |
|000063d0| 2f 2a 20 52 65 63 6f 6e | 6e 65 63 74 20 74 68 65 |/* Recon|nect the|
|000063e0| 20 63 68 61 69 6e 20 61 | 73 20 62 65 66 6f 72 65 | chain a|s before|
|000063f0| 2e 20 20 2a 2f 0a 58 20 | 20 20 20 20 20 73 63 72 |. */.X | scr|
+--------+-------------------------+-------------------------+--------+--------+
Only 25.0 KB of data is shown above.