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: LaTeX Document
(document/latex).
Confidence | Program | Detection | Match Type | Support
|
---|
100%
| dexvert
| LaTeX Document (document/latex)
| magic
| Supported |
1%
| dexvert
| NWiper Show (other/nWiperShow)
| ext
| Unsupported |
1%
| dexvert
| Text File (text/txt)
| fallback
| Supported |
100%
| file
| data
| default
| |
100%
| perlTextCheck
| Likely Text (Perl)
| default
| |
100%
| siegfried
| fmt/281 LaTeX (Subdocument)
| default
| |
100%
| detectItEasy
| Format: plain text[CR]
| default (weak)
|
|
id metadata |
---|
key | value |
---|
macFileType | [TEXT] |
macFileCreator | [MPS ] |
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 5c 6d 61 6b 65 61 74 6c | 65 74 74 65 72 0d 5c 64 |\makeatl|etter.\d|
|00000010| 65 66 5c 69 64 78 65 78 | 61 6d 70 6c 65 23 31 7b |ef\idxex|ample#1{|
|00000020| 5c 6e 77 69 78 40 69 64 | 40 75 73 65 73 23 31 7d |\nwix@id|@uses#1}|
|00000030| 0d 5c 6d 61 6b 65 61 74 | 6f 74 68 65 72 0d 0d 5c |.\makeat|other..\|
|00000040| 73 65 63 74 69 6f 6e 7b | 41 6e 20 65 78 61 6d 70 |section{|An examp|
|00000050| 6c 65 20 6f 66 20 7b 5c | 74 74 20 6e 6f 77 65 62 |le of {\|tt noweb|
|00000060| 7d 7d 0d 54 68 65 20 66 | 6f 6c 6c 6f 77 69 6e 67 |}}.The f|ollowing|
|00000070| 20 73 68 6f 72 74 20 70 | 72 6f 67 72 61 6d 20 69 | short p|rogram i|
|00000080| 6c 6c 75 73 74 72 61 74 | 65 73 20 74 68 65 20 75 |llustrat|es the u|
|00000090| 73 65 20 6f 66 20 7b 5c | 74 74 20 6e 6f 77 65 62 |se of {\|tt noweb|
|000000a0| 7d 2c 0d 61 20 6c 6f 77 | 2d 74 65 63 68 20 74 6f |},.a low|-tech to|
|000000b0| 6f 6c 20 66 6f 72 20 6c | 69 74 65 72 61 74 65 20 |ol for l|iterate |
|000000c0| 70 72 6f 67 72 61 6d 6d | 69 6e 67 2e 0d 54 68 65 |programm|ing..The|
|000000d0| 20 70 75 72 70 6f 73 65 | 20 6f 66 20 74 68 65 20 | purpose| of the |
|000000e0| 70 72 6f 67 72 61 6d 20 | 69 73 20 74 6f 20 70 72 |program |is to pr|
|000000f0| 6f 76 69 64 65 20 61 20 | 62 61 73 69 73 20 66 6f |ovide a |basis fo|
|00000100| 72 20 0d 63 6f 6d 70 61 | 72 69 6e 67 20 7b 5c 74 |r .compa|ring {\t|
|00000110| 74 20 57 45 42 7d 20 61 | 6e 64 20 7b 5c 74 74 20 |t WEB} a|nd {\tt |
|00000120| 6e 6f 77 65 62 7d 2c 20 | 73 6f 20 49 20 68 61 76 |noweb}, |so I hav|
|00000130| 65 20 75 73 65 64 20 61 | 20 70 72 6f 67 72 61 6d |e used a| program|
|00000140| 20 74 68 61 74 20 68 61 | 73 0d 62 65 65 6e 20 70 | that ha|s.been p|
|00000150| 75 62 6c 69 73 68 65 64 | 20 62 65 66 6f 72 65 3b |ublished| before;|
|00000160| 0d 74 68 65 20 74 65 78 | 74 2c 20 63 6f 64 65 2c |.the tex|t, code,|
|00000170| 20 61 6e 64 20 70 72 65 | 73 65 6e 74 61 74 69 6f | and pre|sentatio|
|00000180| 6e 20 61 72 65 20 74 61 | 6b 65 6e 0d 66 72 6f 6d |n are ta|ken.from|
|00000190| 7e 5c 63 69 74 65 5b 43 | 68 61 70 74 65 72 7e 31 |~\cite[C|hapter~1|
|000001a0| 32 5d 7b 6b 6e 75 74 68 | 3a 6c 69 74 65 72 61 74 |2]{knuth|:literat|
|000001b0| 65 3a 62 6f 6f 6b 7d 2e | 0d 54 68 65 20 6e 6f 74 |e:book}.|.The not|
|000001c0| 61 62 6c 65 20 64 69 66 | 66 65 72 65 6e 63 65 73 |able dif|ferences|
|000001d0| 20 61 72 65 3a 0d 5c 62 | 65 67 69 6e 7b 69 74 65 | are:.\b|egin{ite|
|000001e0| 6d 69 7a 65 7d 0d 5c 69 | 74 65 6d 0d 57 68 65 6e |mize}.\i|tem.When|
|000001f0| 20 64 69 73 70 6c 61 79 | 69 6e 67 20 73 6f 75 72 | display|ing sour|
|00000200| 63 65 20 63 6f 64 65 2c | 0d 7b 5c 74 74 20 6e 6f |ce code,|.{\tt no|
|00000210| 77 65 62 7d 20 75 73 65 | 73 20 64 69 66 66 65 72 |web} use|s differ|
|00000220| 65 6e 74 20 74 79 70 6f | 67 72 61 70 68 79 2e 0d |ent typo|graphy..|
|00000230| 49 6e 20 70 61 72 74 69 | 63 75 6c 61 72 2c 20 7b |In parti|cular, {|
|00000240| 5c 74 74 20 57 45 42 7d | 20 6d 61 6b 65 73 20 67 |\tt WEB}| makes g|
|00000250| 6f 6f 64 20 75 73 65 20 | 6f 66 20 6d 75 6c 74 69 |ood use |of multi|
|00000260| 70 6c 65 20 66 6f 6e 74 | 73 0d 61 6e 64 20 74 68 |ple font|s.and th|
|00000270| 65 20 61 62 6c 69 74 79 | 20 74 6f 20 74 79 70 65 |e ablity| to type|
|00000280| 73 65 74 20 6d 61 74 68 | 65 6d 61 74 69 63 73 2c |set math|ematics,|
|00000290| 20 61 6e 64 20 69 74 20 | 6d 61 79 20 75 73 65 0d | and it |may use.|
|000002a0| 20 6d 61 74 68 65 6d 61 | 74 69 63 61 6c 20 73 79 | mathema|tical sy|
|000002b0| 6d 62 6f 6c 73 20 69 6e | 20 70 6c 61 63 65 20 6f |mbols in| place o|
|000002c0| 66 20 43 7e 73 79 6d 62 | 6f 6c 73 20 28 65 2e 67 |f C~symb|ols (e.g|
|000002d0| 2e 0d 60 60 24 5c 6c 61 | 6e 64 24 27 27 20 66 6f |..``$\la|nd$'' fo|
|000002e0| 72 20 60 60 7b 5c 74 74 | 20 5c 26 5c 26 7d 27 27 |r ``{\tt| \&\&}''|
|000002f0| 29 2e 0d 7b 5c 74 74 20 | 6e 6f 77 65 62 7d 20 75 |)..{\tt |noweb} u|
|00000300| 73 65 73 20 61 20 73 69 | 6e 67 6c 65 20 66 69 78 |ses a si|ngle fix|
|00000310| 65 64 2d 77 69 64 74 68 | 20 66 6f 6e 74 20 66 6f |ed-width| font fo|
|00000320| 72 20 63 6f 64 65 2e 0d | 5c 69 74 65 6d 0d 7b 5c |r code..|\item.{\|
|00000330| 74 74 20 6e 6f 77 65 62 | 7d 20 63 61 6e 20 77 6f |tt noweb|} can wo|
|00000340| 72 6b 20 77 69 74 68 20 | 7b 5c 4c 61 54 65 58 7d |rk with |{\LaTeX}|
|00000350| 2c 20 61 6e 64 20 49 20 | 68 61 76 65 20 75 73 65 |, and I |have use|
|00000360| 64 20 7b 5c 4c 61 54 65 | 58 7d 20 69 6e 20 74 68 |d {\LaTe|X} in th|
|00000370| 69 73 20 65 78 61 6d 70 | 6c 65 2e 0d 5c 69 74 65 |is examp|le..\ite|
|00000380| 6d 0d 7b 5c 74 74 20 6e | 6f 77 65 62 7d 20 68 61 |m.{\tt n|oweb} ha|
|00000390| 73 20 6e 6f 20 6e 75 6d | 62 65 72 65 64 20 60 60 |s no num|bered ``|
|000003a0| 73 65 63 74 69 6f 6e 73 | 2e 27 27 0d 5c 69 66 78 |sections|.''.\ifx|
|000003b0| 5c 77 62 6e 5c 75 6e 64 | 65 66 69 6e 65 64 0d 57 |\wbn\und|efined.W|
|000003c0| 68 65 6e 20 6e 75 6d 62 | 65 72 73 20 61 72 65 20 |hen numb|ers are |
|000003d0| 6e 65 65 64 65 64 20 66 | 6f 72 20 63 72 6f 73 73 |needed f|or cross|
|000003e0| 2d 72 65 66 65 72 65 6e | 63 69 6e 67 2c 20 7b 5c |-referen|cing, {\|
|000003f0| 74 74 20 6e 6f 77 65 62 | 7d 20 75 73 65 73 20 70 |tt noweb|} uses p|
|00000400| 61 67 65 0d 6e 75 6d 62 | 65 72 73 2e 0d 5c 65 6c |age.numb|ers..\el|
|00000410| 73 65 0d 57 68 65 6e 20 | 6e 75 6d 62 65 72 73 20 |se.When |numbers |
|00000420| 61 72 65 20 6e 65 65 64 | 65 64 20 66 6f 72 20 63 |are need|ed for c|
|00000430| 72 6f 73 73 2d 72 65 66 | 65 72 65 6e 63 69 6e 67 |ross-ref|erencing|
|00000440| 2c 20 7b 5c 74 74 20 6e | 6f 77 65 62 7d 20 6f 72 |, {\tt n|oweb} or|
|00000450| 64 69 6e 61 72 69 6c 79 | 20 75 73 65 73 20 70 61 |dinarily| uses pa|
|00000460| 67 65 0d 6e 75 6d 62 65 | 72 73 2e 0d 5c 66 69 0d |ge.numbe|rs..\fi.|
|00000470| 49 66 20 74 77 6f 20 6f | 72 20 6d 6f 72 65 20 63 |If two o|r more c|
|00000480| 68 75 6e 6b 73 20 61 70 | 70 65 61 72 20 6f 6e 20 |hunks ap|pear on |
|00000490| 61 20 70 61 67 65 2c 20 | 66 6f 72 20 65 78 61 6d |a page, |for exam|
|000004a0| 70 6c 65 2c 20 70 61 67 | 65 7e 32 34 2c 20 74 68 |ple, pag|e~24, th|
|000004b0| 65 79 20 61 72 65 0d 64 | 69 73 74 69 6e 67 75 69 |ey are.d|istingui|
|000004c0| 73 68 65 64 20 62 79 20 | 61 70 70 65 6e 64 69 6e |shed by |appendin|
|000004d0| 67 20 61 20 6c 65 74 74 | 65 72 20 74 6f 20 74 68 |g a lett|er to th|
|000004e0| 65 20 70 61 67 65 20 6e | 75 6d 62 65 72 2c 20 66 |e page n|umber, f|
|000004f0| 6f 72 20 65 78 61 6d 70 | 6c 65 2c 0d 32 34 61 20 |or examp|le,.24a |
|00000500| 6f 72 20 32 34 62 2e 0d | 5c 69 66 78 5c 77 62 6e |or 24b..|\ifx\wbn|
|00000510| 5c 75 6e 64 65 66 69 6e | 65 64 5c 65 6c 73 65 0d |\undefin|ed\else.|
|00000520| 7b 5c 4c 61 54 65 58 7d | 20 63 6f 6d 70 75 74 65 |{\LaTeX}| compute|
|00000530| 73 20 74 68 65 73 65 20 | 70 61 67 65 20 6e 75 6d |s these |page num|
|00000540| 62 65 72 73 2c 20 62 75 | 74 20 73 69 6e 63 65 20 |bers, bu|t since |
|00000550| 7b 5c 4c 61 54 65 58 7d | 20 69 73 20 6e 6f 74 20 |{\LaTeX}| is not |
|00000560| 75 73 65 64 0d 69 6e 20 | 74 68 65 20 70 72 6f 64 |used.in |the prod|
|00000570| 75 63 74 69 6f 6e 20 6f | 66 20 7b 5c 69 74 20 49 |uction o|f {\it I|
|00000580| 45 45 45 20 53 6f 66 74 | 77 61 72 65 7d 2c 20 74 |EEE Soft|ware}, t|
|00000590| 68 69 73 20 65 78 61 6d | 70 6c 65 20 75 73 65 73 |his exam|ple uses|
|000005a0| 0d 63 6f 6e 73 65 63 75 | 74 69 76 65 20 60 60 63 |.consecu|tive ``c|
|000005b0| 68 75 6e 6b 20 6e 75 6d | 62 65 72 73 27 27 20 69 |hunk num|bers'' i|
|000005c0| 6e 73 74 65 61 64 20 6f | 66 20 70 61 67 65 20 6e |nstead o|f page n|
|000005d0| 75 6d 62 65 72 73 2e 0d | 5c 66 69 0d 5c 69 74 65 |umbers..|\fi.\ite|
|000005e0| 6d 0d 7b 5c 74 74 20 6e | 6f 77 65 62 7d 20 68 61 |m.{\tt n|oweb} ha|
|000005f0| 73 20 6e 6f 20 73 70 65 | 63 69 61 6c 20 73 75 70 |s no spe|cial sup|
|00000600| 70 6f 72 74 20 66 6f 72 | 20 6d 61 63 72 6f 73 2e |port for| macros.|
|00000610| 0d 49 6e 20 74 68 65 20 | 73 61 6d 70 6c 65 20 70 |.In the |sample p|
|00000620| 72 6f 67 72 61 6d 2c 20 | 49 20 68 61 76 65 20 75 |rogram, |I have u|
|00000630| 73 65 64 20 74 68 65 20 | 63 68 75 6e 6b 0d 60 60 |sed the |chunk.``|
|00000640| 5c 4c 41 7b 7d 44 65 66 | 69 6e 69 74 69 6f 6e 73 |\LA{}Def|initions|
|00000650| 7e 7b 5c 6e 77 74 61 67 | 73 74 79 6c 65 7b 7d 5c |~{\nwtag|style{}\|
|00000660| 73 75 62 70 61 67 65 72 | 65 66 7b 4e 57 77 63 2e |subpager|ef{NWwc.|
|00000670| 35 2d 44 65 66 42 2d 31 | 7d 7d 5c 52 41 7b 7d 27 |5-DefB-1|}}\RA{}'|
|00000680| 27 20 74 6f 20 68 6f 6c | 64 0d 6d 61 63 72 6f 20 |' to hol|d.macro |
|00000690| 64 65 66 69 6e 69 74 69 | 6f 6e 73 2e 0d 5c 69 74 |definiti|ons..\it|
|000006a0| 65 6d 0d 7b 5c 74 74 20 | 6e 6f 77 65 62 7d 20 64 |em.{\tt |noweb} d|
|000006b0| 6f 65 73 20 6e 6f 74 20 | 72 65 63 6f 67 6e 69 7a |oes not |recogniz|
|000006c0| 65 20 43 7e 69 64 65 6e | 74 69 66 69 65 72 20 64 |e C~iden|tifier d|
|000006d0| 65 66 69 6e 69 74 69 6f | 6e 73 20 61 75 74 6f 6d |efinitio|ns autom|
|000006e0| 61 74 69 63 61 6c 6c 79 | 2c 0d 73 6f 20 49 20 68 |atically|,.so I h|
|000006f0| 61 64 20 74 6f 20 61 64 | 64 20 61 20 6c 69 73 74 |ad to ad|d a list|
|00000700| 20 6f 66 20 64 65 66 69 | 6e 65 64 20 69 64 65 6e | of defi|ned iden|
|00000710| 74 69 66 69 65 72 73 20 | 74 6f 20 65 61 63 68 20 |tifiers |to each |
|00000720| 63 6f 64 65 20 63 68 75 | 6e 6b 2e 0d 42 65 63 61 |code chu|nk..Beca|
|00000730| 75 73 65 20 7b 5c 74 74 | 20 6e 6f 77 65 62 7d 20 |use {\tt| noweb} |
|00000740| 69 73 20 6c 61 6e 67 75 | 61 67 65 2d 69 6e 64 65 |is langu|age-inde|
|00000750| 70 65 6e 64 65 6e 74 2c | 20 69 74 20 6d 75 73 74 |pendent,| it must|
|00000760| 20 75 73 65 20 61 20 68 | 65 75 72 69 73 74 69 63 | use a h|euristic|
|00000770| 0d 74 6f 20 66 69 6e 64 | 20 75 73 65 73 20 6f 66 |.to find| uses of|
|00000780| 20 69 64 65 6e 74 69 66 | 69 65 72 73 2e 0d 54 68 | identif|iers..Th|
|00000790| 69 73 20 68 65 75 72 69 | 73 74 69 63 20 63 61 6e |is heuri|stic can|
|000007a0| 20 62 65 20 66 6f 6f 6c | 65 64 20 69 6e 74 6f 20 | be fool|ed into |
|000007b0| 66 69 6e 64 69 6e 67 20 | 66 61 6c 73 65 20 60 60 |finding |false ``|
|000007c0| 75 73 65 73 27 27 0d 69 | 6e 20 63 6f 6d 6d 65 6e |uses''.i|n commen|
|000007d0| 74 73 20 6f 72 20 73 74 | 72 69 6e 67 20 6c 69 74 |ts or st|ring lit|
|000007e0| 65 72 61 6c 73 2c 20 73 | 75 63 68 20 61 73 20 74 |erals, s|uch as t|
|000007f0| 68 65 20 75 73 65 20 6f | 66 0d 7b 5c 74 74 20 73 |he use o|f.{\tt s|
|00000800| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000810| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000820| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000830| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000840| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000850| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000860| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000870| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000880| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000890| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000008a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000008b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000008c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000008d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000008e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000008f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000900| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000910| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000920| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000930| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000940| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000950| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000960| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000970| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000980| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000990| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000009a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000009b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000009c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000009d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000009e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000009f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000a00| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000a10| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000a20| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000a30| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000a40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000a50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000a60| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000a70| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000a80| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000a90| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000aa0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000ab0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000ac0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000ad0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000ae0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000af0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000b00| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000b10| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000b20| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000b30| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000b40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000b50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000b60| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000b70| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000b80| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000b90| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000ba0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000bb0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000bc0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000bd0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000be0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000bf0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000c00| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000c10| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000c20| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000c30| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000c40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000c50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000c60| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000c70| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000c80| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000c90| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000ca0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000cb0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000cc0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000cd0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000ce0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000cf0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000d00| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000d10| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000d20| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000d30| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000d40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000d50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000d60| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000d70| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000d80| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000d90| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000da0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000db0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000dc0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000dd0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000de0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000df0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000e00| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000e10| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000e20| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000e30| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000e40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000e50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000e60| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000e70| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000e80| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000e90| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000ea0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000eb0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000ec0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000ed0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000ee0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000ef0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000f00| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000f10| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000f20| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000f30| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000f40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000f50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000f60| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000f70| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000f80| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000f90| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000fa0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000fb0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000fc0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000fd0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000fe0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000ff0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001000| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001010| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001040| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001050| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001060| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001070| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001080| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001090| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000010a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000010b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000010c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000010d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000010e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000010f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001100| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001110| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001120| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001130| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001140| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001150| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001160| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001170| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001180| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001190| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000011a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000011b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000011c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000011d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000011e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000011f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001200| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001210| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001220| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001230| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001240| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001250| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001260| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001270| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001280| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001290| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000012a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000012b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000012c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000012d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000012e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000012f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001300| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001310| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001320| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001330| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001340| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001350| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001360| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001370| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001380| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001390| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000013a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000013b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000013c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000013d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000013e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000013f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001400| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001410| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001420| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001430| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001440| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001450| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001460| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001470| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001480| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001490| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000014a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000014b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000014c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000014d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000014e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000014f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001500| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001510| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001520| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001530| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001540| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001550| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001560| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001570| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001580| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001590| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000015a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000015b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000015c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000015d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000015e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000015f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001600| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001610| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001620| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001630| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001640| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001650| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001660| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001670| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001680| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001690| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000016a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000016b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000016c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000016d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000016e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000016f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001700| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001710| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001720| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001730| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001740| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001750| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001760| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001770| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001780| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001790| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000017a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000017b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000017c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000017d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000017e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000017f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001800| 76 65 6e 2c 20 70 72 69 | 6e 74 20 33 20 76 61 6c |ven, pri|nt 3 val|
|00001810| 75 65 73 20 2a 2f 0d 69 | 66 20 28 61 72 67 63 20 |ues */.i|f (argc |
|00001820| 3e 20 31 20 26 26 20 2a | 61 72 67 76 5b 31 5d 20 |> 1 && *|argv[1] |
|00001830| 3d 3d 20 27 2d 27 29 20 | 7b 0d 20 20 77 68 69 63 |== '-') |{. whic|
|00001840| 68 20 3d 20 61 72 67 76 | 5b 31 5d 20 2b 20 31 3b |h = argv|[1] + 1;|
|00001850| 0d 20 20 61 72 67 63 2d | 2d 3b 0d 20 20 61 72 67 |. argc-|-;. arg|
|00001860| 76 2b 2b 3b 0d 7d 0d 66 | 69 6c 65 5f 63 6f 75 6e |v++;.}.f|ile_coun|
|00001870| 74 20 3d 20 61 72 67 63 | 20 2d 20 31 3b 0d 40 0d |t = argc| - 1;.@.|
|00001880| 0d 4e 6f 77 20 77 65 20 | 73 63 61 6e 20 74 68 65 |.Now we |scan the|
|00001890| 20 72 65 6d 61 69 6e 69 | 6e 67 20 61 72 67 75 6d | remaini|ng argum|
|000018a0| 65 6e 74 73 20 61 6e 64 | 20 74 72 79 20 74 6f 20 |ents and| try to |
|000018b0| 6f 70 65 6e 20 61 20 66 | 69 6c 65 2c 20 69 66 20 |open a f|ile, if |
|000018c0| 70 6f 73 73 69 62 6c 65 | 2e 0d 54 68 65 20 66 69 |possible|..The fi|
|000018d0| 6c 65 20 69 73 20 70 72 | 6f 63 65 73 73 65 64 20 |le is pr|ocessed |
|000018e0| 61 6e 64 20 69 74 73 20 | 73 74 61 74 69 73 74 69 |and its |statisti|
|000018f0| 63 73 20 61 72 65 20 67 | 69 76 65 6e 2e 0d 57 65 |cs are g|iven..We|
|00001900| 20 75 73 65 20 61 20 5b | 5b 64 6f 20 2e 2e 2e 20 | use a [|[do ... |
|00001910| 77 68 69 6c 65 5d 5d 20 | 6c 6f 6f 70 20 62 65 63 |while]] |loop bec|
|00001920| 61 75 73 65 20 77 65 20 | 73 68 6f 75 6c 64 20 72 |ause we |should r|
|00001930| 65 61 64 20 66 72 6f 6d | 20 74 68 65 20 73 74 61 |ead from| the sta|
|00001940| 6e 64 61 72 64 0d 69 6e | 70 75 74 20 69 66 20 6e |ndard.in|put if n|
|00001950| 6f 20 66 69 6c 65 20 6e | 61 6d 65 20 69 73 20 67 |o file n|ame is g|
|00001960| 69 76 65 6e 2e 0d 3c 3c | 50 72 6f 63 65 73 73 20 |iven..<<|Process |
|00001970| 61 6c 6c 20 74 68 65 20 | 66 69 6c 65 73 3e 3e 3d |all the |files>>=|
|00001980| 0d 61 72 67 63 2d 2d 3b | 0d 64 6f 20 7b 0d 20 20 |.argc--;|.do {. |
|00001990| 3c 3c 49 66 20 61 20 66 | 69 6c 65 20 69 73 20 67 |<<If a f|ile is g|
|000019a0| 69 76 65 6e 2c 20 74 72 | 79 20 74 6f 20 6f 70 65 |iven, tr|y to ope|
|000019b0| 6e 20 5b 5b 2a 28 2b 2b | 61 72 67 76 29 5d 5d 3b |n [[*(++|argv)]];|
|000019c0| 20 5b 5b 63 6f 6e 74 69 | 6e 75 65 5d 5d 20 69 66 | [[conti|nue]] if|
|000019d0| 20 75 6e 73 75 63 63 65 | 73 73 66 75 6c 3e 3e 0d | unsucce|ssful>>.|
|000019e0| 20 20 3c 3c 49 6e 69 74 | 69 61 6c 69 7a 65 20 70 | <<Init|ialize p|
|000019f0| 6f 69 6e 74 65 72 73 20 | 61 6e 64 20 63 6f 75 6e |ointers |and coun|
|00001a00| 74 65 72 73 3e 3e 0d 20 | 20 3c 3c 53 63 61 6e 20 |ters>>. | <<Scan |
|00001a10| 66 69 6c 65 3e 3e 0d 20 | 20 3c 3c 57 72 69 74 65 |file>>. | <<Write|
|00001a20| 20 73 74 61 74 69 73 74 | 69 63 73 20 66 6f 72 20 | statist|ics for |
|00001a30| 66 69 6c 65 3e 3e 0d 20 | 20 3c 3c 43 6c 6f 73 65 |file>>. | <<Close|
|00001a40| 20 66 69 6c 65 3e 3e 0d | 20 20 3c 3c 55 70 64 61 | file>>.| <<Upda|
|00001a50| 74 65 20 67 72 61 6e 64 | 20 74 6f 74 61 6c 73 3e |te grand| totals>|
|00001a60| 3e 0d 20 20 20 20 2f 2a | 20 65 76 65 6e 20 69 66 |>. /*| even if|
|00001a70| 20 74 68 65 72 65 20 69 | 73 20 6f 6e 6c 79 20 6f | there i|s only o|
|00001a80| 6e 65 20 66 69 6c 65 20 | 2a 2f 0d 7d 20 77 68 69 |ne file |*/.} whi|
|00001a90| 6c 65 20 28 2d 2d 61 72 | 67 63 20 3e 20 30 29 3b |le (--ar|gc > 0);|
|00001aa0| 0d 40 0d 0d 48 65 72 65 | 27 73 20 74 68 65 20 63 |.@..Here|'s the c|
|00001ab0| 6f 64 65 20 74 6f 20 6f | 70 65 6e 20 74 68 65 20 |ode to o|pen the |
|00001ac0| 66 69 6c 65 2e 20 20 41 | 20 73 70 65 63 69 61 6c |file. A| special|
|00001ad0| 20 74 72 69 63 6b 20 61 | 6c 6c 6f 77 73 20 75 73 | trick a|llows us|
|00001ae0| 20 74 6f 20 68 61 6e 64 | 6c 65 0d 69 6e 70 75 74 | to hand|le.input|
|00001af0| 20 66 72 6f 6d 20 5b 5b | 73 74 64 69 6e 5d 5d 20 | from [[|stdin]] |
|00001b00| 77 68 65 6e 20 6e 6f 20 | 6e 61 6d 65 20 69 73 20 |when no |name is |
|00001b10| 67 69 76 65 6e 2e 0d 52 | 65 63 61 6c 6c 20 74 68 |given..R|ecall th|
|00001b20| 61 74 20 74 68 65 20 66 | 69 6c 65 20 64 65 73 63 |at the f|ile desc|
|00001b30| 72 69 70 74 6f 72 20 74 | 6f 20 5b 5b 73 74 64 69 |riptor t|o [[stdi|
|00001b40| 6e 5d 5d 20 69 73 7e 30 | 3b 20 74 68 61 74 27 73 |n]] is~0|; that's|
|00001b50| 20 77 68 61 74 20 77 65 | 20 75 73 65 0d 61 73 20 | what we| use.as |
|00001b60| 74 68 65 20 64 65 66 61 | 75 6c 74 20 69 6e 69 74 |the defa|ult init|
|00001b70| 69 61 6c 20 76 61 6c 75 | 65 2e 0d 3c 3c 56 61 72 |ial valu|e..<<Var|
|00001b80| 69 61 62 6c 65 73 20 6c | 6f 63 61 6c 20 74 6f 20 |iables l|ocal to |
|00001b90| 5b 5b 6d 61 69 6e 5d 5d | 3e 3e 3d 0d 69 6e 74 20 |[[main]]|>>=.int |
|00001ba0| 66 64 20 3d 20 30 3b 0d | 20 20 2f 2a 20 66 69 6c |fd = 0;.| /* fil|
|00001bb0| 65 20 64 65 73 63 72 69 | 70 74 6f 72 2c 20 69 6e |e descri|ptor, in|
|00001bc0| 69 74 69 61 6c 69 7a 65 | 64 20 74 6f 20 73 74 64 |itialize|d to std|
|00001bd0| 69 6e 20 2a 2f 0d 40 20 | 25 64 65 66 20 66 64 0d |in */.@ |%def fd.|
|00001be0| 3c 3c 44 65 66 69 6e 69 | 74 69 6f 6e 73 3e 3e 3d |<<Defini|tions>>=|
|00001bf0| 0d 23 64 65 66 69 6e 65 | 20 52 45 41 44 5f 4f 4e |.#define| READ_ON|
|00001c00| 4c 59 20 30 0d 20 20 2f | 2a 20 72 65 61 64 20 61 |LY 0. /|* read a|
|00001c10| 63 63 65 73 73 20 63 6f | 64 65 20 66 6f 72 20 73 |ccess co|de for s|
|00001c20| 79 73 74 65 6d 20 6f 70 | 65 6e 20 2a 2f 0d 40 20 |ystem op|en */.@ |
|00001c30| 25 64 65 66 20 52 45 41 | 44 5f 4f 4e 4c 59 0d 3c |%def REA|D_ONLY.<|
|00001c40| 3c 49 66 20 61 20 66 69 | 6c 65 20 69 73 20 67 69 |<If a fi|le is gi|
|00001c50| 76 65 6e 2c 20 74 72 79 | 20 74 6f 20 6f 70 65 6e |ven, try| to open|
|00001c60| 20 5b 5b 2a 28 2b 2b 61 | 72 67 76 29 5d 5d 3b 20 | [[*(++a|rgv)]]; |
|00001c70| 5b 5b 63 6f 6e 74 69 6e | 75 65 5d 5d 20 69 66 20 |[[contin|ue]] if |
|00001c80| 75 6e 73 75 63 63 65 73 | 73 66 75 6c 3e 3e 3d 0d |unsucces|sful>>=.|
|00001c90| 69 66 20 28 66 69 6c 65 | 5f 63 6f 75 6e 74 20 3e |if (file|_count >|
|00001ca0| 20 30 0d 26 26 20 28 66 | 64 20 3d 20 6f 70 65 6e | 0.&& (f|d = open|
|00001cb0| 28 2a 28 2b 2b 61 72 67 | 76 29 2c 20 52 45 41 44 |(*(++arg|v), READ|
|00001cc0| 5f 4f 4e 4c 59 29 29 20 | 3c 20 30 29 20 7b 0d 20 |_ONLY)) |< 0) {. |
|00001cd0| 20 66 70 72 69 6e 74 66 | 28 73 74 64 65 72 72 2c | fprintf|(stderr,|
|00001ce0| 20 0d 20 20 20 20 22 25 | 73 3a 20 63 61 6e 6e 6f | . "%|s: canno|
|00001cf0| 74 20 6f 70 65 6e 20 66 | 69 6c 65 20 25 73 5c 6e |t open f|ile %s\n|
|00001d00| 22 2c 0d 20 20 20 20 70 | 72 6f 67 5f 6e 61 6d 65 |",. p|rog_name|
|00001d10| 2c 20 2a 61 72 67 76 29 | 3b 0d 20 20 73 74 61 74 |, *argv)|;. stat|
|00001d20| 75 73 20 7c 3d 20 63 61 | 6e 6e 6f 74 5f 6f 70 65 |us |= ca|nnot_ope|
|00001d30| 6e 5f 66 69 6c 65 3b 0d | 20 20 66 69 6c 65 5f 63 |n_file;.| file_c|
|00001d40| 6f 75 6e 74 2d 2d 3b 0d | 20 20 63 6f 6e 74 69 6e |ount--;.| contin|
|00001d50| 75 65 3b 0d 7d 0d 3c 3c | 43 6c 6f 73 65 20 66 69 |ue;.}.<<|Close fi|
|00001d60| 6c 65 3e 3e 3d 0d 63 6c | 6f 73 65 28 66 64 29 3b |le>>=.cl|ose(fd);|
|00001d70| 0d 40 0d 57 65 20 77 69 | 6c 6c 20 64 6f 20 73 6f |.@.We wi|ll do so|
|00001d80| 6d 65 20 68 6f 6d 65 6d | 61 64 65 20 62 75 66 66 |me homem|ade buff|
|00001d90| 65 72 69 6e 67 20 69 6e | 20 6f 72 64 65 72 20 74 |ering in| order t|
|00001da0| 6f 20 73 70 65 65 64 20 | 74 68 69 6e 67 73 20 75 |o speed |things u|
|00001db0| 70 3a 0d 43 68 61 72 61 | 63 74 65 72 73 20 77 69 |p:.Chara|cters wi|
|00001dc0| 6c 6c 20 62 65 20 72 65 | 61 64 20 69 6e 74 6f 20 |ll be re|ad into |
|00001dd0| 74 68 65 20 5b 5b 62 75 | 66 66 65 72 5d 5d 20 61 |the [[bu|ffer]] a|
|00001de0| 72 72 61 79 20 62 65 66 | 6f 72 65 20 77 65 20 70 |rray bef|ore we p|
|00001df0| 72 6f 63 65 73 73 0d 74 | 68 65 6d 2e 0d 54 6f 20 |rocess.t|hem..To |
|00001e00| 64 6f 20 74 68 69 73 20 | 77 65 20 73 65 74 20 75 |do this |we set u|
|00001e10| 70 20 61 70 70 72 6f 70 | 72 69 61 74 65 20 70 6f |p approp|riate po|
|00001e20| 69 6e 74 65 72 73 20 61 | 6e 64 20 63 6f 75 6e 74 |inters a|nd count|
|00001e30| 65 72 73 2e 0d 3c 3c 44 | 65 66 69 6e 69 74 69 6f |ers..<<D|efinitio|
|00001e40| 6e 73 3e 3e 3d 0d 23 64 | 65 66 69 6e 65 20 62 75 |ns>>=.#d|efine bu|
|00001e50| 66 5f 73 69 7a 65 20 42 | 55 46 53 49 5a 0d 20 20 |f_size B|UFSIZ. |
|00001e60| 2f 2a 20 73 74 64 69 6f | 2e 68 20 42 55 46 53 49 |/* stdio|.h BUFSI|
|00001e70| 5a 20 63 68 6f 73 65 6e | 20 66 6f 72 20 65 66 66 |Z chosen| for eff|
|00001e80| 69 63 69 65 6e 63 79 20 | 2a 2f 0d 40 20 25 64 65 |iciency |*/.@ %de|
|00001e90| 66 20 62 75 66 5f 73 69 | 7a 65 0d 3c 3c 56 61 72 |f buf_si|ze.<<Var|
|00001ea0| 69 61 62 6c 65 73 20 6c | 6f 63 61 6c 20 74 6f 20 |iables l|ocal to |
|00001eb0| 5b 5b 6d 61 69 6e 5d 5d | 3e 3e 3d 0d 63 68 61 72 |[[main]]|>>=.char|
|00001ec0| 20 62 75 66 66 65 72 5b | 62 75 66 5f 73 69 7a 65 | buffer[|buf_size|
|00001ed0| 5d 3b 0d 20 20 2f 2a 20 | 77 65 20 72 65 61 64 20 |];. /* |we read |
|00001ee0| 74 68 65 20 69 6e 70 75 | 74 20 69 6e 74 6f 20 74 |the inpu|t into t|
|00001ef0| 68 69 73 20 61 72 72 61 | 79 20 2a 2f 0d 72 65 67 |his arra|y */.reg|
|00001f00| 69 73 74 65 72 20 63 68 | 61 72 20 2a 70 74 72 3b |ister ch|ar *ptr;|
|00001f10| 0d 20 20 2f 2a 20 66 69 | 72 73 74 20 75 6e 70 72 |. /* fi|rst unpr|
|00001f20| 6f 63 65 73 73 65 64 20 | 63 68 61 72 61 63 74 65 |ocessed |characte|
|00001f30| 72 20 69 6e 20 62 75 66 | 66 65 72 20 2a 2f 0d 72 |r in buf|fer */.r|
|00001f40| 65 67 69 73 74 65 72 20 | 63 68 61 72 20 2a 62 75 |egister |char *bu|
|00001f50| 66 5f 65 6e 64 3b 0d 20 | 20 2f 2a 20 74 68 65 20 |f_end;. | /* the |
|00001f60| 66 69 72 73 74 20 75 6e | 75 73 65 64 20 70 6f 73 |first un|used pos|
|00001f70| 69 74 69 6f 6e 20 69 6e | 20 62 75 66 66 65 72 20 |ition in| buffer |
|00001f80| 2a 2f 0d 72 65 67 69 73 | 74 65 72 20 69 6e 74 20 |*/.regis|ter int |
|00001f90| 63 3b 0d 20 20 2f 2a 20 | 63 75 72 72 65 6e 74 20 |c;. /* |current |
|00001fa0| 63 68 61 72 2c 20 6f 72 | 20 23 20 6f 66 20 63 68 |char, or| # of ch|
|00001fb0| 61 72 73 20 6a 75 73 74 | 20 72 65 61 64 20 2a 2f |ars just| read */|
|00001fc0| 0d 69 6e 74 20 69 6e 5f | 77 6f 72 64 3b 0d 20 20 |.int in_|word;. |
|00001fd0| 2f 2a 20 61 72 65 20 77 | 65 20 77 69 74 68 69 6e |/* are w|e within|
|00001fe0| 20 61 20 77 6f 72 64 3f | 20 2a 2f 0d 6c 6f 6e 67 | a word?| */.long|
|00001ff0| 20 77 6f 72 64 5f 63 6f | 75 6e 74 2c 20 6c 69 6e | word_co|unt, lin|
|00002000| 65 5f 63 6f 75 6e 74 2c | 20 63 68 61 72 5f 63 6f |e_count,| char_co|
|00002010| 75 6e 74 3b 0d 20 20 2f | 2a 20 23 20 6f 66 20 77 |unt;. /|* # of w|
|00002020| 6f 72 64 73 2c 20 6c 69 | 6e 65 73 2c 20 61 6e 64 |ords, li|nes, and|
|00002030| 20 63 68 61 72 73 20 73 | 6f 20 66 61 72 20 2a 2f | chars s|o far */|
|00002040| 0d 40 20 25 64 65 66 20 | 62 75 66 66 65 72 20 70 |.@ %def |buffer p|
|00002050| 74 72 20 62 75 66 5f 65 | 6e 64 20 69 6e 5f 77 6f |tr buf_e|nd in_wo|
|00002060| 72 64 20 77 6f 72 64 5f | 63 6f 75 6e 74 20 6c 69 |rd word_|count li|
|00002070| 6e 65 5f 63 6f 75 6e 74 | 20 63 68 61 72 5f 63 6f |ne_count| char_co|
|00002080| 75 6e 74 0d 3c 3c 49 6e | 69 74 69 61 6c 69 7a 65 |unt.<<In|itialize|
|00002090| 20 70 6f 69 6e 74 65 72 | 73 20 61 6e 64 20 63 6f | pointer|s and co|
|000020a0| 75 6e 74 65 72 73 3e 3e | 3d 0d 70 74 72 20 3d 20 |unters>>|=.ptr = |
|000020b0| 62 75 66 5f 65 6e 64 20 | 3d 20 62 75 66 66 65 72 |buf_end |= buffer|
|000020c0| 3b 0d 6c 69 6e 65 5f 63 | 6f 75 6e 74 20 3d 20 77 |;.line_c|ount = w|
|000020d0| 6f 72 64 5f 63 6f 75 6e | 74 20 3d 20 63 68 61 72 |ord_coun|t = char|
|000020e0| 5f 63 6f 75 6e 74 20 3d | 20 30 3b 0d 69 6e 5f 77 |_count =| 0;.in_w|
|000020f0| 6f 72 64 20 3d 20 30 3b | 0d 40 0d 0d 54 68 65 20 |ord = 0;|.@..The |
|00002100| 67 72 61 6e 64 20 74 6f | 74 61 6c 73 20 6d 75 73 |grand to|tals mus|
|00002110| 74 20 62 65 20 69 6e 69 | 74 69 61 6c 69 7a 65 64 |t be ini|tialized|
|00002120| 20 74 6f 20 7a 65 72 6f | 20 61 74 20 74 68 65 20 | to zero| at the |
|00002130| 62 65 67 69 6e 6e 69 6e | 67 20 6f 66 20 74 68 65 |beginnin|g of the|
|00002140| 0d 70 72 6f 67 72 61 6d | 2e 0d 49 66 20 77 65 20 |.program|..If we |
|00002150| 6d 61 64 65 20 74 68 65 | 73 65 20 76 61 72 69 61 |made the|se varia|
|00002160| 62 6c 65 73 20 6c 6f 63 | 61 6c 20 74 6f 20 5b 5b |bles loc|al to [[|
|00002170| 6d 61 69 6e 5d 5d 2c 20 | 77 65 20 77 6f 75 6c 64 |main]], |we would|
|00002180| 20 68 61 76 65 20 74 6f | 20 64 6f 20 74 68 69 73 | have to| do this|
|00002190| 0d 69 6e 69 74 69 61 6c | 69 7a 61 74 69 6f 6e 20 |.initial|ization |
|000021a0| 65 78 70 6c 69 63 69 74 | 6c 79 3b 20 68 6f 77 65 |explicit|ly; howe|
|000021b0| 76 65 72 2c 20 43 27 73 | 20 67 6c 6f 62 61 6c 73 |ver, C's| globals|
|000021c0| 20 61 72 65 20 61 75 74 | 6f 6d 61 74 69 63 61 6c | are aut|omatical|
|000021d0| 6c 79 0d 7a 65 72 6f 65 | 64 2e 20 28 4f 72 20 72 |ly.zeroe|d. (Or r|
|000021e0| 61 74 68 65 72 2c 20 60 | 60 73 74 61 74 69 63 61 |ather, `|`statica|
|000021f0| 6c 6c 79 20 7a 65 72 6f | 65 64 2e 27 27 29 20 20 |lly zero|ed.'') |
|00002200| 28 47 65 74 20 69 74 3f | 29 0d 3c 3c 47 6c 6f 62 |(Get it?|).<<Glob|
|00002210| 61 6c 20 76 61 72 69 61 | 62 6c 65 73 3e 3e 3d 0d |al varia|bles>>=.|
|00002220| 6c 6f 6e 67 20 74 6f 74 | 5f 77 6f 72 64 5f 63 6f |long tot|_word_co|
|00002230| 75 6e 74 2c 20 74 6f 74 | 5f 6c 69 6e 65 5f 63 6f |unt, tot|_line_co|
|00002240| 75 6e 74 2c 20 0d 20 20 | 20 20 20 74 6f 74 5f 63 |unt, . | tot_c|
|00002250| 68 61 72 5f 63 6f 75 6e | 74 3b 0d 20 20 2f 2a 20 |har_coun|t;. /* |
|00002260| 74 6f 74 61 6c 20 6e 75 | 6d 62 65 72 20 6f 66 20 |total nu|mber of |
|00002270| 77 6f 72 64 73 2c 20 6c | 69 6e 65 73 2c 20 63 68 |words, l|ines, ch|
|00002280| 61 72 73 20 2a 2f 0d 40 | 0d 0d 5c 76 73 6b 69 70 |ars */.@|..\vskip|
|00002290| 30 70 74 20 70 6c 75 73 | 33 69 6e 5c 70 65 6e 61 |0pt plus|3in\pena|
|000022a0| 6c 74 79 2d 35 30 30 5c | 76 73 6b 69 70 30 70 74 |lty-500\|vskip0pt|
|000022b0| 20 70 6c 75 73 2d 33 69 | 6e 0d 54 68 65 20 70 72 | plus-3i|n.The pr|
|000022c0| 65 73 65 6e 74 20 63 68 | 75 6e 6b 2c 20 77 68 69 |esent ch|unk, whi|
|000022d0| 63 68 20 64 6f 65 73 20 | 74 68 65 20 63 6f 75 6e |ch does |the coun|
|000022e0| 74 69 6e 67 20 74 68 61 | 74 20 69 73 20 7b 5c 74 |ting tha|t is {\t|
|000022f0| 74 20 77 63 7d 27 73 20 | 7b 5c 65 6d 0d 72 61 69 |t wc}'s |{\em.rai|
|00002300| 73 6f 6e 20 64 27 5c 5e | 65 74 72 65 7d 2c 20 77 |son d'\^|etre}, w|
|00002310| 61 73 20 61 63 74 75 61 | 6c 6c 79 20 6f 6e 65 20 |as actua|lly one |
|00002320| 6f 66 20 74 68 65 20 73 | 69 6d 70 6c 65 73 74 20 |of the s|implest |
|00002330| 74 6f 20 77 72 69 74 65 | 2e 0d 57 65 20 6c 6f 6f |to write|..We loo|
|00002340| 6b 20 61 74 20 65 61 63 | 68 20 63 68 61 72 61 63 |k at eac|h charac|
|00002350| 74 65 72 20 61 6e 64 20 | 63 68 61 6e 67 65 20 73 |ter and |change s|
|00002360| 74 61 74 65 20 69 66 20 | 69 74 20 62 65 67 69 6e |tate if |it begin|
|00002370| 73 20 6f 72 20 65 6e 64 | 73 20 61 20 77 6f 72 64 |s or end|s a word|
|00002380| 2e 0d 3c 3c 53 63 61 6e | 20 66 69 6c 65 3e 3e 3d |..<<Scan| file>>=|
|00002390| 0d 77 68 69 6c 65 20 28 | 31 29 20 7b 0d 20 20 3c |.while (|1) {. <|
|000023a0| 3c 46 69 6c 6c 20 5b 5b | 62 75 66 66 65 72 5d 5d |<Fill [[|buffer]]|
|000023b0| 20 69 66 20 69 74 20 69 | 73 20 65 6d 70 74 79 3b | if it i|s empty;|
|000023c0| 20 5b 5b 62 72 65 61 6b | 5d 5d 20 61 74 20 65 6e | [[break|]] at en|
|000023d0| 64 20 6f 66 20 66 69 6c | 65 3e 3e 0d 20 20 63 20 |d of fil|e>>. c |
|000023e0| 3d 20 2a 70 74 72 2b 2b | 3b 0d 20 20 69 66 20 28 |= *ptr++|;. if (|
|000023f0| 63 20 3e 20 27 20 27 20 | 26 26 20 63 20 3c 20 30 |c > ' ' |&& c < 0|
|00002400| 31 37 37 29 20 7b 0d 20 | 20 20 20 2f 2a 20 76 69 |177) {. | /* vi|
|00002410| 73 69 62 6c 65 20 41 53 | 43 49 49 20 63 6f 64 65 |sible AS|CII code|
|00002420| 73 20 2a 2f 0d 20 20 20 | 20 69 66 20 28 21 69 6e |s */. | if (!in|
|00002430| 5f 77 6f 72 64 29 20 7b | 0d 20 20 20 20 20 20 77 |_word) {|. w|
|00002440| 6f 72 64 5f 63 6f 75 6e | 74 2b 2b 3b 0d 20 20 20 |ord_coun|t++;. |
|00002450| 20 20 20 69 6e 5f 77 6f | 72 64 20 3d 20 31 3b 0d | in_wo|rd = 1;.|
|00002460| 20 20 20 20 7d 0d 20 20 | 20 20 63 6f 6e 74 69 6e | }. | contin|
|00002470| 75 65 3b 0d 20 20 7d 0d | 20 20 69 66 20 28 63 20 |ue;. }.| if (c |
|00002480| 3d 3d 20 27 5c 6e 27 29 | 20 6c 69 6e 65 5f 63 6f |== '\n')| line_co|
|00002490| 75 6e 74 2b 2b 3b 0d 20 | 20 65 6c 73 65 20 69 66 |unt++;. | else if|
|000024a0| 20 28 63 20 21 3d 20 27 | 20 27 20 26 26 20 63 20 | (c != '| ' && c |
|000024b0| 21 3d 20 27 5c 74 27 29 | 20 63 6f 6e 74 69 6e 75 |!= '\t')| continu|
|000024c0| 65 3b 0d 20 20 69 6e 5f | 77 6f 72 64 20 3d 20 30 |e;. in_|word = 0|
|000024d0| 3b 0d 20 20 20 20 2f 2a | 20 63 20 69 73 20 6e 65 |;. /*| c is ne|
|000024e0| 77 6c 69 6e 65 2c 20 73 | 70 61 63 65 2c 20 6f 72 |wline, s|pace, or|
|000024f0| 20 74 61 62 20 2a 2f 0d | 7d 0d 40 0d 0d 42 75 66 | tab */.|}.@..Buf|
|00002500| 66 65 72 65 64 20 49 2f | 4f 20 61 6c 6c 6f 77 73 |fered I/|O allows|
|00002510| 20 75 73 20 74 6f 20 63 | 6f 75 6e 74 20 74 68 65 | us to c|ount the|
|00002520| 20 6e 75 6d 62 65 72 20 | 6f 66 20 63 68 61 72 61 | number |of chara|
|00002530| 63 74 65 72 73 20 61 6c | 6d 6f 73 74 20 66 6f 72 |cters al|most for|
|00002540| 0d 66 72 65 65 2e 0d 3c | 3c 46 69 6c 6c 20 5b 5b |.free..<|<Fill [[|
|00002550| 62 75 66 66 65 72 5d 5d | 20 69 66 20 69 74 20 69 |buffer]]| if it i|
|00002560| 73 20 65 6d 70 74 79 3b | 20 5b 5b 62 72 65 61 6b |s empty;| [[break|
|00002570| 5d 5d 20 61 74 20 65 6e | 64 20 6f 66 20 66 69 6c |]] at en|d of fil|
|00002580| 65 3e 3e 3d 0d 69 66 20 | 28 70 74 72 20 3e 3d 20 |e>>=.if |(ptr >= |
|00002590| 62 75 66 5f 65 6e 64 29 | 20 7b 0d 20 20 70 74 72 |buf_end)| {. ptr|
|000025a0| 20 3d 20 62 75 66 66 65 | 72 3b 0d 20 20 63 20 3d | = buffe|r;. c =|
|000025b0| 20 72 65 61 64 28 66 64 | 2c 20 70 74 72 2c 20 62 | read(fd|, ptr, b|
|000025c0| 75 66 5f 73 69 7a 65 29 | 3b 0d 20 20 69 66 20 28 |uf_size)|;. if (|
|000025d0| 63 20 3c 3d 20 30 29 20 | 62 72 65 61 6b 3b 0d 20 |c <= 0) |break;. |
|000025e0| 20 63 68 61 72 5f 63 6f | 75 6e 74 20 2b 3d 20 63 | char_co|unt += c|
|000025f0| 3b 0d 20 20 62 75 66 5f | 65 6e 64 20 3d 20 62 75 |;. buf_|end = bu|
|00002600| 66 66 65 72 20 2b 20 63 | 3b 0d 7d 0d 40 0d 0d 49 |ffer + c|;.}.@..I|
|00002610| 74 27 73 20 63 6f 6e 76 | 65 6e 69 65 6e 74 20 74 |t's conv|enient t|
|00002620| 6f 20 6f 75 74 70 75 74 | 20 74 68 65 20 73 74 61 |o output| the sta|
|00002630| 74 69 73 74 69 63 73 20 | 62 79 20 64 65 66 69 6e |tistics |by defin|
|00002640| 69 6e 67 20 61 20 6e 65 | 77 20 66 75 6e 63 74 69 |ing a ne|w functi|
|00002650| 6f 6e 0d 5b 5b 77 63 5f | 70 72 69 6e 74 5d 5d 3b |on.[[wc_|print]];|
|00002660| 20 74 68 65 6e 20 74 68 | 65 20 73 61 6d 65 20 66 | then th|e same f|
|00002670| 75 6e 63 74 69 6f 6e 20 | 63 61 6e 20 62 65 20 75 |unction |can be u|
|00002680| 73 65 64 20 66 6f 72 20 | 74 68 65 20 74 6f 74 61 |sed for |the tota|
|00002690| 6c 73 2e 0d 41 64 64 69 | 74 69 6f 6e 61 6c 6c 79 |ls..Addi|tionally|
|000026a0| 20 77 65 20 6d 75 73 74 | 20 64 65 63 69 64 65 20 | we must| decide |
|000026b0| 68 65 72 65 20 69 66 20 | 77 65 20 6b 6e 6f 77 20 |here if |we know |
|000026c0| 74 68 65 20 6e 61 6d 65 | 20 6f 66 20 74 68 65 20 |the name| of the |
|000026d0| 66 69 6c 65 20 77 65 20 | 68 61 76 65 0d 70 72 6f |file we |have.pro|
|000026e0| 63 65 73 73 65 64 20 6f | 72 20 69 66 20 69 74 20 |cessed o|r if it |
|000026f0| 77 61 73 20 6a 75 73 74 | 20 5b 5b 73 74 64 69 6e |was just| [[stdin|
|00002700| 5d 5d 2e 7b 5c 68 66 75 | 7a 7a 3d 31 31 2e 31 70 |]].{\hfu|zz=11.1p|
|00002710| 74 5c 70 61 72 7d 0d 3c | 3c 57 72 69 74 65 20 73 |t\par}.<|<Write s|
|00002720| 74 61 74 69 73 74 69 63 | 73 20 66 6f 72 20 66 69 |tatistic|s for fi|
|00002730| 6c 65 3e 3e 3d 0d 77 63 | 5f 70 72 69 6e 74 28 77 |le>>=.wc|_print(w|
|00002740| 68 69 63 68 2c 20 63 68 | 61 72 5f 63 6f 75 6e 74 |hich, ch|ar_count|
|00002750| 2c 20 77 6f 72 64 5f 63 | 6f 75 6e 74 2c 20 0d 20 |, word_c|ount, . |
|00002760| 20 20 20 20 20 20 20 20 | 6c 69 6e 65 5f 63 6f 75 | |line_cou|
|00002770| 6e 74 29 3b 0d 69 66 20 | 28 66 69 6c 65 5f 63 6f |nt);.if |(file_co|
|00002780| 75 6e 74 29 0d 20 20 70 | 72 69 6e 74 66 28 22 20 |unt). p|rintf(" |
|00002790| 25 73 5c 6e 22 2c 20 2a | 61 72 67 76 29 3b 20 2f |%s\n", *|argv); /|
|000027a0| 2a 20 6e 6f 74 20 73 74 | 64 69 6e 20 2a 2f 0d 65 |* not st|din */.e|
|000027b0| 6c 73 65 20 0d 20 20 70 | 72 69 6e 74 66 28 22 5c |lse . p|rintf("\|
|000027c0| 6e 22 29 3b 20 20 20 20 | 20 20 20 20 20 20 20 2f |n"); | /|
|000027d0| 2a 20 73 74 64 69 6e 20 | 2a 2f 0d 40 0d 3c 3c 55 |* stdin |*/.@.<<U|
|000027e0| 70 64 61 74 65 20 67 72 | 61 6e 64 20 74 6f 74 61 |pdate gr|and tota|
|000027f0| 6c 73 3e 3e 3d 0d 74 6f | 74 5f 6c 69 6e 65 5f 63 |ls>>=.to|t_line_c|
|00002800| 6f 75 6e 74 20 2b 3d 20 | 6c 69 6e 65 5f 63 6f 75 |ount += |line_cou|
|00002810| 6e 74 3b 0d 74 6f 74 5f | 77 6f 72 64 5f 63 6f 75 |nt;.tot_|word_cou|
|00002820| 6e 74 20 2b 3d 20 77 6f | 72 64 5f 63 6f 75 6e 74 |nt += wo|rd_count|
|00002830| 3b 0d 74 6f 74 5f 63 68 | 61 72 5f 63 6f 75 6e 74 |;.tot_ch|ar_count|
|00002840| 20 2b 3d 20 63 68 61 72 | 5f 63 6f 75 6e 74 3b 0d | += char|_count;.|
|00002850| 40 0d 0d 57 65 20 6d 69 | 67 68 74 20 61 73 20 77 |@..We mi|ght as w|
|00002860| 65 6c 6c 20 69 6d 70 72 | 6f 76 65 20 61 20 62 69 |ell impr|ove a bi|
|00002870| 74 20 6f 6e 20 7b 5c 73 | 63 20 55 6e 69 78 7d 27 |t on {\s|c Unix}'|
|00002880| 73 20 7b 5c 74 74 20 77 | 63 7d 20 62 79 20 64 69 |s {\tt w|c} by di|
|00002890| 73 70 6c 61 79 69 6e 67 | 0d 74 68 65 20 6e 75 6d |splaying|.the num|
|000028a0| 62 65 72 20 6f 66 20 66 | 69 6c 65 73 20 74 6f 6f |ber of f|iles too|
|000028b0| 2e 0d 3c 3c 50 72 69 6e | 74 20 74 68 65 20 67 72 |..<<Prin|t the gr|
|000028c0| 61 6e 64 20 74 6f 74 61 | 6c 73 20 69 66 20 74 68 |and tota|ls if th|
|000028d0| 65 72 65 20 77 65 72 65 | 20 6d 75 6c 74 69 70 6c |ere were| multipl|
|000028e0| 65 20 66 69 6c 65 73 3e | 3e 3d 0d 69 66 20 28 66 |e files>|>=.if (f|
|000028f0| 69 6c 65 5f 63 6f 75 6e | 74 20 3e 20 31 29 20 7b |ile_coun|t > 1) {|
|00002900| 0d 20 20 77 63 5f 70 72 | 69 6e 74 28 77 68 69 63 |. wc_pr|int(whic|
|00002910| 68 2c 20 74 6f 74 5f 63 | 68 61 72 5f 63 6f 75 6e |h, tot_c|har_coun|
|00002920| 74 2c 20 0d 20 20 20 20 | 20 20 20 20 20 20 20 74 |t, . | t|
|00002930| 6f 74 5f 77 6f 72 64 5f | 63 6f 75 6e 74 2c 20 74 |ot_word_|count, t|
|00002940| 6f 74 5f 6c 69 6e 65 5f | 63 6f 75 6e 74 29 3b 0d |ot_line_|count);.|
|00002950| 20 20 70 72 69 6e 74 66 | 28 22 20 74 6f 74 61 6c | printf|(" total|
|00002960| 20 69 6e 20 25 64 20 66 | 69 6c 65 73 5c 6e 22 2c | in %d f|iles\n",|
|00002970| 20 66 69 6c 65 5f 63 6f | 75 6e 74 29 3b 0d 7d 0d | file_co|unt);.}.|
|00002980| 40 0d 0d 48 65 72 65 20 | 6e 6f 77 20 69 73 20 74 |@..Here |now is t|
|00002990| 68 65 20 66 75 6e 63 74 | 69 6f 6e 20 74 68 61 74 |he funct|ion that|
|000029a0| 20 70 72 69 6e 74 73 20 | 74 68 65 20 76 61 6c 75 | prints |the valu|
|000029b0| 65 73 20 61 63 63 6f 72 | 64 69 6e 67 20 74 6f 20 |es accor|ding to |
|000029c0| 74 68 65 0d 73 70 65 63 | 69 66 69 65 64 20 6f 70 |the.spec|ified op|
|000029d0| 74 69 6f 6e 73 2e 0d 54 | 68 65 20 63 61 6c 6c 69 |tions..T|he calli|
|000029e0| 6e 67 20 72 6f 75 74 69 | 6e 65 20 69 73 20 73 75 |ng routi|ne is su|
|000029f0| 70 70 6f 73 65 64 20 74 | 6f 20 73 75 70 70 6c 79 |pposed t|o supply|
|00002a00| 20 61 20 6e 65 77 6c 69 | 6e 65 2e 0d 49 66 20 61 | a newli|ne..If a|
|00002a10| 6e 20 69 6e 76 61 6c 69 | 64 20 6f 70 74 69 6f 6e |n invali|d option|
|00002a20| 20 63 68 61 72 61 63 74 | 65 72 20 69 73 20 66 6f | charact|er is fo|
|00002a30| 75 6e 64 20 77 65 20 69 | 6e 66 6f 72 6d 20 74 68 |und we i|nform th|
|00002a40| 65 20 75 73 65 72 20 61 | 62 6f 75 74 20 70 72 6f |e user a|bout pro|
|00002a50| 70 65 72 0d 75 73 61 67 | 65 20 6f 66 20 74 68 65 |per.usag|e of the|
|00002a60| 20 63 6f 6d 6d 61 6e 64 | 2e 0d 43 6f 75 6e 74 73 | command|..Counts|
|00002a70| 20 61 72 65 20 70 72 69 | 6e 74 65 64 20 69 6e 20 | are pri|nted in |
|00002a80| 38 2d 64 69 67 69 74 20 | 66 69 65 6c 64 73 20 73 |8-digit |fields s|
|00002a90| 6f 20 74 68 61 74 20 74 | 68 65 79 20 77 69 6c 6c |o that t|hey will|
|00002aa0| 20 6c 69 6e 65 20 75 70 | 20 69 6e 0d 63 6f 6c 75 | line up| in.colu|
|00002ab0| 6d 6e 73 2e 0d 3c 3c 44 | 65 66 69 6e 69 74 69 6f |mns..<<D|efinitio|
|00002ac0| 6e 73 3e 3e 3d 0d 23 64 | 65 66 69 6e 65 20 70 72 |ns>>=.#d|efine pr|
|00002ad0| 69 6e 74 5f 63 6f 75 6e | 74 28 6e 29 20 70 72 69 |int_coun|t(n) pri|
|00002ae0| 6e 74 66 28 22 25 38 6c | 64 22 2c 20 6e 29 0d 40 |ntf("%8l|d", n).@|
|00002af0| 20 25 64 65 66 20 70 72 | 69 6e 74 5f 63 6f 75 6e | %def pr|int_coun|
|00002b00| 74 0d 3c 3c 46 75 6e 63 | 74 69 6f 6e 73 3e 3e 3d |t.<<Func|tions>>=|
|00002b10| 0d 77 63 5f 70 72 69 6e | 74 28 77 68 69 63 68 2c |.wc_prin|t(which,|
|00002b20| 20 63 68 61 72 5f 63 6f | 75 6e 74 2c 20 77 6f 72 | char_co|unt, wor|
|00002b30| 64 5f 63 6f 75 6e 74 2c | 20 6c 69 6e 65 5f 63 6f |d_count,| line_co|
|00002b40| 75 6e 74 29 0d 20 20 63 | 68 61 72 20 2a 77 68 69 |unt). c|har *whi|
|00002b50| 63 68 3b 20 20 2f 2a 20 | 77 68 69 63 68 20 63 6f |ch; /* |which co|
|00002b60| 75 6e 74 73 20 74 6f 20 | 70 72 69 6e 74 20 2a 2f |unts to |print */|
|00002b70| 0d 20 20 6c 6f 6e 67 20 | 63 68 61 72 5f 63 6f 75 |. long |char_cou|
|00002b80| 6e 74 2c 20 77 6f 72 64 | 5f 63 6f 75 6e 74 2c 20 |nt, word|_count, |
|00002b90| 6c 69 6e 65 5f 63 6f 75 | 6e 74 3b 0d 20 20 20 20 |line_cou|nt;. |
|00002ba0| 2f 2a 20 67 69 76 65 6e | 20 74 6f 74 61 6c 73 20 |/* given| totals |
|00002bb0| 2a 2f 0d 7b 0d 20 20 77 | 68 69 6c 65 20 28 2a 77 |*/.{. w|hile (*w|
|00002bc0| 68 69 63 68 29 0d 20 20 | 20 20 73 77 69 74 63 68 |hich). | switch|
|00002bd0| 20 28 2a 77 68 69 63 68 | 2b 2b 29 20 7b 0d 20 20 | (*which|++) {. |
|00002be0| 20 20 20 20 63 61 73 65 | 20 27 6c 27 3a 20 70 72 | case| 'l': pr|
|00002bf0| 69 6e 74 5f 63 6f 75 6e | 74 28 6c 69 6e 65 5f 63 |int_coun|t(line_c|
|00002c00| 6f 75 6e 74 29 3b 0d 20 | 20 20 20 20 20 20 20 62 |ount);. | b|
|00002c10| 72 65 61 6b 3b 0d 20 20 | 20 20 20 20 63 61 73 65 |reak;. | case|
|00002c20| 20 27 77 27 3a 20 70 72 | 69 6e 74 5f 63 6f 75 6e | 'w': pr|int_coun|
|00002c30| 74 28 77 6f 72 64 5f 63 | 6f 75 6e 74 29 3b 0d 20 |t(word_c|ount);. |
|00002c40| 20 20 20 20 20 20 20 62 | 72 65 61 6b 3b 0d 20 20 | b|reak;. |
|00002c50| 20 20 20 20 63 61 73 65 | 20 27 63 27 3a 20 70 72 | case| 'c': pr|
|00002c60| 69 6e 74 5f 63 6f 75 6e | 74 28 63 68 61 72 5f 63 |int_coun|t(char_c|
|00002c70| 6f 75 6e 74 29 3b 0d 20 | 20 20 20 20 20 20 20 62 |ount);. | b|
|00002c80| 72 65 61 6b 3b 0d 20 20 | 20 20 20 20 64 65 66 61 |reak;. | defa|
|00002c90| 75 6c 74 3a 0d 20 20 20 | 20 20 20 20 20 69 66 20 |ult:. | if |
|00002ca0| 28 28 73 74 61 74 75 73 | 20 26 20 75 73 61 67 65 |((status| & usage|
|00002cb0| 5f 65 72 72 6f 72 29 20 | 3d 3d 20 30 29 20 7b 0d |_error) |== 0) {.|
|00002cc0| 20 20 20 20 20 20 20 20 | 20 20 66 70 72 69 6e 74 | | fprint|
|00002cd0| 66 28 73 74 64 65 72 72 | 2c 0d 20 20 20 20 20 20 |f(stderr|,. |
|00002ce0| 20 20 20 20 20 20 22 5c | 6e 55 73 61 67 65 3a 20 | "\|nUsage: |
|00002cf0| 25 73 20 5b 2d 6c 77 63 | 5d 20 5b 66 69 6c 65 6e |%s [-lwc|] [filen|
|00002d00| 61 6d 65 20 2e 2e 2e 5d | 5c 6e 22 2c 0d 20 20 20 |ame ...]|\n",. |
|00002d10| 20 20 20 20 20 20 20 20 | 20 70 72 6f 67 5f 6e 61 | | prog_na|
|00002d20| 6d 65 29 3b 0d 20 09 20 | 20 73 74 61 74 75 73 20 |me);. . | status |
|00002d30| 7c 3d 20 75 73 61 67 65 | 5f 65 72 72 6f 72 3b 0d ||= usage|_error;.|
|00002d40| 20 20 20 20 20 20 20 20 | 7d 0d 20 20 20 20 7d 0d | |}. }.|
|00002d50| 7d 0d 40 20 25 64 65 66 | 20 77 63 5f 70 72 69 6e |}.@ %def| wc_prin|
|00002d60| 74 0d 0d 49 6e 63 69 64 | 65 6e 74 61 6c 6c 79 2c |t..Incid|entally,|
|00002d70| 20 61 20 74 65 73 74 20 | 6f 66 20 74 68 69 73 20 | a test |of this |
|00002d80| 70 72 6f 67 72 61 6d 20 | 61 67 61 69 6e 73 74 20 |program |against |
|00002d90| 74 68 65 20 73 79 73 74 | 65 6d 20 7b 5c 74 74 20 |the syst|em {\tt |
|00002da0| 77 63 7d 0d 63 6f 6d 6d | 61 6e 64 20 6f 6e 20 61 |wc}.comm|and on a|
|00002db0| 20 53 50 41 52 43 73 74 | 61 74 69 6f 6e 20 73 68 | SPARCst|ation sh|
|00002dc0| 6f 77 65 64 20 74 68 61 | 74 20 74 68 65 20 60 60 |owed tha|t the ``|
|00002dd0| 6f 66 66 69 63 69 61 6c | 27 27 20 7b 5c 74 74 20 |official|'' {\tt |
|00002de0| 77 63 7d 20 77 61 73 0d | 73 6c 69 67 68 74 6c 79 |wc} was.|slightly|
|00002df0| 20 73 6c 6f 77 65 72 2e | 0d 46 75 72 74 68 65 72 | slower.|.Further|
|00002e00| 6d 6f 72 65 2c 20 61 6c | 74 68 6f 75 67 68 20 74 |more, al|though t|
|00002e10| 68 61 74 20 7b 5c 74 74 | 20 77 63 7d 20 67 61 76 |hat {\tt| wc} gav|
|00002e20| 65 20 61 6e 20 61 70 70 | 72 6f 70 72 69 61 74 65 |e an app|ropriate|
|00002e30| 20 65 72 72 6f 72 20 6d | 65 73 73 61 67 65 0d 66 | error m|essage.f|
|00002e40| 6f 72 20 74 68 65 20 6f | 70 74 69 6f 6e 73 20 60 |or the o|ptions `|
|00002e50| 7b 5c 74 74 2d 61 62 63 | 7d 27 2c 20 69 74 20 6d |{\tt-abc|}', it m|
|00002e60| 61 64 65 20 6e 6f 20 63 | 6f 6d 70 6c 61 69 6e 74 |ade no c|omplaint|
|00002e70| 73 20 61 62 6f 75 74 20 | 74 68 65 20 6f 70 74 69 |s about |the opti|
|00002e80| 6f 6e 73 0d 60 7b 5c 74 | 74 2d 6c 61 62 63 7d 27 |ons.`{\t|t-labc}'|
|00002e90| 21 0d 44 61 72 65 20 77 | 65 20 73 75 67 67 65 73 |!.Dare w|e sugges|
|00002ea0| 74 20 74 68 61 74 20 74 | 68 65 20 73 79 73 74 65 |t that t|he syste|
|00002eb0| 6d 20 72 6f 75 74 69 6e | 65 20 6d 69 67 68 74 20 |m routin|e might |
|00002ec0| 68 61 76 65 20 62 65 65 | 6e 20 62 65 74 74 65 72 |have bee|n better|
|00002ed0| 20 69 66 20 69 74 73 0d | 70 72 6f 67 72 61 6d 6d | if its.|programm|
|00002ee0| 65 72 20 68 61 64 20 75 | 73 65 64 20 61 20 6d 6f |er had u|sed a mo|
|00002ef0| 72 65 20 6c 69 74 65 72 | 61 74 65 20 61 70 70 72 |re liter|ate appr|
|00002f00| 6f 61 63 68 3f 0d 40 0d | 0d 5c 73 65 63 74 69 6f |oach?.@.|.\sectio|
|00002f10| 6e 2a 7b 4c 69 73 74 20 | 6f 66 20 63 6f 64 65 20 |n*{List |of code |
|00002f20| 63 68 75 6e 6b 73 7d 0d | 54 68 69 73 20 6c 69 73 |chunks}.|This lis|
|00002f30| 74 20 69 73 20 67 65 6e | 65 72 61 74 65 64 20 61 |t is gen|erated a|
|00002f40| 75 74 6f 6d 61 74 69 63 | 61 6c 6c 79 2e 0d 54 68 |utomatic|ally..Th|
|00002f50| 65 20 6e 75 6d 65 72 61 | 6c 20 69 73 20 74 68 61 |e numera|l is tha|
|00002f60| 74 20 6f 66 20 74 68 65 | 20 66 69 72 73 74 20 64 |t of the| first d|
|00002f70| 65 66 69 6e 69 74 69 6f | 6e 20 6f 66 20 74 68 65 |efinitio|n of the|
|00002f80| 20 63 68 75 6e 6b 2e 0d | 5c 6e 6f 77 65 62 63 68 | chunk..|\nowebch|
|00002f90| 75 6e 6b 73 0d 5c 62 65 | 67 69 6e 7b 6d 75 6c 74 |unks.\be|gin{mult|
|00002fa0| 69 63 6f 6c 73 7d 7b 32 | 7d 5b 5c 73 65 63 74 69 |icols}{2|}[\secti|
|00002fb0| 6f 6e 2a 7b 49 6e 64 65 | 78 7d 20 0d 48 65 72 65 |on*{Inde|x} .Here|
|00002fc0| 20 69 73 20 61 20 6c 69 | 73 74 20 6f 66 20 74 68 | is a li|st of th|
|00002fd0| 65 20 69 64 65 6e 74 69 | 66 69 65 72 73 20 75 73 |e identi|fiers us|
|00002fe0| 65 64 2c 20 61 6e 64 20 | 77 68 65 72 65 20 74 68 |ed, and |where th|
|00002ff0| 65 79 20 61 70 70 65 61 | 72 2e 0d 55 6e 64 65 72 |ey appea|r..Under|
|00003000| 6c 69 6e 65 64 20 65 6e | 74 72 69 65 73 20 69 6e |lined en|tries in|
|00003010| 64 69 63 61 74 65 20 74 | 68 65 20 70 6c 61 63 65 |dicate t|he place|
|00003020| 20 6f 66 20 64 65 66 69 | 6e 69 74 69 6f 6e 2e 0d | of defi|nition..|
|00003030| 54 68 69 73 20 69 6e 64 | 65 78 20 69 73 20 67 65 |This ind|ex is ge|
|00003040| 6e 65 72 61 74 65 64 20 | 61 75 74 6f 6d 61 74 69 |nerated |automati|
|00003050| 63 61 6c 6c 79 2e 5d 0d | 5c 6e 6f 77 65 62 69 6e |cally.].|\nowebin|
|00003060| 64 65 78 0d 5c 65 6e 64 | 7b 6d 75 6c 74 69 63 6f |dex.\end|{multico|
|00003070| 6c 73 7d 0d 0d | |ls}.. | |
+--------+-------------------------+-------------------------+--------+--------+