home *** CD-ROM | disk | FTP | other *** search
open in:
MacOS 8.1
|
Win98
|
DOS
browse contents |
view JSON data
|
view as text
This file was processed as: SHell self-extracting ARchive
(archive/shar).
Confidence | Program | Detection | Match Type | Support
|
---|
100%
| dexvert
| Newsgroup Content (archive/news)
| magic
| Supported |
100%
| dexvert
| SHell self-extracting ARchive (archive/shar)
| magic
| Supported |
100%
| dexvert
| Internet Message Format (text/imf)
| magic
| Supported |
1%
| dexvert
| Text File (text/txt)
| fallback
| Supported |
100%
| file
| news or mail, ASCII text
| default
| |
100%
| checkBytes
| Printable ASCII
| default
| |
100%
| perlTextCheck
| Likely Text (Perl)
| default
| |
100%
| siegfried
| fmt/329 Shell Archive Format
| default
| |
100%
| detectItEasy
| Format: plain text[LF]
| default (weak)
| |
100%
| xdgMime
| message/rfc822
| default
|
|
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 53 75 62 6a 65 63 74 3a | 20 20 76 32 34 69 30 39 |Subject:| v24i09|
|00000010| 31 3a 20 20 50 72 6f 67 | 72 61 6d 20 69 64 65 6e |1: Prog|ram iden|
|00000020| 74 69 66 69 65 72 20 64 | 61 74 61 62 61 73 65 20 |tifier d|atabase |
|00000030| 74 6f 6f 6c 73 2c 20 50 | 61 72 74 30 33 2f 30 37 |tools, P|art03/07|
|00000040| 0a 4e 65 77 73 67 72 6f | 75 70 73 3a 20 63 6f 6d |.Newsgro|ups: com|
|00000050| 70 2e 73 6f 75 72 63 65 | 73 2e 75 6e 69 78 0a 41 |p.source|s.unix.A|
|00000060| 70 70 72 6f 76 65 64 3a | 20 72 73 61 6c 7a 40 75 |pproved:| rsalz@u|
|00000070| 75 6e 65 74 2e 55 55 2e | 4e 45 54 0a 58 2d 43 68 |unet.UU.|NET.X-Ch|
|00000080| 65 63 6b 73 75 6d 2d 53 | 6e 65 66 72 75 3a 20 39 |ecksum-S|nefru: 9|
|00000090| 61 32 64 34 38 31 35 20 | 31 36 37 38 36 64 64 30 |a2d4815 |16786dd0|
|000000a0| 20 39 30 65 62 37 36 37 | 38 20 37 34 64 33 61 32 | 90eb767|8 74d3a2|
|000000b0| 35 39 0a 0a 53 75 62 6d | 69 74 74 65 64 2d 62 79 |59..Subm|itted-by|
|000000c0| 3a 20 54 6f 6d 20 48 6f | 72 73 6c 65 79 20 3c 74 |: Tom Ho|rsley <t|
|000000d0| 6f 6d 40 68 63 78 32 2e | 73 73 64 2e 63 73 64 2e |om@hcx2.|ssd.csd.|
|000000e0| 68 61 72 72 69 73 2e 63 | 6f 6d 3e 0a 50 6f 73 74 |harris.c|om>.Post|
|000000f0| 69 6e 67 2d 6e 75 6d 62 | 65 72 3a 20 56 6f 6c 75 |ing-numb|er: Volu|
|00000100| 6d 65 20 32 34 2c 20 49 | 73 73 75 65 20 39 31 0a |me 24, I|ssue 91.|
|00000110| 41 72 63 68 69 76 65 2d | 6e 61 6d 65 3a 20 6d 6b |Archive-|name: mk|
|00000120| 69 64 32 2f 70 61 72 74 | 30 33 0a 0a 23 21 20 2f |id2/part|03..#! /|
|00000130| 62 69 6e 2f 73 68 0a 23 | 20 54 68 69 73 20 69 73 |bin/sh.#| This is|
|00000140| 20 61 20 73 68 65 6c 6c | 20 61 72 63 68 69 76 65 | a shell| archive|
|00000150| 2e 20 20 52 65 6d 6f 76 | 65 20 61 6e 79 74 68 69 |. Remov|e anythi|
|00000160| 6e 67 20 62 65 66 6f 72 | 65 20 74 68 69 73 20 6c |ng befor|e this l|
|00000170| 69 6e 65 2c 20 74 68 65 | 6e 20 75 6e 70 61 63 6b |ine, the|n unpack|
|00000180| 0a 23 20 69 74 20 62 79 | 20 73 61 76 69 6e 67 20 |.# it by| saving |
|00000190| 69 74 20 69 6e 74 6f 20 | 61 20 66 69 6c 65 20 61 |it into |a file a|
|000001a0| 6e 64 20 74 79 70 69 6e | 67 20 22 73 68 20 66 69 |nd typin|g "sh fi|
|000001b0| 6c 65 22 2e 20 20 54 6f | 20 6f 76 65 72 77 72 69 |le". To| overwri|
|000001c0| 74 65 20 65 78 69 73 74 | 69 6e 67 0a 23 20 66 69 |te exist|ing.# fi|
|000001d0| 6c 65 73 2c 20 74 79 70 | 65 20 22 73 68 20 66 69 |les, typ|e "sh fi|
|000001e0| 6c 65 20 2d 63 22 2e 20 | 20 59 6f 75 20 63 61 6e |le -c". | You can|
|000001f0| 20 61 6c 73 6f 20 66 65 | 65 64 20 74 68 69 73 20 | also fe|ed this |
|00000200| 61 73 20 73 74 61 6e 64 | 61 72 64 20 69 6e 70 75 |as stand|ard inpu|
|00000210| 74 20 76 69 61 0a 23 20 | 75 6e 73 68 61 72 2c 20 |t via.# |unshar, |
|00000220| 6f 72 20 62 79 20 74 79 | 70 69 6e 67 20 22 73 68 |or by ty|ping "sh|
|00000230| 20 3c 66 69 6c 65 22 2c | 20 65 2e 67 2e 2e 20 20 | <file",| e.g.. |
|00000240| 49 66 20 74 68 69 73 20 | 61 72 63 68 69 76 65 20 |If this |archive |
|00000250| 69 73 20 63 6f 6d 70 6c | 65 74 65 2c 20 79 6f 75 |is compl|ete, you|
|00000260| 0a 23 20 77 69 6c 6c 20 | 73 65 65 20 74 68 65 20 |.# will |see the |
|00000270| 66 6f 6c 6c 6f 77 69 6e | 67 20 6d 65 73 73 61 67 |followin|g messag|
|00000280| 65 20 61 74 20 74 68 65 | 20 65 6e 64 3a 0a 23 09 |e at the| end:.#.|
|00000290| 09 22 45 6e 64 20 6f 66 | 20 61 72 63 68 69 76 65 |."End of| archive|
|000002a0| 20 33 20 28 6f 66 20 37 | 29 2e 22 0a 23 20 43 6f | 3 (of 7|).".# Co|
|000002b0| 6e 74 65 6e 74 73 3a 20 | 20 4d 61 6b 65 66 69 6c |ntents: | Makefil|
|000002c0| 65 20 67 65 74 73 63 61 | 6e 2e 63 20 69 69 64 64 |e getsca|n.c iidd|
|000002d0| 65 66 2e 68 20 6c 69 64 | 2e 31 20 73 63 61 6e 2d |ef.h lid|.1 scan-|
|000002e0| 61 73 6d 2e 63 0a 23 20 | 57 72 61 70 70 65 64 20 |asm.c.# |Wrapped |
|000002f0| 62 79 20 74 6f 6d 40 68 | 63 78 32 20 6f 6e 20 54 |by tom@h|cx2 on T|
|00000300| 75 65 20 46 65 62 20 32 | 36 20 31 30 3a 30 33 3a |ue Feb 2|6 10:03:|
|00000310| 30 33 20 31 39 39 31 0a | 50 41 54 48 3d 2f 62 69 |03 1991.|PATH=/bi|
|00000320| 6e 3a 2f 75 73 72 2f 62 | 69 6e 3a 2f 75 73 72 2f |n:/usr/b|in:/usr/|
|00000330| 75 63 62 20 3b 20 65 78 | 70 6f 72 74 20 50 41 54 |ucb ; ex|port PAT|
|00000340| 48 0a 69 66 20 74 65 73 | 74 20 2d 66 20 27 4d 61 |H.if tes|t -f 'Ma|
|00000350| 6b 65 66 69 6c 65 27 20 | 2d 61 20 22 24 7b 31 7d |kefile' |-a "${1}|
|00000360| 22 20 21 3d 20 22 2d 63 | 22 20 3b 20 74 68 65 6e |" != "-c|" ; then|
|00000370| 20 0a 20 20 65 63 68 6f | 20 73 68 61 72 3a 20 57 | . echo| shar: W|
|00000380| 69 6c 6c 20 6e 6f 74 20 | 63 6c 6f 62 62 65 72 20 |ill not |clobber |
|00000390| 65 78 69 73 74 69 6e 67 | 20 66 69 6c 65 20 5c 22 |existing| file \"|
|000003a0| 27 4d 61 6b 65 66 69 6c | 65 27 5c 22 0a 65 6c 73 |'Makefil|e'\".els|
|000003b0| 65 0a 65 63 68 6f 20 73 | 68 61 72 3a 20 45 78 74 |e.echo s|har: Ext|
|000003c0| 72 61 63 74 69 6e 67 20 | 5c 22 27 4d 61 6b 65 66 |racting |\"'Makef|
|000003d0| 69 6c 65 27 5c 22 20 5c | 28 37 34 39 31 20 63 68 |ile'\" \|(7491 ch|
|000003e0| 61 72 61 63 74 65 72 73 | 5c 29 0a 73 65 64 20 22 |aracters|\).sed "|
|000003f0| 73 2f 5e 58 2f 2f 22 20 | 3e 27 4d 61 6b 65 66 69 |s/^X//" |>'Makefi|
|00000400| 6c 65 27 20 3c 3c 27 45 | 4e 44 5f 4f 46 5f 46 49 |le' <<'E|ND_OF_FI|
|00000410| 4c 45 27 0a 58 23 21 2f | 62 69 6e 2f 6d 61 6b 65 |LE'.X#!/|bin/make|
|00000420| 20 2d 66 0a 58 0a 58 23 | 20 43 6f 70 79 72 69 67 | -f.X.X#| Copyrig|
|00000430| 68 74 20 28 63 29 20 31 | 39 38 36 2c 20 47 72 65 |ht (c) 1|986, Gre|
|00000440| 67 20 4d 63 47 61 72 79 | 0a 58 23 20 40 28 23 29 |g McGary|.X# @(#)|
|00000450| 6d 61 6b 65 66 69 6c 65 | 09 31 2e 33 20 38 36 2f |makefile|.1.3 86/|
|00000460| 31 31 2f 30 36 0a 58 0a | 58 23 20 2d 2d 2d 2d 2d |11/06.X.|X# -----|
|00000470| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00000480| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00000490| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|000004a0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 0a |--------|-------.|
|000004b0| 58 23 20 53 79 73 74 65 | 6d 20 44 65 70 65 6e 64 |X# Syste|m Depend|
|000004c0| 65 6e 74 20 43 6f 6e 66 | 69 67 75 72 61 74 69 6f |ent Conf|iguratio|
|000004d0| 6e 3a 0a 58 23 20 20 20 | 43 68 6f 6f 73 65 20 61 |n:.X# |Choose a|
|000004e0| 20 70 72 65 2d 70 61 63 | 6b 61 67 65 64 20 73 65 | pre-pac|kaged se|
|000004f0| 74 20 6f 66 20 6f 70 74 | 69 6f 6e 73 20 62 65 6c |t of opt|ions bel|
|00000500| 6f 77 2c 20 6f 72 20 72 | 6f 6c 6c 20 79 6f 75 72 |ow, or r|oll your|
|00000510| 20 6f 77 6e 2e 0a 58 23 | 20 20 20 54 68 65 20 72 | own..X#| The r|
|00000520| 65 6c 65 76 61 6e 74 20 | 6f 70 74 69 6f 6e 73 20 |elevant |options |
|00000530| 61 72 65 20 61 73 20 66 | 6f 6c 6c 6f 77 73 3a 0a |are as f|ollows:.|
|00000540| 58 23 0a 58 23 20 2a 20 | 49 66 20 79 6f 75 20 68 |X#.X# * |If you h|
|00000550| 61 76 65 20 74 68 65 20 | 60 50 57 27 20 6c 69 62 |ave the |`PW' lib|
|00000560| 72 61 72 79 20 77 68 69 | 63 68 20 69 6e 63 6c 75 |rary whi|ch inclu|
|00000570| 64 65 73 20 74 68 65 20 | 72 65 67 75 6c 61 72 2d |des the |regular-|
|00000580| 65 78 70 72 65 73 73 69 | 6f 6e 0a 58 23 20 20 20 |expressi|on.X# |
|00000590| 66 75 6e 63 69 6f 6e 73 | 20 72 65 67 63 6d 70 28 |funcions| regcmp(|
|000005a0| 33 29 20 61 6e 64 20 72 | 65 67 65 78 28 33 29 2c |3) and r|egex(3),|
|000005b0| 20 74 68 65 6e 20 75 73 | 65 20 60 2d 44 52 45 47 | then us|e `-DREG|
|000005c0| 45 58 27 20 69 6e 20 44 | 45 46 53 2c 20 61 6e 64 |EX' in D|EFS, and|
|000005d0| 0a 58 23 20 20 20 60 2d | 6c 50 57 27 20 69 6e 20 |.X# `-|lPW' in |
|000005e0| 4c 49 42 53 2e 20 20 49 | 66 20 79 6f 75 20 68 61 |LIBS. I|f you ha|
|000005f0| 76 65 20 74 68 65 20 72 | 65 67 75 6c 61 72 2d 65 |ve the r|egular-e|
|00000600| 78 70 72 65 73 73 69 6f | 6e 20 66 75 6e 63 74 69 |xpressio|n functi|
|00000610| 6f 6e 73 0a 58 23 20 20 | 20 72 65 5f 63 6f 6d 70 |ons.X# | re_comp|
|00000620| 28 33 29 20 61 6e 64 20 | 72 65 5f 65 78 65 63 28 |(3) and |re_exec(|
|00000630| 33 29 2c 20 75 73 65 20 | 60 2d 44 52 45 5f 45 58 |3), use |`-DRE_EX|
|00000640| 45 43 27 20 69 6e 20 44 | 45 46 53 2e 20 20 49 66 |EC' in D|EFS. If|
|00000650| 20 79 6f 75 20 64 6f 6e | 27 74 0a 58 23 20 20 20 | you don|'t.X# |
|00000660| 68 61 76 65 20 61 6e 79 | 20 72 65 67 75 6c 61 72 |have any| regular|
|00000670| 2d 65 78 70 72 65 73 73 | 69 6f 6e 20 66 75 6e 63 |-express|ion func|
|00000680| 74 69 6f 6e 73 2c 20 64 | 6f 6e 27 74 20 61 64 64 |tions, d|on't add|
|00000690| 20 65 69 74 68 65 72 20 | 74 6f 20 44 45 46 53 2e | either |to DEFS.|
|000006a0| 0a 58 23 0a 58 23 20 2a | 20 49 66 20 79 6f 75 20 |.X#.X# *| If you |
|000006b0| 64 6f 20 6e 6f 74 20 68 | 61 76 65 20 74 68 65 20 |do not h|ave the |
|000006c0| 34 2e 32 20 64 69 72 65 | 63 74 6f 72 79 20 61 63 |4.2 dire|ctory ac|
|000006d0| 63 65 73 73 20 6c 69 62 | 72 61 72 69 65 73 2c 20 |cess lib|raries, |
|000006e0| 61 64 64 20 60 2d 6c 6e | 64 69 72 27 0a 58 23 20 |add `-ln|dir'.X# |
|000006f0| 20 20 74 6f 20 4c 49 42 | 53 2c 20 61 6e 64 20 64 | to LIB|S, and d|
|00000700| 65 66 69 6e 65 20 60 2d | 44 4e 44 49 52 27 20 69 |efine `-|DNDIR' i|
|00000710| 6e 20 44 45 46 53 2e 20 | 0a 58 23 0a 58 23 20 2a |n DEFS. |.X#.X# *|
|00000720| 20 49 66 20 79 6f 75 72 | 20 73 74 72 69 6e 67 20 | If your| string |
|00000730| 6c 69 62 72 61 72 69 65 | 73 20 68 61 76 65 20 69 |librarie|s have i|
|00000740| 6e 64 65 78 28 33 29 20 | 61 6e 64 20 72 69 6e 64 |ndex(3) |and rind|
|00000750| 65 78 28 33 29 20 69 6e | 73 74 65 61 64 20 6f 66 |ex(3) in|stead of|
|00000760| 0a 58 23 20 20 20 73 74 | 72 63 68 72 28 33 29 20 |.X# st|rchr(3) |
|00000770| 61 6e 64 20 73 74 72 72 | 63 68 72 28 33 29 2c 20 |and strr|chr(3), |
|00000780| 75 73 65 20 60 2d 44 52 | 49 4e 44 45 58 27 20 69 |use `-DR|INDEX' i|
|00000790| 6e 20 44 45 46 53 2e 0a | 58 23 0a 58 23 20 2a 20 |n DEFS..|X#.X# * |
|000007a0| 49 66 20 79 6f 75 72 20 | 63 6f 6d 70 69 6c 65 72 |If your |compiler|
|000007b0| 20 63 68 6f 6b 65 73 20 | 6f 6e 20 70 6f 69 6e 74 | chokes |on point|
|000007c0| 65 72 73 20 74 6f 20 66 | 75 6e 63 74 69 6f 6e 73 |ers to f|unctions|
|000007d0| 20 72 65 74 75 72 6e 69 | 6e 67 20 76 6f 69 64 2c | returni|ng void,|
|000007e0| 0a 58 23 20 20 20 75 73 | 65 20 60 2d 44 76 6f 69 |.X# us|e `-Dvoi|
|000007f0| 64 3d 69 6e 74 27 20 69 | 6e 20 44 45 46 53 2e 0a |d=int' i|n DEFS..|
|00000800| 58 23 0a 58 23 20 2a 20 | 49 66 20 79 6f 75 20 68 |X#.X# * |If you h|
|00000810| 61 76 65 20 73 65 74 6c | 69 6e 65 62 75 66 28 33 |ave setl|inebuf(3|
|00000820| 29 20 69 6e 20 79 6f 75 | 72 20 73 74 64 69 6f 20 |) in you|r stdio |
|00000830| 74 6f 20 73 65 74 20 6c | 69 6e 65 2d 62 75 66 66 |to set l|ine-buff|
|00000840| 65 72 69 6e 67 20 6f 6e | 0a 58 23 20 20 20 61 20 |ering on|.X# a |
|00000850| 73 74 72 65 61 6d 2c 20 | 75 73 65 20 60 2d 44 45 |stream, |use `-DE|
|00000860| 52 52 4c 49 4e 45 42 55 | 46 27 20 69 6e 20 44 45 |RRLINEBU|F' in DE|
|00000870| 46 53 2e 0a 58 23 0a 58 | 23 20 2a 20 49 66 20 79 |FS..X#.X|# * If y|
|00000880| 6f 75 20 68 61 76 65 20 | 61 20 53 79 73 74 65 6d |ou have |a System|
|00000890| 2d 49 49 49 2f 56 20 74 | 65 72 6d 69 6e 61 6c 20 |-III/V t|erminal |
|000008a0| 64 72 69 76 65 72 2c 20 | 64 65 66 69 6e 65 20 60 |driver, |define `|
|000008b0| 54 45 52 4d 49 4f 27 20 | 69 6e 20 44 45 46 53 2e |TERMIO' |in DEFS.|
|000008c0| 0a 58 23 0a 58 23 20 2a | 20 49 66 20 79 6f 75 20 |.X#.X# *| If you |
|000008d0| 68 61 76 65 20 72 61 6e | 6c 69 62 28 31 29 2c 20 |have ran|lib(1), |
|000008e0| 64 65 66 69 6e 65 20 60 | 52 41 4e 4c 49 42 27 20 |define `|RANLIB' |
|000008f0| 61 73 20 73 75 63 68 2e | 20 20 49 66 20 79 6f 75 |as such.| If you|
|00000900| 20 64 6f 6e 27 74 20 68 | 61 76 65 0a 58 23 20 20 | don't h|ave.X# |
|00000910| 20 69 74 2c 20 73 65 74 | 20 60 52 41 4e 4c 49 42 | it, set| `RANLIB|
|00000920| 27 20 74 6f 20 73 6f 6d | 65 74 68 69 6e 67 20 68 |' to som|ething h|
|00000930| 61 72 6d 6c 65 73 73 20 | 6c 69 6b 65 20 60 40 3a |armless |like `@:|
|00000940| 27 2c 20 6f 72 20 60 65 | 63 68 6f 27 0a 58 23 0a |', or `e|cho'.X#.|
|00000950| 58 23 20 2a 20 49 66 20 | 79 6f 75 20 77 61 6e 74 |X# * If |you want|
|00000960| 20 6c 69 73 74 73 20 6f | 66 20 66 69 6c 65 20 6e | lists o|f file n|
|00000970| 61 6d 65 73 20 63 6f 6d | 70 72 65 73 73 65 64 20 |ames com|pressed |
|00000980| 77 69 74 68 20 63 73 68 | 20 7b 7d 20 6e 6f 74 61 |with csh| {} nota|
|00000990| 74 69 6f 6e 20 62 79 0a | 58 23 20 20 20 64 65 66 |tion by.|X# def|
|000009a0| 61 75 6c 74 2c 20 73 65 | 74 20 2d 44 43 52 55 4e |ault, se|t -DCRUN|
|000009b0| 43 48 5f 44 45 46 41 55 | 4c 54 3d 31 2e 20 49 66 |CH_DEFAU|LT=1. If|
|000009c0| 20 79 6f 75 20 77 61 6e | 74 20 66 69 6c 65 73 20 | you wan|t files |
|000009d0| 70 72 69 6e 74 65 64 20 | 77 69 74 68 20 6e 6f 0a |printed |with no.|
|000009e0| 58 23 20 20 20 22 63 72 | 75 6e 63 68 69 6e 67 22 |X# "cr|unching"|
|000009f0| 2c 20 73 65 74 20 2d 44 | 43 52 55 4e 43 48 5f 44 |, set -D|CRUNCH_D|
|00000a00| 45 46 41 55 4c 54 3d 30 | 2e 20 28 54 68 65 20 2d |EFAULT=0|. (The -|
|00000a10| 6b 20 61 6e 64 20 2d 67 | 20 6f 70 74 69 6f 6e 73 |k and -g| options|
|00000a20| 20 61 6c 6c 6f 77 0a 58 | 23 20 20 20 72 75 6e 74 | allow.X|# runt|
|00000a30| 69 6d 65 20 63 6f 6e 74 | 72 6f 6c 20 72 65 67 61 |ime cont|rol rega|
|00000a40| 72 64 6c 65 73 73 20 6f | 66 20 74 68 65 20 62 75 |rdless o|f the bu|
|00000a50| 69 6c 74 69 6e 20 64 65 | 66 61 75 6c 74 29 2e 0a |iltin de|fault)..|
|00000a60| 58 23 0a 58 23 20 2a 20 | 49 66 20 79 6f 75 72 20 |X#.X# * |If your |
|00000a70| 73 79 73 74 65 6d 20 73 | 75 70 70 6f 72 74 73 20 |system s|upports |
|00000a80| 74 68 65 20 61 6c 6c 6f | 63 61 28 29 20 66 75 6e |the allo|ca() fun|
|00000a90| 63 74 69 6f 6e 20 66 6f | 72 20 61 6c 6c 6f 63 61 |ction fo|r alloca|
|00000aa0| 74 69 6e 67 20 73 70 61 | 63 65 0a 58 23 20 20 20 |ting spa|ce.X# |
|00000ab0| 6f 6e 20 74 68 65 20 73 | 74 61 63 6b 2c 20 64 65 |on the s|tack, de|
|00000ac0| 66 69 6e 65 64 20 2d 44 | 55 53 45 5f 41 4c 4c 4f |fined -D|USE_ALLO|
|00000ad0| 43 41 0a 58 23 20 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |CA.X# --|--------|
|00000ae0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00000af0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00000b00| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00000b10| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 0a 58 0a 58 44 45 |--------|--.X.XDE|
|00000b20| 46 53 09 3d 09 2d 44 76 | 6f 69 64 3d 69 6e 74 20 |FS.=.-Dv|oid=int |
|00000b30| 2d 44 52 45 47 45 58 20 | 2d 44 54 45 52 4d 49 4f |-DREGEX |-DTERMIO|
|00000b40| 09 23 20 74 79 70 69 63 | 61 6c 20 53 79 73 74 65 |.# typic|al Syste|
|00000b50| 6d 2d 56 20 64 65 66 73 | 0a 58 23 20 44 45 46 53 |m-V defs|.X# DEFS|
|00000b60| 09 3d 09 2d 44 52 45 47 | 45 58 20 2d 44 4e 44 49 |.=.-DREG|EX -DNDI|
|00000b70| 52 20 2d 44 54 45 52 4d | 49 4f 09 23 20 74 79 70 |R -DTERM|IO.# typ|
|00000b80| 69 63 61 6c 20 53 79 73 | 74 65 6d 2d 56 20 64 65 |ical Sys|tem-V de|
|00000b90| 66 73 0a 58 23 20 44 45 | 46 53 09 3d 09 2d 44 76 |fs.X# DE|FS.=.-Dv|
|00000ba0| 6f 69 64 3d 69 6e 74 20 | 2d 44 52 49 4e 44 45 58 |oid=int |-DRINDEX|
|00000bb0| 20 2d 44 52 45 5f 45 58 | 45 43 20 2d 44 4e 44 49 | -DRE_EX|EC -DNDI|
|00000bc0| 52 09 23 20 74 79 70 69 | 63 61 6c 20 56 37 20 64 |R.# typi|cal V7 d|
|00000bd0| 65 66 73 0a 58 23 20 44 | 45 46 53 09 3d 09 2d 44 |efs.X# D|EFS.=.-D|
|00000be0| 76 6f 69 64 3d 69 6e 74 | 20 2d 44 52 49 4e 44 45 |void=int| -DRINDE|
|00000bf0| 58 20 2d 44 52 45 5f 45 | 58 45 43 20 2d 44 45 52 |X -DRE_E|XEC -DER|
|00000c00| 52 4c 49 4e 45 42 55 46 | 09 23 20 42 53 44 20 64 |RLINEBUF|.# BSD d|
|00000c10| 65 66 73 0a 58 0a 58 4c | 49 42 53 09 3d 09 2d 6c |efs.X.XL|IBS.=.-l|
|00000c20| 63 20 2d 6c 50 57 09 23 | 20 74 79 70 69 63 61 6c |c -lPW.#| typical|
|00000c30| 20 53 79 73 74 65 6d 2d | 56 20 6c 69 62 73 0a 58 | System-|V libs.X|
|00000c40| 23 20 4c 49 42 53 09 3d | 09 2d 6c 6e 64 69 72 20 |# LIBS.=|.-lndir |
|00000c50| 2d 6c 50 57 09 23 20 74 | 79 70 69 63 61 6c 20 53 |-lPW.# t|ypical S|
|00000c60| 79 73 74 65 6d 2d 56 20 | 6c 69 62 73 0a 58 23 20 |ystem-V |libs.X# |
|00000c70| 4c 49 42 53 09 3d 09 2d | 6c 6e 64 69 72 09 23 20 |LIBS.=.-|lndir.# |
|00000c80| 74 79 70 69 63 61 6c 20 | 56 37 20 6c 69 62 73 0a |typical |V7 libs.|
|00000c90| 58 23 20 4c 49 42 53 09 | 3d 09 23 20 74 79 70 69 |X# LIBS.|=.# typi|
|00000ca0| 63 61 6c 20 42 53 44 20 | 6c 69 62 73 20 28 6e 6f |cal BSD |libs (no|
|00000cb0| 6e 65 29 0a 58 0a 58 52 | 41 4e 4c 49 42 09 3d 09 |ne).X.XR|ANLIB.=.|
|00000cc0| 40 3a 09 23 20 73 79 73 | 74 65 6d 20 64 6f 65 73 |@:.# sys|tem does|
|00000cd0| 6e 27 74 20 68 61 76 65 | 20 72 61 6e 6c 69 62 20 |n't have| ranlib |
|00000ce0| 28 53 79 73 2d 56 29 0a | 58 23 20 52 41 4e 4c 49 |(Sys-V).|X# RANLI|
|00000cf0| 42 09 3d 09 72 61 6e 6c | 69 62 09 23 20 73 79 73 |B.=.ranl|ib.# sys|
|00000d00| 74 65 6d 20 68 61 73 20 | 72 61 6e 6c 69 62 20 28 |tem has |ranlib (|
|00000d10| 74 79 70 69 63 61 6c 6c | 79 20 56 37 20 26 20 42 |typicall|y V7 & B|
|00000d20| 53 44 29 0a 58 0a 58 43 | 52 55 4e 43 48 20 20 3d |SD).X.XC|RUNCH =|
|00000d30| 20 20 20 20 20 20 20 2d | 44 43 52 55 4e 43 48 5f | -|DCRUNCH_|
|00000d40| 44 45 46 41 55 4c 54 3d | 31 20 20 20 20 20 20 23 |DEFAULT=|1 #|
|00000d50| 20 4f 72 69 67 69 6e 61 | 6c 20 64 65 66 61 75 6c | Origina|l defaul|
|00000d60| 74 20 2d 20 63 72 75 6e | 63 68 20 66 69 6c 65 20 |t - crun|ch file |
|00000d70| 6e 61 6d 65 73 0a 58 23 | 43 52 55 4e 43 48 20 3d |names.X#|CRUNCH =|
|00000d80| 20 20 20 20 20 20 20 2d | 44 43 52 55 4e 43 48 5f | -|DCRUNCH_|
|00000d90| 44 45 46 41 55 4c 54 3d | 30 20 20 20 20 20 20 23 |DEFAULT=|0 #|
|00000da0| 20 44 6f 6e 27 74 20 63 | 72 75 6e 63 68 20 6e 61 | Don't c|runch na|
|00000db0| 6d 65 73 20 62 79 20 64 | 65 66 61 75 6c 74 0a 58 |mes by d|efault.X|
|00000dc0| 0a 58 41 4c 4c 4f 43 41 | 20 20 3d 20 20 20 20 20 |.XALLOCA| = |
|00000dd0| 20 20 2d 44 55 53 45 5f | 41 4c 4c 4f 43 41 20 20 | -DUSE_|ALLOCA |
|00000de0| 20 20 20 20 20 20 20 20 | 20 20 23 20 61 6c 6c 6f | | # allo|
|00000df0| 63 61 20 73 75 70 70 6f | 72 74 20 65 78 69 73 74 |ca suppo|rt exist|
|00000e00| 73 20 6f 6e 20 73 79 73 | 74 65 6d 0a 58 23 41 4c |s on sys|tem.X#AL|
|00000e10| 4c 4f 43 41 20 3d 20 20 | 20 20 20 20 20 20 20 20 |LOCA = | |
|00000e20| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000e30| 20 20 20 20 20 23 20 73 | 79 73 74 65 6d 20 68 61 | # s|ystem ha|
|00000e40| 73 20 6e 6f 20 61 6c 6c | 6f 63 61 28 29 20 66 75 |s no all|oca() fu|
|00000e50| 6e 63 74 69 6f 6e 0a 58 | 0a 58 23 20 2d 2d 2d 2d |nction.X|.X# ----|
|00000e60| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00000e70| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00000e80| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00000e90| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00000ea0| 0a 58 23 20 43 6f 6d 70 | 69 6c 61 74 69 6f 6e 20 |.X# Comp|ilation |
|00000eb0| 2f 20 4c 6f 61 64 69 6e | 67 20 6f 70 74 69 6f 6e |/ Loadin|g option|
|00000ec0| 73 3a 0a 58 23 20 20 20 | 43 68 6f 6f 73 65 20 6f |s:.X# |Choose o|
|00000ed0| 70 74 69 6f 6e 73 20 74 | 6f 20 67 65 6e 65 72 61 |ptions t|o genera|
|00000ee0| 74 65 20 61 20 73 79 73 | 74 65 6d 20 61 73 20 61 |te a sys|tem as a|
|00000ef0| 6e 20 69 6e 73 74 61 6c | 6c 65 64 20 70 72 6f 64 |n instal|led prod|
|00000f00| 75 63 74 2c 0a 58 23 20 | 20 20 66 6f 72 20 64 65 |uct,.X# | for de|
|00000f10| 62 75 67 67 69 6e 67 2c | 20 6f 72 20 66 6f 72 20 |bugging,| or for |
|00000f20| 70 65 72 66 6f 72 6d 61 | 6e 63 65 20 70 72 6f 66 |performa|nce prof|
|00000f30| 69 6c 69 6e 67 2e 0a 58 | 23 20 2d 2d 2d 2d 2d 2d |iling..X|# ------|
|00000f40| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00000f50| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00000f60| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00000f70| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 0a 58 |--------|------.X|
|00000f80| 0a 58 23 20 43 43 46 4c | 47 09 3d 09 2d 67 20 2d |.X# CCFL|G.=.-g -|
|00000f90| 44 44 45 42 55 47 20 09 | 23 20 64 65 62 75 67 67 |DDEBUG .|# debugg|
|00000fa0| 69 6e 67 0a 58 23 20 43 | 43 46 4c 47 09 3d 09 2d |ing.X# C|CFLG.=.-|
|00000fb0| 70 09 23 20 70 72 6f 66 | 69 6c 69 6e 67 0a 58 43 |p.# prof|iling.XC|
|00000fc0| 43 46 4c 47 09 3d 09 2d | 4f 33 20 2d 67 09 23 20 |CFLG.=.-|O3 -g.# |
|00000fd0| 70 72 6f 64 75 63 74 69 | 6f 6e 0a 58 0a 58 23 20 |producti|on.X.X# |
|00000fe0| 4c 44 46 4c 47 09 3d 09 | 2d 67 09 23 20 64 65 62 |LDFLG.=.|-g.# deb|
|00000ff0| 75 67 67 69 6e 67 0a 58 | 23 20 4c 44 46 4c 47 09 |ugging.X|# LDFLG.|
|00001000| 3d 09 2d 70 09 23 20 70 | 72 6f 66 69 6c 69 6e 67 |=.-p.# p|rofiling|
|00001010| 0a 58 4c 44 46 4c 47 09 | 3d 09 23 20 70 72 6f 64 |.XLDFLG.|=.# prod|
|00001020| 75 63 74 69 6f 6e 0a 58 | 0a 58 43 43 09 3d 09 68 |uction.X|.XCC.=.h|
|00001030| 63 0a 58 0a 58 23 20 2d | 2d 2d 2d 2d 2d 2d 2d 2d |c.X.X# -|--------|
|00001040| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00001050| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00001060| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00001070| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 0a 58 0a 58 53 |--------|---.X.XS|
|00001080| 48 45 4c 4c 20 3d 09 09 | 2f 62 69 6e 2f 6b 73 68 |HELL =..|/bin/ksh|
|00001090| 0a 58 54 41 52 47 45 54 | 53 20 3d 09 6c 69 62 69 |.XTARGET|S =.libi|
|000010a0| 64 2e 61 20 24 28 50 52 | 4f 47 53 29 0a 58 50 52 |d.a $(PR|OGS).XPR|
|000010b0| 4f 47 53 20 3d 09 09 6d | 6b 69 64 20 6c 69 64 20 |OGS =..m|kid lid |
|000010c0| 69 64 78 20 66 69 64 20 | 69 69 64 20 24 28 4c 49 |idx fid |iid $(LI|
|000010d0| 44 4c 49 4e 4b 53 29 0a | 58 44 45 53 54 49 4e 41 |DLINKS).|XDESTINA|
|000010e0| 54 49 4f 4e 5f 44 49 52 | 20 3d 20 2f 75 73 72 2f |TION_DIR| = /usr/|
|000010f0| 6c 6f 63 61 6c 0a 58 4d | 41 4e 44 49 52 20 3d 20 |local.XM|ANDIR = |
|00001100| 20 20 20 20 20 20 20 2f | 75 73 72 2f 63 61 74 6d | /|usr/catm|
|00001110| 61 6e 2f 6c 6f 63 61 6c | 5f 6d 61 6e 2f 6d 61 6e |an/local|_man/man|
|00001120| 31 0a 58 0a 58 4c 49 44 | 4c 49 4e 4b 53 20 3d 20 |1.X.XLID|LINKS = |
|00001130| 09 67 69 64 20 61 69 64 | 20 65 69 64 20 70 69 64 |.gid aid| eid pid|
|00001140| 0a 58 43 46 4c 41 47 53 | 20 3d 09 24 28 43 43 46 |.XCFLAGS| =.$(CCF|
|00001150| 4c 47 29 20 2d 49 2e 20 | 24 28 44 45 46 53 29 20 |LG) -I. |$(DEFS) |
|00001160| 24 28 43 52 55 4e 43 48 | 29 20 24 28 41 4c 4c 4f |$(CRUNCH|) $(ALLO|
|00001170| 43 41 29 0a 58 4c 44 46 | 4c 41 47 53 20 3d 09 24 |CA).XLDF|LAGS =.$|
|00001180| 28 4c 44 46 4c 47 29 20 | 6c 69 62 69 64 2e 61 20 |(LDFLG) |libid.a |
|00001190| 24 28 4c 49 42 53 29 0a | 58 0a 58 4f 46 49 4c 45 |$(LIBS).|X.XOFILE|
|000011a0| 53 20 3d 09 69 6e 69 74 | 2e 6f 20 67 65 74 73 63 |S =.init|.o getsc|
|000011b0| 61 6e 2e 6f 20 73 63 61 | 6e 2d 63 2e 6f 20 73 63 |an.o sca|n-c.o sc|
|000011c0| 61 6e 2d 61 73 6d 2e 6f | 20 62 73 65 61 72 63 68 |an-asm.o| bsearch|
|000011d0| 2e 6f 20 68 61 73 68 2e | 6f 20 5c 0a 58 09 09 62 |.o hash.|o \.X..b|
|000011e0| 69 74 6f 70 73 2e 6f 20 | 62 61 73 65 6e 61 6d 65 |itops.o |basename|
|000011f0| 2e 6f 20 67 65 74 73 30 | 2e 6f 20 67 65 74 73 46 |.o gets0|.o getsF|
|00001200| 46 2e 6f 20 70 61 74 68 | 73 2e 6f 20 6f 70 65 6e |F.o path|s.o open|
|00001210| 73 72 63 2e 6f 20 5c 0a | 58 09 09 73 74 6f 69 2e |src.o \.|X..stoi.|
|00001220| 6f 20 75 65 72 72 6f 72 | 2e 6f 20 64 6f 63 75 6d |o uerror|.o docum|
|00001230| 65 6e 74 2e 6f 20 62 69 | 74 63 6f 75 6e 74 2e 6f |ent.o bi|tcount.o|
|00001240| 20 77 6d 61 74 63 68 2e | 6f 20 62 69 74 73 76 65 | wmatch.|o bitsve|
|00001250| 63 2e 6f 20 5c 0a 58 09 | 09 74 74 79 2e 6f 20 62 |c.o \.X.|.tty.o b|
|00001260| 7a 65 72 6f 2e 6f 20 73 | 63 61 6e 2d 74 65 78 74 |zero.o s|can-text|
|00001270| 2e 6f 20 63 61 6e 6e 6f | 6e 61 6d 65 2e 6f 20 6b |.o canno|name.o k|
|00001280| 73 68 67 65 74 77 64 2e | 6f 20 75 6e 73 79 6d 6c |shgetwd.|o unsyml|
|00001290| 69 6e 6b 2e 6f 0a 58 0a | 58 54 45 58 4a 55 4e 4b |ink.o.X.|XTEXJUNK|
|000012a0| 3d 69 64 2e 61 75 78 20 | 69 64 2e 63 70 20 69 64 |=id.aux |id.cp id|
|000012b0| 2e 63 70 73 20 69 64 2e | 64 76 69 20 69 64 2e 66 |.cps id.|dvi id.f|
|000012c0| 6e 20 69 64 2e 66 6e 73 | 20 69 64 2e 6b 79 20 69 |n id.fns| id.ky i|
|000012d0| 64 2e 6b 79 73 20 69 64 | 2e 6c 6f 67 20 69 64 2e |d.kys id|.log id.|
|000012e0| 70 67 20 5c 0a 58 09 69 | 64 2e 70 67 73 20 69 64 |pg \.X.i|d.pgs id|
|000012f0| 2e 74 6f 63 20 69 64 2e | 74 70 20 69 64 2e 74 70 |.toc id.|tp id.tp|
|00001300| 73 20 69 64 2e 76 72 20 | 69 64 2e 76 72 73 20 69 |s id.vr |id.vrs i|
|00001310| 64 2d 69 6e 66 6f 0a 58 | 0a 58 23 20 2d 2d 2d 2d |d-info.X|.X# ----|
|00001320| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00001330| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00001340| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00001350| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00001360| 0a 58 0a 58 61 6c 6c 3a | 09 09 24 28 54 41 52 47 |.X.Xall:|..$(TARG|
|00001370| 45 54 53 29 0a 58 0a 58 | 6c 69 62 69 64 2e 61 3a |ETS).X.X|libid.a:|
|00001380| 09 24 28 4f 46 49 4c 45 | 53 29 0a 58 09 09 61 72 |.$(OFILE|S).X..ar|
|00001390| 20 72 76 20 24 40 20 24 | 3f 0a 58 09 09 24 28 52 | rv $@ $|?.X..$(R|
|000013a0| 41 4e 4c 49 42 29 20 24 | 40 0a 58 0a 58 6d 6b 69 |ANLIB) $|@.X.Xmki|
|000013b0| 64 3a 09 09 6d 6b 69 64 | 2e 6f 20 6c 69 62 69 64 |d:..mkid|.o libid|
|000013c0| 2e 61 0a 58 09 09 24 28 | 43 43 29 20 2d 6f 20 24 |.a.X..$(|CC) -o $|
|000013d0| 40 20 24 40 2e 6f 20 24 | 28 4c 44 46 4c 41 47 53 |@ $@.o $|(LDFLAGS|
|000013e0| 29 0a 58 0a 58 66 69 64 | 3a 09 09 66 69 64 2e 6f |).X.Xfid|:..fid.o|
|000013f0| 20 6c 69 62 69 64 2e 61 | 0a 58 09 09 24 28 43 43 | libid.a|.X..$(CC|
|00001400| 29 20 2d 6f 20 24 40 20 | 24 40 2e 6f 20 24 28 4c |) -o $@ |$@.o $(L|
|00001410| 44 46 4c 41 47 53 29 0a | 58 0a 58 6c 69 64 3a 09 |DFLAGS).|X.Xlid:.|
|00001420| 09 6c 69 64 2e 6f 20 6c | 69 62 69 64 2e 61 0a 58 |.lid.o l|ibid.a.X|
|00001430| 09 09 24 28 43 43 29 20 | 2d 6f 20 24 40 20 24 40 |..$(CC) |-o $@ $@|
|00001440| 2e 6f 20 24 28 4c 44 46 | 4c 41 47 53 29 0a 58 0a |.o $(LDF|LAGS).X.|
|00001450| 58 69 64 78 3a 09 09 69 | 64 78 2e 6f 20 6c 69 62 |Xidx:..i|dx.o lib|
|00001460| 69 64 2e 61 0a 58 09 09 | 24 28 43 43 29 20 2d 6f |id.a.X..|$(CC) -o|
|00001470| 20 24 40 20 24 40 2e 6f | 20 24 28 4c 44 46 4c 41 | $@ $@.o| $(LDFLA|
|00001480| 47 53 29 0a 58 0a 58 69 | 69 64 3a 09 09 69 69 64 |GS).X.Xi|id:..iid|
|00001490| 2e 6f 20 69 69 64 66 75 | 6e 2e 6f 0a 58 09 09 24 |.o iidfu|n.o.X..$|
|000014a0| 28 43 43 29 20 2d 6f 20 | 69 69 64 20 69 69 64 2e |(CC) -o |iid iid.|
|000014b0| 6f 20 69 69 64 66 75 6e | 2e 6f 20 24 28 4c 44 46 |o iidfun|.o $(LDF|
|000014c0| 4c 47 29 20 24 28 4c 49 | 42 53 29 0a 58 0a 58 69 |LG) $(LI|BS).X.Xi|
|000014d0| 69 64 2e 63 3a 09 09 69 | 69 64 2e 79 0a 58 09 09 |id.c:..i|id.y.X..|
|000014e0| 72 6d 20 2d 66 20 69 69 | 64 2e 63 0a 58 09 09 79 |rm -f ii|d.c.X..y|
|000014f0| 61 63 63 20 69 69 64 2e | 79 0a 58 09 09 6d 76 20 |acc iid.|y.X..mv |
|00001500| 79 2e 74 61 62 2e 63 20 | 69 69 64 2e 63 0a 58 0a |y.tab.c |iid.c.X.|
|00001510| 58 69 69 64 66 75 6e 2e | 6f 3a 09 69 69 64 66 75 |Xiidfun.|o:.iidfu|
|00001520| 6e 2e 63 20 69 69 64 64 | 65 66 2e 68 0a 58 0a 58 |n.c iidd|ef.h.X.X|
|00001530| 69 69 64 2e 6f 3a 09 09 | 69 69 64 2e 63 20 69 69 |iid.o:..|iid.c ii|
|00001540| 64 64 65 66 2e 68 0a 58 | 09 09 24 28 43 43 29 20 |ddef.h.X|..$(CC) |
|00001550| 24 28 43 46 4c 41 47 53 | 29 20 2d 44 44 45 46 20 |$(CFLAGS|) -DDEF |
|00001560| 2d 63 20 69 69 64 2e 63 | 0a 58 0a 58 24 28 4c 49 |-c iid.c|.X.X$(LI|
|00001570| 44 4c 49 4e 4b 53 29 3a | 20 6c 69 64 0a 58 09 09 |DLINKS):| lid.X..|
|00001580| 2d 2f 62 69 6e 2f 72 6d | 20 2d 66 20 24 40 0a 58 |-/bin/rm| -f $@.X|
|00001590| 09 09 6c 6e 20 6c 69 64 | 20 24 40 0a 58 0a 58 69 |..ln lid| $@.X.Xi|
|000015a0| 6e 73 74 61 6c 6c 3a 20 | 69 6e 73 74 61 6c 6c 62 |nstall: |installb|
|000015b0| 69 6e 20 69 6e 73 74 61 | 6c 6c 6d 61 6e 0a 58 0a |in insta|llman.X.|
|000015c0| 58 69 6e 73 74 61 6c 6c | 6d 61 6e 3a 09 66 69 64 |Xinstall|man:.fid|
|000015d0| 2e 31 20 69 69 64 2e 31 | 20 6c 69 64 2e 31 20 6d |.1 iid.1| lid.1 m|
|000015e0| 6b 69 64 2e 31 0a 58 09 | 09 63 70 20 66 69 64 2e |kid.1.X.|.cp fid.|
|000015f0| 31 20 69 69 64 2e 31 20 | 6c 69 64 2e 31 20 6d 6b |1 iid.1 |lid.1 mk|
|00001600| 69 64 2e 31 20 24 28 4d | 41 4e 44 49 52 29 0a 58 |id.1 $(M|ANDIR).X|
|00001610| 09 09 63 64 20 24 28 4d | 41 4e 44 49 52 29 20 3b |..cd $(M|ANDIR) ;|
|00001620| 20 72 6d 20 2d 66 20 66 | 69 64 2e 31 2e 7a 20 69 | rm -f f|id.1.z i|
|00001630| 69 64 2e 31 2e 7a 20 6c | 69 64 2e 31 2e 7a 20 6d |id.1.z l|id.1.z m|
|00001640| 6b 69 64 2e 31 2e 7a 20 | 61 69 64 2e 31 2e 7a 20 |kid.1.z |aid.1.z |
|00001650| 5c 0a 58 09 09 20 20 20 | 20 20 20 20 20 20 20 20 |\.X.. | |
|00001660| 20 20 20 20 20 20 20 20 | 20 20 67 69 64 2e 31 2e | | gid.1.|
|00001670| 7a 20 65 69 64 2e 31 2e | 7a 0a 58 09 09 63 64 20 |z eid.1.|z.X..cd |
|00001680| 24 28 4d 41 4e 44 49 52 | 29 20 3b 20 63 68 6d 6f |$(MANDIR|) ; chmo|
|00001690| 64 20 36 36 36 20 66 69 | 64 2e 31 20 69 69 64 2e |d 666 fi|d.1 iid.|
|000016a0| 31 20 6c 69 64 2e 31 20 | 6d 6b 69 64 2e 31 0a 58 |1 lid.1 |mkid.1.X|
|000016b0| 09 09 63 64 20 24 28 4d | 41 4e 44 49 52 29 20 3b |..cd $(M|ANDIR) ;|
|000016c0| 20 6d 61 6e 74 6f 63 61 | 74 6d 61 6e 20 66 69 64 | mantoca|tman fid|
|000016d0| 2e 31 0a 58 09 09 63 64 | 20 24 28 4d 41 4e 44 49 |.1.X..cd| $(MANDI|
|000016e0| 52 29 20 3b 20 6d 61 6e | 74 6f 63 61 74 6d 61 6e |R) ; man|tocatman|
|000016f0| 20 69 69 64 2e 31 0a 58 | 09 09 63 64 20 24 28 4d | iid.1.X|..cd $(M|
|00001700| 41 4e 44 49 52 29 20 3b | 20 6d 61 6e 74 6f 63 61 |ANDIR) ;| mantoca|
|00001710| 74 6d 61 6e 20 6c 69 64 | 2e 31 0a 58 09 09 63 64 |tman lid|.1.X..cd|
|00001720| 20 24 28 4d 41 4e 44 49 | 52 29 20 3b 20 6d 61 6e | $(MANDI|R) ; man|
|00001730| 74 6f 63 61 74 6d 61 6e | 20 6d 6b 69 64 2e 31 0a |tocatman| mkid.1.|
|00001740| 58 09 09 63 64 20 24 28 | 4d 41 4e 44 49 52 29 20 |X..cd $(|MANDIR) |
|00001750| 3b 20 72 6d 20 2d 66 20 | 66 69 64 2e 31 20 69 69 |; rm -f |fid.1 ii|
|00001760| 64 2e 31 20 6c 69 64 2e | 31 20 6d 6b 69 64 2e 31 |d.1 lid.|1 mkid.1|
|00001770| 0a 58 0a 58 69 6e 73 74 | 61 6c 6c 62 69 6e 3a 20 |.X.Xinst|allbin: |
|00001780| 24 28 50 52 4f 47 53 29 | 0a 58 09 09 63 68 6d 6f |$(PROGS)|.X..chmo|
|00001790| 64 20 37 37 37 20 24 28 | 50 52 4f 47 53 29 0a 58 |d 777 $(|PROGS).X|
|000017a0| 09 09 2d 6d 76 20 24 28 | 44 45 53 54 49 4e 41 54 |..-mv $(|DESTINAT|
|000017b0| 49 4f 4e 5f 44 49 52 29 | 2f 6d 6b 69 64 20 24 28 |ION_DIR)|/mkid $(|
|000017c0| 44 45 53 54 49 4e 41 54 | 49 4f 4e 5f 44 49 52 29 |DESTINAT|ION_DIR)|
|000017d0| 2f 4f 4c 44 6d 6b 69 64 | 0a 58 09 09 2d 6d 76 20 |/OLDmkid|.X..-mv |
|000017e0| 24 28 44 45 53 54 49 4e | 41 54 49 4f 4e 5f 44 49 |$(DESTIN|ATION_DI|
|000017f0| 52 29 2f 6c 69 64 20 24 | 28 44 45 53 54 49 4e 41 |R)/lid $|(DESTINA|
|00001800| 54 49 4f 4e 5f 44 49 52 | 29 2f 4f 4c 44 6c 69 64 |TION_DIR|)/OLDlid|
|00001810| 0a 58 09 09 2d 6d 76 20 | 24 28 44 45 53 54 49 4e |.X..-mv |$(DESTIN|
|00001820| 41 54 49 4f 4e 5f 44 49 | 52 29 2f 69 64 78 20 24 |ATION_DI|R)/idx $|
|00001830| 28 44 45 53 54 49 4e 41 | 54 49 4f 4e 5f 44 49 52 |(DESTINA|TION_DIR|
|00001840| 29 2f 4f 4c 44 69 64 78 | 0a 58 09 09 2d 6d 76 20 |)/OLDidx|.X..-mv |
|00001850| 24 28 44 45 53 54 49 4e | 41 54 49 4f 4e 5f 44 49 |$(DESTIN|ATION_DI|
|00001860| 52 29 2f 66 69 64 20 24 | 28 44 45 53 54 49 4e 41 |R)/fid $|(DESTINA|
|00001870| 54 49 4f 4e 5f 44 49 52 | 29 2f 4f 4c 44 66 69 64 |TION_DIR|)/OLDfid|
|00001880| 0a 58 09 09 2d 6d 76 20 | 24 28 44 45 53 54 49 4e |.X..-mv |$(DESTIN|
|00001890| 41 54 49 4f 4e 5f 44 49 | 52 29 2f 67 69 64 20 24 |ATION_DI|R)/gid $|
|000018a0| 28 44 45 53 54 49 4e 41 | 54 49 4f 4e 5f 44 49 52 |(DESTINA|TION_DIR|
|000018b0| 29 2f 4f 4c 44 67 69 64 | 0a 58 09 09 2d 6d 76 20 |)/OLDgid|.X..-mv |
|000018c0| 24 28 44 45 53 54 49 4e | 41 54 49 4f 4e 5f 44 49 |$(DESTIN|ATION_DI|
|000018d0| 52 29 2f 61 69 64 20 24 | 28 44 45 53 54 49 4e 41 |R)/aid $|(DESTINA|
|000018e0| 54 49 4f 4e 5f 44 49 52 | 29 2f 4f 4c 44 61 69 64 |TION_DIR|)/OLDaid|
|000018f0| 0a 58 09 09 2d 6d 76 20 | 24 28 44 45 53 54 49 4e |.X..-mv |$(DESTIN|
|00001900| 41 54 49 4f 4e 5f 44 49 | 52 29 2f 65 69 64 20 24 |ATION_DI|R)/eid $|
|00001910| 28 44 45 53 54 49 4e 41 | 54 49 4f 4e 5f 44 49 52 |(DESTINA|TION_DIR|
|00001920| 29 2f 4f 4c 44 65 69 64 | 0a 58 09 09 2d 6d 76 20 |)/OLDeid|.X..-mv |
|00001930| 24 28 44 45 53 54 49 4e | 41 54 49 4f 4e 5f 44 49 |$(DESTIN|ATION_DI|
|00001940| 52 29 2f 70 69 64 20 24 | 28 44 45 53 54 49 4e 41 |R)/pid $|(DESTINA|
|00001950| 54 49 4f 4e 5f 44 49 52 | 29 2f 4f 4c 44 70 69 64 |TION_DIR|)/OLDpid|
|00001960| 0a 58 09 09 2d 6d 76 20 | 24 28 44 45 53 54 49 4e |.X..-mv |$(DESTIN|
|00001970| 41 54 49 4f 4e 5f 44 49 | 52 29 2f 69 69 64 20 24 |ATION_DI|R)/iid $|
|00001980| 28 44 45 53 54 49 4e 41 | 54 49 4f 4e 5f 44 49 52 |(DESTINA|TION_DIR|
|00001990| 29 2f 4f 4c 44 69 69 64 | 0a 58 09 09 2d 72 6d 20 |)/OLDiid|.X..-rm |
|000019a0| 2d 66 20 24 28 44 45 53 | 54 49 4e 41 54 49 4f 4e |-f $(DES|TINATION|
|000019b0| 5f 44 49 52 29 2f 69 69 | 64 2e 68 65 6c 70 0a 58 |_DIR)/ii|d.help.X|
|000019c0| 09 09 63 70 20 6d 6b 69 | 64 20 24 28 44 45 53 54 |..cp mki|d $(DEST|
|000019d0| 49 4e 41 54 49 4f 4e 5f | 44 49 52 29 2f 6d 6b 69 |INATION_|DIR)/mki|
|000019e0| 64 0a 58 09 09 63 70 20 | 6c 69 64 20 24 28 44 45 |d.X..cp |lid $(DE|
|000019f0| 53 54 49 4e 41 54 49 4f | 4e 5f 44 49 52 29 2f 6c |STINATIO|N_DIR)/l|
|00001a00| 69 64 0a 58 09 09 63 70 | 20 69 64 78 20 24 28 44 |id.X..cp| idx $(D|
|00001a10| 45 53 54 49 4e 41 54 49 | 4f 4e 5f 44 49 52 29 2f |ESTINATI|ON_DIR)/|
|00001a20| 69 64 78 0a 58 09 09 63 | 70 20 66 69 64 20 24 28 |idx.X..c|p fid $(|
|00001a30| 44 45 53 54 49 4e 41 54 | 49 4f 4e 5f 44 49 52 29 |DESTINAT|ION_DIR)|
|00001a40| 2f 66 69 64 0a 58 09 09 | 63 70 20 69 69 64 20 24 |/fid.X..|cp iid $|
|00001a50| 28 44 45 53 54 49 4e 41 | 54 49 4f 4e 5f 44 49 52 |(DESTINA|TION_DIR|
|00001a60| 29 2f 69 69 64 0a 58 09 | 09 63 70 20 69 69 64 2e |)/iid.X.|.cp iid.|
|00001a70| 68 65 6c 70 20 24 28 44 | 45 53 54 49 4e 41 54 49 |help $(D|ESTINATI|
|00001a80| 4f 4e 5f 44 49 52 29 2f | 69 69 64 2e 68 65 6c 70 |ON_DIR)/|iid.help|
|00001a90| 0a 58 09 09 63 68 6d 6f | 64 20 34 34 34 20 24 28 |.X..chmo|d 444 $(|
|00001aa0| 44 45 53 54 49 4e 41 54 | 49 4f 4e 5f 44 49 52 29 |DESTINAT|ION_DIR)|
|00001ab0| 2f 69 69 64 2e 68 65 6c | 70 0a 58 09 09 6c 6e 20 |/iid.hel|p.X..ln |
|00001ac0| 24 28 44 45 53 54 49 4e | 41 54 49 4f 4e 5f 44 49 |$(DESTIN|ATION_DI|
|00001ad0| 52 29 2f 6c 69 64 20 24 | 28 44 45 53 54 49 4e 41 |R)/lid $|(DESTINA|
|00001ae0| 54 49 4f 4e 5f 44 49 52 | 29 2f 67 69 64 0a 58 09 |TION_DIR|)/gid.X.|
|00001af0| 09 6c 6e 20 24 28 44 45 | 53 54 49 4e 41 54 49 4f |.ln $(DE|STINATIO|
|00001b00| 4e 5f 44 49 52 29 2f 6c | 69 64 20 24 28 44 45 53 |N_DIR)/l|id $(DES|
|00001b10| 54 49 4e 41 54 49 4f 4e | 5f 44 49 52 29 2f 61 69 |TINATION|_DIR)/ai|
|00001b20| 64 0a 58 09 09 6c 6e 20 | 24 28 44 45 53 54 49 4e |d.X..ln |$(DESTIN|
|00001b30| 41 54 49 4f 4e 5f 44 49 | 52 29 2f 6c 69 64 20 24 |ATION_DI|R)/lid $|
|00001b40| 28 44 45 53 54 49 4e 41 | 54 49 4f 4e 5f 44 49 52 |(DESTINA|TION_DIR|
|00001b50| 29 2f 65 69 64 0a 58 09 | 09 6c 6e 20 24 28 44 45 |)/eid.X.|.ln $(DE|
|00001b60| 53 54 49 4e 41 54 49 4f | 4e 5f 44 49 52 29 2f 6c |STINATIO|N_DIR)/l|
|00001b70| 69 64 20 24 28 44 45 53 | 54 49 4e 41 54 49 4f 4e |id $(DES|TINATION|
|00001b80| 5f 44 49 52 29 2f 70 69 | 64 0a 58 0a 58 63 6c 65 |_DIR)/pi|d.X.Xcle|
|00001b90| 61 6e 3a 0a 58 09 09 72 | 6d 20 2d 66 20 24 28 54 |an:.X..r|m -f $(T|
|00001ba0| 41 52 47 45 54 53 29 20 | 2a 2e 6f 20 69 69 64 2e |ARGETS) |*.o iid.|
|00001bb0| 63 20 63 6f 72 65 20 61 | 2e 6f 75 74 20 24 28 54 |c core a|.out $(T|
|00001bc0| 45 58 4a 55 4e 4b 29 0a | 58 0a 58 69 64 2e 74 61 |EXJUNK).|X.Xid.ta|
|00001bd0| 72 3a 0a 58 09 09 63 64 | 20 2e 2e 3b 20 74 61 72 |r:.X..cd| ..; tar|
|00001be0| 20 63 76 62 66 20 32 30 | 20 69 64 2f 69 64 2e 74 | cvbf 20| id/id.t|
|00001bf0| 61 72 20 69 64 2f 2a 2e | 5b 63 68 31 2d 38 5d 20 |ar id/*.|[ch1-8] |
|00001c00| 69 64 2f 6d 61 6b 65 66 | 69 6c 65 20 69 64 2f 54 |id/makef|ile id/T|
|00001c10| 4f 44 4f 20 69 64 2f 54 | 55 54 4f 52 49 41 4c 0a |ODO id/T|UTORIAL.|
|00001c20| 58 0a 58 69 64 2e 74 61 | 72 2e 5a 3a 09 69 64 2e |X.Xid.ta|r.Z:.id.|
|00001c30| 74 61 72 0a 58 09 09 63 | 6f 6d 70 72 65 73 73 20 |tar.X..c|ompress |
|00001c40| 2d 62 20 31 34 20 3c 69 | 64 2e 74 61 72 20 3e 69 |-b 14 <i|d.tar >i|
|00001c50| 64 2e 74 61 72 2e 5a 0a | 58 0a 58 69 64 2e 73 68 |d.tar.Z.|X.Xid.sh|
|00001c60| 61 72 3a 09 69 64 2e 73 | 68 61 72 2d 31 20 69 64 |ar:.id.s|har-1 id|
|00001c70| 2e 73 68 61 72 2d 32 20 | 69 64 2e 73 68 61 72 2d |.shar-2 |id.shar-|
|00001c80| 33 0a 58 0a 58 69 64 2e | 73 68 61 72 2d 31 3a 0a |3.X.Xid.|shar-1:.|
|00001c90| 58 09 09 73 68 61 72 20 | 24 28 53 48 41 52 46 4c |X..shar |$(SHARFL|
|00001ca0| 41 47 53 29 20 54 55 54 | 4f 52 49 41 4c 20 54 4f |AGS) TUT|ORIAL TO|
|00001cb0| 44 4f 20 6d 61 6b 65 66 | 69 6c 65 20 2a 2e 68 20 |DO makef|ile *.h |
|00001cc0| 2a 2e 5b 31 2d 38 5d 20 | 3e 24 40 0a 58 0a 58 69 |*.[1-8] |>$@.X.Xi|
|00001cd0| 64 2e 73 68 61 72 2d 32 | 3a 0a 58 09 09 73 68 61 |d.shar-2|:.X..sha|
|00001ce0| 72 20 24 28 53 48 41 52 | 46 4c 41 47 53 29 20 5b |r $(SHAR|FLAGS) [|
|00001cf0| 61 2d 6c 5d 2a 2e 63 20 | 3e 24 40 0a 58 0a 58 69 |a-l]*.c |>$@.X.Xi|
|00001d00| 64 2e 73 68 61 72 2d 33 | 3a 0a 58 09 09 73 68 61 |d.shar-3|:.X..sha|
|00001d10| 72 20 24 28 53 48 41 52 | 46 4c 41 47 53 29 20 5b |r $(SHAR|FLAGS) [|
|00001d20| 6d 2d 7a 5d 2a 2e 63 20 | 3e 24 40 0a 58 0a 58 64 |m-z]*.c |>$@.X.Xd|
|00001d30| 65 62 75 67 3a 0a 58 09 | 6d 61 6b 65 20 43 43 46 |ebug:.X.|make CCF|
|00001d40| 4c 47 3d 27 2d 67 20 2d | 44 44 45 42 55 47 27 20 |LG='-g -|DDEBUG' |
|00001d50| 4c 44 46 4c 47 3d 27 2d | 67 27 0a 58 0a 58 49 44 |LDFLG='-|g'.X.XID|
|00001d60| 3a 3a 0a 58 09 2f 62 69 | 6e 2f 72 6d 20 2d 66 20 |::.X./bi|n/rm -f |
|00001d70| 49 44 0a 58 09 6d 6b 69 | 64 20 2a 2e 5b 63 68 79 |ID.X.mki|d *.[chy|
|00001d80| 5d 0a 58 0a 58 54 41 47 | 53 3a 3a 0a 58 09 2f 62 |].X.XTAG|S::.X./b|
|00001d90| 69 6e 2f 72 6d 20 2d 66 | 20 54 41 47 53 0a 58 09 |in/rm -f| TAGS.X.|
|00001da0| 65 74 61 67 73 20 2d 74 | 77 20 2a 2e 5b 63 68 79 |etags -t|w *.[chy|
|00001db0| 5d 0a 58 0a 58 23 20 54 | 65 58 20 73 74 75 66 66 |].X.X# T|eX stuff|
|00001dc0| 20 2d 20 74 68 65 73 65 | 20 61 63 74 69 6f 6e 73 | - these| actions|
|00001dd0| 20 63 6f 75 6e 74 20 6f | 6e 20 73 65 76 65 72 61 | count o|n severa|
|00001de0| 6c 20 74 68 69 6e 67 73 | 20 62 65 69 6e 67 20 69 |l things| being i|
|00001df0| 6e 73 74 61 6c 6c 65 64 | 20 6f 6e 0a 58 23 20 79 |nstalled| on.X# y|
|00001e00| 6f 75 72 20 73 79 73 74 | 65 6d 3a 0a 58 23 0a 58 |our syst|em:.X#.X|
|00001e10| 23 20 74 65 78 20 2d 20 | 74 68 65 20 64 6f 63 75 |# tex - |the docu|
|00001e20| 6d 65 6e 74 20 70 72 6f | 63 65 73 73 6f 72 0a 58 |ment pro|cessor.X|
|00001e30| 23 20 74 65 78 69 6e 66 | 6f 2e 74 65 78 20 2d 20 |# texinf|o.tex - |
|00001e40| 74 68 65 20 74 65 78 69 | 6e 66 6f 20 6d 61 63 72 |the texi|nfo macr|
|00001e50| 6f 20 70 61 63 6b 61 67 | 65 20 75 73 65 64 20 74 |o packag|e used t|
|00001e60| 6f 20 66 6f 72 6d 61 74 | 20 74 68 65 20 64 6f 63 |o format| the doc|
|00001e70| 75 6d 65 6e 74 0a 58 23 | 20 74 65 78 69 6e 64 65 |ument.X#| texinde|
|00001e80| 78 20 2d 20 74 68 65 20 | 69 6e 64 65 78 20 73 6f |x - the |index so|
|00001e90| 72 74 69 6e 67 20 70 72 | 6f 67 72 61 6d 20 75 73 |rting pr|ogram us|
|00001ea0| 65 64 20 74 6f 20 67 65 | 6e 65 72 61 74 65 20 74 |ed to ge|nerate t|
|00001eb0| 68 65 20 69 6e 64 65 78 | 0a 58 23 20 6d 61 6b 65 |he index|.X# make|
|00001ec0| 69 6e 66 6f 20 2d 20 74 | 68 65 20 70 72 6f 67 72 |info - t|he progr|
|00001ed0| 61 6d 20 74 6f 20 74 75 | 72 6e 20 74 65 78 69 6e |am to tu|rn texin|
|00001ee0| 66 6f 20 66 69 6c 65 73 | 20 69 6e 74 6f 20 6f 6e |fo files| into on|
|00001ef0| 6c 69 6e 65 20 64 6f 63 | 75 6d 65 6e 74 61 74 69 |line doc|umentati|
|00001f00| 6f 6e 0a 58 23 0a 58 23 | 20 41 20 74 65 78 20 64 |on.X#.X#| A tex d|
|00001f10| 69 73 74 72 69 62 75 74 | 69 6f 6e 20 74 61 70 65 |istribut|ion tape|
|00001f20| 20 63 61 6e 20 62 65 20 | 6f 62 74 61 69 6e 65 64 | can be |obtained|
|00001f30| 20 66 72 6f 6d 20 74 68 | 65 20 55 6e 69 76 65 72 | from th|e Univer|
|00001f40| 73 69 74 79 20 6f 66 20 | 57 61 73 68 69 6e 67 74 |sity of |Washingt|
|00001f50| 6f 6e 2e 0a 58 23 20 73 | 65 6e 64 20 65 6d 61 69 |on..X# s|end emai|
|00001f60| 6c 20 74 6f 3a 20 65 6c | 69 73 61 62 65 74 40 6d |l to: el|isabet@m|
|00001f70| 61 78 2e 75 2e 77 61 73 | 68 69 6e 67 74 6f 6e 2e |ax.u.was|hington.|
|00001f80| 65 64 75 20 66 6f 72 20 | 6d 6f 72 65 20 69 6e 66 |edu for |more inf|
|00001f90| 6f 2e 0a 58 23 0a 58 23 | 20 54 68 65 20 6f 74 68 |o..X#.X#| The oth|
|00001fa0| 65 72 20 74 65 78 69 6e | 66 6f 20 74 6f 6f 6c 73 |er texin|fo tools|
|00001fb0| 20 61 72 65 20 70 61 72 | 74 20 6f 66 20 74 68 65 | are par|t of the|
|00001fc0| 20 47 6e 75 65 6d 61 63 | 73 20 64 69 73 74 72 69 | Gnuemac|s distri|
|00001fd0| 62 75 74 69 6f 6e 20 61 | 6e 64 20 63 61 6e 0a 58 |bution a|nd can.X|
|00001fe0| 23 20 62 65 20 6f 62 74 | 61 69 6e 65 64 20 76 69 |# be obt|ained vi|
|00001ff0| 61 20 46 54 50 20 66 72 | 6f 6d 20 70 72 65 70 2e |a FTP fr|om prep.|
|00002000| 61 69 2e 6d 69 74 2e 65 | 64 75 0a 58 0a 58 23 20 |ai.mit.e|du.X.X# |
|00002010| 4d 61 6b 65 20 74 68 65 | 20 6f 6e 6c 69 6e 65 20 |Make the| online |
|00002020| 69 6e 66 6f 20 66 69 6c | 65 20 62 79 20 72 75 6e |info fil|e by run|
|00002030| 6e 69 6e 67 20 6d 61 6b | 65 69 6e 66 6f 20 2d 20 |ning mak|einfo - |
|00002040| 74 65 78 69 6e 66 6f 2d | 66 6f 72 6d 61 74 2d 62 |texinfo-|format-b|
|00002050| 75 66 66 65 72 20 66 72 | 6f 6d 0a 58 23 20 77 69 |uffer fr|om.X# wi|
|00002060| 74 68 69 6e 20 65 6d 61 | 63 73 20 70 72 6f 62 61 |thin ema|cs proba|
|00002070| 62 6c 79 20 77 69 6c 6c | 20 6e 6f 74 20 77 6f 72 |bly will| not wor|
|00002080| 6b 20 76 65 72 79 20 77 | 65 6c 6c 2e 0a 58 69 64 |k very w|ell..Xid|
|00002090| 2d 69 6e 66 6f 3a 20 69 | 64 2e 74 65 78 69 6e 66 |-info: i|d.texinf|
|000020a0| 6f 0a 58 09 6d 61 6b 65 | 69 6e 66 6f 20 69 64 2e |o.X.make|info id.|
|000020b0| 74 65 78 69 6e 66 6f 0a | 58 0a 58 23 20 49 66 20 |texinfo.|X.X# If |
|000020c0| 79 6f 75 20 61 72 65 20 | 72 75 6e 6e 69 6e 67 20 |you are |running |
|000020d0| 54 65 58 20 66 72 6f 6d | 20 61 20 63 6c 65 61 6e |TeX from| a clean|
|000020e0| 20 64 69 72 65 63 74 6f | 72 79 2c 20 6e 65 65 64 | directo|ry, need|
|000020f0| 20 74 6f 20 72 75 6e 20 | 6f 6e 63 65 20 74 6f 20 | to run |once to |
|00002100| 67 65 74 0a 58 23 20 74 | 68 65 20 69 6e 69 74 69 |get.X# t|he initi|
|00002110| 61 6c 20 2e 61 75 78 20 | 66 69 6c 65 20 77 69 74 |al .aux |file wit|
|00002120| 68 20 74 68 65 20 63 72 | 6f 73 73 20 72 65 66 65 |h the cr|oss refe|
|00002130| 72 65 6e 63 65 20 69 6e | 66 6f 20 69 6e 20 69 74 |rence in|fo in it|
|00002140| 2e 0a 58 69 64 2e 61 75 | 78 3a 20 69 64 2e 74 65 |..Xid.au|x: id.te|
|00002150| 78 69 6e 66 6f 0a 58 09 | 74 65 78 20 69 64 2e 74 |xinfo.X.|tex id.t|
|00002160| 65 78 69 6e 66 6f 0a 58 | 09 74 65 78 69 6e 64 65 |exinfo.X|.texinde|
|00002170| 78 20 69 64 2e 3f 3f 0a | 58 0a 58 23 20 52 75 6e |x id.??.|X.X# Run|
|00002180| 6e 69 6e 67 20 54 65 58 | 20 74 77 69 63 65 20 68 |ning TeX| twice h|
|00002190| 65 72 65 20 69 73 20 70 | 72 6f 62 61 62 6c 79 20 |ere is p|robably |
|000021a0| 6f 76 65 72 6b 69 6c 6c | 2c 20 62 75 74 20 69 74 |overkill|, but it|
|000021b0| 20 6d 61 6b 65 73 20 61 | 62 73 6f 6c 75 74 65 6c | makes a|bsolutel|
|000021c0| 79 20 73 75 72 65 0a 58 | 23 20 74 68 65 20 69 6e |y sure.X|# the in|
|000021d0| 64 65 78 20 61 67 72 65 | 65 73 20 77 69 74 68 20 |dex agre|es with |
|000021e0| 74 68 65 20 61 63 74 75 | 61 6c 20 6c 6f 63 61 74 |the actu|al locat|
|000021f0| 69 6f 6e 20 6f 66 20 74 | 65 78 74 2e 0a 58 69 64 |ion of t|ext..Xid|
|00002200| 2e 64 76 69 3a 20 69 64 | 2e 61 75 78 0a 58 09 74 |.dvi: id|.aux.X.t|
|00002210| 65 78 20 69 64 2e 74 65 | 78 69 6e 66 6f 0a 58 09 |ex id.te|xinfo.X.|
|00002220| 74 65 78 69 6e 64 65 78 | 20 69 64 2e 3f 3f 0a 58 |texindex| id.??.X|
|00002230| 09 74 65 78 20 69 64 2e | 74 65 78 69 6e 66 6f 0a |.tex id.|texinfo.|
|00002240| 45 4e 44 5f 4f 46 5f 46 | 49 4c 45 0a 69 66 20 74 |END_OF_F|ILE.if t|
|00002250| 65 73 74 20 37 34 39 31 | 20 2d 6e 65 20 60 77 63 |est 7491| -ne `wc|
|00002260| 20 2d 63 20 3c 27 4d 61 | 6b 65 66 69 6c 65 27 60 | -c <'Ma|kefile'`|
|00002270| 3b 20 74 68 65 6e 0a 20 | 20 20 20 65 63 68 6f 20 |; then. | echo |
|00002280| 73 68 61 72 3a 20 5c 22 | 27 4d 61 6b 65 66 69 6c |shar: \"|'Makefil|
|00002290| 65 27 5c 22 20 75 6e 70 | 61 63 6b 65 64 20 77 69 |e'\" unp|acked wi|
|000022a0| 74 68 20 77 72 6f 6e 67 | 20 73 69 7a 65 21 0a 66 |th wrong| size!.f|
|000022b0| 69 0a 23 20 65 6e 64 20 | 6f 66 20 27 4d 61 6b 65 |i.# end |of 'Make|
|000022c0| 66 69 6c 65 27 0a 66 69 | 0a 69 66 20 74 65 73 74 |file'.fi|.if test|
|000022d0| 20 2d 66 20 27 67 65 74 | 73 63 61 6e 2e 63 27 20 | -f 'get|scan.c' |
|000022e0| 2d 61 20 22 24 7b 31 7d | 22 20 21 3d 20 22 2d 63 |-a "${1}|" != "-c|
|000022f0| 22 20 3b 20 74 68 65 6e | 20 0a 20 20 65 63 68 6f |" ; then| . echo|
|00002300| 20 73 68 61 72 3a 20 57 | 69 6c 6c 20 6e 6f 74 20 | shar: W|ill not |
|00002310| 63 6c 6f 62 62 65 72 20 | 65 78 69 73 74 69 6e 67 |clobber |existing|
|00002320| 20 66 69 6c 65 20 5c 22 | 27 67 65 74 73 63 61 6e | file \"|'getscan|
|00002330| 2e 63 27 5c 22 0a 65 6c | 73 65 0a 65 63 68 6f 20 |.c'\".el|se.echo |
|00002340| 73 68 61 72 3a 20 45 78 | 74 72 61 63 74 69 6e 67 |shar: Ex|tracting|
|00002350| 20 5c 22 27 67 65 74 73 | 63 61 6e 2e 63 27 5c 22 | \"'gets|can.c'\"|
|00002360| 20 5c 28 37 31 34 31 20 | 63 68 61 72 61 63 74 65 | \(7141 |characte|
|00002370| 72 73 5c 29 0a 73 65 64 | 20 22 73 2f 5e 58 2f 2f |rs\).sed| "s/^X//|
|00002380| 22 20 3e 27 67 65 74 73 | 63 61 6e 2e 63 27 20 3c |" >'gets|can.c' <|
|00002390| 3c 27 45 4e 44 5f 4f 46 | 5f 46 49 4c 45 27 0a 58 |<'END_OF|_FILE'.X|
|000023a0| 2f 2a 20 43 6f 70 79 72 | 69 67 68 74 20 28 63 29 |/* Copyr|ight (c)|
|000023b0| 20 31 39 38 36 2c 20 47 | 72 65 67 20 4d 63 47 61 | 1986, G|reg McGa|
|000023c0| 72 79 20 2a 2f 0a 58 73 | 74 61 74 69 63 20 63 68 |ry */.Xs|tatic ch|
|000023d0| 61 72 20 73 63 63 73 69 | 64 5b 5d 20 3d 20 22 40 |ar sccsi|d[] = "@|
|000023e0| 28 23 29 67 65 74 73 63 | 61 6e 2e 63 09 31 2e 31 |(#)getsc|an.c.1.1|
|000023f0| 20 38 36 2f 31 30 2f 30 | 39 22 3b 0a 58 0a 58 23 | 86/10/0|9";.X.X#|
|00002400| 69 6e 63 6c 75 64 65 09 | 3c 73 74 64 69 6f 2e 68 |include.|<stdio.h|
|00002410| 3e 0a 58 23 69 6e 63 6c | 75 64 65 09 3c 73 74 72 |>.X#incl|ude.<str|
|00002420| 69 6e 67 2e 68 3e 0a 58 | 23 69 6e 63 6c 75 64 65 |ing.h>.X|#include|
|00002430| 09 3c 69 64 2e 68 3e 0a | 58 23 69 6e 63 6c 75 64 |.<id.h>.|X#includ|
|00002440| 65 09 3c 63 74 79 70 65 | 2e 68 3e 0a 58 23 69 6e |e.<ctype|.h>.X#in|
|00002450| 63 6c 75 64 65 09 3c 65 | 78 74 65 72 6e 2e 68 3e |clude.<e|xtern.h>|
|00002460| 0a 58 0a 58 63 68 61 72 | 20 2a 67 65 74 4c 61 6e |.X.Xchar| *getLan|
|00002470| 67 75 61 67 65 28 29 3b | 0a 58 63 68 61 72 20 2a |guage();|.Xchar *|
|00002480| 28 2a 67 65 74 53 63 61 | 6e 6e 65 72 28 29 29 28 |(*getSca|nner())(|
|00002490| 29 3b 0a 58 76 6f 69 64 | 20 73 65 74 53 63 61 6e |);.Xvoid| setScan|
|000024a0| 41 72 67 73 28 29 3b 0a | 58 0a 58 73 74 61 74 69 |Args();.|X.Xstati|
|000024b0| 63 20 73 74 72 75 63 74 | 20 73 75 66 66 74 61 62 |c struct| sufftab|
|000024c0| 20 2a 73 75 66 66 53 6c | 6f 74 28 29 3b 0a 58 73 | *suffSl|ot();.Xs|
|000024d0| 74 61 74 69 63 20 73 74 | 72 75 63 74 20 6c 61 6e |tatic st|ruct lan|
|000024e0| 67 74 61 62 20 2a 6c 61 | 6e 67 53 6c 6f 74 28 29 |gtab *la|ngSlot()|
|000024f0| 3b 0a 58 73 74 61 74 69 | 63 20 76 6f 69 64 20 73 |;.Xstati|c void s|
|00002500| 6f 72 72 79 4e 6f 53 63 | 61 6e 28 29 3b 0a 58 0a |orryNoSc|an();.X.|
|00002510| 58 76 6f 69 64 20 73 65 | 74 41 64 61 41 72 67 73 |Xvoid se|tAdaArgs|
|00002520| 28 6c 61 6e 67 29 20 7b | 20 73 6f 72 72 79 4e 6f |(lang) {| sorryNo|
|00002530| 53 63 61 6e 28 6c 61 6e | 67 29 3b 20 7d 0a 58 63 |Scan(lan|g); }.Xc|
|00002540| 68 61 72 20 2a 67 65 74 | 41 64 61 49 64 28 29 20 |har *get|AdaId() |
|00002550| 7b 20 73 65 74 41 64 61 | 41 72 67 73 28 22 61 64 |{ setAda|Args("ad|
|00002560| 61 22 29 3b 20 72 65 74 | 75 72 6e 20 4e 55 4c 4c |a"); ret|urn NULL|
|00002570| 3b 20 7d 0a 58 0a 58 76 | 6f 69 64 20 73 65 74 50 |; }.X.Xv|oid setP|
|00002580| 61 73 63 61 6c 41 72 67 | 73 28 6c 61 6e 67 29 20 |ascalArg|s(lang) |
|00002590| 7b 20 73 6f 72 72 79 4e | 6f 53 63 61 6e 28 6c 61 |{ sorryN|oScan(la|
|000025a0| 6e 67 29 3b 20 7d 0a 58 | 63 68 61 72 20 2a 67 65 |ng); }.X|char *ge|
|000025b0| 74 50 61 73 63 61 6c 49 | 64 28 29 20 7b 20 73 65 |tPascalI|d() { se|
|000025c0| 74 50 61 73 63 61 6c 41 | 72 67 73 28 22 70 61 73 |tPascalA|rgs("pas|
|000025d0| 63 61 6c 22 29 3b 20 72 | 65 74 75 72 6e 20 4e 55 |cal"); r|eturn NU|
|000025e0| 4c 4c 3b 20 7d 0a 58 0a | 58 76 6f 69 64 20 73 65 |LL; }.X.|Xvoid se|
|000025f0| 74 4c 69 73 70 41 72 67 | 73 28 6c 61 6e 67 29 20 |tLispArg|s(lang) |
|00002600| 7b 20 73 6f 72 72 79 4e | 6f 53 63 61 6e 28 6c 61 |{ sorryN|oScan(la|
|00002610| 6e 67 29 3b 20 7d 0a 58 | 63 68 61 72 20 2a 67 65 |ng); }.X|char *ge|
|00002620| 74 4c 69 73 70 49 64 28 | 29 20 7b 20 73 65 74 4c |tLispId(|) { setL|
|00002630| 69 73 70 41 72 67 73 28 | 22 6c 69 73 70 22 29 3b |ispArgs(|"lisp");|
|00002640| 20 72 65 74 75 72 6e 20 | 4e 55 4c 4c 3b 20 7d 0a | return |NULL; }.|
|00002650| 58 0a 58 73 74 72 75 63 | 74 20 6c 61 6e 67 74 61 |X.Xstruc|t langta|
|00002660| 62 20 7b 0a 58 09 73 74 | 72 75 63 74 20 6c 61 6e |b {.X.st|ruct lan|
|00002670| 67 74 61 62 09 2a 6c 74 | 5f 6e 65 78 74 3b 0a 58 |gtab.*lt|_next;.X|
|00002680| 09 63 68 61 72 09 2a 6c | 74 5f 6e 61 6d 65 3b 0a |.char.*l|t_name;.|
|00002690| 58 09 63 68 61 72 09 2a | 28 2a 6c 74 5f 67 65 74 |X.char.*|(*lt_get|
|000026a0| 69 64 29 28 29 3b 0a 58 | 09 76 6f 69 64 09 28 2a |id)();.X|.void.(*|
|000026b0| 6c 74 5f 73 65 74 61 72 | 67 73 29 28 29 3b 0a 58 |lt_setar|gs)();.X|
|000026c0| 09 63 68 61 72 09 2a 6c | 74 5f 66 69 6c 74 65 72 |.char.*l|t_filter|
|000026d0| 3b 0a 58 7d 3b 0a 58 0a | 58 73 74 72 75 63 74 20 |;.X};.X.|Xstruct |
|000026e0| 73 75 66 66 74 61 62 20 | 7b 0a 58 09 73 74 72 75 |sufftab |{.X.stru|
|000026f0| 63 74 20 73 75 66 66 74 | 61 62 09 2a 73 74 5f 6e |ct sufft|ab.*st_n|
|00002700| 65 78 74 3b 0a 58 09 63 | 68 61 72 09 2a 73 74 5f |ext;.X.c|har.*st_|
|00002710| 73 75 66 66 69 78 3b 0a | 58 09 73 74 72 75 63 74 |suffix;.|X.struct|
|00002720| 20 6c 61 6e 67 74 61 62 | 20 2a 73 74 5f 6c 61 6e | langtab| *st_lan|
|00002730| 67 3b 0a 58 7d 3b 0a 58 | 0a 58 0a 58 73 74 72 75 |g;.X};.X|.X.Xstru|
|00002740| 63 74 20 6c 61 6e 67 74 | 61 62 20 6c 61 6e 67 74 |ct langt|ab langt|
|00002750| 61 62 5b 5d 20 3d 20 7b | 0a 58 23 64 65 66 69 6e |ab[] = {|.X#defin|
|00002760| 65 09 53 43 41 4e 5f 43 | 09 09 28 26 6c 61 6e 67 |e.SCAN_C|..(&lang|
|00002770| 74 61 62 5b 30 5d 29 0a | 58 7b 26 6c 61 6e 67 74 |tab[0]).|X{&langt|
|00002780| 61 62 5b 31 5d 2c 09 22 | 63 22 2c 09 09 67 65 74 |ab[1],."|c",..get|
|00002790| 43 49 64 2c 09 09 73 65 | 74 43 41 72 67 73 2c 09 |CId,..se|tCArgs,.|
|000027a0| 4e 55 4c 4c 7d 2c 0a 58 | 23 64 65 66 69 6e 65 09 |NULL},.X|#define.|
|000027b0| 53 43 41 4e 5f 41 53 4d | 09 28 26 6c 61 6e 67 74 |SCAN_ASM|.(&langt|
|000027c0| 61 62 5b 31 5d 29 0a 58 | 7b 26 6c 61 6e 67 74 61 |ab[1]).X|{&langta|
|000027d0| 62 5b 32 5d 2c 09 22 61 | 73 6d 22 2c 09 09 67 65 |b[2],."a|sm",..ge|
|000027e0| 74 41 73 6d 49 64 2c 09 | 73 65 74 41 73 6d 41 72 |tAsmId,.|setAsmAr|
|000027f0| 67 73 2c 09 4e 55 4c 4c | 7d 2c 0a 58 23 64 65 66 |gs,.NULL|},.X#def|
|00002800| 69 6e 65 09 53 43 41 4e | 5f 41 44 41 09 28 26 6c |ine.SCAN|_ADA.(&l|
|00002810| 61 6e 67 74 61 62 5b 32 | 5d 29 0a 58 7b 26 6c 61 |angtab[2|]).X{&la|
|00002820| 6e 67 74 61 62 5b 33 5d | 2c 09 22 61 64 61 22 2c |ngtab[3]|,."ada",|
|00002830| 09 09 67 65 74 41 64 61 | 49 64 2c 09 73 65 74 41 |..getAda|Id,.setA|
|00002840| 64 61 41 72 67 73 2c 09 | 4e 55 4c 4c 7d 2c 0a 58 |daArgs,.|NULL},.X|
|00002850| 23 64 65 66 69 6e 65 09 | 53 43 41 4e 5f 50 41 53 |#define.|SCAN_PAS|
|00002860| 43 41 4c 09 28 26 6c 61 | 6e 67 74 61 62 5b 33 5d |CAL.(&la|ngtab[3]|
|00002870| 29 0a 58 7b 26 6c 61 6e | 67 74 61 62 5b 34 5d 2c |).X{&lan|gtab[4],|
|00002880| 09 22 70 61 73 63 61 6c | 22 2c 09 67 65 74 50 61 |."pascal|",.getPa|
|00002890| 73 63 61 6c 49 64 2c 09 | 73 65 74 50 61 73 63 61 |scalId,.|setPasca|
|000028a0| 6c 41 72 67 73 2c 09 4e | 55 4c 4c 7d 2c 0a 58 23 |lArgs,.N|ULL},.X#|
|000028b0| 64 65 66 69 6e 65 09 53 | 43 41 4e 5f 4c 49 53 50 |define.S|CAN_LISP|
|000028c0| 09 28 26 6c 61 6e 67 74 | 61 62 5b 34 5d 29 0a 58 |.(&langt|ab[4]).X|
|000028d0| 7b 26 6c 61 6e 67 74 61 | 62 5b 35 5d 2c 09 22 6c |{&langta|b[5],."l|
|000028e0| 69 73 70 22 2c 09 09 67 | 65 74 4c 69 73 70 49 64 |isp",..g|etLispId|
|000028f0| 2c 09 73 65 74 4c 69 73 | 70 41 72 67 73 2c 09 4e |,.setLis|pArgs,.N|
|00002900| 55 4c 4c 7d 2c 0a 58 23 | 64 65 66 69 6e 65 09 53 |ULL},.X#|define.S|
|00002910| 43 41 4e 5f 54 45 58 54 | 09 28 26 6c 61 6e 67 74 |CAN_TEXT|.(&langt|
|00002920| 61 62 5b 35 5d 29 0a 58 | 7b 26 6c 61 6e 67 74 61 |ab[5]).X|{&langta|
|00002930| 62 5b 36 5d 2c 09 22 74 | 65 78 74 22 2c 09 09 67 |b[6],."t|ext",..g|
|00002940| 65 74 54 65 78 74 49 64 | 2c 09 73 65 74 54 65 78 |etTextId|,.setTex|
|00002950| 74 41 72 67 73 2c 09 4e | 55 4c 4c 7d 2c 0a 58 23 |tArgs,.N|ULL},.X#|
|00002960| 64 65 66 69 6e 65 20 53 | 43 41 4e 5f 56 48 49 4c |define S|CAN_VHIL|
|00002970| 09 28 26 6c 61 6e 67 74 | 61 62 5b 36 5d 29 0a 58 |.(&langt|ab[6]).X|
|00002980| 7b 26 6c 61 6e 67 74 61 | 62 5b 37 5d 2c 09 22 76 |{&langta|b[7],."v|
|00002990| 68 69 6c 22 2c 09 09 67 | 65 74 56 68 69 6c 49 64 |hil",..g|etVhilId|
|000029a0| 2c 09 73 65 74 43 41 72 | 67 73 2c 09 4e 55 4c 4c |,.setCAr|gs,.NULL|
|000029b0| 7d 2c 0a 58 23 64 65 66 | 69 6e 65 20 53 43 41 4e |},.X#def|ine SCAN|
|000029c0| 5f 54 45 58 09 28 26 6c | 61 6e 67 74 61 62 5b 37 |_TEX.(&l|angtab[7|
|000029d0| 5d 29 0a 58 7b 26 6c 61 | 6e 67 74 61 62 5b 38 5d |]).X{&la|ngtab[8]|
|000029e0| 2c 09 22 74 65 78 22 2c | 09 09 67 65 74 54 65 78 |,."tex",|..getTex|
|000029f0| 74 49 64 2c 09 73 65 74 | 54 65 78 74 41 72 67 73 |tId,.set|TextArgs|
|00002a00| 2c 09 22 64 65 74 65 78 | 20 2d 69 20 25 73 22 7d |,."detex| -i %s"}|
|00002a10| 2c 0a 58 23 64 65 66 69 | 6e 65 20 53 43 41 4e 5f |,.X#defi|ne SCAN_|
|00002a20| 52 4f 46 46 09 28 26 6c | 61 6e 67 74 61 62 5b 38 |ROFF.(&l|angtab[8|
|00002a30| 5d 29 0a 58 7b 26 6c 61 | 6e 67 74 61 62 5b 39 5d |]).X{&la|ngtab[9]|
|00002a40| 2c 09 22 72 6f 66 66 22 | 2c 09 09 67 65 74 54 65 |,."roff"|,..getTe|
|00002a50| 78 74 49 64 2c 09 73 65 | 74 54 65 78 74 41 72 67 |xtId,.se|tTextArg|
|00002a60| 73 2c 09 22 73 65 64 20 | 27 2f 5e 5c 5c 2e 73 6f |s,."sed |'/^\\.so|
|00002a70| 2f 64 27 20 3c 20 25 73 | 20 7c 20 64 65 72 6f 66 |/d' < %s| | derof|
|00002a80| 66 22 7d 2c 0a 58 23 64 | 65 66 69 6e 65 20 53 43 |f"},.X#d|efine SC|
|00002a90| 41 4e 5f 43 41 54 4d 41 | 4e 09 28 26 6c 61 6e 67 |AN_CATMA|N.(&lang|
|00002aa0| 74 61 62 5b 39 5d 29 0a | 58 7b 26 6c 61 6e 67 74 |tab[9]).|X{&langt|
|00002ab0| 61 62 5b 31 30 5d 2c 09 | 22 63 61 74 6d 61 6e 22 |ab[10],.|"catman"|
|00002ac0| 2c 09 67 65 74 54 65 78 | 74 49 64 2c 09 73 65 74 |,.getTex|tId,.set|
|00002ad0| 54 65 78 74 41 72 67 73 | 2c 09 22 70 63 61 74 20 |TextArgs|,."pcat |
|00002ae0| 25 73 20 7c 20 63 6f 6c | 20 2d 62 22 7d 2c 0a 58 |%s | col| -b"},.X|
|00002af0| 7b 20 4e 55 4c 4c 2c 20 | 4e 55 4c 4c 2c 20 4e 55 |{ NULL, |NULL, NU|
|00002b00| 4c 4c 2c 20 4e 55 4c 4c | 2c 20 4e 55 4c 4c 7d 0a |LL, NULL|, NULL}.|
|00002b10| 58 7d 3b 0a 58 0a 58 2f | 2a 0a 58 09 54 68 69 73 |X};.X.X/|*.X.This|
|00002b20| 20 69 73 20 61 20 72 61 | 74 68 65 72 20 69 6e 63 | is a ra|ther inc|
|00002b30| 6f 6d 70 6c 65 74 65 20 | 6c 69 73 74 20 6f 66 20 |omplete |list of |
|00002b40| 64 65 66 61 75 6c 74 20 | 61 73 73 6f 63 69 61 74 |default |associat|
|00002b50| 69 6f 6e 73 0a 58 09 62 | 65 74 77 65 65 6e 20 73 |ions.X.b|etween s|
|00002b60| 75 66 66 69 78 65 73 20 | 61 6e 64 20 6c 61 6e 67 |uffixes |and lang|
|00002b70| 75 61 67 65 73 2e 20 20 | 59 6f 75 20 6d 61 79 20 |uages. |You may |
|00002b80| 61 64 64 20 6d 6f 72 65 | 20 74 6f 20 74 68 65 0a |add more| to the.|
|00002b90| 58 09 64 65 66 61 75 6c | 74 20 6c 69 73 74 2c 20 |X.defaul|t list, |
|00002ba0| 6f 72 20 79 6f 75 20 6d | 61 79 20 64 65 66 69 6e |or you m|ay defin|
|00002bb0| 65 20 74 68 65 6d 20 64 | 79 6e 61 6d 69 63 61 6c |e them d|ynamical|
|00002bc0| 6c 79 20 77 69 74 68 20 | 74 68 65 0a 58 09 60 2d |ly with |the.X.`-|
|00002bd0| 53 3c 73 75 66 66 3e 3d | 3c 6c 61 6e 67 3e 27 20 |S<suff>=|<lang>' |
|00002be0| 61 72 67 75 6d 65 6e 74 | 20 74 6f 20 6d 6b 69 64 |argument| to mkid|
|00002bf0| 28 31 29 20 61 6e 64 20 | 69 64 78 28 31 29 2e 20 |(1) and |idx(1). |
|00002c00| 20 65 2e 67 2e 20 74 6f | 0a 58 09 61 73 73 6f 63 | e.g. to|.X.assoc|
|00002c10| 69 61 74 65 20 61 20 60 | 2e 61 64 61 27 20 73 75 |iate a `|.ada' su|
|00002c20| 66 66 69 78 20 77 69 74 | 68 20 74 68 65 20 41 64 |ffix wit|h the Ad|
|00002c30| 61 20 6c 61 6e 67 75 61 | 67 65 2c 20 75 73 65 0a |a langua|ge, use.|
|00002c40| 58 09 60 2d 53 2e 61 64 | 61 3d 61 64 61 27 0a 58 |X.`-S.ad|a=ada'.X|
|00002c50| 2a 2f 0a 58 73 74 72 75 | 63 74 20 73 75 66 66 74 |*/.Xstru|ct sufft|
|00002c60| 61 62 20 73 75 66 66 74 | 61 62 5b 5d 20 3d 20 7b |ab sufft|ab[] = {|
|00002c70| 0a 58 7b 26 73 75 66 66 | 74 61 62 5b 31 5d 2c 09 |.X{&suff|tab[1],.|
|00002c80| 22 2e 63 22 2c 09 53 43 | 41 4e 5f 43 09 09 7d 2c |".c",.SC|AN_C..},|
|00002c90| 0a 58 7b 26 73 75 66 66 | 74 61 62 5b 32 5d 2c 09 |.X{&suff|tab[2],.|
|00002ca0| 22 2e 68 22 2c 09 53 43 | 41 4e 5f 43 09 09 7d 2c |".h",.SC|AN_C..},|
|00002cb0| 0a 58 7b 26 73 75 66 66 | 74 61 62 5b 33 5d 2c 09 |.X{&suff|tab[3],.|
|00002cc0| 22 2e 79 22 2c 09 53 43 | 41 4e 5f 43 09 09 7d 2c |".y",.SC|AN_C..},|
|00002cd0| 0a 58 7b 26 73 75 66 66 | 74 61 62 5b 34 5d 2c 09 |.X{&suff|tab[4],.|
|00002ce0| 22 2e 73 22 2c 09 53 43 | 41 4e 5f 41 53 4d 09 7d |".s",.SC|AN_ASM.}|
|00002cf0| 2c 0a 58 7b 26 73 75 66 | 66 74 61 62 5b 35 5d 2c |,.X{&suf|ftab[5],|
|00002d00| 09 22 2e 70 22 2c 09 53 | 43 41 4e 5f 50 41 53 43 |.".p",.S|CAN_PASC|
|00002d10| 41 4c 09 7d 2c 0a 58 7b | 26 73 75 66 66 74 61 62 |AL.},.X{|&sufftab|
|00002d20| 5b 36 5d 2c 09 22 2e 70 | 61 73 22 2c 09 53 43 41 |[6],.".p|as",.SCA|
|00002d30| 4e 5f 50 41 53 43 41 4c | 09 7d 2c 0a 58 7b 26 73 |N_PASCAL|.},.X{&s|
|00002d40| 75 66 66 74 61 62 5b 37 | 5d 2c 09 22 2e 78 22 2c |ufftab[7|],.".x",|
|00002d50| 09 53 43 41 4e 5f 56 48 | 49 4c 09 7d 2c 0a 58 7b |.SCAN_VH|IL.},.X{|
|00002d60| 26 73 75 66 66 74 61 62 | 5b 38 5d 2c 09 22 2e 6c |&sufftab|[8],.".l|
|00002d70| 22 2c 09 53 43 41 4e 5f | 43 09 09 7d 2c 09 2f 2a |",.SCAN_|C..},./*|
|00002d80| 20 6c 65 78 20 2a 2f 0a | 58 7b 26 73 75 66 66 74 | lex */.|X{&sufft|
|00002d90| 61 62 5b 39 5d 2c 09 22 | 2e 64 6f 63 22 2c 09 53 |ab[9],."|.doc",.S|
|00002da0| 43 41 4e 5f 54 45 58 54 | 09 7d 2c 0a 58 7b 26 73 |CAN_TEXT|.},.X{&s|
|00002db0| 75 66 66 74 61 62 5b 31 | 30 5d 2c 09 22 2e 31 22 |ufftab[1|0],.".1"|
|00002dc0| 2c 09 53 43 41 4e 5f 52 | 4f 46 46 09 7d 2c 0a 58 |,.SCAN_R|OFF.},.X|
|00002dd0| 7b 26 73 75 66 66 74 61 | 62 5b 31 31 5d 2c 09 22 |{&suffta|b[11],."|
|00002de0| 2e 74 65 78 22 2c 09 53 | 43 41 4e 5f 54 45 58 09 |.tex",.S|CAN_TEX.|
|00002df0| 7d 2c 0a 58 7b 26 73 75 | 66 66 74 61 62 5b 31 32 |},.X{&su|fftab[12|
|00002e00| 5d 2c 09 22 2e 7a 22 2c | 09 53 43 41 4e 5f 43 41 |],.".z",|.SCAN_CA|
|00002e10| 54 4d 41 4e 09 7d 2c 0a | 58 7b 26 73 75 66 66 74 |TMAN.},.|X{&sufft|
|00002e20| 61 62 5b 31 33 5d 2c 09 | 22 22 2c 09 53 43 41 4e |ab[13],.|"",.SCAN|
|00002e30| 5f 54 45 58 54 09 7d 2c | 09 2f 2a 20 64 65 66 61 |_TEXT.},|./* defa|
|00002e40| 75 6c 74 20 74 6f 20 74 | 65 78 74 20 2a 2f 0a 58 |ult to t|ext */.X|
|00002e50| 7b 20 4e 55 4c 4c 2c 20 | 4e 55 4c 4c 2c 20 4e 55 |{ NULL, |NULL, NU|
|00002e60| 4c 4c 20 7d 2c 0a 58 7d | 3b 0a 58 0a 58 2f 2a 0a |LL },.X}|;.X.X/*.|
|00002e70| 58 09 52 65 74 75 72 6e | 20 61 6e 20 69 6e 64 65 |X.Return| an inde|
|00002e80| 78 20 69 6e 74 6f 20 74 | 68 65 20 6c 61 6e 67 74 |x into t|he langt|
|00002e90| 61 62 20 61 72 72 61 79 | 20 66 6f 72 20 74 68 65 |ab array| for the|
|00002ea0| 20 67 69 76 65 6e 20 73 | 75 66 66 69 78 2e 0a 58 | given s|uffix..X|
|00002eb0| 2a 2f 0a 58 73 74 61 74 | 69 63 20 73 74 72 75 63 |*/.Xstat|ic struc|
|00002ec0| 74 20 73 75 66 66 74 61 | 62 20 2a 0a 58 73 75 66 |t suffta|b *.Xsuf|
|00002ed0| 66 53 6c 6f 74 28 73 75 | 66 66 69 78 29 0a 58 09 |fSlot(su|ffix).X.|
|00002ee0| 72 65 67 69 73 74 65 72 | 20 63 68 61 72 09 2a 73 |register| char.*s|
|00002ef0| 75 66 66 69 78 3b 0a 58 | 7b 0a 58 09 72 65 67 69 |uffix;.X|{.X.regi|
|00002f00| 73 74 65 72 20 73 74 72 | 75 63 74 20 73 75 66 66 |ster str|uct suff|
|00002f10| 74 61 62 09 2a 73 74 70 | 3b 0a 58 0a 58 09 69 66 |tab.*stp|;.X.X.if|
|00002f20| 20 28 73 75 66 66 69 78 | 20 3d 3d 20 4e 55 4c 4c | (suffix| == NULL|
|00002f30| 29 0a 58 09 09 73 75 66 | 66 69 78 20 3d 20 22 22 |).X..suf|fix = ""|
|00002f40| 3b 0a 58 0a 58 09 66 6f | 72 20 28 73 74 70 20 3d |;.X.X.fo|r (stp =|
|00002f50| 20 73 75 66 66 74 61 62 | 3b 20 73 74 70 2d 3e 73 | sufftab|; stp->s|
|00002f60| 74 5f 6e 65 78 74 3b 20 | 73 74 70 20 3d 20 73 74 |t_next; |stp = st|
|00002f70| 70 2d 3e 73 74 5f 6e 65 | 78 74 29 0a 58 09 09 69 |p->st_ne|xt).X..i|
|00002f80| 66 20 28 73 74 72 65 71 | 75 28 73 74 70 2d 3e 73 |f (streq|u(stp->s|
|00002f90| 74 5f 73 75 66 66 69 78 | 2c 20 73 75 66 66 69 78 |t_suffix|, suffix|
|00002fa0| 29 29 0a 58 09 09 09 72 | 65 74 75 72 6e 20 73 74 |)).X...r|eturn st|
|00002fb0| 70 3b 0a 58 09 72 65 74 | 75 72 6e 20 73 74 70 3b |p;.X.ret|urn stp;|
|00002fc0| 0a 58 7d 0a 58 0a 58 73 | 74 61 74 69 63 20 73 74 |.X}.X.Xs|tatic st|
|00002fd0| 72 75 63 74 20 6c 61 6e | 67 74 61 62 20 2a 0a 58 |ruct lan|gtab *.X|
|00002fe0| 6c 61 6e 67 53 6c 6f 74 | 28 6c 61 6e 67 29 0a 58 |langSlot|(lang).X|
|00002ff0| 09 63 68 61 72 09 09 2a | 6c 61 6e 67 3b 0a 58 7b |.char..*|lang;.X{|
|00003000| 0a 58 09 72 65 67 69 73 | 74 65 72 20 73 74 72 75 |.X.regis|ter stru|
|00003010| 63 74 20 6c 61 6e 67 74 | 61 62 09 2a 6c 74 70 3b |ct langt|ab.*ltp;|
|00003020| 0a 58 0a 58 09 69 66 20 | 28 6c 61 6e 67 20 3d 3d |.X.X.if |(lang ==|
|00003030| 20 4e 55 4c 4c 29 0a 58 | 09 09 6c 61 6e 67 20 3d | NULL).X|..lang =|
|00003040| 20 22 22 3b 0a 58 0a 58 | 09 66 6f 72 20 28 6c 74 | "";.X.X|.for (lt|
|00003050| 70 20 3d 20 6c 61 6e 67 | 74 61 62 3b 20 6c 74 70 |p = lang|tab; ltp|
|00003060| 2d 3e 6c 74 5f 6e 65 78 | 74 3b 20 6c 74 70 20 3d |->lt_nex|t; ltp =|
|00003070| 20 6c 74 70 2d 3e 6c 74 | 5f 6e 65 78 74 29 0a 58 | ltp->lt|_next).X|
|00003080| 09 09 69 66 20 28 73 74 | 72 65 71 75 28 6c 74 70 |..if (st|requ(ltp|
|00003090| 2d 3e 6c 74 5f 6e 61 6d | 65 2c 20 6c 61 6e 67 29 |->lt_nam|e, lang)|
|000030a0| 29 0a 58 09 09 09 72 65 | 74 75 72 6e 20 6c 74 70 |).X...re|turn ltp|
|000030b0| 3b 0a 58 09 72 65 74 75 | 72 6e 20 6c 74 70 3b 0a |;.X.retu|rn ltp;.|
|000030c0| 58 7d 0a 58 0a 58 63 68 | 61 72 20 2a 0a 58 67 65 |X}.X.Xch|ar *.Xge|
|000030d0| 74 4c 61 6e 67 75 61 67 | 65 28 73 75 66 66 69 78 |tLanguag|e(suffix|
|000030e0| 29 0a 58 09 63 68 61 72 | 09 09 2a 73 75 66 66 69 |).X.char|..*suffi|
|000030f0| 78 3b 0a 58 7b 0a 58 09 | 73 74 72 75 63 74 20 73 |x;.X{.X.|struct s|
|00003100| 75 66 66 74 61 62 09 2a | 73 74 70 3b 0a 58 0a 58 |ufftab.*|stp;.X.X|
|00003110| 09 69 66 20 28 28 73 74 | 70 20 3d 20 73 75 66 66 |.if ((st|p = suff|
|00003120| 53 6c 6f 74 28 73 75 66 | 66 69 78 29 29 2d 3e 73 |Slot(suf|fix))->s|
|00003130| 74 5f 6e 65 78 74 20 3d | 3d 20 4e 55 4c 4c 29 0a |t_next =|= NULL).|
|00003140| 58 09 09 72 65 74 75 72 | 6e 20 4e 55 4c 4c 3b 0a |X..retur|n NULL;.|
|00003150| 58 09 72 65 74 75 72 6e | 20 28 73 74 70 2d 3e 73 |X.return| (stp->s|
|00003160| 74 5f 6c 61 6e 67 2d 3e | 6c 74 5f 6e 61 6d 65 29 |t_lang->|lt_name)|
|00003170| 3b 0a 58 7d 0a 58 0a 58 | 63 68 61 72 20 2a 0a 58 |;.X}.X.X|char *.X|
|00003180| 67 65 74 46 69 6c 74 65 | 72 28 73 75 66 66 69 78 |getFilte|r(suffix|
|00003190| 29 0a 58 09 63 68 61 72 | 09 09 2a 73 75 66 66 69 |).X.char|..*suffi|
|000031a0| 78 3b 0a 58 7b 0a 58 09 | 73 74 72 75 63 74 20 73 |x;.X{.X.|struct s|
|000031b0| 75 66 66 74 61 62 09 2a | 73 74 70 3b 0a 58 0a 58 |ufftab.*|stp;.X.X|
|000031c0| 09 69 66 20 28 28 73 74 | 70 20 3d 20 73 75 66 66 |.if ((st|p = suff|
|000031d0| 53 6c 6f 74 28 73 75 66 | 66 69 78 29 29 2d 3e 73 |Slot(suf|fix))->s|
|000031e0| 74 5f 6e 65 78 74 20 3d | 3d 20 4e 55 4c 4c 29 0a |t_next =|= NULL).|
|000031f0| 58 09 09 72 65 74 75 72 | 6e 20 4e 55 4c 4c 3b 0a |X..retur|n NULL;.|
|00003200| 58 09 72 65 74 75 72 6e | 20 28 73 74 70 2d 3e 73 |X.return| (stp->s|
|00003210| 74 5f 6c 61 6e 67 2d 3e | 6c 74 5f 66 69 6c 74 65 |t_lang->|lt_filte|
|00003220| 72 29 3b 0a 58 7d 0a 58 | 0a 58 63 68 61 72 20 2a |r);.X}.X|.Xchar *|
|00003230| 28 2a 0a 58 67 65 74 53 | 63 61 6e 6e 65 72 28 6c |(*.XgetS|canner(l|
|00003240| 61 6e 67 29 29 28 29 0a | 58 09 63 68 61 72 09 09 |ang))().|X.char..|
|00003250| 2a 6c 61 6e 67 3b 0a 58 | 7b 0a 58 09 73 74 72 75 |*lang;.X|{.X.stru|
|00003260| 63 74 20 6c 61 6e 67 74 | 61 62 09 2a 6c 74 70 3b |ct langt|ab.*ltp;|
|00003270| 0a 58 0a 58 09 69 66 20 | 28 28 6c 74 70 20 3d 20 |.X.X.if |((ltp = |
|00003280| 6c 61 6e 67 53 6c 6f 74 | 28 6c 61 6e 67 29 29 2d |langSlot|(lang))-|
|00003290| 3e 6c 74 5f 6e 65 78 74 | 20 3d 3d 20 4e 55 4c 4c |>lt_next| == NULL|
|000032a0| 29 0a 58 09 09 72 65 74 | 75 72 6e 20 4e 55 4c 4c |).X..ret|urn NULL|
|000032b0| 3b 0a 58 09 72 65 74 75 | 72 6e 20 28 6c 74 70 2d |;.X.retu|rn (ltp-|
|000032c0| 3e 6c 74 5f 67 65 74 69 | 64 29 3b 0a 58 7d 0a 58 |>lt_geti|d);.X}.X|
|000032d0| 0a 58 73 74 61 74 69 63 | 20 76 6f 69 64 0a 58 75 |.Xstatic| void.Xu|
|000032e0| 73 61 67 65 28 29 0a 58 | 7b 0a 58 09 66 70 72 69 |sage().X|{.X.fpri|
|000032f0| 6e 74 66 28 73 74 64 65 | 72 72 2c 20 22 55 73 61 |ntf(stde|rr, "Usa|
|00003300| 67 65 3a 20 25 73 20 5b | 2d 53 3c 73 75 66 66 69 |ge: %s [|-S<suffi|
|00003310| 78 3e 3d 3c 6c 61 6e 67 | 3e 5d 20 5b 2b 53 28 2b |x>=<lang|>] [+S(+|
|00003320| 7c 2d 29 3c 61 72 67 3e | 5d 20 5b 2d 53 3c 6c 61 ||-)<arg>|] [-S<la|
|00003330| 6e 67 3e 28 2b 7c 2d 29 | 3c 61 72 67 3e 5d 20 5b |ng>(+|-)|<arg>] [|
|00003340| 2d 53 3c 6c 61 6e 67 3e | 2f 3c 6c 61 6e 67 3e 2f |-S<lang>|/<lang>/|
|00003350| 3c 66 69 6c 74 65 72 3e | 5d 5c 6e 22 2c 20 4d 79 |<filter>|]\n", My|
|00003360| 4e 61 6d 65 29 3b 0a 58 | 09 65 78 69 74 28 31 29 |Name);.X|.exit(1)|
|00003370| 3b 0a 58 7d 0a 58 76 6f | 69 64 0a 58 73 65 74 53 |;.X}.Xvo|id.XsetS|
|00003380| 63 61 6e 41 72 67 73 28 | 6f 70 2c 20 61 72 67 29 |canArgs(|op, arg)|
|00003390| 0a 58 09 69 6e 74 09 09 | 6f 70 3b 0a 58 09 63 68 |.X.int..|op;.X.ch|
|000033a0| 61 72 09 09 2a 61 72 67 | 3b 0a 58 7b 0a 58 09 73 |ar..*arg|;.X{.X.s|
|000033b0| 74 72 75 63 74 20 6c 61 | 6e 67 74 61 62 09 2a 6c |truct la|ngtab.*l|
|000033c0| 74 70 2c 20 2a 6c 74 70 | 32 3b 0a 58 09 73 74 72 |tp, *ltp|2;.X.str|
|000033d0| 75 63 74 20 73 75 66 66 | 74 61 62 09 2a 73 74 70 |uct suff|tab.*stp|
|000033e0| 3b 0a 58 09 63 68 61 72 | 09 09 2a 6c 68 73 2c 20 |;.X.char|..*lhs, |
|000033f0| 2a 6c 68 73 32 3b 0a 58 | 09 69 6e 74 09 09 63 6f |*lhs2;.X|.int..co|
|00003400| 75 6e 74 20 3d 20 30 3b | 0a 58 0a 58 09 6c 68 73 |unt = 0;|.X.X.lhs|
|00003410| 20 3d 20 61 72 67 3b 0a | 58 09 77 68 69 6c 65 20 | = arg;.|X.while |
|00003420| 28 69 73 61 6c 6e 75 6d | 28 2a 61 72 67 29 20 7c |(isalnum|(*arg) ||
|00003430| 7c 20 2a 61 72 67 20 3d | 3d 20 27 2e 27 29 0a 58 || *arg =|= '.').X|
|00003440| 09 09 61 72 67 2b 2b 3b | 0a 58 0a 58 09 69 66 20 |..arg++;|.X.X.if |
|00003450| 28 73 74 72 65 71 75 28 | 6c 68 73 2c 20 22 3f 3d |(strequ(|lhs, "?=|
|00003460| 3f 22 29 29 20 7b 0a 58 | 09 09 66 6f 72 20 28 73 |?")) {.X|..for (s|
|00003470| 74 70 20 3d 20 73 75 66 | 66 74 61 62 3b 20 73 74 |tp = suf|ftab; st|
|00003480| 70 2d 3e 73 74 5f 6e 65 | 78 74 3b 20 73 74 70 20 |p->st_ne|xt; stp |
|00003490| 3d 20 73 74 70 2d 3e 73 | 74 5f 6e 65 78 74 29 20 |= stp->s|t_next) |
|000034a0| 7b 0a 58 09 09 09 70 72 | 69 6e 74 66 28 22 25 73 |{.X...pr|intf("%s|
|000034b0| 25 73 3d 25 73 22 2c 20 | 28 63 6f 75 6e 74 2b 2b |%s=%s", |(count++|
|000034c0| 3e 30 29 3f 22 2c 20 22 | 3a 22 22 2c 20 73 74 70 |>0)?", "|:"", stp|
|000034d0| 2d 3e 73 74 5f 73 75 66 | 66 69 78 2c 20 73 74 70 |->st_suf|fix, stp|
|000034e0| 2d 3e 73 74 5f 6c 61 6e | 67 2d 3e 6c 74 5f 6e 61 |->st_lan|g->lt_na|
|000034f0| 6d 65 29 3b 0a 58 09 09 | 09 69 66 20 28 73 74 70 |me);.X..|.if (stp|
|00003500| 2d 3e 73 74 5f 6c 61 6e | 67 2d 3e 6c 74 5f 66 69 |->st_lan|g->lt_fi|
|00003510| 6c 74 65 72 29 0a 58 09 | 09 09 09 70 72 69 6e 74 |lter).X.|...print|
|00003520| 66 28 22 20 28 25 73 29 | 22 2c 20 73 74 70 2d 3e |f(" (%s)|", stp->|
|00003530| 73 74 5f 6c 61 6e 67 2d | 3e 6c 74 5f 66 69 6c 74 |st_lang-|>lt_filt|
|00003540| 65 72 29 3b 0a 58 09 09 | 7d 0a 58 09 09 69 66 20 |er);.X..|}.X..if |
|00003550| 28 63 6f 75 6e 74 29 0a | 58 09 09 09 70 75 74 63 |(count).|X...putc|
|00003560| 68 61 72 28 27 5c 6e 27 | 29 3b 0a 58 09 09 72 65 |har('\n'|);.X..re|
|00003570| 74 75 72 6e 3b 0a 58 09 | 7d 0a 58 0a 58 09 69 66 |turn;.X.|}.X.X.if|
|00003580| 20 28 73 74 72 6e 65 71 | 75 28 6c 68 73 2c 20 22 | (strneq|u(lhs, "|
|00003590| 3f 3d 22 2c 20 32 29 29 | 20 7b 0a 58 09 09 6c 68 |?=", 2))| {.X..lh|
|000035a0| 73 20 2b 3d 20 32 3b 0a | 58 09 09 69 66 20 28 28 |s += 2;.|X..if ((|
|000035b0| 6c 74 70 20 3d 20 6c 61 | 6e 67 53 6c 6f 74 28 6c |ltp = la|ngSlot(l|
|000035c0| 68 73 29 29 2d 3e 6c 74 | 5f 6e 65 78 74 20 3d 3d |hs))->lt|_next ==|
|000035d0| 20 4e 55 4c 4c 29 20 7b | 0a 58 09 09 09 70 72 69 | NULL) {|.X...pri|
|000035e0| 6e 74 66 28 22 4e 6f 20 | 73 63 61 6e 6e 65 72 20 |ntf("No |scanner |
|000035f0| 66 6f 72 20 6c 61 6e 67 | 75 61 67 65 20 60 25 73 |for lang|uage `%s|
|00003600| 27 5c 6e 22 2c 20 6c 68 | 73 29 3b 0a 58 09 09 09 |'\n", lh|s);.X...|
|00003610| 72 65 74 75 72 6e 3b 0a | 58 09 09 7d 0a 58 09 09 |return;.|X..}.X..|
|00003620| 66 6f 72 20 28 73 74 70 | 20 3d 20 73 75 66 66 74 |for (stp| = sufft|
|00003630| 61 62 3b 20 73 74 70 2d | 3e 73 74 5f 6e 65 78 74 |ab; stp-|>st_next|
|00003640| 3b 20 73 74 70 20 3d 20 | 73 74 70 2d 3e 73 74 5f |; stp = |stp->st_|
|00003650| 6e 65 78 74 29 0a 58 09 | 09 09 69 66 20 28 73 74 |next).X.|..if (st|
|00003660| 70 2d 3e 73 74 5f 6c 61 | 6e 67 20 3d 3d 20 6c 74 |p->st_la|ng == lt|
|00003670| 70 29 20 7b 0a 58 09 09 | 09 09 70 72 69 6e 74 66 |p) {.X..|..printf|
|00003680| 28 22 25 73 25 73 3d 25 | 73 22 2c 20 28 63 6f 75 |("%s%s=%|s", (cou|
|00003690| 6e 74 2b 2b 3e 30 29 3f | 22 2c 20 22 3a 22 22 2c |nt++>0)?|", ":"",|
|000036a0| 20 73 74 70 2d 3e 73 74 | 5f 73 75 66 66 69 78 2c | stp->st|_suffix,|
|000036b0| 20 6c 74 70 2d 3e 6c 74 | 5f 6e 61 6d 65 29 3b 0a | ltp->lt|_name);.|
|000036c0| 58 09 09 09 09 69 66 20 | 28 73 74 70 2d 3e 73 74 |X....if |(stp->st|
|000036d0| 5f 6c 61 6e 67 2d 3e 6c | 74 5f 66 69 6c 74 65 72 |_lang->l|t_filter|
|000036e0| 29 0a 58 09 09 09 09 09 | 70 72 69 6e 74 66 28 22 |).X.....|printf("|
|000036f0| 20 28 25 73 29 22 2c 20 | 73 74 70 2d 3e 73 74 5f | (%s)", |stp->st_|
|00003700| 6c 61 6e 67 2d 3e 6c 74 | 5f 66 69 6c 74 65 72 29 |lang->lt|_filter)|
|00003710| 3b 0a 58 09 09 09 7d 0a | 58 09 09 69 66 20 28 63 |;.X...}.|X..if (c|
|00003720| 6f 75 6e 74 29 0a 58 09 | 09 09 70 75 74 63 68 61 |ount).X.|..putcha|
|00003730| 72 28 27 5c 6e 27 29 3b | 0a 58 09 09 72 65 74 75 |r('\n');|.X..retu|
|00003740| 72 6e 3b 0a 58 09 7d 0a | 58 0a 58 09 69 66 20 28 |rn;.X.}.|X.X.if (|
|00003750| 73 74 72 65 71 75 28 61 | 72 67 2c 20 22 3d 3f 22 |strequ(a|rg, "=?"|
|00003760| 29 29 20 7b 0a 58 09 09 | 6c 68 73 5b 73 74 72 6c |)) {.X..|lhs[strl|
|00003770| 65 6e 28 6c 68 73 29 2d | 32 5d 20 3d 20 27 5c 30 |en(lhs)-|2] = '\0|
|00003780| 27 3b 0a 58 09 09 69 66 | 20 28 28 73 74 70 20 3d |';.X..if| ((stp =|
|00003790| 20 73 75 66 66 53 6c 6f | 74 28 6c 68 73 29 29 2d | suffSlo|t(lhs))-|
|000037a0| 3e 73 74 5f 6e 65 78 74 | 20 3d 3d 20 4e 55 4c 4c |>st_next| == NULL|
|000037b0| 29 20 7b 0a 58 09 09 09 | 70 72 69 6e 74 66 28 22 |) {.X...|printf("|
|000037c0| 4e 6f 20 73 63 61 6e 6e | 65 72 20 61 73 73 69 67 |No scann|er assig|
|000037d0| 6e 65 64 20 74 6f 20 73 | 75 66 66 69 78 20 60 25 |ned to s|uffix `%|
|000037e0| 73 27 5c 6e 22 2c 20 6c | 68 73 29 3b 0a 58 09 09 |s'\n", l|hs);.X..|
|000037f0| 09 72 65 74 75 72 6e 3b | 0a 58 09 09 7d 0a 58 09 |.return;|.X..}.X.|
|00003800| 09 70 72 69 6e 74 66 28 | 22 25 73 3d 25 73 22 2c |.printf(|"%s=%s",|
|00003810| 20 73 74 70 2d 3e 73 74 | 5f 73 75 66 66 69 78 2c | stp->st|_suffix,|
|00003820| 20 73 74 70 2d 3e 73 74 | 5f 6c 61 6e 67 2d 3e 6c | stp->st|_lang->l|
|00003830| 74 5f 6e 61 6d 65 29 3b | 0a 58 09 09 69 66 20 28 |t_name);|.X..if (|
|00003840| 73 74 70 2d 3e 73 74 5f | 6c 61 6e 67 2d 3e 6c 74 |stp->st_|lang->lt|
|00003850| 5f 66 69 6c 74 65 72 29 | 0a 58 09 09 09 70 72 69 |_filter)|.X...pri|
|00003860| 6e 74 66 28 22 20 28 25 | 73 29 22 2c 73 74 70 2d |ntf(" (%|s)",stp-|
|00003870| 3e 73 74 5f 6c 61 6e 67 | 2d 3e 6c 74 5f 66 69 6c |>st_lang|->lt_fil|
|00003880| 74 65 72 29 3b 0a 58 09 | 09 70 72 69 6e 74 66 28 |ter);.X.|.printf(|
|00003890| 22 5c 6e 22 29 3b 0a 58 | 09 09 72 65 74 75 72 6e |"\n");.X|..return|
|000038a0| 3b 0a 58 09 7d 0a 58 0a | 58 09 69 66 20 28 2a 61 |;.X.}.X.|X.if (*a|
|000038b0| 72 67 20 3d 3d 20 27 3d | 27 29 20 7b 0a 58 09 09 |rg == '=|') {.X..|
|000038c0| 2a 61 72 67 2b 2b 20 3d | 20 27 5c 30 27 3b 0a 58 |*arg++ =| '\0';.X|
|000038d0| 09 09 0a 58 09 09 69 66 | 20 28 28 6c 74 70 20 3d |...X..if| ((ltp =|
|000038e0| 20 6c 61 6e 67 53 6c 6f | 74 28 61 72 67 29 29 2d | langSlo|t(arg))-|
|000038f0| 3e 6c 74 5f 6e 65 78 74 | 20 3d 3d 20 4e 55 4c 4c |>lt_next| == NULL|
|00003900| 29 20 7b 0a 58 09 09 09 | 66 70 72 69 6e 74 66 28 |) {.X...|fprintf(|
|00003910| 73 74 64 65 72 72 2c 20 | 22 25 73 3a 20 4c 61 6e |stderr, |"%s: Lan|
|00003920| 67 75 61 67 65 20 75 6e | 64 65 66 69 6e 65 64 3a |guage un|defined:|
|00003930| 20 25 73 5c 6e 22 2c 20 | 4d 79 4e 61 6d 65 2c 20 | %s\n", |MyName, |
|00003940| 61 72 67 29 3b 0a 58 09 | 09 09 72 65 74 75 72 6e |arg);.X.|..return|
|00003950| 3b 0a 58 09 09 7d 0a 58 | 09 09 69 66 20 28 28 73 |;.X..}.X|..if ((s|
|00003960| 74 70 20 3d 20 73 75 66 | 66 53 6c 6f 74 28 6c 68 |tp = suf|fSlot(lh|
|00003970| 73 29 29 2d 3e 73 74 5f | 6e 65 78 74 20 3d 3d 20 |s))->st_|next == |
|00003980| 4e 55 4c 4c 29 20 7b 0a | 58 09 09 09 73 74 70 2d |NULL) {.|X...stp-|
|00003990| 3e 73 74 5f 73 75 66 66 | 69 78 20 3d 20 6c 68 73 |>st_suff|ix = lhs|
|000039a0| 3b 0a 58 09 09 09 73 74 | 70 2d 3e 73 74 5f 6c 61 |;.X...st|p->st_la|
|000039b0| 6e 67 20 3d 20 6c 74 70 | 3b 0a 58 09 09 09 73 74 |ng = ltp|;.X...st|
|000039c0| 70 2d 3e 73 74 5f 6e 65 | 78 74 20 3d 20 4e 45 57 |p->st_ne|xt = NEW|
|000039d0| 28 73 74 72 75 63 74 20 | 73 75 66 66 74 61 62 29 |(struct |sufftab)|
|000039e0| 3b 0a 58 09 09 7d 20 65 | 6c 73 65 20 69 66 20 28 |;.X..} e|lse if (|
|000039f0| 21 73 74 72 65 71 75 28 | 61 72 67 2c 20 73 74 70 |!strequ(|arg, stp|
|00003a00| 2d 3e 73 74 5f 6c 61 6e | 67 2d 3e 6c 74 5f 6e 61 |->st_lan|g->lt_na|
|00003a10| 6d 65 29 29 20 7b 0a 58 | 09 09 09 66 70 72 69 6e |me)) {.X|...fprin|
|00003a20| 74 66 28 73 74 64 65 72 | 72 2c 20 22 25 73 3a 20 |tf(stder|r, "%s: |
|00003a30| 4e 6f 74 65 3a 20 60 25 | 73 3d 25 73 27 20 6f 76 |Note: `%|s=%s' ov|
|00003a40| 65 72 72 69 64 65 73 20 | 60 25 73 3d 25 73 27 5c |errides |`%s=%s'\|
|00003a50| 6e 22 2c 20 4d 79 4e 61 | 6d 65 2c 20 6c 68 73 2c |n", MyNa|me, lhs,|
|00003a60| 20 61 72 67 2c 20 6c 68 | 73 2c 20 73 74 70 2d 3e | arg, lh|s, stp->|
|00003a70| 73 74 5f 6c 61 6e 67 2d | 3e 6c 74 5f 6e 61 6d 65 |st_lang-|>lt_name|
|00003a80| 29 3b 0a 58 09 09 09 73 | 74 70 2d 3e 73 74 5f 6c |);.X...s|tp->st_l|
|00003a90| 61 6e 67 20 3d 20 6c 74 | 70 3b 0a 58 09 09 7d 0a |ang = lt|p;.X..}.|
|00003aa0| 58 09 09 72 65 74 75 72 | 6e 3b 0a 58 09 7d 20 65 |X..retur|n;.X.} e|
|00003ab0| 6c 73 65 20 69 66 20 28 | 2a 61 72 67 20 3d 3d 20 |lse if (|*arg == |
|00003ac0| 27 2f 27 29 20 7b 0a 58 | 09 09 2a 61 72 67 2b 2b |'/') {.X|..*arg++|
|00003ad0| 20 3d 20 27 5c 30 27 3b | 0a 58 09 09 69 66 20 28 | = '\0';|.X..if (|
|00003ae0| 28 6c 74 70 20 3d 20 6c | 61 6e 67 53 6c 6f 74 28 |(ltp = l|angSlot(|
|00003af0| 6c 68 73 29 29 2d 3e 6c | 74 5f 6e 65 78 74 20 3d |lhs))->l|t_next =|
|00003b00| 3d 20 4e 55 4c 4c 29 20 | 7b 0a 58 09 09 09 6c 74 |= NULL) |{.X...lt|
|00003b10| 70 2d 3e 6c 74 5f 6e 61 | 6d 65 20 3d 20 6c 68 73 |p->lt_na|me = lhs|
|00003b20| 3b 0a 58 09 09 09 6c 74 | 70 2d 3e 6c 74 5f 67 65 |;.X...lt|p->lt_ge|
|00003b30| 74 69 64 20 3d 20 67 65 | 74 54 65 78 74 49 64 3b |tid = ge|tTextId;|
|00003b40| 0a 58 09 09 09 6c 74 70 | 2d 3e 6c 74 5f 73 65 74 |.X...ltp|->lt_set|
|00003b50| 61 72 67 73 20 3d 20 73 | 65 74 54 65 78 74 41 72 |args = s|etTextAr|
|00003b60| 67 73 3b 0a 58 09 09 09 | 6c 74 70 2d 3e 6c 74 5f |gs;.X...|ltp->lt_|
|00003b70| 66 69 6c 74 65 72 20 3d | 20 4e 55 4c 4c 3b 0a 58 |filter =| NULL;.X|
|00003b80| 09 09 09 6c 74 70 2d 3e | 6c 74 5f 6e 65 78 74 20 |...ltp->|lt_next |
|00003b90| 3d 20 4e 45 57 28 73 74 | 72 75 63 74 20 6c 61 6e |= NEW(st|ruct lan|
|00003ba0| 67 74 61 62 29 3b 0a 58 | 09 09 7d 0a 58 09 09 6c |gtab);.X|..}.X..l|
|00003bb0| 68 73 32 20 3d 20 61 72 | 67 3b 0a 58 09 09 61 72 |hs2 = ar|g;.X..ar|
|00003bc0| 67 20 3d 20 73 74 72 63 | 68 72 28 61 72 67 2c 20 |g = strc|hr(arg, |
|00003bd0| 27 2f 27 29 3b 0a 58 09 | 09 69 66 20 28 61 72 67 |'/');.X.|.if (arg|
|00003be0| 20 3d 3d 20 4e 55 4c 4c | 29 20 7b 0a 58 09 09 09 | == NULL|) {.X...|
|00003bf0| 6c 74 70 32 20 3d 20 6c | 74 70 3b 0a 58 09 09 7d |ltp2 = l|tp;.X..}|
|00003c00| 20 65 6c 73 65 20 7b 0a | 58 09 09 09 2a 61 72 67 | else {.|X...*arg|
|00003c10| 2b 2b 20 3d 20 27 5c 30 | 27 3b 0a 58 09 09 09 69 |++ = '\0|';.X...i|
|00003c20| 66 20 28 28 6c 74 70 32 | 20 3d 20 6c 61 6e 67 53 |f ((ltp2| = langS|
|00003c30| 6c 6f 74 28 6c 68 73 32 | 29 29 2d 3e 6c 74 5f 6e |lot(lhs2|))->lt_n|
|00003c40| 65 78 74 20 3d 3d 20 4e | 55 4c 4c 29 20 7b 0a 58 |ext == N|ULL) {.X|
|00003c50| 09 09 09 09 66 70 72 69 | 6e 74 66 28 73 74 64 65 |....fpri|ntf(stde|
|00003c60| 72 72 2c 22 25 73 3a 20 | 6c 61 6e 67 75 61 67 65 |rr,"%s: |language|
|00003c70| 20 25 73 20 6e 6f 74 20 | 64 65 66 69 6e 65 64 2e | %s not |defined.|
|00003c80| 5c 6e 22 2c 20 4d 79 4e | 61 6d 65 2c 20 6c 68 73 |\n", MyN|ame, lhs|
|00003c90| 32 29 3b 0a 58 09 09 09 | 09 6c 74 70 32 20 3d 20 |2);.X...|.ltp2 = |
|00003ca0| 6c 74 70 3b 0a 58 09 09 | 09 7d 0a 58 09 09 7d 0a |ltp;.X..|.}.X..}.|
|00003cb0| 58 09 09 6c 74 70 2d 3e | 6c 74 5f 67 65 74 69 64 |X..ltp->|lt_getid|
|00003cc0| 20 3d 20 6c 74 70 32 2d | 3e 6c 74 5f 67 65 74 69 | = ltp2-|>lt_geti|
|00003cd0| 64 3b 0a 58 09 09 6c 74 | 70 2d 3e 6c 74 5f 73 65 |d;.X..lt|p->lt_se|
|00003ce0| 74 61 72 67 73 20 3d 20 | 6c 74 70 32 2d 3e 6c 74 |targs = |ltp2->lt|
|00003cf0| 5f 73 65 74 61 72 67 73 | 3b 0a 58 09 09 69 66 20 |_setargs|;.X..if |
|00003d00| 28 28 6c 74 70 2d 3e 6c | 74 5f 66 69 6c 74 65 72 |((ltp->l|t_filter|
|00003d10| 20 21 3d 20 4e 55 4c 4c | 29 20 26 26 20 28 21 73 | != NULL|) && (!s|
|00003d20| 74 72 65 71 75 28 61 72 | 67 2c 20 6c 74 70 2d 3e |trequ(ar|g, ltp->|
|00003d30| 6c 74 5f 66 69 6c 74 65 | 72 29 29 29 7b 0a 58 09 |lt_filte|r))){.X.|
|00003d40| 09 09 66 70 72 69 6e 74 | 66 28 73 74 64 65 72 72 |..fprint|f(stderr|
|00003d50| 2c 20 22 25 73 3a 20 4e | 6f 74 65 3a 20 60 25 73 |, "%s: N|ote: `%s|
|00003d60| 2f 25 73 27 20 6f 76 65 | 72 72 69 64 65 73 20 60 |/%s' ove|rrides `|
|00003d70| 25 73 2f 25 73 27 5c 6e | 22 2c 20 4d 79 4e 61 6d |%s/%s'\n|", MyNam|
|00003d80| 65 2c 20 6c 68 73 2c 20 | 61 72 67 2c 20 6c 68 73 |e, lhs, |arg, lhs|
|00003d90| 2c 20 6c 74 70 2d 3e 6c | 74 5f 66 69 6c 74 65 72 |, ltp->l|t_filter|
|00003da0| 29 3b 0a 58 09 09 7d 0a | 58 09 09 6c 74 70 2d 3e |);.X..}.|X..ltp->|
|00003db0| 6c 74 5f 66 69 6c 74 65 | 72 20 3d 20 61 72 67 3b |lt_filte|r = arg;|
|00003dc0| 0a 58 09 09 72 65 74 75 | 72 6e 3b 0a 58 09 7d 0a |.X..retu|rn;.X.}.|
|00003dd0| 58 09 0a 58 09 69 66 20 | 28 6f 70 20 3d 3d 20 27 |X..X.if |(op == '|
|00003de0| 2b 27 29 20 7b 0a 58 09 | 09 73 77 69 74 63 68 20 |+') {.X.|.switch |
|00003df0| 28 6f 70 20 3d 20 2a 61 | 72 67 2b 2b 29 0a 58 09 |(op = *a|rg++).X.|
|00003e00| 09 7b 0a 58 09 09 63 61 | 73 65 20 27 2b 27 3a 0a |.{.X..ca|se '+':.|
|00003e10| 58 09 09 63 61 73 65 20 | 27 2d 27 3a 0a 58 09 09 |X..case |'-':.X..|
|00003e20| 63 61 73 65 20 27 3f 27 | 3a 0a 58 09 09 09 62 72 |case '?'|:.X...br|
|00003e30| 65 61 6b 3b 0a 58 09 09 | 64 65 66 61 75 6c 74 3a |eak;.X..|default:|
|00003e40| 0a 58 09 09 09 75 73 61 | 67 65 28 29 3b 0a 58 09 |.X...usa|ge();.X.|
|00003e50| 09 7d 0a 58 09 09 66 6f | 72 20 28 6c 74 70 20 3d |.}.X..fo|r (ltp =|
|00003e60| 20 6c 61 6e 67 74 61 62 | 3b 20 6c 74 70 2d 3e 6c | langtab|; ltp->l|
|00003e70| 74 5f 6e 65 78 74 3b 20 | 6c 74 70 20 3d 20 6c 74 |t_next; |ltp = lt|
|00003e80| 70 2d 3e 6c 74 5f 6e 65 | 78 74 29 0a 58 09 09 09 |p->lt_ne|xt).X...|
|00003e90| 28 2a 6c 74 70 2d 3e 6c | 74 5f 73 65 74 61 72 67 |(*ltp->l|t_setarg|
|00003ea0| 73 29 28 4e 55 4c 4c 2c | 20 6f 70 2c 20 61 72 67 |s)(NULL,| op, arg|
|00003eb0| 29 3b 0a 58 09 09 72 65 | 74 75 72 6e 3b 0a 58 09 |);.X..re|turn;.X.|
|00003ec0| 7d 0a 58 0a 58 09 69 66 | 20 28 2a 61 72 67 20 3d |}.X.X.if| (*arg =|
|00003ed0| 3d 20 27 2d 27 20 7c 7c | 20 2a 61 72 67 20 3d 3d |= '-' ||| *arg ==|
|00003ee0| 20 27 2b 27 20 7c 7c 20 | 2a 61 72 67 20 3d 3d 20 | '+' || |*arg == |
|00003ef0| 27 3f 27 29 20 7b 0a 58 | 09 09 6f 70 20 3d 20 2a |'?') {.X|..op = *|
|00003f00| 61 72 67 3b 0a 58 09 09 | 2a 61 72 67 2b 2b 20 3d |arg;.X..|*arg++ =|
|00003f10| 20 27 5c 30 27 3b 0a 58 | 09 09 0a 58 09 09 69 66 | '\0';.X|...X..if|
|00003f20| 20 28 28 6c 74 70 20 3d | 20 6c 61 6e 67 53 6c 6f | ((ltp =| langSlo|
|00003f30| 74 28 6c 68 73 29 29 2d | 3e 6c 74 5f 6e 65 78 74 |t(lhs))-|>lt_next|
|00003f40| 20 3d 3d 20 4e 55 4c 4c | 29 20 7b 0a 58 09 09 09 | == NULL|) {.X...|
|00003f50| 66 70 72 69 6e 74 66 28 | 73 74 64 65 72 72 2c 20 |fprintf(|stderr, |
|00003f60| 22 25 73 3a 20 4c 61 6e | 67 75 61 67 65 20 75 6e |"%s: Lan|guage un|
|00003f70| 64 65 66 69 6e 65 64 3a | 20 25 73 5c 6e 22 2c 20 |defined:| %s\n", |
|00003f80| 4d 79 4e 61 6d 65 2c 20 | 6c 68 73 29 3b 0a 58 09 |MyName, |lhs);.X.|
|00003f90| 09 09 72 65 74 75 72 6e | 3b 0a 58 09 09 7d 0a 58 |..return|;.X..}.X|
|00003fa0| 09 09 28 2a 6c 74 70 2d | 3e 6c 74 5f 73 65 74 61 |..(*ltp-|>lt_seta|
|00003fb0| 72 67 73 29 28 6c 68 73 | 2c 20 6f 70 2c 20 61 72 |rgs)(lhs|, op, ar|
|00003fc0| 67 29 3b 0a 58 09 09 72 | 65 74 75 72 6e 3b 0a 58 |g);.X..r|eturn;.X|
|00003fd0| 09 7d 0a 58 0a 58 09 75 | 73 61 67 65 28 29 3b 0a |.}.X.X.u|sage();.|
|00003fe0| 58 7d 0a 58 0a 58 2f 2a | 0a 58 09 4e 6f 74 69 66 |X}.X.X/*|.X.Notif|
|00003ff0| 79 20 75 73 65 72 20 6f | 66 20 75 6e 69 6d 70 6c |y user o|f unimpl|
|00004000| 65 6d 65 6e 74 65 64 20 | 73 63 61 6e 6e 65 72 73 |emented |scanners|
|00004010| 2e 0a 58 2a 2f 0a 58 73 | 74 61 74 69 63 20 76 6f |..X*/.Xs|tatic vo|
|00004020| 69 64 0a 58 73 6f 72 72 | 79 4e 6f 53 63 61 6e 28 |id.Xsorr|yNoScan(|
|00004030| 6c 61 6e 67 29 0a 58 09 | 63 68 61 72 09 09 2a 6c |lang).X.|char..*l|
|00004040| 61 6e 67 3b 0a 58 7b 0a | 58 09 69 66 20 28 6c 61 |ang;.X{.|X.if (la|
|00004050| 6e 67 20 3d 3d 20 4e 55 | 4c 4c 29 0a 58 09 09 72 |ng == NU|LL).X..r|
|00004060| 65 74 75 72 6e 3b 0a 58 | 09 66 70 72 69 6e 74 66 |eturn;.X|.fprintf|
|00004070| 28 73 74 64 65 72 72 2c | 20 22 53 6f 72 72 79 2c |(stderr,| "Sorry,|
|00004080| 20 6e 6f 20 73 63 61 6e | 6e 65 72 20 69 73 20 69 | no scan|ner is i|
|00004090| 6d 70 6c 65 6d 65 6e 74 | 65 64 20 66 6f 72 20 25 |mplement|ed for %|
|000040a0| 73 2e 2e 2e 5c 6e 22 2c | 20 6c 61 6e 67 29 3b 0a |s...\n",| lang);.|
|000040b0| 58 7d 0a 45 4e 44 5f 4f | 46 5f 46 49 4c 45 0a 69 |X}.END_O|F_FILE.i|
|000040c0| 66 20 74 65 73 74 20 37 | 31 34 31 20 2d 6e 65 20 |f test 7|141 -ne |
|000040d0| 60 77 63 20 2d 63 20 3c | 27 67 65 74 73 63 61 6e |`wc -c <|'getscan|
|000040e0| 2e 63 27 60 3b 20 74 68 | 65 6e 0a 20 20 20 20 65 |.c'`; th|en. e|
|000040f0| 63 68 6f 20 73 68 61 72 | 3a 20 5c 22 27 67 65 74 |cho shar|: \"'get|
|00004100| 73 63 61 6e 2e 63 27 5c | 22 20 75 6e 70 61 63 6b |scan.c'\|" unpack|
|00004110| 65 64 20 77 69 74 68 20 | 77 72 6f 6e 67 20 73 69 |ed with |wrong si|
|00004120| 7a 65 21 0a 66 69 0a 23 | 20 65 6e 64 20 6f 66 20 |ze!.fi.#| end of |
|00004130| 27 67 65 74 73 63 61 6e | 2e 63 27 0a 66 69 0a 69 |'getscan|.c'.fi.i|
|00004140| 66 20 74 65 73 74 20 2d | 66 20 27 69 69 64 64 65 |f test -|f 'iidde|
|00004150| 66 2e 68 27 20 2d 61 20 | 22 24 7b 31 7d 22 20 21 |f.h' -a |"${1}" !|
|00004160| 3d 20 22 2d 63 22 20 3b | 20 74 68 65 6e 20 0a 20 |= "-c" ;| then . |
|00004170| 20 65 63 68 6f 20 73 68 | 61 72 3a 20 57 69 6c 6c | echo sh|ar: Will|
|00004180| 20 6e 6f 74 20 63 6c 6f | 62 62 65 72 20 65 78 69 | not clo|bber exi|
|00004190| 73 74 69 6e 67 20 66 69 | 6c 65 20 5c 22 27 69 69 |sting fi|le \"'ii|
|000041a0| 64 64 65 66 2e 68 27 5c | 22 0a 65 6c 73 65 0a 65 |ddef.h'\|".else.e|
|000041b0| 63 68 6f 20 73 68 61 72 | 3a 20 45 78 74 72 61 63 |cho shar|: Extrac|
|000041c0| 74 69 6e 67 20 5c 22 27 | 69 69 64 64 65 66 2e 68 |ting \"'|iiddef.h|
|000041d0| 27 5c 22 20 5c 28 36 33 | 33 31 20 63 68 61 72 61 |'\" \(63|31 chara|
|000041e0| 63 74 65 72 73 5c 29 0a | 73 65 64 20 22 73 2f 5e |cters\).|sed "s/^|
|000041f0| 58 2f 2f 22 20 3e 27 69 | 69 64 64 65 66 2e 68 27 |X//" >'i|iddef.h'|
|00004200| 20 3c 3c 27 45 4e 44 5f | 4f 46 5f 46 49 4c 45 27 | <<'END_|OF_FILE'|
|00004210| 0a 58 2f 2a 20 44 65 66 | 69 6e 69 74 69 6f 6e 73 |.X/* Def|initions|
|00004220| 20 75 73 65 64 20 62 79 | 20 74 68 65 20 69 69 64 | used by| the iid|
|00004230| 20 70 72 6f 67 72 61 6d | 2e 0a 58 20 2a 2f 0a 58 | program|..X */.X|
|00004240| 0a 58 23 69 6e 63 6c 75 | 64 65 20 3c 73 74 64 69 |.X#inclu|de <stdi|
|00004250| 6f 2e 68 3e 0a 58 23 69 | 6e 63 6c 75 64 65 20 3c |o.h>.X#i|nclude <|
|00004260| 63 74 79 70 65 2e 68 3e | 0a 58 23 69 6e 63 6c 75 |ctype.h>|.X#inclu|
|00004270| 64 65 20 3c 73 74 72 69 | 6e 67 2e 68 3e 0a 58 65 |de <stri|ng.h>.Xe|
|00004280| 78 74 65 72 6e 20 63 68 | 61 72 20 2a 20 67 65 74 |xtern ch|ar * get|
|00004290| 65 6e 76 28 29 20 3b 0a | 58 65 78 74 65 72 6e 20 |env() ;.|Xextern |
|000042a0| 69 6e 74 20 67 65 74 6f | 70 74 28 29 20 3b 0a 58 |int geto|pt() ;.X|
|000042b0| 65 78 74 65 72 6e 20 63 | 68 61 72 20 2a 20 6f 70 |extern c|har * op|
|000042c0| 74 61 72 67 20 3b 0a 58 | 65 78 74 65 72 6e 20 69 |targ ;.X|extern i|
|000042d0| 6e 74 20 6f 70 74 69 6e | 64 20 3b 0a 58 23 64 65 |nt optin|d ;.X#de|
|000042e0| 66 69 6e 65 20 54 52 55 | 45 20 31 0a 58 23 64 65 |fine TRU|E 1.X#de|
|000042f0| 66 69 6e 65 20 46 41 4c | 53 45 20 30 0a 58 0a 58 |fine FAL|SE 0.X.X|
|00004300| 23 69 66 64 65 66 20 44 | 45 46 0a 58 23 64 65 66 |#ifdef D|EF.X#def|
|00004310| 69 6e 65 20 45 58 54 45 | 52 4e 0a 58 23 64 65 66 |ine EXTE|RN.X#def|
|00004320| 69 6e 65 20 49 4e 49 54 | 28 61 29 20 3d 28 61 29 |ine INIT|(a) =(a)|
|00004330| 0a 58 23 65 6c 73 65 0a | 58 23 64 65 66 69 6e 65 |.X#else.|X#define|
|00004340| 20 45 58 54 45 52 4e 20 | 65 78 74 65 72 6e 0a 58 | EXTERN |extern.X|
|00004350| 23 64 65 66 69 6e 65 20 | 49 4e 49 54 28 61 29 0a |#define |INIT(a).|
|00004360| 58 23 65 6e 64 69 66 0a | 58 0a 58 23 64 65 66 69 |X#endif.|X.X#defi|
|00004370| 6e 65 20 42 49 54 53 5f | 50 45 52 5f 42 59 54 45 |ne BITS_|PER_BYTE|
|00004380| 20 38 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | 8 | |
|00004390| 20 20 2f 2a 20 75 73 65 | 64 20 62 79 20 62 69 74 | /* use|d by bit|
|000043a0| 20 73 65 74 20 6d 61 6e | 69 70 75 6c 61 74 69 6f | set man|ipulatio|
|000043b0| 6e 20 2a 2f 0a 58 0a 58 | 23 64 65 66 69 6e 65 20 |n */.X.X|#define |
|000043c0| 48 41 53 48 5f 53 49 5a | 45 20 39 34 37 20 20 20 |HASH_SIZ|E 947 |
|000043d0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 2f | | /|
|000043e0| 2a 20 73 69 7a 65 20 6f | 66 20 68 61 73 68 20 74 |* size o|f hash t|
|000043f0| 61 62 6c 65 20 66 6f 72 | 20 66 69 6c 65 20 6e 61 |able for| file na|
|00004400| 6d 65 73 20 2a 2f 0a 58 | 0a 58 23 69 66 6e 64 65 |mes */.X|.X#ifnde|
|00004410| 66 20 48 45 4c 50 46 49 | 4c 45 0a 58 23 64 65 66 |f HELPFI|LE.X#def|
|00004420| 69 6e 65 20 48 45 4c 50 | 46 49 4c 45 20 22 2f 75 |ine HELP|FILE "/u|
|00004430| 73 72 2f 6c 6f 63 61 6c | 2f 69 69 64 2e 68 65 6c |sr/local|/iid.hel|
|00004440| 70 22 20 2f 2a 20 54 68 | 65 20 68 65 6c 70 20 66 |p" /* Th|e help f|
|00004450| 69 6c 65 20 6c 6f 63 61 | 74 69 6f 6e 20 2a 2f 0a |ile loca|tion */.|
|00004460| 58 23 65 6e 64 69 66 0a | 58 0a 58 23 64 65 66 69 |X#endif.|X.X#defi|
|00004470| 6e 65 20 49 4e 49 54 5f | 46 49 4c 45 53 20 38 30 |ne INIT_|FILES 80|
|00004480| 30 30 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |00 | |
|00004490| 20 20 2f 2a 20 73 74 61 | 72 74 20 77 69 74 68 20 | /* sta|rt with |
|000044a0| 62 69 74 73 20 66 6f 72 | 20 74 68 69 73 20 6d 61 |bits for| this ma|
|000044b0| 6e 79 20 2a 2f 0a 58 0a | 58 23 64 65 66 69 6e 65 |ny */.X.|X#define|
|000044c0| 20 49 4e 49 54 5f 53 45 | 54 53 50 41 43 45 20 35 | INIT_SE|TSPACE 5|
|000044d0| 30 30 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |00 | |
|000044e0| 2f 2a 20 73 74 61 72 74 | 20 77 69 74 68 20 72 6f |/* start| with ro|
|000044f0| 6f 6d 20 66 6f 72 20 74 | 68 69 73 20 6d 61 6e 79 |om for t|his many|
|00004500| 20 2a 2f 0a 58 0a 58 23 | 64 65 66 69 6e 65 20 4d | */.X.X#|define M|
|00004510| 41 58 28 61 2c 62 29 20 | 28 28 28 61 29 3c 28 62 |AX(a,b) |(((a)<(b|
|00004520| 29 29 3f 28 62 29 3a 28 | 61 29 29 0a 58 0a 58 23 |))?(b):(|a)).X.X#|
|00004530| 64 65 66 69 6e 65 20 4d | 41 58 43 4d 44 20 31 30 |define M|AXCMD 10|
|00004540| 32 34 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |24 | |
|00004550| 20 20 20 20 20 20 2f 2a | 20 69 6e 70 75 74 20 63 | /*| input c|
|00004560| 6f 6d 6d 61 6e 64 20 62 | 75 66 66 65 72 20 73 69 |ommand b|uffer si|
|00004570| 7a 65 20 2a 2f 0a 58 0a | 58 23 64 65 66 69 6e 65 |ze */.X.|X#define|
|00004580| 20 4d 49 4e 28 61 2c 62 | 29 20 28 28 28 61 29 3e | MIN(a,b|) (((a)>|
|00004590| 28 62 29 29 3f 28 62 29 | 3a 28 61 29 29 0a 58 0a |(b))?(b)|:(a)).X.|
|000045a0| 58 23 69 66 6e 64 65 66 | 20 50 41 47 45 52 0a 58 |X#ifndef| PAGER.X|
|000045b0| 23 64 65 66 69 6e 65 20 | 50 41 47 45 52 20 22 70 |#define |PAGER "p|
|000045c0| 67 22 0a 58 23 65 6e 64 | 69 66 0a 58 0a 58 23 64 |g".X#end|if.X.X#d|
|000045d0| 65 66 69 6e 65 20 50 52 | 4f 4d 50 54 20 22 69 69 |efine PR|OMPT "ii|
|000045e0| 64 3e 20 22 0a 58 0a 58 | 2f 2a 20 73 65 74 5f 74 |d> ".X.X|/* set_t|
|000045f0| 79 70 65 20 69 73 20 74 | 68 65 20 73 74 72 75 63 |ype is t|he struc|
|00004600| 74 20 64 65 66 69 6e 69 | 6e 67 20 61 20 73 65 74 |t defini|ng a set|
|00004610| 20 6f 66 20 66 69 6c 65 | 20 6e 61 6d 65 73 0a 58 | of file| names.X|
|00004620| 20 2a 20 54 68 65 20 66 | 69 6c 65 20 6e 61 6d 65 | * The f|ile name|
|00004630| 73 20 61 72 65 20 73 74 | 6f 72 65 64 20 69 6e 20 |s are st|ored in |
|00004640| 61 20 73 79 6d 62 6f 6c | 20 74 61 62 6c 65 20 61 |a symbol| table a|
|00004650| 6e 64 20 61 73 73 69 67 | 6e 65 64 0a 58 20 2a 20 |nd assig|ned.X * |
|00004660| 75 6e 69 71 75 65 20 6e | 75 6d 62 65 72 73 2e 20 |unique n|umbers. |
|00004670| 54 68 65 20 73 65 74 20 | 69 73 20 61 20 62 69 74 |The set |is a bit|
|00004680| 20 73 65 74 20 6f 66 20 | 66 69 6c 65 20 6e 75 6d | set of |file num|
|00004690| 62 65 72 73 2e 0a 58 20 | 2a 20 4f 6e 65 20 6f 66 |bers..X |* One of|
|000046a0| 20 74 68 65 73 65 20 73 | 65 74 20 73 74 72 75 63 | these s|et struc|
|000046b0| 74 73 20 69 73 20 63 61 | 6c 6c 6f 63 65 64 20 66 |ts is ca|lloced f|
|000046c0| 6f 72 20 65 61 63 68 20 | 6e 65 77 20 73 65 74 0a |or each |new set.|
|000046d0| 58 20 2a 20 63 6f 6e 73 | 74 72 75 63 74 65 64 2c |X * cons|tructed,|
|000046e0| 20 74 68 65 20 73 69 7a | 65 20 61 6c 6c 6f 63 61 | the siz|e alloca|
|000046f0| 74 65 64 20 64 65 70 65 | 6e 64 73 20 6f 6e 20 74 |ted depe|nds on t|
|00004700| 68 65 20 6d 61 78 20 66 | 69 6c 65 0a 58 20 2a 20 |he max f|ile.X * |
|00004710| 62 69 74 20 6e 75 6d 62 | 65 72 2e 20 41 6e 20 61 |bit numb|er. An a|
|00004720| 72 72 61 79 20 6f 66 20 | 70 6f 69 6e 74 65 72 73 |rray of |pointers|
|00004730| 20 74 6f 20 73 65 74 73 | 20 61 72 65 20 6b 65 70 | to sets| are kep|
|00004740| 74 20 74 6f 0a 58 20 2a | 20 72 65 70 72 65 73 65 |t to.X *| represe|
|00004750| 6e 74 20 74 68 65 20 63 | 6f 6d 70 6c 65 74 65 20 |nt the c|omplete |
|00004760| 73 65 74 20 6f 66 20 73 | 65 74 73 2e 0a 58 20 2a |set of s|ets..X *|
|00004770| 2f 0a 58 0a 58 74 79 70 | 65 64 65 66 20 73 74 72 |/.X.Xtyp|edef str|
|00004780| 75 63 74 20 73 65 74 5f | 73 74 72 75 63 74 20 7b |uct set_|struct {|
|00004790| 0a 58 20 20 20 63 68 61 | 72 20 2a 20 20 20 20 20 |.X cha|r * |
|000047a0| 20 20 20 20 20 20 20 20 | 20 20 20 20 73 65 74 5f | | set_|
|000047b0| 64 65 73 63 20 3b 20 20 | 20 2f 2a 20 73 74 72 69 |desc ; | /* stri|
|000047c0| 6e 67 20 64 65 73 63 72 | 69 62 69 6e 67 20 74 68 |ng descr|ibing th|
|000047d0| 65 20 73 65 74 20 2a 2f | 0a 58 20 20 20 69 6e 74 |e set */|.X int|
|000047e0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000047f0| 20 20 20 20 73 65 74 5f | 6e 75 6d 20 3b 20 20 20 | set_|num ; |
|00004800| 20 2f 2a 20 74 68 65 20 | 73 65 74 20 6e 75 6d 62 | /* the |set numb|
|00004810| 65 72 20 2a 2f 0a 58 20 | 20 20 69 6e 74 20 20 20 |er */.X | int |
|00004820| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00004830| 20 73 65 74 5f 73 69 7a | 65 20 3b 20 20 20 2f 2a | set_siz|e ; /*|
|00004840| 20 6e 75 6d 62 65 72 20 | 6f 66 20 6c 6f 6e 67 20 | number |of long |
|00004850| 77 6f 72 64 73 20 69 6e | 20 73 65 74 20 2a 2f 0a |words in| set */.|
|00004860| 58 20 20 20 75 6e 73 69 | 67 6e 65 64 20 6c 6f 6e |X unsi|gned lon|
|00004870| 67 20 69 6e 74 20 20 20 | 20 20 20 73 65 74 5f 74 |g int | set_t|
|00004880| 61 69 6c 20 3b 20 20 20 | 2f 2a 20 73 65 74 20 65 |ail ; |/* set e|
|00004890| 78 74 65 6e 64 65 64 20 | 77 69 74 68 20 74 68 65 |xtended |with the|
|000048a0| 73 65 20 62 69 74 73 20 | 2a 2f 0a 58 20 20 20 75 |se bits |*/.X u|
|000048b0| 6e 73 69 67 6e 65 64 20 | 6c 6f 6e 67 20 69 6e 74 |nsigned |long int|
|000048c0| 20 20 20 20 20 20 73 65 | 74 5f 64 61 74 61 5b 31 | se|t_data[1|
|000048d0| 5d 20 3b 2f 2a 20 74 68 | 65 20 61 63 74 75 61 6c |] ;/* th|e actual|
|000048e0| 20 73 65 74 20 64 61 74 | 61 20 28 63 61 6c 6c 6f | set dat|a (callo|
|000048f0| 63 65 64 29 20 2a 2f 0a | 58 7d 20 73 65 74 5f 74 |ced) */.|X} set_t|
|00004900| 79 70 65 20 3b 0a 58 0a | 58 2f 2a 20 69 64 5f 74 |ype ;.X.|X/* id_t|
|00004910| 79 70 65 20 69 73 20 6f | 6e 65 20 65 6c 65 6d 65 |ype is o|ne eleme|
|00004920| 6e 74 20 6f 66 20 61 6e | 20 69 64 5f 6c 69 73 74 |nt of an| id_list|
|00004930| 0a 58 20 2a 2f 0a 58 0a | 58 74 79 70 65 64 65 66 |.X */.X.|Xtypedef|
|00004940| 20 73 74 72 75 63 74 20 | 69 64 5f 73 74 72 75 63 | struct |id_struc|
|00004950| 74 20 7b 0a 58 20 20 20 | 73 74 72 75 63 74 20 69 |t {.X |struct i|
|00004960| 64 5f 73 74 72 75 63 74 | 20 2a 20 20 20 20 20 6e |d_struct| * n|
|00004970| 65 78 74 5f 69 64 20 3b | 20 20 20 20 2f 2a 20 4c |ext_id ;| /* L|
|00004980| 69 6e 6b 65 64 20 6c 69 | 73 74 20 6f 66 20 49 44 |inked li|st of ID|
|00004990| 73 20 2a 2f 0a 58 20 20 | 20 63 68 61 72 20 20 20 |s */.X | char |
|000049a0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000049b0| 69 64 20 5b 20 31 20 5d | 20 3b 20 20 20 2f 2a 20 |id [ 1 ]| ; /* |
|000049c0| 63 61 6c 6c 6f 63 65 64 | 20 64 61 74 61 20 68 6f |calloced| data ho|
|000049d0| 6c 64 69 6e 67 20 69 64 | 20 73 74 72 69 6e 67 20 |lding id| string |
|000049e0| 2a 2f 0a 58 7d 20 69 64 | 5f 74 79 70 65 20 3b 0a |*/.X} id|_type ;.|
|000049f0| 58 0a 58 2f 2a 20 69 64 | 5f 6c 69 73 74 5f 74 79 |X.X/* id|_list_ty|
|00004a00| 70 65 20 69 73 20 75 73 | 65 64 20 64 75 72 69 6e |pe is us|ed durin|
|00004a10| 67 20 70 61 72 73 69 6e | 67 20 74 6f 20 62 75 69 |g parsin|g to bui|
|00004a20| 6c 64 20 6c 69 73 74 73 | 20 6f 66 0a 58 20 2a 20 |ld lists| of.X * |
|00004a30| 69 64 65 6e 74 69 66 69 | 65 72 73 20 74 68 61 74 |identifi|ers that|
|00004a40| 20 77 69 6c 6c 20 65 76 | 65 6e 74 75 61 6c 6c 79 | will ev|entually|
|00004a50| 20 72 65 70 72 65 73 65 | 6e 74 20 61 72 67 75 6d | represe|nt argum|
|00004a60| 65 6e 74 73 0a 58 20 2a | 20 74 6f 20 62 65 20 70 |ents.X *| to be p|
|00004a70| 61 73 73 65 64 20 74 6f | 20 74 68 65 20 64 61 74 |assed to| the dat|
|00004a80| 61 62 61 73 65 20 71 75 | 65 72 79 20 70 72 6f 67 |abase qu|ery prog|
|00004a90| 72 61 6d 73 2e 0a 58 20 | 2a 2f 0a 58 0a 58 74 79 |rams..X |*/.X.Xty|
|00004aa0| 70 65 64 65 66 20 73 74 | 72 75 63 74 20 69 64 5f |pedef st|ruct id_|
|00004ab0| 6c 69 73 74 5f 73 74 72 | 75 63 74 20 7b 0a 58 20 |list_str|uct {.X |
|00004ac0| 20 20 69 6e 74 20 20 20 | 20 20 20 20 20 20 20 20 | int | |
|00004ad0| 20 20 20 20 20 20 20 20 | 20 69 64 5f 63 6f 75 6e | | id_coun|
|00004ae0| 74 20 3b 20 20 20 2f 2a | 20 63 6f 75 6e 74 20 6f |t ; /*| count o|
|00004af0| 66 20 49 44 73 20 69 6e | 20 74 68 65 20 6c 69 73 |f IDs in| the lis|
|00004b00| 74 20 2a 2f 0a 58 20 20 | 20 69 64 5f 74 79 70 65 |t */.X | id_type|
|00004b10| 20 2a 20 2a 20 20 20 20 | 20 20 20 20 20 20 20 20 | * * | |
|00004b20| 65 6e 64 5f 70 74 72 5f | 70 74 72 20 3b 2f 2a 20 |end_ptr_|ptr ;/* |
|00004b30| 70 6f 69 6e 74 65 72 20 | 74 6f 20 6c 69 6e 6b 20 |pointer |to link |
|00004b40| 77 6f 72 64 20 61 74 20 | 65 6e 64 20 6f 66 20 6c |word at |end of l|
|00004b50| 69 73 74 20 2a 2f 0a 58 | 20 20 20 69 64 5f 74 79 |ist */.X| id_ty|
|00004b60| 70 65 20 2a 20 20 20 20 | 20 20 20 20 20 20 20 20 |pe * | |
|00004b70| 20 20 69 64 5f 6c 69 73 | 74 20 3b 20 20 20 20 2f | id_lis|t ; /|
|00004b80| 2a 20 70 6f 69 6e 74 65 | 72 20 74 6f 20 6c 69 73 |* pointe|r to lis|
|00004b90| 74 20 6f 66 20 49 44 73 | 20 2a 2f 0a 58 7d 20 69 |t of IDs| */.X} i|
|00004ba0| 64 5f 6c 69 73 74 5f 74 | 79 70 65 20 3b 0a 58 0a |d_list_t|ype ;.X.|
|00004bb0| 58 2f 2a 20 73 79 6d 74 | 61 62 5f 74 79 70 65 20 |X/* symt|ab_type |
|00004bc0| 69 73 20 75 73 65 64 20 | 74 6f 20 72 65 63 6f 72 |is used |to recor|
|00004bd0| 64 20 66 69 6c 65 20 6e | 61 6d 65 73 20 69 6e 20 |d file n|ames in |
|00004be0| 74 68 65 20 73 79 6d 62 | 6f 6c 20 74 61 62 6c 65 |the symb|ol table|
|00004bf0| 2e 0a 58 20 2a 2f 0a 58 | 74 79 70 65 64 65 66 20 |..X */.X|typedef |
|00004c00| 73 74 72 75 63 74 20 73 | 79 6d 74 61 62 5f 73 74 |struct s|ymtab_st|
|00004c10| 72 75 63 74 20 7b 0a 58 | 20 20 20 73 74 72 75 63 |ruct {.X| struc|
|00004c20| 74 20 73 79 6d 74 61 62 | 5f 73 74 72 75 63 74 20 |t symtab|_struct |
|00004c30| 2a 20 68 61 73 68 5f 6c | 69 6e 6b 20 3b 20 20 2f |* hash_l|ink ; /|
|00004c40| 2a 20 6c 69 73 74 20 6f | 66 20 66 69 6c 65 73 20 |* list o|f files |
|00004c50| 77 69 74 68 20 73 61 6d | 65 20 68 61 73 68 20 63 |with sam|e hash c|
|00004c60| 6f 64 65 20 2a 2f 0a 58 | 20 20 20 69 6e 74 20 20 |ode */.X| int |
|00004c70| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00004c80| 20 20 6d 61 73 6b 5f 77 | 6f 72 64 20 3b 20 20 2f | mask_w|ord ; /|
|00004c90| 2a 20 77 6f 72 64 20 69 | 6e 20 62 69 74 20 76 65 |* word i|n bit ve|
|00004ca0| 63 74 6f 72 20 2a 2f 0a | 58 20 20 20 75 6e 73 69 |ctor */.|X unsi|
|00004cb0| 67 6e 65 64 20 6c 6f 6e | 67 20 20 20 20 20 20 20 |gned lon|g |
|00004cc0| 20 20 20 6d 61 73 6b 5f | 62 69 74 20 3b 20 20 20 | mask_|bit ; |
|00004cd0| 2f 2a 20 62 69 74 20 69 | 6e 20 77 6f 72 64 20 2a |/* bit i|n word *|
|00004ce0| 2f 0a 58 20 20 20 63 68 | 61 72 20 20 20 20 20 20 |/.X ch|ar |
|00004cf0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 6e 61 6d | | nam|
|00004d00| 65 20 5b 20 31 20 5d 20 | 3b 20 2f 2a 20 74 68 65 |e [ 1 ] |; /* the|
|00004d10| 20 66 69 6c 65 20 6e 61 | 6d 65 20 2a 2f 0a 58 7d | file na|me */.X}|
|00004d20| 20 73 79 6d 74 61 62 5f | 74 79 70 65 20 3b 0a 58 | symtab_|type ;.X|
|00004d30| 0a 58 65 78 74 65 72 6e | 20 76 6f 69 64 20 44 65 |.Xextern| void De|
|00004d40| 73 63 72 69 62 65 53 65 | 74 73 28 29 3b 0a 58 65 |scribeSe|ts();.Xe|
|00004d50| 78 74 65 72 6e 20 69 64 | 5f 6c 69 73 74 5f 74 79 |xtern id|_list_ty|
|00004d60| 70 65 20 2a 20 45 78 74 | 65 6e 64 4c 69 73 74 28 |pe * Ext|endList(|
|00004d70| 29 3b 0a 58 65 78 74 65 | 72 6e 20 76 6f 69 64 20 |);.Xexte|rn void |
|00004d80| 46 6c 75 73 68 53 65 74 | 73 28 29 3b 0a 58 65 78 |FlushSet|s();.Xex|
|00004d90| 74 65 72 6e 20 76 6f 69 | 64 20 49 6e 69 74 49 69 |tern voi|d InitIi|
|00004da0| 64 28 29 3b 0a 58 65 78 | 74 65 72 6e 20 69 64 5f |d();.Xex|tern id_|
|00004db0| 6c 69 73 74 5f 74 79 70 | 65 20 2a 20 49 6e 69 74 |list_typ|e * Init|
|00004dc0| 4c 69 73 74 28 29 3b 0a | 58 65 78 74 65 72 6e 20 |List();.|Xextern |
|00004dd0| 73 79 6d 74 61 62 5f 74 | 79 70 65 20 2a 20 49 6e |symtab_t|ype * In|
|00004de0| 73 74 61 6c 6c 46 69 6c | 65 28 29 3b 0a 58 65 78 |stallFil|e();.Xex|
|00004df0| 74 65 72 6e 20 76 6f 69 | 64 20 4f 6e 65 44 65 73 |tern voi|d OneDes|
|00004e00| 63 72 69 70 74 69 6f 6e | 28 29 3b 0a 58 65 78 74 |cription|();.Xext|
|00004e10| 65 72 6e 20 76 6f 69 64 | 20 50 72 69 6e 74 53 65 |ern void| PrintSe|
|00004e20| 74 28 29 3b 0a 58 65 78 | 74 65 72 6e 20 76 6f 69 |t();.Xex|tern voi|
|00004e30| 64 20 52 75 6e 50 61 67 | 65 72 28 29 3b 0a 58 65 |d RunPag|er();.Xe|
|00004e40| 78 74 65 72 6e 20 73 65 | 74 5f 74 79 70 65 20 2a |xtern se|t_type *|
|00004e50| 20 52 75 6e 50 72 6f 67 | 28 29 3b 0a 58 65 78 74 | RunProg|();.Xext|
|00004e60| 65 72 6e 20 76 6f 69 64 | 20 52 75 6e 53 68 65 6c |ern void| RunShel|
|00004e70| 6c 28 29 3b 0a 58 65 78 | 74 65 72 6e 20 76 6f 69 |l();.Xex|tern voi|
|00004e80| 64 20 53 63 61 6e 49 6e | 69 74 28 29 3b 0a 58 65 |d ScanIn|it();.Xe|
|00004e90| 78 74 65 72 6e 20 76 6f | 69 64 20 53 65 74 44 69 |xtern vo|id SetDi|
|00004ea0| 72 65 63 74 6f 72 79 28 | 29 3b 0a 58 65 78 74 65 |rectory(|);.Xexte|
|00004eb0| 72 6e 20 73 65 74 5f 74 | 79 70 65 20 2a 20 53 65 |rn set_t|ype * Se|
|00004ec0| 74 49 6e 74 65 72 73 65 | 63 74 28 29 3b 0a 58 65 |tInterse|ct();.Xe|
|00004ed0| 78 74 65 72 6e 20 73 65 | 74 5f 74 79 70 65 20 2a |xtern se|t_type *|
|00004ee0| 20 53 65 74 49 6e 76 65 | 72 73 65 28 29 3b 0a 58 | SetInve|rse();.X|
|00004ef0| 65 78 74 65 72 6e 20 69 | 64 5f 6c 69 73 74 5f 74 |extern i|d_list_t|
|00004f00| 79 70 65 20 2a 20 53 65 | 74 4c 69 73 74 28 29 3b |ype * Se|tList();|
|00004f10| 0a 58 65 78 74 65 72 6e | 20 73 65 74 5f 74 79 70 |.Xextern| set_typ|
|00004f20| 65 20 2a 20 53 65 74 55 | 6e 69 6f 6e 28 29 3b 0a |e * SetU|nion();.|
|00004f30| 58 65 78 74 65 72 6e 20 | 69 6e 74 20 79 79 6c 65 |Xextern |int yyle|
|00004f40| 78 28 29 3b 0a 58 0a 58 | 2f 2a 20 4c 69 64 43 6f |x();.X.X|/* LidCo|
|00004f50| 6d 6d 61 6e 64 20 69 73 | 20 74 68 65 20 63 6f 6d |mmand is| the com|
|00004f60| 6d 61 6e 64 20 74 6f 20 | 72 75 6e 20 66 6f 72 20 |mand to |run for |
|00004f70| 61 20 4c 69 64 5f 67 72 | 6f 75 70 2e 20 49 74 20 |a Lid_gr|oup. It |
|00004f80| 69 73 20 73 65 74 0a 58 | 20 2a 20 74 6f 20 22 6c |is set.X| * to "l|
|00004f90| 69 64 20 2d 6b 6d 6e 22 | 20 69 66 20 65 78 70 6c |id -kmn"| if expl|
|00004fa0| 69 63 69 74 6c 79 20 70 | 72 65 63 65 65 64 65 64 |icitly p|receeded|
|00004fb0| 20 62 79 20 22 6c 69 64 | 22 2c 20 6f 74 68 65 72 | by "lid|", other|
|00004fc0| 77 69 73 65 0a 58 20 2a | 20 69 74 20 69 73 20 74 |wise.X *| it is t|
|00004fd0| 68 65 20 64 65 66 61 75 | 6c 74 20 63 6f 6d 6d 61 |he defau|lt comma|
|00004fe0| 6e 64 20 77 68 69 63 68 | 20 69 73 20 64 65 74 65 |nd which| is dete|
|00004ff0| 72 6d 69 6e 65 64 20 62 | 79 20 61 6e 20 6f 70 74 |rmined b|y an opt|
|00005000| 69 6f 6e 2e 0a 58 20 2a | 2f 0a 58 45 58 54 45 52 |ion..X *|/.XEXTER|
|00005010| 4e 20 63 68 61 72 20 2a | 20 4c 69 64 43 6f 6d 6d |N char *| LidComm|
|00005020| 61 6e 64 20 3b 0a 58 0a | 58 2f 2a 20 44 65 66 61 |and ;.X.|X/* Defa|
|00005030| 75 6c 74 43 6f 6d 6d 61 | 6e 64 20 69 73 20 74 68 |ultComma|nd is th|
|00005040| 65 20 64 65 66 61 75 6c | 74 20 63 6f 6d 6d 61 6e |e defaul|t comman|
|00005050| 64 20 66 6f 72 20 61 20 | 4c 69 64 5f 67 72 6f 75 |d for a |Lid_grou|
|00005060| 70 2e 20 49 66 0a 58 20 | 2a 20 74 68 65 20 2d 61 |p. If.X |* the -a|
|00005070| 20 6f 70 74 69 6f 6e 20 | 69 73 20 67 69 76 65 6e | option |is given|
|00005080| 20 74 6f 20 69 69 64 2c | 20 69 74 20 69 73 20 73 | to iid,| it is s|
|00005090| 65 74 20 74 6f 20 75 73 | 65 20 27 61 69 64 27 2e |et to us|e 'aid'.|
|000050a0| 0a 58 20 2a 2f 0a 58 45 | 58 54 45 52 4e 20 63 68 |.X */.XE|XTERN ch|
|000050b0| 61 72 20 2a 20 44 65 66 | 61 75 6c 74 43 6f 6d 6d |ar * Def|aultComm|
|000050c0| 61 6e 64 20 49 4e 49 54 | 28 22 6c 69 64 20 2d 6b |and INIT|("lid -k|
|000050d0| 6d 6e 22 29 20 3b 0a 58 | 0a 58 2f 2a 20 46 69 6c |mn") ;.X|.X/* Fil|
|000050e0| 65 4c 69 73 74 20 69 73 | 20 61 20 6c 65 78 69 63 |eList is| a lexic|
|000050f0| 61 6c 6c 79 20 6f 72 64 | 65 72 65 64 20 6c 69 73 |ally ord|ered lis|
|00005100| 74 20 6f 66 20 66 69 6c | 65 20 73 79 6d 62 6f 6c |t of fil|e symbol|
|00005110| 20 74 61 62 6c 65 0a 58 | 20 2a 20 70 6f 69 6e 74 | table.X| * point|
|00005120| 65 72 73 2e 20 49 74 20 | 69 73 20 64 79 6e 61 6d |ers. It |is dynam|
|00005130| 69 63 61 6c 6c 79 20 65 | 78 70 61 6e 64 65 64 20 |ically e|xpanded |
|00005140| 77 68 65 6e 20 6e 65 63 | 65 73 73 61 72 79 2e 0a |when nec|essary..|
|00005150| 58 20 2a 2f 0a 58 45 58 | 54 45 52 4e 20 73 79 6d |X */.XEX|TERN sym|
|00005160| 74 61 62 5f 74 79 70 65 | 20 2a 20 2a 20 20 20 20 |tab_type| * * |
|00005170| 46 69 6c 65 4c 69 73 74 | 20 49 4e 49 54 28 4e 55 |FileList| INIT(NU|
|00005180| 4c 4c 29 20 3b 0a 58 0a | 58 2f 2a 20 46 69 6c 65 |LL) ;.X.|X/* File|
|00005190| 53 70 61 63 65 20 69 73 | 20 74 68 65 20 6e 75 6d |Space is| the num|
|000051a0| 62 65 72 20 6f 66 20 6c | 6f 6e 67 20 69 6e 74 73 |ber of l|ong ints|
|000051b0| 20 69 6e 20 54 68 65 46 | 69 6c 65 73 20 61 72 72 | in TheF|iles arr|
|000051c0| 61 79 2e 0a 58 20 2a 2f | 0a 58 45 58 54 45 52 4e |ay..X */|.XEXTERN|
|000051d0| 20 69 6e 74 20 20 20 20 | 20 20 20 20 20 20 20 20 | int | |
|000051e0| 20 20 20 20 46 69 6c 65 | 53 70 61 63 65 20 49 4e | File|Space IN|
|000051f0| 49 54 28 30 29 20 3b 0a | 58 0a 58 2f 2a 20 48 61 |IT(0) ;.|X.X/* Ha|
|00005200| 73 68 54 61 62 6c 65 20 | 69 73 20 74 68 65 20 73 |shTable |is the s|
|00005210| 79 6d 62 6f 6c 20 74 61 | 62 6c 65 20 75 73 65 64 |ymbol ta|ble used|
|00005220| 20 74 6f 20 73 74 6f 72 | 65 20 66 69 6c 65 20 6e | to stor|e file n|
|00005230| 61 6d 65 73 2e 20 45 61 | 63 68 0a 58 20 2a 20 6e |ames. Ea|ch.X * n|
|00005240| 65 77 20 6e 61 6d 65 20 | 69 6e 73 74 61 6c 6c 65 |ew name |installe|
|00005250| 64 20 69 73 20 61 73 73 | 69 67 6e 65 64 20 74 68 |d is ass|igned th|
|00005260| 65 20 6e 65 78 74 20 63 | 6f 6e 73 65 63 75 74 69 |e next c|onsecuti|
|00005270| 76 65 20 66 69 6c 65 20 | 6e 75 6d 62 65 72 2e 0a |ve file |number..|
|00005280| 58 20 2a 2f 0a 58 45 58 | 54 45 52 4e 20 73 79 6d |X */.XEX|TERN sym|
|00005290| 74 61 62 5f 74 79 70 65 | 20 2a 20 20 20 20 20 20 |tab_type| * |
|000052a0| 48 61 73 68 54 61 62 6c | 65 20 5b 20 48 41 53 48 |HashTabl|e [ HASH|
|000052b0| 5f 53 49 5a 45 20 5d 20 | 3b 0a 58 0a 58 2f 2a 20 |_SIZE ] |;.X.X/* |
|000052c0| 48 65 6c 70 53 65 74 20 | 69 73 20 61 20 64 75 6d |HelpSet |is a dum|
|000052d0| 6d 79 20 73 65 74 20 63 | 6f 6e 74 61 69 6e 69 6e |my set c|ontainin|
|000052e0| 67 20 6f 6e 6c 79 20 6f | 6e 65 20 62 69 74 20 73 |g only o|ne bit s|
|000052f0| 65 74 20 77 68 69 63 68 | 20 63 6f 72 72 65 73 70 |et which| corresp|
|00005300| 6f 6e 64 73 0a 58 20 2a | 20 74 6f 20 74 68 65 20 |onds.X *| to the |
|00005310| 68 65 6c 70 20 66 69 6c | 65 20 6e 61 6d 65 2e 20 |help fil|e name. |
|00005320| 53 69 6d 70 6c 79 20 61 | 20 63 68 65 65 73 79 20 |Simply a| cheesy |
|00005330| 77 61 79 20 74 6f 20 6d | 61 78 69 6d 69 7a 65 20 |way to m|aximize |
|00005340| 73 68 61 72 69 6e 67 20 | 6f 66 0a 58 20 2a 20 74 |sharing |of.X * t|
|00005350| 68 65 20 63 6f 64 65 20 | 74 68 61 74 20 72 75 6e |he code |that run|
|00005360| 73 20 74 68 65 20 70 61 | 67 65 72 2e 0a 58 20 2a |s the pa|ger..X *|
|00005370| 2f 0a 58 45 58 54 45 52 | 4e 20 73 65 74 5f 74 79 |/.XEXTER|N set_ty|
|00005380| 70 65 20 2a 20 20 20 20 | 20 20 20 20 20 48 65 6c |pe * | Hel|
|00005390| 70 53 65 74 20 3b 0a 58 | 0a 58 2f 2a 20 68 69 67 |pSet ;.X|.X/* hig|
|000053a0| 68 5f 62 69 74 20 69 73 | 20 61 20 75 6e 73 69 67 |h_bit is| a unsig|
|000053b0| 6e 65 64 20 6c 6f 6e 67 | 20 77 69 74 68 20 74 68 |ned long| with th|
|000053c0| 65 20 6d 6f 73 74 20 73 | 69 67 6e 69 66 69 63 61 |e most s|ignifica|
|000053d0| 6e 74 20 62 69 74 20 73 | 65 74 2e 0a 58 20 2a 2f |nt bit s|et..X */|
|000053e0| 0a 58 45 58 54 45 52 4e | 20 75 6e 73 69 67 6e 65 |.XEXTERN| unsigne|
|000053f0| 64 20 6c 6f 6e 67 20 20 | 20 20 20 20 68 69 67 68 |d long | high|
|00005400| 5f 62 69 74 20 3b 0a 58 | 0a 58 2f 2a 20 4c 69 73 |_bit ;.X|.X/* Lis|
|00005410| 74 53 70 61 63 65 20 69 | 73 20 74 68 65 20 61 6d |tSpace i|s the am|
|00005420| 6f 75 6e 74 20 6f 66 20 | 73 70 61 63 65 20 61 76 |ount of |space av|
|00005430| 61 69 6c 20 69 6e 20 74 | 68 65 20 46 69 6c 65 4c |ail in t|he FileL|
|00005440| 69 73 74 2e 0a 58 20 2a | 2f 0a 58 45 58 54 45 52 |ist..X *|/.XEXTER|
|00005450| 4e 20 69 6e 74 20 20 20 | 20 20 20 20 20 20 20 20 |N int | |
|00005460| 20 20 20 20 20 4c 69 73 | 74 53 70 61 63 65 20 49 | Lis|tSpace I|
|00005470| 4e 49 54 28 30 29 20 3b | 0a 58 0a 58 2f 2a 20 4d |NIT(0) ;|.X.X/* M|
|00005480| 61 78 43 75 72 46 69 6c | 65 20 2d 20 6d 61 78 20 |axCurFil|e - max |
|00005490| 77 6f 72 64 20 74 68 61 | 74 20 68 61 73 20 61 6e |word tha|t has an|
|000054a0| 79 20 62 69 74 20 63 75 | 72 72 65 6e 74 6c 79 20 |y bit cu|rrently |
|000054b0| 73 65 74 20 69 6e 20 74 | 68 65 0a 58 20 2a 20 54 |set in t|he.X * T|
|000054c0| 68 65 46 69 6c 65 73 20 | 61 72 72 61 79 2e 0a 58 |heFiles |array..X|
|000054d0| 20 2a 2f 0a 58 45 58 54 | 45 52 4e 20 69 6e 74 20 | */.XEXT|ERN int |
|000054e0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 4d | | M|
|000054f0| 61 78 43 75 72 46 69 6c | 65 20 49 4e 49 54 28 30 |axCurFil|e INIT(0|
|00005500| 29 20 3b 0a 58 0a 58 2f | 2a 20 4e 65 78 74 46 69 |) ;.X.X/|* NextFi|
|00005510| 6c 65 4e 75 6d 20 69 73 | 20 74 68 65 20 66 69 6c |leNum is| the fil|
|00005520| 65 20 6e 75 6d 62 65 72 | 20 74 68 61 74 20 77 69 |e number| that wi|
|00005530| 6c 6c 20 62 65 20 61 73 | 73 69 67 6e 65 64 20 74 |ll be as|signed t|
|00005540| 6f 20 74 68 65 20 6e 65 | 78 74 0a 58 20 2a 20 6e |o the ne|xt.X * n|
|00005550| 65 77 20 66 69 6c 65 20 | 6e 61 6d 65 20 73 65 65 |ew file |name see|
|00005560| 6e 20 77 68 65 6e 20 69 | 74 20 69 73 20 69 6e 73 |n when i|t is ins|
|00005570| 74 61 6c 6c 65 64 20 69 | 6e 20 74 68 65 20 73 79 |talled i|n the sy|
|00005580| 6d 74 61 62 2e 0a 58 20 | 2a 2f 0a 58 45 58 54 45 |mtab..X |*/.XEXTE|
|00005590| 52 4e 20 69 6e 74 20 20 | 20 20 20 20 20 20 20 20 |RN int | |
|000055a0| 20 20 20 20 20 20 4e 65 | 78 74 46 69 6c 65 4e 75 | Ne|xtFileNu|
|000055b0| 6d 20 49 4e 49 54 28 30 | 29 20 3b 0a 58 0a 58 2f |m INIT(0|) ;.X.X/|
|000055c0| 2a 20 4e 65 78 74 4d 61 | 73 6b 42 69 74 20 69 73 |* NextMa|skBit is|
|000055d0| 20 74 68 65 20 62 69 74 | 20 77 69 74 68 69 6e 20 | the bit| within |
|000055e0| 74 68 65 20 6e 65 78 74 | 20 6d 61 73 6b 20 77 6f |the next| mask wo|
|000055f0| 72 64 20 74 68 61 74 20 | 77 69 6c 6c 0a 58 20 2a |rd that |will.X *|
|00005600| 20 63 6f 72 72 65 73 70 | 6f 6e 64 20 74 6f 20 74 | corresp|ond to t|
|00005610| 68 65 20 6e 65 78 74 20 | 66 69 6c 65 20 61 64 64 |he next |file add|
|00005620| 65 64 20 74 6f 20 74 68 | 65 20 73 79 6d 62 6f 6c |ed to th|e symbol|
|00005630| 20 74 61 62 6c 65 2e 0a | 58 20 2a 2f 0a 58 45 58 | table..|X */.XEX|
|00005640| 54 45 52 4e 20 75 6e 73 | 69 67 6e 65 64 20 6c 6f |TERN uns|igned lo|
|00005650| 6e 67 20 20 20 20 20 20 | 4e 65 78 74 4d 61 73 6b |ng |NextMask|
|00005660| 42 69 74 20 3b 0a 58 0a | 58 2f 2a 20 4e 65 78 74 |Bit ;.X.|X/* Next|
|00005670| 4d 61 73 6b 57 6f 72 64 | 20 69 73 20 74 68 65 20 |MaskWord| is the |
|00005680| 6e 65 78 74 20 77 6f 72 | 64 20 6e 75 6d 62 65 72 |next wor|d number|
|00005690| 20 74 6f 20 62 65 20 61 | 73 73 69 67 6e 65 64 20 | to be a|ssigned |
|000056a0| 74 6f 20 61 20 66 69 6c | 65 0a 58 20 2a 20 62 69 |to a fil|e.X * bi|
|000056b0| 74 20 6d 61 73 6b 20 65 | 6e 74 72 79 2e 0a 58 20 |t mask e|ntry..X |
|000056c0| 2a 2f 0a 58 45 58 54 45 | 52 4e 20 69 6e 74 20 20 |*/.XEXTE|RN int |
|000056d0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 4e 65 | | Ne|
|000056e0| 78 74 4d 61 73 6b 57 6f | 72 64 20 49 4e 49 54 28 |xtMaskWo|rd INIT(|
|000056f0| 30 29 20 3b 0a 58 0a 58 | 2f 2a 20 4e 65 78 74 53 |0) ;.X.X|/* NextS|
|00005700| 65 74 4e 75 6d 20 69 73 | 20 74 68 65 20 6e 75 6d |etNum is| the num|
|00005710| 62 65 72 20 74 68 61 74 | 20 77 69 6c 6c 20 62 65 |ber that| will be|
|00005720| 20 61 73 73 69 67 6e 65 | 64 20 74 6f 20 74 68 65 | assigne|d to the|
|00005730| 20 6e 65 78 74 20 73 65 | 74 0a 58 20 2a 20 63 72 | next se|t.X * cr|
|00005740| 65 61 74 65 64 2e 20 53 | 74 61 72 74 73 20 61 74 |eated. S|tarts at|
|00005750| 20 30 20 62 65 63 61 75 | 73 65 20 49 20 61 6d 20 | 0 becau|se I am |
|00005760| 61 20 43 20 70 72 6f 67 | 72 61 6d 6d 65 72 2e 0a |a C prog|rammer..|
|00005770| 58 20 2a 2f 0a 58 45 58 | 54 45 52 4e 20 69 6e 74 |X */.XEX|TERN int|
|00005780| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00005790| 4e 65 78 74 53 65 74 4e | 75 6d 20 49 4e 49 54 28 |NextSetN|um INIT(|
|000057a0| 30 29 20 3b 0a 58 0a 58 | 2f 2a 20 54 68 65 20 50 |0) ;.X.X|/* The P|
|000057b0| 41 47 45 52 20 70 72 6f | 67 72 61 6d 20 74 6f 20 |AGER pro|gram to |
|000057c0| 72 75 6e 20 6f 6e 20 61 | 20 53 48 4f 57 20 63 6f |run on a| SHOW co|
|000057d0| 6d 6d 61 6e 64 2e 0a 58 | 20 2a 2f 0a 58 45 58 54 |mmand..X| */.XEXT|
|000057e0| 45 52 4e 20 63 68 61 72 | 20 20 20 20 20 20 20 20 |ERN char| |
|000057f0| 20 20 20 20 20 20 20 50 | 61 67 65 72 5b 4d 41 58 | P|ager[MAX|
|00005800| 43 4d 44 5d 20 3b 0a 58 | 0a 58 2f 2a 20 50 72 6f |CMD] ;.X|.X/* Pro|
|00005810| 6d 70 74 20 2d 20 74 68 | 65 20 73 74 72 69 6e 67 |mpt - th|e string|
|00005820| 20 74 6f 20 75 73 65 20 | 66 6f 72 20 61 20 70 72 | to use |for a pr|
|00005830| 6f 6d 70 74 2e 0a 58 20 | 2a 2f 0a 58 45 58 54 45 |ompt..X |*/.XEXTE|
|00005840| 52 4e 20 63 68 61 72 20 | 20 20 20 20 20 20 20 20 |RN char | |
|00005850| 20 20 20 20 20 20 50 72 | 6f 6d 70 74 5b 4d 41 58 | Pr|ompt[MAX|
|00005860| 43 4d 44 5d 20 3b 0a 58 | 0a 58 2f 2a 20 53 65 74 |CMD] ;.X|.X/* Set|
|00005870| 53 70 61 63 65 20 69 73 | 20 74 68 65 20 6e 75 6d |Space is| the num|
|00005880| 62 65 72 20 6f 66 20 70 | 6f 69 6e 74 65 72 73 20 |ber of p|ointers |
|00005890| 61 76 61 69 6c 61 62 6c | 65 20 69 6e 20 54 68 65 |availabl|e in The|
|000058a0| 53 65 74 73 2e 20 54 68 | 65 53 65 74 73 0a 58 20 |Sets. Th|eSets.X |
|000058b0| 2a 20 69 73 20 72 65 61 | 6c 6c 6f 63 65 64 20 77 |* is rea|lloced w|
|000058c0| 68 65 6e 20 77 65 20 72 | 75 6e 20 6f 75 74 20 6f |hen we r|un out o|
|000058d0| 66 20 73 70 61 63 65 2e | 0a 58 20 2a 2f 0a 58 45 |f space.|.X */.XE|
|000058e0| 58 54 45 52 4e 20 69 6e | 74 20 20 20 20 20 20 20 |XTERN in|t |
|000058f0| 20 20 20 20 20 20 20 20 | 20 53 65 74 53 70 61 63 | | SetSpac|
|00005900| 65 20 49 4e 49 54 28 30 | 29 20 3b 0a 58 0a 58 2f |e INIT(0|) ;.X.X/|
|00005910| 2a 20 54 68 65 46 69 6c | 65 73 20 69 73 20 61 20 |* TheFil|es is a |
|00005920| 62 69 74 20 73 65 74 20 | 75 73 65 64 20 74 6f 20 |bit set |used to |
|00005930| 63 6f 6e 73 74 72 75 63 | 74 20 74 68 65 20 69 6e |construc|t the in|
|00005940| 69 74 69 61 6c 20 73 65 | 74 20 6f 66 20 66 69 6c |itial se|t of fil|
|00005950| 65 73 0a 58 20 2a 20 67 | 65 6e 65 72 61 74 65 64 |es.X * g|enerated|
|00005960| 20 77 68 69 6c 65 20 72 | 75 6e 6e 69 6e 67 20 6f | while r|unning o|
|00005970| 6e 65 20 6f 66 20 74 68 | 65 20 73 75 62 70 72 6f |ne of th|e subpro|
|00005980| 67 72 61 6d 73 2e 20 49 | 74 20 69 73 20 63 6f 70 |grams. I|t is cop|
|00005990| 69 65 64 20 74 6f 0a 58 | 20 2a 20 74 68 65 20 61 |ied to.X| * the a|
|000059a0| 6c 6c 6f 63 65 64 20 73 | 65 74 20 6f 6e 63 65 20 |lloced s|et once |
|000059b0| 77 65 20 6b 6e 6f 77 20 | 68 6f 77 20 6d 61 6e 79 |we know |how many|
|000059c0| 20 62 69 74 73 20 61 72 | 65 20 73 65 74 2e 0a 58 | bits ar|e set..X|
|000059d0| 20 2a 2f 0a 58 45 58 54 | 45 52 4e 20 75 6e 73 69 | */.XEXT|ERN unsi|
|000059e0| 67 6e 65 64 20 6c 6f 6e | 67 20 2a 20 20 20 20 54 |gned lon|g * T|
|000059f0| 68 65 46 69 6c 65 73 20 | 49 4e 49 54 28 4e 55 4c |heFiles |INIT(NUL|
|00005a00| 4c 29 20 3b 0a 58 0a 58 | 2f 2a 20 54 68 65 53 65 |L) ;.X.X|/* TheSe|
|00005a10| 74 73 20 69 73 20 61 20 | 64 79 6e 61 6d 69 63 61 |ts is a |dynamica|
|00005a20| 6c 6c 79 20 61 6c 6c 6f | 63 61 74 65 64 20 61 72 |lly allo|cated ar|
|00005a30| 72 61 79 20 6f 66 20 70 | 6f 69 6e 74 65 72 73 20 |ray of p|ointers |
|00005a40| 70 6f 69 6e 74 69 6e 67 | 0a 58 20 2a 20 74 68 65 |pointing|.X * the|
|00005a50| 20 73 65 74 73 20 74 68 | 61 74 20 68 61 76 65 20 | sets th|at have |
|00005a60| 62 65 65 6e 20 61 6c 6c | 6f 63 61 74 65 64 2e 20 |been all|ocated. |
|00005a70| 49 74 20 72 65 70 72 65 | 73 65 6e 74 73 20 74 68 |It repre|sents th|
|00005a80| 65 20 73 65 74 20 6f 66 | 0a 58 20 2a 20 73 65 74 |e set of|.X * set|
|00005a90| 73 2e 0a 58 20 2a 2f 0a | 58 45 58 54 45 52 4e 20 |s..X */.|XEXTERN |
|00005aa0| 73 65 74 5f 74 79 70 65 | 20 2a 20 2a 20 20 20 20 |set_type| * * |
|00005ab0| 20 20 20 54 68 65 53 65 | 74 73 20 49 4e 49 54 28 | TheSe|ts INIT(|
|00005ac0| 4e 55 4c 4c 29 20 3b 0a | 58 0a 58 2f 2a 20 56 65 |NULL) ;.|X.X/* Ve|
|00005ad0| 72 62 6f 73 65 51 75 65 | 72 79 20 63 6f 6e 74 72 |rboseQue|ry contr|
|00005ae0| 6f 6c 73 20 74 68 65 20 | 61 63 74 69 6f 6e 73 20 |ols the |actions |
|00005af0| 6f 66 20 74 68 65 20 73 | 65 6d 61 6e 74 69 63 20 |of the s|emantic |
|00005b00| 72 6f 75 74 69 6e 65 73 | 20 64 75 72 69 6e 67 0a |routines| during.|
|00005b10| 58 20 2a 20 74 68 65 20 | 70 72 6f 63 65 73 73 20 |X * the |process |
|00005b20| 6f 66 20 61 20 71 75 65 | 72 79 2e 20 49 66 20 54 |of a que|ry. If T|
|00005b30| 52 55 45 20 74 68 65 20 | 73 65 74 73 20 61 72 65 |RUE the |sets are|
|00005b40| 20 64 65 73 63 72 69 62 | 65 64 20 61 73 20 74 68 | describ|ed as th|
|00005b50| 65 79 0a 58 20 2a 20 61 | 72 65 20 63 6f 6e 73 74 |ey.X * a|re const|
|00005b60| 72 75 63 74 65 64 2e 0a | 58 20 2a 2f 0a 58 45 58 |ructed..|X */.XEX|
|00005b70| 54 45 52 4e 20 69 6e 74 | 20 20 20 20 20 20 20 20 |TERN int| |
|00005b80| 20 20 20 20 20 20 20 20 | 56 65 72 62 6f 73 65 51 | |VerboseQ|
|00005b90| 75 65 72 79 20 3b 0a 45 | 4e 44 5f 4f 46 5f 46 49 |uery ;.E|ND_OF_FI|
|00005ba0| 4c 45 0a 69 66 20 74 65 | 73 74 20 36 33 33 31 20 |LE.if te|st 6331 |
|00005bb0| 2d 6e 65 20 60 77 63 20 | 2d 63 20 3c 27 69 69 64 |-ne `wc |-c <'iid|
|00005bc0| 64 65 66 2e 68 27 60 3b | 20 74 68 65 6e 0a 20 20 |def.h'`;| then. |
|00005bd0| 20 20 65 63 68 6f 20 73 | 68 61 72 3a 20 5c 22 27 | echo s|har: \"'|
|00005be0| 69 69 64 64 65 66 2e 68 | 27 5c 22 20 75 6e 70 61 |iiddef.h|'\" unpa|
|00005bf0| 63 6b 65 64 20 77 69 74 | 68 20 77 72 6f 6e 67 20 |cked wit|h wrong |
|00005c00| 73 69 7a 65 21 0a 66 69 | 0a 23 20 65 6e 64 20 6f |size!.fi|.# end o|
|00005c10| 66 20 27 69 69 64 64 65 | 66 2e 68 27 0a 66 69 0a |f 'iidde|f.h'.fi.|
|00005c20| 69 66 20 74 65 73 74 20 | 2d 66 20 27 6c 69 64 2e |if test |-f 'lid.|
|00005c30| 31 27 20 2d 61 20 22 24 | 7b 31 7d 22 20 21 3d 20 |1' -a "$|{1}" != |
|00005c40| 22 2d 63 22 20 3b 20 74 | 68 65 6e 20 0a 20 20 65 |"-c" ; t|hen . e|
|00005c50| 63 68 6f 20 73 68 61 72 | 3a 20 57 69 6c 6c 20 6e |cho shar|: Will n|
|00005c60| 6f 74 20 63 6c 6f 62 62 | 65 72 20 65 78 69 73 74 |ot clobb|er exist|
|00005c70| 69 6e 67 20 66 69 6c 65 | 20 5c 22 27 6c 69 64 2e |ing file| \"'lid.|
|00005c80| 31 27 5c 22 0a 65 6c 73 | 65 0a 65 63 68 6f 20 73 |1'\".els|e.echo s|
|00005c90| 68 61 72 3a 20 45 78 74 | 72 61 63 74 69 6e 67 20 |har: Ext|racting |
|00005ca0| 5c 22 27 6c 69 64 2e 31 | 27 5c 22 20 5c 28 35 36 |\"'lid.1|'\" \(56|
|00005cb0| 37 38 20 63 68 61 72 61 | 63 74 65 72 73 5c 29 0a |78 chara|cters\).|
|00005cc0| 73 65 64 20 22 73 2f 5e | 58 2f 2f 22 20 3e 27 6c |sed "s/^|X//" >'l|
|00005cd0| 69 64 2e 31 27 20 3c 3c | 27 45 4e 44 5f 4f 46 5f |id.1' <<|'END_OF_|
|00005ce0| 46 49 4c 45 27 0a 58 2e | 54 48 20 4c 49 44 20 31 |FILE'.X.|TH LID 1|
|00005cf0| 0a 58 2e 53 48 20 4e 41 | 4d 45 0a 58 6c 69 64 2c |.X.SH NA|ME.Xlid,|
|00005d00| 20 67 69 64 2c 20 65 69 | 64 2c 20 61 69 64 2c 20 | gid, ei|d, aid, |
|00005d10| 70 69 64 20 5c 2d 20 71 | 75 65 72 79 20 69 64 20 |pid \- q|uery id |
|00005d20| 64 61 74 61 62 61 73 65 | 0a 58 2e 53 48 20 53 59 |database|.X.SH SY|
|00005d30| 4e 4f 50 53 49 53 0a 58 | 2e 42 20 6c 69 64 0a 58 |NOPSIS.X|.B lid.X|
|00005d40| 2e 52 42 20 5b 20 5c 2d | 66 20 5c 5e 66 69 6c 65 |.RB [ \-|f \^file|
|00005d50| 5d 0a 58 2e 52 42 20 5b | 20 5c 2d 75 20 5c 5e 6e |].X.RB [| \-u \^n|
|00005d60| 5d 0a 58 2e 52 42 20 5b | 20 5c 2d 72 20 5c 5e 64 |].X.RB [| \-r \^d|
|00005d70| 69 72 5d 0a 58 2e 52 42 | 20 5b 20 5c 2d 65 64 6f |ir].X.RB| [ \-edo|
|00005d80| 78 61 6d 73 65 6b 6e 63 | 5d 0a 58 70 61 74 74 65 |xamseknc|].Xpatte|
|00005d90| 72 6e 73 2e 2e 2e 0a 58 | 2e 50 50 0a 58 2e 42 20 |rns....X|.PP.X.B |
|00005da0| 67 69 64 0a 58 2e 52 42 | 20 5b 20 5c 2d 66 20 5c |gid.X.RB| [ \-f \|
|00005db0| 5e 66 69 6c 65 5d 0a 58 | 2e 52 42 20 5b 20 5c 2d |^file].X|.RB [ \-|
|00005dc0| 72 20 5c 5e 64 69 72 5d | 0a 58 2e 52 42 20 5b 20 |r \^dir]|.X.RB [ |
|00005dd0| 5c 2d 65 64 6f 78 61 6d | 73 65 63 5d 0a 58 70 61 |\-edoxam|sec].Xpa|
|00005de0| 74 74 65 72 6e 73 2e 2e | 2e 0a 58 2e 50 50 0a 58 |tterns..|..X.PP.X|
|00005df0| 2e 42 20 65 69 64 0a 58 | 2e 52 42 20 5b 20 5c 2d |.B eid.X|.RB [ \-|
|00005e00| 66 20 5c 5e 66 69 6c 65 | 5d 0a 58 2e 52 42 20 5b |f \^file|].X.RB [|
|00005e10| 20 5c 2d 72 20 5c 5e 64 | 69 72 5d 0a 58 2e 52 42 | \-r \^d|ir].X.RB|
|00005e20| 20 5b 20 5c 2d 64 6f 78 | 61 6d 73 65 63 5d 0a 58 | [ \-dox|amsec].X|
|00005e30| 70 61 74 74 65 72 6e 73 | 2e 2e 2e 0a 58 2e 50 50 |patterns|....X.PP|
|00005e40| 0a 58 2e 42 20 61 69 64 | 0a 58 2e 52 42 20 5b 20 |.X.B aid|.X.RB [ |
|00005e50| 5c 2d 66 20 5c 5e 66 69 | 6c 65 5d 0a 58 2e 52 42 |\-f \^fi|le].X.RB|
|00005e60| 20 5b 20 5c 2d 72 20 5c | 5e 64 69 72 5d 0a 58 2e | [ \-r \|^dir].X.|
|00005e70| 52 42 20 5b 20 5c 2d 64 | 6f 78 61 6d 73 63 5d 0a |RB [ \-d|oxamsc].|
|00005e80| 58 70 61 74 74 65 72 6e | 73 2e 2e 2e 0a 58 2e 50 |Xpattern|s....X.P|
|00005e90| 50 0a 58 2e 42 20 70 69 | 64 0a 58 2e 52 42 20 5b |P.X.B pi|d.X.RB [|
|00005ea0| 20 5c 2d 66 20 5c 5e 66 | 69 6c 65 5d 0a 58 2e 52 | \-f \^f|ile].X.R|
|00005eb0| 42 20 5b 20 5c 2d 72 20 | 5c 5e 64 69 72 5d 0a 58 |B [ \-r |\^dir].X|
|00005ec0| 2e 52 42 20 5b 20 5c 2d | 65 6b 6e 63 62 5d 0a 58 |.RB [ \-|ekncb].X|
|00005ed0| 70 61 74 74 65 72 6e 73 | 2e 2e 2e 0a 58 2e 53 48 |patterns|....X.SH|
|00005ee0| 20 44 45 53 43 52 49 50 | 54 49 4f 4e 0a 58 54 68 | DESCRIP|TION.XTh|
|00005ef0| 65 73 65 20 63 6f 6d 6d | 61 6e 64 73 20 70 72 6f |ese comm|ands pro|
|00005f00| 76 69 64 65 20 61 20 66 | 6c 65 78 69 62 6c 65 20 |vide a f|lexible |
|00005f10| 71 75 65 72 79 20 69 6e | 74 65 72 66 61 63 65 20 |query in|terface |
|00005f20| 74 6f 20 74 68 65 0a 58 | 2e 49 20 69 64 0a 58 64 |to the.X|.I id.Xd|
|00005f30| 61 74 61 62 61 73 65 2e | 0a 58 2e 49 20 4c 69 64 |atabase.|.X.I Lid|
|00005f40| 5c 5e 0a 58 64 6f 65 73 | 20 61 20 6c 6f 6f 6b 75 |\^.Xdoes| a looku|
|00005f50| 70 20 6f 6e 0a 58 2e 49 | 52 20 70 61 74 74 65 72 |p on.X.I|R patter|
|00005f60| 73 0a 58 61 6e 64 20 70 | 72 69 6e 74 73 20 6f 75 |s.Xand p|rints ou|
|00005f70| 74 20 6c 69 6e 65 73 20 | 69 6e 20 74 68 69 73 20 |t lines |in this |
|00005f80| 77 61 79 3a 0a 58 2e 50 | 50 0a 58 2e 6e 66 0a 58 |way:.X.P|P.X.nf.X|
|00005f90| 69 64 6e 61 6d 65 20 20 | 20 20 20 20 20 20 2e 2e |idname | ..|
|00005fa0| 2f 68 64 69 72 2f 68 66 | 69 6c 65 2e 68 20 2e 2e |/hdir/hf|ile.h ..|
|00005fb0| 2f 63 64 69 72 2f 7b 63 | 66 69 6c 65 31 2c 63 66 |/cdir/{c|file1,cf|
|00005fc0| 69 6c 65 32 7d 2e 63 0a | 58 2e 66 69 0a 58 2e 50 |ile2}.c.|X.fi.X.P|
|00005fd0| 50 0a 58 4e 6f 74 69 63 | 65 20 74 68 61 74 20 6d |P.XNotic|e that m|
|00005fe0| 75 6c 74 69 70 6c 65 20 | 66 69 6c 65 73 20 77 69 |ultiple |files wi|
|00005ff0| 74 68 20 74 68 65 20 73 | 61 6d 65 20 64 69 72 65 |th the s|ame dire|
|00006000| 63 74 6f 72 79 20 70 72 | 65 66 69 78 0a 58 61 6e |ctory pr|efix.Xan|
|00006010| 64 20 73 75 66 66 69 78 | 20 61 72 65 20 63 6f 6e |d suffix| are con|
|00006020| 63 61 74 65 6e 61 74 65 | 64 20 69 6e 20 74 68 65 |catenate|d in the|
|00006030| 20 67 6c 6f 62 62 69 6e | 67 2d 73 65 74 2d 6e 6f | globbin|g-set-no|
|00006040| 74 61 74 69 6f 6e 20 6f | 66 0a 58 2e 49 52 20 63 |tation o|f.X.IR c|
|00006050| 73 68 20 28 31 29 2e 0a | 58 41 6c 73 6f 20 6e 6f |sh (1)..|XAlso no|
|00006060| 74 69 63 65 20 74 68 61 | 74 20 61 6c 6c 20 6f 66 |tice tha|t all of|
|00006070| 20 74 68 65 0a 58 2e 49 | 20 69 64 0a 58 64 61 74 | the.X.I| id.Xdat|
|00006080| 61 62 61 73 65 20 71 75 | 65 72 79 20 63 6f 6d 6d |abase qu|ery comm|
|00006090| 61 6e 64 73 20 61 64 6a | 75 73 74 20 74 68 65 20 |ands adj|ust the |
|000060a0| 6c 69 73 74 20 6f 66 20 | 70 61 74 68 6e 61 6d 65 |list of |pathname|
|000060b0| 73 20 74 6f 20 62 65 20 | 72 65 6c 61 74 69 76 65 |s to be |relative|
|000060c0| 0a 58 74 6f 20 79 6f 75 | 72 20 63 75 72 72 65 6e |.Xto you|r curren|
|000060d0| 74 20 77 6f 72 6b 69 6e | 67 20 64 69 72 65 63 74 |t workin|g direct|
|000060e0| 6f 72 79 2c 20 70 72 6f | 76 69 64 65 64 20 74 68 |ory, pro|vided th|
|000060f0| 61 74 0a 58 2e 49 52 20 | 6d 6b 69 64 20 28 31 29 |at.X.IR |mkid (1)|
|00006100| 0a 58 77 61 73 20 75 73 | 65 64 20 74 6f 20 62 75 |.Xwas us|ed to bu|
|00006110| 69 6c 64 20 74 68 65 20 | 64 61 74 61 62 61 73 65 |ild the |database|
|00006120| 2c 20 61 6e 64 20 79 6f | 75 72 20 77 6f 72 6b 69 |, and yo|ur worki|
|00006130| 6e 67 20 64 69 72 65 63 | 74 6f 72 79 0a 58 69 73 |ng direc|tory.Xis|
|00006140| 20 6c 6f 63 61 74 65 64 | 20 77 69 74 68 69 6e 20 | located| within |
|00006150| 74 68 65 20 73 75 62 2d | 74 72 65 65 20 63 6f 76 |the sub-|tree cov|
|00006160| 65 72 65 64 20 62 79 20 | 74 68 65 0a 58 2e 49 20 |ered by |the.X.I |
|00006170| 69 64 0a 58 64 61 74 61 | 62 61 73 65 2e 0a 58 2e |id.Xdata|base..X.|
|00006180| 50 50 0a 58 49 66 20 6d | 75 6c 74 69 70 6c 65 20 |PP.XIf m|ultiple |
|00006190| 6e 61 6d 65 73 20 6d 61 | 74 63 68 20 6f 6e 20 70 |names ma|tch on p|
|000061a0| 61 74 74 65 72 6e 2c 20 | 74 68 65 6e 20 74 68 65 |attern, |then the|
|000061b0| 72 65 20 77 69 6c 6c 20 | 62 65 20 6f 6e 65 20 6c |re will |be one l|
|000061c0| 69 6e 65 0a 58 6f 66 20 | 6f 75 74 70 75 74 20 70 |ine.Xof |output p|
|000061d0| 65 72 20 6e 61 6d 65 2e | 20 20 54 68 65 20 6d 6e |er name.| The mn|
|000061e0| 65 6d 6f 6e 69 63 20 73 | 69 67 6e 69 66 69 63 61 |emonic s|ignifica|
|000061f0| 6e 63 65 20 6f 66 20 74 | 68 65 20 6e 61 6d 65 20 |nce of t|he name |
|00006200| 69 73 0a 58 5c 66 49 5c | 7c 6c 28 6f 6f 6b 75 70 |is.X\fI\||l(ookup|
|00006210| 29 20 69 64 5c 66 50 2e | 0a 58 2e 50 50 0a 58 2e |) id\fP.|.X.PP.X.|
|00006220| 49 20 47 69 64 0a 58 64 | 6f 65 73 20 61 20 6c 6f |I Gid.Xd|oes a lo|
|00006230| 6f 6b 75 70 20 61 6e 64 | 20 74 68 65 6e 20 73 65 |okup and| then se|
|00006240| 61 72 63 68 65 73 20 66 | 6f 72 20 74 68 65 20 6e |arches f|or the n|
|00006250| 61 6d 65 73 20 69 74 20 | 6d 61 74 63 68 65 73 20 |ames it |matches |
|00006260| 69 6e 20 74 68 65 0a 58 | 66 69 6c 65 73 20 77 68 |in the.X|files wh|
|00006270| 65 72 65 20 74 68 65 79 | 20 6f 63 63 75 72 2e 20 |ere they| occur. |
|00006280| 20 54 68 65 20 6d 6e 65 | 6d 6f 6e 69 63 20 66 6f | The mne|monic fo|
|00006290| 72 20 74 68 69 73 20 6e | 61 6d 65 20 69 73 0a 58 |r this n|ame is.X|
|000062a0| 5c 66 49 5c 7c 67 28 72 | 65 70 29 69 64 5c 66 50 |\fI\|g(r|ep)id\fP|
|000062b0| 2e 20 0a 58 2e 50 50 0a | 58 2e 49 20 45 69 64 0a |. .X.PP.|X.I Eid.|
|000062c0| 58 64 6f 65 73 20 61 20 | 6c 6f 6f 6b 75 70 2c 20 |Xdoes a |lookup, |
|000062d0| 61 6e 64 20 74 68 65 6e | 20 69 6e 76 6f 6b 65 73 |and then| invokes|
|000062e0| 20 61 6e 20 65 64 69 74 | 6f 72 20 6f 6e 20 61 6c | an edit|or on al|
|000062f0| 6c 20 66 69 6c 65 73 20 | 77 69 74 68 0a 58 74 68 |l files |with.Xth|
|00006300| 65 20 6d 61 74 63 68 65 | 64 20 6e 61 6d 65 20 61 |e matche|d name a|
|00006310| 73 20 61 6e 20 69 6e 69 | 74 69 61 6c 20 73 65 61 |s an ini|tial sea|
|00006320| 72 63 68 20 73 74 72 69 | 6e 67 2e 20 20 4f 66 20 |rch stri|ng. Of |
|00006330| 63 6f 75 72 73 65 2c 20 | 74 68 69 73 0a 58 6e 61 |course, |this.Xna|
|00006340| 6d 65 20 73 74 61 6e 64 | 73 20 66 6f 72 0a 58 5c |me stand|s for.X\|
|00006350| 66 49 5c 7c 65 28 64 69 | 74 29 20 69 64 5c 66 50 |fI\|e(di|t) id\fP|
|00006360| 2e 0a 58 2e 50 50 0a 58 | 2e 49 20 45 69 64 0a 58 |..X.PP.X|.I Eid.X|
|00006370| 75 73 65 73 20 66 6f 75 | 72 20 65 6e 76 69 72 6f |uses fou|r enviro|
|00006380| 6e 6d 65 6e 74 20 76 61 | 72 69 61 62 6c 65 73 20 |nment va|riables |
|00006390| 74 6f 20 63 6f 6e 74 72 | 6f 6c 20 69 74 73 20 69 |to contr|ol its i|
|000063a0| 6e 76 6f 63 61 74 69 6f | 6e 20 6f 66 20 74 68 65 |nvocatio|n of the|
|000063b0| 0a 58 65 64 69 74 6f 72 | 2e 0a 58 4e 61 74 75 72 |.Xeditor|..XNatur|
|000063c0| 61 6c 6c 79 2c 0a 58 2e | 42 20 45 44 49 54 4f 52 |ally,.X.|B EDITOR|
|000063d0| 0a 58 69 73 20 75 73 65 | 64 20 74 6f 20 6c 6f 63 |.Xis use|d to loc|
|000063e0| 61 74 65 20 74 68 65 20 | 65 64 69 74 69 6e 67 20 |ate the |editing |
|000063f0| 70 72 6f 67 72 61 6d 2e | 0a 58 2e 42 20 45 49 44 |program.|.X.B EID|
+--------+-------------------------+-------------------------+--------+--------+
Only 25.0 KB of data is shown above.