home *** CD-ROM | disk | FTP | other *** search
view JSON data
|
view as text
|
open on a Mac
|
open on a PC
This file was processed as: SHell self-extracting ARchive
(archive/shar).
You can browse this item here: part01
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, ASCII text
| default
| |
100%
| dexmagic
| PrintFox/Pagefox WEAK
| 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/news
| default
|
|
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 50 61 74 68 3a 20 75 75 | 6e 65 74 21 77 79 73 65 |Path: uu|net!wyse|
|00000010| 21 6d 69 6b 65 77 0a 46 | 72 6f 6d 3a 20 6d 69 6b |!mikew.F|rom: mik|
|00000020| 65 77 40 77 79 73 65 2e | 77 79 73 65 2e 63 6f 6d |ew@wyse.|wyse.com|
|00000030| 20 28 4d 69 6b 65 20 57 | 65 78 6c 65 72 29 0a 4e | (Mike W|exler).N|
|00000040| 65 77 73 67 72 6f 75 70 | 73 3a 20 63 6f 6d 70 2e |ewsgroup|s: comp.|
|00000050| 73 6f 75 72 63 65 73 2e | 78 0a 53 75 62 6a 65 63 |sources.|x.Subjec|
|00000060| 74 3a 20 76 30 33 69 30 | 35 33 3a 20 20 78 20 69 |t: v03i0|53: x i|
|00000070| 6e 74 65 72 66 61 63 65 | 20 74 6f 20 64 62 78 2c |nterface| to dbx,|
|00000080| 20 50 61 72 74 30 31 2f | 30 33 0a 4d 65 73 73 61 | Part01/|03.Messa|
|00000090| 67 65 2d 49 44 3a 20 3c | 32 31 34 34 40 77 79 73 |ge-ID: <|2144@wys|
|000000a0| 65 2e 77 79 73 65 2e 63 | 6f 6d 3e 0a 44 61 74 65 |e.wyse.c|om>.Date|
|000000b0| 3a 20 31 34 20 4d 61 72 | 20 38 39 20 32 32 3a 30 |: 14 Mar| 89 22:0|
|000000c0| 30 3a 35 32 20 47 4d 54 | 0a 4f 72 67 61 6e 69 7a |0:52 GMT|.Organiz|
|000000d0| 61 74 69 6f 6e 3a 20 57 | 79 73 65 20 54 65 63 68 |ation: W|yse Tech|
|000000e0| 6e 6f 6c 6f 67 79 2c 20 | 53 61 6e 20 4a 6f 73 65 |nology, |San Jose|
|000000f0| 0a 4c 69 6e 65 73 3a 20 | 32 32 31 31 0a 41 70 70 |.Lines: |2211.App|
|00000100| 72 6f 76 65 64 3a 20 6d | 69 6b 65 77 40 77 79 73 |roved: m|ikew@wys|
|00000110| 65 2e 63 6f 6d 0a 0a 53 | 75 62 6d 69 74 74 65 64 |e.com..S|ubmitted|
|00000120| 2d 62 79 3a 20 70 6f 40 | 76 6f 6c 74 61 2e 65 63 |-by: po@|volta.ec|
|00000130| 65 2e 75 74 65 78 61 73 | 2e 65 64 75 20 28 50 6f |e.utexas|.edu (Po|
|00000140| 20 4c 69 6e 67 20 43 68 | 65 75 6e 67 29 0a 50 6f | Ling Ch|eung).Po|
|00000150| 73 74 69 6e 67 2d 6e 75 | 6d 62 65 72 3a 20 56 6f |sting-nu|mber: Vo|
|00000160| 6c 75 6d 65 20 33 2c 20 | 49 73 73 75 65 20 35 33 |lume 3, |Issue 53|
|00000170| 0a 41 72 63 68 69 76 65 | 2d 6e 61 6d 65 3a 20 78 |.Archive|-name: x|
|00000180| 64 62 78 2f 70 61 72 74 | 30 31 0a 0a 5b 49 20 6d |dbx/part|01..[I m|
|00000190| 6f 64 69 66 69 65 64 20 | 6d 6f 73 74 20 6f 66 20 |odified |most of |
|000001a0| 74 68 65 20 66 69 6c 65 | 73 20 69 6e 20 68 65 72 |the file|s in her|
|000001b0| 65 20 74 6f 20 67 65 74 | 20 74 68 65 20 6c 69 6e |e to get| the lin|
|000001c0| 65 20 6c 65 6e 67 74 68 | 73 20 62 65 6c 6f 77 20 |e length|s below |
|000001d0| 38 30 0a 63 6f 6c 75 6d | 6e 73 2c 20 61 6e 64 20 |80.colum|ns, and |
|000001e0| 61 20 66 65 77 20 6f 74 | 68 65 72 20 63 68 61 6e |a few ot|her chan|
|000001f0| 67 65 73 2e 20 20 2d 6d | 63 77 5d 0a 23 21 20 2f |ges. -m|cw].#! /|
|00000200| 62 69 6e 2f 73 68 0a 23 | 20 54 68 69 73 20 69 73 |bin/sh.#| This is|
|00000210| 20 61 20 73 68 65 6c 6c | 20 61 72 63 68 69 76 65 | a shell| archive|
|00000220| 2e 20 20 52 65 6d 6f 76 | 65 20 61 6e 79 74 68 69 |. Remov|e anythi|
|00000230| 6e 67 20 62 65 66 6f 72 | 65 20 74 68 69 73 20 6c |ng befor|e this l|
|00000240| 69 6e 65 2c 20 74 68 65 | 6e 20 75 6e 70 61 63 6b |ine, the|n unpack|
|00000250| 0a 23 20 69 74 20 62 79 | 20 73 61 76 69 6e 67 20 |.# it by| saving |
|00000260| 69 74 20 69 6e 74 6f 20 | 61 20 66 69 6c 65 20 61 |it into |a file a|
|00000270| 6e 64 20 74 79 70 69 6e | 67 20 22 73 68 20 66 69 |nd typin|g "sh fi|
|00000280| 6c 65 22 2e 20 20 54 6f | 20 6f 76 65 72 77 72 69 |le". To| overwri|
|00000290| 74 65 20 65 78 69 73 74 | 69 6e 67 0a 23 20 66 69 |te exist|ing.# fi|
|000002a0| 6c 65 73 2c 20 74 79 70 | 65 20 22 73 68 20 66 69 |les, typ|e "sh fi|
|000002b0| 6c 65 20 2d 63 22 2e 20 | 20 59 6f 75 20 63 61 6e |le -c". | You can|
|000002c0| 20 61 6c 73 6f 20 66 65 | 65 64 20 74 68 69 73 20 | also fe|ed this |
|000002d0| 61 73 20 73 74 61 6e 64 | 61 72 64 20 69 6e 70 75 |as stand|ard inpu|
|000002e0| 74 20 76 69 61 0a 23 20 | 75 6e 73 68 61 72 2c 20 |t via.# |unshar, |
|000002f0| 6f 72 20 62 79 20 74 79 | 70 69 6e 67 20 22 73 68 |or by ty|ping "sh|
|00000300| 20 3c 66 69 6c 65 22 2c | 20 65 2e 67 2e 2e 20 20 | <file",| e.g.. |
|00000310| 49 66 20 74 68 69 73 20 | 61 72 63 68 69 76 65 20 |If this |archive |
|00000320| 69 73 20 63 6f 6d 70 6c | 65 74 65 2c 20 79 6f 75 |is compl|ete, you|
|00000330| 0a 23 20 77 69 6c 6c 20 | 73 65 65 20 74 68 65 20 |.# will |see the |
|00000340| 66 6f 6c 6c 6f 77 69 6e | 67 20 6d 65 73 73 61 67 |followin|g messag|
|00000350| 65 20 61 74 20 74 68 65 | 20 65 6e 64 3a 0a 23 09 |e at the| end:.#.|
|00000360| 09 22 45 6e 64 20 6f 66 | 20 61 72 63 68 69 76 65 |."End of| archive|
|00000370| 20 31 20 28 6f 66 20 33 | 29 2e 22 0a 23 20 43 6f | 1 (of 3|).".# Co|
|00000380| 6e 74 65 6e 74 73 3a 20 | 20 52 45 41 44 4d 45 20 |ntents: | README |
|00000390| 58 44 62 78 2e 61 64 20 | 63 6f 6d 6d 61 6e 64 2e |XDbx.ad |command.|
|000003a0| 63 20 72 65 67 65 78 2e | 63 0a 23 20 57 72 61 70 |c regex.|c.# Wrap|
|000003b0| 70 65 64 20 62 79 20 6d | 69 6b 65 77 40 77 79 73 |ped by m|ikew@wys|
|000003c0| 65 20 6f 6e 20 54 75 65 | 20 4d 61 72 20 31 34 20 |e on Tue| Mar 14 |
|000003d0| 31 33 3a 35 38 3a 35 39 | 20 31 39 38 39 0a 50 41 |13:58:59| 1989.PA|
|000003e0| 54 48 3d 2f 62 69 6e 3a | 2f 75 73 72 2f 62 69 6e |TH=/bin:|/usr/bin|
|000003f0| 3a 2f 75 73 72 2f 75 63 | 62 20 3b 20 65 78 70 6f |:/usr/uc|b ; expo|
|00000400| 72 74 20 50 41 54 48 0a | 69 66 20 74 65 73 74 20 |rt PATH.|if test |
|00000410| 2d 66 20 27 52 45 41 44 | 4d 45 27 20 2d 61 20 22 |-f 'READ|ME' -a "|
|00000420| 24 7b 31 7d 22 20 21 3d | 20 22 2d 63 22 20 3b 20 |${1}" !=| "-c" ; |
|00000430| 74 68 65 6e 20 0a 20 20 | 65 63 68 6f 20 73 68 61 |then . |echo sha|
|00000440| 72 3a 20 57 69 6c 6c 20 | 6e 6f 74 20 63 6c 6f 62 |r: Will |not clob|
|00000450| 62 65 72 20 65 78 69 73 | 74 69 6e 67 20 66 69 6c |ber exis|ting fil|
|00000460| 65 20 5c 22 27 52 45 41 | 44 4d 45 27 5c 22 0a 65 |e \"'REA|DME'\".e|
|00000470| 6c 73 65 0a 65 63 68 6f | 20 73 68 61 72 3a 20 45 |lse.echo| shar: E|
|00000480| 78 74 72 61 63 74 69 6e | 67 20 5c 22 27 52 45 41 |xtractin|g \"'REA|
|00000490| 44 4d 45 27 5c 22 20 5c | 28 32 39 39 38 20 63 68 |DME'\" \|(2998 ch|
|000004a0| 61 72 61 63 74 65 72 73 | 5c 29 0a 73 65 64 20 22 |aracters|\).sed "|
|000004b0| 73 2f 5e 58 2f 2f 22 20 | 3e 27 52 45 41 44 4d 45 |s/^X//" |>'README|
|000004c0| 27 20 3c 3c 27 45 4e 44 | 5f 4f 46 5f 46 49 4c 45 |' <<'END|_OF_FILE|
|000004d0| 27 0a 58 31 2e 20 49 6e | 74 72 6f 64 75 63 74 69 |'.X1. In|troducti|
|000004e0| 6f 6e 0a 58 0a 58 20 20 | 20 20 58 64 62 78 20 69 |on.X.X | Xdbx i|
|000004f0| 6d 70 6c 65 6d 65 6e 74 | 73 20 61 6e 20 58 20 57 |mplement|s an X W|
|00000500| 69 6e 64 6f 77 20 69 6e | 74 65 72 66 61 63 65 20 |indow in|terface |
|00000510| 74 6f 20 74 68 65 20 64 | 62 78 20 64 65 62 75 67 |to the d|bx debug|
|00000520| 67 65 72 2e 20 20 49 74 | 20 69 73 20 77 72 69 74 |ger. It| is writ|
|00000530| 74 65 6e 20 0a 58 20 20 | 20 20 75 73 69 6e 67 20 |ten .X | using |
|00000540| 58 31 31 52 33 20 54 6f | 6f 6c 6b 69 74 20 49 6e |X11R3 To|olkit In|
|00000550| 74 72 69 6e 73 69 63 73 | 20 61 6e 64 20 41 74 68 |trinsics| and Ath|
|00000560| 65 6e 61 20 77 69 64 67 | 65 74 73 2e 20 20 0a 58 |ena widg|ets. .X|
|00000570| 0a 58 20 20 20 20 58 64 | 62 78 20 70 72 6f 76 69 |.X Xd|bx provi|
|00000580| 64 65 73 20 62 75 74 74 | 6f 6e 73 20 61 6e 64 20 |des butt|ons and |
|00000590| 61 63 74 69 6f 6e 20 68 | 61 6e 64 6c 65 72 73 20 |action h|andlers |
|000005a0| 66 6f 72 20 61 20 73 75 | 62 73 65 74 20 6f 66 20 |for a su|bset of |
|000005b0| 64 62 78 20 63 6f 6d 6d | 61 6e 64 73 3a 0a 58 09 |dbx comm|ands:.X.|
|000005c0| 20 72 75 6e 2c 20 63 6f | 6e 74 2c 20 6e 65 78 74 | run, co|nt, next|
|000005d0| 2c 20 73 74 65 70 2c 20 | 73 74 6f 70 20 61 74 2c |, step, |stop at,|
|000005e0| 20 73 74 6f 70 20 69 6e | 2c 20 64 65 6c 65 74 65 | stop in|, delete|
|000005f0| 2c 0a 58 09 20 75 70 2c | 20 64 6f 77 6e 2c 20 70 |,.X. up,| down, p|
|00000600| 72 69 6e 74 2c 20 70 72 | 69 6e 74 20 2a 2c 20 66 |rint, pr|int *, f|
|00000610| 75 6e 63 2c 20 66 69 6c | 65 2c 20 71 75 69 74 0a |unc, fil|e, quit.|
|00000620| 58 0a 58 20 20 20 20 58 | 64 62 78 20 75 73 65 73 |X.X X|dbx uses|
|00000630| 20 74 68 65 20 72 65 67 | 75 6c 61 72 20 65 78 70 | the reg|ular exp|
|00000640| 72 65 73 73 69 6f 6e 20 | 72 6f 75 74 69 6e 65 73 |ression |routines|
|00000650| 20 70 72 6f 76 69 64 65 | 64 20 69 6e 20 47 4e 55 | provide|d in GNU|
|00000660| 20 45 6d 61 63 73 20 0a | 58 20 20 20 20 64 69 73 | Emacs .|X dis|
|00000670| 74 72 69 62 75 74 69 6f | 6e 2e 20 20 54 68 65 20 |tributio|n. The |
|00000680| 66 69 6c 65 73 20 72 65 | 67 65 78 2e 63 20 61 6e |files re|gex.c an|
|00000690| 64 20 72 65 67 65 78 2e | 68 20 61 72 65 20 69 6e |d regex.|h are in|
|000006a0| 63 6c 75 64 65 64 20 69 | 6e 20 74 68 69 73 0a 58 |cluded i|n this.X|
|000006b0| 20 20 20 20 64 69 73 74 | 72 69 62 75 74 69 6f 6e | dist|ribution|
|000006c0| 2e 20 20 52 65 67 65 78 | 2e 63 20 69 73 20 73 6c |. Regex|.c is sl|
|000006d0| 69 67 68 74 6c 79 20 6d | 6f 64 69 66 69 65 64 20 |ightly m|odified |
|000006e0| 74 6f 20 69 6e 63 6c 75 | 64 65 20 3c 61 6c 6c 6f |to inclu|de <allo|
|000006f0| 63 61 2e 68 3e 0a 58 20 | 20 20 20 74 6f 20 63 6f |ca.h>.X | to co|
|00000700| 6d 70 69 6c 65 20 75 6e | 64 65 72 20 53 75 6e 4f |mpile un|der SunO|
|00000710| 53 20 34 2e 30 2e 0a 58 | 0a 58 32 2e 20 49 6e 73 |S 4.0..X|.X2. Ins|
|00000720| 74 61 6c 6c 61 74 69 6f | 6e 0a 58 0a 58 20 20 20 |tallatio|n.X.X |
|00000730| 20 58 64 62 78 20 73 75 | 70 70 6f 72 74 73 20 62 | Xdbx su|pports b|
|00000740| 6f 74 68 20 42 65 72 6b | 65 6c 65 79 20 64 62 78 |oth Berk|eley dbx|
|00000750| 20 61 6e 64 20 53 75 6e | 20 64 62 78 2e 20 20 53 | and Sun| dbx. S|
|00000760| 75 6e 20 64 62 78 2c 20 | 61 76 61 69 6c 61 62 6c |un dbx, |availabl|
|00000770| 65 20 6f 6e 0a 58 20 20 | 20 20 74 68 65 20 53 75 |e on.X | the Su|
|00000780| 6e 20 77 6f 72 6b 73 74 | 61 74 69 6f 6e 73 2c 20 |n workst|ations, |
|00000790| 69 73 20 61 6e 20 65 6e | 68 61 6e 63 65 64 20 61 |is an en|hanced a|
|000007a0| 6e 64 20 65 78 74 65 6e | 64 65 64 20 76 65 72 73 |nd exten|ded vers|
|000007b0| 69 6f 6e 20 6f 66 20 42 | 65 72 6b 65 6c 65 79 20 |ion of B|erkeley |
|000007c0| 64 62 78 2e 0a 58 20 20 | 20 20 49 66 20 79 6f 75 |dbx..X | If you|
|000007d0| 20 72 75 6e 20 53 75 6e | 20 64 62 78 20 77 69 74 | run Sun| dbx wit|
|000007e0| 68 20 6e 6f 20 61 72 67 | 75 6d 65 6e 74 73 2c 20 |h no arg|uments, |
|000007f0| 79 6f 75 20 67 65 74 20 | 61 20 64 62 78 20 70 72 |you get |a dbx pr|
|00000800| 6f 6d 70 74 3a 0a 58 20 | 20 20 20 20 20 28 64 62 |ompt:.X | (db|
|00000810| 78 29 0a 58 20 20 20 20 | 49 66 20 79 6f 75 20 72 |x).X |If you r|
|00000820| 75 6e 20 42 65 72 6b 65 | 6c 65 79 20 64 62 78 20 |un Berke|ley dbx |
|00000830| 77 69 74 68 20 6e 6f 20 | 61 72 67 75 6d 65 6e 74 |with no |argument|
|00000840| 73 2c 20 79 6f 75 20 77 | 6f 75 6c 64 20 67 65 74 |s, you w|ould get|
|00000850| 20 73 6f 6d 65 74 68 69 | 6e 67 20 6c 69 6b 65 3a | somethi|ng like:|
|00000860| 0a 58 20 20 20 20 20 20 | 64 62 78 20 76 65 72 73 |.X |dbx vers|
|00000870| 69 6f 6e 20 32 2e 30 20 | 6f 66 20 31 31 2f 31 37 |ion 2.0 |of 11/17|
|00000880| 2f 38 37 20 32 31 3a 32 | 33 0a 58 20 20 20 20 20 |/87 21:2|3.X |
|00000890| 20 54 79 70 65 20 27 68 | 65 6c 70 27 20 66 6f 72 | Type 'h|elp' for|
|000008a0| 20 68 65 6c 70 2e 0a 58 | 20 20 20 20 20 20 65 6e | help..X| en|
|000008b0| 74 65 72 20 6f 62 6a 65 | 63 74 20 66 69 6c 65 20 |ter obje|ct file |
|000008c0| 6e 61 6d 65 20 28 64 65 | 66 61 75 6c 74 20 69 73 |name (de|fault is|
|000008d0| 20 60 61 2e 6f 75 74 27 | 29 3a 0a 58 0a 58 20 20 | `a.out'|):.X.X |
|000008e0| 20 20 49 66 20 79 6f 75 | 20 61 72 65 20 75 73 69 | If you| are usi|
|000008f0| 6e 67 20 42 65 72 6b 65 | 6c 65 79 20 64 62 78 2c |ng Berke|ley dbx,|
|00000900| 20 79 6f 75 20 70 72 6f | 62 61 62 6c 79 20 68 61 | you pro|bably ha|
|00000910| 76 65 20 74 6f 20 65 64 | 69 74 20 74 68 65 20 49 |ve to ed|it the I|
|00000920| 6d 61 6b 65 66 69 6c 65 | 20 74 6f 0a 58 20 20 20 |makefile| to.X |
|00000930| 20 69 6e 63 6c 75 64 65 | 20 74 68 65 20 2d 44 42 | include| the -DB|
|00000940| 53 44 20 66 6c 61 67 2e | 20 20 0a 58 20 20 20 20 |SD flag.| .X |
|00000950| 47 65 6e 65 72 61 74 65 | 20 79 6f 75 72 20 6f 77 |Generate| your ow|
|00000960| 6e 20 4d 61 6b 65 66 69 | 6c 65 20 66 72 6f 6d 20 |n Makefi|le from |
|00000970| 49 6d 61 6b 65 66 69 6c | 65 20 75 73 69 6e 67 20 |Imakefil|e using |
|00000980| 69 6d 61 6b 65 20 61 6e | 64 20 6d 61 6b 65 64 65 |imake an|d makede|
|00000990| 70 65 6e 64 2e 0a 58 0a | 58 20 20 20 20 58 64 62 |pend..X.|X Xdb|
|000009a0| 78 20 68 61 73 20 62 65 | 65 6e 20 74 65 73 74 65 |x has be|en teste|
|000009b0| 64 20 6f 6e 20 53 75 6e | 20 33 20 72 75 6e 6e 69 |d on Sun| 3 runni|
|000009c0| 6e 67 20 53 75 6e 20 34 | 2e 32 42 53 44 20 55 6e |ng Sun 4|.2BSD Un|
|000009d0| 69 78 20 52 65 6c 65 61 | 73 65 20 33 2e 34 2c 20 |ix Relea|se 3.4, |
|000009e0| 0a 58 20 20 20 20 61 6e | 64 20 56 41 58 73 74 61 |.X an|d VAXsta|
|000009f0| 74 69 6f 6e 20 49 49 2f | 47 50 58 20 72 75 6e 6e |tion II/|GPX runn|
|00000a00| 69 6e 67 20 55 6c 74 72 | 69 78 20 32 2e 32 2c 20 |ing Ultr|ix 2.2, |
|00000a10| 62 6f 74 68 20 75 6e 64 | 65 72 20 75 77 6d 2e 0a |both und|er uwm..|
|00000a20| 58 0a 58 33 2e 20 42 75 | 67 73 0a 58 0a 58 20 20 |X.X3. Bu|gs.X.X |
|00000a30| 20 2a 20 58 64 62 78 20 | 64 6f 65 73 20 6e 6f 74 | * Xdbx |does not|
|00000a40| 20 77 6f 72 6b 20 70 72 | 6f 70 65 72 6c 79 20 75 | work pr|operly u|
|00000a50| 6e 64 65 72 20 53 75 6e | 4f 53 20 34 2e 30 20 62 |nder Sun|OS 4.0 b|
|00000a60| 65 63 61 75 73 65 20 6f | 66 20 61 20 70 72 6f 62 |ecause o|f a prob|
|00000a70| 6c 65 6d 20 69 6e 20 0a | 58 20 20 20 20 20 64 69 |lem in .|X di|
|00000a80| 73 61 62 6c 69 6e 67 20 | 74 68 65 20 70 61 63 6b |sabling |the pack|
|00000a90| 65 74 20 6d 6f 64 65 20 | 28 54 49 4f 43 50 4b 54 |et mode |(TIOCPKT|
|00000aa0| 29 20 6f 66 20 74 68 65 | 20 70 73 65 75 64 6f 2d |) of the| pseudo-|
|00000ab0| 74 65 72 6d 69 6e 61 6c | 2e 20 20 49 66 20 74 68 |terminal|. If th|
|00000ac0| 65 0a 58 20 20 20 20 20 | 70 61 63 6b 65 74 20 6d |e.X |packet m|
|00000ad0| 6f 64 65 20 69 73 20 6e | 6f 74 20 64 69 73 61 62 |ode is n|ot disab|
|00000ae0| 6c 65 64 2c 20 65 61 63 | 68 20 72 65 61 64 20 66 |led, eac|h read f|
|00000af0| 72 6f 6d 20 74 68 65 20 | 6d 61 73 74 65 72 20 77 |rom the |master w|
|00000b00| 69 6c 6c 20 72 65 74 75 | 72 6e 20 0a 58 20 20 20 |ill retu|rn .X |
|00000b10| 20 20 64 61 74 61 20 77 | 72 69 74 74 65 6e 20 70 | data w|ritten p|
|00000b20| 72 65 76 69 6f 75 73 6c | 79 20 74 6f 20 74 68 65 |reviousl|y to the|
|00000b30| 20 73 6c 61 76 65 20 28 | 64 62 78 20 63 6f 6d 6d | slave (|dbx comm|
|00000b40| 61 6e 64 73 20 65 6e 74 | 65 72 65 64 20 77 6f 75 |ands ent|ered wou|
|00000b50| 6c 64 20 0a 58 20 20 20 | 20 20 72 65 61 70 70 65 |ld .X | reappe|
|00000b60| 61 72 29 2c 20 61 6e 64 | 20 65 61 63 68 20 6e 65 |ar), and| each ne|
|00000b70| 77 6c 69 6e 65 20 63 68 | 61 72 61 63 74 65 72 20 |wline ch|aracter |
|00000b80| 69 73 20 69 6e 63 6f 72 | 72 65 63 74 6c 79 20 6d |is incor|rectly m|
|00000b90| 61 70 70 65 64 20 74 6f | 20 61 20 0a 58 20 20 20 |apped to| a .X |
|00000ba0| 20 20 63 61 72 72 69 61 | 67 65 20 72 65 74 75 72 | carria|ge retur|
|00000bb0| 6e 20 61 6e 64 20 61 20 | 6e 65 77 6c 69 6e 65 20 |n and a |newline |
|00000bc0| 64 75 72 69 6e 67 20 74 | 65 78 74 20 64 69 73 70 |during t|ext disp|
|00000bd0| 6c 61 79 2e 0a 58 20 20 | 20 2a 20 54 68 65 20 61 |lay..X | * The a|
|00000be0| 62 6f 76 65 20 70 72 6f | 62 6c 65 6d 20 73 6f 6d |bove pro|blem som|
|00000bf0| 65 74 69 6d 65 73 20 61 | 70 70 65 61 72 20 6f 6e |etimes a|ppear on|
|00000c00| 20 53 75 6e 20 33 20 75 | 6e 64 65 72 20 72 65 6c | Sun 3 u|nder rel|
|00000c10| 65 61 73 65 20 33 2e 34 | 2e 20 20 49 66 20 79 6f |ease 3.4|. If yo|
|00000c20| 75 20 0a 58 20 20 20 20 | 20 73 65 65 20 5e 4d 20 |u .X | see ^M |
|00000c30| 61 74 20 74 68 65 20 65 | 6e 64 20 6f 66 20 65 61 |at the e|nd of ea|
|00000c40| 63 68 20 6c 69 6e 65 20 | 69 6e 20 74 68 65 20 64 |ch line |in the d|
|00000c50| 69 61 6c 6f 67 20 77 69 | 6e 64 6f 77 2c 20 71 75 |ialog wi|ndow, qu|
|00000c60| 69 74 20 78 64 62 78 2c | 20 74 72 79 20 0a 58 20 |it xdbx,| try .X |
|00000c70| 20 20 20 20 61 67 61 69 | 6e 20 62 79 20 65 69 74 | agai|n by eit|
|00000c80| 68 65 72 20 6c 6f 67 67 | 69 6e 67 20 6f 75 74 20 |her logg|ing out |
|00000c90| 61 6e 64 20 69 6e 20 28 | 68 6f 70 65 66 75 6c 6c |and in (|hopefull|
|00000ca0| 79 20 74 68 69 73 20 77 | 69 6c 6c 20 72 65 73 65 |y this w|ill rese|
|00000cb0| 74 20 74 68 65 20 70 74 | 79 29 2c 0a 58 20 20 20 |t the pt|y),.X |
|00000cc0| 20 20 6f 72 20 62 79 20 | 64 6f 69 6e 67 20 61 6e | or by |doing an|
|00000cd0| 20 72 6c 6f 67 69 6e 20 | 74 6f 20 74 72 79 20 61 | rlogin |to try a|
|00000ce0| 6e 6f 74 68 65 72 20 70 | 74 79 2e 0a 58 20 20 20 |nother p|ty..X |
|00000cf0| 2a 20 54 79 70 69 6e 67 | 20 63 6f 6e 74 72 6f 6c |* Typing| control|
|00000d00| 2d 43 20 69 6e 20 74 68 | 65 20 64 69 61 6c 6f 67 |-C in th|e dialog|
|00000d10| 20 77 69 6e 64 6f 77 20 | 66 61 69 6c 73 20 74 6f | window |fails to|
|00000d20| 20 69 6e 74 65 72 72 75 | 70 74 20 64 62 78 2e 0a | interru|pt dbx..|
|00000d30| 58 20 20 20 2a 20 54 68 | 65 20 66 69 6c 65 20 63 |X * Th|e file c|
|00000d40| 6f 6d 6d 61 6e 64 20 62 | 75 74 74 6f 6e 20 64 6f |ommand b|utton do|
|00000d50| 65 73 20 6e 6f 74 20 75 | 6e 68 69 67 68 6c 69 67 |es not u|nhighlig|
|00000d60| 68 74 20 69 74 73 65 6c | 66 2e 0a 58 20 20 20 2a |ht itsel|f..X *|
|00000d70| 20 53 74 75 66 66 69 6e | 67 20 74 65 78 74 20 74 | Stuffin|g text t|
|00000d80| 6f 20 61 20 77 69 6e 64 | 6f 77 20 6f 75 74 73 69 |o a wind|ow outsi|
|00000d90| 64 65 20 74 68 65 20 78 | 64 62 78 20 77 69 6e 64 |de the x|dbx wind|
|00000da0| 6f 77 20 77 69 6c 6c 20 | 73 6f 6d 65 74 69 6d 65 |ow will |sometime|
|00000db0| 73 20 67 69 76 65 3a 0a | 58 09 58 20 54 6f 6f 6c |s give:.|X.X Tool|
|00000dc0| 6b 69 74 20 45 72 72 6f | 72 3a 20 41 74 6f 6d 50 |kit Erro|r: AtomP|
|00000dd0| 74 72 20 77 61 73 20 6e | 6f 74 20 69 6e 69 74 69 |tr was n|ot initi|
|00000de0| 61 6c 69 7a 65 64 0a 58 | 0a 58 20 20 20 50 6c 65 |alized.X|.X Ple|
|00000df0| 61 73 65 20 73 65 6e 64 | 20 61 6e 79 20 63 6f 6d |ase send| any com|
|00000e00| 6d 65 6e 74 73 2c 20 62 | 75 67 20 72 65 70 6f 72 |ments, b|ug repor|
|00000e10| 74 73 2c 20 62 75 67 20 | 66 69 78 65 73 2c 20 65 |ts, bug |fixes, e|
|00000e20| 6e 68 61 6e 63 65 6d 65 | 6e 74 73 20 74 6f 3a 0a |nhanceme|nts to:.|
|00000e30| 58 0a 58 09 50 6f 20 43 | 68 65 75 6e 67 0a 58 09 |X.X.Po C|heung.X.|
|00000e40| 44 65 70 61 72 74 6d 65 | 6e 74 20 6f 66 20 45 6c |Departme|nt of El|
|00000e50| 65 63 74 72 69 63 61 6c | 20 61 6e 64 20 43 6f 6d |ectrical| and Com|
|00000e60| 70 75 74 65 72 20 45 6e | 67 69 6e 65 65 72 69 6e |puter En|gineerin|
|00000e70| 67 0a 58 09 55 6e 69 76 | 65 72 73 69 74 79 20 6f |g.X.Univ|ersity o|
|00000e80| 66 20 54 65 78 61 73 0a | 58 09 41 75 73 74 69 6e |f Texas.|X.Austin|
|00000e90| 2c 20 54 58 20 37 38 37 | 31 32 0a 58 09 70 6f 40 |, TX 787|12.X.po@|
|00000ea0| 76 6f 6c 74 61 2e 65 63 | 65 2e 75 74 65 78 61 73 |volta.ec|e.utexas|
|00000eb0| 2e 65 64 75 0a 58 0a 58 | 0a 58 34 2e 20 41 63 6b |.edu.X.X|.X4. Ack|
|00000ec0| 6e 6f 77 6c 65 64 67 65 | 6d 65 6e 74 73 0a 58 0a |nowledge|ments.X.|
|00000ed0| 58 20 20 20 20 49 20 77 | 6f 75 6c 64 20 6c 69 6b |X I w|ould lik|
|00000ee0| 65 20 74 6f 20 65 78 70 | 72 65 73 73 20 6d 79 20 |e to exp|ress my |
|00000ef0| 73 69 6e 63 65 72 65 20 | 74 68 61 6e 6b 73 20 74 |sincere |thanks t|
|00000f00| 6f 20 44 72 2e 20 4a 6f | 65 20 52 61 68 6d 65 68 |o Dr. Jo|e Rahmeh|
|00000f10| 20 66 6f 72 20 68 69 73 | 20 68 65 6c 70 0a 58 20 | for his| help.X |
|00000f20| 20 20 20 61 6e 64 20 67 | 75 69 64 61 6e 63 65 2c | and g|uidance,|
|00000f30| 20 77 69 74 68 6f 75 74 | 20 68 69 6d 20 74 68 69 | without| him thi|
|00000f40| 73 20 77 6f 75 6c 64 20 | 6e 6f 74 20 68 61 76 65 |s would |not have|
|00000f50| 20 62 65 65 6e 20 70 6f | 73 73 69 62 6c 65 2e 20 | been po|ssible. |
|00000f60| 20 48 69 73 20 69 64 65 | 61 0a 58 20 20 20 20 74 | His ide|a.X t|
|00000f70| 6f 20 75 73 65 20 47 4e | 55 20 72 65 67 75 6c 61 |o use GN|U regula|
|00000f80| 72 20 65 78 70 72 65 73 | 73 69 6f 6e 20 70 61 63 |r expres|sion pac|
|00000f90| 6b 61 67 65 20 6d 61 64 | 65 20 69 74 20 6d 75 63 |kage mad|e it muc|
|00000fa0| 68 20 65 61 73 69 65 72 | 20 66 6f 72 20 78 64 62 |h easier| for xdb|
|00000fb0| 78 20 74 6f 0a 58 20 20 | 20 20 73 75 70 70 6f 72 |x to.X | suppor|
|00000fc0| 74 20 62 6f 74 68 20 76 | 65 72 73 69 6f 6e 73 20 |t both v|ersions |
|00000fd0| 6f 66 20 64 62 78 2e 20 | 20 49 20 6d 75 73 74 20 |of dbx. | I must |
|00000fe0| 61 6c 73 6f 20 74 68 61 | 6e 6b 20 6d 79 20 62 72 |also tha|nk my br|
|00000ff0| 6f 74 68 65 72 2c 20 59 | 69 6e 20 43 68 65 75 6e |other, Y|in Cheun|
|00001000| 67 2c 0a 58 20 20 20 20 | 66 6f 72 20 68 69 73 20 |g,.X |for his |
|00001010| 73 75 70 70 6f 72 74 20 | 61 6e 64 20 65 6e 63 6f |support |and enco|
|00001020| 75 72 61 67 65 6d 65 6e | 74 20 74 68 72 6f 75 67 |uragemen|t throug|
|00001030| 68 6f 75 74 20 74 68 65 | 20 70 61 73 74 20 66 6f |hout the| past fo|
|00001040| 75 72 20 6d 6f 6e 74 68 | 73 2e 20 20 4d 61 6e 79 |ur month|s. Many|
|00001050| 20 0a 58 20 20 20 20 74 | 68 61 6e 6b 73 20 67 6f | .X t|hanks go|
|00001060| 20 74 6f 20 41 64 72 69 | 61 6e 20 4c 61 6f 2c 20 | to Adri|an Lao, |
|00001070| 4d 69 6b 65 20 53 63 68 | 6f 65 6e 66 65 6c 64 65 |Mike Sch|oenfelde|
|00001080| 72 2c 20 59 61 68 20 42 | 69 6e 20 53 69 6d 20 61 |r, Yah B|in Sim a|
|00001090| 6e 64 20 4e 61 73 72 20 | 55 6c 6c 61 68 20 0a 58 |nd Nasr |Ullah .X|
|000010a0| 20 20 20 20 66 6f 72 20 | 6d 61 6b 69 6e 67 20 74 | for |making t|
|000010b0| 68 69 73 20 72 65 6c 65 | 61 73 65 20 64 61 74 65 |his rele|ase date|
|000010c0| 20 70 6f 73 73 69 62 6c | 65 2e 0a 45 4e 44 5f 4f | possibl|e..END_O|
|000010d0| 46 5f 46 49 4c 45 0a 69 | 66 20 74 65 73 74 20 32 |F_FILE.i|f test 2|
|000010e0| 39 39 38 20 2d 6e 65 20 | 60 77 63 20 2d 63 20 3c |998 -ne |`wc -c <|
|000010f0| 27 52 45 41 44 4d 45 27 | 60 3b 20 74 68 65 6e 0a |'README'|`; then.|
|00001100| 20 20 20 20 65 63 68 6f | 20 73 68 61 72 3a 20 5c | echo| shar: \|
|00001110| 22 27 52 45 41 44 4d 45 | 27 5c 22 20 75 6e 70 61 |"'README|'\" unpa|
|00001120| 63 6b 65 64 20 77 69 74 | 68 20 77 72 6f 6e 67 20 |cked wit|h wrong |
|00001130| 73 69 7a 65 21 0a 66 69 | 0a 23 20 65 6e 64 20 6f |size!.fi|.# end o|
|00001140| 66 20 27 52 45 41 44 4d | 45 27 0a 66 69 0a 69 66 |f 'READM|E'.fi.if|
|00001150| 20 74 65 73 74 20 2d 66 | 20 27 58 44 62 78 2e 61 | test -f| 'XDbx.a|
|00001160| 64 27 20 2d 61 20 22 24 | 7b 31 7d 22 20 21 3d 20 |d' -a "$|{1}" != |
|00001170| 22 2d 63 22 20 3b 20 74 | 68 65 6e 20 0a 20 20 65 |"-c" ; t|hen . e|
|00001180| 63 68 6f 20 73 68 61 72 | 3a 20 57 69 6c 6c 20 6e |cho shar|: Will n|
|00001190| 6f 74 20 63 6c 6f 62 62 | 65 72 20 65 78 69 73 74 |ot clobb|er exist|
|000011a0| 69 6e 67 20 66 69 6c 65 | 20 5c 22 27 58 44 62 78 |ing file| \"'XDbx|
|000011b0| 2e 61 64 27 5c 22 0a 65 | 6c 73 65 0a 65 63 68 6f |.ad'\".e|lse.echo|
|000011c0| 20 73 68 61 72 3a 20 45 | 78 74 72 61 63 74 69 6e | shar: E|xtractin|
|000011d0| 67 20 5c 22 27 58 44 62 | 78 2e 61 64 27 5c 22 20 |g \"'XDb|x.ad'\" |
|000011e0| 5c 28 33 36 38 20 63 68 | 61 72 61 63 74 65 72 73 |\(368 ch|aracters|
|000011f0| 5c 29 0a 73 65 64 20 22 | 73 2f 5e 58 2f 2f 22 20 |\).sed "|s/^X//" |
|00001200| 3e 27 58 44 62 78 2e 61 | 64 27 20 3c 3c 27 45 4e |>'XDbx.a|d' <<'EN|
|00001210| 44 5f 4f 46 5f 46 49 4c | 45 27 0a 58 23 0a 58 23 |D_OF_FIL|E'.X#.X#|
|00001220| 20 78 64 62 78 0a 58 23 | 0a 58 58 44 62 78 2a 42 | xdbx.X#|.XXDbx*B|
|00001230| 61 63 6b 67 72 6f 75 6e | 64 3a 20 09 09 09 77 68 |ackgroun|d: ...wh|
|00001240| 69 74 65 0a 58 58 44 62 | 78 2a 46 6f 72 65 67 72 |ite.XXDb|x*Foregr|
|00001250| 6f 75 6e 64 3a 20 09 09 | 09 62 6c 61 63 6b 0a 58 |ound: ..|.black.X|
|00001260| 58 44 62 78 2a 42 6f 72 | 64 65 72 43 6f 6c 6f 72 |XDbx*Bor|derColor|
|00001270| 3a 20 09 09 09 73 74 65 | 65 6c 20 62 6c 75 65 0a |: ...ste|el blue.|
|00001280| 58 58 44 62 78 2a 46 6f | 6e 74 3a 20 09 09 09 09 |XXDbx*Fo|nt: ....|
|00001290| 36 78 31 33 0a 58 58 44 | 62 78 2a 42 6f 72 64 65 |6x13.XXD|bx*Borde|
|000012a0| 72 57 69 64 74 68 3a 20 | 09 09 09 31 0a 58 0a 58 |rWidth: |...1.X.X|
|000012b0| 58 44 62 78 2a 74 69 74 | 6c 65 42 61 72 2e 46 6f |XDbx*tit|leBar.Fo|
|000012c0| 72 65 67 72 6f 75 6e 64 | 3a 20 09 09 77 68 69 74 |reground|: ..whit|
|000012d0| 65 0a 58 58 44 62 78 2a | 74 69 74 6c 65 42 61 72 |e.XXDbx*|titleBar|
|000012e0| 2e 42 61 63 6b 67 72 6f | 75 6e 64 3a 20 09 09 73 |.Backgro|und: ..s|
|000012f0| 74 65 65 6c 20 62 6c 75 | 65 0a 58 58 44 62 78 2a |teel blu|e.XXDbx*|
|00001300| 6d 65 73 73 61 67 65 57 | 69 6e 64 6f 77 2e 46 6f |messageW|indow.Fo|
|00001310| 72 65 67 72 6f 75 6e 64 | 3a 20 09 09 6e 61 76 79 |reground|: ..navy|
|00001320| 20 62 6c 75 65 0a 58 58 | 44 62 78 2a 43 6f 6d 6d | blue.XX|Dbx*Comm|
|00001330| 61 6e 64 2e 46 6f 72 65 | 67 72 6f 75 6e 64 3a 09 |and.Fore|ground:.|
|00001340| 09 6e 61 76 79 20 62 6c | 75 65 0a 58 58 44 62 78 |.navy bl|ue.XXDbx|
|00001350| 2a 43 6f 6d 6d 61 6e 64 | 2e 42 6f 72 64 65 72 43 |*Command|.BorderC|
|00001360| 6f 6c 6f 72 3a 09 09 6e | 61 76 79 20 62 6c 75 65 |olor:..n|avy blue|
|00001370| 0a 58 58 44 62 78 2a 53 | 63 72 6f 6c 6c 62 61 72 |.XXDbx*S|crollbar|
|00001380| 2e 46 6f 72 65 67 72 6f | 75 6e 64 3a 20 09 09 73 |.Foregro|und: ..s|
|00001390| 74 65 65 6c 20 62 6c 75 | 65 0a 45 4e 44 5f 4f 46 |teel blu|e.END_OF|
|000013a0| 5f 46 49 4c 45 0a 69 66 | 20 74 65 73 74 20 33 36 |_FILE.if| test 36|
|000013b0| 38 20 2d 6e 65 20 60 77 | 63 20 2d 63 20 3c 27 58 |8 -ne `w|c -c <'X|
|000013c0| 44 62 78 2e 61 64 27 60 | 3b 20 74 68 65 6e 0a 20 |Dbx.ad'`|; then. |
|000013d0| 20 20 20 65 63 68 6f 20 | 73 68 61 72 3a 20 5c 22 | echo |shar: \"|
|000013e0| 27 58 44 62 78 2e 61 64 | 27 5c 22 20 75 6e 70 61 |'XDbx.ad|'\" unpa|
|000013f0| 63 6b 65 64 20 77 69 74 | 68 20 77 72 6f 6e 67 20 |cked wit|h wrong |
|00001400| 73 69 7a 65 21 0a 66 69 | 0a 23 20 65 6e 64 20 6f |size!.fi|.# end o|
|00001410| 66 20 27 58 44 62 78 2e | 61 64 27 0a 66 69 0a 69 |f 'XDbx.|ad'.fi.i|
|00001420| 66 20 74 65 73 74 20 2d | 66 20 27 63 6f 6d 6d 61 |f test -|f 'comma|
|00001430| 6e 64 2e 63 27 20 2d 61 | 20 22 24 7b 31 7d 22 20 |nd.c' -a| "${1}" |
|00001440| 21 3d 20 22 2d 63 22 20 | 3b 20 74 68 65 6e 20 0a |!= "-c" |; then .|
|00001450| 20 20 65 63 68 6f 20 73 | 68 61 72 3a 20 57 69 6c | echo s|har: Wil|
|00001460| 6c 20 6e 6f 74 20 63 6c | 6f 62 62 65 72 20 65 78 |l not cl|obber ex|
|00001470| 69 73 74 69 6e 67 20 66 | 69 6c 65 20 5c 22 27 63 |isting f|ile \"'c|
|00001480| 6f 6d 6d 61 6e 64 2e 63 | 27 5c 22 0a 65 6c 73 65 |ommand.c|'\".else|
|00001490| 0a 65 63 68 6f 20 73 68 | 61 72 3a 20 45 78 74 72 |.echo sh|ar: Extr|
|000014a0| 61 63 74 69 6e 67 20 5c | 22 27 63 6f 6d 6d 61 6e |acting \|"'comman|
|000014b0| 64 2e 63 27 5c 22 20 5c | 28 39 38 34 36 20 63 68 |d.c'\" \|(9846 ch|
|000014c0| 61 72 61 63 74 65 72 73 | 5c 29 0a 73 65 64 20 22 |aracters|\).sed "|
|000014d0| 73 2f 5e 58 2f 2f 22 20 | 3e 27 63 6f 6d 6d 61 6e |s/^X//" |>'comman|
|000014e0| 64 2e 63 27 20 3c 3c 27 | 45 4e 44 5f 4f 46 5f 46 |d.c' <<'|END_OF_F|
|000014f0| 49 4c 45 27 0a 58 2f 2a | 2a 2a 2a 2a 2a 2a 2a 2a |ILE'.X/*|********|
|00001500| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00001510| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00001520| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00001530| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00001540| 2a 2a 2a 2a 2a 20 0a 58 | 20 2a 0a 58 20 2a 20 20 |***** .X| *.X * |
|00001550| 78 64 62 78 20 2d 20 58 | 20 57 69 6e 64 6f 77 20 |xdbx - X| Window |
|00001560| 53 79 73 74 65 6d 20 69 | 6e 74 65 72 66 61 63 65 |System i|nterface|
|00001570| 20 74 6f 20 64 62 78 0a | 58 20 2a 0a 58 20 2a 20 | to dbx.|X *.X * |
|00001580| 20 43 6f 70 79 72 69 67 | 68 74 20 31 39 38 39 20 | Copyrig|ht 1989 |
|00001590| 54 68 65 20 55 6e 69 76 | 65 72 73 69 74 79 20 6f |The Univ|ersity o|
|000015a0| 66 20 54 65 78 61 73 20 | 61 74 20 41 75 73 74 69 |f Texas |at Austi|
|000015b0| 6e 0a 58 20 2a 0a 58 20 | 2a 20 20 41 75 74 68 6f |n.X *.X |* Autho|
|000015c0| 72 3a 09 50 6f 20 43 68 | 65 75 6e 67 0a 58 20 2a |r:.Po Ch|eung.X *|
|000015d0| 20 20 44 61 74 65 3a 09 | 4d 61 72 63 68 20 31 30 | Date:.|March 10|
|000015e0| 2c 20 31 39 38 39 0a 58 | 20 2a 0a 58 20 2a 20 20 |, 1989.X| *.X * |
|000015f0| 50 65 72 6d 69 73 73 69 | 6f 6e 20 74 6f 20 75 73 |Permissi|on to us|
|00001600| 65 2c 20 63 6f 70 79 2c | 20 6d 6f 64 69 66 79 2c |e, copy,| modify,|
|00001610| 20 61 6e 64 20 64 69 73 | 74 72 69 62 75 74 65 20 | and dis|tribute |
|00001620| 74 68 69 73 20 73 6f 66 | 74 77 61 72 65 20 61 6e |this sof|tware an|
|00001630| 64 0a 58 20 2a 20 20 69 | 74 73 20 64 6f 63 75 6d |d.X * i|ts docum|
|00001640| 65 6e 74 61 74 69 6f 6e | 20 66 6f 72 20 61 6e 79 |entation| for any|
|00001650| 20 70 75 72 70 6f 73 65 | 20 61 6e 64 20 77 69 74 | purpose| and wit|
|00001660| 68 6f 75 74 20 66 65 65 | 20 69 73 20 68 65 72 65 |hout fee| is here|
|00001670| 62 79 20 67 72 61 6e 74 | 65 64 2c 0a 58 20 2a 20 |by grant|ed,.X * |
|00001680| 20 70 72 6f 76 69 64 65 | 64 20 74 68 61 74 20 74 | provide|d that t|
|00001690| 68 65 20 61 62 6f 76 65 | 20 63 6f 70 79 72 69 67 |he above| copyrig|
|000016a0| 68 74 20 6e 6f 74 69 63 | 65 20 61 70 70 65 61 72 |ht notic|e appear|
|000016b0| 20 69 6e 20 61 6c 6c 20 | 63 6f 70 69 65 73 20 61 | in all |copies a|
|000016c0| 6e 64 20 74 68 61 74 0a | 58 20 2a 20 20 62 6f 74 |nd that.|X * bot|
|000016d0| 68 20 74 68 61 74 20 63 | 6f 70 79 72 69 67 68 74 |h that c|opyright|
|000016e0| 20 6e 6f 74 69 63 65 20 | 61 6e 64 20 74 68 69 73 | notice |and this|
|000016f0| 20 70 65 72 6d 69 73 73 | 69 6f 6e 20 6e 6f 74 69 | permiss|ion noti|
|00001700| 63 65 20 61 70 70 65 61 | 72 20 69 6e 0a 58 20 2a |ce appea|r in.X *|
|00001710| 20 20 73 75 70 70 6f 72 | 74 69 6e 67 20 64 6f 63 | suppor|ting doc|
|00001720| 75 6d 65 6e 74 61 74 69 | 6f 6e 2e 20 20 54 68 65 |umentati|on. The|
|00001730| 20 55 6e 69 76 65 72 73 | 69 74 79 20 6f 66 20 54 | Univers|ity of T|
|00001740| 65 78 61 73 20 61 74 20 | 41 75 73 74 69 6e 20 6d |exas at |Austin m|
|00001750| 61 6b 65 73 20 6e 6f 20 | 0a 58 20 2a 20 20 72 65 |akes no |.X * re|
|00001760| 70 72 65 73 65 6e 74 61 | 74 69 6f 6e 73 20 61 62 |presenta|tions ab|
|00001770| 6f 75 74 20 74 68 65 20 | 73 75 69 74 61 62 69 6c |out the |suitabil|
|00001780| 69 74 79 20 6f 66 20 74 | 68 69 73 20 73 6f 66 74 |ity of t|his soft|
|00001790| 77 61 72 65 20 66 6f 72 | 20 61 6e 79 20 70 75 72 |ware for| any pur|
|000017a0| 70 6f 73 65 2e 20 20 0a | 58 20 2a 20 20 49 74 20 |pose. .|X * It |
|000017b0| 69 73 20 70 72 6f 76 69 | 64 65 64 20 22 61 73 20 |is provi|ded "as |
|000017c0| 69 73 22 20 77 69 74 68 | 6f 75 74 20 65 78 70 72 |is" with|out expr|
|000017d0| 65 73 73 20 6f 72 20 69 | 6d 70 6c 69 65 64 20 77 |ess or i|mplied w|
|000017e0| 61 72 72 61 6e 74 79 2e | 0a 58 20 2a 0a 58 20 2a |arranty.|.X *.X *|
|000017f0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00001800| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00001810| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00001820| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00001830| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2f 0a 58 |********|*****/.X|
|00001840| 0a 58 0a 58 23 69 6e 63 | 6c 75 64 65 20 3c 73 69 |.X.X#inc|lude <si|
|00001850| 67 6e 61 6c 2e 68 3e 0a | 58 23 69 6e 63 6c 75 64 |gnal.h>.|X#includ|
|00001860| 65 20 3c 63 74 79 70 65 | 2e 68 3e 0a 58 23 69 6e |e <ctype|.h>.X#in|
|00001870| 63 6c 75 64 65 20 3c 58 | 31 31 2f 58 6f 73 2e 68 |clude <X|11/Xos.h|
|00001880| 3e 0a 58 23 69 6e 63 6c | 75 64 65 20 3c 73 79 73 |>.X#incl|ude <sys|
|00001890| 2f 73 74 61 74 2e 68 3e | 0a 58 23 69 6e 63 6c 75 |/stat.h>|.X#inclu|
|000018a0| 64 65 20 3c 73 79 73 2f | 77 61 69 74 2e 68 3e 0a |de <sys/|wait.h>.|
|000018b0| 58 23 69 66 64 65 66 20 | 73 70 61 72 63 0a 58 23 |X#ifdef |sparc.X#|
|000018c0| 69 6e 63 6c 75 64 65 20 | 3c 64 69 72 65 6e 74 2e |include |<dirent.|
|000018d0| 68 3e 0a 58 23 65 6c 73 | 65 0a 58 23 69 6e 63 6c |h>.X#els|e.X#incl|
|000018e0| 75 64 65 20 3c 73 79 73 | 2f 64 69 72 2e 68 3e 0a |ude <sys|/dir.h>.|
|000018f0| 58 23 65 6e 64 69 66 0a | 58 23 69 6e 63 6c 75 64 |X#endif.|X#includ|
|00001900| 65 20 22 67 6c 6f 62 61 | 6c 2e 68 22 0a 58 0a 58 |e "globa|l.h".X.X|
|00001910| 63 68 61 72 20 09 09 43 | 6f 6d 6d 61 6e 64 5b 4c |char ..C|ommand[L|
|00001920| 49 4e 45 53 49 5a 5d 20 | 3d 20 22 22 3b 09 2f 2a |INESIZ] |= "";./*|
|00001930| 20 78 64 62 78 20 63 6f | 6d 6d 61 6e 64 20 73 74 | xdbx co|mmand st|
|00001940| 72 69 6e 67 20 2a 2f 0a | 58 0a 58 73 74 61 74 69 |ring */.|X.Xstati|
|00001950| 63 20 53 74 72 69 6e 67 | 20 20 09 66 69 6c 65 6c |c String| .filel|
|00001960| 69 73 74 5b 4d 41 58 46 | 49 4c 45 53 5d 3b 20 09 |ist[MAXF|ILES]; .|
|00001970| 2f 2a 20 6c 69 73 74 20 | 6f 66 20 66 69 6c 65 20 |/* list |of file |
|00001980| 6e 61 6d 65 73 20 69 6e | 20 66 69 6c 65 4d 65 6e |names in| fileMen|
|00001990| 75 20 2a 2f 0a 58 73 74 | 61 74 69 63 20 69 6e 74 |u */.Xst|atic int|
|000019a0| 09 6e 66 69 6c 65 73 20 | 3d 20 30 3b 09 09 2f 2a |.nfiles |= 0;../*|
|000019b0| 20 6e 75 6d 62 65 72 20 | 6f 66 20 66 69 6c 65 73 | number |of files|
|000019c0| 20 69 6e 20 66 69 6c 65 | 6c 69 73 74 20 2a 2f 0a | in file|list */.|
|000019d0| 58 73 74 61 74 69 63 20 | 57 69 64 67 65 74 09 66 |Xstatic |Widget.f|
|000019e0| 69 6c 65 4d 65 6e 75 20 | 3d 20 4e 55 4c 4c 2c 20 |ileMenu |= NULL, |
|000019f0| 09 2f 2a 20 6c 69 73 74 | 20 77 69 64 67 65 74 20 |./* list| widget |
|00001a00| 61 73 20 66 69 6c 65 20 | 6d 65 6e 75 20 2a 2f 0a |as file |menu */.|
|00001a10| 58 09 09 70 6f 70 75 70 | 73 68 65 6c 6c 3b 09 09 |X..popup|shell;..|
|00001a20| 2f 2a 20 70 61 72 65 6e | 74 20 6f 66 20 66 69 6c |/* paren|t of fil|
|00001a30| 65 4d 65 6e 75 20 2a 2f | 0a 58 0a 58 0a 58 2f 2a |eMenu */|.X.X.X/*|
|00001a40| 20 41 52 47 53 55 53 45 | 44 20 2a 2f 0a 58 73 74 | ARGSUSE|D */.Xst|
|00001a50| 61 74 69 63 20 76 6f 69 | 64 20 44 6f 49 74 20 28 |atic voi|d DoIt (|
|00001a60| 77 2c 20 63 6c 69 65 6e | 74 5f 64 61 74 61 2c 20 |w, clien|t_data, |
|00001a70| 63 61 6c 6c 5f 64 61 74 | 61 29 0a 58 20 20 20 20 |call_dat|a).X |
|00001a80| 57 69 64 67 65 74 20 77 | 3b 0a 58 20 20 20 20 63 |Widget w|;.X c|
|00001a90| 61 64 64 72 5f 74 20 63 | 6c 69 65 6e 74 5f 64 61 |addr_t c|lient_da|
|00001aa0| 74 61 3b 0a 58 20 20 20 | 20 63 61 64 64 72 5f 74 |ta;.X | caddr_t|
|00001ab0| 20 63 61 6c 6c 5f 64 61 | 74 61 3b 0a 58 7b 0a 58 | call_da|ta;.X{.X|
|00001ac0| 20 20 20 20 2f 2a 20 72 | 75 6e 2c 20 63 6f 6e 74 | /* r|un, cont|
|00001ad0| 2c 20 6e 65 78 74 2c 20 | 73 74 65 70 2c 20 77 68 |, next, |step, wh|
|00001ae0| 65 72 65 2c 20 75 70 2c | 20 64 6f 77 6e 2c 20 73 |ere, up,| down, s|
|00001af0| 74 61 74 75 73 20 2a 2f | 0a 58 20 20 20 20 73 74 |tatus */|.X st|
|00001b00| 72 63 70 79 28 43 6f 6d | 6d 61 6e 64 2c 20 63 6c |rcpy(Com|mand, cl|
|00001b10| 69 65 6e 74 5f 64 61 74 | 61 29 3b 0a 58 20 20 20 |ient_dat|a);.X |
|00001b20| 20 41 70 70 65 6e 64 44 | 69 61 6c 6f 67 54 65 78 | AppendD|ialogTex|
|00001b30| 74 28 43 6f 6d 6d 61 6e | 64 29 3b 0a 58 20 20 20 |t(Comman|d);.X |
|00001b40| 20 77 72 69 74 65 44 62 | 78 28 43 6f 6d 6d 61 6e | writeDb|x(Comman|
|00001b50| 64 29 3b 0a 58 7d 0a 58 | 0a 58 2f 2a 20 41 52 47 |d);.X}.X|.X/* ARG|
|00001b60| 53 55 53 45 44 20 2a 2f | 0a 58 73 74 61 74 69 63 |SUSED */|.Xstatic|
|00001b70| 20 76 6f 69 64 20 53 74 | 6f 70 5f 61 74 28 77 2c | void St|op_at(w,|
|00001b80| 20 63 6c 69 65 6e 74 5f | 64 61 74 61 2c 20 63 61 | client_|data, ca|
|00001b90| 6c 6c 5f 64 61 74 61 29 | 0a 58 20 20 20 20 57 69 |ll_data)|.X Wi|
|00001ba0| 64 67 65 74 20 77 3b 0a | 58 20 20 20 20 63 61 64 |dget w;.|X cad|
|00001bb0| 64 72 5f 74 20 63 6c 69 | 65 6e 74 5f 64 61 74 61 |dr_t cli|ent_data|
|00001bc0| 3b 0a 58 20 20 20 20 63 | 61 64 64 72 5f 74 20 63 |;.X c|addr_t c|
|00001bd0| 61 6c 6c 5f 64 61 74 61 | 3b 0a 58 7b 0a 58 20 20 |all_data|;.X{.X |
|00001be0| 20 20 58 74 54 65 78 74 | 50 6f 73 69 74 69 6f 6e | XtText|Position|
|00001bf0| 20 70 6f 73 3b 0a 58 20 | 20 20 20 4c 69 6e 65 20 | pos;.X | Line |
|00001c00| 6c 69 6e 65 3b 0a 58 0a | 58 20 20 20 20 69 66 20 |line;.X.|X if |
|00001c10| 28 64 69 73 70 6c 61 79 | 65 64 46 69 6c 65 20 3d |(display|edFile =|
|00001c20| 3d 20 4e 55 4c 4c 29 20 | 7b 0a 58 09 42 65 6c 6c |= NULL) |{.X.Bell|
|00001c30| 28 30 29 3b 0a 58 09 72 | 65 74 75 72 6e 3b 0a 58 |(0);.X.r|eturn;.X|
|00001c40| 20 20 20 20 7d 0a 58 20 | 20 20 20 70 6f 73 20 3d | }.X | pos =|
|00001c50| 20 58 74 54 65 78 74 47 | 65 74 49 6e 73 65 72 74 | XtTextG|etInsert|
|00001c60| 69 6f 6e 50 6f 69 6e 74 | 28 73 6f 75 72 63 65 57 |ionPoint|(sourceW|
|00001c70| 69 6e 64 6f 77 29 3b 0a | 58 20 20 20 20 6c 69 6e |indow);.|X lin|
|00001c80| 65 20 3d 20 54 65 78 74 | 50 6f 73 69 74 69 6f 6e |e = Text|Position|
|00001c90| 54 6f 4c 69 6e 65 28 70 | 6f 73 29 3b 0a 58 20 20 |ToLine(p|os);.X |
|00001ca0| 20 20 73 70 72 69 6e 74 | 66 28 43 6f 6d 6d 61 6e | sprint|f(Comman|
|00001cb0| 64 2c 20 22 73 74 6f 70 | 20 61 74 20 25 64 5c 6e |d, "stop| at %d\n|
|00001cc0| 22 2c 20 6c 69 6e 65 29 | 3b 0a 58 20 20 20 20 41 |", line)|;.X A|
|00001cd0| 70 70 65 6e 64 44 69 61 | 6c 6f 67 54 65 78 74 28 |ppendDia|logText(|
|00001ce0| 43 6f 6d 6d 61 6e 64 29 | 3b 0a 58 20 20 20 20 77 |Command)|;.X w|
|00001cf0| 72 69 74 65 44 62 78 28 | 43 6f 6d 6d 61 6e 64 29 |riteDbx(|Command)|
|00001d00| 3b 0a 58 7d 0a 58 0a 58 | 2f 2a 20 41 52 47 53 55 |;.X}.X.X|/* ARGSU|
|00001d10| 53 45 44 20 2a 2f 0a 58 | 73 74 61 74 69 63 20 76 |SED */.X|static v|
|00001d20| 6f 69 64 20 53 74 6f 70 | 5f 69 6e 28 77 2c 20 63 |oid Stop|_in(w, c|
|00001d30| 6c 69 65 6e 74 5f 64 61 | 74 61 2c 20 63 61 6c 6c |lient_da|ta, call|
|00001d40| 5f 64 61 74 61 29 0a 58 | 20 20 20 20 57 69 64 67 |_data).X| Widg|
|00001d50| 65 74 20 77 3b 0a 58 20 | 20 20 20 63 61 64 64 72 |et w;.X | caddr|
|00001d60| 5f 74 20 63 6c 69 65 6e | 74 5f 64 61 74 61 3b 0a |_t clien|t_data;.|
|00001d70| 58 20 20 20 20 63 61 64 | 64 72 5f 74 20 63 61 6c |X cad|dr_t cal|
|00001d80| 6c 5f 64 61 74 61 3b 0a | 58 7b 0a 58 20 20 20 20 |l_data;.|X{.X |
|00001d90| 63 68 61 72 20 2a 66 75 | 6e 63 6e 61 6d 65 3b 0a |char *fu|ncname;.|
|00001da0| 58 20 20 20 20 69 6e 74 | 20 20 6e 62 79 74 65 73 |X int| nbytes|
|00001db0| 3b 0a 58 0a 58 20 20 20 | 20 66 75 6e 63 6e 61 6d |;.X.X | funcnam|
|00001dc0| 65 20 3d 20 58 46 65 74 | 63 68 42 79 74 65 73 28 |e = XFet|chBytes(|
|00001dd0| 58 74 44 69 73 70 6c 61 | 79 28 77 29 2c 20 26 6e |XtDispla|y(w), &n|
|00001de0| 62 79 74 65 73 29 3b 09 | 2f 2a 20 66 72 6f 6d 20 |bytes);.|/* from |
|00001df0| 43 55 54 5f 42 55 46 46 | 45 52 30 20 2a 2f 0a 58 |CUT_BUFF|ER0 */.X|
|00001e00| 20 20 20 20 69 66 20 28 | 6e 62 79 74 65 73 20 3d | if (|nbytes =|
|00001e10| 3d 20 30 29 20 7b 0a 58 | 09 58 42 65 6c 6c 28 58 |= 0) {.X|.XBell(X|
|00001e20| 74 44 69 73 70 6c 61 79 | 28 77 29 2c 20 30 29 3b |tDisplay|(w), 0);|
|00001e30| 0a 58 09 72 65 74 75 72 | 6e 3b 0a 58 20 20 20 20 |.X.retur|n;.X |
|00001e40| 7d 0a 58 20 20 20 20 73 | 70 72 69 6e 74 66 28 43 |}.X s|printf(C|
|00001e50| 6f 6d 6d 61 6e 64 2c 20 | 22 73 74 6f 70 20 69 6e |ommand, |"stop in|
|00001e60| 20 25 73 5c 6e 22 2c 20 | 66 75 6e 63 6e 61 6d 65 | %s\n", |funcname|
|00001e70| 29 3b 0a 58 20 20 20 20 | 41 70 70 65 6e 64 44 69 |);.X |AppendDi|
|00001e80| 61 6c 6f 67 54 65 78 74 | 28 43 6f 6d 6d 61 6e 64 |alogText|(Command|
|00001e90| 29 3b 0a 58 20 20 20 20 | 77 72 69 74 65 44 62 78 |);.X |writeDbx|
|00001ea0| 28 43 6f 6d 6d 61 6e 64 | 29 3b 0a 58 7d 0a 58 0a |(Command|);.X}.X.|
|00001eb0| 58 2f 2a 0a 58 20 2a 20 | 20 44 65 6c 65 74 65 20 |X/*.X * | Delete |
|00001ec0| 72 65 6d 6f 76 65 73 20 | 74 68 65 20 73 74 6f 70 |removes |the stop|
|00001ed0| 5f 6e 6f 20 61 73 73 6f | 63 69 61 74 65 64 20 77 |_no asso|ciated w|
|00001ee0| 69 74 68 20 61 20 67 69 | 76 65 6e 20 6c 69 6e 65 |ith a gi|ven line|
|00001ef0| 20 6e 75 6d 62 65 72 2e | 0a 58 20 2a 20 20 52 65 | number.|.X * Re|
|00001f00| 6d 6f 76 65 53 74 6f 70 | 28 29 20 69 73 20 63 61 |moveStop|() is ca|
|00001f10| 6c 6c 65 64 20 74 6f 20 | 75 6e 64 69 73 70 6c 61 |lled to |undispla|
|00001f20| 79 20 74 68 65 20 73 74 | 6f 70 20 73 69 67 6e 20 |y the st|op sign |
|00001f30| 6f 6e 6c 79 20 77 68 65 | 6e 20 74 68 65 72 65 0a |only whe|n there.|
|00001f40| 58 20 2a 20 20 61 72 65 | 20 6e 6f 20 6d 6f 72 65 |X * are| no more|
|00001f50| 20 73 74 6f 70 5f 6e 6f | 27 73 20 61 73 73 6f 63 | stop_no|'s assoc|
|00001f60| 69 61 74 65 64 20 77 69 | 74 68 20 74 68 61 74 20 |iated wi|th that |
|00001f70| 6c 69 6e 65 20 6e 75 6d | 62 65 72 2e 0a 58 20 2a |line num|ber..X *|
|00001f80| 2f 0a 58 2f 2a 20 41 52 | 47 53 55 53 45 44 20 2a |/.X/* AR|GSUSED *|
|00001f90| 2f 0a 58 73 74 61 74 69 | 63 20 76 6f 69 64 20 44 |/.Xstati|c void D|
|00001fa0| 65 6c 65 74 65 28 77 2c | 20 63 6c 69 65 6e 74 5f |elete(w,| client_|
|00001fb0| 64 61 74 61 2c 20 63 61 | 6c 6c 5f 64 61 74 61 29 |data, ca|ll_data)|
|00001fc0| 0a 58 20 20 20 20 57 69 | 64 67 65 74 20 77 3b 0a |.X Wi|dget w;.|
|00001fd0| 58 20 20 20 20 63 61 64 | 64 72 5f 74 20 63 6c 69 |X cad|dr_t cli|
|00001fe0| 65 6e 74 5f 64 61 74 61 | 3b 0a 58 20 20 20 20 63 |ent_data|;.X c|
|00001ff0| 61 64 64 72 5f 74 20 63 | 61 6c 6c 5f 64 61 74 61 |addr_t c|all_data|
|00002000| 3b 0a 58 7b 0a 58 20 20 | 20 20 58 74 54 65 78 74 |;.X{.X | XtText|
|00002010| 50 6f 73 69 74 69 6f 6e | 20 70 6f 73 3b 0a 58 20 |Position| pos;.X |
|00002020| 20 20 20 4c 69 6e 65 09 | 20 20 20 6c 69 6e 65 3b | Line.| line;|
|00002030| 0a 58 20 20 20 20 43 61 | 72 64 69 6e 61 6c 09 20 |.X Ca|rdinal. |
|00002040| 20 20 69 3b 0a 58 0a 58 | 20 20 20 20 69 66 20 28 | i;.X.X| if (|
|00002050| 64 69 73 70 6c 61 79 65 | 64 46 69 6c 65 20 3d 3d |displaye|dFile ==|
|00002060| 20 4e 55 4c 4c 29 20 7b | 0a 58 09 58 42 65 6c 6c | NULL) {|.X.XBell|
|00002070| 28 58 74 44 69 73 70 6c | 61 79 28 77 29 2c 20 30 |(XtDispl|ay(w), 0|
|00002080| 29 3b 0a 58 09 72 65 74 | 75 72 6e 3b 0a 58 20 20 |);.X.ret|urn;.X |
|00002090| 20 20 7d 0a 58 20 20 20 | 20 70 6f 73 20 3d 20 58 | }.X | pos = X|
|000020a0| 74 54 65 78 74 47 65 74 | 49 6e 73 65 72 74 69 6f |tTextGet|Insertio|
|000020b0| 6e 50 6f 69 6e 74 28 73 | 6f 75 72 63 65 57 69 6e |nPoint(s|ourceWin|
|000020c0| 64 6f 77 29 3b 0a 58 20 | 20 20 20 6c 69 6e 65 20 |dow);.X | line |
|000020d0| 3d 20 54 65 78 74 50 6f | 73 69 74 69 6f 6e 54 6f |= TextPo|sitionTo|
|000020e0| 4c 69 6e 65 28 70 6f 73 | 29 3b 0a 58 20 20 20 20 |Line(pos|);.X |
|000020f0| 69 66 20 28 69 20 3d 20 | 4c 69 6e 65 54 6f 53 74 |if (i = |LineToSt|
|00002100| 6f 70 5f 6e 6f 28 6c 69 | 6e 65 29 29 20 7b 0a 58 |op_no(li|ne)) {.X|
|00002110| 20 20 20 20 09 73 70 72 | 69 6e 74 66 28 43 6f 6d | .spr|intf(Com|
|00002120| 6d 61 6e 64 2c 20 22 64 | 65 6c 65 74 65 20 25 64 |mand, "d|elete %d|
|00002130| 5c 6e 22 2c 20 69 29 3b | 0a 58 20 20 20 20 09 41 |\n", i);|.X .A|
|00002140| 70 70 65 6e 64 44 69 61 | 6c 6f 67 54 65 78 74 28 |ppendDia|logText(|
|00002150| 43 6f 6d 6d 61 6e 64 29 | 3b 0a 58 20 20 20 20 09 |Command)|;.X .|
|00002160| 77 72 69 74 65 44 62 78 | 28 43 6f 6d 6d 61 6e 64 |writeDbx|(Command|
|00002170| 29 3b 0a 58 20 20 20 20 | 7d 0a 58 20 20 20 20 65 |);.X |}.X e|
|00002180| 6c 73 65 0a 58 09 58 42 | 65 6c 6c 28 58 74 44 69 |lse.X.XB|ell(XtDi|
|00002190| 73 70 6c 61 79 28 77 29 | 2c 20 30 29 3b 0a 58 7d |splay(w)|, 0);.X}|
|000021a0| 0a 58 0a 58 2f 2a 20 41 | 52 47 53 55 53 45 44 20 |.X.X/* A|RGSUSED |
|000021b0| 2a 2f 0a 58 73 74 61 74 | 69 63 20 76 6f 69 64 20 |*/.Xstat|ic void |
|000021c0| 50 72 69 6e 74 28 77 2c | 20 63 6c 69 65 6e 74 5f |Print(w,| client_|
|000021d0| 64 61 74 61 2c 20 63 61 | 6c 6c 5f 64 61 74 61 29 |data, ca|ll_data)|
|000021e0| 0a 58 20 20 20 20 57 69 | 64 67 65 74 20 77 3b 0a |.X Wi|dget w;.|
|000021f0| 58 20 20 20 20 63 61 64 | 64 72 5f 74 20 63 6c 69 |X cad|dr_t cli|
|00002200| 65 6e 74 5f 64 61 74 61 | 3b 0a 58 20 20 20 20 63 |ent_data|;.X c|
|00002210| 61 64 64 72 5f 74 20 63 | 61 6c 6c 5f 64 61 74 61 |addr_t c|all_data|
|00002220| 3b 0a 58 7b 0a 58 20 20 | 20 20 63 68 61 72 20 2a |;.X{.X | char *|
|00002230| 73 74 72 69 6e 67 3b 0a | 58 20 20 20 20 69 6e 74 |string;.|X int|
|00002240| 20 6e 62 79 74 65 73 3b | 0a 58 0a 58 20 20 20 20 | nbytes;|.X.X |
|00002250| 73 74 72 69 6e 67 20 3d | 20 58 46 65 74 63 68 42 |string =| XFetchB|
|00002260| 79 74 65 73 28 58 74 44 | 69 73 70 6c 61 79 28 77 |ytes(XtD|isplay(w|
|00002270| 29 2c 20 26 6e 62 79 74 | 65 73 29 3b 0a 58 20 20 |), &nbyt|es);.X |
|00002280| 20 20 69 66 20 28 6e 62 | 79 74 65 73 20 3d 3d 20 | if (nb|ytes == |
|00002290| 30 29 20 7b 0a 58 09 58 | 42 65 6c 6c 28 58 74 44 |0) {.X.X|Bell(XtD|
|000022a0| 69 73 70 6c 61 79 28 77 | 29 2c 20 30 29 3b 0a 58 |isplay(w|), 0);.X|
|000022b0| 09 72 65 74 75 72 6e 3b | 0a 58 20 20 20 20 7d 0a |.return;|.X }.|
|000022c0| 58 20 20 20 20 69 66 20 | 28 28 69 6e 74 29 63 6c |X if |((int)cl|
|000022d0| 69 65 6e 74 5f 64 61 74 | 61 20 3d 3d 20 30 29 0a |ient_dat|a == 0).|
|000022e0| 58 20 20 20 20 09 73 70 | 72 69 6e 74 66 28 43 6f |X .sp|rintf(Co|
|000022f0| 6d 6d 61 6e 64 2c 20 22 | 70 72 69 6e 74 20 25 73 |mmand, "|print %s|
|00002300| 5c 6e 22 2c 20 73 74 72 | 69 6e 67 29 3b 0a 58 20 |\n", str|ing);.X |
|00002310| 20 20 20 65 6c 73 65 20 | 69 66 20 28 28 69 6e 74 | else |if ((int|
|00002320| 29 63 6c 69 65 6e 74 5f | 64 61 74 61 20 3d 3d 20 |)client_|data == |
|00002330| 31 29 0a 58 20 20 20 20 | 09 73 70 72 69 6e 74 66 |1).X |.sprintf|
|00002340| 28 43 6f 6d 6d 61 6e 64 | 2c 20 22 70 72 69 6e 74 |(Command|, "print|
|00002350| 20 2a 25 73 5c 6e 22 2c | 20 73 74 72 69 6e 67 29 | *%s\n",| string)|
|00002360| 3b 0a 58 20 20 20 20 41 | 70 70 65 6e 64 44 69 61 |;.X A|ppendDia|
|00002370| 6c 6f 67 54 65 78 74 28 | 43 6f 6d 6d 61 6e 64 29 |logText(|Command)|
|00002380| 3b 0a 58 20 20 20 20 77 | 72 69 74 65 44 62 78 28 |;.X w|riteDbx(|
|00002390| 43 6f 6d 6d 61 6e 64 29 | 3b 0a 58 7d 0a 58 0a 58 |Command)|;.X}.X.X|
|000023a0| 2f 2a 20 41 52 47 53 55 | 53 45 44 20 2a 2f 0a 58 |/* ARGSU|SED */.X|
|000023b0| 73 74 61 74 69 63 20 76 | 6f 69 64 20 46 75 6e 63 |static v|oid Func|
|000023c0| 28 77 2c 20 63 6c 69 65 | 6e 74 5f 64 61 74 61 2c |(w, clie|nt_data,|
|000023d0| 20 63 61 6c 6c 5f 64 61 | 74 61 29 0a 58 20 20 20 | call_da|ta).X |
|000023e0| 20 57 69 64 67 65 74 20 | 77 3b 0a 58 20 20 20 20 | Widget |w;.X |
|000023f0| 63 61 64 64 72 5f 74 20 | 63 6c 69 65 6e 74 5f 64 |caddr_t |client_d|
|00002400| 61 74 61 3b 0a 58 20 20 | 20 20 63 61 64 64 72 5f |ata;.X | caddr_|
|00002410| 74 20 63 61 6c 6c 5f 64 | 61 74 61 3b 0a 58 7b 0a |t call_d|ata;.X{.|
|00002420| 58 20 20 20 20 63 68 61 | 72 20 2a 66 75 6e 63 6e |X cha|r *funcn|
|00002430| 61 6d 65 3b 0a 58 20 20 | 20 20 69 6e 74 20 6e 62 |ame;.X | int nb|
|00002440| 79 74 65 73 3b 0a 58 0a | 58 20 20 20 20 66 75 6e |ytes;.X.|X fun|
|00002450| 63 6e 61 6d 65 20 3d 20 | 58 46 65 74 63 68 42 79 |cname = |XFetchBy|
|00002460| 74 65 73 28 58 74 44 69 | 73 70 6c 61 79 28 77 29 |tes(XtDi|splay(w)|
|00002470| 2c 20 26 6e 62 79 74 65 | 73 29 3b 0a 58 20 20 20 |, &nbyte|s);.X |
|00002480| 20 73 70 72 69 6e 74 66 | 28 43 6f 6d 6d 61 6e 64 | sprintf|(Command|
|00002490| 2c 20 22 66 75 6e 63 20 | 25 73 5c 6e 22 2c 20 66 |, "func |%s\n", f|
|000024a0| 75 6e 63 6e 61 6d 65 29 | 3b 0a 58 20 20 20 20 41 |uncname)|;.X A|
|000024b0| 70 70 65 6e 64 44 69 61 | 6c 6f 67 54 65 78 74 28 |ppendDia|logText(|
|000024c0| 43 6f 6d 6d 61 6e 64 29 | 3b 0a 58 20 20 20 20 77 |Command)|;.X w|
|000024d0| 72 69 74 65 44 62 78 28 | 43 6f 6d 6d 61 6e 64 29 |riteDbx(|Command)|
|000024e0| 3b 0a 58 7d 0a 58 0a 58 | 2f 2a 20 41 52 47 53 55 |;.X}.X.X|/* ARGSU|
|000024f0| 53 45 44 20 2a 2f 0a 58 | 2f 2a 20 20 43 61 6c 6c |SED */.X|/* Call|
|00002500| 62 61 63 6b 20 66 6f 72 | 20 74 68 65 20 66 69 6c |back for| the fil|
|00002510| 65 4d 65 6e 75 20 6c 69 | 73 74 20 77 69 64 67 65 |eMenu li|st widge|
|00002520| 74 2c 20 64 69 73 70 6c | 61 79 20 74 68 65 20 66 |t, displ|ay the f|
|00002530| 69 6c 65 20 73 65 6c 65 | 63 74 65 64 20 69 6e 20 |ile sele|cted in |
|00002540| 74 68 65 20 0a 58 20 2a | 20 20 6d 65 6e 75 20 6f |the .X *| menu o|
|00002550| 6e 20 74 68 65 20 73 6f | 75 72 63 65 20 77 69 6e |n the so|urce win|
|00002560| 64 6f 77 2e 0a 58 20 2a | 2f 0a 58 73 74 61 74 69 |dow..X *|/.Xstati|
|00002570| 63 20 76 6f 69 64 20 44 | 69 73 70 6c 61 79 4d 65 |c void D|isplayMe|
|00002580| 6e 75 46 69 6c 65 28 77 | 2c 20 63 6c 69 65 6e 74 |nuFile(w|, client|
|00002590| 5f 64 61 74 61 2c 20 63 | 61 6c 6c 5f 64 61 74 61 |_data, c|all_data|
|000025a0| 29 0a 58 20 20 20 20 57 | 69 64 67 65 74 20 77 3b |).X W|idget w;|
|000025b0| 0a 58 20 20 20 20 57 69 | 64 67 65 74 20 63 6c 69 |.X Wi|dget cli|
|000025c0| 65 6e 74 5f 64 61 74 61 | 3b 0a 58 20 20 20 20 58 |ent_data|;.X X|
|000025d0| 74 4c 69 73 74 52 65 74 | 75 72 6e 53 74 72 75 63 |tListRet|urnStruc|
|000025e0| 74 20 2a 63 61 6c 6c 5f | 64 61 74 61 3b 0a 58 7b |t *call_|data;.X{|
|000025f0| 0a 58 20 20 20 20 58 74 | 50 6f 70 64 6f 77 6e 28 |.X Xt|Popdown(|
|00002600| 63 6c 69 65 6e 74 5f 64 | 61 74 61 29 3b 0a 58 20 |client_d|ata);.X |
|00002610| 20 20 20 69 66 20 28 63 | 61 6c 6c 5f 64 61 74 61 | if (c|all_data|
|00002620| 2d 3e 73 74 72 69 6e 67 | 20 3d 3d 20 4e 55 4c 4c |->string| == NULL|
|00002630| 20 7c 7c 20 0a 58 09 73 | 74 72 63 6d 70 28 63 61 | || .X.s|trcmp(ca|
|00002640| 6c 6c 5f 64 61 74 61 2d | 3e 73 74 72 69 6e 67 2c |ll_data-|>string,|
|00002650| 20 43 41 4e 43 45 4c 29 | 20 3d 3d 20 4e 55 4c 4c | CANCEL)| == NULL|
|00002660| 29 20 72 65 74 75 72 6e | 3b 0a 58 20 20 20 20 64 |) return|;.X d|
|00002670| 69 73 70 6c 61 79 65 64 | 46 69 6c 65 20 3d 20 4c |isplayed|File = L|
|00002680| 6f 61 64 46 69 6c 65 28 | 63 61 6c 6c 5f 64 61 74 |oadFile(|call_dat|
|00002690| 61 2d 3e 73 74 72 69 6e | 67 29 3b 0a 58 20 20 20 |a->strin|g);.X |
|000026a0| 20 73 70 72 69 6e 74 66 | 28 43 6f 6d 6d 61 6e 64 | sprintf|(Command|
|000026b0| 2c 20 22 66 69 6c 65 20 | 25 73 5c 6e 22 2c 20 63 |, "file |%s\n", c|
|000026c0| 61 6c 6c 5f 64 61 74 61 | 2d 3e 73 74 72 69 6e 67 |all_data|->string|
|000026d0| 29 3b 0a 58 20 20 20 20 | 41 70 70 65 6e 64 44 69 |);.X |AppendDi|
|000026e0| 61 6c 6f 67 54 65 78 74 | 28 43 6f 6d 6d 61 6e 64 |alogText|(Command|
|000026f0| 29 3b 0a 58 20 20 20 20 | 77 72 69 74 65 44 62 78 |);.X |writeDbx|
|00002700| 28 43 6f 6d 6d 61 6e 64 | 29 3b 0a 58 7d 0a 58 0a |(Command|);.X}.X.|
|00002710| 58 0a 58 2f 2a 20 20 41 | 20 64 69 72 65 63 74 6f |X.X/* A| directo|
|00002720| 72 79 20 65 6e 74 72 79 | 20 69 73 20 69 6e 63 6c |ry entry| is incl|
|00002730| 75 64 65 64 20 69 6e 20 | 74 68 65 20 64 69 73 70 |uded in |the disp|
|00002740| 6c 61 79 20 6c 69 73 74 | 20 69 66 20 69 74 20 69 |lay list| if it i|
|00002750| 73 20 61 20 72 65 67 75 | 6c 61 72 0a 58 20 2a 20 |s a regu|lar.X * |
|00002760| 20 66 69 6c 65 20 62 75 | 74 20 6e 6f 74 20 61 6e | file bu|t not an|
|00002770| 20 65 78 65 63 75 74 61 | 62 6c 65 20 66 69 6c 65 | executa|ble file|
|00002780| 2e 0a 58 20 2a 2f 0a 58 | 73 74 61 74 69 63 20 69 |..X */.X|static i|
|00002790| 6e 74 20 49 6e 4c 69 73 | 74 28 65 6e 74 72 79 29 |nt InLis|t(entry)|
|000027a0| 0a 58 44 69 72 65 63 74 | 6f 72 79 20 2a 65 6e 74 |.XDirect|ory *ent|
|000027b0| 72 79 3b 0a 58 7b 0a 58 | 20 20 20 20 63 68 61 72 |ry;.X{.X| char|
|000027c0| 20 62 75 66 66 65 72 5b | 31 36 5d 3b 0a 58 20 20 | buffer[|16];.X |
|000027d0| 20 20 69 6e 74 20 69 2c | 20 6e 3b 0a 58 20 20 20 | int i,| n;.X |
|000027e0| 20 46 49 4c 45 20 2a 66 | 70 3b 0a 58 0a 58 20 20 | FILE *f|p;.X.X |
|000027f0| 20 20 69 66 20 28 28 66 | 70 20 3d 20 66 6f 70 65 | if ((f|p = fope|
|00002800| 6e 28 65 6e 74 72 79 2d | 3e 64 5f 6e 61 6d 65 2c |n(entry-|>d_name,|
|00002810| 20 22 72 22 29 29 20 3d | 3d 20 4e 55 4c 4c 29 0a | "r")) =|= NULL).|
|00002820| 58 20 20 20 20 20 20 20 | 20 72 65 74 75 72 6e 20 |X | return |
|00002830| 46 61 6c 73 65 3b 0a 58 | 20 20 20 20 69 66 20 28 |False;.X| if (|
|00002840| 6e 20 3d 20 66 72 65 61 | 64 28 62 75 66 66 65 72 |n = frea|d(buffer|
|00002850| 2c 20 73 69 7a 65 6f 66 | 28 63 68 61 72 29 2c 20 |, sizeof|(char), |
|00002860| 73 69 7a 65 6f 66 28 62 | 75 66 66 65 72 29 2c 20 |sizeof(b|uffer), |
|00002870| 66 70 29 29 20 7b 0a 58 | 20 20 20 20 09 66 63 6c |fp)) {.X| .fcl|
|00002880| 6f 73 65 28 66 70 29 3b | 0a 58 20 20 20 20 09 66 |ose(fp);|.X .f|
|00002890| 6f 72 20 28 69 3d 30 3b | 20 69 3c 6e 20 26 26 20 |or (i=0;| i<n && |
|000028a0| 28 69 73 70 72 69 6e 74 | 28 62 75 66 66 65 72 5b |(isprint|(buffer[|
|000028b0| 69 5d 29 20 7c 7c 20 69 | 73 73 70 61 63 65 28 62 |i]) || i|sspace(b|
|000028c0| 75 66 66 65 72 5b 69 5d | 29 29 3b 20 69 2b 2b 29 |uffer[i]|)); i++)|
|000028d0| 3b 0a 58 20 20 20 20 09 | 72 65 74 75 72 6e 20 28 |;.X .|return (|
|000028e0| 28 69 2d 73 69 7a 65 6f | 66 28 62 75 66 66 65 72 |(i-sizeo|f(buffer|
|000028f0| 29 29 20 3f 20 46 61 6c | 73 65 20 3a 20 54 72 75 |)) ? Fal|se : Tru|
|00002900| 65 29 3b 0a 58 20 20 20 | 20 7d 0a 58 20 20 20 20 |e);.X | }.X |
|00002910| 66 63 6c 6f 73 65 28 66 | 70 29 3b 0a 58 20 20 20 |fclose(f|p);.X |
|00002920| 20 72 65 74 75 72 6e 20 | 46 61 6c 73 65 3b 0a 58 | return |False;.X|
|00002930| 7d 0a 58 0a 58 2f 2a 20 | 20 53 63 61 6e 73 20 74 |}.X.X/* | Scans t|
|00002940| 68 65 20 77 6f 72 6b 69 | 6e 67 20 64 69 72 65 63 |he worki|ng direc|
|00002950| 74 6f 72 79 20 66 6f 72 | 20 66 69 6c 65 73 20 73 |tory for| files s|
|00002960| 65 6c 65 63 74 65 64 20 | 62 79 20 49 6e 4c 69 73 |elected |by InLis|
|00002970| 74 28 29 2c 20 73 6f 72 | 74 65 64 0a 58 20 2a 20 |t(), sor|ted.X * |
|00002980| 20 61 6c 70 68 61 62 65 | 74 69 63 61 6c 6c 79 2c | alphabe|tically,|
|00002990| 20 61 6e 64 20 73 74 6f | 72 65 64 20 69 6e 20 61 | and sto|red in a|
|000029a0| 6e 20 61 72 72 61 79 20 | 6f 66 20 70 6f 69 6e 74 |n array |of point|
|000029b0| 65 72 73 20 74 6f 20 64 | 69 72 65 63 74 6f 72 79 |ers to d|irectory|
|000029c0| 0a 58 20 2a 20 20 65 6e | 74 72 69 65 73 20 63 61 |.X * en|tries ca|
|000029d0| 6c 6c 65 64 20 6e 61 6d | 65 6c 69 73 74 2e 0a 58 |lled nam|elist..X|
|000029e0| 20 2a 20 20 54 68 65 20 | 6e 61 6d 65 73 20 6f 66 | * The |names of|
|000029f0| 20 74 68 65 20 73 65 6c | 65 63 74 65 64 20 66 69 | the sel|ected fi|
|00002a00| 6c 65 73 20 61 72 65 20 | 73 74 6f 72 65 64 20 69 |les are |stored i|
|00002a10| 6e 20 66 69 6c 65 6c 69 | 73 74 2e 0a 58 20 2a 2f |n fileli|st..X */|
|00002a20| 0a 58 73 74 61 74 69 63 | 20 76 6f 69 64 20 53 63 |.Xstatic| void Sc|
|00002a30| 61 6e 44 69 72 28 29 0a | 58 7b 0a 58 20 20 20 20 |anDir().|X{.X |
|00002a40| 65 78 74 65 72 6e 20 09 | 61 6c 70 68 61 73 6f 72 |extern .|alphasor|
|00002a50| 74 28 29 3b 0a 58 20 20 | 20 20 44 69 72 65 63 74 |t();.X | Direct|
|00002a60| 6f 72 79 20 20 20 2a 2a | 6e 61 6d 65 6c 69 73 74 |ory **|namelist|
|00002a70| 3b 0a 58 20 20 20 20 63 | 68 61 72 20 09 2a 64 69 |;.X c|har .*di|
|00002a80| 72 2c 20 6d 65 73 73 61 | 67 65 5b 4c 49 4e 45 53 |r, messa|ge[LINES|
|00002a90| 49 5a 5d 3b 0a 58 20 20 | 20 20 69 6e 74 09 09 69 |IZ];.X | int..i|
|00002aa0| 3b 0a 58 0a 58 20 20 20 | 20 69 20 3d 20 30 3b 0a |;.X.X | i = 0;.|
|00002ab0| 58 20 20 20 20 66 69 6c | 65 6c 69 73 74 5b 69 2b |X fil|elist[i+|
|00002ac0| 2b 5d 20 3d 20 22 22 3b | 0a 58 20 20 20 20 64 69 |+] = "";|.X di|
|00002ad0| 72 20 3d 20 64 62 78 70 | 77 64 28 29 3b 0a 58 20 |r = dbxp|wd();.X |
|00002ae0| 20 20 20 6e 66 69 6c 65 | 73 20 3d 20 73 63 61 6e | nfile|s = scan|
|00002af0| 64 69 72 28 64 69 72 2c | 20 26 6e 61 6d 65 6c 69 |dir(dir,| &nameli|
|00002b00| 73 74 2c 20 49 6e 4c 69 | 73 74 2c 20 61 6c 70 68 |st, InLi|st, alph|
|00002b10| 61 73 6f 72 74 29 3b 0a | 58 20 20 20 20 66 6f 72 |asort);.|X for|
|00002b20| 20 28 69 3d 31 3b 20 69 | 3c 6e 66 69 6c 65 73 3b | (i=1; i|<nfiles;|
|00002b30| 20 69 2b 2b 29 20 7b 0a | 58 09 66 69 6c 65 6c 69 | i++) {.|X.fileli|
|00002b40| 73 74 5b 69 5d 20 3d 20 | 58 74 4e 65 77 53 74 72 |st[i] = |XtNewStr|
|00002b50| 69 6e 67 28 6e 61 6d 65 | 6c 69 73 74 5b 69 5d 2d |ing(name|list[i]-|
|00002b60| 3e 64 5f 6e 61 6d 65 29 | 3b 0a 58 20 20 20 20 7d |>d_name)|;.X }|
|00002b70| 0a 58 20 20 20 20 66 69 | 6c 65 6c 69 73 74 5b 30 |.X fi|lelist[0|
|00002b80| 5d 20 3d 20 43 41 4e 43 | 45 4c 3b 0a 58 20 20 20 |] = CANC|EL;.X |
|00002b90| 20 66 69 6c 65 6c 69 73 | 74 5b 69 5d 20 3d 20 4e | filelis|t[i] = N|
|00002ba0| 55 4c 4c 3b 0a 58 20 20 | 20 20 72 65 74 75 72 6e |ULL;.X | return|
|00002bb0| 3b 0a 58 7d 0a 58 0a 58 | 2f 2a 20 20 43 72 65 61 |;.X}.X.X|/* Crea|
|00002bc0| 74 65 73 20 61 20 70 6f | 70 75 70 20 73 68 65 6c |tes a po|pup shel|
|00002bd0| 6c 20 77 69 74 68 20 69 | 74 73 20 63 68 69 6c 64 |l with i|ts child|
|00002be0| 20 62 65 69 6e 67 20 61 | 20 6c 69 73 74 20 77 69 | being a| list wi|
|00002bf0| 64 67 65 74 20 63 6f 6e | 74 61 69 6e 69 6e 67 0a |dget con|taining.|
|00002c00| 58 20 2a 20 20 66 69 6c | 65 20 6e 61 6d 65 73 20 |X * fil|e names |
|00002c10| 72 65 74 75 72 6e 65 64 | 20 66 72 6f 6d 20 53 63 |returned| from Sc|
|00002c20| 61 6e 44 69 72 28 29 2e | 0a 58 20 2a 20 20 57 68 |anDir().|.X * Wh|
|00002c30| 65 6e 20 61 6e 20 69 74 | 65 6d 20 69 6e 20 74 68 |en an it|em in th|
|00002c40| 65 20 6c 69 73 74 20 69 | 73 20 73 65 6c 65 63 74 |e list i|s select|
|00002c50| 65 64 2c 20 44 69 73 70 | 6c 61 79 4d 65 6e 75 46 |ed, Disp|layMenuF|
|00002c60| 69 6c 65 20 77 69 6c 6c | 20 62 65 20 63 61 6c 6c |ile will| be call|
|00002c70| 65 64 2e 0a 58 20 2a 2f | 0a 58 73 74 61 74 69 63 |ed..X */|.Xstatic|
|00002c80| 20 76 6f 69 64 20 53 65 | 74 55 70 46 69 6c 65 4d | void Se|tUpFileM|
|00002c90| 65 6e 75 28 29 20 0a 58 | 7b 0a 58 20 20 20 20 41 |enu() .X|{.X A|
|00002ca0| 72 67 20 09 61 72 67 73 | 5b 4d 41 58 41 52 47 53 |rg .args|[MAXARGS|
|00002cb0| 5d 3b 0a 58 20 20 20 20 | 43 61 72 64 69 6e 61 6c |];.X |Cardinal|
|00002cc0| 09 6e 3b 0a 58 20 20 20 | 20 69 6e 74 09 09 6e 63 |.n;.X | int..nc|
|00002cd0| 6f 6c 75 6d 6e 73 3b 0a | 58 0a 58 20 20 20 20 73 |olumns;.|X.X s|
|00002ce0| 74 61 74 69 63 20 53 74 | 72 69 6e 67 20 74 72 61 |tatic St|ring tra|
|00002cf0| 6e 73 6c 61 74 69 6f 6e | 73 20 3d 20 22 5c 0a 58 |nslation|s = "\.X|
|00002d00| 09 3c 42 74 6e 31 44 6f | 77 6e 3e 2c 3c 42 74 6e |.<Btn1Do|wn>,<Btn|
|00002d10| 31 55 70 3e 3a 09 53 65 | 74 28 29 20 4e 6f 74 69 |1Up>:.Se|t() Noti|
|00002d20| 66 79 28 29 20 55 6e 73 | 65 74 28 29 22 3b 0a 58 |fy() Uns|et()";.X|
|00002d30| 0a 58 20 20 20 20 6e 20 | 3d 20 30 3b 0a 58 20 20 |.X n |= 0;.X |
|00002d40| 20 20 70 6f 70 75 70 73 | 68 65 6c 6c 20 3d 20 58 | popups|hell = X|
|00002d50| 74 43 72 65 61 74 65 50 | 6f 70 75 70 53 68 65 6c |tCreateP|opupShel|
|00002d60| 6c 28 22 70 6f 70 75 70 | 22 2c 20 6f 76 65 72 72 |l("popup|", overr|
|00002d70| 69 64 65 53 68 65 6c 6c | 57 69 64 67 65 74 43 6c |ideShell|WidgetCl|
|00002d80| 61 73 73 2c 20 0a 58 09 | 09 09 09 20 20 20 20 74 |ass, .X.|... t|
|00002d90| 6f 70 6c 65 76 65 6c 2c | 20 61 72 67 73 2c 20 6e |oplevel,| args, n|
|00002da0| 29 3b 0a 58 0a 58 20 20 | 20 20 53 63 61 6e 44 69 |);.X.X | ScanDi|
|00002db0| 72 28 29 3b 0a 58 20 20 | 20 20 6e 20 3d 20 30 3b |r();.X | n = 0;|
|00002dc0| 0a 58 20 20 20 20 6e 63 | 6f 6c 75 6d 6e 73 20 3d |.X nc|olumns =|
|00002dd0| 20 6e 66 69 6c 65 73 2f | 61 70 70 5f 72 65 73 6f | nfiles/|app_reso|
|00002de0| 75 72 63 65 73 2e 66 69 | 6c 65 73 50 65 72 43 6f |urces.fi|lesPerCo|
|00002df0| 6c 75 6d 6e 20 2b 20 31 | 3b 0a 58 20 20 20 20 58 |lumn + 1|;.X X|
|00002e00| 74 53 65 74 41 72 67 28 | 61 72 67 73 5b 6e 5d 2c |tSetArg(|args[n],|
|00002e10| 20 58 74 4e 6c 69 73 74 | 2c 20 66 69 6c 65 6c 69 | XtNlist|, fileli|
|00002e20| 73 74 29 3b 09 09 09 09 | 6e 2b 2b 3b 0a 58 20 20 |st);....|n++;.X |
|00002e30| 20 20 58 74 53 65 74 41 | 72 67 28 61 72 67 73 5b | XtSetA|rg(args[|
|00002e40| 6e 5d 2c 20 58 74 4e 76 | 65 72 74 69 63 61 6c 4c |n], XtNv|erticalL|
|00002e50| 69 73 74 2c 20 54 72 75 | 65 29 3b 09 09 09 09 6e |ist, Tru|e);....n|
|00002e60| 2b 2b 3b 0a 58 20 20 20 | 20 58 74 53 65 74 41 72 |++;.X | XtSetAr|
|00002e70| 67 28 61 72 67 73 5b 6e | 5d 2c 20 58 74 4e 63 6f |g(args[n|], XtNco|
|00002e80| 6c 75 6d 6e 53 70 61 63 | 69 6e 67 2c 20 61 70 70 |lumnSpac|ing, app|
|00002e90| 5f 72 65 73 6f 75 72 63 | 65 73 2e 63 6f 6c 75 6d |_resourc|es.colum|
|00002ea0| 6e 53 70 61 63 69 6e 67 | 29 3b 09 6e 2b 2b 3b 0a |nSpacing|);.n++;.|
|00002eb0| 58 20 20 20 20 58 74 53 | 65 74 41 72 67 28 61 72 |X XtS|etArg(ar|
|00002ec0| 67 73 5b 6e 5d 2c 20 58 | 74 4e 64 65 66 61 75 6c |gs[n], X|tNdefaul|
|00002ed0| 74 43 6f 6c 75 6d 6e 73 | 2c 20 28 58 74 41 72 67 |tColumns|, (XtArg|
|00002ee0| 56 61 6c 29 20 6e 63 6f | 6c 75 6d 6e 73 29 3b 09 |Val) nco|lumns);.|
|00002ef0| 09 6e 2b 2b 3b 0a 58 20 | 20 20 20 58 74 53 65 74 |.n++;.X | XtSet|
|00002f00| 41 72 67 28 61 72 67 73 | 5b 6e 5d 2c 20 58 74 4e |Arg(args|[n], XtN|
|00002f10| 74 72 61 6e 73 6c 61 74 | 69 6f 6e 73 2c 20 58 74 |translat|ions, Xt|
|00002f20| 50 61 72 73 65 54 72 61 | 6e 73 6c 61 74 69 6f 6e |ParseTra|nslation|
|00002f30| 54 61 62 6c 65 28 74 72 | 61 6e 73 6c 61 74 69 6f |Table(tr|anslatio|
|00002f40| 6e 73 29 29 3b 0a 58 20 | 20 20 20 6e 2b 2b 3b 0a |ns));.X | n++;.|
|00002f50| 58 20 20 20 20 66 69 6c | 65 4d 65 6e 75 20 3d 20 |X fil|eMenu = |
|00002f60| 58 74 43 72 65 61 74 65 | 4d 61 6e 61 67 65 64 57 |XtCreate|ManagedW|
|00002f70| 69 64 67 65 74 28 22 66 | 69 6c 65 4d 65 6e 75 22 |idget("f|ileMenu"|
|00002f80| 2c 20 6c 69 73 74 57 69 | 64 67 65 74 43 6c 61 73 |, listWi|dgetClas|
|00002f90| 73 2c 20 0a 58 09 09 09 | 09 20 20 20 20 20 70 6f |s, .X...|. po|
|00002fa0| 70 75 70 73 68 65 6c 6c | 2c 20 61 72 67 73 2c 20 |pupshell|, args, |
|00002fb0| 6e 29 3b 0a 58 20 20 20 | 20 58 74 41 64 64 43 61 |n);.X | XtAddCa|
|00002fc0| 6c 6c 62 61 63 6b 28 66 | 69 6c 65 4d 65 6e 75 2c |llback(f|ileMenu,|
|00002fd0| 20 58 74 4e 63 61 6c 6c | 62 61 63 6b 2c 20 44 69 | XtNcall|back, Di|
|00002fe0| 73 70 6c 61 79 4d 65 6e | 75 46 69 6c 65 2c 20 70 |splayMen|uFile, p|
|00002ff0| 6f 70 75 70 73 68 65 6c | 6c 29 3b 0a 58 7d 0a 58 |opupshel|l);.X}.X|
|00003000| 0a 58 2f 2a 20 20 44 65 | 73 74 72 6f 79 20 74 68 |.X/* De|stroy th|
|00003010| 65 20 65 78 69 73 74 69 | 6e 67 20 70 6f 70 75 70 |e existi|ng popup|
|00003020| 20 73 68 65 6c 6c 20 61 | 6e 64 20 63 72 65 61 74 | shell a|nd creat|
|00003030| 65 73 20 61 6e 6f 74 68 | 65 72 20 6f 6e 65 2e 20 |es anoth|er one. |
|00003040| 2a 2f 0a 58 76 6f 69 64 | 20 55 70 64 61 74 65 46 |*/.Xvoid| UpdateF|
|00003050| 69 6c 65 4d 65 6e 75 28 | 29 0a 58 7b 0a 58 20 20 |ileMenu(|).X{.X |
|00003060| 20 20 58 74 44 65 73 74 | 72 6f 79 57 69 64 67 65 | XtDest|royWidge|
|00003070| 74 28 70 6f 70 75 70 73 | 68 65 6c 6c 29 3b 0a 58 |t(popups|hell);.X|
|00003080| 20 20 20 20 53 65 74 55 | 70 46 69 6c 65 4d 65 6e | SetU|pFileMen|
|00003090| 75 28 29 3b 0a 58 7d 0a | 58 20 20 20 20 0a 58 2f |u();.X}.|X .X/|
|000030a0| 2a 20 41 52 47 53 55 53 | 45 44 20 2a 2f 0a 58 73 |* ARGSUS|ED */.Xs|
|000030b0| 74 61 74 69 63 20 76 6f | 69 64 20 46 69 6c 65 28 |tatic vo|id File(|
|000030c0| 77 2c 20 63 6c 69 65 6e | 74 5f 64 61 74 61 2c 20 |w, clien|t_data, |
|000030d0| 63 61 6c 6c 5f 64 61 74 | 61 29 0a 58 20 20 20 20 |call_dat|a).X |
|000030e0| 57 69 64 67 65 74 20 77 | 3b 0a 58 20 20 20 20 63 |Widget w|;.X c|
|000030f0| 61 64 64 72 5f 74 20 63 | 6c 69 65 6e 74 5f 64 61 |addr_t c|lient_da|
|00003100| 74 61 3b 0a 58 20 20 20 | 20 63 61 64 64 72 5f 74 |ta;.X | caddr_t|
|00003110| 20 63 61 6c 6c 5f 64 61 | 74 61 3b 0a 58 7b 0a 58 | call_da|ta;.X{.X|
|00003120| 20 20 20 20 41 72 67 20 | 09 61 72 67 73 5b 4d 41 | Arg |.args[MA|
|00003130| 58 41 52 47 53 5d 3b 0a | 58 20 20 20 20 43 61 72 |XARGS];.|X Car|
|00003140| 64 69 6e 61 6c 09 6e 3b | 0a 58 20 20 20 20 50 6f |dinal.n;|.X Po|
|00003150| 73 69 74 69 6f 6e 09 78 | 2c 20 79 2c 20 78 5f 6f |sition.x|, y, x_o|
|00003160| 66 66 73 65 74 3b 0a 58 | 20 20 20 20 44 69 6d 65 |ffset;.X| Dime|
|00003170| 6e 73 69 6f 6e 09 66 69 | 6c 65 4d 65 6e 75 5f 77 |nsion.fi|leMenu_w|
|00003180| 69 64 74 68 2c 20 62 6f | 72 64 65 72 5f 77 69 64 |idth, bo|rder_wid|
|00003190| 74 68 2c 20 73 6f 75 72 | 63 65 5f 77 69 64 74 68 |th, sour|ce_width|
|000031a0| 3b 0a 58 0a 58 20 20 20 | 20 6e 20 3d 20 30 3b 0a |;.X.X | n = 0;.|
|000031b0| 58 20 20 20 20 58 74 53 | 65 74 41 72 67 28 61 72 |X XtS|etArg(ar|
|000031c0| 67 73 5b 6e 5d 2c 20 58 | 74 4e 77 69 64 74 68 2c |gs[n], X|tNwidth,|
|000031d0| 20 26 66 69 6c 65 4d 65 | 6e 75 5f 77 69 64 74 68 | &fileMe|nu_width|
|000031e0| 29 3b 09 09 09 6e 2b 2b | 3b 0a 58 20 20 20 20 58 |);...n++|;.X X|
|000031f0| 74 53 65 74 41 72 67 28 | 61 72 67 73 5b 6e 5d 2c |tSetArg(|args[n],|
|00003200| 20 58 74 4e 62 6f 72 64 | 65 72 57 69 64 74 68 2c | XtNbord|erWidth,|
|00003210| 20 26 62 6f 72 64 65 72 | 5f 77 69 64 74 68 29 3b | &border|_width);|
|00003220| 09 09 09 6e 2b 2b 3b 0a | 58 20 20 20 20 58 74 47 |...n++;.|X XtG|
|00003230| 65 74 56 61 6c 75 65 73 | 28 66 69 6c 65 4d 65 6e |etValues|(fileMen|
|00003240| 75 2c 20 61 72 67 73 2c | 20 6e 29 3b 0a 58 0a 58 |u, args,| n);.X.X|
|00003250| 20 20 20 20 6e 20 3d 20 | 30 3b 0a 58 20 20 20 20 | n = |0;.X |
|00003260| 58 74 53 65 74 41 72 67 | 28 61 72 67 73 5b 6e 5d |XtSetArg|(args[n]|
|00003270| 2c 20 58 74 4e 77 69 64 | 74 68 2c 20 26 73 6f 75 |, XtNwid|th, &sou|
|00003280| 72 63 65 5f 77 69 64 74 | 68 29 3b 09 09 09 09 6e |rce_widt|h);....n|
|00003290| 2b 2b 3b 0a 58 20 20 20 | 20 58 74 47 65 74 56 61 |++;.X | XtGetVa|
|000032a0| 6c 75 65 73 28 73 6f 75 | 72 63 65 57 69 6e 64 6f |lues(sou|rceWindo|
|000032b0| 77 2c 20 61 72 67 73 2c | 20 6e 29 3b 0a 58 0a 58 |w, args,| n);.X.X|
|000032c0| 20 20 20 20 78 5f 6f 66 | 66 73 65 74 20 3d 20 28 | x_of|fset = (|
|000032d0| 50 6f 73 69 74 69 6f 6e | 29 20 28 73 6f 75 72 63 |Position|) (sourc|
|000032e0| 65 5f 77 69 64 74 68 20 | 2d 20 66 69 6c 65 4d 65 |e_width |- fileMe|
|000032f0| 6e 75 5f 77 69 64 74 68 | 20 2d 20 32 2a 62 6f 72 |nu_width| - 2*bor|
|00003300| 64 65 72 5f 77 69 64 74 | 68 29 3b 0a 58 20 20 20 |der_widt|h);.X |
|00003310| 20 58 74 54 72 61 6e 73 | 6c 61 74 65 43 6f 6f 72 | XtTrans|lateCoor|
|00003320| 64 73 28 73 6f 75 72 63 | 65 57 69 6e 64 6f 77 2c |ds(sourc|eWindow,|
|00003330| 20 78 5f 6f 66 66 73 65 | 74 2c 20 30 2c 20 26 78 | x_offse|t, 0, &x|
|00003340| 2c 20 26 79 29 3b 0a 58 | 20 20 20 20 78 20 3d 20 |, &y);.X| x = |
|00003350| 4d 41 58 28 30 2c 20 78 | 29 3b 0a 58 20 20 20 20 |MAX(0, x|);.X |
|00003360| 79 20 3d 20 4d 41 58 28 | 30 2c 20 79 29 3b 0a 58 |y = MAX(|0, y);.X|
|00003370| 20 20 20 20 58 74 4d 6f | 76 65 57 69 64 67 65 74 | XtMo|veWidget|
|00003380| 28 70 6f 70 75 70 73 68 | 65 6c 6c 2c 20 78 2c 20 |(popupsh|ell, x, |
|00003390| 79 29 3b 0a 58 20 20 20 | 20 58 74 50 6f 70 75 70 |y);.X | XtPopup|
|000033a0| 28 70 6f 70 75 70 73 68 | 65 6c 6c 2c 20 58 74 47 |(popupsh|ell, XtG|
|000033b0| 72 61 62 4e 6f 6e 65 78 | 63 6c 75 73 69 76 65 29 |rabNonex|clusive)|
|000033c0| 3b 0a 58 7d 0a 58 0a 58 | 0a 58 2f 2a 20 41 52 47 |;.X}.X.X|.X/* ARG|
|000033d0| 53 55 53 45 44 20 2a 2f | 0a 58 73 74 61 74 69 63 |SUSED */|.Xstatic|
|000033e0| 20 76 6f 69 64 20 51 75 | 69 74 28 77 2c 20 63 6c | void Qu|it(w, cl|
|000033f0| 69 65 6e 74 5f 64 61 74 | 61 2c 20 63 61 6c 6c 5f |ient_dat|a, call_|
|00003400| 64 61 74 61 29 0a 58 20 | 20 20 20 57 69 64 67 65 |data).X | Widge|
|00003410| 74 20 77 3b 0a 58 20 20 | 20 20 63 61 64 64 72 5f |t w;.X | caddr_|
|00003420| 74 20 63 6c 69 65 6e 74 | 5f 64 61 74 61 3b 0a 58 |t client|_data;.X|
|00003430| 20 20 20 20 63 61 64 64 | 72 5f 74 20 63 61 6c 6c | cadd|r_t call|
|00003440| 5f 64 61 74 61 3b 0a 58 | 7b 0a 58 20 20 20 20 75 |_data;.X|{.X u|
|00003450| 6e 69 6f 6e 20 77 61 69 | 74 20 73 74 61 74 75 73 |nion wai|t status|
|00003460| 3b 0a 58 0a 58 20 20 20 | 20 77 72 69 74 65 44 62 |;.X.X | writeDb|
|00003470| 78 28 22 71 75 69 74 5c | 6e 22 29 3b 0a 58 20 20 |x("quit\|n");.X |
|00003480| 20 20 58 74 44 65 73 74 | 72 6f 79 57 69 64 67 65 | XtDest|royWidge|
|00003490| 74 28 74 6f 70 6c 65 76 | 65 6c 29 3b 0a 58 20 20 |t(toplev|el);.X |
|000034a0| 20 20 77 61 69 74 33 28 | 26 73 74 61 74 75 73 2c | wait3(|&status,|
|000034b0| 20 57 4e 4f 48 41 4e 47 | 2c 20 4e 55 4c 4c 29 3b | WNOHANG|, NULL);|
|000034c0| 0a 58 20 20 20 20 65 78 | 69 74 28 30 29 3b 0a 58 |.X ex|it(0);.X|
|000034d0| 7d 0a 58 0a 58 73 74 61 | 74 69 63 20 76 6f 69 64 |}.X.Xsta|tic void|
|000034e0| 20 41 64 64 42 75 74 74 | 6f 6e 20 28 70 61 72 65 | AddButt|on (pare|
|000034f0| 6e 74 2c 20 6e 61 6d 65 | 2c 20 66 75 6e 63 74 69 |nt, name|, functi|
|00003500| 6f 6e 2c 20 63 6c 69 65 | 6e 74 5f 64 61 74 61 29 |on, clie|nt_data)|
|00003510| 0a 58 57 69 64 67 65 74 | 20 70 61 72 65 6e 74 3b |.XWidget| parent;|
|00003520| 0a 58 63 68 61 72 20 2a | 6e 61 6d 65 3b 0a 58 76 |.Xchar *|name;.Xv|
|00003530| 6f 69 64 20 28 2a 66 75 | 6e 63 74 69 6f 6e 29 20 |oid (*fu|nction) |
|00003540| 28 29 3b 0a 58 63 61 64 | 64 72 5f 74 20 63 6c 69 |();.Xcad|dr_t cli|
|00003550| 65 6e 74 5f 64 61 74 61 | 3b 09 09 2f 2a 20 63 61 |ent_data|;../* ca|
|00003560| 6c 6c 62 61 63 6b 20 72 | 65 67 69 73 74 65 72 65 |llback r|egistere|
|00003570| 64 20 64 61 74 61 20 2a | 2f 0a 58 7b 0a 58 20 20 |d data *|/.X{.X |
|00003580| 20 20 57 69 64 67 65 74 | 20 09 62 75 74 74 6f 6e | Widget| .button|
|00003590| 3b 0a 58 20 20 20 20 41 | 72 67 20 09 61 72 67 73 |;.X A|rg .args|
|000035a0| 5b 31 30 5d 3b 0a 58 20 | 20 20 20 43 61 72 64 69 |[10];.X | Cardi|
|000035b0| 6e 61 6c 20 09 6e 3b 0a | 58 0a 58 20 20 20 20 6e |nal .n;.|X.X n|
|000035c0| 20 3d 20 30 3b 0a 58 20 | 20 20 20 58 74 53 65 74 | = 0;.X | XtSet|
|000035d0| 41 72 67 28 61 72 67 73 | 5b 6e 5d 2c 20 58 74 4e |Arg(args|[n], XtN|
|000035e0| 77 69 64 74 68 2c 20 28 | 58 74 41 72 67 56 61 6c |width, (|XtArgVal|
|000035f0| 29 20 61 70 70 5f 72 65 | 73 6f 75 72 63 65 73 2e |) app_re|sources.|
|00003600| 62 75 74 74 6f 6e 57 69 | 64 74 68 29 3b 09 6e 2b |buttonWi|dth);.n+|
|00003610| 2b 3b 0a 58 20 20 20 20 | 58 74 53 65 74 41 72 67 |+;.X |XtSetArg|
|00003620| 28 61 72 67 73 5b 6e 5d | 2c 20 58 74 4e 72 65 73 |(args[n]|, XtNres|
|00003630| 69 7a 65 2c 20 28 58 74 | 41 72 67 56 61 6c 29 20 |ize, (Xt|ArgVal) |
|00003640| 46 61 6c 73 65 29 3b 09 | 09 09 6e 2b 2b 3b 0a 58 |False);.|..n++;.X|
|00003650| 20 20 20 20 62 75 74 74 | 6f 6e 20 3d 20 58 74 43 | butt|on = XtC|
|00003660| 72 65 61 74 65 4d 61 6e | 61 67 65 64 57 69 64 67 |reateMan|agedWidg|
|00003670| 65 74 28 6e 61 6d 65 2c | 20 63 6f 6d 6d 61 6e 64 |et(name,| command|
|00003680| 57 69 64 67 65 74 43 6c | 61 73 73 2c 20 70 61 72 |WidgetCl|ass, par|
|00003690| 65 6e 74 2c 20 61 72 67 | 73 2c 20 6e 29 3b 0a 58 |ent, arg|s, n);.X|
|000036a0| 20 20 20 20 58 74 41 64 | 64 43 61 6c 6c 62 61 63 | XtAd|dCallbac|
|000036b0| 6b 28 62 75 74 74 6f 6e | 2c 20 58 74 4e 63 61 6c |k(button|, XtNcal|
|000036c0| 6c 62 61 63 6b 2c 20 66 | 75 6e 63 74 69 6f 6e 2c |lback, f|unction,|
|000036d0| 20 63 6c 69 65 6e 74 5f | 64 61 74 61 29 3b 0a 58 | client_|data);.X|
|000036e0| 7d 0a 58 0a 58 73 74 61 | 74 69 63 20 76 6f 69 64 |}.X.Xsta|tic void|
|000036f0| 20 43 72 65 61 74 65 42 | 75 74 74 6f 6e 73 20 28 | CreateB|uttons (|
|00003700| 70 61 72 65 6e 74 29 0a | 58 57 69 64 67 65 74 20 |parent).|XWidget |
|00003710| 70 61 72 65 6e 74 3b 0a | 58 7b 0a 58 20 20 20 20 |parent;.|X{.X |
|00003720| 41 64 64 42 75 74 74 6f | 6e 20 28 70 61 72 65 6e |AddButto|n (paren|
|00003730| 74 2c 20 22 72 75 6e 22 | 2c 20 44 6f 49 74 2c 20 |t, "run"|, DoIt, |
|00003740| 22 72 75 6e 5c 6e 22 29 | 3b 0a 58 20 20 20 20 41 |"run\n")|;.X A|
|00003750| 64 64 42 75 74 74 6f 6e | 20 28 70 61 72 65 6e 74 |ddButton| (parent|
|00003760| 2c 20 22 63 6f 6e 74 22 | 2c 20 44 6f 49 74 2c 20 |, "cont"|, DoIt, |
|00003770| 22 63 6f 6e 74 5c 6e 22 | 29 3b 0a 58 20 20 20 20 |"cont\n"|);.X |
|00003780| 41 64 64 42 75 74 74 6f | 6e 20 28 70 61 72 65 6e |AddButto|n (paren|
|00003790| 74 2c 20 22 6e 65 78 74 | 22 2c 20 44 6f 49 74 2c |t, "next|", DoIt,|
|000037a0| 20 22 6e 65 78 74 5c 6e | 22 29 3b 0a 58 20 20 20 | "next\n|");.X |
|000037b0| 20 41 64 64 42 75 74 74 | 6f 6e 20 28 70 61 72 65 | AddButt|on (pare|
|000037c0| 6e 74 2c 20 22 73 74 65 | 70 22 2c 20 44 6f 49 74 |nt, "ste|p", DoIt|
|000037d0| 2c 20 22 73 74 65 70 5c | 6e 22 29 3b 0a 58 0a 58 |, "step\|n");.X.X|
|000037e0| 20 20 20 20 41 64 64 42 | 75 74 74 6f 6e 20 28 70 | AddB|utton (p|
|000037f0| 61 72 65 6e 74 2c 20 22 | 73 74 6f 70 20 61 74 22 |arent, "|stop at"|
|00003800| 2c 20 53 74 6f 70 5f 61 | 74 2c 20 4e 55 4c 4c 29 |, Stop_a|t, NULL)|
|00003810| 3b 0a 58 20 20 20 20 41 | 64 64 42 75 74 74 6f 6e |;.X A|ddButton|
|00003820| 20 28 70 61 72 65 6e 74 | 2c 20 22 73 74 6f 70 20 | (parent|, "stop |
|00003830| 69 6e 22 2c 20 53 74 6f | 70 5f 69 6e 2c 20 4e 55 |in", Sto|p_in, NU|
|00003840| 4c 4c 29 3b 0a 58 20 20 | 20 20 41 64 64 42 75 74 |LL);.X | AddBut|
|00003850| 74 6f 6e 20 28 70 61 72 | 65 6e 74 2c 20 22 64 65 |ton (par|ent, "de|
|00003860| 6c 65 74 65 22 2c 20 44 | 65 6c 65 74 65 2c 20 4e |lete", D|elete, N|
|00003870| 55 4c 4c 29 3b 0a 58 20 | 20 20 20 41 64 64 42 75 |ULL);.X | AddBu|
|00003880| 74 74 6f 6e 20 28 70 61 | 72 65 6e 74 2c 20 22 73 |tton (pa|rent, "s|
|00003890| 74 61 74 75 73 22 2c 20 | 44 6f 49 74 2c 20 22 73 |tatus", |DoIt, "s|
|000038a0| 74 61 74 75 73 5c 6e 22 | 29 3b 0a 58 0a 58 20 20 |tatus\n"|);.X.X |
|000038b0| 20 20 41 64 64 42 75 74 | 74 6f 6e 20 28 70 61 72 | AddBut|ton (par|
|000038c0| 65 6e 74 2c 20 22 77 68 | 65 72 65 22 2c 20 44 6f |ent, "wh|ere", Do|
|000038d0| 49 74 2c 20 22 77 68 65 | 72 65 5c 6e 22 29 3b 0a |It, "whe|re\n");.|
|000038e0| 58 20 20 20 20 41 64 64 | 42 75 74 74 6f 6e 20 28 |X Add|Button (|
|000038f0| 70 61 72 65 6e 74 2c 20 | 22 75 70 22 2c 20 44 6f |parent, |"up", Do|
|00003900| 49 74 2c 20 22 75 70 5c | 6e 22 29 3b 0a 58 20 20 |It, "up\|n");.X |
|00003910| 20 20 41 64 64 42 75 74 | 74 6f 6e 20 28 70 61 72 | AddBut|ton (par|
|00003920| 65 6e 74 2c 20 22 64 6f | 77 6e 22 2c 20 44 6f 49 |ent, "do|wn", DoI|
|00003930| 74 2c 20 22 64 6f 77 6e | 5c 6e 22 29 3b 0a 58 0a |t, "down|\n");.X.|
|00003940| 58 20 20 20 20 41 64 64 | 42 75 74 74 6f 6e 20 28 |X Add|Button (|
|00003950| 70 61 72 65 6e 74 2c 20 | 22 70 72 69 6e 74 22 2c |parent, |"print",|
|00003960| 20 50 72 69 6e 74 2c 20 | 30 29 3b 0a 58 20 20 20 | Print, |0);.X |
|00003970| 20 41 64 64 42 75 74 74 | 6f 6e 20 28 70 61 72 65 | AddButt|on (pare|
|00003980| 6e 74 2c 20 22 70 72 69 | 6e 74 2a 22 2c 20 50 72 |nt, "pri|nt*", Pr|
|00003990| 69 6e 74 2c 20 31 29 3b | 0a 58 0a 58 20 20 20 20 |int, 1);|.X.X |
|000039a0| 41 64 64 42 75 74 74 6f | 6e 20 28 70 61 72 65 6e |AddButto|n (paren|
|000039b0| 74 2c 20 22 66 75 6e 63 | 22 2c 20 46 75 6e 63 2c |t, "func|", Func,|
|000039c0| 20 4e 55 4c 4c 29 3b 0a | 58 20 20 20 20 41 64 64 | NULL);.|X Add|
|000039d0| 42 75 74 74 6f 6e 20 28 | 70 61 72 65 6e 74 2c 20 |Button (|parent, |
|000039e0| 22 66 69 6c 65 22 2c 20 | 46 69 6c 65 2c 20 4e 55 |"file", |File, NU|
|000039f0| 4c 4c 29 3b 0a 58 0a 58 | 20 20 20 20 41 64 64 42 |LL);.X.X| AddB|
|00003a00| 75 74 74 6f 6e 20 28 70 | 61 72 65 6e 74 2c 20 22 |utton (p|arent, "|
|00003a10| 71 75 69 74 22 2c 20 51 | 75 69 74 2c 20 4e 55 4c |quit", Q|uit, NUL|
|00003a20| 4c 29 3b 0a 58 7d 0a 58 | 0a 58 2f 2a 20 20 43 72 |L);.X}.X|.X/* Cr|
|00003a30| 65 61 74 65 20 61 20 63 | 6f 6d 6d 61 6e 64 20 77 |eate a c|ommand w|
|00003a40| 69 64 67 65 74 2c 20 61 | 6e 64 20 74 68 65 20 62 |idget, a|nd the b|
|00003a50| 75 74 74 6f 6e 73 2c 20 | 61 6e 64 20 73 65 74 20 |uttons, |and set |
|00003a60| 75 70 20 74 68 65 20 66 | 69 6c 65 20 6d 65 6e 75 |up the f|ile menu|
|00003a70| 2e 20 20 2a 2f 0a 58 76 | 6f 69 64 20 43 72 65 61 |. */.Xv|oid Crea|
|00003a80| 74 65 43 6f 6d 6d 61 6e | 64 50 61 6e 65 6c 28 70 |teComman|dPanel(p|
|00003a90| 61 72 65 6e 74 29 0a 58 | 57 69 64 67 65 74 20 70 |arent).X|Widget p|
|00003aa0| 61 72 65 6e 74 3b 0a 58 | 7b 0a 58 20 20 20 20 41 |arent;.X|{.X A|
|00003ab0| 72 67 20 61 72 67 73 5b | 31 30 5d 3b 0a 58 20 20 |rg args[|10];.X |
|00003ac0| 20 20 43 61 72 64 69 6e | 61 6c 20 6e 3b 0a 58 0a | Cardin|al n;.X.|
|00003ad0| 58 20 20 20 20 6e 20 3d | 20 30 3b 0a 58 20 20 20 |X n =| 0;.X |
|00003ae0| 20 58 74 53 65 74 41 72 | 67 28 61 72 67 73 5b 6e | XtSetAr|g(args[n|
|00003af0| 5d 2c 20 58 74 4e 68 53 | 70 61 63 65 2c 20 61 70 |], XtNhS|pace, ap|
|00003b00| 70 5f 72 65 73 6f 75 72 | 63 65 73 2e 63 6f 6d 6d |p_resour|ces.comm|
|00003b10| 61 6e 64 48 53 70 61 63 | 65 29 3b 09 09 6e 2b 2b |andHSpac|e);..n++|
|00003b20| 3b 0a 58 20 20 20 20 58 | 74 53 65 74 41 72 67 28 |;.X X|tSetArg(|
|00003b30| 61 72 67 73 5b 6e 5d 2c | 20 58 74 4e 76 53 70 61 |args[n],| XtNvSpa|
|00003b40| 63 65 2c 20 61 70 70 5f | 72 65 73 6f 75 72 63 65 |ce, app_|resource|
|00003b50| 73 2e 63 6f 6d 6d 61 6e | 64 56 53 70 61 63 65 29 |s.comman|dVSpace)|
|00003b60| 3b 09 09 6e 2b 2b 3b 0a | 58 20 20 20 20 58 74 53 |;..n++;.|X XtS|
|00003b70| 65 74 41 72 67 28 61 72 | 67 73 5b 6e 5d 2c 20 58 |etArg(ar|gs[n], X|
|00003b80| 74 4e 6d 61 78 2c 20 61 | 70 70 5f 72 65 73 6f 75 |tNmax, a|pp_resou|
|00003b90| 72 63 65 73 2e 63 6f 6d | 6d 61 6e 64 4d 61 78 48 |rces.com|mandMaxH|
|00003ba0| 65 69 67 68 74 29 3b 09 | 09 6e 2b 2b 3b 0a 58 20 |eight);.|.n++;.X |
|00003bb0| 20 20 20 58 74 53 65 74 | 41 72 67 28 61 72 67 73 | XtSet|Arg(args|
|00003bc0| 5b 6e 5d 2c 20 58 74 4e | 6d 69 6e 2c 20 61 70 70 |[n], XtN|min, app|
|00003bd0| 5f 72 65 73 6f 75 72 63 | 65 73 2e 63 6f 6d 6d 61 |_resourc|es.comma|
|00003be0| 6e 64 4d 69 6e 48 65 69 | 67 68 74 29 3b 09 09 6e |ndMinHei|ght);..n|
|00003bf0| 2b 2b 3b 0a 58 20 20 20 | 20 58 74 53 65 74 41 72 |++;.X | XtSetAr|
|00003c00| 67 28 61 72 67 73 5b 6e | 5d 2c 20 58 74 4e 61 6c |g(args[n|], XtNal|
|00003c10| 6c 6f 77 52 65 73 69 7a | 65 2c 20 28 58 74 41 72 |lowResiz|e, (XtAr|
|00003c20| 67 56 61 6c 29 20 54 72 | 75 65 29 3b 09 09 09 6e |gVal) Tr|ue);...n|
|00003c30| 2b 2b 3b 0a 58 20 20 20 | 20 63 6f 6d 6d 61 6e 64 |++;.X | command|
|00003c40| 57 69 6e 64 6f 77 20 3d | 20 58 74 43 72 65 61 74 |Window =| XtCreat|
|00003c50| 65 4d 61 6e 61 67 65 64 | 57 69 64 67 65 74 28 22 |eManaged|Widget("|
|00003c60| 63 6f 6d 6d 61 6e 64 57 | 69 6e 64 6f 77 22 2c 20 |commandW|indow", |
|00003c70| 62 6f 78 57 69 64 67 65 | 74 43 6c 61 73 73 2c 20 |boxWidge|tClass, |
|00003c80| 0a 58 09 09 09 09 09 20 | 20 70 61 72 65 6e 74 2c |.X..... | parent,|
|00003c90| 20 61 72 67 73 2c 20 6e | 29 3b 0a 58 20 20 20 20 | args, n|);.X |
|00003ca0| 43 72 65 61 74 65 42 75 | 74 74 6f 6e 73 28 63 6f |CreateBu|ttons(co|
|00003cb0| 6d 6d 61 6e 64 57 69 6e | 64 6f 77 29 3b 0a 58 20 |mmandWin|dow);.X |
|00003cc0| 20 20 20 53 65 74 55 70 | 46 69 6c 65 4d 65 6e 75 | SetUp|FileMenu|
|00003cd0| 28 29 3b 0a 58 7d 0a 45 | 4e 44 5f 4f 46 5f 46 49 |();.X}.E|ND_OF_FI|
|00003ce0| 4c 45 0a 69 66 20 74 65 | 73 74 20 39 38 34 36 20 |LE.if te|st 9846 |
|00003cf0| 2d 6e 65 20 60 77 63 20 | 2d 63 20 3c 27 63 6f 6d |-ne `wc |-c <'com|
|00003d00| 6d 61 6e 64 2e 63 27 60 | 3b 20 74 68 65 6e 0a 20 |mand.c'`|; then. |
|00003d10| 20 20 20 65 63 68 6f 20 | 73 68 61 72 3a 20 5c 22 | echo |shar: \"|
|00003d20| 27 63 6f 6d 6d 61 6e 64 | 2e 63 27 5c 22 20 75 6e |'command|.c'\" un|
|00003d30| 70 61 63 6b 65 64 20 77 | 69 74 68 20 77 72 6f 6e |packed w|ith wron|
|00003d40| 67 20 73 69 7a 65 21 0a | 66 69 0a 23 20 65 6e 64 |g size!.|fi.# end|
|00003d50| 20 6f 66 20 27 63 6f 6d | 6d 61 6e 64 2e 63 27 0a | of 'com|mand.c'.|
|00003d60| 66 69 0a 69 66 20 74 65 | 73 74 20 2d 66 20 27 72 |fi.if te|st -f 'r|
|00003d70| 65 67 65 78 2e 63 27 20 | 2d 61 20 22 24 7b 31 7d |egex.c' |-a "${1}|
|00003d80| 22 20 21 3d 20 22 2d 63 | 22 20 3b 20 74 68 65 6e |" != "-c|" ; then|
|00003d90| 20 0a 20 20 65 63 68 6f | 20 73 68 61 72 3a 20 57 | . echo| shar: W|
|00003da0| 69 6c 6c 20 6e 6f 74 20 | 63 6c 6f 62 62 65 72 20 |ill not |clobber |
|00003db0| 65 78 69 73 74 69 6e 67 | 20 66 69 6c 65 20 5c 22 |existing| file \"|
|00003dc0| 27 72 65 67 65 78 2e 63 | 27 5c 22 0a 65 6c 73 65 |'regex.c|'\".else|
|00003dd0| 0a 65 63 68 6f 20 73 68 | 61 72 3a 20 45 78 74 72 |.echo sh|ar: Extr|
|00003de0| 61 63 74 69 6e 67 20 5c | 22 27 72 65 67 65 78 2e |acting \|"'regex.|
|00003df0| 63 27 5c 22 20 5c 28 34 | 35 39 33 37 20 63 68 61 |c'\" \(4|5937 cha|
|00003e00| 72 61 63 74 65 72 73 5c | 29 0a 73 65 64 20 22 73 |racters\|).sed "s|
|00003e10| 2f 5e 58 2f 2f 22 20 3e | 27 72 65 67 65 78 2e 63 |/^X//" >|'regex.c|
|00003e20| 27 20 3c 3c 27 45 4e 44 | 5f 4f 46 5f 46 49 4c 45 |' <<'END|_OF_FILE|
|00003e30| 27 0a 58 2f 2a 20 45 78 | 74 65 6e 64 65 64 20 72 |'.X/* Ex|tended r|
|00003e40| 65 67 75 6c 61 72 20 65 | 78 70 72 65 73 73 69 6f |egular e|xpressio|
|00003e50| 6e 20 6d 61 74 63 68 69 | 6e 67 20 61 6e 64 20 73 |n matchi|ng and s|
|00003e60| 65 61 72 63 68 2e 0a 58 | 20 20 20 43 6f 70 79 72 |earch..X| Copyr|
|00003e70| 69 67 68 74 20 28 43 29 | 20 31 39 38 35 20 46 72 |ight (C)| 1985 Fr|
|00003e80| 65 65 20 53 6f 66 74 77 | 61 72 65 20 46 6f 75 6e |ee Softw|are Foun|
|00003e90| 64 61 74 69 6f 6e 2c 20 | 49 6e 63 2e 0a 58 0a 58 |dation, |Inc..X.X|
|00003ea0| 09 09 20 20 20 20 20 20 | 20 4e 4f 20 57 41 52 52 |.. | NO WARR|
|00003eb0| 41 4e 54 59 0a 58 0a 58 | 20 20 42 45 43 41 55 53 |ANTY.X.X| BECAUS|
|00003ec0| 45 20 54 48 49 53 20 50 | 52 4f 47 52 41 4d 20 49 |E THIS P|ROGRAM I|
|00003ed0| 53 20 4c 49 43 45 4e 53 | 45 44 20 46 52 45 45 20 |S LICENS|ED FREE |
|00003ee0| 4f 46 20 43 48 41 52 47 | 45 2c 20 57 45 20 50 52 |OF CHARG|E, WE PR|
|00003ef0| 4f 56 49 44 45 20 41 42 | 53 4f 4c 55 54 45 4c 59 |OVIDE AB|SOLUTELY|
|00003f00| 0a 58 4e 4f 20 57 41 52 | 52 41 4e 54 59 2c 20 54 |.XNO WAR|RANTY, T|
|00003f10| 4f 20 54 48 45 20 45 58 | 54 45 4e 54 20 50 45 52 |O THE EX|TENT PER|
|00003f20| 4d 49 54 54 45 44 20 42 | 59 20 41 50 50 4c 49 43 |MITTED B|Y APPLIC|
|00003f30| 41 42 4c 45 20 53 54 41 | 54 45 20 4c 41 57 2e 20 |ABLE STA|TE LAW. |
|00003f40| 20 45 58 43 45 50 54 0a | 58 57 48 45 4e 20 4f 54 | EXCEPT.|XWHEN OT|
|00003f50| 48 45 52 57 49 53 45 20 | 53 54 41 54 45 44 20 49 |HERWISE |STATED I|
|00003f60| 4e 20 57 52 49 54 49 4e | 47 2c 20 46 52 45 45 20 |N WRITIN|G, FREE |
|00003f70| 53 4f 46 54 57 41 52 45 | 20 46 4f 55 4e 44 41 54 |SOFTWARE| FOUNDAT|
|00003f80| 49 4f 4e 2c 20 49 4e 43 | 2c 0a 58 52 49 43 48 41 |ION, INC|,.XRICHA|
|00003f90| 52 44 20 4d 2e 20 53 54 | 41 4c 4c 4d 41 4e 20 41 |RD M. ST|ALLMAN A|
|00003fa0| 4e 44 2f 4f 52 20 4f 54 | 48 45 52 20 50 41 52 54 |ND/OR OT|HER PART|
|00003fb0| 49 45 53 20 50 52 4f 56 | 49 44 45 20 54 48 49 53 |IES PROV|IDE THIS|
|00003fc0| 20 50 52 4f 47 52 41 4d | 20 22 41 53 20 49 53 22 | PROGRAM| "AS IS"|
|00003fd0| 0a 58 57 49 54 48 4f 55 | 54 20 57 41 52 52 41 4e |.XWITHOU|T WARRAN|
|00003fe0| 54 59 20 4f 46 20 41 4e | 59 20 4b 49 4e 44 2c 20 |TY OF AN|Y KIND, |
|00003ff0| 45 49 54 48 45 52 20 45 | 58 50 52 45 53 53 45 44 |EITHER E|XPRESSED|
|00004000| 20 4f 52 20 49 4d 50 4c | 49 45 44 2c 20 49 4e 43 | OR IMPL|IED, INC|
|00004010| 4c 55 44 49 4e 47 2c 0a | 58 42 55 54 20 4e 4f 54 |LUDING,.|XBUT NOT|
|00004020| 20 4c 49 4d 49 54 45 44 | 20 54 4f 2c 20 54 48 45 | LIMITED| TO, THE|
|00004030| 20 49 4d 50 4c 49 45 44 | 20 57 41 52 52 41 4e 54 | IMPLIED| WARRANT|
|00004040| 49 45 53 20 4f 46 20 4d | 45 52 43 48 41 4e 54 41 |IES OF M|ERCHANTA|
|00004050| 42 49 4c 49 54 59 20 41 | 4e 44 0a 58 46 49 54 4e |BILITY A|ND.XFITN|
|00004060| 45 53 53 20 46 4f 52 20 | 41 20 50 41 52 54 49 43 |ESS FOR |A PARTIC|
|00004070| 55 4c 41 52 20 50 55 52 | 50 4f 53 45 2e 20 20 54 |ULAR PUR|POSE. T|
|00004080| 48 45 20 45 4e 54 49 52 | 45 20 52 49 53 4b 20 41 |HE ENTIR|E RISK A|
|00004090| 53 20 54 4f 20 54 48 45 | 20 51 55 41 4c 49 54 59 |S TO THE| QUALITY|
|000040a0| 0a 58 41 4e 44 20 50 45 | 52 46 4f 52 4d 41 4e 43 |.XAND PE|RFORMANC|
|000040b0| 45 20 4f 46 20 54 48 45 | 20 50 52 4f 47 52 41 4d |E OF THE| PROGRAM|
|000040c0| 20 49 53 20 57 49 54 48 | 20 59 4f 55 2e 20 20 53 | IS WITH| YOU. S|
|000040d0| 48 4f 55 4c 44 20 54 48 | 45 20 50 52 4f 47 52 41 |HOULD TH|E PROGRA|
|000040e0| 4d 20 50 52 4f 56 45 0a | 58 44 45 46 45 43 54 49 |M PROVE.|XDEFECTI|
|000040f0| 56 45 2c 20 59 4f 55 20 | 41 53 53 55 4d 45 20 54 |VE, YOU |ASSUME T|
|00004100| 48 45 20 43 4f 53 54 20 | 4f 46 20 41 4c 4c 20 4e |HE COST |OF ALL N|
|00004110| 45 43 45 53 53 41 52 59 | 20 53 45 52 56 49 43 49 |ECESSARY| SERVICI|
|00004120| 4e 47 2c 20 52 45 50 41 | 49 52 20 4f 52 0a 58 43 |NG, REPA|IR OR.XC|
|00004130| 4f 52 52 45 43 54 49 4f | 4e 2e 0a 58 0a 58 20 49 |ORRECTIO|N..X.X I|
|00004140| 4e 20 4e 4f 20 45 56 45 | 4e 54 20 55 4e 4c 45 53 |N NO EVE|NT UNLES|
|00004150| 53 20 52 45 51 55 49 52 | 45 44 20 42 59 20 41 50 |S REQUIR|ED BY AP|
|00004160| 50 4c 49 43 41 42 4c 45 | 20 4c 41 57 20 57 49 4c |PLICABLE| LAW WIL|
|00004170| 4c 20 52 49 43 48 41 52 | 44 20 4d 2e 0a 58 53 54 |L RICHAR|D M..XST|
|00004180| 41 4c 4c 4d 41 4e 2c 20 | 54 48 45 20 46 52 45 45 |ALLMAN, |THE FREE|
|00004190| 20 53 4f 46 54 57 41 52 | 45 20 46 4f 55 4e 44 41 | SOFTWAR|E FOUNDA|
|000041a0| 54 49 4f 4e 2c 20 49 4e | 43 2e 2c 20 41 4e 44 2f |TION, IN|C., AND/|
|000041b0| 4f 52 20 41 4e 59 20 4f | 54 48 45 52 20 50 41 52 |OR ANY O|THER PAR|
|000041c0| 54 59 0a 58 57 48 4f 20 | 4d 41 59 20 4d 4f 44 49 |TY.XWHO |MAY MODI|
|000041d0| 46 59 20 41 4e 44 20 52 | 45 44 49 53 54 52 49 42 |FY AND R|EDISTRIB|
|000041e0| 55 54 45 20 54 48 49 53 | 20 50 52 4f 47 52 41 4d |UTE THIS| PROGRAM|
|000041f0| 20 41 53 20 50 45 52 4d | 49 54 54 45 44 20 42 45 | AS PERM|ITTED BE|
|00004200| 4c 4f 57 2c 20 42 45 0a | 58 4c 49 41 42 4c 45 20 |LOW, BE.|XLIABLE |
|00004210| 54 4f 20 59 4f 55 20 46 | 4f 52 20 44 41 4d 41 47 |TO YOU F|OR DAMAG|
|00004220| 45 53 2c 20 49 4e 43 4c | 55 44 49 4e 47 20 41 4e |ES, INCL|UDING AN|
|00004230| 59 20 4c 4f 53 54 20 50 | 52 4f 46 49 54 53 2c 20 |Y LOST P|ROFITS, |
|00004240| 4c 4f 53 54 20 4d 4f 4e | 49 45 53 2c 20 4f 52 0a |LOST MON|IES, OR.|
|00004250| 58 4f 54 48 45 52 20 53 | 50 45 43 49 41 4c 2c 20 |XOTHER S|PECIAL, |
|00004260| 49 4e 43 49 44 45 4e 54 | 41 4c 20 4f 52 20 43 4f |INCIDENT|AL OR CO|
|00004270| 4e 53 45 51 55 45 4e 54 | 49 41 4c 20 44 41 4d 41 |NSEQUENT|IAL DAMA|
|00004280| 47 45 53 20 41 52 49 53 | 49 4e 47 20 4f 55 54 20 |GES ARIS|ING OUT |
|00004290| 4f 46 20 54 48 45 0a 58 | 55 53 45 20 4f 52 20 49 |OF THE.X|USE OR I|
|000042a0| 4e 41 42 49 4c 49 54 59 | 20 54 4f 20 55 53 45 20 |NABILITY| TO USE |
|000042b0| 28 49 4e 43 4c 55 44 49 | 4e 47 20 42 55 54 20 4e |(INCLUDI|NG BUT N|
|000042c0| 4f 54 20 4c 49 4d 49 54 | 45 44 20 54 4f 20 4c 4f |OT LIMIT|ED TO LO|
|000042d0| 53 53 20 4f 46 20 44 41 | 54 41 20 4f 52 0a 58 44 |SS OF DA|TA OR.XD|
|000042e0| 41 54 41 20 42 45 49 4e | 47 20 52 45 4e 44 45 52 |ATA BEIN|G RENDER|
|000042f0| 45 44 20 49 4e 41 43 43 | 55 52 41 54 45 20 4f 52 |ED INACC|URATE OR|
|00004300| 20 4c 4f 53 53 45 53 20 | 53 55 53 54 41 49 4e 45 | LOSSES |SUSTAINE|
|00004310| 44 20 42 59 20 54 48 49 | 52 44 20 50 41 52 54 49 |D BY THI|RD PARTI|
|00004320| 45 53 20 4f 52 0a 58 41 | 20 46 41 49 4c 55 52 45 |ES OR.XA| FAILURE|
|00004330| 20 4f 46 20 54 48 45 20 | 50 52 4f 47 52 41 4d 20 | OF THE |PROGRAM |
|00004340| 54 4f 20 4f 50 45 52 41 | 54 45 20 57 49 54 48 20 |TO OPERA|TE WITH |
|00004350| 41 4e 59 20 4f 54 48 45 | 52 20 50 52 4f 47 52 41 |ANY OTHE|R PROGRA|
|00004360| 4d 53 29 20 54 48 49 53 | 0a 58 50 52 4f 47 52 41 |MS) THIS|.XPROGRA|
|00004370| 4d 2c 20 45 56 45 4e 20 | 49 46 20 59 4f 55 20 48 |M, EVEN |IF YOU H|
|00004380| 41 56 45 20 42 45 45 4e | 20 41 44 56 49 53 45 44 |AVE BEEN| ADVISED|
|00004390| 20 4f 46 20 54 48 45 20 | 50 4f 53 53 49 42 49 4c | OF THE |POSSIBIL|
|000043a0| 49 54 59 20 4f 46 20 53 | 55 43 48 0a 58 44 41 4d |ITY OF S|UCH.XDAM|
|000043b0| 41 47 45 53 2c 20 4f 52 | 20 46 4f 52 20 41 4e 59 |AGES, OR| FOR ANY|
|000043c0| 20 43 4c 41 49 4d 20 42 | 59 20 41 4e 59 20 4f 54 | CLAIM B|Y ANY OT|
|000043d0| 48 45 52 20 50 41 52 54 | 59 2e 0a 58 0a 58 09 09 |HER PART|Y..X.X..|
|000043e0| 47 45 4e 45 52 41 4c 20 | 50 55 42 4c 49 43 20 4c |GENERAL |PUBLIC L|
|000043f0| 49 43 45 4e 53 45 20 54 | 4f 20 43 4f 50 59 0a 58 |ICENSE T|O COPY.X|
|00004400| 0a 58 20 20 31 2e 20 59 | 6f 75 20 6d 61 79 20 63 |.X 1. Y|ou may c|
|00004410| 6f 70 79 20 61 6e 64 20 | 64 69 73 74 72 69 62 75 |opy and |distribu|
|00004420| 74 65 20 76 65 72 62 61 | 74 69 6d 20 63 6f 70 69 |te verba|tim copi|
|00004430| 65 73 20 6f 66 20 74 68 | 69 73 20 73 6f 75 72 63 |es of th|is sourc|
|00004440| 65 20 66 69 6c 65 0a 58 | 61 73 20 79 6f 75 20 72 |e file.X|as you r|
|00004450| 65 63 65 69 76 65 20 69 | 74 2c 20 69 6e 20 61 6e |eceive i|t, in an|
|00004460| 79 20 6d 65 64 69 75 6d | 2c 20 70 72 6f 76 69 64 |y medium|, provid|
|00004470| 65 64 20 74 68 61 74 20 | 79 6f 75 20 63 6f 6e 73 |ed that |you cons|
|00004480| 70 69 63 75 6f 75 73 6c | 79 20 61 6e 64 0a 58 61 |picuousl|y and.Xa|
|00004490| 70 70 72 6f 70 72 69 61 | 74 65 6c 79 20 70 75 62 |ppropria|tely pub|
|000044a0| 6c 69 73 68 20 6f 6e 20 | 65 61 63 68 20 63 6f 70 |lish on |each cop|
|000044b0| 79 20 61 20 76 61 6c 69 | 64 20 63 6f 70 79 72 69 |y a vali|d copyri|
|000044c0| 67 68 74 20 6e 6f 74 69 | 63 65 20 22 43 6f 70 79 |ght noti|ce "Copy|
|000044d0| 72 69 67 68 74 0a 58 28 | 43 29 20 31 39 38 35 20 |right.X(|C) 1985 |
|000044e0| 46 72 65 65 20 53 6f 66 | 74 77 61 72 65 20 46 6f |Free Sof|tware Fo|
|000044f0| 75 6e 64 61 74 69 6f 6e | 2c 20 49 6e 63 2e 22 3b |undation|, Inc.";|
|00004500| 20 61 6e 64 20 69 6e 63 | 6c 75 64 65 20 66 6f 6c | and inc|lude fol|
|00004510| 6c 6f 77 69 6e 67 20 74 | 68 65 0a 58 63 6f 70 79 |lowing t|he.Xcopy|
|00004520| 72 69 67 68 74 20 6e 6f | 74 69 63 65 20 61 20 76 |right no|tice a v|
|00004530| 65 72 62 61 74 69 6d 20 | 63 6f 70 79 20 6f 66 20 |erbatim |copy of |
|00004540| 74 68 65 20 61 62 6f 76 | 65 20 64 69 73 63 6c 61 |the abov|e discla|
|00004550| 69 6d 65 72 20 6f 66 20 | 77 61 72 72 61 6e 74 79 |imer of |warranty|
|00004560| 0a 58 61 6e 64 20 6f 66 | 20 74 68 69 73 20 4c 69 |.Xand of| this Li|
|00004570| 63 65 6e 73 65 2e 20 20 | 59 6f 75 20 6d 61 79 20 |cense. |You may |
|00004580| 63 68 61 72 67 65 20 61 | 20 64 69 73 74 72 69 62 |charge a| distrib|
|00004590| 75 74 69 6f 6e 20 66 65 | 65 20 66 6f 72 20 74 68 |ution fe|e for th|
|000045a0| 65 0a 58 70 68 79 73 69 | 63 61 6c 20 61 63 74 20 |e.Xphysi|cal act |
|000045b0| 6f 66 20 74 72 61 6e 73 | 66 65 72 72 69 6e 67 20 |of trans|ferring |
|000045c0| 61 20 63 6f 70 79 2e 0a | 58 0a 58 20 20 32 2e 20 |a copy..|X.X 2. |
|000045d0| 59 6f 75 20 6d 61 79 20 | 6d 6f 64 69 66 79 20 79 |You may |modify y|
|000045e0| 6f 75 72 20 63 6f 70 79 | 20 6f 72 20 63 6f 70 69 |our copy| or copi|
|000045f0| 65 73 20 6f 66 20 74 68 | 69 73 20 73 6f 75 72 63 |es of th|is sourc|
|00004600| 65 20 66 69 6c 65 20 6f | 72 0a 58 61 6e 79 20 70 |e file o|r.Xany p|
|00004610| 6f 72 74 69 6f 6e 20 6f | 66 20 69 74 2c 20 61 6e |ortion o|f it, an|
|00004620| 64 20 63 6f 70 79 20 61 | 6e 64 20 64 69 73 74 72 |d copy a|nd distr|
|00004630| 69 62 75 74 65 20 73 75 | 63 68 20 6d 6f 64 69 66 |ibute su|ch modif|
|00004640| 69 63 61 74 69 6f 6e 73 | 20 75 6e 64 65 72 0a 58 |ications| under.X|
|00004650| 74 68 65 20 74 65 72 6d | 73 20 6f 66 20 50 61 72 |the term|s of Par|
|00004660| 61 67 72 61 70 68 20 31 | 20 61 62 6f 76 65 2c 20 |agraph 1| above, |
|00004670| 70 72 6f 76 69 64 65 64 | 20 74 68 61 74 20 79 6f |provided| that yo|
|00004680| 75 20 61 6c 73 6f 20 64 | 6f 20 74 68 65 20 66 6f |u also d|o the fo|
|00004690| 6c 6c 6f 77 69 6e 67 3a | 0a 58 0a 58 20 20 20 20 |llowing:|.X.X |
|000046a0| 61 29 20 63 61 75 73 65 | 20 74 68 65 20 6d 6f 64 |a) cause| the mod|
|000046b0| 69 66 69 65 64 20 66 69 | 6c 65 73 20 74 6f 20 63 |ified fi|les to c|
|000046c0| 61 72 72 79 20 70 72 6f | 6d 69 6e 65 6e 74 20 6e |arry pro|minent n|
|000046d0| 6f 74 69 63 65 73 20 73 | 74 61 74 69 6e 67 0a 58 |otices s|tating.X|
|000046e0| 20 20 20 20 74 68 61 74 | 20 79 6f 75 20 63 68 61 | that| you cha|
|000046f0| 6e 67 65 64 20 74 68 65 | 20 66 69 6c 65 73 20 61 |nged the| files a|
|00004700| 6e 64 20 74 68 65 20 64 | 61 74 65 20 6f 66 20 61 |nd the d|ate of a|
|00004710| 6e 79 20 63 68 61 6e 67 | 65 3b 20 61 6e 64 0a 58 |ny chang|e; and.X|
|00004720| 0a 58 20 20 20 20 62 29 | 20 63 61 75 73 65 20 74 |.X b)| cause t|
|00004730| 68 65 20 77 68 6f 6c 65 | 20 6f 66 20 61 6e 79 20 |he whole| of any |
|00004740| 77 6f 72 6b 20 74 68 61 | 74 20 79 6f 75 20 64 69 |work tha|t you di|
|00004750| 73 74 72 69 62 75 74 65 | 20 6f 72 20 70 75 62 6c |stribute| or publ|
|00004760| 69 73 68 2c 0a 58 20 20 | 20 20 74 68 61 74 20 69 |ish,.X | that i|
|00004770| 6e 20 77 68 6f 6c 65 20 | 6f 72 20 69 6e 20 70 61 |n whole |or in pa|
|00004780| 72 74 20 63 6f 6e 74 61 | 69 6e 73 20 6f 72 20 69 |rt conta|ins or i|
|00004790| 73 20 61 20 64 65 72 69 | 76 61 74 69 76 65 20 6f |s a deri|vative o|
|000047a0| 66 20 74 68 69 73 0a 58 | 20 20 20 20 70 72 6f 67 |f this.X| prog|
|000047b0| 72 61 6d 20 6f 72 20 61 | 6e 79 20 70 61 72 74 20 |ram or a|ny part |
|000047c0| 74 68 65 72 65 6f 66 2c | 20 74 6f 20 62 65 20 6c |thereof,| to be l|
|000047d0| 69 63 65 6e 73 65 64 20 | 61 74 20 6e 6f 20 63 68 |icensed |at no ch|
|000047e0| 61 72 67 65 20 74 6f 20 | 61 6c 6c 0a 58 20 20 20 |arge to |all.X |
|000047f0| 20 74 68 69 72 64 20 70 | 61 72 74 69 65 73 20 6f | third p|arties o|
|00004800| 6e 20 74 65 72 6d 73 20 | 69 64 65 6e 74 69 63 61 |n terms |identica|
|00004810| 6c 20 74 6f 20 74 68 6f | 73 65 20 63 6f 6e 74 61 |l to tho|se conta|
|00004820| 69 6e 65 64 20 69 6e 20 | 74 68 69 73 0a 58 20 20 |ined in |this.X |
|00004830| 20 20 4c 69 63 65 6e 73 | 65 20 41 67 72 65 65 6d | Licens|e Agreem|
|00004840| 65 6e 74 20 28 65 78 63 | 65 70 74 20 74 68 61 74 |ent (exc|ept that|
|00004850| 20 79 6f 75 20 6d 61 79 | 20 63 68 6f 6f 73 65 20 | you may| choose |
|00004860| 74 6f 20 67 72 61 6e 74 | 20 6d 6f 72 65 20 65 78 |to grant| more ex|
|00004870| 74 65 6e 73 69 76 65 0a | 58 20 20 20 20 77 61 72 |tensive.|X war|
|00004880| 72 61 6e 74 79 20 70 72 | 6f 74 65 63 74 69 6f 6e |ranty pr|otection|
|00004890| 20 74 6f 20 73 6f 6d 65 | 20 6f 72 20 61 6c 6c 20 | to some| or all |
|000048a0| 74 68 69 72 64 20 70 61 | 72 74 69 65 73 2c 20 61 |third pa|rties, a|
|000048b0| 74 20 79 6f 75 72 20 6f | 70 74 69 6f 6e 29 2e 0a |t your o|ption)..|
|000048c0| 58 0a 58 20 20 20 20 63 | 29 20 59 6f 75 20 6d 61 |X.X c|) You ma|
|000048d0| 79 20 63 68 61 72 67 65 | 20 61 20 64 69 73 74 72 |y charge| a distr|
|000048e0| 69 62 75 74 69 6f 6e 20 | 66 65 65 20 66 6f 72 20 |ibution |fee for |
|000048f0| 74 68 65 20 70 68 79 73 | 69 63 61 6c 20 61 63 74 |the phys|ical act|
|00004900| 20 6f 66 0a 58 20 20 20 | 20 74 72 61 6e 73 66 65 | of.X | transfe|
|00004910| 72 72 69 6e 67 20 61 20 | 63 6f 70 79 2c 20 61 6e |rring a |copy, an|
|00004920| 64 20 79 6f 75 20 6d 61 | 79 20 61 74 20 79 6f 75 |d you ma|y at you|
|00004930| 72 20 6f 70 74 69 6f 6e | 20 6f 66 66 65 72 20 77 |r option| offer w|
|00004940| 61 72 72 61 6e 74 79 0a | 58 20 20 20 20 70 72 6f |arranty.|X pro|
|00004950| 74 65 63 74 69 6f 6e 20 | 69 6e 20 65 78 63 68 61 |tection |in excha|
|00004960| 6e 67 65 20 66 6f 72 20 | 61 20 66 65 65 2e 0a 58 |nge for |a fee..X|
|00004970| 0a 58 4d 65 72 65 20 61 | 67 67 72 65 67 61 74 69 |.XMere a|ggregati|
|00004980| 6f 6e 20 6f 66 20 61 6e | 6f 74 68 65 72 20 75 6e |on of an|other un|
|00004990| 72 65 6c 61 74 65 64 20 | 70 72 6f 67 72 61 6d 20 |related |program |
|000049a0| 77 69 74 68 20 74 68 69 | 73 20 70 72 6f 67 72 61 |with thi|s progra|
|000049b0| 6d 20 28 6f 72 20 69 74 | 73 0a 58 64 65 72 69 76 |m (or it|s.Xderiv|
|000049c0| 61 74 69 76 65 29 20 6f | 6e 20 61 20 76 6f 6c 75 |ative) o|n a volu|
|000049d0| 6d 65 20 6f 66 20 61 20 | 73 74 6f 72 61 67 65 20 |me of a |storage |
|000049e0| 6f 72 20 64 69 73 74 72 | 69 62 75 74 69 6f 6e 20 |or distr|ibution |
|000049f0| 6d 65 64 69 75 6d 20 64 | 6f 65 73 20 6e 6f 74 20 |medium d|oes not |
|00004a00| 62 72 69 6e 67 0a 58 74 | 68 65 20 6f 74 68 65 72 |bring.Xt|he other|
|00004a10| 20 70 72 6f 67 72 61 6d | 20 75 6e 64 65 72 20 74 | program| under t|
|00004a20| 68 65 20 73 63 6f 70 65 | 20 6f 66 20 74 68 65 73 |he scope| of thes|
|00004a30| 65 20 74 65 72 6d 73 2e | 0a 58 0a 58 20 20 33 2e |e terms.|.X.X 3.|
|00004a40| 20 59 6f 75 20 6d 61 79 | 20 63 6f 70 79 20 61 6e | You may| copy an|
|00004a50| 64 20 64 69 73 74 72 69 | 62 75 74 65 20 74 68 69 |d distri|bute thi|
|00004a60| 73 20 70 72 6f 67 72 61 | 6d 20 28 6f 72 20 61 20 |s progra|m (or a |
|00004a70| 70 6f 72 74 69 6f 6e 20 | 6f 72 20 64 65 72 69 76 |portion |or deriv|
|00004a80| 61 74 69 76 65 0a 58 6f | 66 20 69 74 2c 20 75 6e |ative.Xo|f it, un|
|00004a90| 64 65 72 20 50 61 72 61 | 67 72 61 70 68 20 32 29 |der Para|graph 2)|
|00004aa0| 20 69 6e 20 6f 62 6a 65 | 63 74 20 63 6f 64 65 20 | in obje|ct code |
|00004ab0| 6f 72 20 65 78 65 63 75 | 74 61 62 6c 65 20 66 6f |or execu|table fo|
|00004ac0| 72 6d 20 75 6e 64 65 72 | 20 74 68 65 20 74 65 72 |rm under| the ter|
|00004ad0| 6d 73 0a 58 6f 66 20 50 | 61 72 61 67 72 61 70 68 |ms.Xof P|aragraph|
|00004ae0| 73 20 31 20 61 6e 64 20 | 32 20 61 62 6f 76 65 20 |s 1 and |2 above |
|00004af0| 70 72 6f 76 69 64 65 64 | 20 74 68 61 74 20 79 6f |provided| that yo|
|00004b00| 75 20 61 6c 73 6f 20 64 | 6f 20 6f 6e 65 20 6f 66 |u also d|o one of|
|00004b10| 20 74 68 65 20 66 6f 6c | 6c 6f 77 69 6e 67 3a 0a | the fol|lowing:.|
|00004b20| 58 0a 58 20 20 20 20 61 | 29 20 61 63 63 6f 6d 70 |X.X a|) accomp|
|00004b30| 61 6e 79 20 69 74 20 77 | 69 74 68 20 74 68 65 20 |any it w|ith the |
|00004b40| 63 6f 6d 70 6c 65 74 65 | 20 63 6f 72 72 65 73 70 |complete| corresp|
|00004b50| 6f 6e 64 69 6e 67 20 6d | 61 63 68 69 6e 65 2d 72 |onding m|achine-r|
|00004b60| 65 61 64 61 62 6c 65 0a | 58 20 20 20 20 73 6f 75 |eadable.|X sou|
|00004b70| 72 63 65 20 63 6f 64 65 | 2c 20 77 68 69 63 68 20 |rce code|, which |
|00004b80| 6d 75 73 74 20 62 65 20 | 64 69 73 74 72 69 62 75 |must be |distribu|
|00004b90| 74 65 64 20 75 6e 64 65 | 72 20 74 68 65 20 74 65 |ted unde|r the te|
|00004ba0| 72 6d 73 20 6f 66 0a 58 | 20 20 20 20 50 61 72 61 |rms of.X| Para|
|00004bb0| 67 72 61 70 68 73 20 31 | 20 61 6e 64 20 32 20 61 |graphs 1| and 2 a|
|00004bc0| 62 6f 76 65 3b 20 6f 72 | 2c 0a 58 0a 58 20 20 20 |bove; or|,.X.X |
|00004bd0| 20 62 29 20 61 63 63 6f | 6d 70 61 6e 79 20 69 74 | b) acco|mpany it|
|00004be0| 20 77 69 74 68 20 61 20 | 77 72 69 74 74 65 6e 20 | with a |written |
|00004bf0| 6f 66 66 65 72 2c 20 76 | 61 6c 69 64 20 66 6f 72 |offer, v|alid for|
|00004c00| 20 61 74 20 6c 65 61 73 | 74 20 74 68 72 65 65 0a | at leas|t three.|
|00004c10| 58 20 20 20 20 79 65 61 | 72 73 2c 20 74 6f 20 67 |X yea|rs, to g|
|00004c20| 69 76 65 20 61 6e 79 20 | 74 68 69 72 64 20 70 61 |ive any |third pa|
|00004c30| 72 74 79 20 66 72 65 65 | 20 28 65 78 63 65 70 74 |rty free| (except|
|00004c40| 20 66 6f 72 20 61 20 6e | 6f 6d 69 6e 61 6c 0a 58 | for a n|ominal.X|
|00004c50| 20 20 20 20 73 68 69 70 | 70 69 6e 67 20 63 68 61 | ship|ping cha|
|00004c60| 72 67 65 29 20 61 20 63 | 6f 6d 70 6c 65 74 65 20 |rge) a c|omplete |
|00004c70| 6d 61 63 68 69 6e 65 2d | 72 65 61 64 61 62 6c 65 |machine-|readable|
|00004c80| 20 63 6f 70 79 20 6f 66 | 20 74 68 65 0a 58 20 20 | copy of| the.X |
|00004c90| 20 20 63 6f 72 72 65 73 | 70 6f 6e 64 69 6e 67 20 | corres|ponding |
|00004ca0| 73 6f 75 72 63 65 20 63 | 6f 64 65 2c 20 74 6f 20 |source c|ode, to |
|00004cb0| 62 65 20 64 69 73 74 72 | 69 62 75 74 65 64 20 75 |be distr|ibuted u|
|00004cc0| 6e 64 65 72 20 74 68 65 | 20 74 65 72 6d 73 20 6f |nder the| terms o|
|00004cd0| 66 0a 58 20 20 20 20 50 | 61 72 61 67 72 61 70 68 |f.X P|aragraph|
|00004ce0| 73 20 31 20 61 6e 64 20 | 32 20 61 62 6f 76 65 3b |s 1 and |2 above;|
|00004cf0| 20 6f 72 2c 0a 58 0a 58 | 20 20 20 20 63 29 20 61 | or,.X.X| c) a|
|00004d00| 63 63 6f 6d 70 61 6e 79 | 20 69 74 20 77 69 74 68 |ccompany| it with|
|00004d10| 20 74 68 65 20 69 6e 66 | 6f 72 6d 61 74 69 6f 6e | the inf|ormation|
|00004d20| 20 79 6f 75 20 72 65 63 | 65 69 76 65 64 20 61 73 | you rec|eived as|
|00004d30| 20 74 6f 20 77 68 65 72 | 65 20 74 68 65 0a 58 20 | to wher|e the.X |
|00004d40| 20 20 20 63 6f 72 72 65 | 73 70 6f 6e 64 69 6e 67 | corre|sponding|
|00004d50| 20 73 6f 75 72 63 65 20 | 63 6f 64 65 20 6d 61 79 | source |code may|
|00004d60| 20 62 65 20 6f 62 74 61 | 69 6e 65 64 2e 20 20 28 | be obta|ined. (|
|00004d70| 54 68 69 73 20 61 6c 74 | 65 72 6e 61 74 69 76 65 |This alt|ernative|
|00004d80| 20 69 73 0a 58 20 20 20 | 20 61 6c 6c 6f 77 65 64 | is.X | allowed|
|00004d90| 20 6f 6e 6c 79 20 66 6f | 72 20 6e 6f 6e 63 6f 6d | only fo|r noncom|
|00004da0| 6d 65 72 63 69 61 6c 20 | 64 69 73 74 72 69 62 75 |mercial |distribu|
|00004db0| 74 69 6f 6e 20 61 6e 64 | 20 6f 6e 6c 79 20 69 66 |tion and| only if|
|00004dc0| 20 79 6f 75 0a 58 20 20 | 20 20 72 65 63 65 69 76 | you.X | receiv|
|00004dd0| 65 64 20 74 68 65 20 70 | 72 6f 67 72 61 6d 20 69 |ed the p|rogram i|
|00004de0| 6e 20 6f 62 6a 65 63 74 | 20 63 6f 64 65 20 6f 72 |n object| code or|
|00004df0| 20 65 78 65 63 75 74 61 | 62 6c 65 20 66 6f 72 6d | executa|ble form|
|00004e00| 20 61 6c 6f 6e 65 2e 29 | 0a 58 0a 58 46 6f 72 20 | alone.)|.X.XFor |
|00004e10| 61 6e 20 65 78 65 63 75 | 74 61 62 6c 65 20 66 69 |an execu|table fi|
|00004e20| 6c 65 2c 20 63 6f 6d 70 | 6c 65 74 65 20 73 6f 75 |le, comp|lete sou|
|00004e30| 72 63 65 20 63 6f 64 65 | 20 6d 65 61 6e 73 20 61 |rce code| means a|
|00004e40| 6c 6c 20 74 68 65 20 73 | 6f 75 72 63 65 20 63 6f |ll the s|ource co|
|00004e50| 64 65 20 66 6f 72 0a 58 | 61 6c 6c 20 6d 6f 64 75 |de for.X|all modu|
|00004e60| 6c 65 73 20 69 74 20 63 | 6f 6e 74 61 69 6e 73 3b |les it c|ontains;|
|00004e70| 20 62 75 74 2c 20 61 73 | 20 61 20 73 70 65 63 69 | but, as| a speci|
|00004e80| 61 6c 20 65 78 63 65 70 | 74 69 6f 6e 2c 20 69 74 |al excep|tion, it|
|00004e90| 20 6e 65 65 64 20 6e 6f | 74 20 69 6e 63 6c 75 64 | need no|t includ|
|00004ea0| 65 0a 58 73 6f 75 72 63 | 65 20 63 6f 64 65 20 66 |e.Xsourc|e code f|
|00004eb0| 6f 72 20 6d 6f 64 75 6c | 65 73 20 77 68 69 63 68 |or modul|es which|
|00004ec0| 20 61 72 65 20 73 74 61 | 6e 64 61 72 64 20 6c 69 | are sta|ndard li|
|00004ed0| 62 72 61 72 69 65 73 20 | 74 68 61 74 20 61 63 63 |braries |that acc|
|00004ee0| 6f 6d 70 61 6e 79 20 74 | 68 65 0a 58 6f 70 65 72 |ompany t|he.Xoper|
|00004ef0| 61 74 69 6e 67 20 73 79 | 73 74 65 6d 20 6f 6e 20 |ating sy|stem on |
|00004f00| 77 68 69 63 68 20 74 68 | 65 20 65 78 65 63 75 74 |which th|e execut|
|00004f10| 61 62 6c 65 20 66 69 6c | 65 20 72 75 6e 73 2e 0a |able fil|e runs..|
|00004f20| 58 0a 58 20 20 34 2e 20 | 59 6f 75 20 6d 61 79 20 |X.X 4. |You may |
|00004f30| 6e 6f 74 20 63 6f 70 79 | 2c 20 73 75 62 6c 69 63 |not copy|, sublic|
|00004f40| 65 6e 73 65 2c 20 64 69 | 73 74 72 69 62 75 74 65 |ense, di|stribute|
|00004f50| 20 6f 72 20 74 72 61 6e | 73 66 65 72 20 74 68 69 | or tran|sfer thi|
|00004f60| 73 20 70 72 6f 67 72 61 | 6d 0a 58 65 78 63 65 70 |s progra|m.Xexcep|
|00004f70| 74 20 61 73 20 65 78 70 | 72 65 73 73 6c 79 20 70 |t as exp|ressly p|
|00004f80| 72 6f 76 69 64 65 64 20 | 75 6e 64 65 72 20 74 68 |rovided |under th|
|00004f90| 69 73 20 4c 69 63 65 6e | 73 65 20 41 67 72 65 65 |is Licen|se Agree|
|00004fa0| 6d 65 6e 74 2e 20 20 41 | 6e 79 20 61 74 74 65 6d |ment. A|ny attem|
|00004fb0| 70 74 0a 58 6f 74 68 65 | 72 77 69 73 65 20 74 6f |pt.Xothe|rwise to|
|00004fc0| 20 63 6f 70 79 2c 20 73 | 75 62 6c 69 63 65 6e 73 | copy, s|ublicens|
|00004fd0| 65 2c 20 64 69 73 74 72 | 69 62 75 74 65 20 6f 72 |e, distr|ibute or|
|00004fe0| 20 74 72 61 6e 73 66 65 | 72 20 74 68 69 73 20 70 | transfe|r this p|
|00004ff0| 72 6f 67 72 61 6d 20 69 | 73 20 76 6f 69 64 20 61 |rogram i|s void a|
|00005000| 6e 64 0a 58 79 6f 75 72 | 20 72 69 67 68 74 73 20 |nd.Xyour| rights |
|00005010| 74 6f 20 75 73 65 20 74 | 68 65 20 70 72 6f 67 72 |to use t|he progr|
|00005020| 61 6d 20 75 6e 64 65 72 | 20 74 68 69 73 20 4c 69 |am under| this Li|
|00005030| 63 65 6e 73 65 20 61 67 | 72 65 65 6d 65 6e 74 20 |cense ag|reement |
|00005040| 73 68 61 6c 6c 20 62 65 | 0a 58 61 75 74 6f 6d 61 |shall be|.Xautoma|
|00005050| 74 69 63 61 6c 6c 79 20 | 74 65 72 6d 69 6e 61 74 |tically |terminat|
|00005060| 65 64 2e 20 20 48 6f 77 | 65 76 65 72 2c 20 70 61 |ed. How|ever, pa|
|00005070| 72 74 69 65 73 20 77 68 | 6f 20 68 61 76 65 20 72 |rties wh|o have r|
|00005080| 65 63 65 69 76 65 64 20 | 63 6f 6d 70 75 74 65 72 |eceived |computer|
|00005090| 0a 58 73 6f 66 74 77 61 | 72 65 20 70 72 6f 67 72 |.Xsoftwa|re progr|
|000050a0| 61 6d 73 20 66 72 6f 6d | 20 79 6f 75 20 77 69 74 |ams from| you wit|
|000050b0| 68 20 74 68 69 73 20 4c | 69 63 65 6e 73 65 20 41 |h this L|icense A|
|000050c0| 67 72 65 65 6d 65 6e 74 | 20 77 69 6c 6c 20 6e 6f |greement| will no|
|000050d0| 74 20 68 61 76 65 0a 58 | 74 68 65 69 72 20 6c 69 |t have.X|their li|
|000050e0| 63 65 6e 73 65 73 20 74 | 65 72 6d 69 6e 61 74 65 |censes t|erminate|
|000050f0| 64 20 73 6f 20 6c 6f 6e | 67 20 61 73 20 73 75 63 |d so lon|g as suc|
|00005100| 68 20 70 61 72 74 69 65 | 73 20 72 65 6d 61 69 6e |h partie|s remain|
|00005110| 20 69 6e 20 66 75 6c 6c | 20 63 6f 6d 70 6c 69 61 | in full| complia|
|00005120| 6e 63 65 2e 0a 58 0a 58 | 20 20 35 2e 20 49 66 20 |nce..X.X| 5. If |
|00005130| 79 6f 75 20 77 69 73 68 | 20 74 6f 20 69 6e 63 6f |you wish| to inco|
|00005140| 72 70 6f 72 61 74 65 20 | 70 61 72 74 73 20 6f 66 |rporate |parts of|
|00005150| 20 74 68 69 73 20 70 72 | 6f 67 72 61 6d 20 69 6e | this pr|ogram in|
|00005160| 74 6f 20 6f 74 68 65 72 | 20 66 72 65 65 0a 58 70 |to other| free.Xp|
|00005170| 72 6f 67 72 61 6d 73 20 | 77 68 6f 73 65 20 64 69 |rograms |whose di|
|00005180| 73 74 72 69 62 75 74 69 | 6f 6e 20 63 6f 6e 64 69 |stributi|on condi|
|00005190| 74 69 6f 6e 73 20 61 72 | 65 20 64 69 66 66 65 72 |tions ar|e differ|
|000051a0| 65 6e 74 2c 20 77 72 69 | 74 65 20 74 6f 20 74 68 |ent, wri|te to th|
|000051b0| 65 20 46 72 65 65 0a 58 | 53 6f 66 74 77 61 72 65 |e Free.X|Software|
|000051c0| 20 46 6f 75 6e 64 61 74 | 69 6f 6e 20 61 74 20 36 | Foundat|ion at 6|
|000051d0| 37 35 20 4d 61 73 73 20 | 41 76 65 2c 20 43 61 6d |75 Mass |Ave, Cam|
|000051e0| 62 72 69 64 67 65 2c 20 | 4d 41 20 30 32 31 33 39 |bridge, |MA 02139|
|000051f0| 2e 20 20 57 65 20 68 61 | 76 65 20 6e 6f 74 20 79 |. We ha|ve not y|
|00005200| 65 74 0a 58 77 6f 72 6b | 65 64 20 6f 75 74 20 61 |et.Xwork|ed out a|
|00005210| 20 73 69 6d 70 6c 65 20 | 72 75 6c 65 20 74 68 61 | simple |rule tha|
|00005220| 74 20 63 61 6e 20 62 65 | 20 73 74 61 74 65 64 20 |t can be| stated |
|00005230| 68 65 72 65 2c 20 62 75 | 74 20 77 65 20 77 69 6c |here, bu|t we wil|
|00005240| 6c 20 6f 66 74 65 6e 20 | 70 65 72 6d 69 74 0a 58 |l often |permit.X|
|00005250| 74 68 69 73 2e 20 20 57 | 65 20 77 69 6c 6c 20 62 |this. W|e will b|
|00005260| 65 20 67 75 69 64 65 64 | 20 62 79 20 74 68 65 20 |e guided| by the |
|00005270| 74 77 6f 20 67 6f 61 6c | 73 20 6f 66 20 70 72 65 |two goal|s of pre|
|00005280| 73 65 72 76 69 6e 67 20 | 74 68 65 20 66 72 65 65 |serving |the free|
|00005290| 20 73 74 61 74 75 73 20 | 6f 66 0a 58 61 6c 6c 20 | status |of.Xall |
|000052a0| 64 65 72 69 76 61 74 69 | 76 65 73 20 6f 66 20 6f |derivati|ves of o|
|000052b0| 75 72 20 66 72 65 65 20 | 73 6f 66 74 77 61 72 65 |ur free |software|
|000052c0| 20 61 6e 64 20 6f 66 20 | 70 72 6f 6d 6f 74 69 6e | and of |promotin|
|000052d0| 67 20 74 68 65 20 73 68 | 61 72 69 6e 67 20 61 6e |g the sh|aring an|
|000052e0| 64 20 72 65 75 73 65 20 | 6f 66 0a 58 73 6f 66 74 |d reuse |of.Xsoft|
|000052f0| 77 61 72 65 2e 0a 58 0a | 58 0a 58 49 6e 20 6f 74 |ware..X.|X.XIn ot|
|00005300| 68 65 72 20 77 6f 72 64 | 73 2c 20 79 6f 75 20 61 |her word|s, you a|
|00005310| 72 65 20 77 65 6c 63 6f | 6d 65 20 74 6f 20 75 73 |re welco|me to us|
|00005320| 65 2c 20 73 68 61 72 65 | 20 61 6e 64 20 69 6d 70 |e, share| and imp|
|00005330| 72 6f 76 65 20 74 68 69 | 73 20 70 72 6f 67 72 61 |rove thi|s progra|
|00005340| 6d 2e 0a 58 59 6f 75 20 | 61 72 65 20 66 6f 72 62 |m..XYou |are forb|
|00005350| 69 64 64 65 6e 20 74 6f | 20 66 6f 72 62 69 64 20 |idden to| forbid |
|00005360| 61 6e 79 6f 6e 65 20 65 | 6c 73 65 20 74 6f 20 75 |anyone e|lse to u|
|00005370| 73 65 2c 20 73 68 61 72 | 65 20 61 6e 64 20 69 6d |se, shar|e and im|
|00005380| 70 72 6f 76 65 0a 58 77 | 68 61 74 20 79 6f 75 20 |prove.Xw|hat you |
|00005390| 67 69 76 65 20 74 68 65 | 6d 2e 20 20 20 48 65 6c |give the|m. Hel|
|000053a0| 70 20 73 74 61 6d 70 20 | 6f 75 74 20 73 6f 66 74 |p stamp |out soft|
|000053b0| 77 61 72 65 2d 68 6f 61 | 72 64 69 6e 67 21 20 20 |ware-hoa|rding! |
|000053c0| 2a 2f 0a 58 0a 58 0a 58 | 2f 2a 20 54 6f 20 74 65 |*/.X.X.X|/* To te|
|000053d0| 73 74 2c 20 63 6f 6d 70 | 69 6c 65 20 77 69 74 68 |st, comp|ile with|
|000053e0| 20 2d 44 74 65 73 74 2e | 0a 58 20 54 68 69 73 20 | -Dtest.|.X This |
|000053f0| 44 74 65 73 74 61 62 6c | 65 20 66 65 61 74 75 72 |Dtestabl|e featur|
|00005400| 65 20 74 75 72 6e 73 20 | 74 68 69 73 20 69 6e 74 |e turns |this int|
|00005410| 6f 20 61 20 73 65 6c 66 | 2d 63 6f 6e 74 61 69 6e |o a self|-contain|
|00005420| 65 64 20 70 72 6f 67 72 | 61 6d 0a 58 20 77 68 69 |ed progr|am.X whi|
|00005430| 63 68 20 72 65 61 64 73 | 20 61 20 70 61 74 74 65 |ch reads| a patte|
|00005440| 72 6e 2c 20 64 65 73 63 | 72 69 62 65 73 20 68 6f |rn, desc|ribes ho|
|00005450| 77 20 69 74 20 63 6f 6d | 70 69 6c 65 73 2c 0a 58 |w it com|piles,.X|
|00005460| 20 74 68 65 6e 20 72 65 | 61 64 73 20 61 20 73 74 | then re|ads a st|
|00005470| 72 69 6e 67 20 61 6e 64 | 20 73 65 61 72 63 68 65 |ring and| searche|
|00005480| 73 20 66 6f 72 20 69 74 | 2e 20 20 2a 2f 0a 58 0a |s for it|. */.X.|
|00005490| 58 23 69 66 64 65 66 20 | 73 70 61 72 63 0a 58 23 |X#ifdef |sparc.X#|
|000054a0| 69 6e 63 6c 75 64 65 20 | 3c 61 6c 6c 6f 63 61 2e |include |<alloca.|
|000054b0| 68 3e 0a 58 23 65 6e 64 | 69 66 0a 58 0a 58 23 69 |h>.X#end|if.X.X#i|
|000054c0| 66 64 65 66 20 65 6d 61 | 63 73 0a 58 0a 58 2f 2a |fdef ema|cs.X.X/*|
|000054d0| 20 54 68 65 20 60 65 6d | 61 63 73 27 20 73 77 69 | The `em|acs' swi|
|000054e0| 74 63 68 20 74 75 72 6e | 73 20 6f 6e 20 63 65 72 |tch turn|s on cer|
|000054f0| 74 61 69 6e 20 73 70 65 | 63 69 61 6c 20 6d 61 74 |tain spe|cial mat|
|00005500| 63 68 69 6e 67 20 63 6f | 6d 6d 61 6e 64 73 0a 58 |ching co|mmands.X|
|00005510| 20 74 68 61 74 20 6d 61 | 6b 65 20 73 65 6e 73 65 | that ma|ke sense|
|00005520| 20 6f 6e 6c 79 20 69 6e | 20 65 6d 61 63 73 2e 20 | only in| emacs. |
|00005530| 2a 2f 0a 58 0a 58 23 69 | 6e 63 6c 75 64 65 20 22 |*/.X.X#i|nclude "|
|00005540| 63 6f 6e 66 69 67 2e 68 | 22 0a 58 23 69 6e 63 6c |config.h|".X#incl|
|00005550| 75 64 65 20 22 6c 69 73 | 70 2e 68 22 0a 58 23 69 |ude "lis|p.h".X#i|
|00005560| 6e 63 6c 75 64 65 20 22 | 62 75 66 66 65 72 2e 68 |nclude "|buffer.h|
|00005570| 22 0a 58 23 69 6e 63 6c | 75 64 65 20 22 73 79 6e |".X#incl|ude "syn|
|00005580| 74 61 78 2e 68 22 0a 58 | 0a 58 23 65 6c 73 65 20 |tax.h".X|.X#else |
|00005590| 20 2f 2a 20 6e 6f 74 20 | 65 6d 61 63 73 20 2a 2f | /* not |emacs */|
|000055a0| 0a 58 0a 58 2f 2a 0a 58 | 20 2a 20 44 65 66 69 6e |.X.X/*.X| * Defin|
|000055b0| 65 20 74 68 65 20 73 79 | 6e 74 61 78 20 73 74 75 |e the sy|ntax stu|
|000055c0| 66 66 2c 20 73 6f 20 77 | 65 20 63 61 6e 20 64 6f |ff, so w|e can do|
|000055d0| 20 74 68 65 20 5c 3c 2e | 2e 2e 5c 3e 20 74 68 69 | the \<.|..\> thi|
|000055e0| 6e 67 73 2e 0a 58 20 2a | 2f 0a 58 0a 58 23 69 66 |ngs..X *|/.X.X#if|
|000055f0| 6e 64 65 66 20 53 77 6f | 72 64 20 2f 2a 20 6d 75 |ndef Swo|rd /* mu|
|00005600| 73 74 20 62 65 20 6e 6f | 6e 2d 7a 65 72 6f 20 69 |st be no|n-zero i|
|00005610| 6e 20 73 6f 6d 65 20 6f | 66 20 74 68 65 20 74 65 |n some o|f the te|
|00005620| 73 74 73 20 62 65 6c 6f | 77 2e 2e 2e 20 2a 2f 0a |sts belo|w... */.|
|00005630| 58 23 64 65 66 69 6e 65 | 20 53 77 6f 72 64 20 31 |X#define| Sword 1|
|00005640| 0a 58 23 65 6e 64 69 66 | 0a 58 0a 58 23 64 65 66 |.X#endif|.X.X#def|
|00005650| 69 6e 65 20 53 59 4e 54 | 41 58 28 63 29 20 72 65 |ine SYNT|AX(c) re|
|00005660| 5f 73 79 6e 74 61 78 5f | 74 61 62 6c 65 5b 63 5d |_syntax_|table[c]|
|00005670| 0a 58 0a 58 23 69 66 64 | 65 66 20 53 59 4e 54 41 |.X.X#ifd|ef SYNTA|
|00005680| 58 5f 54 41 42 4c 45 0a | 58 0a 58 63 68 61 72 20 |X_TABLE.|X.Xchar |
|00005690| 2a 72 65 5f 73 79 6e 74 | 61 78 5f 74 61 62 6c 65 |*re_synt|ax_table|
|000056a0| 3b 0a 58 0a 58 23 65 6c | 73 65 0a 58 0a 58 73 74 |;.X.X#el|se.X.Xst|
|000056b0| 61 74 69 63 20 63 68 61 | 72 20 72 65 5f 73 79 6e |atic cha|r re_syn|
|000056c0| 74 61 78 5f 74 61 62 6c | 65 5b 32 35 36 5d 3b 0a |tax_tabl|e[256];.|
|000056d0| 58 0a 58 73 74 61 74 69 | 63 20 76 6f 69 64 0a 58 |X.Xstati|c void.X|
|000056e0| 69 6e 69 74 5f 73 79 6e | 74 61 78 5f 6f 6e 63 65 |init_syn|tax_once|
|000056f0| 20 28 29 0a 58 7b 0a 58 | 20 20 20 72 65 67 69 73 | ().X{.X| regis|
|00005700| 74 65 72 20 69 6e 74 20 | 63 3b 0a 58 20 20 20 73 |ter int |c;.X s|
|00005710| 74 61 74 69 63 20 69 6e | 74 20 64 6f 6e 65 20 3d |tatic in|t done =|
|00005720| 20 30 3b 0a 58 0a 58 20 | 20 20 69 66 20 28 64 6f | 0;.X.X | if (do|
|00005730| 6e 65 29 0a 58 20 20 20 | 20 20 72 65 74 75 72 6e |ne).X | return|
|00005740| 3b 0a 58 0a 58 20 20 20 | 62 7a 65 72 6f 20 28 72 |;.X.X |bzero (r|
|00005750| 65 5f 73 79 6e 74 61 78 | 5f 74 61 62 6c 65 2c 20 |e_syntax|_table, |
|00005760| 73 69 7a 65 6f 66 20 72 | 65 5f 73 79 6e 74 61 78 |sizeof r|e_syntax|
|00005770| 5f 74 61 62 6c 65 29 3b | 0a 58 0a 58 20 20 20 66 |_table);|.X.X f|
|00005780| 6f 72 20 28 63 20 3d 20 | 27 61 27 3b 20 63 20 3c |or (c = |'a'; c <|
|00005790| 3d 20 27 7a 27 3b 20 63 | 2b 2b 29 0a 58 20 20 20 |= 'z'; c|++).X |
|000057a0| 20 20 72 65 5f 73 79 6e | 74 61 78 5f 74 61 62 6c | re_syn|tax_tabl|
|000057b0| 65 5b 63 5d 20 3d 20 53 | 77 6f 72 64 3b 0a 58 0a |e[c] = S|word;.X.|
|000057c0| 58 20 20 20 66 6f 72 20 | 28 63 20 3d 20 27 41 27 |X for |(c = 'A'|
|000057d0| 3b 20 63 20 3c 3d 20 27 | 5a 27 3b 20 63 2b 2b 29 |; c <= '|Z'; c++)|
|000057e0| 0a 58 20 20 20 20 20 72 | 65 5f 73 79 6e 74 61 78 |.X r|e_syntax|
|000057f0| 5f 74 61 62 6c 65 5b 63 | 5d 20 3d 20 53 77 6f 72 |_table[c|] = Swor|
|00005800| 64 3b 0a 58 0a 58 20 20 | 20 66 6f 72 20 28 63 20 |d;.X.X | for (c |
|00005810| 3d 20 27 30 27 3b 20 63 | 20 3c 3d 20 27 39 27 3b |= '0'; c| <= '9';|
|00005820| 20 63 2b 2b 29 0a 58 20 | 20 20 20 20 72 65 5f 73 | c++).X | re_s|
|00005830| 79 6e 74 61 78 5f 74 61 | 62 6c 65 5b 63 5d 20 3d |yntax_ta|ble[c] =|
|00005840| 20 53 77 6f 72 64 3b 0a | 58 0a 58 20 20 20 64 6f | Sword;.|X.X do|
|00005850| 6e 65 20 3d 20 31 3b 0a | 58 7d 0a 58 0a 58 23 65 |ne = 1;.|X}.X.X#e|
|00005860| 6e 64 69 66 20 2f 2a 20 | 53 59 4e 54 41 58 5f 54 |ndif /* |SYNTAX_T|
|00005870| 41 42 4c 45 20 2a 2f 0a | 58 23 65 6e 64 69 66 20 |ABLE */.|X#endif |
|00005880| 2f 2a 20 6e 6f 74 20 65 | 6d 61 63 73 20 2a 2f 0a |/* not e|macs */.|
|00005890| 58 0a 58 23 69 6e 63 6c | 75 64 65 20 22 72 65 67 |X.X#incl|ude "reg|
|000058a0| 65 78 2e 68 22 0a 58 0a | 58 2f 2a 20 4e 75 6d 62 |ex.h".X.|X/* Numb|
|000058b0| 65 72 20 6f 66 20 66 61 | 69 6c 75 72 65 20 70 6f |er of fa|ilure po|
|000058c0| 69 6e 74 73 20 74 6f 20 | 61 6c 6c 6f 63 61 74 65 |ints to |allocate|
|000058d0| 20 73 70 61 63 65 20 66 | 6f 72 20 69 6e 69 74 69 | space f|or initi|
|000058e0| 61 6c 6c 79 2c 0a 58 20 | 77 68 65 6e 20 6d 61 74 |ally,.X |when mat|
|000058f0| 63 68 69 6e 67 2e 20 20 | 49 66 20 74 68 69 73 20 |ching. |If this |
|00005900| 6e 75 6d 62 65 72 20 69 | 73 20 65 78 63 65 65 64 |number i|s exceed|
|00005910| 65 64 2c 20 6d 6f 72 65 | 20 73 70 61 63 65 20 69 |ed, more| space i|
|00005920| 73 20 61 6c 6c 6f 63 61 | 74 65 64 2c 0a 58 20 73 |s alloca|ted,.X s|
|00005930| 6f 20 69 74 20 69 73 20 | 6e 6f 74 20 61 20 68 61 |o it is |not a ha|
|00005940| 72 64 20 6c 69 6d 69 74 | 2e 20 20 2a 2f 0a 58 0a |rd limit|. */.X.|
|00005950| 58 23 69 66 6e 64 65 66 | 20 4e 46 41 49 4c 55 52 |X#ifndef| NFAILUR|
|00005960| 45 53 0a 58 23 64 65 66 | 69 6e 65 20 4e 46 41 49 |ES.X#def|ine NFAI|
|00005970| 4c 55 52 45 53 20 38 30 | 0a 58 23 65 6e 64 69 66 |LURES 80|.X#endif|
|00005980| 20 4e 46 41 49 4c 55 52 | 45 53 0a 58 0a 58 2f 2a | NFAILUR|ES.X.X/*|
|00005990| 20 77 69 64 74 68 20 6f | 66 20 61 20 62 79 74 65 | width o|f a byte|
|000059a0| 20 69 6e 20 62 69 74 73 | 20 2a 2f 0a 58 0a 58 23 | in bits| */.X.X#|
|000059b0| 64 65 66 69 6e 65 20 42 | 59 54 45 57 49 44 54 48 |define B|YTEWIDTH|
|000059c0| 20 38 0a 58 0a 58 23 69 | 66 6e 64 65 66 20 53 49 | 8.X.X#i|fndef SI|
|000059d0| 47 4e 5f 45 58 54 45 4e | 44 5f 43 48 41 52 0a 58 |GN_EXTEN|D_CHAR.X|
|000059e0| 23 64 65 66 69 6e 65 20 | 53 49 47 4e 5f 45 58 54 |#define |SIGN_EXT|
|000059f0| 45 4e 44 5f 43 48 41 52 | 28 78 29 20 28 78 29 0a |END_CHAR|(x) (x).|
|00005a00| 58 23 65 6e 64 69 66 0a | 58 0c 0a 58 2f 2a 20 63 |X#endif.|X..X/* c|
|00005a10| 6f 6d 70 69 6c 65 5f 70 | 61 74 74 65 72 6e 20 74 |ompile_p|attern t|
|00005a20| 61 6b 65 73 20 61 20 72 | 65 67 75 6c 61 72 2d 65 |akes a r|egular-e|
|00005a30| 78 70 72 65 73 73 69 6f | 6e 20 64 65 73 63 72 69 |xpressio|n descri|
|00005a40| 70 74 6f 72 20 73 74 72 | 69 6e 67 20 69 6e 20 74 |ptor str|ing in t|
|00005a50| 68 65 20 0a 58 20 20 75 | 73 65 72 27 73 20 66 6f |he .X u|ser's fo|
|00005a60| 72 6d 61 74 20 61 6e 64 | 20 63 6f 6e 76 65 72 74 |rmat and| convert|
|00005a70| 73 20 69 74 20 69 6e 74 | 6f 20 61 20 62 75 66 66 |s it int|o a buff|
|00005a80| 65 72 20 66 75 6c 6c 20 | 6f 66 20 62 79 74 65 20 |er full |of byte |
|00005a90| 63 6f 6d 6d 61 6e 64 73 | 20 0a 58 20 20 66 6f 72 |commands| .X for|
|00005aa0| 20 6d 61 74 63 68 69 6e | 67 2e 0a 58 0a 58 20 20 | matchin|g..X.X |
|00005ab0| 70 61 74 74 65 72 6e 20 | 20 20 69 73 20 74 68 65 |pattern | is the|
|00005ac0| 20 61 64 64 72 65 73 73 | 20 6f 66 20 74 68 65 20 | address| of the |
|00005ad0| 70 61 74 74 65 72 6e 20 | 73 74 72 69 6e 67 0a 58 |pattern |string.X|
|00005ae0| 20 20 73 69 7a 65 20 20 | 20 20 20 20 69 73 20 74 | size | is t|
|00005af0| 68 65 20 6c 65 6e 67 74 | 68 20 6f 66 20 69 74 2e |he lengt|h of it.|
|00005b00| 0a 58 20 20 62 75 66 70 | 09 20 20 20 20 69 73 20 |.X bufp|. is |
|00005b10| 61 20 20 73 74 72 75 63 | 74 20 72 65 5f 70 61 74 |a struc|t re_pat|
|00005b20| 74 65 72 6e 5f 62 75 66 | 66 65 72 20 2a 20 20 77 |tern_buf|fer * w|
|00005b30| 68 69 63 68 20 70 6f 69 | 6e 74 73 20 74 6f 20 74 |hich poi|nts to t|
|00005b40| 68 65 20 69 6e 66 6f 0a | 58 09 20 20 20 20 6f 6e |he info.|X. on|
|00005b50| 20 77 68 65 72 65 20 74 | 6f 20 73 74 6f 72 65 20 | where t|o store |
|00005b60| 74 68 65 20 62 79 74 65 | 20 63 6f 6d 6d 61 6e 64 |the byte| command|
|00005b70| 73 2e 0a 58 09 20 20 20 | 20 54 68 69 73 20 73 74 |s..X. | This st|
|00005b80| 72 75 63 74 75 72 65 20 | 63 6f 6e 74 61 69 6e 73 |ructure |contains|
|00005b90| 20 61 20 20 63 68 61 72 | 20 2a 20 20 77 68 69 63 | a char| * whic|
|00005ba0| 68 20 70 6f 69 6e 74 73 | 20 74 6f 20 74 68 65 0a |h points| to the.|
|00005bb0| 58 09 20 20 20 20 61 63 | 74 75 61 6c 20 73 70 61 |X. ac|tual spa|
|00005bc0| 63 65 2c 20 77 68 69 63 | 68 20 73 68 6f 75 6c 64 |ce, whic|h should|
|00005bd0| 20 68 61 76 65 20 62 65 | 65 6e 20 6f 62 74 61 69 | have be|en obtai|
|00005be0| 6e 65 64 20 77 69 74 68 | 20 6d 61 6c 6c 6f 63 2e |ned with| malloc.|
|00005bf0| 0a 58 09 20 20 20 20 63 | 6f 6d 70 69 6c 65 5f 70 |.X. c|ompile_p|
|00005c00| 61 74 74 65 72 6e 20 6d | 61 79 20 75 73 65 20 20 |attern m|ay use |
|00005c10| 72 65 61 6c 6c 6f 63 20 | 20 74 6f 20 67 72 6f 77 |realloc | to grow|
|00005c20| 20 74 68 65 20 62 75 66 | 66 65 72 20 73 70 61 63 | the buf|fer spac|
|00005c30| 65 2e 0a 58 0a 58 20 20 | 54 68 65 20 6e 75 6d 62 |e..X.X |The numb|
|00005c40| 65 72 20 6f 66 20 62 79 | 74 65 73 20 6f 66 20 63 |er of by|tes of c|
|00005c50| 6f 6d 6d 61 6e 64 73 20 | 63 61 6e 20 62 65 20 66 |ommands |can be f|
|00005c60| 6f 75 6e 64 20 6f 75 74 | 20 62 79 20 6c 6f 6f 6b |ound out| by look|
|00005c70| 69 6e 67 20 69 6e 0a 58 | 20 20 74 68 65 20 20 73 |ing in.X| the s|
|00005c80| 74 72 75 63 74 20 72 65 | 5f 70 61 74 74 65 72 6e |truct re|_pattern|
|00005c90| 5f 62 75 66 66 65 72 20 | 20 74 68 61 74 20 62 75 |_buffer | that bu|
|00005ca0| 66 70 20 70 6f 69 6e 74 | 65 64 20 74 6f 2c 0a 58 |fp point|ed to,.X|
|00005cb0| 20 20 61 66 74 65 72 20 | 63 6f 6d 70 69 6c 65 5f | after |compile_|
|00005cc0| 70 61 74 74 65 72 6e 20 | 72 65 74 75 72 6e 73 2e |pattern |returns.|
|00005cd0| 0a 58 2a 2f 0a 58 0a 58 | 23 64 65 66 69 6e 65 20 |.X*/.X.X|#define |
|00005ce0| 50 41 54 50 55 53 48 28 | 63 68 29 20 28 2a 62 2b |PATPUSH(|ch) (*b+|
|00005cf0| 2b 20 3d 20 28 63 68 61 | 72 29 20 28 63 68 29 29 |+ = (cha|r) (ch))|
|00005d00| 0a 58 0a 58 23 64 65 66 | 69 6e 65 20 50 41 54 46 |.X.X#def|ine PATF|
|00005d10| 45 54 43 48 28 63 29 20 | 5c 0a 58 20 7b 69 66 20 |ETCH(c) |\.X {if |
|00005d20| 28 70 20 3d 3d 20 70 65 | 6e 64 29 20 67 6f 74 6f |(p == pe|nd) goto|
|00005d30| 20 65 6e 64 5f 6f 66 5f | 70 61 74 74 65 72 6e 3b | end_of_|pattern;|
|00005d40| 20 5c 0a 58 20 20 63 20 | 3d 20 2a 20 28 75 6e 73 | \.X c |= * (uns|
|00005d50| 69 67 6e 65 64 20 63 68 | 61 72 20 2a 29 20 70 2b |igned ch|ar *) p+|
|00005d60| 2b 3b 20 5c 0a 58 20 20 | 69 66 20 28 74 72 61 6e |+; \.X |if (tran|
|00005d70| 73 6c 61 74 65 29 20 63 | 20 3d 20 74 72 61 6e 73 |slate) c| = trans|
|00005d80| 6c 61 74 65 5b 63 5d 3b | 20 7d 0a 58 0a 58 23 64 |late[c];| }.X.X#d|
|00005d90| 65 66 69 6e 65 20 50 41 | 54 46 45 54 43 48 5f 52 |efine PA|TFETCH_R|
|00005da0| 41 57 28 63 29 20 5c 0a | 58 20 7b 69 66 20 28 70 |AW(c) \.|X {if (p|
|00005db0| 20 3d 3d 20 70 65 6e 64 | 29 20 67 6f 74 6f 20 65 | == pend|) goto e|
|00005dc0| 6e 64 5f 6f 66 5f 70 61 | 74 74 65 72 6e 3b 20 5c |nd_of_pa|ttern; \|
|00005dd0| 0a 58 20 20 63 20 3d 20 | 2a 20 28 75 6e 73 69 67 |.X c = |* (unsig|
|00005de0| 6e 65 64 20 63 68 61 72 | 20 2a 29 20 70 2b 2b 3b |ned char| *) p++;|
|00005df0| 20 7d 0a 58 0a 58 23 64 | 65 66 69 6e 65 20 50 41 | }.X.X#d|efine PA|
|00005e00| 54 55 4e 46 45 54 43 48 | 20 70 2d 2d 0a 58 0a 58 |TUNFETCH| p--.X.X|
|00005e10| 23 64 65 66 69 6e 65 20 | 45 58 54 45 4e 44 5f 42 |#define |EXTEND_B|
|00005e20| 55 46 46 45 52 20 5c 0a | 58 20 20 7b 20 63 68 61 |UFFER \.|X { cha|
|00005e30| 72 20 2a 6f 6c 64 5f 62 | 75 66 66 65 72 20 3d 20 |r *old_b|uffer = |
|00005e40| 62 75 66 70 2d 3e 62 75 | 66 66 65 72 3b 20 5c 0a |bufp->bu|ffer; \.|
|00005e50| 58 20 20 20 20 69 66 20 | 28 62 75 66 70 2d 3e 61 |X if |(bufp->a|
|00005e60| 6c 6c 6f 63 61 74 65 64 | 20 3d 3d 20 28 31 3c 3c |llocated| == (1<<|
|00005e70| 31 36 29 29 20 67 6f 74 | 6f 20 74 6f 6f 5f 62 69 |16)) got|o too_bi|
|00005e80| 67 3b 20 5c 0a 58 20 20 | 20 20 62 75 66 70 2d 3e |g; \.X | bufp->|
|00005e90| 61 6c 6c 6f 63 61 74 65 | 64 20 2a 3d 20 32 3b 20 |allocate|d *= 2; |
|00005ea0| 5c 0a 58 20 20 20 20 69 | 66 20 28 62 75 66 70 2d |\.X i|f (bufp-|
|00005eb0| 3e 61 6c 6c 6f 63 61 74 | 65 64 20 3e 20 28 31 3c |>allocat|ed > (1<|
|00005ec0| 3c 31 36 29 29 20 62 75 | 66 70 2d 3e 61 6c 6c 6f |<16)) bu|fp->allo|
|00005ed0| 63 61 74 65 64 20 3d 20 | 28 31 3c 3c 31 36 29 3b |cated = |(1<<16);|
|00005ee0| 20 5c 0a 58 20 20 20 20 | 69 66 20 28 21 28 62 75 | \.X |if (!(bu|
|00005ef0| 66 70 2d 3e 62 75 66 66 | 65 72 20 3d 20 28 63 68 |fp->buff|er = (ch|
|00005f00| 61 72 20 2a 29 20 72 65 | 61 6c 6c 6f 63 20 28 62 |ar *) re|alloc (b|
|00005f10| 75 66 70 2d 3e 62 75 66 | 66 65 72 2c 20 62 75 66 |ufp->buf|fer, buf|
|00005f20| 70 2d 3e 61 6c 6c 6f 63 | 61 74 65 64 29 29 29 20 |p->alloc|ated))) |
|00005f30| 5c 0a 58 20 20 20 20 20 | 20 67 6f 74 6f 20 6d 65 |\.X | goto me|
|00005f40| 6d 6f 72 79 5f 65 78 68 | 61 75 73 74 65 64 3b 20 |mory_exh|austed; |
|00005f50| 5c 0a 58 20 20 20 20 63 | 20 3d 20 62 75 66 70 2d |\.X c| = bufp-|
|00005f60| 3e 62 75 66 66 65 72 20 | 2d 20 6f 6c 64 5f 62 75 |>buffer |- old_bu|
|00005f70| 66 66 65 72 3b 20 5c 0a | 58 20 20 20 20 62 20 2b |ffer; \.|X b +|
|00005f80| 3d 20 63 3b 20 5c 0a 58 | 20 20 20 20 69 66 20 28 |= c; \.X| if (|
|00005f90| 66 69 78 75 70 5f 6a 75 | 6d 70 29 20 5c 0a 58 20 |fixup_ju|mp) \.X |
|00005fa0| 20 20 20 20 20 66 69 78 | 75 70 5f 6a 75 6d 70 20 | fix|up_jump |
|00005fb0| 2b 3d 20 63 3b 20 5c 0a | 58 20 20 20 20 69 66 20 |+= c; \.|X if |
|00005fc0| 28 6c 61 73 74 73 74 61 | 72 74 29 20 5c 0a 58 20 |(laststa|rt) \.X |
|00005fd0| 20 20 20 20 20 6c 61 73 | 74 73 74 61 72 74 20 2b | las|tstart +|
|00005fe0| 3d 20 63 3b 20 5c 0a 58 | 20 20 20 20 62 65 67 61 |= c; \.X| bega|
|00005ff0| 6c 74 20 2b 3d 20 63 3b | 20 5c 0a 58 20 20 20 20 |lt += c;| \.X |
|00006000| 69 66 20 28 70 65 6e 64 | 69 6e 67 5f 65 78 61 63 |if (pend|ing_exac|
|00006010| 74 29 20 5c 0a 58 20 20 | 20 20 20 20 70 65 6e 64 |t) \.X | pend|
|00006020| 69 6e 67 5f 65 78 61 63 | 74 20 2b 3d 20 63 3b 20 |ing_exac|t += c; |
|00006030| 5c 0a 58 20 20 7d 0a 58 | 0a 58 73 74 61 74 69 63 |\.X }.X|.Xstatic|
|00006040| 20 69 6e 74 20 73 74 6f | 72 65 5f 6a 75 6d 70 20 | int sto|re_jump |
|00006050| 28 29 2c 20 69 6e 73 65 | 72 74 5f 6a 75 6d 70 20 |(), inse|rt_jump |
|00006060| 28 29 3b 0a 58 0a 58 63 | 68 61 72 20 2a 0a 58 72 |();.X.Xc|har *.Xr|
|00006070| 65 5f 63 6f 6d 70 69 6c | 65 5f 70 61 74 74 65 72 |e_compil|e_patter|
|00006080| 6e 20 28 70 61 74 74 65 | 72 6e 2c 20 73 69 7a 65 |n (patte|rn, size|
|00006090| 2c 20 62 75 66 70 29 0a | 58 20 20 20 20 20 63 68 |, bufp).|X ch|
|000060a0| 61 72 20 2a 70 61 74 74 | 65 72 6e 3b 0a 58 20 20 |ar *patt|ern;.X |
|000060b0| 20 20 20 69 6e 74 20 73 | 69 7a 65 3b 0a 58 20 20 | int s|ize;.X |
|000060c0| 20 20 20 73 74 72 75 63 | 74 20 72 65 5f 70 61 74 | struc|t re_pat|
|000060d0| 74 65 72 6e 5f 62 75 66 | 66 65 72 20 2a 62 75 66 |tern_buf|fer *buf|
|000060e0| 70 3b 0a 58 7b 0a 58 20 | 20 72 65 67 69 73 74 65 |p;.X{.X | registe|
|000060f0| 72 20 63 68 61 72 20 2a | 62 20 3d 20 62 75 66 70 |r char *|b = bufp|
|00006100| 2d 3e 62 75 66 66 65 72 | 3b 0a 58 20 20 72 65 67 |->buffer|;.X reg|
|00006110| 69 73 74 65 72 20 63 68 | 61 72 20 2a 70 20 3d 20 |ister ch|ar *p = |
|00006120| 70 61 74 74 65 72 6e 3b | 0a 58 20 20 63 68 61 72 |pattern;|.X char|
|00006130| 20 2a 70 65 6e 64 20 3d | 20 70 61 74 74 65 72 6e | *pend =| pattern|
|00006140| 20 2b 20 73 69 7a 65 3b | 0a 58 20 20 72 65 67 69 | + size;|.X regi|
|00006150| 73 74 65 72 20 75 6e 73 | 69 67 6e 65 64 20 63 2c |ster uns|igned c,|
|00006160| 20 63 31 3b 0a 58 20 20 | 63 68 61 72 20 2a 70 31 | c1;.X |char *p1|
|00006170| 3b 0a 58 20 20 75 6e 73 | 69 67 6e 65 64 20 63 68 |;.X uns|igned ch|
|00006180| 61 72 20 2a 74 72 61 6e | 73 6c 61 74 65 20 3d 20 |ar *tran|slate = |
|00006190| 28 75 6e 73 69 67 6e 65 | 64 20 63 68 61 72 20 2a |(unsigne|d char *|
|000061a0| 29 20 62 75 66 70 2d 3e | 74 72 61 6e 73 6c 61 74 |) bufp->|translat|
|000061b0| 65 3b 0a 58 0a 58 20 20 | 2f 2a 20 61 64 64 72 65 |e;.X.X |/* addre|
|000061c0| 73 73 20 6f 66 20 74 68 | 65 20 63 6f 75 6e 74 2d |ss of th|e count-|
|000061d0| 62 79 74 65 20 6f 66 20 | 74 68 65 20 6d 6f 73 74 |byte of |the most|
|000061e0| 20 72 65 63 65 6e 74 6c | 79 20 69 6e 73 65 72 74 | recentl|y insert|
|000061f0| 65 64 20 22 65 78 61 63 | 74 6e 22 20 63 6f 6d 6d |ed "exac|tn" comm|
|00006200| 61 6e 64 2e 0a 58 20 20 | 20 20 54 68 69 73 20 6d |and..X | This m|
|00006210| 61 6b 65 73 20 69 74 20 | 70 6f 73 73 69 62 6c 65 |akes it |possible|
|00006220| 20 74 6f 20 74 65 6c 6c | 20 77 68 65 74 68 65 72 | to tell| whether|
|00006230| 20 61 20 6e 65 77 20 65 | 78 61 63 74 2d 6d 61 74 | a new e|xact-mat|
|00006240| 63 68 20 63 68 61 72 61 | 63 74 65 72 0a 58 20 20 |ch chara|cter.X |
|00006250| 20 20 63 61 6e 20 62 65 | 20 61 64 64 65 64 20 74 | can be| added t|
|00006260| 6f 20 74 68 61 74 20 63 | 6f 6d 6d 61 6e 64 20 6f |o that c|ommand o|
|00006270| 72 20 72 65 71 75 69 72 | 65 73 20 61 20 6e 65 77 |r requir|es a new|
|00006280| 20 22 65 78 61 63 74 6e | 22 20 63 6f 6d 6d 61 6e | "exactn|" comman|
|00006290| 64 2e 20 2a 2f 0a 58 20 | 20 20 20 20 0a 58 20 20 |d. */.X | .X |
|000062a0| 63 68 61 72 20 2a 70 65 | 6e 64 69 6e 67 5f 65 78 |char *pe|nding_ex|
|000062b0| 61 63 74 20 3d 20 30 3b | 0a 58 0a 58 20 20 2f 2a |act = 0;|.X.X /*|
|000062c0| 20 61 64 64 72 65 73 73 | 20 6f 66 20 74 68 65 20 | address| of the |
|000062d0| 70 6c 61 63 65 20 77 68 | 65 72 65 20 61 20 66 6f |place wh|ere a fo|
|000062e0| 72 77 61 72 64 2d 6a 75 | 6d 70 20 73 68 6f 75 6c |rward-ju|mp shoul|
|000062f0| 64 20 67 6f 0a 58 20 20 | 20 20 74 6f 20 74 68 65 |d go.X | to the|
|00006300| 20 65 6e 64 20 6f 66 20 | 74 68 65 20 63 6f 6e 74 | end of |the cont|
|00006310| 61 69 6e 69 6e 67 20 65 | 78 70 72 65 73 73 69 6f |aining e|xpressio|
|00006320| 6e 2e 0a 58 20 20 20 20 | 45 61 63 68 20 61 6c 74 |n..X |Each alt|
|00006330| 65 72 6e 61 74 69 76 65 | 20 6f 66 20 61 6e 20 22 |ernative| of an "|
|00006340| 6f 72 22 2c 20 65 78 63 | 65 70 74 20 74 68 65 20 |or", exc|ept the |
|00006350| 6c 61 73 74 2c 20 65 6e | 64 73 20 77 69 74 68 20 |last, en|ds with |
|00006360| 61 20 66 6f 72 77 61 72 | 64 2d 6a 75 6d 70 0a 58 |a forwar|d-jump.X|
|00006370| 20 20 20 20 6f 66 20 74 | 68 69 73 20 73 6f 72 74 | of t|his sort|
|00006380| 2e 20 2a 2f 0a 58 0a 58 | 20 20 63 68 61 72 20 2a |. */.X.X| char *|
|00006390| 66 69 78 75 70 5f 6a 75 | 6d 70 20 3d 20 30 3b 0a |fixup_ju|mp = 0;.|
|000063a0| 58 0a 58 20 20 2f 2a 20 | 61 64 64 72 65 73 73 20 |X.X /* |address |
|000063b0| 6f 66 20 73 74 61 72 74 | 20 6f 66 20 74 68 65 20 |of start| of the |
|000063c0| 6d 6f 73 74 20 72 65 63 | 65 6e 74 6c 79 20 66 69 |most rec|ently fi|
|000063d0| 6e 69 73 68 65 64 20 65 | 78 70 72 65 73 73 69 6f |nished e|xpressio|
|000063e0| 6e 2e 0a 58 20 20 20 20 | 54 68 69 73 20 74 65 6c |n..X |This tel|
|000063f0| 6c 73 20 70 6f 73 74 66 | 69 78 20 2a 20 77 68 65 |ls postf|ix * whe|
+--------+-------------------------+-------------------------+--------+--------+
Only 25.0 KB of data is shown above.