home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 January / usenetsourcesnewsgroupsinfomagicjanuary1994.iso / sources / x / volume10 / xt-examples / part01 next >
SHell self-extracting ARchive  |  1990-11-04  |  68.6 KB

open in: MacOS 8.1     |     Win98     |     DOS

browse contents    |     view JSON data     |     view as text


This file was processed as: SHell self-extracting ARchive (archive/shar).

ConfidenceProgramDetectionMatch TypeSupport
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% checkBytes Printable ASCII 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 63 73 2e 75 |Path: uu|net!cs.u|
|00000010| 74 65 78 61 73 2e 65 64 | 75 21 73 75 6e 2d 62 61 |texas.ed|u!sun-ba|
|00000020| 72 72 21 6e 65 77 73 74 | 6f 70 21 73 75 6e 21 61 |rr!newst|op!sun!a|
|00000030| 64 6f 62 65 2e 63 6f 6d | 21 61 73 65 6e 74 65 0a |dobe.com|!asente.|
|00000040| 46 72 6f 6d 3a 20 61 73 | 65 6e 74 65 40 61 64 6f |From: as|ente@ado|
|00000050| 62 65 2e 63 6f 6d 0a 4e | 65 77 73 67 72 6f 75 70 |be.com.N|ewsgroup|
|00000060| 73 3a 20 63 6f 6d 70 2e | 73 6f 75 72 63 65 73 2e |s: comp.|sources.|
|00000070| 78 0a 53 75 62 6a 65 63 | 74 3a 20 76 31 30 69 30 |x.Subjec|t: v10i0|
|00000080| 34 31 3a 20 45 78 61 6d | 70 6c 65 73 20 66 72 6f |41: Exam|ples fro|
|00000090| 6d 20 4e 65 77 20 58 74 | 20 42 6f 6f 6b 2c 20 50 |m New Xt| Book, P|
|000000a0| 61 72 74 30 31 2f 30 35 | 0a 4d 65 73 73 61 67 65 |art01/05|.Message|
|000000b0| 2d 49 44 3a 20 3c 63 73 | 78 2d 31 30 69 30 34 31 |-ID: <cs|x-10i041|
|000000c0| 3a 78 74 2d 65 78 61 6d | 70 6c 65 73 40 75 75 6e |:xt-exam|ples@uun|
|000000d0| 65 74 2e 55 55 2e 4e 45 | 54 3e 0a 44 61 74 65 3a |et.UU.NE|T>.Date:|
|000000e0| 20 31 20 4e 6f 76 20 39 | 30 20 30 35 3a 35 32 3a | 1 Nov 9|0 05:52:|
|000000f0| 31 37 20 47 4d 54 0a 53 | 65 6e 64 65 72 3a 20 6e |17 GMT.S|ender: n|
|00000100| 65 77 73 40 73 75 6e 2e | 45 6e 67 2e 53 75 6e 2e |ews@sun.|Eng.Sun.|
|00000110| 43 4f 4d 0a 4c 69 6e 65 | 73 3a 20 32 32 31 31 0a |COM.Line|s: 2211.|
|00000120| 41 70 70 72 6f 76 65 64 | 3a 20 61 72 67 76 40 73 |Approved|: argv@s|
|00000130| 75 6e 2e 63 6f 6d 0a 0a | 53 75 62 6d 69 74 74 65 |un.com..|Submitte|
|00000140| 64 2d 62 79 3a 20 61 73 | 65 6e 74 65 40 61 64 6f |d-by: as|ente@ado|
|00000150| 62 65 2e 63 6f 6d 0a 50 | 6f 73 74 69 6e 67 2d 6e |be.com.P|osting-n|
|00000160| 75 6d 62 65 72 3a 20 56 | 6f 6c 75 6d 65 20 31 30 |umber: V|olume 10|
|00000170| 2c 20 49 73 73 75 65 20 | 34 31 0a 41 72 63 68 69 |, Issue |41.Archi|
|00000180| 76 65 2d 6e 61 6d 65 3a | 20 78 74 2d 65 78 61 6d |ve-name:| xt-exam|
|00000190| 70 6c 65 73 2f 70 61 72 | 74 30 31 0a 0a 5b 20 4d |ples/par|t01..[ M|
|000001a0| 6f 64 65 72 61 74 6f 72 | 27 73 20 6e 6f 74 65 20 |oderator|'s note |
|000001b0| 2d 2d 0a 20 20 54 68 65 | 20 66 6f 6c 6c 6f 77 69 |--. The| followi|
|000001c0| 6e 67 20 35 20 73 68 61 | 72 27 73 20 63 6f 6e 74 |ng 5 sha|r's cont|
|000001d0| 61 69 6e 20 74 68 65 20 | 73 6f 75 72 63 65 20 74 |ain the |source t|
|000001e0| 6f 20 74 68 65 20 65 78 | 61 6d 70 6c 65 20 70 72 |o the ex|ample pr|
|000001f0| 6f 67 72 61 6d 73 20 75 | 73 65 64 0a 20 20 69 6e |ograms u|sed. in|
|00000200| 20 50 61 75 6c 20 41 73 | 65 6e 74 65 27 73 20 6e | Paul As|ente's n|
|00000210| 65 77 20 62 6f 6f 6b 20 | 6f 6e 20 70 72 6f 67 72 |ew book |on progr|
|00000220| 61 6d 6d 69 6e 67 20 58 | 74 2c 20 74 68 65 20 74 |amming X|t, the t|
|00000230| 6f 6f 6c 6b 69 74 20 69 | 6e 74 72 69 6e 73 69 63 |oolkit i|ntrinsic|
|00000240| 73 2e 0a 20 20 41 6c 6c | 20 66 6c 61 6d 65 73 20 |s.. All| flames |
|00000250| 66 6f 72 20 6c 61 63 6b | 20 6f 66 20 49 6d 61 6b |for lack| of Imak|
|00000260| 65 66 69 6c 65 27 73 20 | 73 68 6f 75 6c 64 20 62 |efile's |should b|
|00000270| 65 20 64 69 72 65 63 74 | 65 64 20 74 6f 20 50 61 |e direct|ed to Pa|
|00000280| 75 6c 20 3a 2d 29 0a 20 | 20 4e 6f 2c 20 74 68 69 |ul :-). | No, thi|
|00000290| 73 20 64 6f 65 73 20 2a | 6e 6f 74 2a 20 6d 65 61 |s does *|not* mea|
|000002a0| 6e 20 74 68 61 74 20 79 | 6f 75 20 64 6f 6e 27 74 |n that y|ou don't|
|000002b0| 20 68 61 76 65 20 74 6f | 20 69 6e 63 6c 75 64 65 | have to| include|
|000002c0| 20 49 6d 61 6b 65 66 69 | 6c 65 73 0a 20 20 69 6e | Imakefi|les. in|
|000002d0| 20 79 6f 75 72 20 6e 65 | 78 74 20 73 75 62 6d 69 | your ne|xt submi|
|000002e0| 73 73 69 6f 6e 21 20 20 | 2d 2d 64 61 6e 0a 5d 0a |ssion! |--dan.].|
|000002f0| 0a 0a 23 21 20 2f 62 69 | 6e 2f 73 68 0a 23 20 54 |..#! /bi|n/sh.# T|
|00000300| 68 69 73 20 69 73 20 61 | 20 73 68 65 6c 6c 20 61 |his is a| shell a|
|00000310| 72 63 68 69 76 65 2c 20 | 6d 65 61 6e 69 6e 67 3a |rchive, |meaning:|
|00000320| 0a 23 20 31 2e 20 52 65 | 6d 6f 76 65 20 65 76 65 |.# 1. Re|move eve|
|00000330| 72 79 74 68 69 6e 67 20 | 61 62 6f 76 65 20 74 68 |rything |above th|
|00000340| 65 20 23 21 20 2f 62 69 | 6e 2f 73 68 20 6c 69 6e |e #! /bi|n/sh lin|
|00000350| 65 2e 0a 23 20 32 2e 20 | 53 61 76 65 20 74 68 65 |e..# 2. |Save the|
|00000360| 20 72 65 73 75 6c 74 69 | 6e 67 20 74 65 78 74 20 | resulti|ng text |
|00000370| 69 6e 20 61 20 66 69 6c | 65 2e 0a 23 20 33 2e 20 |in a fil|e..# 3. |
|00000380| 45 78 65 63 75 74 65 20 | 74 68 65 20 66 69 6c 65 |Execute |the file|
|00000390| 20 77 69 74 68 20 2f 62 | 69 6e 2f 73 68 20 28 6e | with /b|in/sh (n|
|000003a0| 6f 74 20 63 73 68 29 20 | 74 6f 20 63 72 65 61 74 |ot csh) |to creat|
|000003b0| 65 20 74 68 65 20 66 69 | 6c 65 73 3a 0a 23 09 52 |e the fi|les:.#.R|
|000003c0| 45 41 44 4d 45 0a 23 09 | 4d 61 6b 65 66 69 6c 65 |EADME.#.|Makefile|
|000003d0| 0a 23 09 61 63 63 65 6c | 2e 63 0a 23 09 62 61 72 |.#.accel|.c.#.bar|
|000003e0| 67 72 61 70 68 2e 63 0a | 23 09 63 6f 6e 66 69 72 |graph.c.|#.confir|
|000003f0| 6d 2e 63 0a 23 09 63 6f | 6e 66 69 72 6d 31 2e 63 |m.c.#.co|nfirm1.c|
|00000400| 0a 23 09 67 61 64 67 65 | 74 2e 63 0a 23 09 67 6f |.#.gadge|t.c.#.go|
|00000410| 6f 64 62 79 65 2e 63 0a | 23 09 6a 75 73 74 69 66 |odbye.c.|#.justif|
|00000420| 79 2e 63 0a 23 09 6d 65 | 6e 75 2e 63 0a 23 09 73 |y.c.#.me|nu.c.#.s|
|00000430| 65 6e 73 69 74 69 76 65 | 2e 63 0a 23 09 78 62 69 |ensitive|.c.#.xbi|
|00000440| 66 66 2e 63 0a 23 09 78 | 63 61 6c 63 2e 63 0a 23 |ff.c.#.x|calc.c.#|
|00000450| 09 78 6d 6f 6e 69 74 6f | 72 2e 63 0a 23 09 44 65 |.xmonito|r.c.#.De|
|00000460| 6d 6f 42 69 66 66 0a 23 | 09 44 65 6d 6f 43 61 6c |moBiff.#|.DemoCal|
|00000470| 63 0a 23 09 44 65 6d 6f | 4d 6f 6e 69 74 6f 72 0a |c.#.Demo|Monitor.|
|00000480| 23 20 54 68 69 73 20 61 | 72 63 68 69 76 65 20 63 |# This a|rchive c|
|00000490| 72 65 61 74 65 64 3a 20 | 57 65 64 20 4f 63 74 20 |reated: |Wed Oct |
|000004a0| 32 34 20 31 34 3a 32 38 | 3a 34 36 20 31 39 39 30 |24 14:28|:46 1990|
|000004b0| 0a 65 78 70 6f 72 74 20 | 50 41 54 48 3b 20 50 41 |.export |PATH; PA|
|000004c0| 54 48 3d 2f 62 69 6e 3a | 24 50 41 54 48 0a 65 63 |TH=/bin:|$PATH.ec|
|000004d0| 68 6f 20 73 68 61 72 3a | 20 65 78 74 72 61 63 74 |ho shar:| extract|
|000004e0| 69 6e 67 20 22 27 52 45 | 41 44 4d 45 27 22 20 27 |ing "'RE|ADME'" '|
|000004f0| 28 34 31 35 33 20 63 68 | 61 72 61 63 74 65 72 73 |(4153 ch|aracters|
|00000500| 29 27 0a 69 66 20 74 65 | 73 74 20 2d 66 20 27 52 |)'.if te|st -f 'R|
|00000510| 45 41 44 4d 45 27 0a 74 | 68 65 6e 0a 09 65 63 68 |EADME'.t|hen..ech|
|00000520| 6f 20 73 68 61 72 3a 20 | 77 69 6c 6c 20 6e 6f 74 |o shar: |will not|
|00000530| 20 6f 76 65 72 2d 77 72 | 69 74 65 20 65 78 69 73 | over-wr|ite exis|
|00000540| 74 69 6e 67 20 66 69 6c | 65 20 22 27 52 45 41 44 |ting fil|e "'READ|
|00000550| 4d 45 27 22 0a 65 6c 73 | 65 0a 73 65 64 20 27 73 |ME'".els|e.sed 's|
|00000560| 2f 5e 09 58 2f 2f 27 20 | 3c 3c 20 5c 53 48 41 52 |/^.X//' |<< \SHAR|
|00000570| 5f 45 4f 46 20 3e 20 27 | 52 45 41 44 4d 45 27 0a |_EOF > '|README'.|
|00000580| 09 58 54 68 69 73 20 64 | 69 72 65 63 74 6f 72 79 |.XThis d|irectory|
|00000590| 20 63 6f 6e 74 61 69 6e | 73 20 74 68 65 20 73 61 | contain|s the sa|
|000005a0| 6d 70 6c 65 20 77 69 64 | 67 65 74 73 20 61 6e 64 |mple wid|gets and|
|000005b0| 20 61 70 70 6c 69 63 61 | 74 69 6f 6e 73 20 64 65 | applica|tions de|
|000005c0| 73 63 72 69 62 65 64 0a | 09 58 69 6e 20 22 58 20 |scribed.|.Xin "X |
|000005d0| 57 69 6e 64 6f 77 20 53 | 79 73 74 65 6d 20 54 6f |Window S|ystem To|
|000005e0| 6f 6c 6b 69 74 20 2d 2d | 20 50 72 6f 67 72 61 6d |olkit --| Program|
|000005f0| 6d 65 72 27 73 20 47 75 | 69 64 65 20 61 6e 64 20 |mer's Gu|ide and |
|00000600| 53 70 65 63 69 66 69 63 | 61 74 69 6f 6e 22 20 62 |Specific|ation" b|
|00000610| 79 0a 09 58 50 61 75 6c | 20 41 73 65 6e 74 65 20 |y..XPaul| Asente |
|00000620| 61 6e 64 20 52 61 6c 70 | 68 20 53 77 69 63 6b 2e |and Ralp|h Swick.|
|00000630| 20 20 49 74 20 61 6c 73 | 6f 20 63 6f 6e 74 61 69 | It als|o contai|
|00000640| 6e 73 20 61 20 6e 75 6d | 62 65 72 20 6f 66 20 73 |ns a num|ber of s|
|00000650| 69 6d 70 6c 65 0a 09 58 | 61 70 70 6c 69 63 61 74 |imple..X|applicat|
|00000660| 69 6f 6e 73 20 74 6f 20 | 65 78 65 72 63 69 73 65 |ions to |exercise|
|00000670| 20 74 68 65 20 63 61 70 | 61 62 69 6c 69 74 69 65 | the cap|abilitie|
|00000680| 73 20 6f 66 20 74 68 65 | 20 77 69 64 67 65 74 73 |s of the| widgets|
|00000690| 2e 0a 09 58 0a 09 58 54 | 68 69 73 20 64 69 72 65 |...X..XT|his dire|
|000006a0| 63 74 6f 72 79 20 69 73 | 20 6e 6f 74 20 73 65 74 |ctory is| not set|
|000006b0| 20 75 70 20 61 73 20 73 | 6f 66 74 77 61 72 65 20 | up as s|oftware |
|000006c0| 74 6f 20 62 65 20 69 6e | 73 74 61 6c 6c 65 64 2e |to be in|stalled.|
|000006d0| 20 20 54 68 65 20 6f 6e | 6c 79 20 63 68 61 6e 67 | The on|ly chang|
|000006e0| 65 73 0a 09 58 74 68 61 | 74 20 6d 69 67 68 74 20 |es..Xtha|t might |
|000006f0| 62 65 20 6e 65 63 65 73 | 73 61 72 79 20 74 6f 20 |be neces|sary to |
|00000700| 6d 61 6b 65 20 74 68 69 | 73 20 62 75 69 6c 64 20 |make thi|s build |
|00000710| 61 72 65 20 74 68 65 20 | 66 69 72 73 74 20 74 68 |are the |first th|
|00000720| 72 65 65 20 6c 69 6e 65 | 73 0a 09 58 6f 66 20 74 |ree line|s..Xof t|
|00000730| 68 65 20 4d 61 6b 65 66 | 69 6c 65 2c 20 67 69 76 |he Makef|ile, giv|
|00000740| 69 6e 67 20 74 68 65 20 | 6c 6f 63 61 74 69 6f 6e |ing the |location|
|00000750| 73 20 6f 66 20 74 68 65 | 20 58 74 20 6c 69 62 72 |s of the| Xt libr|
|00000760| 61 72 79 2c 20 74 68 65 | 20 58 31 31 20 6c 69 62 |ary, the| X11 lib|
|00000770| 72 61 72 79 2c 0a 09 58 | 61 6e 64 20 74 68 65 20 |rary,..X|and the |
|00000780| 58 20 69 6e 63 6c 75 64 | 65 20 66 69 6c 65 73 2e |X includ|e files.|
|00000790| 0a 09 58 0a 09 58 54 68 | 65 73 65 20 77 69 64 67 |..X..XTh|ese widg|
|000007a0| 65 74 73 20 61 6e 64 20 | 61 70 70 6c 69 63 61 74 |ets and |applicat|
|000007b0| 69 6f 6e 73 20 72 65 71 | 75 69 72 65 20 49 6e 74 |ions req|uire Int|
|000007c0| 72 69 6e 73 69 63 73 20 | 6c 69 62 72 61 72 69 65 |rinsics |librarie|
|000007d0| 73 20 61 6e 64 20 68 65 | 61 64 65 72 0a 09 58 66 |s and he|ader..Xf|
|000007e0| 69 6c 65 73 20 74 68 61 | 74 20 61 72 65 20 52 65 |iles tha|t are Re|
|000007f0| 6c 65 61 73 65 20 34 2c | 20 70 61 74 63 68 65 64 |lease 4,| patched|
|00000800| 20 74 68 72 6f 75 67 68 | 20 66 69 78 2d 31 31 20 | through| fix-11 |
|00000810| 66 72 6f 6d 20 50 72 6f | 6a 65 63 74 20 41 74 68 |from Pro|ject Ath|
|00000820| 65 6e 61 2e 0a 09 58 0a | 09 58 54 68 65 20 74 65 |ena...X.|.XThe te|
|00000830| 73 74 20 61 70 70 6c 69 | 63 61 74 69 6f 6e 73 20 |st appli|cations |
|00000840| 61 72 65 20 65 6e 74 69 | 72 65 6c 79 20 73 65 6c |are enti|rely sel|
|00000850| 66 2d 63 6f 6e 74 61 69 | 6e 65 64 20 61 6e 64 20 |f-contai|ned and |
|00000860| 64 6f 20 6e 6f 20 72 65 | 6c 79 20 75 70 6f 6e 0a |do no re|ly upon.|
|00000870| 09 58 61 6e 20 61 70 70 | 6c 69 63 61 74 69 6f 6e |.Xan app|lication|
|00000880| 20 64 65 66 61 75 6c 74 | 73 20 66 69 6c 65 2e 20 | default|s file. |
|00000890| 20 54 68 65 20 73 61 6d | 70 6c 65 20 61 70 70 6c | The sam|ple appl|
|000008a0| 69 63 61 74 69 6f 6e 73 | 20 78 62 69 66 66 2c 20 |ications| xbiff, |
|000008b0| 78 63 61 6c 63 2c 20 61 | 6e 64 0a 09 58 78 6d 6f |xcalc, a|nd..Xxmo|
|000008c0| 6e 69 74 6f 72 20 64 6f | 20 72 65 71 75 69 72 65 |nitor do| require|
|000008d0| 20 61 70 70 6c 69 63 61 | 74 69 6f 6e 20 64 65 66 | applica|tion def|
|000008e0| 61 75 6c 74 73 20 66 69 | 6c 65 73 2e 20 20 54 68 |aults fi|les. Th|
|000008f0| 65 20 65 61 73 69 65 73 | 74 20 77 61 79 20 74 6f |e easies|t way to|
|00000900| 20 72 75 6e 20 74 68 65 | 6d 0a 09 58 69 73 20 74 | run the|m..Xis t|
|00000910| 6f 20 73 65 74 20 74 68 | 65 20 58 41 50 50 4c 52 |o set th|e XAPPLR|
|00000920| 45 53 44 49 52 20 65 6e | 76 69 72 6f 6e 6d 65 6e |ESDIR en|vironmen|
|00000930| 74 20 76 61 72 69 61 62 | 6c 65 20 74 6f 20 3a 20 |t variab|le to : |
|00000940| 61 6e 64 20 74 6f 20 72 | 75 6e 20 74 68 65 0a 09 |and to r|un the..|
|00000950| 58 61 70 70 6c 69 63 61 | 74 69 6f 6e 73 20 69 6e |Xapplica|tions in|
|00000960| 20 74 68 65 20 64 69 72 | 65 63 74 6f 72 79 20 63 | the dir|ectory c|
|00000970| 6f 6e 74 61 69 6e 69 6e | 67 20 74 68 65 20 64 65 |ontainin|g the de|
|00000980| 66 61 75 6c 74 73 20 66 | 69 6c 65 73 2e 0a 09 58 |faults f|iles...X|
|00000990| 0a 09 58 54 68 65 20 63 | 6f 6e 74 65 6e 74 73 20 |..XThe c|ontents |
|000009a0| 6f 66 20 74 68 69 73 20 | 64 69 72 65 63 74 6f 72 |of this |director|
|000009b0| 79 20 61 72 65 3a 0a 09 | 58 0a 09 58 52 45 41 44 |y are:..|X..XREAD|
|000009c0| 4d 45 09 09 54 68 69 73 | 20 66 69 6c 65 0a 09 58 |ME..This| file..X|
|000009d0| 4d 61 6b 65 66 69 6c 65 | 09 54 68 65 20 6d 61 6b |Makefile|.The mak|
|000009e0| 65 66 69 6c 65 20 66 6f | 72 20 74 68 65 20 73 6f |efile fo|r the so|
|000009f0| 66 74 77 61 72 65 0a 09 | 58 66 72 61 67 6d 65 6e |ftware..|Xfragmen|
|00000a00| 74 73 09 41 20 64 69 72 | 65 63 74 6f 72 79 20 6f |ts.A dir|ectory o|
|00000a10| 66 20 63 6f 64 65 20 66 | 72 61 67 6d 65 6e 74 73 |f code f|ragments|
|00000a20| 20 74 68 61 74 20 61 72 | 65 20 6e 6f 74 20 70 61 | that ar|e not pa|
|00000a30| 72 74 73 20 6f 66 0a 09 | 58 09 09 61 6e 79 20 6f |rts of..|X..any o|
|00000a40| 66 20 74 68 65 20 6f 74 | 68 65 72 20 70 72 6f 67 |f the ot|her prog|
|00000a50| 72 61 6d 73 2e 0a 09 58 | 0a 09 58 42 61 72 44 69 |rams...X|..XBarDi|
|00000a60| 73 70 6c 61 79 2e 63 09 | 54 68 65 20 69 6d 70 6c |splay.c.|The impl|
|00000a70| 65 6d 65 6e 74 61 74 69 | 6f 6e 20 6f 66 20 74 68 |ementati|on of th|
|00000a80| 65 20 42 61 72 44 69 73 | 70 6c 61 79 20 6f 62 6a |e BarDis|play obj|
|00000a90| 65 63 74 0a 09 58 42 61 | 72 44 69 73 70 6c 61 79 |ect..XBa|rDisplay|
|00000aa0| 2e 68 09 54 68 65 20 70 | 75 62 6c 69 63 20 68 65 |.h.The p|ublic he|
|00000ab0| 61 64 65 72 20 66 69 6c | 65 20 66 6f 72 20 74 68 |ader fil|e for th|
|00000ac0| 65 20 42 61 72 44 69 73 | 70 6c 61 79 20 6f 62 6a |e BarDis|play obj|
|00000ad0| 65 63 74 0a 09 58 42 61 | 72 44 69 73 70 6c 61 50 |ect..XBa|rDisplaP|
|00000ae0| 2e 68 09 54 68 65 20 70 | 72 69 76 61 74 65 20 68 |.h.The p|rivate h|
|00000af0| 65 61 64 65 72 20 66 69 | 6c 65 20 66 6f 72 20 74 |eader fi|le for t|
|00000b00| 68 65 20 42 61 72 44 69 | 73 70 6c 61 79 20 6f 62 |he BarDi|splay ob|
|00000b10| 6a 65 63 74 0a 09 58 0a | 09 58 42 6f 78 2e 63 09 |ject..X.|.XBox.c.|
|00000b20| 09 54 68 65 20 69 6d 70 | 6c 65 6d 65 6e 74 61 74 |.The imp|lementat|
|00000b30| 69 6f 6e 20 6f 66 20 74 | 68 65 20 42 6f 78 20 77 |ion of t|he Box w|
|00000b40| 69 64 67 65 74 0a 09 58 | 42 6f 78 2e 68 09 09 54 |idget..X|Box.h..T|
|00000b50| 68 65 20 70 75 62 6c 69 | 63 20 68 65 61 64 65 72 |he publi|c header|
|00000b60| 20 66 69 6c 65 20 66 6f | 72 20 74 68 65 20 42 6f | file fo|r the Bo|
|00000b70| 78 20 77 69 64 67 65 74 | 0a 09 58 42 6f 78 50 2e |x widget|..XBoxP.|
|00000b80| 68 09 09 54 68 65 20 70 | 72 69 76 61 74 65 20 68 |h..The p|rivate h|
|00000b90| 65 61 64 65 72 20 66 69 | 6c 65 20 66 6f 72 20 74 |eader fi|le for t|
|00000ba0| 68 65 20 42 6f 78 20 77 | 69 64 67 65 74 0a 09 58 |he Box w|idget..X|
|00000bb0| 0a 09 58 43 6f 6e 66 69 | 72 6d 2e 63 09 54 68 65 |..XConfi|rm.c.The|
|00000bc0| 20 69 6d 70 6c 65 6d 65 | 6e 74 61 74 69 6f 6e 20 | impleme|ntation |
|00000bd0| 6f 66 20 74 68 65 20 43 | 6f 6e 66 69 72 6d 20 77 |of the C|onfirm w|
|00000be0| 69 64 67 65 74 0a 09 58 | 43 6f 6e 66 69 72 6d 2e |idget..X|Confirm.|
|00000bf0| 68 20 20 20 20 20 20 20 | 54 68 65 20 70 75 62 6c |h |The publ|
|00000c00| 69 63 20 68 65 61 64 65 | 72 20 66 69 6c 65 20 66 |ic heade|r file f|
|00000c10| 6f 72 20 74 68 65 20 43 | 6f 6e 66 69 72 6d 20 77 |or the C|onfirm w|
|00000c20| 69 64 67 65 74 0a 09 58 | 43 6f 6e 66 69 72 6d 50 |idget..X|ConfirmP|
|00000c30| 2e 68 09 54 68 65 20 70 | 72 69 76 61 74 65 20 68 |.h.The p|rivate h|
|00000c40| 65 61 64 65 72 20 66 69 | 6c 65 20 66 6f 72 20 74 |eader fi|le for t|
|00000c50| 68 65 20 43 6f 6e 66 69 | 72 6d 20 77 69 64 67 65 |he Confi|rm widge|
|00000c60| 74 0a 09 58 0a 09 58 43 | 6f 6e 66 69 72 6d 31 2e |t..X..XC|onfirm1.|
|00000c70| 63 09 54 68 65 20 61 6c | 74 65 72 6e 61 74 65 20 |c.The al|ternate |
|00000c80| 69 6d 70 6c 65 6d 65 6e | 74 61 74 69 6f 6e 20 6f |implemen|tation o|
|00000c90| 66 20 74 68 65 20 43 6f | 6e 66 69 72 6d 20 77 69 |f the Co|nfirm wi|
|00000ca0| 64 67 65 74 0a 09 58 43 | 6f 6e 66 69 72 6d 31 2e |dget..XC|onfirm1.|
|00000cb0| 68 09 54 68 65 20 70 75 | 62 6c 69 63 20 68 65 61 |h.The pu|blic hea|
|00000cc0| 64 65 72 20 66 69 6c 65 | 20 66 6f 72 20 74 68 65 |der file| for the|
|00000cd0| 20 61 6c 74 65 72 6e 61 | 74 65 20 43 6f 6e 66 69 | alterna|te Confi|
|00000ce0| 72 6d 20 77 69 64 67 65 | 74 0a 09 58 43 6f 6e 66 |rm widge|t..XConf|
|00000cf0| 69 72 6d 31 50 2e 68 09 | 54 68 65 20 70 72 69 76 |irm1P.h.|The priv|
|00000d00| 61 74 65 20 68 65 61 64 | 65 72 20 66 69 6c 65 20 |ate head|er file |
|00000d10| 66 6f 72 20 74 68 65 20 | 61 6c 74 65 72 6e 61 74 |for the |alternat|
|00000d20| 65 20 43 6f 6e 66 69 72 | 6d 20 77 69 64 67 65 74 |e Confir|m widget|
|00000d30| 0a 09 58 0a 09 58 47 72 | 61 70 68 2e 63 09 09 54 |..X..XGr|aph.c..T|
|00000d40| 68 65 20 69 6d 70 6c 65 | 6d 65 6e 74 61 74 69 6f |he imple|mentatio|
|00000d50| 6e 20 6f 66 20 74 68 65 | 20 47 72 61 70 68 20 77 |n of the| Graph w|
|00000d60| 69 64 67 65 74 0a 09 58 | 47 72 61 70 68 2e 68 09 |idget..X|Graph.h.|
|00000d70| 09 54 68 65 20 70 75 62 | 6c 69 63 20 68 65 61 64 |.The pub|lic head|
|00000d80| 65 72 20 66 69 6c 65 20 | 66 6f 72 20 74 68 65 20 |er file |for the |
|00000d90| 47 72 61 70 68 20 77 69 | 64 67 65 74 0a 09 58 47 |Graph wi|dget..XG|
|00000da0| 72 61 70 68 50 2e 68 09 | 54 68 65 20 70 72 69 76 |raphP.h.|The priv|
|00000db0| 61 74 65 20 68 65 61 64 | 65 72 20 66 69 6c 65 20 |ate head|er file |
|00000dc0| 66 6f 72 20 74 68 65 20 | 47 72 61 70 68 20 77 69 |for the |Graph wi|
|00000dd0| 64 67 65 74 0a 09 58 0a | 09 58 47 72 61 70 68 44 |dget..X.|.XGraphD|
|00000de0| 69 73 70 6c 2e 63 09 54 | 68 65 20 69 6d 70 6c 65 |ispl.c.T|he imple|
|00000df0| 6d 65 6e 74 61 74 69 6f | 6e 20 6f 66 20 74 68 65 |mentatio|n of the|
|00000e00| 20 47 72 61 70 68 44 69 | 73 70 6c 61 79 20 6f 62 | GraphDi|splay ob|
|00000e10| 6a 65 63 74 0a 09 58 47 | 72 61 70 68 44 69 73 70 |ject..XG|raphDisp|
|00000e20| 50 2e 68 09 54 68 65 20 | 70 72 69 76 61 74 65 20 |P.h.The |private |
|00000e30| 68 65 61 64 65 72 20 66 | 69 6c 65 20 66 6f 72 20 |header f|ile for |
|00000e40| 74 68 65 20 47 72 61 70 | 68 44 69 73 70 6c 61 79 |the Grap|hDisplay|
|00000e50| 20 6f 62 6a 65 63 74 0a | 09 58 47 72 61 70 68 44 | object.|.XGraphD|
|00000e60| 69 73 70 6c 2e 68 09 54 | 68 65 20 70 75 62 6c 69 |ispl.h.T|he publi|
|00000e70| 63 20 68 65 61 64 65 72 | 20 66 69 6c 65 20 66 6f |c header| file fo|
|00000e80| 72 20 74 68 65 20 47 72 | 61 70 68 44 69 73 70 6c |r the Gr|aphDispl|
|00000e90| 61 79 20 6f 62 6a 65 63 | 74 0a 09 58 0a 09 58 4c |ay objec|t..X..XL|
|00000ea0| 61 62 65 6c 2e 63 09 09 | 54 68 65 20 69 6d 70 6c |abel.c..|The impl|
|00000eb0| 65 6d 65 6e 74 61 74 69 | 6f 6e 20 6f 66 20 74 68 |ementati|on of th|
|00000ec0| 65 20 4c 61 62 65 6c 20 | 77 69 64 67 65 74 0a 09 |e Label |widget..|
|00000ed0| 58 4c 61 62 65 6c 2e 68 | 09 09 54 68 65 20 70 72 |XLabel.h|..The pr|
|00000ee0| 69 76 61 74 65 20 68 65 | 61 64 65 72 20 66 69 6c |ivate he|ader fil|
|00000ef0| 65 20 66 6f 72 20 74 68 | 65 20 4c 61 62 65 6c 20 |e for th|e Label |
|00000f00| 77 69 64 67 65 74 0a 09 | 58 4c 61 62 65 6c 50 2e |widget..|XLabelP.|
|00000f10| 68 09 54 68 65 20 70 75 | 62 6c 69 63 20 68 65 61 |h.The pu|blic hea|
|00000f20| 64 65 72 20 66 69 6c 65 | 20 66 6f 72 20 74 68 65 |der file| for the|
|00000f30| 20 4c 61 62 65 6c 20 77 | 69 64 67 65 74 0a 09 58 | Label w|idget..X|
|00000f40| 0a 09 58 4c 61 62 65 6c | 47 61 64 67 65 2e 63 09 |..XLabel|Gadge.c.|
|00000f50| 54 68 65 20 69 6d 70 6c | 65 6d 65 6e 74 61 74 69 |The impl|ementati|
|00000f60| 6f 6e 20 6f 66 20 74 68 | 65 20 4c 61 62 65 6c 20 |on of th|e Label |
|00000f70| 67 61 64 67 65 74 0a 09 | 58 4c 61 62 65 6c 47 61 |gadget..|XLabelGa|
|00000f80| 64 67 65 2e 68 09 54 68 | 65 20 70 72 69 76 61 74 |dge.h.Th|e privat|
|00000f90| 65 20 68 65 61 64 65 72 | 20 66 69 6c 65 20 66 6f |e header| file fo|
|00000fa0| 72 20 74 68 65 20 4c 61 | 62 65 6c 20 67 61 64 67 |r the La|bel gadg|
|00000fb0| 65 74 0a 09 58 4c 61 62 | 65 6c 47 61 64 67 50 2e |et..XLab|elGadgP.|
|00000fc0| 68 09 54 68 65 20 70 75 | 62 6c 69 63 20 68 65 61 |h.The pu|blic hea|
|00000fd0| 64 65 72 20 66 69 6c 65 | 20 66 6f 72 20 74 68 65 |der file| for the|
|00000fe0| 20 4c 61 62 65 6c 20 67 | 61 64 67 65 74 0a 09 58 | Label g|adget..X|
|00000ff0| 0a 09 58 4d 65 6e 75 2e | 63 09 09 54 68 65 20 69 |..XMenu.|c..The i|
|00001000| 6d 70 6c 65 6d 65 6e 74 | 61 74 69 6f 6e 20 6f 66 |mplement|ation of|
|00001010| 20 74 68 65 20 4d 65 6e | 75 20 77 69 64 67 65 74 | the Men|u widget|
|00001020| 0a 09 58 4d 65 6e 75 2e | 68 09 09 54 68 65 20 70 |..XMenu.|h..The p|
|00001030| 72 69 76 61 74 65 20 68 | 65 61 64 65 72 20 66 69 |rivate h|eader fi|
|00001040| 6c 65 20 66 6f 72 20 74 | 68 65 20 4d 65 6e 75 20 |le for t|he Menu |
|00001050| 77 69 64 67 65 74 0a 09 | 58 4d 65 6e 75 50 2e 68 |widget..|XMenuP.h|
|00001060| 09 09 54 68 65 20 70 75 | 62 6c 69 63 20 68 65 61 |..The pu|blic hea|
|00001070| 64 65 72 20 66 69 6c 65 | 20 66 6f 72 20 74 68 65 |der file| for the|
|00001080| 20 4d 65 6e 75 20 77 69 | 64 67 65 74 0a 09 58 0a | Menu wi|dget..X.|
|00001090| 09 58 4d 65 6e 75 49 74 | 65 6d 2e 63 09 54 68 65 |.XMenuIt|em.c.The|
|000010a0| 20 69 6d 70 6c 65 6d 65 | 6e 74 61 74 69 6f 6e 20 | impleme|ntation |
|000010b0| 6f 66 20 74 68 65 20 4d | 65 6e 75 49 74 65 6d 20 |of the M|enuItem |
|000010c0| 77 69 64 67 65 74 0a 09 | 58 4d 65 6e 75 49 74 65 |widget..|XMenuIte|
|000010d0| 6d 2e 68 09 54 68 65 20 | 70 72 69 76 61 74 65 20 |m.h.The |private |
|000010e0| 68 65 61 64 65 72 20 66 | 69 6c 65 20 66 6f 72 20 |header f|ile for |
|000010f0| 74 68 65 20 4d 65 6e 75 | 49 74 65 6d 20 77 69 64 |the Menu|Item wid|
|00001100| 67 65 74 0a 09 58 4d 65 | 6e 75 49 74 65 6d 50 2e |get..XMe|nuItemP.|
|00001110| 68 09 54 68 65 20 70 75 | 62 6c 69 63 20 68 65 61 |h.The pu|blic hea|
|00001120| 64 65 72 20 66 69 6c 65 | 20 66 6f 72 20 74 68 65 |der file| for the|
|00001130| 20 4d 65 6e 75 49 74 65 | 6d 20 77 69 64 67 65 74 | MenuIte|m widget|
|00001140| 0a 09 58 0a 09 58 4d 69 | 6e 4d 61 78 2e 63 09 54 |..X..XMi|nMax.c.T|
|00001150| 68 65 20 69 6d 70 6c 65 | 6d 65 6e 74 61 74 69 6f |he imple|mentatio|
|00001160| 6e 20 6f 66 20 74 68 65 | 20 4d 69 6e 4d 61 78 20 |n of the| MinMax |
|00001170| 77 69 64 67 65 74 0a 09 | 58 4d 69 6e 4d 61 78 2e |widget..|XMinMax.|
|00001180| 68 09 54 68 65 20 70 72 | 69 76 61 74 65 20 68 65 |h.The pr|ivate he|
|00001190| 61 64 65 72 20 66 69 6c | 65 20 66 6f 72 20 74 68 |ader fil|e for th|
|000011a0| 65 20 4d 69 6e 4d 61 78 | 20 77 69 64 67 65 74 0a |e MinMax| widget.|
|000011b0| 09 58 4d 69 6e 4d 61 78 | 50 2e 68 09 54 68 65 20 |.XMinMax|P.h.The |
|000011c0| 70 75 62 6c 69 63 20 68 | 65 61 64 65 72 20 66 69 |public h|eader fi|
|000011d0| 6c 65 20 66 6f 72 20 74 | 68 65 20 4d 69 6e 4d 61 |le for t|he MinMa|
|000011e0| 78 20 77 69 64 67 65 74 | 0a 09 58 0a 09 58 50 75 |x widget|..X..XPu|
|000011f0| 73 68 62 75 74 74 6f 6e | 2e 63 09 54 68 65 20 69 |shbutton|.c.The i|
|00001200| 6d 70 6c 65 6d 65 6e 74 | 61 74 69 6f 6e 20 6f 66 |mplement|ation of|
|00001210| 20 74 68 65 20 50 75 73 | 68 62 75 74 74 6f 6e 20 | the Pus|hbutton |
|00001220| 77 69 64 67 65 74 0a 09 | 58 50 75 73 68 62 75 74 |widget..|XPushbut|
|00001230| 74 6f 6e 2e 68 09 54 68 | 65 20 70 72 69 76 61 74 |ton.h.Th|e privat|
|00001240| 65 20 68 65 61 64 65 72 | 20 66 69 6c 65 20 66 6f |e header| file fo|
|00001250| 72 20 74 68 65 20 50 75 | 73 68 62 75 74 74 6f 6e |r the Pu|shbutton|
|00001260| 20 77 69 64 67 65 74 0a | 09 58 50 75 73 68 62 75 | widget.|.XPushbu|
|00001270| 74 74 6f 50 2e 68 09 54 | 68 65 20 70 75 62 6c 69 |ttoP.h.T|he publi|
|00001280| 63 20 68 65 61 64 65 72 | 20 66 69 6c 65 20 66 6f |c header| file fo|
|00001290| 72 20 74 68 65 20 50 75 | 73 68 62 75 74 74 6f 6e |r the Pu|shbutton|
|000012a0| 20 77 69 64 67 65 74 0a | 09 58 0a 09 58 61 63 63 | widget.|.X..Xacc|
|000012b0| 65 6c 2e 63 09 09 41 20 | 74 65 73 74 20 61 70 70 |el.c..A |test app|
|000012c0| 6c 69 63 61 74 69 6f 6e | 20 74 6f 20 65 78 65 72 |lication| to exer|
|000012d0| 63 69 73 65 20 61 63 63 | 65 6c 65 72 61 74 6f 72 |cise acc|elerator|
|000012e0| 73 0a 09 58 62 61 72 67 | 72 61 70 68 2e 63 09 41 |s..Xbarg|raph.c.A|
|000012f0| 20 74 65 73 74 20 61 70 | 70 6c 69 63 61 74 69 6f | test ap|plicatio|
|00001300| 6e 20 74 6f 20 65 78 65 | 72 63 69 73 65 20 74 68 |n to exe|rcise th|
|00001310| 65 20 47 72 61 70 68 20 | 77 69 64 67 65 74 0a 09 |e Graph |widget..|
|00001320| 58 63 6f 6e 66 69 72 6d | 2e 63 09 41 20 74 65 73 |Xconfirm|.c.A tes|
|00001330| 74 20 61 70 70 6c 69 63 | 61 74 69 6f 6e 20 74 6f |t applic|ation to|
|00001340| 20 65 78 65 72 63 69 73 | 65 20 74 68 65 20 43 6f | exercis|e the Co|
|00001350| 6e 66 69 72 6d 20 77 69 | 64 67 65 74 0a 09 58 63 |nfirm wi|dget..Xc|
|00001360| 6f 6e 66 69 72 6d 31 2e | 63 09 41 20 74 65 73 74 |onfirm1.|c.A test|
|00001370| 20 61 70 70 6c 69 63 61 | 74 69 6f 6e 20 74 6f 20 | applica|tion to |
|00001380| 65 78 65 72 63 69 73 65 | 20 74 68 65 20 61 6c 74 |exercise| the alt|
|00001390| 65 72 6e 61 74 65 20 43 | 6f 6e 66 69 72 6d 20 77 |ernate C|onfirm w|
|000013a0| 69 64 67 65 74 0a 09 58 | 67 61 64 67 65 74 2e 63 |idget..X|gadget.c|
|000013b0| 09 41 20 74 65 73 74 20 | 61 70 70 6c 69 63 61 74 |.A test |applicat|
|000013c0| 69 6f 6e 20 74 6f 20 65 | 78 65 72 63 69 73 65 20 |ion to e|xercise |
|000013d0| 74 68 65 20 4c 61 62 65 | 6c 20 67 61 64 67 65 74 |the Labe|l gadget|
|000013e0| 0a 09 58 67 6f 6f 64 62 | 79 65 2e 63 09 41 20 74 |..Xgoodb|ye.c.A t|
|000013f0| 65 73 74 20 61 70 70 6c | 69 63 61 74 69 6f 6e 20 |est appl|ication |
|00001400| 74 6f 20 65 78 65 72 63 | 69 73 65 20 74 68 65 20 |to exerc|ise the |
|00001410| 4c 61 62 65 6c 20 61 6e | 64 20 50 75 73 68 62 75 |Label an|d Pushbu|
|00001420| 74 74 6f 6e 20 77 69 64 | 67 65 74 73 0a 09 58 6a |tton wid|gets..Xj|
|00001430| 75 73 74 69 66 79 2e 63 | 09 41 20 74 65 73 74 20 |ustify.c|.A test |
|00001440| 61 70 70 6c 69 63 61 74 | 69 6f 6e 20 74 6f 20 65 |applicat|ion to e|
|00001450| 78 65 72 63 69 73 65 20 | 4c 61 62 65 6c 20 77 69 |xercise |Label wi|
|00001460| 64 67 65 74 20 6a 75 73 | 74 69 66 69 63 61 74 69 |dget jus|tificati|
|00001470| 6f 6e 0a 09 58 6d 65 6e | 75 2e 63 09 09 41 20 74 |on..Xmen|u.c..A t|
|00001480| 65 73 74 20 61 70 70 6c | 69 63 61 74 69 6f 6e 20 |est appl|ication |
|00001490| 74 6f 20 65 78 65 72 63 | 69 73 65 20 74 68 65 20 |to exerc|ise the |
|000014a0| 4d 65 6e 75 20 77 69 64 | 67 65 74 0a 09 58 73 65 |Menu wid|get..Xse|
|000014b0| 6e 73 69 74 69 76 65 2e | 63 09 41 20 74 65 73 74 |nsitive.|c.A test|
|000014c0| 20 61 70 70 6c 69 63 61 | 74 69 6f 6e 20 74 6f 20 | applica|tion to |
|000014d0| 65 78 65 72 63 69 73 65 | 20 50 75 73 68 62 75 74 |exercise| Pushbut|
|000014e0| 74 6f 6e 20 77 69 64 67 | 65 74 20 73 65 6e 73 69 |ton widg|et sensi|
|000014f0| 74 69 76 69 74 79 0a 09 | 58 0a 09 58 78 62 69 66 |tivity..|X..Xxbif|
|00001500| 66 2e 63 09 09 54 68 65 | 20 73 61 6d 70 6c 65 20 |f.c..The| sample |
|00001510| 6d 61 69 6c 20 6e 6f 74 | 69 66 69 65 72 20 61 70 |mail not|ifier ap|
|00001520| 70 6c 69 63 61 74 69 6f | 6e 0a 09 58 78 63 61 6c |plicatio|n..Xxcal|
|00001530| 63 2e 63 09 09 54 68 65 | 20 73 61 6d 70 6c 65 20 |c.c..The| sample |
|00001540| 63 61 6c 63 75 6c 61 74 | 6f 72 20 61 70 70 6c 69 |calculat|or appli|
|00001550| 63 61 74 69 6f 6e 0a 09 | 58 78 6d 6f 6e 69 74 6f |cation..|Xxmonito|
|00001560| 72 2e 63 09 54 68 65 20 | 73 61 6d 70 6c 65 20 73 |r.c.The |sample s|
|00001570| 79 73 74 65 6d 20 6d 6f | 6e 69 74 6f 72 20 61 70 |ystem mo|nitor ap|
|00001580| 70 6c 69 63 61 74 69 6f | 6e 0a 09 58 0a 09 58 44 |plicatio|n..X..XD|
|00001590| 65 6d 6f 42 69 66 66 09 | 54 68 65 20 61 70 70 6c |emoBiff.|The appl|
|000015a0| 69 63 61 74 69 6f 6e 20 | 64 65 66 61 75 6c 74 73 |ication |defaults|
|000015b0| 20 66 69 6c 65 20 66 6f | 72 20 74 68 65 20 6d 61 | file fo|r the ma|
|000015c0| 69 6c 20 6e 6f 74 69 66 | 69 65 72 20 61 70 70 6c |il notif|ier appl|
|000015d0| 69 63 61 74 69 6f 6e 0a | 09 58 44 65 6d 6f 43 61 |ication.|.XDemoCa|
|000015e0| 6c 63 09 54 68 65 20 61 | 70 70 6c 69 63 61 74 69 |lc.The a|pplicati|
|000015f0| 6f 6e 20 64 65 66 61 75 | 6c 74 73 20 66 69 6c 65 |on defau|lts file|
|00001600| 20 66 6f 72 20 74 68 65 | 20 63 61 6c 63 75 6c 61 | for the| calcula|
|00001610| 74 6f 72 20 61 70 70 6c | 69 63 61 74 69 6f 6e 0a |tor appl|ication.|
|00001620| 09 58 44 65 6d 6f 4d 6f | 6e 69 74 6f 72 09 54 68 |.XDemoMo|nitor.Th|
|00001630| 65 20 61 70 70 6c 69 63 | 61 74 69 6f 6e 20 64 65 |e applic|ation de|
|00001640| 66 61 75 6c 74 73 20 66 | 69 6c 65 20 66 6f 72 20 |faults f|ile for |
|00001650| 74 68 65 20 73 79 73 74 | 65 6d 20 6d 6f 6e 69 74 |the syst|em monit|
|00001660| 6f 72 20 61 70 70 6c 69 | 63 61 74 69 6f 6e 0a 53 |or appli|cation.S|
|00001670| 48 41 52 5f 45 4f 46 0a | 69 66 20 74 65 73 74 20 |HAR_EOF.|if test |
|00001680| 34 31 35 33 20 2d 6e 65 | 20 22 60 77 63 20 2d 63 |4153 -ne| "`wc -c|
|00001690| 20 3c 20 27 52 45 41 44 | 4d 45 27 60 22 0a 74 68 | < 'READ|ME'`".th|
|000016a0| 65 6e 0a 09 65 63 68 6f | 20 73 68 61 72 3a 20 65 |en..echo| shar: e|
|000016b0| 72 72 6f 72 20 74 72 61 | 6e 73 6d 69 74 74 69 6e |rror tra|nsmittin|
|000016c0| 67 20 22 27 52 45 41 44 | 4d 45 27 22 20 27 28 73 |g "'READ|ME'" '(s|
|000016d0| 68 6f 75 6c 64 20 68 61 | 76 65 20 62 65 65 6e 20 |hould ha|ve been |
|000016e0| 34 31 35 33 20 63 68 61 | 72 61 63 74 65 72 73 29 |4153 cha|racters)|
|000016f0| 27 0a 66 69 0a 66 69 20 | 23 20 65 6e 64 20 6f 66 |'.fi.fi |# end of|
|00001700| 20 6f 76 65 72 77 72 69 | 74 69 6e 67 20 63 68 65 | overwri|ting che|
|00001710| 63 6b 0a 65 63 68 6f 20 | 73 68 61 72 3a 20 65 78 |ck.echo |shar: ex|
|00001720| 74 72 61 63 74 69 6e 67 | 20 22 27 4d 61 6b 65 66 |tracting| "'Makef|
|00001730| 69 6c 65 27 22 20 27 28 | 32 37 35 36 20 63 68 61 |ile'" '(|2756 cha|
|00001740| 72 61 63 74 65 72 73 29 | 27 0a 69 66 20 74 65 73 |racters)|'.if tes|
|00001750| 74 20 2d 66 20 27 4d 61 | 6b 65 66 69 6c 65 27 0a |t -f 'Ma|kefile'.|
|00001760| 74 68 65 6e 0a 09 65 63 | 68 6f 20 73 68 61 72 3a |then..ec|ho shar:|
|00001770| 20 77 69 6c 6c 20 6e 6f | 74 20 6f 76 65 72 2d 77 | will no|t over-w|
|00001780| 72 69 74 65 20 65 78 69 | 73 74 69 6e 67 20 66 69 |rite exi|sting fi|
|00001790| 6c 65 20 22 27 4d 61 6b | 65 66 69 6c 65 27 22 0a |le "'Mak|efile'".|
|000017a0| 65 6c 73 65 0a 73 65 64 | 20 27 73 2f 5e 09 58 2f |else.sed| 's/^.X/|
|000017b0| 2f 27 20 3c 3c 20 5c 53 | 48 41 52 5f 45 4f 46 20 |/' << \S|HAR_EOF |
|000017c0| 3e 20 27 4d 61 6b 65 66 | 69 6c 65 27 0a 09 58 23 |> 'Makef|ile'..X#|
|000017d0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|000017e0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|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 0a 09 58 23 43 |********|***..X#C|
|00001810| 6f 70 79 72 69 67 68 74 | 20 31 39 39 30 20 62 79 |opyright| 1990 by|
|00001820| 20 44 69 67 69 74 61 6c | 20 45 71 75 69 70 6d 65 | Digital| Equipme|
|00001830| 6e 74 20 43 6f 72 70 6f | 72 61 74 69 6f 6e 2c 20 |nt Corpo|ration, |
|00001840| 4d 61 79 6e 61 72 64 2c | 20 4d 61 73 73 61 63 68 |Maynard,| Massach|
|00001850| 75 73 65 74 74 73 2e 0a | 09 58 23 0a 09 58 23 20 |usetts..|.X#..X# |
|00001860| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001870| 20 20 20 20 20 20 20 41 | 6c 6c 20 52 69 67 68 74 | A|ll Right|
|00001880| 73 20 52 65 73 65 72 76 | 65 64 0a 09 58 23 0a 09 |s Reserv|ed..X#..|
|00001890| 58 23 50 65 72 6d 69 73 | 73 69 6f 6e 20 74 6f 20 |X#Permis|sion to |
|000018a0| 75 73 65 2c 20 63 6f 70 | 79 2c 20 6d 6f 64 69 66 |use, cop|y, modif|
|000018b0| 79 2c 20 61 6e 64 20 64 | 69 73 74 72 69 62 75 74 |y, and d|istribut|
|000018c0| 65 20 74 68 65 73 65 20 | 65 78 61 6d 70 6c 65 73 |e these |examples|
|000018d0| 20 66 6f 72 20 61 6e 79 | 0a 09 58 23 70 75 72 70 | for any|..X#purp|
|000018e0| 6f 73 65 20 61 6e 64 20 | 77 69 74 68 6f 75 74 20 |ose and |without |
|000018f0| 66 65 65 20 69 73 20 68 | 65 72 65 62 79 20 67 72 |fee is h|ereby gr|
|00001900| 61 6e 74 65 64 2c 20 70 | 72 6f 76 69 64 65 64 20 |anted, p|rovided |
|00001910| 74 68 61 74 20 74 68 65 | 20 61 62 6f 76 65 0a 09 |that the| above..|
|00001920| 58 23 63 6f 70 79 72 69 | 67 68 74 20 6e 6f 74 69 |X#copyri|ght noti|
|00001930| 63 65 20 61 70 70 65 61 | 72 20 69 6e 20 61 6c 6c |ce appea|r in all|
|00001940| 20 63 6f 70 69 65 73 20 | 61 6e 64 20 74 68 61 74 | copies |and that|
|00001950| 20 62 6f 74 68 20 74 68 | 61 74 20 63 6f 70 79 72 | both th|at copyr|
|00001960| 69 67 68 74 0a 09 58 23 | 6e 6f 74 69 63 65 20 61 |ight..X#|notice a|
|00001970| 6e 64 20 74 68 69 73 20 | 70 65 72 6d 69 73 73 69 |nd this |permissi|
|00001980| 6f 6e 20 6e 6f 74 69 63 | 65 20 61 70 70 65 61 72 |on notic|e appear|
|00001990| 20 69 6e 20 73 75 70 70 | 6f 72 74 69 6e 67 20 64 | in supp|orting d|
|000019a0| 6f 63 75 6d 65 6e 74 61 | 74 69 6f 6e 2c 0a 09 58 |ocumenta|tion,..X|
|000019b0| 23 61 6e 64 20 74 68 61 | 74 20 74 68 65 20 6e 61 |#and tha|t the na|
|000019c0| 6d 65 20 6f 66 20 44 69 | 67 69 74 61 6c 20 6e 6f |me of Di|gital no|
|000019d0| 74 20 62 65 20 75 73 65 | 64 20 69 6e 20 61 64 76 |t be use|d in adv|
|000019e0| 65 72 74 69 73 69 6e 67 | 20 6f 72 20 70 75 62 6c |ertising| or publ|
|000019f0| 69 63 69 74 79 0a 09 58 | 23 70 65 72 74 61 69 6e |icity..X|#pertain|
|00001a00| 69 6e 67 20 74 6f 20 64 | 69 73 74 72 69 62 75 74 |ing to d|istribut|
|00001a10| 69 6f 6e 20 6f 66 20 74 | 68 65 20 73 6f 66 74 77 |ion of t|he softw|
|00001a20| 61 72 65 20 77 69 74 68 | 6f 75 74 20 73 70 65 63 |are with|out spec|
|00001a30| 69 66 69 63 2c 20 77 72 | 69 74 74 65 6e 0a 09 58 |ific, wr|itten..X|
|00001a40| 23 70 72 69 6f 72 20 70 | 65 72 6d 69 73 73 69 6f |#prior p|ermissio|
|00001a50| 6e 2e 0a 09 58 23 0a 09 | 58 23 44 49 47 49 54 41 |n...X#..|X#DIGITA|
|00001a60| 4c 20 41 4e 44 20 54 48 | 45 20 41 55 54 48 4f 52 |L AND TH|E AUTHOR|
|00001a70| 53 20 44 49 53 43 4c 41 | 49 4d 20 41 4c 4c 20 57 |S DISCLA|IM ALL W|
|00001a80| 41 52 52 41 4e 54 49 45 | 53 20 57 49 54 48 20 52 |ARRANTIE|S WITH R|
|00001a90| 45 47 41 52 44 20 54 4f | 20 54 48 49 53 0a 09 58 |EGARD TO| THIS..X|
|00001aa0| 23 53 4f 46 54 57 41 52 | 45 2c 20 49 4e 43 4c 55 |#SOFTWAR|E, INCLU|
|00001ab0| 44 49 4e 47 20 41 4c 4c | 20 49 4d 50 4c 49 45 44 |DING ALL| IMPLIED|
|00001ac0| 20 57 41 52 52 41 4e 54 | 49 45 53 20 4f 46 20 4d | WARRANT|IES OF M|
|00001ad0| 45 52 43 48 41 4e 54 41 | 42 49 4c 49 54 59 20 41 |ERCHANTA|BILITY A|
|00001ae0| 4e 44 0a 09 58 23 46 49 | 54 4e 45 53 53 2c 20 49 |ND..X#FI|TNESS, I|
|00001af0| 4e 20 4e 4f 20 45 56 45 | 4e 54 20 53 48 41 4c 4c |N NO EVE|NT SHALL|
|00001b00| 20 44 49 47 49 54 41 4c | 20 42 45 20 4c 49 41 42 | DIGITAL| BE LIAB|
|00001b10| 4c 45 20 46 4f 52 20 41 | 4e 59 20 53 50 45 43 49 |LE FOR A|NY SPECI|
|00001b20| 41 4c 2c 20 49 4e 44 49 | 52 45 43 54 0a 09 58 23 |AL, INDI|RECT..X#|
|00001b30| 4f 52 20 43 4f 4e 53 45 | 51 55 45 4e 54 49 41 4c |OR CONSE|QUENTIAL|
|00001b40| 20 44 41 4d 41 47 45 53 | 20 4f 52 20 41 4e 59 20 | DAMAGES| OR ANY |
|00001b50| 44 41 4d 41 47 45 53 20 | 57 48 41 54 53 4f 45 56 |DAMAGES |WHATSOEV|
|00001b60| 45 52 20 52 45 53 55 4c | 54 49 4e 47 20 46 52 4f |ER RESUL|TING FRO|
|00001b70| 4d 20 4c 4f 53 53 0a 09 | 58 23 4f 46 20 55 53 45 |M LOSS..|X#OF USE|
|00001b80| 2c 20 44 41 54 41 20 4f | 52 20 50 52 4f 46 49 54 |, DATA O|R PROFIT|
|00001b90| 53 2c 20 57 48 45 54 48 | 45 52 20 49 4e 20 41 4e |S, WHETH|ER IN AN|
|00001ba0| 20 41 43 54 49 4f 4e 20 | 4f 46 20 43 4f 4e 54 52 | ACTION |OF CONTR|
|00001bb0| 41 43 54 2c 20 4e 45 47 | 4c 49 47 45 4e 43 45 0a |ACT, NEG|LIGENCE.|
|00001bc0| 09 58 23 4f 52 20 4f 54 | 48 45 52 20 54 4f 52 54 |.X#OR OT|HER TORT|
|00001bd0| 49 4f 55 53 20 41 43 54 | 49 4f 4e 2c 20 41 52 49 |IOUS ACT|ION, ARI|
|00001be0| 53 49 4e 47 20 4f 55 54 | 20 4f 46 20 4f 52 20 49 |SING OUT| OF OR I|
|00001bf0| 4e 20 43 4f 4e 4e 45 43 | 54 49 4f 4e 20 57 49 54 |N CONNEC|TION WIT|
|00001c00| 48 20 54 48 45 20 55 53 | 45 0a 09 58 23 4f 52 20 |H THE US|E..X#OR |
|00001c10| 50 45 52 46 4f 52 4d 41 | 4e 43 45 20 4f 46 20 54 |PERFORMA|NCE OF T|
|00001c20| 48 49 53 20 53 4f 46 54 | 57 41 52 45 2e 0a 09 58 |HIS SOFT|WARE...X|
|00001c30| 23 0a 09 58 23 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |#..X#***|********|
|00001c40| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00001c50| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00001c60| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00001c70| 2a 2a 2a 2a 2a 2a 2a 0a | 09 58 0a 09 58 23 20 45 |*******.|.X..X# E|
|00001c80| 64 69 74 20 74 68 65 20 | 66 6f 6c 6c 6f 77 69 6e |dit the |followin|
|00001c90| 67 20 74 68 72 65 65 20 | 6c 69 6e 65 73 20 74 6f |g three |lines to|
|00001ca0| 20 74 68 65 20 61 70 70 | 72 6f 70 72 69 61 74 65 | the app|ropriate|
|00001cb0| 20 58 31 31 52 34 20 6c | 69 62 72 61 72 69 65 73 | X11R4 l|ibraries|
|00001cc0| 0a 09 58 23 20 61 6e 64 | 20 69 6e 63 6c 75 64 65 |..X# and| include|
|00001cd0| 20 64 69 72 65 63 74 6f | 72 69 65 73 20 66 6f 72 | directo|ries for|
|00001ce0| 20 79 6f 75 72 20 73 79 | 73 74 65 6d 0a 09 58 0a | your sy|stem..X.|
|00001cf0| 09 58 58 54 20 3d 20 2d | 6c 58 74 0a 09 58 58 4c |.XXT = -|lXt..XXL|
|00001d00| 49 42 20 3d 20 2d 6c 58 | 31 31 0a 09 58 49 4e 43 |IB = -lX|11..XINC|
|00001d10| 4c 55 44 45 53 20 3d 20 | 2f 75 73 72 2f 69 6e 63 |LUDES = |/usr/inc|
|00001d20| 6c 75 64 65 0a 09 58 0a | 09 58 57 49 44 47 45 54 |lude..X.|.XWIDGET|
|00001d30| 4c 49 42 20 3d 20 6c 69 | 62 77 69 64 67 65 74 73 |LIB = li|bwidgets|
|00001d40| 2e 61 0a 09 58 43 43 20 | 3d 20 63 63 20 2d 67 0a |.a..XCC |= cc -g.|
|00001d50| 09 58 41 52 20 3d 20 61 | 72 20 63 71 20 0a 09 58 |.XAR = a|r cq ..X|
|00001d60| 0a 09 58 57 49 44 47 45 | 54 53 20 3d 20 42 61 72 |..XWIDGE|TS = Bar|
|00001d70| 44 69 73 70 6c 61 79 2e | 6f 20 42 6f 78 2e 6f 20 |Display.|o Box.o |
|00001d80| 43 6f 6e 66 69 72 6d 2e | 6f 20 47 72 61 70 68 2e |Confirm.|o Graph.|
|00001d90| 6f 20 47 72 61 70 68 44 | 69 73 70 6c 2e 6f 20 5c |o GraphD|ispl.o \|
|00001da0| 0a 09 58 09 4c 61 62 65 | 6c 2e 6f 20 4c 61 62 65 |..X.Labe|l.o Labe|
|00001db0| 6c 47 61 64 67 65 2e 6f | 20 4d 65 6e 75 2e 6f 20 |lGadge.o| Menu.o |
|00001dc0| 4d 65 6e 75 49 74 65 6d | 2e 6f 20 4d 69 6e 4d 61 |MenuItem|.o MinMa|
|00001dd0| 78 2e 6f 20 50 75 73 68 | 62 75 74 74 6f 6e 2e 6f |x.o Push|button.o|
|00001de0| 0a 09 58 0a 09 58 54 45 | 53 54 53 20 3d 20 61 63 |..X..XTE|STS = ac|
|00001df0| 63 65 6c 20 62 61 72 67 | 72 61 70 68 20 63 6f 6e |cel barg|raph con|
|00001e00| 66 69 72 6d 20 63 6f 6e | 66 69 72 6d 31 20 67 61 |firm con|firm1 ga|
|00001e10| 64 67 65 74 20 67 6f 6f | 64 62 79 65 20 6a 75 73 |dget goo|dbye jus|
|00001e20| 74 69 66 79 20 6d 65 6e | 75 20 73 65 6e 73 69 74 |tify men|u sensit|
|00001e30| 69 76 65 0a 09 58 0a 09 | 58 50 52 4f 47 52 41 4d |ive..X..|XPROGRAM|
|00001e40| 53 20 3d 20 78 62 69 66 | 66 20 78 63 61 6c 63 20 |S = xbif|f xcalc |
|00001e50| 78 6d 6f 6e 69 74 6f 72 | 0a 09 58 0a 09 58 2e 63 |xmonitor|..X..X.c|
|00001e60| 2e 6f 3a 0a 09 58 09 24 | 7b 43 43 7d 20 2d 63 20 |.o:..X.$|{CC} -c |
|00001e70| 2d 49 24 7b 49 4e 43 4c | 55 44 45 53 7d 20 24 2a |-I${INCL|UDES} $*|
|00001e80| 2e 63 0a 09 58 0a 09 58 | 61 6c 6c 3a 20 77 69 64 |.c..X..X|all: wid|
|00001e90| 67 65 74 73 20 74 65 73 | 74 73 20 70 72 6f 67 72 |gets tes|ts progr|
|00001ea0| 61 6d 73 0a 09 58 0a 09 | 58 77 69 64 67 65 74 73 |ams..X..|Xwidgets|
|00001eb0| 3a 20 6c 69 62 77 69 64 | 67 65 74 73 2e 61 0a 09 |: libwid|gets.a..|
|00001ec0| 58 0a 09 58 74 65 73 74 | 73 3a 20 24 7b 54 45 53 |X..Xtest|s: ${TES|
|00001ed0| 54 53 7d 0a 09 58 0a 09 | 58 70 72 6f 67 72 61 6d |TS}..X..|Xprogram|
|00001ee0| 73 3a 20 24 7b 50 52 4f | 47 52 41 4d 53 7d 0a 09 |s: ${PRO|GRAMS}..|
|00001ef0| 58 0a 09 58 6c 69 62 77 | 69 64 67 65 74 73 2e 61 |X..Xlibw|idgets.a|
|00001f00| 3a 20 24 7b 57 49 44 47 | 45 54 53 7d 0a 09 58 09 |: ${WIDG|ETS}..X.|
|00001f10| 72 6d 20 2d 66 20 24 40 | 0a 09 58 09 24 7b 41 52 |rm -f $@|..X.${AR|
|00001f20| 7d 20 24 40 20 24 7b 57 | 49 44 47 45 54 53 7d 0a |} $@ ${W|IDGETS}.|
|00001f30| 09 58 09 72 61 6e 6c 69 | 62 20 24 40 0a 09 58 0a |.X.ranli|b $@..X.|
|00001f40| 09 58 61 63 63 65 6c 3a | 20 61 63 63 65 6c 2e 6f |.Xaccel:| accel.o|
|00001f50| 0a 09 58 09 24 7b 43 43 | 7d 20 2d 6f 20 61 63 63 |..X.${CC|} -o acc|
|00001f60| 65 6c 20 61 63 63 65 6c | 2e 6f 20 24 7b 57 49 44 |el accel|.o ${WID|
|00001f70| 47 45 54 4c 49 42 7d 20 | 24 7b 58 54 7d 20 24 7b |GETLIB} |${XT} ${|
|00001f80| 58 4c 49 42 7d 0a 09 58 | 0a 09 58 62 61 72 67 72 |XLIB}..X|..Xbargr|
|00001f90| 61 70 68 3a 20 62 61 72 | 67 72 61 70 68 2e 6f 20 |aph: bar|graph.o |
|00001fa0| 0a 09 58 09 24 7b 43 43 | 7d 20 2d 6f 20 62 61 72 |..X.${CC|} -o bar|
|00001fb0| 67 72 61 70 68 20 62 61 | 72 67 72 61 70 68 2e 6f |graph ba|rgraph.o|
|00001fc0| 20 24 7b 57 49 44 47 45 | 54 4c 49 42 7d 20 24 7b | ${WIDGE|TLIB} ${|
|00001fd0| 58 54 7d 20 24 7b 58 4c | 49 42 7d 0a 09 58 0a 09 |XT} ${XL|IB}..X..|
|00001fe0| 58 63 6f 6e 66 69 72 6d | 3a 20 63 6f 6e 66 69 72 |Xconfirm|: confir|
|00001ff0| 6d 2e 6f 0a 09 58 09 24 | 7b 43 43 7d 20 2d 6f 20 |m.o..X.$|{CC} -o |
|00002000| 63 6f 6e 66 69 72 6d 20 | 63 6f 6e 66 69 72 6d 2e |confirm |confirm.|
|00002010| 6f 20 24 7b 57 49 44 47 | 45 54 4c 49 42 7d 20 24 |o ${WIDG|ETLIB} $|
|00002020| 7b 58 54 7d 20 24 7b 58 | 4c 49 42 7d 0a 09 58 0a |{XT} ${X|LIB}..X.|
|00002030| 09 58 63 6f 6e 66 69 72 | 6d 31 3a 20 63 6f 6e 66 |.Xconfir|m1: conf|
|00002040| 69 72 6d 31 2e 6f 20 43 | 6f 6e 66 69 72 6d 31 2e |irm1.o C|onfirm1.|
|00002050| 6f 0a 09 58 09 24 7b 43 | 43 7d 20 2d 6f 20 63 6f |o..X.${C|C} -o co|
|00002060| 6e 66 69 72 6d 31 20 63 | 6f 6e 66 69 72 6d 31 2e |nfirm1 c|onfirm1.|
|00002070| 6f 20 43 6f 6e 66 69 72 | 6d 31 2e 6f 20 24 7b 57 |o Confir|m1.o ${W|
|00002080| 49 44 47 45 54 4c 49 42 | 7d 20 24 7b 58 54 7d 20 |IDGETLIB|} ${XT} |
|00002090| 24 7b 58 4c 49 42 7d 0a | 09 58 0a 09 58 67 61 64 |${XLIB}.|.X..Xgad|
|000020a0| 67 65 74 3a 20 67 61 64 | 67 65 74 2e 6f 0a 09 58 |get: gad|get.o..X|
|000020b0| 09 24 7b 43 43 7d 20 2d | 6f 20 67 61 64 67 65 74 |.${CC} -|o gadget|
|000020c0| 20 67 61 64 67 65 74 2e | 6f 20 24 7b 57 49 44 47 | gadget.|o ${WIDG|
|000020d0| 45 54 4c 49 42 7d 20 24 | 7b 58 54 7d 20 24 7b 58 |ETLIB} $|{XT} ${X|
|000020e0| 4c 49 42 7d 0a 09 58 0a | 09 58 67 6f 6f 64 62 79 |LIB}..X.|.Xgoodby|
|000020f0| 65 3a 20 67 6f 6f 64 62 | 79 65 2e 6f 20 0a 09 58 |e: goodb|ye.o ..X|
|00002100| 09 24 7b 43 43 7d 20 2d | 6f 20 67 6f 6f 64 62 79 |.${CC} -|o goodby|
|00002110| 65 20 67 6f 6f 64 62 79 | 65 2e 6f 20 24 7b 57 49 |e goodby|e.o ${WI|
|00002120| 44 47 45 54 4c 49 42 7d | 20 24 7b 58 54 7d 20 24 |DGETLIB}| ${XT} $|
|00002130| 7b 58 4c 49 42 7d 0a 09 | 58 0a 09 58 6a 75 73 74 |{XLIB}..|X..Xjust|
|00002140| 69 66 79 3a 20 6a 75 73 | 74 69 66 79 2e 6f 0a 09 |ify: jus|tify.o..|
|00002150| 58 09 24 7b 43 43 7d 20 | 2d 6f 20 6a 75 73 74 69 |X.${CC} |-o justi|
|00002160| 66 79 20 6a 75 73 74 69 | 66 79 2e 6f 20 24 7b 57 |fy justi|fy.o ${W|
|00002170| 49 44 47 45 54 4c 49 42 | 7d 20 24 7b 58 54 7d 20 |IDGETLIB|} ${XT} |
|00002180| 24 7b 58 4c 49 42 7d 0a | 09 58 0a 09 58 6d 65 6e |${XLIB}.|.X..Xmen|
|00002190| 75 3a 20 6d 65 6e 75 2e | 6f 0a 09 58 09 24 7b 43 |u: menu.|o..X.${C|
|000021a0| 43 7d 20 2d 6f 20 6d 65 | 6e 75 20 6d 65 6e 75 2e |C} -o me|nu menu.|
|000021b0| 6f 20 24 7b 57 49 44 47 | 45 54 4c 49 42 7d 20 24 |o ${WIDG|ETLIB} $|
|000021c0| 7b 58 54 7d 20 24 7b 58 | 4c 49 42 7d 0a 09 58 0a |{XT} ${X|LIB}..X.|
|000021d0| 09 58 73 65 6e 73 69 74 | 69 76 65 3a 20 73 65 6e |.Xsensit|ive: sen|
|000021e0| 73 69 74 69 76 65 2e 6f | 0a 09 58 09 24 7b 43 43 |sitive.o|..X.${CC|
|000021f0| 7d 20 2d 6f 20 73 65 6e | 73 69 74 69 76 65 20 73 |} -o sen|sitive s|
|00002200| 65 6e 73 69 74 69 76 65 | 2e 6f 20 24 7b 57 49 44 |ensitive|.o ${WID|
|00002210| 47 45 54 4c 49 42 7d 20 | 24 7b 58 54 7d 20 24 7b |GETLIB} |${XT} ${|
|00002220| 58 4c 49 42 7d 0a 09 58 | 0a 09 58 78 62 69 66 66 |XLIB}..X|..Xxbiff|
|00002230| 3a 20 78 62 69 66 66 2e | 6f 20 0a 09 58 09 24 7b |: xbiff.|o ..X.${|
|00002240| 43 43 7d 20 2d 6f 20 78 | 62 69 66 66 20 78 62 69 |CC} -o x|biff xbi|
|00002250| 66 66 2e 6f 20 24 7b 57 | 49 44 47 45 54 4c 49 42 |ff.o ${W|IDGETLIB|
|00002260| 7d 20 24 7b 58 54 7d 20 | 24 7b 58 4c 49 42 7d 0a |} ${XT} |${XLIB}.|
|00002270| 09 58 0a 09 58 78 63 61 | 6c 63 3a 20 78 63 61 6c |.X..Xxca|lc: xcal|
|00002280| 63 2e 6f 0a 09 58 09 24 | 7b 43 43 7d 20 2d 6f 20 |c.o..X.$|{CC} -o |
|00002290| 78 63 61 6c 63 20 78 63 | 61 6c 63 2e 6f 20 24 7b |xcalc xc|alc.o ${|
|000022a0| 57 49 44 47 45 54 4c 49 | 42 7d 20 24 7b 58 54 7d |WIDGETLI|B} ${XT}|
|000022b0| 20 24 7b 58 4c 49 42 7d | 0a 09 58 0a 09 58 78 6d | ${XLIB}|..X..Xxm|
|000022c0| 6f 6e 69 74 6f 72 3a 20 | 78 6d 6f 6e 69 74 6f 72 |onitor: |xmonitor|
|000022d0| 2e 6f 0a 09 58 09 24 7b | 43 43 7d 20 2d 6f 20 78 |.o..X.${|CC} -o x|
|000022e0| 6d 6f 6e 69 74 6f 72 20 | 78 6d 6f 6e 69 74 6f 72 |monitor |xmonitor|
|000022f0| 2e 6f 20 24 7b 57 49 44 | 47 45 54 4c 49 42 7d 20 |.o ${WID|GETLIB} |
|00002300| 24 7b 58 54 7d 20 24 7b | 58 4c 49 42 7d 0a 09 58 |${XT} ${|XLIB}..X|
|00002310| 0a 09 58 63 6c 65 61 6e | 3a 0a 09 58 09 72 6d 20 |..Xclean|:..X.rm |
|00002320| 2d 66 20 2a 2e 6f 20 2a | 2e 61 20 2a 2e 42 41 4b |-f *.o *|.a *.BAK|
|00002330| 20 2a 2e 43 4b 50 20 2a | 7e 20 24 7b 54 45 53 54 | *.CKP *|~ ${TEST|
|00002340| 53 7d 20 24 7b 50 52 4f | 47 52 41 4d 53 7d 0a 53 |S} ${PRO|GRAMS}.S|
|00002350| 48 41 52 5f 45 4f 46 0a | 69 66 20 74 65 73 74 20 |HAR_EOF.|if test |
|00002360| 32 37 35 36 20 2d 6e 65 | 20 22 60 77 63 20 2d 63 |2756 -ne| "`wc -c|
|00002370| 20 3c 20 27 4d 61 6b 65 | 66 69 6c 65 27 60 22 0a | < 'Make|file'`".|
|00002380| 74 68 65 6e 0a 09 65 63 | 68 6f 20 73 68 61 72 3a |then..ec|ho shar:|
|00002390| 20 65 72 72 6f 72 20 74 | 72 61 6e 73 6d 69 74 74 | error t|ransmitt|
|000023a0| 69 6e 67 20 22 27 4d 61 | 6b 65 66 69 6c 65 27 22 |ing "'Ma|kefile'"|
|000023b0| 20 27 28 73 68 6f 75 6c | 64 20 68 61 76 65 20 62 | '(shoul|d have b|
|000023c0| 65 65 6e 20 32 37 35 36 | 20 63 68 61 72 61 63 74 |een 2756| charact|
|000023d0| 65 72 73 29 27 0a 66 69 | 0a 66 69 20 23 20 65 6e |ers)'.fi|.fi # en|
|000023e0| 64 20 6f 66 20 6f 76 65 | 72 77 72 69 74 69 6e 67 |d of ove|rwriting|
|000023f0| 20 63 68 65 63 6b 0a 65 | 63 68 6f 20 73 68 61 72 | check.e|cho shar|
|00002400| 3a 20 65 78 74 72 61 63 | 74 69 6e 67 20 22 27 61 |: extrac|ting "'a|
|00002410| 63 63 65 6c 2e 63 27 22 | 20 27 28 33 30 34 30 20 |ccel.c'"| '(3040 |
|00002420| 63 68 61 72 61 63 74 65 | 72 73 29 27 0a 69 66 20 |characte|rs)'.if |
|00002430| 74 65 73 74 20 2d 66 20 | 27 61 63 63 65 6c 2e 63 |test -f |'accel.c|
|00002440| 27 0a 74 68 65 6e 0a 09 | 65 63 68 6f 20 73 68 61 |'.then..|echo sha|
|00002450| 72 3a 20 77 69 6c 6c 20 | 6e 6f 74 20 6f 76 65 72 |r: will |not over|
|00002460| 2d 77 72 69 74 65 20 65 | 78 69 73 74 69 6e 67 20 |-write e|xisting |
|00002470| 66 69 6c 65 20 22 27 61 | 63 63 65 6c 2e 63 27 22 |file "'a|ccel.c'"|
|00002480| 0a 65 6c 73 65 0a 73 65 | 64 20 27 73 2f 5e 09 58 |.else.se|d 's/^.X|
|00002490| 2f 2f 27 20 3c 3c 20 5c | 53 48 41 52 5f 45 4f 46 |//' << \|SHAR_EOF|
|000024a0| 20 3e 20 27 61 63 63 65 | 6c 2e 63 27 0a 09 58 2f | > 'acce|l.c'..X/|
|000024b0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|000024c0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|000024d0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|000024e0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 0a 09 58 43 6f |********|***..XCo|
|000024f0| 70 79 72 69 67 68 74 20 | 31 39 39 30 20 62 79 20 |pyright |1990 by |
|00002500| 44 69 67 69 74 61 6c 20 | 45 71 75 69 70 6d 65 6e |Digital |Equipmen|
|00002510| 74 20 43 6f 72 70 6f 72 | 61 74 69 6f 6e 2c 20 4d |t Corpor|ation, M|
|00002520| 61 79 6e 61 72 64 2c 20 | 4d 61 73 73 61 63 68 75 |aynard, |Massachu|
|00002530| 73 65 74 74 73 2e 0a 09 | 58 0a 09 58 20 20 20 20 |setts...|X..X |
|00002540| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002550| 20 20 20 20 41 6c 6c 20 | 52 69 67 68 74 73 20 52 | All |Rights R|
|00002560| 65 73 65 72 76 65 64 0a | 09 58 0a 09 58 50 65 72 |eserved.|.X..XPer|
|00002570| 6d 69 73 73 69 6f 6e 20 | 74 6f 20 75 73 65 2c 20 |mission |to use, |
|00002580| 63 6f 70 79 2c 20 6d 6f | 64 69 66 79 2c 20 61 6e |copy, mo|dify, an|
|00002590| 64 20 64 69 73 74 72 69 | 62 75 74 65 20 74 68 65 |d distri|bute the|
|000025a0| 73 65 20 65 78 61 6d 70 | 6c 65 73 20 66 6f 72 20 |se examp|les for |
|000025b0| 61 6e 79 0a 09 58 70 75 | 72 70 6f 73 65 20 61 6e |any..Xpu|rpose an|
|000025c0| 64 20 77 69 74 68 6f 75 | 74 20 66 65 65 20 69 73 |d withou|t fee is|
|000025d0| 20 68 65 72 65 62 79 20 | 67 72 61 6e 74 65 64 2c | hereby |granted,|
|000025e0| 20 70 72 6f 76 69 64 65 | 64 20 74 68 61 74 20 74 | provide|d that t|
|000025f0| 68 65 20 61 62 6f 76 65 | 0a 09 58 63 6f 70 79 72 |he above|..Xcopyr|
|00002600| 69 67 68 74 20 6e 6f 74 | 69 63 65 20 61 70 70 65 |ight not|ice appe|
|00002610| 61 72 20 69 6e 20 61 6c | 6c 20 63 6f 70 69 65 73 |ar in al|l copies|
|00002620| 20 61 6e 64 20 74 68 61 | 74 20 62 6f 74 68 20 74 | and tha|t both t|
|00002630| 68 61 74 20 63 6f 70 79 | 72 69 67 68 74 0a 09 58 |hat copy|right..X|
|00002640| 6e 6f 74 69 63 65 20 61 | 6e 64 20 74 68 69 73 20 |notice a|nd this |
|00002650| 70 65 72 6d 69 73 73 69 | 6f 6e 20 6e 6f 74 69 63 |permissi|on notic|
|00002660| 65 20 61 70 70 65 61 72 | 20 69 6e 20 73 75 70 70 |e appear| in supp|
|00002670| 6f 72 74 69 6e 67 20 64 | 6f 63 75 6d 65 6e 74 61 |orting d|ocumenta|
|00002680| 74 69 6f 6e 2c 0a 09 58 | 61 6e 64 20 74 68 61 74 |tion,..X|and that|
|00002690| 20 74 68 65 20 6e 61 6d | 65 20 6f 66 20 44 69 67 | the nam|e of Dig|
|000026a0| 69 74 61 6c 20 6e 6f 74 | 20 62 65 20 75 73 65 64 |ital not| be used|
|000026b0| 20 69 6e 20 61 64 76 65 | 72 74 69 73 69 6e 67 20 | in adve|rtising |
|000026c0| 6f 72 20 70 75 62 6c 69 | 63 69 74 79 0a 09 58 70 |or publi|city..Xp|
|000026d0| 65 72 74 61 69 6e 69 6e | 67 20 74 6f 20 64 69 73 |ertainin|g to dis|
|000026e0| 74 72 69 62 75 74 69 6f | 6e 20 6f 66 20 74 68 65 |tributio|n of the|
|000026f0| 20 73 6f 66 74 77 61 72 | 65 20 77 69 74 68 6f 75 | softwar|e withou|
|00002700| 74 20 73 70 65 63 69 66 | 69 63 2c 20 77 72 69 74 |t specif|ic, writ|
|00002710| 74 65 6e 0a 09 58 70 72 | 69 6f 72 20 70 65 72 6d |ten..Xpr|ior perm|
|00002720| 69 73 73 69 6f 6e 2e 0a | 09 58 0a 09 58 44 49 47 |ission..|.X..XDIG|
|00002730| 49 54 41 4c 20 41 4e 44 | 20 54 48 45 20 41 55 54 |ITAL AND| THE AUT|
|00002740| 48 4f 52 53 20 44 49 53 | 43 4c 41 49 4d 20 41 4c |HORS DIS|CLAIM AL|
|00002750| 4c 20 57 41 52 52 41 4e | 54 49 45 53 20 57 49 54 |L WARRAN|TIES WIT|
|00002760| 48 20 52 45 47 41 52 44 | 20 54 4f 20 54 48 49 53 |H REGARD| TO THIS|
|00002770| 0a 09 58 53 4f 46 54 57 | 41 52 45 2c 20 49 4e 43 |..XSOFTW|ARE, INC|
|00002780| 4c 55 44 49 4e 47 20 41 | 4c 4c 20 49 4d 50 4c 49 |LUDING A|LL IMPLI|
|00002790| 45 44 20 57 41 52 52 41 | 4e 54 49 45 53 20 4f 46 |ED WARRA|NTIES OF|
|000027a0| 20 4d 45 52 43 48 41 4e | 54 41 42 49 4c 49 54 59 | MERCHAN|TABILITY|
|000027b0| 20 41 4e 44 0a 09 58 46 | 49 54 4e 45 53 53 2c 20 | AND..XF|ITNESS, |
|000027c0| 49 4e 20 4e 4f 20 45 56 | 45 4e 54 20 53 48 41 4c |IN NO EV|ENT SHAL|
|000027d0| 4c 20 44 49 47 49 54 41 | 4c 20 42 45 20 4c 49 41 |L DIGITA|L BE LIA|
|000027e0| 42 4c 45 20 46 4f 52 20 | 41 4e 59 20 53 50 45 43 |BLE FOR |ANY SPEC|
|000027f0| 49 41 4c 2c 20 49 4e 44 | 49 52 45 43 54 0a 09 58 |IAL, IND|IRECT..X|
|00002800| 4f 52 20 43 4f 4e 53 45 | 51 55 45 4e 54 49 41 4c |OR CONSE|QUENTIAL|
|00002810| 20 44 41 4d 41 47 45 53 | 20 4f 52 20 41 4e 59 20 | DAMAGES| OR ANY |
|00002820| 44 41 4d 41 47 45 53 20 | 57 48 41 54 53 4f 45 56 |DAMAGES |WHATSOEV|
|00002830| 45 52 20 52 45 53 55 4c | 54 49 4e 47 20 46 52 4f |ER RESUL|TING FRO|
|00002840| 4d 20 4c 4f 53 53 0a 09 | 58 4f 46 20 55 53 45 2c |M LOSS..|XOF USE,|
|00002850| 20 44 41 54 41 20 4f 52 | 20 50 52 4f 46 49 54 53 | DATA OR| PROFITS|
|00002860| 2c 20 57 48 45 54 48 45 | 52 20 49 4e 20 41 4e 20 |, WHETHE|R IN AN |
|00002870| 41 43 54 49 4f 4e 20 4f | 46 20 43 4f 4e 54 52 41 |ACTION O|F CONTRA|
|00002880| 43 54 2c 20 4e 45 47 4c | 49 47 45 4e 43 45 0a 09 |CT, NEGL|IGENCE..|
|00002890| 58 4f 52 20 4f 54 48 45 | 52 20 54 4f 52 54 49 4f |XOR OTHE|R TORTIO|
|000028a0| 55 53 20 41 43 54 49 4f | 4e 2c 20 41 52 49 53 49 |US ACTIO|N, ARISI|
|000028b0| 4e 47 20 4f 55 54 20 4f | 46 20 4f 52 20 49 4e 20 |NG OUT O|F OR IN |
|000028c0| 43 4f 4e 4e 45 43 54 49 | 4f 4e 20 57 49 54 48 20 |CONNECTI|ON WITH |
|000028d0| 54 48 45 20 55 53 45 0a | 09 58 4f 52 20 50 45 52 |THE USE.|.XOR PER|
|000028e0| 46 4f 52 4d 41 4e 43 45 | 20 4f 46 20 54 48 49 53 |FORMANCE| OF THIS|
|000028f0| 20 53 4f 46 54 57 41 52 | 45 2e 0a 09 58 0a 09 58 | SOFTWAR|E...X..X|
|00002900| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00002910| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00002920| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00002930| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00002940| 2a 2a 2f 0a 09 58 0a 09 | 58 23 69 6e 63 6c 75 64 |**/..X..|X#includ|
|00002950| 65 20 3c 58 31 31 2f 49 | 6e 74 72 69 6e 73 69 63 |e <X11/I|ntrinsic|
|00002960| 2e 68 3e 0a 09 58 23 69 | 6e 63 6c 75 64 65 20 3c |.h>..X#i|nclude <|
|00002970| 58 31 31 2f 53 74 72 69 | 6e 67 44 65 66 73 2e 68 |X11/Stri|ngDefs.h|
|00002980| 3e 0a 09 58 23 69 6e 63 | 6c 75 64 65 20 3c 58 31 |>..X#inc|lude <X1|
|00002990| 31 2f 53 68 65 6c 6c 2e | 68 3e 0a 09 58 0a 09 58 |1/Shell.|h>..X..X|
|000029a0| 23 69 6e 63 6c 75 64 65 | 20 22 42 6f 78 2e 68 22 |#include| "Box.h"|
|000029b0| 0a 09 58 23 69 6e 63 6c | 75 64 65 20 22 4c 61 62 |..X#incl|ude "Lab|
|000029c0| 65 6c 2e 68 22 0a 09 58 | 23 69 6e 63 6c 75 64 65 |el.h"..X|#include|
|000029d0| 20 22 50 75 73 68 62 75 | 74 74 6f 6e 2e 68 22 0a | "Pushbu|tton.h".|
|000029e0| 09 58 0a 09 58 76 6f 69 | 64 20 47 6f 6f 64 62 79 |.X..Xvoi|d Goodby|
|000029f0| 65 28 77 69 64 67 65 74 | 2c 20 63 6c 69 65 6e 74 |e(widget|, client|
|00002a00| 44 61 74 61 2c 20 63 61 | 6c 6c 44 61 74 61 29 0a |Data, ca|llData).|
|00002a10| 09 58 20 20 20 20 57 69 | 64 67 65 74 20 77 69 64 |.X Wi|dget wid|
|00002a20| 67 65 74 3b 0a 09 58 20 | 20 20 20 63 61 64 64 72 |get;..X | caddr|
|00002a30| 5f 74 20 63 6c 69 65 6e | 74 44 61 74 61 2c 20 63 |_t clien|tData, c|
|00002a40| 61 6c 6c 44 61 74 61 3b | 0a 09 58 7b 0a 09 58 20 |allData;|..X{..X |
|00002a50| 20 20 20 65 78 69 74 28 | 30 29 3b 0a 09 58 7d 0a | exit(|0);..X}.|
|00002a60| 09 58 0a 09 58 57 69 64 | 67 65 74 20 70 75 73 68 |.X..XWid|get push|
|00002a70| 62 75 74 74 6f 6e 2c 20 | 62 6f 78 3b 0a 09 58 0a |button, |box;..X.|
|00002a80| 09 58 76 6f 69 64 20 49 | 6e 73 74 61 6c 6c 41 63 |.Xvoid I|nstallAc|
|00002a90| 63 65 6c 28 77 69 64 67 | 65 74 2c 20 63 6c 69 65 |cel(widg|et, clie|
|00002aa0| 6e 74 44 61 74 61 2c 20 | 63 61 6c 6c 44 61 74 61 |ntData, |callData|
|00002ab0| 29 0a 09 58 20 20 20 20 | 57 69 64 67 65 74 20 77 |)..X |Widget w|
|00002ac0| 69 64 67 65 74 3b 0a 09 | 58 20 20 20 20 63 61 64 |idget;..|X cad|
|00002ad0| 64 72 5f 74 20 63 6c 69 | 65 6e 74 44 61 74 61 2c |dr_t cli|entData,|
|00002ae0| 20 63 61 6c 6c 44 61 74 | 61 3b 0a 09 58 7b 0a 09 | callDat|a;..X{..|
|00002af0| 58 20 20 20 20 58 74 49 | 6e 73 74 61 6c 6c 41 6c |X XtI|nstallAl|
|00002b00| 6c 41 63 63 65 6c 65 72 | 61 74 6f 72 73 28 62 6f |lAcceler|ators(bo|
|00002b10| 78 2c 20 62 6f 78 29 3b | 0a 09 58 7d 0a 09 58 0a |x, box);|..X}..X.|
|00002b20| 09 58 69 6e 74 20 6d 61 | 69 6e 28 61 72 67 63 2c |.Xint ma|in(argc,|
|00002b30| 20 61 72 67 76 29 0a 09 | 58 20 20 20 20 75 6e 73 | argv)..|X uns|
|00002b40| 69 67 6e 65 64 20 69 6e | 74 20 61 72 67 63 3b 0a |igned in|t argc;.|
|00002b50| 09 58 20 20 20 20 63 68 | 61 72 20 2a 2a 61 72 67 |.X ch|ar **arg|
|00002b60| 76 3b 0a 09 58 7b 0a 09 | 58 20 20 20 20 57 69 64 |v;..X{..|X Wid|
|00002b70| 67 65 74 20 74 6f 70 6c | 65 76 65 6c 2c 20 6c 61 |get topl|evel, la|
|00002b80| 62 65 6c 2c 20 61 63 63 | 65 6c 3b 0a 09 58 20 20 |bel, acc|el;..X |
|00002b90| 20 20 41 72 67 20 61 72 | 67 5b 32 35 5d 3b 0a 09 | Arg ar|g[25];..|
|00002ba0| 58 20 20 20 20 75 6e 73 | 69 67 6e 65 64 20 69 6e |X uns|igned in|
|00002bb0| 74 20 6e 3b 0a 09 58 20 | 20 20 20 58 74 41 70 70 |t n;..X | XtApp|
|00002bc0| 43 6f 6e 74 65 78 74 20 | 61 70 70 3b 0a 09 58 0a |Context |app;..X.|
|00002bd0| 09 58 20 20 20 20 74 6f | 70 6c 65 76 65 6c 20 3d |.X to|plevel =|
|00002be0| 20 58 74 41 70 70 49 6e | 69 74 69 61 6c 69 7a 65 | XtAppIn|itialize|
|00002bf0| 28 26 61 70 70 2c 20 22 | 41 63 63 65 6c 22 2c 0a |(&app, "|Accel",.|
|00002c00| 09 58 09 20 20 20 20 28 | 58 72 6d 4f 70 74 69 6f |.X. (|XrmOptio|
|00002c10| 6e 44 65 73 63 4c 69 73 | 74 29 20 4e 55 4c 4c 2c |nDescLis|t) NULL,|
|00002c20| 20 30 2c 20 26 61 72 67 | 63 2c 20 61 72 67 76 2c | 0, &arg|c, argv,|
|00002c30| 0a 09 58 09 20 20 20 20 | 28 53 74 72 69 6e 67 20 |..X. |(String |
|00002c40| 2a 29 20 4e 55 4c 4c 2c | 20 28 41 72 67 4c 69 73 |*) NULL,| (ArgLis|
|00002c50| 74 29 20 4e 55 4c 4c 2c | 20 30 29 3b 0a 09 58 0a |t) NULL,| 0);..X.|
|00002c60| 09 58 20 20 20 20 6e 20 | 3d 20 30 3b 0a 09 58 20 |.X n |= 0;..X |
|00002c70| 20 20 20 58 74 53 65 74 | 41 72 67 28 61 72 67 5b | XtSet|Arg(arg[|
|00002c80| 6e 5d 2c 20 58 74 4e 69 | 6e 70 75 74 2c 20 54 52 |n], XtNi|nput, TR|
|00002c90| 55 45 29 3b 09 6e 2b 2b | 3b 0a 09 58 20 20 20 20 |UE);.n++|;..X |
|00002ca0| 58 74 53 65 74 56 61 6c | 75 65 73 28 74 6f 70 6c |XtSetVal|ues(topl|
|00002cb0| 65 76 65 6c 2c 20 61 72 | 67 2c 20 6e 29 3b 0a 09 |evel, ar|g, n);..|
|00002cc0| 58 0a 09 58 20 20 20 20 | 62 6f 78 20 3d 20 58 74 |X..X |box = Xt|
|00002cd0| 43 72 65 61 74 65 4d 61 | 6e 61 67 65 64 57 69 64 |CreateMa|nagedWid|
|00002ce0| 67 65 74 28 22 62 6f 78 | 22 2c 20 62 6f 78 57 69 |get("box|", boxWi|
|00002cf0| 64 67 65 74 43 6c 61 73 | 73 2c 20 74 6f 70 6c 65 |dgetClas|s, tople|
|00002d00| 76 65 6c 2c 0a 09 58 09 | 28 41 72 67 20 2a 29 20 |vel,..X.|(Arg *) |
|00002d10| 4e 55 4c 4c 2c 20 30 29 | 3b 0a 09 58 0a 09 58 20 |NULL, 0)|;..X..X |
|00002d20| 20 20 20 6e 20 3d 20 30 | 3b 0a 09 58 20 20 20 20 | n = 0|;..X |
|00002d30| 58 74 53 65 74 41 72 67 | 28 61 72 67 5b 6e 5d 2c |XtSetArg|(arg[n],|
|00002d40| 20 58 74 4e 78 2c 20 31 | 30 29 3b 09 6e 2b 2b 3b | XtNx, 1|0);.n++;|
|00002d50| 0a 09 58 20 20 20 20 58 | 74 53 65 74 41 72 67 28 |..X X|tSetArg(|
|00002d60| 61 72 67 5b 6e 5d 2c 20 | 58 74 4e 79 2c 20 31 30 |arg[n], |XtNy, 10|
|00002d70| 29 3b 09 6e 2b 2b 3b 0a | 09 58 20 20 20 20 58 74 |);.n++;.|.X Xt|
|00002d80| 53 65 74 41 72 67 28 61 | 72 67 5b 6e 5d 2c 20 58 |SetArg(a|rg[n], X|
|00002d90| 74 4e 6c 61 62 65 6c 2c | 20 22 47 6f 6f 64 62 79 |tNlabel,| "Goodby|
|00002da0| 65 2c 20 77 6f 72 6c 64 | 22 29 3b 09 6e 2b 2b 3b |e, world|");.n++;|
|00002db0| 0a 09 58 0a 09 58 20 20 | 20 20 6c 61 62 65 6c 20 |..X..X | label |
|00002dc0| 3d 20 58 74 43 72 65 61 | 74 65 4d 61 6e 61 67 65 |= XtCrea|teManage|
|00002dd0| 64 57 69 64 67 65 74 28 | 22 6c 61 62 65 6c 22 2c |dWidget(|"label",|
|00002de0| 20 6c 61 62 65 6c 57 69 | 64 67 65 74 43 6c 61 73 | labelWi|dgetClas|
|00002df0| 73 2c 20 62 6f 78 2c 0a | 09 58 09 61 72 67 2c 20 |s, box,.|.X.arg, |
|00002e00| 6e 29 3b 0a 09 58 0a 09 | 58 20 20 20 20 6e 20 3d |n);..X..|X n =|
|00002e10| 20 30 3b 0a 09 58 20 20 | 20 20 58 74 53 65 74 41 | 0;..X | XtSetA|
|00002e20| 72 67 28 61 72 67 5b 6e | 5d 2c 20 58 74 4e 78 2c |rg(arg[n|], XtNx,|
|00002e30| 20 31 30 29 3b 20 6e 2b | 2b 3b 0a 09 58 20 20 20 | 10); n+|+;..X |
|00002e40| 20 58 74 53 65 74 41 72 | 67 28 61 72 67 5b 6e 5d | XtSetAr|g(arg[n]|
|00002e50| 2c 20 58 74 4e 79 2c 20 | 34 30 29 3b 20 6e 2b 2b |, XtNy, |40); n++|
|00002e60| 3b 0a 09 58 20 20 20 20 | 58 74 53 65 74 41 72 67 |;..X |XtSetArg|
|00002e70| 28 61 72 67 5b 6e 5d 2c | 20 58 74 4e 6c 61 62 65 |(arg[n],| XtNlabe|
|00002e80| 6c 2c 20 22 49 6e 73 74 | 61 6c 6c 20 61 63 63 65 |l, "Inst|all acce|
|00002e90| 6c 65 72 61 74 6f 72 73 | 22 29 3b 09 6e 2b 2b 3b |lerators|");.n++;|
|00002ea0| 0a 09 58 0a 09 58 20 20 | 20 20 61 63 63 65 6c 20 |..X..X | accel |
|00002eb0| 3d 20 58 74 43 72 65 61 | 74 65 4d 61 6e 61 67 65 |= XtCrea|teManage|
|00002ec0| 64 57 69 64 67 65 74 28 | 22 61 63 63 65 6c 22 2c |dWidget(|"accel",|
|00002ed0| 20 70 75 73 68 62 75 74 | 74 6f 6e 57 69 64 67 65 | pushbut|tonWidge|
|00002ee0| 74 43 6c 61 73 73 2c 0a | 09 58 09 62 6f 78 2c 20 |tClass,.|.X.box, |
|00002ef0| 61 72 67 2c 20 6e 29 3b | 0a 09 58 0a 09 58 20 20 |arg, n);|..X..X |
|00002f00| 20 20 58 74 41 64 64 43 | 61 6c 6c 62 61 63 6b 28 | XtAddC|allback(|
|00002f10| 61 63 63 65 6c 2c 20 58 | 74 4e 63 61 6c 6c 62 61 |accel, X|tNcallba|
|00002f20| 63 6b 2c 20 49 6e 73 74 | 61 6c 6c 41 63 63 65 6c |ck, Inst|allAccel|
|00002f30| 2c 20 4e 55 4c 4c 29 3b | 0a 09 58 0a 09 58 20 20 |, NULL);|..X..X |
|00002f40| 20 20 6e 20 3d 20 30 3b | 0a 09 58 20 20 20 20 58 | n = 0;|..X X|
|00002f50| 74 53 65 74 41 72 67 28 | 61 72 67 5b 6e 5d 2c 20 |tSetArg(|arg[n], |
|00002f60| 58 74 4e 78 2c 20 31 30 | 29 3b 20 6e 2b 2b 3b 0a |XtNx, 10|); n++;.|
|00002f70| 09 58 20 20 20 20 58 74 | 53 65 74 41 72 67 28 61 |.X Xt|SetArg(a|
|00002f80| 72 67 5b 6e 5d 2c 20 58 | 74 4e 79 2c 20 37 30 29 |rg[n], X|tNy, 70)|
|00002f90| 3b 20 6e 2b 2b 3b 0a 09 | 58 20 20 20 20 58 74 53 |; n++;..|X XtS|
|00002fa0| 65 74 41 72 67 28 61 72 | 67 5b 6e 5d 2c 20 58 74 |etArg(ar|g[n], Xt|
|00002fb0| 4e 6c 61 62 65 6c 2c 20 | 22 43 6c 69 63 6b 20 61 |Nlabel, |"Click a|
|00002fc0| 6e 64 20 64 69 65 22 29 | 3b 09 6e 2b 2b 3b 0a 09 |nd die")|;.n++;..|
|00002fd0| 58 20 20 20 20 58 74 53 | 65 74 41 72 67 28 61 72 |X XtS|etArg(ar|
|00002fe0| 67 5b 6e 5d 2c 20 58 74 | 4e 61 63 63 65 6c 65 72 |g[n], Xt|Nacceler|
|00002ff0| 61 74 6f 72 73 2c 20 0a | 09 58 09 20 20 20 20 58 |ators, .|.X. X|
|00003000| 74 50 61 72 73 65 41 63 | 63 65 6c 65 72 61 74 6f |tParseAc|celerato|
|00003010| 72 54 61 62 6c 65 28 22 | 3a 43 74 72 6c 3c 4b 65 |rTable("|:Ctrl<Ke|
|00003020| 79 3e 61 3a 20 6e 6f 74 | 69 66 79 28 29 22 29 29 |y>a: not|ify()"))|
|00003030| 3b 09 6e 2b 2b 3b 0a 09 | 58 20 20 20 20 58 74 53 |;.n++;..|X XtS|
|00003040| 65 74 41 72 67 28 61 72 | 67 5b 6e 5d 2c 20 58 74 |etArg(ar|g[n], Xt|
|00003050| 4e 61 63 63 65 6c 65 72 | 61 74 6f 72 53 74 72 69 |Nacceler|atorStri|
|00003060| 6e 67 2c 20 22 20 28 5e | 41 29 22 29 3b 09 6e 2b |ng, " (^|A)");.n+|
|00003070| 2b 3b 0a 09 58 0a 09 58 | 20 20 20 20 70 75 73 68 |+;..X..X| push|
|00003080| 62 75 74 74 6f 6e 20 3d | 20 58 74 43 72 65 61 74 |button =| XtCreat|
|00003090| 65 4d 61 6e 61 67 65 64 | 57 69 64 67 65 74 28 22 |eManaged|Widget("|
|000030a0| 70 75 73 68 62 75 74 74 | 6f 6e 22 2c 20 70 75 73 |pushbutt|on", pus|
|000030b0| 68 62 75 74 74 6f 6e 57 | 69 64 67 65 74 43 6c 61 |hbuttonW|idgetCla|
|000030c0| 73 73 2c 0a 09 58 09 62 | 6f 78 2c 20 61 72 67 2c |ss,..X.b|ox, arg,|
|000030d0| 20 6e 29 3b 0a 09 58 0a | 09 58 20 20 20 20 58 74 | n);..X.|.X Xt|
|000030e0| 41 64 64 43 61 6c 6c 62 | 61 63 6b 28 70 75 73 68 |AddCallb|ack(push|
|000030f0| 62 75 74 74 6f 6e 2c 20 | 58 74 4e 63 61 6c 6c 62 |button, |XtNcallb|
|00003100| 61 63 6b 2c 20 47 6f 6f | 64 62 79 65 2c 20 4e 55 |ack, Goo|dbye, NU|
|00003110| 4c 4c 29 3b 0a 09 58 0a | 09 58 20 20 20 20 58 74 |LL);..X.|.X Xt|
|00003120| 52 65 61 6c 69 7a 65 57 | 69 64 67 65 74 28 74 6f |RealizeW|idget(to|
|00003130| 70 6c 65 76 65 6c 29 3b | 0a 09 58 20 20 20 20 58 |plevel);|..X X|
|00003140| 74 41 70 70 4d 61 69 6e | 4c 6f 6f 70 28 61 70 70 |tAppMain|Loop(app|
|00003150| 29 3b 0a 09 58 7d 0a 53 | 48 41 52 5f 45 4f 46 0a |);..X}.S|HAR_EOF.|
|00003160| 69 66 20 74 65 73 74 20 | 33 30 34 30 20 2d 6e 65 |if test |3040 -ne|
|00003170| 20 22 60 77 63 20 2d 63 | 20 3c 20 27 61 63 63 65 | "`wc -c| < 'acce|
|00003180| 6c 2e 63 27 60 22 0a 74 | 68 65 6e 0a 09 65 63 68 |l.c'`".t|hen..ech|
|00003190| 6f 20 73 68 61 72 3a 20 | 65 72 72 6f 72 20 74 72 |o shar: |error tr|
|000031a0| 61 6e 73 6d 69 74 74 69 | 6e 67 20 22 27 61 63 63 |ansmitti|ng "'acc|
|000031b0| 65 6c 2e 63 27 22 20 27 | 28 73 68 6f 75 6c 64 20 |el.c'" '|(should |
|000031c0| 68 61 76 65 20 62 65 65 | 6e 20 33 30 34 30 20 63 |have bee|n 3040 c|
|000031d0| 68 61 72 61 63 74 65 72 | 73 29 27 0a 66 69 0a 66 |haracter|s)'.fi.f|
|000031e0| 69 20 23 20 65 6e 64 20 | 6f 66 20 6f 76 65 72 77 |i # end |of overw|
|000031f0| 72 69 74 69 6e 67 20 63 | 68 65 63 6b 0a 65 63 68 |riting c|heck.ech|
|00003200| 6f 20 73 68 61 72 3a 20 | 65 78 74 72 61 63 74 69 |o shar: |extracti|
|00003210| 6e 67 20 22 27 62 61 72 | 67 72 61 70 68 2e 63 27 |ng "'bar|graph.c'|
|00003220| 22 20 27 28 32 32 33 33 | 20 63 68 61 72 61 63 74 |" '(2233| charact|
|00003230| 65 72 73 29 27 0a 69 66 | 20 74 65 73 74 20 2d 66 |ers)'.if| test -f|
|00003240| 20 27 62 61 72 67 72 61 | 70 68 2e 63 27 0a 74 68 | 'bargra|ph.c'.th|
|00003250| 65 6e 0a 09 65 63 68 6f | 20 73 68 61 72 3a 20 77 |en..echo| shar: w|
|00003260| 69 6c 6c 20 6e 6f 74 20 | 6f 76 65 72 2d 77 72 69 |ill not |over-wri|
|00003270| 74 65 20 65 78 69 73 74 | 69 6e 67 20 66 69 6c 65 |te exist|ing file|
|00003280| 20 22 27 62 61 72 67 72 | 61 70 68 2e 63 27 22 0a | "'bargr|aph.c'".|
|00003290| 65 6c 73 65 0a 73 65 64 | 20 27 73 2f 5e 09 58 2f |else.sed| 's/^.X/|
|000032a0| 2f 27 20 3c 3c 20 5c 53 | 48 41 52 5f 45 4f 46 20 |/' << \S|HAR_EOF |
|000032b0| 3e 20 27 62 61 72 67 72 | 61 70 68 2e 63 27 0a 09 |> 'bargr|aph.c'..|
|000032c0| 58 2f 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |X/******|********|
|000032d0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|000032e0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|000032f0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 0a 09 58 |********|*****..X|
|00003300| 43 6f 70 79 72 69 67 68 | 74 20 31 39 39 30 20 62 |Copyrigh|t 1990 b|
|00003310| 79 20 44 69 67 69 74 61 | 6c 20 45 71 75 69 70 6d |y Digita|l Equipm|
|00003320| 65 6e 74 20 43 6f 72 70 | 6f 72 61 74 69 6f 6e 2c |ent Corp|oration,|
|00003330| 20 4d 61 79 6e 61 72 64 | 2c 20 4d 61 73 73 61 63 | Maynard|, Massac|
|00003340| 68 75 73 65 74 74 73 2e | 0a 09 58 0a 09 58 20 20 |husetts.|..X..X |
|00003350| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00003360| 20 20 20 20 20 20 41 6c | 6c 20 52 69 67 68 74 73 | Al|l Rights|
|00003370| 20 52 65 73 65 72 76 65 | 64 0a 09 58 0a 09 58 50 | Reserve|d..X..XP|
|00003380| 65 72 6d 69 73 73 69 6f | 6e 20 74 6f 20 75 73 65 |ermissio|n to use|
|00003390| 2c 20 63 6f 70 79 2c 20 | 6d 6f 64 69 66 79 2c 20 |, copy, |modify, |
|000033a0| 61 6e 64 20 64 69 73 74 | 72 69 62 75 74 65 20 74 |and dist|ribute t|
|000033b0| 68 65 73 65 20 65 78 61 | 6d 70 6c 65 73 20 66 6f |hese exa|mples fo|
|000033c0| 72 20 61 6e 79 0a 09 58 | 70 75 72 70 6f 73 65 20 |r any..X|purpose |
|000033d0| 61 6e 64 20 77 69 74 68 | 6f 75 74 20 66 65 65 20 |and with|out fee |
|000033e0| 69 73 20 68 65 72 65 62 | 79 20 67 72 61 6e 74 65 |is hereb|y grante|
|000033f0| 64 2c 20 70 72 6f 76 69 | 64 65 64 20 74 68 61 74 |d, provi|ded that|
|00003400| 20 74 68 65 20 61 62 6f | 76 65 0a 09 58 63 6f 70 | the abo|ve..Xcop|
|00003410| 79 72 69 67 68 74 20 6e | 6f 74 69 63 65 20 61 70 |yright n|otice ap|
|00003420| 70 65 61 72 20 69 6e 20 | 61 6c 6c 20 63 6f 70 69 |pear in |all copi|
|00003430| 65 73 20 61 6e 64 20 74 | 68 61 74 20 62 6f 74 68 |es and t|hat both|
|00003440| 20 74 68 61 74 20 63 6f | 70 79 72 69 67 68 74 0a | that co|pyright.|
|00003450| 09 58 6e 6f 74 69 63 65 | 20 61 6e 64 20 74 68 69 |.Xnotice| and thi|
|00003460| 73 20 70 65 72 6d 69 73 | 73 69 6f 6e 20 6e 6f 74 |s permis|sion not|
|00003470| 69 63 65 20 61 70 70 65 | 61 72 20 69 6e 20 73 75 |ice appe|ar in su|
|00003480| 70 70 6f 72 74 69 6e 67 | 20 64 6f 63 75 6d 65 6e |pporting| documen|
|00003490| 74 61 74 69 6f 6e 2c 0a | 09 58 61 6e 64 20 74 68 |tation,.|.Xand th|
|000034a0| 61 74 20 74 68 65 20 6e | 61 6d 65 20 6f 66 20 44 |at the n|ame of D|
|000034b0| 69 67 69 74 61 6c 20 6e | 6f 74 20 62 65 20 75 73 |igital n|ot be us|
|000034c0| 65 64 20 69 6e 20 61 64 | 76 65 72 74 69 73 69 6e |ed in ad|vertisin|
|000034d0| 67 20 6f 72 20 70 75 62 | 6c 69 63 69 74 79 0a 09 |g or pub|licity..|
|000034e0| 58 70 65 72 74 61 69 6e | 69 6e 67 20 74 6f 20 64 |Xpertain|ing to d|
|000034f0| 69 73 74 72 69 62 75 74 | 69 6f 6e 20 6f 66 20 74 |istribut|ion of t|
|00003500| 68 65 20 73 6f 66 74 77 | 61 72 65 20 77 69 74 68 |he softw|are with|
|00003510| 6f 75 74 20 73 70 65 63 | 69 66 69 63 2c 20 77 72 |out spec|ific, wr|
|00003520| 69 74 74 65 6e 0a 09 58 | 70 72 69 6f 72 20 70 65 |itten..X|prior pe|
|00003530| 72 6d 69 73 73 69 6f 6e | 2e 0a 09 58 0a 09 58 44 |rmission|...X..XD|
|00003540| 49 47 49 54 41 4c 20 41 | 4e 44 20 54 48 45 20 41 |IGITAL A|ND THE A|
|00003550| 55 54 48 4f 52 53 20 44 | 49 53 43 4c 41 49 4d 20 |UTHORS D|ISCLAIM |
|00003560| 41 4c 4c 20 57 41 52 52 | 41 4e 54 49 45 53 20 57 |ALL WARR|ANTIES W|
|00003570| 49 54 48 20 52 45 47 41 | 52 44 20 54 4f 20 54 48 |ITH REGA|RD TO TH|
|00003580| 49 53 0a 09 58 53 4f 46 | 54 57 41 52 45 2c 20 49 |IS..XSOF|TWARE, I|
|00003590| 4e 43 4c 55 44 49 4e 47 | 20 41 4c 4c 20 49 4d 50 |NCLUDING| ALL IMP|
|000035a0| 4c 49 45 44 20 57 41 52 | 52 41 4e 54 49 45 53 20 |LIED WAR|RANTIES |
|000035b0| 4f 46 20 4d 45 52 43 48 | 41 4e 54 41 42 49 4c 49 |OF MERCH|ANTABILI|
|000035c0| 54 59 20 41 4e 44 0a 09 | 58 46 49 54 4e 45 53 53 |TY AND..|XFITNESS|
|000035d0| 2c 20 49 4e 20 4e 4f 20 | 45 56 45 4e 54 20 53 48 |, IN NO |EVENT SH|
|000035e0| 41 4c 4c 20 44 49 47 49 | 54 41 4c 20 42 45 20 4c |ALL DIGI|TAL BE L|
|000035f0| 49 41 42 4c 45 20 46 4f | 52 20 41 4e 59 20 53 50 |IABLE FO|R ANY SP|
|00003600| 45 43 49 41 4c 2c 20 49 | 4e 44 49 52 45 43 54 0a |ECIAL, I|NDIRECT.|
|00003610| 09 58 4f 52 20 43 4f 4e | 53 45 51 55 45 4e 54 49 |.XOR CON|SEQUENTI|
|00003620| 41 4c 20 44 41 4d 41 47 | 45 53 20 4f 52 20 41 4e |AL DAMAG|ES OR AN|
|00003630| 59 20 44 41 4d 41 47 45 | 53 20 57 48 41 54 53 4f |Y DAMAGE|S WHATSO|
|00003640| 45 56 45 52 20 52 45 53 | 55 4c 54 49 4e 47 20 46 |EVER RES|ULTING F|
|00003650| 52 4f 4d 20 4c 4f 53 53 | 0a 09 58 4f 46 20 55 53 |ROM LOSS|..XOF US|
|00003660| 45 2c 20 44 41 54 41 20 | 4f 52 20 50 52 4f 46 49 |E, DATA |OR PROFI|
|00003670| 54 53 2c 20 57 48 45 54 | 48 45 52 20 49 4e 20 41 |TS, WHET|HER IN A|
|00003680| 4e 20 41 43 54 49 4f 4e | 20 4f 46 20 43 4f 4e 54 |N ACTION| OF CONT|
|00003690| 52 41 43 54 2c 20 4e 45 | 47 4c 49 47 45 4e 43 45 |RACT, NE|GLIGENCE|
|000036a0| 0a 09 58 4f 52 20 4f 54 | 48 45 52 20 54 4f 52 54 |..XOR OT|HER TORT|
|000036b0| 49 4f 55 53 20 41 43 54 | 49 4f 4e 2c 20 41 52 49 |IOUS ACT|ION, ARI|
|000036c0| 53 49 4e 47 20 4f 55 54 | 20 4f 46 20 4f 52 20 49 |SING OUT| OF OR I|
|000036d0| 4e 20 43 4f 4e 4e 45 43 | 54 49 4f 4e 20 57 49 54 |N CONNEC|TION WIT|
|000036e0| 48 20 54 48 45 20 55 53 | 45 0a 09 58 4f 52 20 50 |H THE US|E..XOR P|
|000036f0| 45 52 46 4f 52 4d 41 4e | 43 45 20 4f 46 20 54 48 |ERFORMAN|CE OF TH|
|00003700| 49 53 20 53 4f 46 54 57 | 41 52 45 2e 0a 09 58 0a |IS SOFTW|ARE...X.|
|00003710| 09 58 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |.X******|********|
|00003720| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00003730| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00003740| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00003750| 2a 2a 2a 2a 2f 0a 09 58 | 0a 09 58 23 69 6e 63 6c |****/..X|..X#incl|
|00003760| 75 64 65 20 3c 58 31 31 | 2f 49 6e 74 72 69 6e 73 |ude <X11|/Intrins|
|00003770| 69 63 2e 68 3e 0a 09 58 | 23 69 6e 63 6c 75 64 65 |ic.h>..X|#include|
|00003780| 20 3c 58 31 31 2f 53 74 | 72 69 6e 67 44 65 66 73 | <X11/St|ringDefs|
|00003790| 2e 68 3e 0a 09 58 0a 09 | 58 23 69 6e 63 6c 75 64 |.h>..X..|X#includ|
|000037a0| 65 20 22 47 72 61 70 68 | 2e 68 22 0a 09 58 23 69 |e "Graph|.h"..X#i|
|000037b0| 6e 63 6c 75 64 65 20 22 | 42 61 72 44 69 73 70 6c |nclude "|BarDispl|
|000037c0| 61 79 2e 68 22 0a 09 58 | 0a 09 58 69 6e 74 20 6d |ay.h"..X|..Xint m|
|000037d0| 61 69 6e 28 61 72 67 63 | 2c 20 61 72 67 76 29 0a |ain(argc|, argv).|
|000037e0| 09 58 20 20 20 20 75 6e | 73 69 67 6e 65 64 20 69 |.X un|signed i|
|000037f0| 6e 74 20 61 72 67 63 3b | 0a 09 58 20 20 20 20 63 |nt argc;|..X c|
|00003800| 68 61 72 20 2a 2a 61 72 | 67 76 3b 0a 09 58 7b 0a |har **ar|gv;..X{.|
|00003810| 09 58 20 20 20 20 57 69 | 64 67 65 74 20 74 6f 70 |.X Wi|dget top|
|00003820| 6c 65 76 65 6c 2c 20 67 | 72 61 70 68 2c 20 64 69 |level, g|raph, di|
|00003830| 73 70 6c 61 79 3b 0a 09 | 58 20 20 20 20 69 6e 74 |splay;..|X int|
|00003840| 20 62 61 72 73 3b 0a 09 | 58 20 20 20 20 69 6e 74 | bars;..|X int|
|00003850| 20 62 61 72 76 61 6c 75 | 65 73 5b 32 35 5d 3b 0a | barvalu|es[25];.|
|00003860| 09 58 20 20 20 20 53 74 | 72 69 6e 67 20 6c 61 62 |.X St|ring lab|
|00003870| 65 6c 73 5b 32 35 5d 3b | 0a 09 58 20 20 20 20 63 |els[25];|..X c|
|00003880| 68 61 72 20 62 75 66 66 | 65 72 5b 32 35 5d 3b 0a |har buff|er[25];.|
|00003890| 09 58 20 20 20 20 41 72 | 67 20 61 72 67 5b 32 35 |.X Ar|g arg[25|
|000038a0| 5d 3b 0a 09 58 20 20 20 | 20 75 6e 73 69 67 6e 65 |];..X | unsigne|
|000038b0| 64 20 69 6e 74 20 6e 3b | 0a 09 58 20 20 20 20 58 |d int n;|..X X|
|000038c0| 74 41 70 70 43 6f 6e 74 | 65 78 74 20 61 70 70 3b |tAppCont|ext app;|
|000038d0| 0a 09 58 0a 09 58 20 20 | 20 20 70 72 69 6e 74 66 |..X..X | printf|
|000038e0| 28 22 48 6f 77 20 6d 61 | 6e 79 20 62 61 72 73 3f |("How ma|ny bars?|
|000038f0| 20 22 29 3b 0a 09 58 20 | 20 20 20 73 63 61 6e 66 | ");..X | scanf|
|00003900| 28 22 25 64 22 2c 20 26 | 62 61 72 73 29 3b 0a 09 |("%d", &|bars);..|
|00003910| 58 20 20 20 20 66 6f 72 | 20 28 6e 20 3d 20 30 3b |X for| (n = 0;|
|00003920| 20 6e 20 3c 20 62 61 72 | 73 3b 20 6e 2b 2b 29 20 | n < bar|s; n++) |
|00003930| 7b 0a 09 58 09 62 61 72 | 76 61 6c 75 65 73 5b 6e |{..X.bar|values[n|
|00003940| 5d 20 3d 20 31 30 2a 6e | 3b 0a 09 58 09 73 70 72 |] = 10*n|;..X.spr|
|00003950| 69 6e 74 66 28 62 75 66 | 66 65 72 2c 20 22 54 68 |intf(buf|fer, "Th|
|00003960| 69 73 20 69 73 20 4c 61 | 62 65 6c 20 25 64 22 2c |is is La|bel %d",|
|00003970| 20 6e 29 3b 0a 09 58 09 | 6c 61 62 65 6c 73 5b 6e | n);..X.|labels[n|
|00003980| 5d 20 3d 20 58 74 4e 65 | 77 53 74 72 69 6e 67 28 |] = XtNe|wString(|
|00003990| 62 75 66 66 65 72 29 3b | 0a 09 58 20 20 20 20 7d |buffer);|..X }|
|000039a0| 0a 09 58 0a 09 58 20 20 | 20 20 74 6f 70 6c 65 76 |..X..X | toplev|
|000039b0| 65 6c 20 3d 20 58 74 41 | 70 70 49 6e 69 74 69 61 |el = XtA|ppInitia|
|000039c0| 6c 69 7a 65 28 26 61 70 | 70 2c 20 22 42 61 72 47 |lize(&ap|p, "BarG|
|000039d0| 72 61 70 68 22 2c 0a 09 | 58 09 20 20 20 20 28 58 |raph",..|X. (X|
|000039e0| 72 6d 4f 70 74 69 6f 6e | 44 65 73 63 4c 69 73 74 |rmOption|DescList|
|000039f0| 29 20 4e 55 4c 4c 2c 20 | 30 2c 20 26 61 72 67 63 |) NULL, |0, &argc|
|00003a00| 2c 20 61 72 67 76 2c 0a | 09 58 09 20 20 20 20 28 |, argv,.|.X. (|
|00003a10| 53 74 72 69 6e 67 20 2a | 29 20 4e 55 4c 4c 2c 20 |String *|) NULL, |
|00003a20| 28 41 72 67 4c 69 73 74 | 29 20 4e 55 4c 4c 2c 20 |(ArgList|) NULL, |
|00003a30| 30 29 3b 0a 09 58 0a 09 | 58 20 20 20 20 6e 20 3d |0);..X..|X n =|
|00003a40| 20 30 3b 0a 09 58 20 20 | 20 20 58 74 53 65 74 41 | 0;..X | XtSetA|
|00003a50| 72 67 28 61 72 67 5b 6e | 5d 2c 20 58 74 4e 6e 75 |rg(arg[n|], XtNnu|
|00003a60| 6d 45 6e 74 72 69 65 73 | 2c 20 62 61 72 73 29 3b |mEntries|, bars);|
|00003a70| 20 6e 2b 2b 3b 0a 09 58 | 20 20 20 20 58 74 53 65 | n++;..X| XtSe|
|00003a80| 74 41 72 67 28 61 72 67 | 5b 6e 5d 2c 20 58 74 4e |tArg(arg|[n], XtN|
|00003a90| 6c 61 62 65 6c 73 2c 20 | 6c 61 62 65 6c 73 29 3b |labels, |labels);|
|00003aa0| 20 6e 2b 2b 3b 0a 09 58 | 20 20 20 20 58 74 53 65 | n++;..X| XtSe|
|00003ab0| 74 41 72 67 28 61 72 67 | 5b 6e 5d 2c 20 58 74 4e |tArg(arg|[n], XtN|
|00003ac0| 76 61 6c 75 65 73 2c 20 | 62 61 72 76 61 6c 75 65 |values, |barvalue|
|00003ad0| 73 29 3b 20 6e 2b 2b 3b | 0a 09 58 20 20 20 20 58 |s); n++;|..X X|
|00003ae0| 74 53 65 74 41 72 67 28 | 61 72 67 5b 6e 5d 2c 20 |tSetArg(|arg[n], |
|00003af0| 58 74 4e 6d 61 78 56 61 | 6c 75 65 2c 20 31 30 30 |XtNmaxVa|lue, 100|
|00003b00| 29 3b 20 6e 2b 2b 3b 09 | 0a 09 58 0a 09 58 20 20 |); n++;.|..X..X |
|00003b10| 20 20 67 72 61 70 68 20 | 3d 20 58 74 43 72 65 61 | graph |= XtCrea|
|00003b20| 74 65 4d 61 6e 61 67 65 | 64 57 69 64 67 65 74 28 |teManage|dWidget(|
|00003b30| 22 67 72 61 70 68 22 2c | 20 67 72 61 70 68 57 69 |"graph",| graphWi|
|00003b40| 64 67 65 74 43 6c 61 73 | 73 2c 20 74 6f 70 6c 65 |dgetClas|s, tople|
|00003b50| 76 65 6c 2c 0a 09 58 09 | 61 72 67 2c 20 6e 29 3b |vel,..X.|arg, n);|
|00003b60| 0a 09 58 0a 09 58 20 20 | 20 20 64 69 73 70 6c 61 |..X..X | displa|
|00003b70| 79 20 3d 20 58 74 43 72 | 65 61 74 65 4d 61 6e 61 |y = XtCr|eateMana|
|00003b80| 67 65 64 57 69 64 67 65 | 74 28 22 64 69 73 70 6c |gedWidge|t("displ|
|00003b90| 61 79 22 2c 20 62 61 72 | 44 69 73 70 6c 61 79 4f |ay", bar|DisplayO|
|00003ba0| 62 6a 65 63 74 43 6c 61 | 73 73 2c 0a 09 58 09 67 |bjectCla|ss,..X.g|
|00003bb0| 72 61 70 68 2c 20 4e 55 | 4c 4c 2c 20 30 29 3b 0a |raph, NU|LL, 0);.|
|00003bc0| 09 58 0a 09 58 20 20 20 | 20 58 74 52 65 61 6c 69 |.X..X | XtReali|
|00003bd0| 7a 65 57 69 64 67 65 74 | 28 74 6f 70 6c 65 76 65 |zeWidget|(topleve|
|00003be0| 6c 29 3b 0a 09 58 20 20 | 20 20 58 74 41 70 70 4d |l);..X | XtAppM|
|00003bf0| 61 69 6e 4c 6f 6f 70 28 | 61 70 70 29 3b 0a 09 58 |ainLoop(|app);..X|
|00003c00| 7d 0a 53 48 41 52 5f 45 | 4f 46 0a 69 66 20 74 65 |}.SHAR_E|OF.if te|
|00003c10| 73 74 20 32 32 33 33 20 | 2d 6e 65 20 22 60 77 63 |st 2233 |-ne "`wc|
|00003c20| 20 2d 63 20 3c 20 27 62 | 61 72 67 72 61 70 68 2e | -c < 'b|argraph.|
|00003c30| 63 27 60 22 0a 74 68 65 | 6e 0a 09 65 63 68 6f 20 |c'`".the|n..echo |
|00003c40| 73 68 61 72 3a 20 65 72 | 72 6f 72 20 74 72 61 6e |shar: er|ror tran|
|00003c50| 73 6d 69 74 74 69 6e 67 | 20 22 27 62 61 72 67 72 |smitting| "'bargr|
|00003c60| 61 70 68 2e 63 27 22 20 | 27 28 73 68 6f 75 6c 64 |aph.c'" |'(should|
|00003c70| 20 68 61 76 65 20 62 65 | 65 6e 20 32 32 33 33 20 | have be|en 2233 |
|00003c80| 63 68 61 72 61 63 74 65 | 72 73 29 27 0a 66 69 0a |characte|rs)'.fi.|
|00003c90| 66 69 20 23 20 65 6e 64 | 20 6f 66 20 6f 76 65 72 |fi # end| of over|
|00003ca0| 77 72 69 74 69 6e 67 20 | 63 68 65 63 6b 0a 65 63 |writing |check.ec|
|00003cb0| 68 6f 20 73 68 61 72 3a | 20 65 78 74 72 61 63 74 |ho shar:| extract|
|00003cc0| 69 6e 67 20 22 27 63 6f | 6e 66 69 72 6d 2e 63 27 |ing "'co|nfirm.c'|
|00003cd0| 22 20 27 28 32 37 33 36 | 20 63 68 61 72 61 63 74 |" '(2736| charact|
|00003ce0| 65 72 73 29 27 0a 69 66 | 20 74 65 73 74 20 2d 66 |ers)'.if| test -f|
|00003cf0| 20 27 63 6f 6e 66 69 72 | 6d 2e 63 27 0a 74 68 65 | 'confir|m.c'.the|
|00003d00| 6e 0a 09 65 63 68 6f 20 | 73 68 61 72 3a 20 77 69 |n..echo |shar: wi|
|00003d10| 6c 6c 20 6e 6f 74 20 6f | 76 65 72 2d 77 72 69 74 |ll not o|ver-writ|
|00003d20| 65 20 65 78 69 73 74 69 | 6e 67 20 66 69 6c 65 20 |e existi|ng file |
|00003d30| 22 27 63 6f 6e 66 69 72 | 6d 2e 63 27 22 0a 65 6c |"'confir|m.c'".el|
|00003d40| 73 65 0a 73 65 64 20 27 | 73 2f 5e 09 58 2f 2f 27 |se.sed '|s/^.X//'|
|00003d50| 20 3c 3c 20 5c 53 48 41 | 52 5f 45 4f 46 20 3e 20 | << \SHA|R_EOF > |
|00003d60| 27 63 6f 6e 66 69 72 6d | 2e 63 27 0a 09 58 2f 2a |'confirm|.c'..X/*|
|00003d70| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00003d80| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00003d90| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00003da0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 0a 09 58 43 6f 70 |********|**..XCop|
|00003db0| 79 72 69 67 68 74 20 31 | 39 39 30 20 62 79 20 44 |yright 1|990 by D|
|00003dc0| 69 67 69 74 61 6c 20 45 | 71 75 69 70 6d 65 6e 74 |igital E|quipment|
|00003dd0| 20 43 6f 72 70 6f 72 61 | 74 69 6f 6e 2c 20 4d 61 | Corpora|tion, Ma|
|00003de0| 79 6e 61 72 64 2c 20 4d | 61 73 73 61 63 68 75 73 |ynard, M|assachus|
|00003df0| 65 74 74 73 2e 0a 09 58 | 0a 09 58 20 20 20 20 20 |etts...X|..X |
|00003e00| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00003e10| 20 20 20 41 6c 6c 20 52 | 69 67 68 74 73 20 52 65 | All R|ights Re|
|00003e20| 73 65 72 76 65 64 0a 09 | 58 0a 09 58 50 65 72 6d |served..|X..XPerm|
|00003e30| 69 73 73 69 6f 6e 20 74 | 6f 20 75 73 65 2c 20 63 |ission t|o use, c|
|00003e40| 6f 70 79 2c 20 6d 6f 64 | 69 66 79 2c 20 61 6e 64 |opy, mod|ify, and|
|00003e50| 20 64 69 73 74 72 69 62 | 75 74 65 20 74 68 65 73 | distrib|ute thes|
|00003e60| 65 20 65 78 61 6d 70 6c | 65 73 20 66 6f 72 20 61 |e exampl|es for a|
|00003e70| 6e 79 0a 09 58 70 75 72 | 70 6f 73 65 20 61 6e 64 |ny..Xpur|pose and|
|00003e80| 20 77 69 74 68 6f 75 74 | 20 66 65 65 20 69 73 20 | without| fee is |
|00003e90| 68 65 72 65 62 79 20 67 | 72 61 6e 74 65 64 2c 20 |hereby g|ranted, |
|00003ea0| 70 72 6f 76 69 64 65 64 | 20 74 68 61 74 20 74 68 |provided| that th|
|00003eb0| 65 20 61 62 6f 76 65 0a | 09 58 63 6f 70 79 72 69 |e above.|.Xcopyri|
|00003ec0| 67 68 74 20 6e 6f 74 69 | 63 65 20 61 70 70 65 61 |ght noti|ce appea|
|00003ed0| 72 20 69 6e 20 61 6c 6c | 20 63 6f 70 69 65 73 20 |r in all| copies |
|00003ee0| 61 6e 64 20 74 68 61 74 | 20 62 6f 74 68 20 74 68 |and that| both th|
|00003ef0| 61 74 20 63 6f 70 79 72 | 69 67 68 74 0a 09 58 6e |at copyr|ight..Xn|
|00003f00| 6f 74 69 63 65 20 61 6e | 64 20 74 68 69 73 20 70 |otice an|d this p|
|00003f10| 65 72 6d 69 73 73 69 6f | 6e 20 6e 6f 74 69 63 65 |ermissio|n notice|
|00003f20| 20 61 70 70 65 61 72 20 | 69 6e 20 73 75 70 70 6f | appear |in suppo|
|00003f30| 72 74 69 6e 67 20 64 6f | 63 75 6d 65 6e 74 61 74 |rting do|cumentat|
|00003f40| 69 6f 6e 2c 0a 09 58 61 | 6e 64 20 74 68 61 74 20 |ion,..Xa|nd that |
|00003f50| 74 68 65 20 6e 61 6d 65 | 20 6f 66 20 44 69 67 69 |the name| of Digi|
|00003f60| 74 61 6c 20 6e 6f 74 20 | 62 65 20 75 73 65 64 20 |tal not |be used |
|00003f70| 69 6e 20 61 64 76 65 72 | 74 69 73 69 6e 67 20 6f |in adver|tising o|
|00003f80| 72 20 70 75 62 6c 69 63 | 69 74 79 0a 09 58 70 65 |r public|ity..Xpe|
|00003f90| 72 74 61 69 6e 69 6e 67 | 20 74 6f 20 64 69 73 74 |rtaining| to dist|
|00003fa0| 72 69 62 75 74 69 6f 6e | 20 6f 66 20 74 68 65 20 |ribution| of the |
|00003fb0| 73 6f 66 74 77 61 72 65 | 20 77 69 74 68 6f 75 74 |software| without|
|00003fc0| 20 73 70 65 63 69 66 69 | 63 2c 20 77 72 69 74 74 | specifi|c, writt|
|00003fd0| 65 6e 0a 09 58 70 72 69 | 6f 72 20 70 65 72 6d 69 |en..Xpri|or permi|
|00003fe0| 73 73 69 6f 6e 2e 0a 09 | 58 0a 09 58 44 49 47 49 |ssion...|X..XDIGI|
|00003ff0| 54 41 4c 20 41 4e 44 20 | 54 48 45 20 41 55 54 48 |TAL AND |THE AUTH|
|00004000| 4f 52 53 20 44 49 53 43 | 4c 41 49 4d 20 41 4c 4c |ORS DISC|LAIM ALL|
|00004010| 20 57 41 52 52 41 4e 54 | 49 45 53 20 57 49 54 48 | WARRANT|IES WITH|
|00004020| 20 52 45 47 41 52 44 20 | 54 4f 20 54 48 49 53 0a | REGARD |TO THIS.|
|00004030| 09 58 53 4f 46 54 57 41 | 52 45 2c 20 49 4e 43 4c |.XSOFTWA|RE, INCL|
|00004040| 55 44 49 4e 47 20 41 4c | 4c 20 49 4d 50 4c 49 45 |UDING AL|L IMPLIE|
|00004050| 44 20 57 41 52 52 41 4e | 54 49 45 53 20 4f 46 20 |D WARRAN|TIES OF |
|00004060| 4d 45 52 43 48 41 4e 54 | 41 42 49 4c 49 54 59 20 |MERCHANT|ABILITY |
|00004070| 41 4e 44 0a 09 58 46 49 | 54 4e 45 53 53 2c 20 49 |AND..XFI|TNESS, I|
|00004080| 4e 20 4e 4f 20 45 56 45 | 4e 54 20 53 48 41 4c 4c |N NO EVE|NT SHALL|
|00004090| 20 44 49 47 49 54 41 4c | 20 42 45 20 4c 49 41 42 | DIGITAL| BE LIAB|
|000040a0| 4c 45 20 46 4f 52 20 41 | 4e 59 20 53 50 45 43 49 |LE FOR A|NY SPECI|
|000040b0| 41 4c 2c 20 49 4e 44 49 | 52 45 43 54 0a 09 58 4f |AL, INDI|RECT..XO|
|000040c0| 52 20 43 4f 4e 53 45 51 | 55 45 4e 54 49 41 4c 20 |R CONSEQ|UENTIAL |
|000040d0| 44 41 4d 41 47 45 53 20 | 4f 52 20 41 4e 59 20 44 |DAMAGES |OR ANY D|
|000040e0| 41 4d 41 47 45 53 20 57 | 48 41 54 53 4f 45 56 45 |AMAGES W|HATSOEVE|
|000040f0| 52 20 52 45 53 55 4c 54 | 49 4e 47 20 46 52 4f 4d |R RESULT|ING FROM|
|00004100| 20 4c 4f 53 53 0a 09 58 | 4f 46 20 55 53 45 2c 20 | LOSS..X|OF USE, |
|00004110| 44 41 54 41 20 4f 52 20 | 50 52 4f 46 49 54 53 2c |DATA OR |PROFITS,|
|00004120| 20 57 48 45 54 48 45 52 | 20 49 4e 20 41 4e 20 41 | WHETHER| IN AN A|
|00004130| 43 54 49 4f 4e 20 4f 46 | 20 43 4f 4e 54 52 41 43 |CTION OF| CONTRAC|
|00004140| 54 2c 20 4e 45 47 4c 49 | 47 45 4e 43 45 0a 09 58 |T, NEGLI|GENCE..X|
|00004150| 4f 52 20 4f 54 48 45 52 | 20 54 4f 52 54 49 4f 55 |OR OTHER| TORTIOU|
|00004160| 53 20 41 43 54 49 4f 4e | 2c 20 41 52 49 53 49 4e |S ACTION|, ARISIN|
|00004170| 47 20 4f 55 54 20 4f 46 | 20 4f 52 20 49 4e 20 43 |G OUT OF| OR IN C|
|00004180| 4f 4e 4e 45 43 54 49 4f | 4e 20 57 49 54 48 20 54 |ONNECTIO|N WITH T|
|00004190| 48 45 20 55 53 45 0a 09 | 58 4f 52 20 50 45 52 46 |HE USE..|XOR PERF|
|000041a0| 4f 52 4d 41 4e 43 45 20 | 4f 46 20 54 48 49 53 20 |ORMANCE |OF THIS |
|000041b0| 53 4f 46 54 57 41 52 45 | 2e 0a 09 58 0a 09 58 2a |SOFTWARE|...X..X*|
|000041c0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|000041d0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|000041e0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|000041f0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00004200| 2a 2f 0a 09 58 0a 09 58 | 23 69 6e 63 6c 75 64 65 |*/..X..X|#include|
|00004210| 20 3c 58 31 31 2f 49 6e | 74 72 69 6e 73 69 63 2e | <X11/In|trinsic.|
|00004220| 68 3e 0a 09 58 23 69 6e | 63 6c 75 64 65 20 3c 58 |h>..X#in|clude <X|
|00004230| 31 31 2f 53 74 72 69 6e | 67 44 65 66 73 2e 68 3e |11/Strin|gDefs.h>|
|00004240| 0a 09 58 23 69 6e 63 6c | 75 64 65 20 3c 58 31 31 |..X#incl|ude <X11|
|00004250| 2f 53 68 65 6c 6c 2e 68 | 3e 0a 09 58 0a 09 58 23 |/Shell.h|>..X..X#|
|00004260| 69 6e 63 6c 75 64 65 20 | 22 42 6f 78 2e 68 22 0a |include |"Box.h".|
|00004270| 09 58 23 69 6e 63 6c 75 | 64 65 20 22 4c 61 62 65 |.X#inclu|de "Labe|
|00004280| 6c 2e 68 22 0a 09 58 23 | 69 6e 63 6c 75 64 65 20 |l.h"..X#|include |
|00004290| 22 50 75 73 68 62 75 74 | 74 6f 6e 2e 68 22 0a 09 |"Pushbut|ton.h"..|
|000042a0| 58 23 69 6e 63 6c 75 64 | 65 20 22 43 6f 6e 66 69 |X#includ|e "Confi|
|000042b0| 72 6d 2e 68 22 0a 09 58 | 0a 09 58 76 6f 69 64 20 |rm.h"..X|..Xvoid |
|000042c0| 47 6f 6f 64 62 79 65 28 | 77 69 64 67 65 74 2c 20 |Goodbye(|widget, |
|000042d0| 63 6c 69 65 6e 74 44 61 | 74 61 2c 20 63 61 6c 6c |clientDa|ta, call|
|000042e0| 44 61 74 61 29 0a 09 58 | 20 20 20 20 57 69 64 67 |Data)..X| Widg|
|000042f0| 65 74 20 77 69 64 67 65 | 74 3b 0a 09 58 20 20 20 |et widge|t;..X |
|00004300| 20 63 61 64 64 72 5f 74 | 20 63 6c 69 65 6e 74 44 | caddr_t| clientD|
|00004310| 61 74 61 2c 20 63 61 6c | 6c 44 61 74 61 3b 0a 09 |ata, cal|lData;..|
|00004320| 58 7b 0a 09 58 20 20 20 | 20 65 78 69 74 28 30 29 |X{..X | exit(0)|
|00004330| 3b 0a 09 58 7d 0a 09 58 | 0a 09 58 69 6e 74 20 6d |;..X}..X|..Xint m|
|00004340| 61 69 6e 28 61 72 67 63 | 2c 20 61 72 67 76 29 0a |ain(argc|, argv).|
|00004350| 09 58 20 20 20 20 75 6e | 73 69 67 6e 65 64 20 69 |.X un|signed i|
|00004360| 6e 74 20 61 72 67 63 3b | 0a 09 58 20 20 20 20 63 |nt argc;|..X c|
|00004370| 68 61 72 20 2a 2a 61 72 | 67 76 3b 0a 09 58 7b 0a |har **ar|gv;..X{.|
|00004380| 09 58 20 20 20 20 57 69 | 64 67 65 74 20 74 6f 70 |.X Wi|dget top|
|00004390| 6c 65 76 65 6c 2c 20 6c | 61 62 65 6c 2c 20 70 75 |level, l|abel, pu|
|000043a0| 73 68 62 75 74 74 6f 6e | 2c 20 62 6f 78 2c 20 63 |shbutton|, box, c|
|000043b0| 6f 6e 66 69 72 6d 73 68 | 65 6c 6c 2c 20 63 6f 6e |onfirmsh|ell, con|
|000043c0| 66 69 72 6d 3b 0a 09 58 | 20 20 20 20 41 72 67 20 |firm;..X| Arg |
|000043d0| 61 72 67 5b 32 35 5d 3b | 0a 09 58 20 20 20 20 75 |arg[25];|..X u|
|000043e0| 6e 73 69 67 6e 65 64 20 | 69 6e 74 20 6e 3b 0a 09 |nsigned |int n;..|
|000043f0| 58 20 20 20 20 58 74 41 | 70 70 43 6f 6e 74 65 78 |X XtA|ppContex|
|00004400| 74 20 61 70 70 3b 0a 09 | 58 0a 09 58 20 20 20 20 |t app;..|X..X |
|00004410| 74 6f 70 6c 65 76 65 6c | 20 3d 20 58 74 41 70 70 |toplevel| = XtApp|
|00004420| 49 6e 69 74 69 61 6c 69 | 7a 65 28 26 61 70 70 2c |Initiali|ze(&app,|
|00004430| 20 22 43 6f 6e 66 69 72 | 6d 22 2c 0a 09 58 09 20 | "Confir|m",..X. |
|00004440| 20 20 20 28 58 72 6d 4f | 70 74 69 6f 6e 44 65 73 | (XrmO|ptionDes|
|00004450| 63 4c 69 73 74 29 20 4e | 55 4c 4c 2c 20 30 2c 20 |cList) N|ULL, 0, |
|00004460| 26 61 72 67 63 2c 20 61 | 72 67 76 2c 0a 09 58 09 |&argc, a|rgv,..X.|
|00004470| 20 20 20 20 28 53 74 72 | 69 6e 67 20 2a 29 20 4e | (Str|ing *) N|
|00004480| 55 4c 4c 2c 20 28 41 72 | 67 4c 69 73 74 29 20 4e |ULL, (Ar|gList) N|
|00004490| 55 4c 4c 2c 20 30 29 3b | 0a 09 58 0a 09 58 20 20 |ULL, 0);|..X..X |
|000044a0| 20 20 62 6f 78 20 3d 20 | 58 74 43 72 65 61 74 65 | box = |XtCreate|
|000044b0| 4d 61 6e 61 67 65 64 57 | 69 64 67 65 74 28 22 62 |ManagedW|idget("b|
|000044c0| 6f 78 22 2c 20 62 6f 78 | 57 69 64 67 65 74 43 6c |ox", box|WidgetCl|
|000044d0| 61 73 73 2c 20 74 6f 70 | 6c 65 76 65 6c 2c 0a 09 |ass, top|level,..|
|000044e0| 58 09 28 41 72 67 20 2a | 29 20 4e 55 4c 4c 2c 20 |X.(Arg *|) NULL, |
|000044f0| 30 29 3b 0a 09 58 0a 09 | 58 20 20 20 20 6e 20 3d |0);..X..|X n =|
|00004500| 20 30 3b 0a 09 58 20 20 | 20 20 58 74 53 65 74 41 | 0;..X | XtSetA|
|00004510| 72 67 28 61 72 67 5b 6e | 5d 2c 20 58 74 4e 78 2c |rg(arg[n|], XtNx,|
|00004520| 20 31 30 29 3b 09 6e 2b | 2b 3b 0a 09 58 20 20 20 | 10);.n+|+;..X |
|00004530| 20 58 74 53 65 74 41 72 | 67 28 61 72 67 5b 6e 5d | XtSetAr|g(arg[n]|
|00004540| 2c 20 58 74 4e 79 2c 20 | 31 30 29 3b 09 6e 2b 2b |, XtNy, |10);.n++|
|00004550| 3b 0a 09 58 20 20 20 20 | 58 74 53 65 74 41 72 67 |;..X |XtSetArg|
|00004560| 28 61 72 67 5b 6e 5d 2c | 20 58 74 4e 6c 61 62 65 |(arg[n],| XtNlabe|
|00004570| 6c 2c 20 22 47 6f 6f 64 | 62 79 65 2c 20 77 6f 72 |l, "Good|bye, wor|
|00004580| 6c 64 22 29 3b 09 6e 2b | 2b 3b 0a 09 58 0a 09 58 |ld");.n+|+;..X..X|
|00004590| 20 20 20 20 6c 61 62 65 | 6c 20 3d 20 58 74 43 72 | labe|l = XtCr|
|000045a0| 65 61 74 65 4d 61 6e 61 | 67 65 64 57 69 64 67 65 |eateMana|gedWidge|
|000045b0| 74 28 22 6c 61 62 65 6c | 22 2c 20 6c 61 62 65 6c |t("label|", label|
|000045c0| 57 69 64 67 65 74 43 6c | 61 73 73 2c 20 62 6f 78 |WidgetCl|ass, box|
|000045d0| 2c 0a 09 58 09 61 72 67 | 2c 20 6e 29 3b 0a 09 58 |,..X.arg|, n);..X|
|000045e0| 0a 09 58 20 20 20 20 6e | 20 3d 20 30 3b 0a 09 58 |..X n| = 0;..X|
|000045f0| 20 20 20 20 58 74 53 65 | 74 41 72 67 28 61 72 67 | XtSe|tArg(arg|
|00004600| 5b 6e 5d 2c 20 58 74 4e | 78 2c 20 31 30 29 3b 20 |[n], XtN|x, 10); |
|00004610| 6e 2b 2b 3b 0a 09 58 20 | 20 20 20 58 74 53 65 74 |n++;..X | XtSet|
|00004620| 41 72 67 28 61 72 67 5b | 6e 5d 2c 20 58 74 4e 79 |Arg(arg[|n], XtNy|
|00004630| 2c 20 34 30 29 3b 20 6e | 2b 2b 3b 0a 09 58 20 20 |, 40); n|++;..X |
|00004640| 20 20 58 74 53 65 74 41 | 72 67 28 61 72 67 5b 6e | XtSetA|rg(arg[n|
|00004650| 5d 2c 20 58 74 4e 6c 61 | 62 65 6c 2c 20 22 43 6c |], XtNla|bel, "Cl|
|00004660| 69 63 6b 20 61 6e 64 20 | 64 69 65 22 29 3b 09 6e |ick and |die");.n|
|00004670| 2b 2b 3b 0a 09 58 0a 09 | 58 20 20 20 20 70 75 73 |++;..X..|X pus|
|00004680| 68 62 75 74 74 6f 6e 20 | 3d 20 58 74 43 72 65 61 |hbutton |= XtCrea|
|00004690| 74 65 4d 61 6e 61 67 65 | 64 57 69 64 67 65 74 28 |teManage|dWidget(|
|000046a0| 22 70 75 73 68 62 75 74 | 74 6f 6e 22 2c 20 70 75 |"pushbut|ton", pu|
|000046b0| 73 68 62 75 74 74 6f 6e | 57 69 64 67 65 74 43 6c |shbutton|WidgetCl|
|000046c0| 61 73 73 2c 0a 09 58 09 | 62 6f 78 2c 20 61 72 67 |ass,..X.|box, arg|
|000046d0| 2c 20 6e 29 3b 0a 09 58 | 0a 09 58 20 20 20 20 63 |, n);..X|..X c|
|000046e0| 6f 6e 66 69 72 6d 73 68 | 65 6c 6c 20 3d 20 58 74 |onfirmsh|ell = Xt|
|000046f0| 43 72 65 61 74 65 50 6f | 70 75 70 53 68 65 6c 6c |CreatePo|pupShell|
|00004700| 28 22 63 6f 6e 66 69 72 | 6d 53 68 65 6c 6c 22 2c |("confir|mShell",|
|00004710| 0a 09 58 09 20 20 20 20 | 74 72 61 6e 73 69 65 6e |..X. |transien|
|00004720| 74 53 68 65 6c 6c 57 69 | 64 67 65 74 43 6c 61 73 |tShellWi|dgetClas|
|00004730| 73 2c 20 70 75 73 68 62 | 75 74 74 6f 6e 2c 20 4e |s, pushb|utton, N|
|00004740| 55 4c 4c 2c 20 30 29 3b | 0a 09 58 0a 09 58 20 20 |ULL, 0);|..X..X |
|00004750| 20 20 6e 20 3d 20 30 3b | 0a 09 58 20 20 20 20 58 | n = 0;|..X X|
|00004760| 74 53 65 74 41 72 67 28 | 61 72 67 5b 6e 5d 2c 20 |tSetArg(|arg[n], |
|00004770| 58 74 4e 6c 61 62 65 6c | 2c 20 22 45 78 69 74 69 |XtNlabel|, "Exiti|
|00004780| 6e 67 20 70 72 6f 67 72 | 61 6d 22 29 3b 09 6e 2b |ng progr|am");.n+|
|00004790| 2b 3b 0a 09 58 20 20 20 | 20 0a 09 58 20 20 20 20 |+;..X | ..X |
|000047a0| 63 6f 6e 66 69 72 6d 20 | 3d 20 58 74 43 72 65 61 |confirm |= XtCrea|
|000047b0| 74 65 4d 61 6e 61 67 65 | 64 57 69 64 67 65 74 28 |teManage|dWidget(|
|000047c0| 22 63 6f 6e 66 69 72 6d | 22 2c 20 63 6f 6e 66 69 |"confirm|", confi|
|000047d0| 72 6d 57 69 64 67 65 74 | 43 6c 61 73 73 2c 0a 09 |rmWidget|Class,..|
|000047e0| 58 09 20 20 20 20 63 6f | 6e 66 69 72 6d 73 68 65 |X. co|nfirmshe|
|000047f0| 6c 6c 2c 20 61 72 67 2c | 20 6e 29 3b 0a 09 58 0a |ll, arg,| n);..X.|
|00004800| 09 58 20 20 20 20 58 74 | 41 64 64 43 61 6c 6c 62 |.X Xt|AddCallb|
|00004810| 61 63 6b 28 70 75 73 68 | 62 75 74 74 6f 6e 2c 20 |ack(push|button, |
|00004820| 58 74 4e 63 61 6c 6c 62 | 61 63 6b 2c 20 58 74 43 |XtNcallb|ack, XtC|
|00004830| 61 6c 6c 62 61 63 6b 4e | 6f 6e 65 2c 20 63 6f 6e |allbackN|one, con|
|00004840| 66 69 72 6d 73 68 65 6c | 6c 29 3b 0a 09 58 20 20 |firmshel|l);..X |
|00004850| 20 20 58 74 41 64 64 43 | 61 6c 6c 62 61 63 6b 28 | XtAddC|allback(|
|00004860| 63 6f 6e 66 69 72 6d 2c | 20 58 74 4e 63 61 6c 6c |confirm,| XtNcall|
|00004870| 62 61 63 6b 2c 20 47 6f | 6f 64 62 79 65 2c 20 4e |back, Go|odbye, N|
|00004880| 55 4c 4c 29 3b 0a 09 58 | 0a 09 58 20 20 20 20 58 |ULL);..X|..X X|
|00004890| 74 52 65 61 6c 69 7a 65 | 57 69 64 67 65 74 28 74 |tRealize|Widget(t|
|000048a0| 6f 70 6c 65 76 65 6c 29 | 3b 0a 09 58 20 20 20 20 |oplevel)|;..X |
|000048b0| 58 74 41 70 70 4d 61 69 | 6e 4c 6f 6f 70 28 61 70 |XtAppMai|nLoop(ap|
|000048c0| 70 29 3b 0a 09 58 7d 0a | 53 48 41 52 5f 45 4f 46 |p);..X}.|SHAR_EOF|
|000048d0| 0a 69 66 20 74 65 73 74 | 20 32 37 33 36 20 2d 6e |.if test| 2736 -n|
|000048e0| 65 20 22 60 77 63 20 2d | 63 20 3c 20 27 63 6f 6e |e "`wc -|c < 'con|
|000048f0| 66 69 72 6d 2e 63 27 60 | 22 0a 74 68 65 6e 0a 09 |firm.c'`|".then..|
|00004900| 65 63 68 6f 20 73 68 61 | 72 3a 20 65 72 72 6f 72 |echo sha|r: error|
|00004910| 20 74 72 61 6e 73 6d 69 | 74 74 69 6e 67 20 22 27 | transmi|tting "'|
|00004920| 63 6f 6e 66 69 72 6d 2e | 63 27 22 20 27 28 73 68 |confirm.|c'" '(sh|
|00004930| 6f 75 6c 64 20 68 61 76 | 65 20 62 65 65 6e 20 32 |ould hav|e been 2|
|00004940| 37 33 36 20 63 68 61 72 | 61 63 74 65 72 73 29 27 |736 char|acters)'|
|00004950| 0a 66 69 0a 66 69 20 23 | 20 65 6e 64 20 6f 66 20 |.fi.fi #| end of |
|00004960| 6f 76 65 72 77 72 69 74 | 69 6e 67 20 63 68 65 63 |overwrit|ing chec|
|00004970| 6b 0a 65 63 68 6f 20 73 | 68 61 72 3a 20 65 78 74 |k.echo s|har: ext|
|00004980| 72 61 63 74 69 6e 67 20 | 22 27 63 6f 6e 66 69 72 |racting |"'confir|
|00004990| 6d 31 2e 63 27 22 20 27 | 28 32 37 33 37 20 63 68 |m1.c'" '|(2737 ch|
|000049a0| 61 72 61 63 74 65 72 73 | 29 27 0a 69 66 20 74 65 |aracters|)'.if te|
|000049b0| 73 74 20 2d 66 20 27 63 | 6f 6e 66 69 72 6d 31 2e |st -f 'c|onfirm1.|
|000049c0| 63 27 0a 74 68 65 6e 0a | 09 65 63 68 6f 20 73 68 |c'.then.|.echo sh|
|000049d0| 61 72 3a 20 77 69 6c 6c | 20 6e 6f 74 20 6f 76 65 |ar: will| not ove|
|000049e0| 72 2d 77 72 69 74 65 20 | 65 78 69 73 74 69 6e 67 |r-write |existing|
|000049f0| 20 66 69 6c 65 20 22 27 | 63 6f 6e 66 69 72 6d 31 | file "'|confirm1|
|00004a00| 2e 63 27 22 0a 65 6c 73 | 65 0a 73 65 64 20 27 73 |.c'".els|e.sed 's|
|00004a10| 2f 5e 09 58 2f 2f 27 20 | 3c 3c 20 5c 53 48 41 52 |/^.X//' |<< \SHAR|
|00004a20| 5f 45 4f 46 20 3e 20 27 | 63 6f 6e 66 69 72 6d 31 |_EOF > '|confirm1|
|00004a30| 2e 63 27 0a 09 58 2f 2a | 2a 2a 2a 2a 2a 2a 2a 2a |.c'..X/*|********|
|00004a40| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00004a50| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00004a60| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00004a70| 2a 2a 0a 09 58 43 6f 70 | 79 72 69 67 68 74 20 31 |**..XCop|yright 1|
|00004a80| 39 39 30 20 62 79 20 44 | 69 67 69 74 61 6c 20 45 |990 by D|igital E|
|00004a90| 71 75 69 70 6d 65 6e 74 | 20 43 6f 72 70 6f 72 61 |quipment| Corpora|
|00004aa0| 74 69 6f 6e 2c 20 4d 61 | 79 6e 61 72 64 2c 20 4d |tion, Ma|ynard, M|
|00004ab0| 61 73 73 61 63 68 75 73 | 65 74 74 73 2e 0a 09 58 |assachus|etts...X|
|00004ac0| 0a 09 58 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |..X | |
|00004ad0| 20 20 20 20 20 20 20 20 | 20 20 20 41 6c 6c 20 52 | | All R|
|00004ae0| 69 67 68 74 73 20 52 65 | 73 65 72 76 65 64 0a 09 |ights Re|served..|
|00004af0| 58 0a 09 58 50 65 72 6d | 69 73 73 69 6f 6e 20 74 |X..XPerm|ission t|
|00004b00| 6f 20 75 73 65 2c 20 63 | 6f 70 79 2c 20 6d 6f 64 |o use, c|opy, mod|
|00004b10| 69 66 79 2c 20 61 6e 64 | 20 64 69 73 74 72 69 62 |ify, and| distrib|
|00004b20| 75 74 65 20 74 68 65 73 | 65 20 65 78 61 6d 70 6c |ute thes|e exampl|
|00004b30| 65 73 20 66 6f 72 20 61 | 6e 79 0a 09 58 70 75 72 |es for a|ny..Xpur|
|00004b40| 70 6f 73 65 20 61 6e 64 | 20 77 69 74 68 6f 75 74 |pose and| without|
|00004b50| 20 66 65 65 20 69 73 20 | 68 65 72 65 62 79 20 67 | fee is |hereby g|
|00004b60| 72 61 6e 74 65 64 2c 20 | 70 72 6f 76 69 64 65 64 |ranted, |provided|
|00004b70| 20 74 68 61 74 20 74 68 | 65 20 61 62 6f 76 65 0a | that th|e above.|
|00004b80| 09 58 63 6f 70 79 72 69 | 67 68 74 20 6e 6f 74 69 |.Xcopyri|ght noti|
|00004b90| 63 65 20 61 70 70 65 61 | 72 20 69 6e 20 61 6c 6c |ce appea|r in all|
|00004ba0| 20 63 6f 70 69 65 73 20 | 61 6e 64 20 74 68 61 74 | copies |and that|
|00004bb0| 20 62 6f 74 68 20 74 68 | 61 74 20 63 6f 70 79 72 | both th|at copyr|
|00004bc0| 69 67 68 74 0a 09 58 6e | 6f 74 69 63 65 20 61 6e |ight..Xn|otice an|
|00004bd0| 64 20 74 68 69 73 20 70 | 65 72 6d 69 73 73 69 6f |d this p|ermissio|
|00004be0| 6e 20 6e 6f 74 69 63 65 | 20 61 70 70 65 61 72 20 |n notice| appear |
|00004bf0| 69 6e 20 73 75 70 70 6f | 72 74 69 6e 67 20 64 6f |in suppo|rting do|
|00004c00| 63 75 6d 65 6e 74 61 74 | 69 6f 6e 2c 0a 09 58 61 |cumentat|ion,..Xa|
|00004c10| 6e 64 20 74 68 61 74 20 | 74 68 65 20 6e 61 6d 65 |nd that |the name|
|00004c20| 20 6f 66 20 44 69 67 69 | 74 61 6c 20 6e 6f 74 20 | of Digi|tal not |
|00004c30| 62 65 20 75 73 65 64 20 | 69 6e 20 61 64 76 65 72 |be used |in adver|
|00004c40| 74 69 73 69 6e 67 20 6f | 72 20 70 75 62 6c 69 63 |tising o|r public|
|00004c50| 69 74 79 0a 09 58 70 65 | 72 74 61 69 6e 69 6e 67 |ity..Xpe|rtaining|
|00004c60| 20 74 6f 20 64 69 73 74 | 72 69 62 75 74 69 6f 6e | to dist|ribution|
|00004c70| 20 6f 66 20 74 68 65 20 | 73 6f 66 74 77 61 72 65 | of the |software|
|00004c80| 20 77 69 74 68 6f 75 74 | 20 73 70 65 63 69 66 69 | without| specifi|
|00004c90| 63 2c 20 77 72 69 74 74 | 65 6e 0a 09 58 70 72 69 |c, writt|en..Xpri|
|00004ca0| 6f 72 20 70 65 72 6d 69 | 73 73 69 6f 6e 2e 0a 09 |or permi|ssion...|
|00004cb0| 58 0a 09 58 44 49 47 49 | 54 41 4c 20 41 4e 44 20 |X..XDIGI|TAL AND |
|00004cc0| 54 48 45 20 41 55 54 48 | 4f 52 53 20 44 49 53 43 |THE AUTH|ORS DISC|
|00004cd0| 4c 41 49 4d 20 41 4c 4c | 20 57 41 52 52 41 4e 54 |LAIM ALL| WARRANT|
|00004ce0| 49 45 53 20 57 49 54 48 | 20 52 45 47 41 52 44 20 |IES WITH| REGARD |
|00004cf0| 54 4f 20 54 48 49 53 0a | 09 58 53 4f 46 54 57 41 |TO THIS.|.XSOFTWA|
|00004d00| 52 45 2c 20 49 4e 43 4c | 55 44 49 4e 47 20 41 4c |RE, INCL|UDING AL|
|00004d10| 4c 20 49 4d 50 4c 49 45 | 44 20 57 41 52 52 41 4e |L IMPLIE|D WARRAN|
|00004d20| 54 49 45 53 20 4f 46 20 | 4d 45 52 43 48 41 4e 54 |TIES OF |MERCHANT|
|00004d30| 41 42 49 4c 49 54 59 20 | 41 4e 44 0a 09 58 46 49 |ABILITY |AND..XFI|
|00004d40| 54 4e 45 53 53 2c 20 49 | 4e 20 4e 4f 20 45 56 45 |TNESS, I|N NO EVE|
|00004d50| 4e 54 20 53 48 41 4c 4c | 20 44 49 47 49 54 41 4c |NT SHALL| DIGITAL|
|00004d60| 20 42 45 20 4c 49 41 42 | 4c 45 20 46 4f 52 20 41 | BE LIAB|LE FOR A|
|00004d70| 4e 59 20 53 50 45 43 49 | 41 4c 2c 20 49 4e 44 49 |NY SPECI|AL, INDI|
|00004d80| 52 45 43 54 0a 09 58 4f | 52 20 43 4f 4e 53 45 51 |RECT..XO|R CONSEQ|
|00004d90| 55 45 4e 54 49 41 4c 20 | 44 41 4d 41 47 45 53 20 |UENTIAL |DAMAGES |
|00004da0| 4f 52 20 41 4e 59 20 44 | 41 4d 41 47 45 53 20 57 |OR ANY D|AMAGES W|
|00004db0| 48 41 54 53 4f 45 56 45 | 52 20 52 45 53 55 4c 54 |HATSOEVE|R RESULT|
|00004dc0| 49 4e 47 20 46 52 4f 4d | 20 4c 4f 53 53 0a 09 58 |ING FROM| LOSS..X|
|00004dd0| 4f 46 20 55 53 45 2c 20 | 44 41 54 41 20 4f 52 20 |OF USE, |DATA OR |
|00004de0| 50 52 4f 46 49 54 53 2c | 20 57 48 45 54 48 45 52 |PROFITS,| WHETHER|
|00004df0| 20 49 4e 20 41 4e 20 41 | 43 54 49 4f 4e 20 4f 46 | IN AN A|CTION OF|
|00004e00| 20 43 4f 4e 54 52 41 43 | 54 2c 20 4e 45 47 4c 49 | CONTRAC|T, NEGLI|
|00004e10| 47 45 4e 43 45 0a 09 58 | 4f 52 20 4f 54 48 45 52 |GENCE..X|OR OTHER|
|00004e20| 20 54 4f 52 54 49 4f 55 | 53 20 41 43 54 49 4f 4e | TORTIOU|S ACTION|
|00004e30| 2c 20 41 52 49 53 49 4e | 47 20 4f 55 54 20 4f 46 |, ARISIN|G OUT OF|
|00004e40| 20 4f 52 20 49 4e 20 43 | 4f 4e 4e 45 43 54 49 4f | OR IN C|ONNECTIO|
|00004e50| 4e 20 57 49 54 48 20 54 | 48 45 20 55 53 45 0a 09 |N WITH T|HE USE..|
|00004e60| 58 4f 52 20 50 45 52 46 | 4f 52 4d 41 4e 43 45 20 |XOR PERF|ORMANCE |
|00004e70| 4f 46 20 54 48 49 53 20 | 53 4f 46 54 57 41 52 45 |OF THIS |SOFTWARE|
|00004e80| 2e 0a 09 58 0a 09 58 2a | 2a 2a 2a 2a 2a 2a 2a 2a |...X..X*|********|
|00004e90| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00004ea0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00004eb0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00004ec0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2f 0a 09 58 0a 09 58 |********|*/..X..X|
|00004ed0| 23 69 6e 63 6c 75 64 65 | 20 3c 58 31 31 2f 49 6e |#include| <X11/In|
|00004ee0| 74 72 69 6e 73 69 63 2e | 68 3e 0a 09 58 23 69 6e |trinsic.|h>..X#in|
|00004ef0| 63 6c 75 64 65 20 3c 58 | 31 31 2f 53 74 72 69 6e |clude <X|11/Strin|
|00004f00| 67 44 65 66 73 2e 68 3e | 0a 09 58 23 69 6e 63 6c |gDefs.h>|..X#incl|
|00004f10| 75 64 65 20 3c 58 31 31 | 2f 53 68 65 6c 6c 2e 68 |ude <X11|/Shell.h|
|00004f20| 3e 0a 09 58 0a 09 58 23 | 69 6e 63 6c 75 64 65 20 |>..X..X#|include |
|00004f30| 22 42 6f 78 2e 68 22 0a | 09 58 23 69 6e 63 6c 75 |"Box.h".|.X#inclu|
|00004f40| 64 65 20 22 4c 61 62 65 | 6c 2e 68 22 0a 09 58 23 |de "Labe|l.h"..X#|
|00004f50| 69 6e 63 6c 75 64 65 20 | 22 50 75 73 68 62 75 74 |include |"Pushbut|
|00004f60| 74 6f 6e 2e 68 22 0a 09 | 58 23 69 6e 63 6c 75 64 |ton.h"..|X#includ|
|00004f70| 65 20 22 43 6f 6e 66 69 | 72 6d 31 2e 68 22 0a 09 |e "Confi|rm1.h"..|
|00004f80| 58 0a 09 58 76 6f 69 64 | 20 47 6f 6f 64 62 79 65 |X..Xvoid| Goodbye|
|00004f90| 28 77 69 64 67 65 74 2c | 20 63 6c 69 65 6e 74 44 |(widget,| clientD|
|00004fa0| 61 74 61 2c 20 63 61 6c | 6c 44 61 74 61 29 0a 09 |ata, cal|lData)..|
|00004fb0| 58 20 20 20 20 57 69 64 | 67 65 74 20 77 69 64 67 |X Wid|get widg|
|00004fc0| 65 74 3b 0a 09 58 20 20 | 20 20 63 61 64 64 72 5f |et;..X | caddr_|
|00004fd0| 74 20 63 6c 69 65 6e 74 | 44 61 74 61 2c 20 63 61 |t client|Data, ca|
|00004fe0| 6c 6c 44 61 74 61 3b 0a | 09 58 7b 0a 09 58 20 20 |llData;.|.X{..X |
|00004ff0| 20 20 65 78 69 74 28 30 | 29 3b 0a 09 58 7d 0a 09 | exit(0|);..X}..|
|00005000| 58 0a 09 58 69 6e 74 20 | 6d 61 69 6e 28 61 72 67 |X..Xint |main(arg|
|00005010| 63 2c 20 61 72 67 76 29 | 0a 09 58 20 20 20 20 75 |c, argv)|..X u|
|00005020| 6e 73 69 67 6e 65 64 20 | 69 6e 74 20 61 72 67 63 |nsigned |int argc|
|00005030| 3b 0a 09 58 20 20 20 20 | 63 68 61 72 20 2a 2a 61 |;..X |char **a|
|00005040| 72 67 76 3b 0a 09 58 7b | 0a 09 58 20 20 20 20 57 |rgv;..X{|..X W|
|00005050| 69 64 67 65 74 20 74 6f | 70 6c 65 76 65 6c 2c 20 |idget to|plevel, |
|00005060| 6c 61 62 65 6c 2c 20 70 | 75 73 68 62 75 74 74 6f |label, p|ushbutto|
|00005070| 6e 2c 20 62 6f 78 2c 20 | 63 6f 6e 66 69 72 6d 73 |n, box, |confirms|
|00005080| 68 65 6c 6c 2c 20 63 6f | 6e 66 69 72 6d 3b 0a 09 |hell, co|nfirm;..|
|00005090| 58 20 20 20 20 41 72 67 | 20 61 72 67 5b 32 35 5d |X Arg| arg[25]|
|000050a0| 3b 0a 09 58 20 20 20 20 | 75 6e 73 69 67 6e 65 64 |;..X |unsigned|
|000050b0| 20 69 6e 74 20 6e 3b 0a | 09 58 20 20 20 20 58 74 | int n;.|.X Xt|
|000050c0| 41 70 70 43 6f 6e 74 65 | 78 74 20 61 70 70 3b 0a |AppConte|xt app;.|
|000050d0| 09 58 0a 09 58 20 20 20 | 20 74 6f 70 6c 65 76 65 |.X..X | topleve|
|000050e0| 6c 20 3d 20 58 74 41 70 | 70 49 6e 69 74 69 61 6c |l = XtAp|pInitial|
|000050f0| 69 7a 65 28 26 61 70 70 | 2c 20 22 43 6f 6e 66 69 |ize(&app|, "Confi|
|00005100| 72 6d 22 2c 0a 09 58 09 | 20 20 20 20 28 58 72 6d |rm",..X.| (Xrm|
|00005110| 4f 70 74 69 6f 6e 44 65 | 73 63 4c 69 73 74 29 20 |OptionDe|scList) |
|00005120| 4e 55 4c 4c 2c 20 30 2c | 20 26 61 72 67 63 2c 20 |NULL, 0,| &argc, |
|00005130| 61 72 67 76 2c 0a 09 58 | 09 20 20 20 20 28 53 74 |argv,..X|. (St|
|00005140| 72 69 6e 67 20 2a 29 20 | 4e 55 4c 4c 2c 20 28 41 |ring *) |NULL, (A|
|00005150| 72 67 4c 69 73 74 29 20 | 4e 55 4c 4c 2c 20 30 29 |rgList) |NULL, 0)|
|00005160| 3b 0a 09 58 0a 09 58 20 | 20 20 20 62 6f 78 20 3d |;..X..X | box =|
|00005170| 20 58 74 43 72 65 61 74 | 65 4d 61 6e 61 67 65 64 | XtCreat|eManaged|
|00005180| 57 69 64 67 65 74 28 22 | 62 6f 78 22 2c 20 62 6f |Widget("|box", bo|
|00005190| 78 57 69 64 67 65 74 43 | 6c 61 73 73 2c 20 74 6f |xWidgetC|lass, to|
|000051a0| 70 6c 65 76 65 6c 2c 0a | 09 58 09 28 41 72 67 20 |plevel,.|.X.(Arg |
|000051b0| 2a 29 20 4e 55 4c 4c 2c | 20 30 29 3b 0a 09 58 0a |*) NULL,| 0);..X.|
|000051c0| 09 58 20 20 20 20 6e 20 | 3d 20 30 3b 0a 09 58 20 |.X n |= 0;..X |
|000051d0| 20 20 20 58 74 53 65 74 | 41 72 67 28 61 72 67 5b | XtSet|Arg(arg[|
|000051e0| 6e 5d 2c 20 58 74 4e 78 | 2c 20 31 30 29 3b 09 6e |n], XtNx|, 10);.n|
|000051f0| 2b 2b 3b 0a 09 58 20 20 | 20 20 58 74 53 65 74 41 |++;..X | XtSetA|
|00005200| 72 67 28 61 72 67 5b 6e | 5d 2c 20 58 74 4e 79 2c |rg(arg[n|], XtNy,|
|00005210| 20 31 30 29 3b 09 6e 2b | 2b 3b 0a 09 58 20 20 20 | 10);.n+|+;..X |
|00005220| 20 58 74 53 65 74 41 72 | 67 28 61 72 67 5b 6e 5d | XtSetAr|g(arg[n]|
|00005230| 2c 20 58 74 4e 6c 61 62 | 65 6c 2c 20 22 47 6f 6f |, XtNlab|el, "Goo|
|00005240| 64 62 79 65 2c 20 77 6f | 72 6c 64 22 29 3b 09 6e |dbye, wo|rld");.n|
|00005250| 2b 2b 3b 0a 09 58 0a 09 | 58 20 20 20 20 6c 61 62 |++;..X..|X lab|
|00005260| 65 6c 20 3d 20 58 74 43 | 72 65 61 74 65 4d 61 6e |el = XtC|reateMan|
|00005270| 61 67 65 64 57 69 64 67 | 65 74 28 22 6c 61 62 65 |agedWidg|et("labe|
|00005280| 6c 22 2c 20 6c 61 62 65 | 6c 57 69 64 67 65 74 43 |l", labe|lWidgetC|
|00005290| 6c 61 73 73 2c 20 62 6f | 78 2c 0a 09 58 09 61 72 |lass, bo|x,..X.ar|
|000052a0| 67 2c 20 6e 29 3b 0a 09 | 58 0a 09 58 20 20 20 20 |g, n);..|X..X |
|000052b0| 6e 20 3d 20 30 3b 0a 09 | 58 20 20 20 20 58 74 53 |n = 0;..|X XtS|
|000052c0| 65 74 41 72 67 28 61 72 | 67 5b 6e 5d 2c 20 58 74 |etArg(ar|g[n], Xt|
|000052d0| 4e 78 2c 20 31 30 29 3b | 20 6e 2b 2b 3b 0a 09 58 |Nx, 10);| n++;..X|
|000052e0| 20 20 20 20 58 74 53 65 | 74 41 72 67 28 61 72 67 | XtSe|tArg(arg|
|000052f0| 5b 6e 5d 2c 20 58 74 4e | 79 2c 20 34 30 29 3b 20 |[n], XtN|y, 40); |
|00005300| 6e 2b 2b 3b 0a 09 58 20 | 20 20 20 58 74 53 65 74 |n++;..X | XtSet|
|00005310| 41 72 67 28 61 72 67 5b | 6e 5d 2c 20 58 74 4e 6c |Arg(arg[|n], XtNl|
|00005320| 61 62 65 6c 2c 20 22 43 | 6c 69 63 6b 20 61 6e 64 |abel, "C|lick and|
|00005330| 20 64 69 65 22 29 3b 09 | 6e 2b 2b 3b 0a 09 58 0a | die");.|n++;..X.|
|00005340| 09 58 20 20 20 20 70 75 | 73 68 62 75 74 74 6f 6e |.X pu|shbutton|
|00005350| 20 3d 20 58 74 43 72 65 | 61 74 65 4d 61 6e 61 67 | = XtCre|ateManag|
|00005360| 65 64 57 69 64 67 65 74 | 28 22 70 75 73 68 62 75 |edWidget|("pushbu|
|00005370| 74 74 6f 6e 22 2c 20 70 | 75 73 68 62 75 74 74 6f |tton", p|ushbutto|
|00005380| 6e 57 69 64 67 65 74 43 | 6c 61 73 73 2c 0a 09 58 |nWidgetC|lass,..X|
|00005390| 09 62 6f 78 2c 20 61 72 | 67 2c 20 6e 29 3b 0a 09 |.box, ar|g, n);..|
|000053a0| 58 0a 09 58 20 20 20 20 | 63 6f 6e 66 69 72 6d 73 |X..X |confirms|
|000053b0| 68 65 6c 6c 20 3d 20 58 | 74 43 72 65 61 74 65 50 |hell = X|tCreateP|
|000053c0| 6f 70 75 70 53 68 65 6c | 6c 28 22 63 6f 6e 66 69 |opupShel|l("confi|
|000053d0| 72 6d 53 68 65 6c 6c 22 | 2c 0a 09 58 09 20 20 20 |rmShell"|,..X. |
|000053e0| 20 74 72 61 6e 73 69 65 | 6e 74 53 68 65 6c 6c 57 | transie|ntShellW|
|000053f0| 69 64 67 65 74 43 6c 61 | 73 73 2c 20 70 75 73 68 |idgetCla|ss, push|
|00005400| 62 75 74 74 6f 6e 2c 20 | 4e 55 4c 4c 2c 20 30 29 |button, |NULL, 0)|
|00005410| 3b 0a 09 58 0a 09 58 20 | 20 20 20 6e 20 3d 20 30 |;..X..X | n = 0|
|00005420| 3b 0a 09 58 20 20 20 20 | 58 74 53 65 74 41 72 67 |;..X |XtSetArg|
|00005430| 28 61 72 67 5b 6e 5d 2c | 20 58 74 4e 6c 61 62 65 |(arg[n],| XtNlabe|
|00005440| 6c 2c 20 22 45 78 69 74 | 69 6e 67 20 70 72 6f 67 |l, "Exit|ing prog|
|00005450| 72 61 6d 22 29 3b 09 6e | 2b 2b 3b 0a 09 58 20 20 |ram");.n|++;..X |
|00005460| 20 20 0a 09 58 20 20 20 | 20 63 6f 6e 66 69 72 6d | ..X | confirm|
|00005470| 20 3d 20 58 74 43 72 65 | 61 74 65 4d 61 6e 61 67 | = XtCre|ateManag|
|00005480| 65 64 57 69 64 67 65 74 | 28 22 63 6f 6e 66 69 72 |edWidget|("confir|
|00005490| 6d 22 2c 20 63 6f 6e 66 | 69 72 6d 57 69 64 67 65 |m", conf|irmWidge|
|000054a0| 74 43 6c 61 73 73 2c 0a | 09 58 09 20 20 20 20 63 |tClass,.|.X. c|
|000054b0| 6f 6e 66 69 72 6d 73 68 | 65 6c 6c 2c 20 61 72 67 |onfirmsh|ell, arg|
|000054c0| 2c 20 6e 29 3b 0a 09 58 | 0a 09 58 20 20 20 20 58 |, n);..X|..X X|
|000054d0| 74 41 64 64 43 61 6c 6c | 62 61 63 6b 28 70 75 73 |tAddCall|back(pus|
|000054e0| 68 62 75 74 74 6f 6e 2c | 20 58 74 4e 63 61 6c 6c |hbutton,| XtNcall|
|000054f0| 62 61 63 6b 2c 20 58 74 | 43 61 6c 6c 62 61 63 6b |back, Xt|Callback|
|00005500| 4e 6f 6e 65 2c 20 63 6f | 6e 66 69 72 6d 73 68 65 |None, co|nfirmshe|
|00005510| 6c 6c 29 3b 0a 09 58 20 | 20 20 20 58 74 41 64 64 |ll);..X | XtAdd|
|00005520| 43 61 6c 6c 62 61 63 6b | 28 63 6f 6e 66 69 72 6d |Callback|(confirm|
|00005530| 2c 20 58 74 4e 63 61 6c | 6c 62 61 63 6b 2c 20 47 |, XtNcal|lback, G|
|00005540| 6f 6f 64 62 79 65 2c 20 | 4e 55 4c 4c 29 3b 0a 09 |oodbye, |NULL);..|
|00005550| 58 0a 09 58 20 20 20 20 | 58 74 52 65 61 6c 69 7a |X..X |XtRealiz|
|00005560| 65 57 69 64 67 65 74 28 | 74 6f 70 6c 65 76 65 6c |eWidget(|toplevel|
|00005570| 29 3b 0a 09 58 20 20 20 | 20 58 74 41 70 70 4d 61 |);..X | XtAppMa|
|00005580| 69 6e 4c 6f 6f 70 28 61 | 70 70 29 3b 0a 09 58 7d |inLoop(a|pp);..X}|
|00005590| 0a 53 48 41 52 5f 45 4f | 46 0a 69 66 20 74 65 73 |.SHAR_EO|F.if tes|
|000055a0| 74 20 32 37 33 37 20 2d | 6e 65 20 22 60 77 63 20 |t 2737 -|ne "`wc |
|000055b0| 2d 63 20 3c 20 27 63 6f | 6e 66 69 72 6d 31 2e 63 |-c < 'co|nfirm1.c|
|000055c0| 27 60 22 0a 74 68 65 6e | 0a 09 65 63 68 6f 20 73 |'`".then|..echo s|
|000055d0| 68 61 72 3a 20 65 72 72 | 6f 72 20 74 72 61 6e 73 |har: err|or trans|
|000055e0| 6d 69 74 74 69 6e 67 20 | 22 27 63 6f 6e 66 69 72 |mitting |"'confir|
|000055f0| 6d 31 2e 63 27 22 20 27 | 28 73 68 6f 75 6c 64 20 |m1.c'" '|(should |
|00005600| 68 61 76 65 20 62 65 65 | 6e 20 32 37 33 37 20 63 |have bee|n 2737 c|
|00005610| 68 61 72 61 63 74 65 72 | 73 29 27 0a 66 69 0a 66 |haracter|s)'.fi.f|
|00005620| 69 20 23 20 65 6e 64 20 | 6f 66 20 6f 76 65 72 77 |i # end |of overw|
|00005630| 72 69 74 69 6e 67 20 63 | 68 65 63 6b 0a 65 63 68 |riting c|heck.ech|
|00005640| 6f 20 73 68 61 72 3a 20 | 65 78 74 72 61 63 74 69 |o shar: |extracti|
|00005650| 6e 67 20 22 27 67 61 64 | 67 65 74 2e 63 27 22 20 |ng "'gad|get.c'" |
|00005660| 27 28 32 34 39 38 20 63 | 68 61 72 61 63 74 65 72 |'(2498 c|haracter|
|00005670| 73 29 27 0a 69 66 20 74 | 65 73 74 20 2d 66 20 27 |s)'.if t|est -f '|
|00005680| 67 61 64 67 65 74 2e 63 | 27 0a 74 68 65 6e 0a 09 |gadget.c|'.then..|
|00005690| 65 63 68 6f 20 73 68 61 | 72 3a 20 77 69 6c 6c 20 |echo sha|r: will |
|000056a0| 6e 6f 74 20 6f 76 65 72 | 2d 77 72 69 74 65 20 65 |not over|-write e|
|000056b0| 78 69 73 74 69 6e 67 20 | 66 69 6c 65 20 22 27 67 |xisting |file "'g|
|000056c0| 61 64 67 65 74 2e 63 27 | 22 0a 65 6c 73 65 0a 73 |adget.c'|".else.s|
|000056d0| 65 64 20 27 73 2f 5e 09 | 58 2f 2f 27 20 3c 3c 20 |ed 's/^.|X//' << |
|000056e0| 5c 53 48 41 52 5f 45 4f | 46 20 3e 20 27 67 61 64 |\SHAR_EO|F > 'gad|
|000056f0| 67 65 74 2e 63 27 0a 09 | 58 2f 2a 2a 2a 2a 2a 2a |get.c'..|X/******|
|00005700| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00005710| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00005720| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00005730| 2a 2a 2a 2a 2a 0a 09 58 | 43 6f 70 79 72 69 67 68 |*****..X|Copyrigh|
|00005740| 74 20 31 39 39 30 20 62 | 79 20 44 69 67 69 74 61 |t 1990 b|y Digita|
|00005750| 6c 20 45 71 75 69 70 6d | 65 6e 74 20 43 6f 72 70 |l Equipm|ent Corp|
|00005760| 6f 72 61 74 69 6f 6e 2c | 20 4d 61 79 6e 61 72 64 |oration,| Maynard|
|00005770| 2c 20 4d 61 73 73 61 63 | 68 75 73 65 74 74 73 2e |, Massac|husetts.|
|00005780| 0a 09 58 0a 09 58 20 20 | 20 20 20 20 20 20 20 20 |..X..X | |
|00005790| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 41 6c | | Al|
|000057a0| 6c 20 52 69 67 68 74 73 | 20 52 65 73 65 72 76 65 |l Rights| Reserve|
|000057b0| 64 0a 09 58 0a 09 58 50 | 65 72 6d 69 73 73 69 6f |d..X..XP|ermissio|
|000057c0| 6e 20 74 6f 20 75 73 65 | 2c 20 63 6f 70 79 2c 20 |n to use|, copy, |
|000057d0| 6d 6f 64 69 66 79 2c 20 | 61 6e 64 20 64 69 73 74 |modify, |and dist|
|000057e0| 72 69 62 75 74 65 20 74 | 68 65 73 65 20 65 78 61 |ribute t|hese exa|
|000057f0| 6d 70 6c 65 73 20 66 6f | 72 20 61 6e 79 0a 09 58 |mples fo|r any..X|
|00005800| 70 75 72 70 6f 73 65 20 | 61 6e 64 20 77 69 74 68 |purpose |and with|
|00005810| 6f 75 74 20 66 65 65 20 | 69 73 20 68 65 72 65 62 |out fee |is hereb|
|00005820| 79 20 67 72 61 6e 74 65 | 64 2c 20 70 72 6f 76 69 |y grante|d, provi|
|00005830| 64 65 64 20 74 68 61 74 | 20 74 68 65 20 61 62 6f |ded that| the abo|
|00005840| 76 65 0a 09 58 63 6f 70 | 79 72 69 67 68 74 20 6e |ve..Xcop|yright n|
|00005850| 6f 74 69 63 65 20 61 70 | 70 65 61 72 20 69 6e 20 |otice ap|pear in |
|00005860| 61 6c 6c 20 63 6f 70 69 | 65 73 20 61 6e 64 20 74 |all copi|es and t|
|00005870| 68 61 74 20 62 6f 74 68 | 20 74 68 61 74 20 63 6f |hat both| that co|
|00005880| 70 79 72 69 67 68 74 0a | 09 58 6e 6f 74 69 63 65 |pyright.|.Xnotice|
|00005890| 20 61 6e 64 20 74 68 69 | 73 20 70 65 72 6d 69 73 | and thi|s permis|
|000058a0| 73 69 6f 6e 20 6e 6f 74 | 69 63 65 20 61 70 70 65 |sion not|ice appe|
|000058b0| 61 72 20 69 6e 20 73 75 | 70 70 6f 72 74 69 6e 67 |ar in su|pporting|
|000058c0| 20 64 6f 63 75 6d 65 6e | 74 61 74 69 6f 6e 2c 0a | documen|tation,.|
|000058d0| 09 58 61 6e 64 20 74 68 | 61 74 20 74 68 65 20 6e |.Xand th|at the n|
|000058e0| 61 6d 65 20 6f 66 20 44 | 69 67 69 74 61 6c 20 6e |ame of D|igital n|
|000058f0| 6f 74 20 62 65 20 75 73 | 65 64 20 69 6e 20 61 64 |ot be us|ed in ad|
|00005900| 76 65 72 74 69 73 69 6e | 67 20 6f 72 20 70 75 62 |vertisin|g or pub|
|00005910| 6c 69 63 69 74 79 0a 09 | 58 70 65 72 74 61 69 6e |licity..|Xpertain|
|00005920| 69 6e 67 20 74 6f 20 64 | 69 73 74 72 69 62 75 74 |ing to d|istribut|
|00005930| 69 6f 6e 20 6f 66 20 74 | 68 65 20 73 6f 66 74 77 |ion of t|he softw|
|00005940| 61 72 65 20 77 69 74 68 | 6f 75 74 20 73 70 65 63 |are with|out spec|
|00005950| 69 66 69 63 2c 20 77 72 | 69 74 74 65 6e 0a 09 58 |ific, wr|itten..X|
|00005960| 70 72 69 6f 72 20 70 65 | 72 6d 69 73 73 69 6f 6e |prior pe|rmission|
|00005970| 2e 0a 09 58 0a 09 58 44 | 49 47 49 54 41 4c 20 41 |...X..XD|IGITAL A|
|00005980| 4e 44 20 54 48 45 20 41 | 55 54 48 4f 52 53 20 44 |ND THE A|UTHORS D|
|00005990| 49 53 43 4c 41 49 4d 20 | 41 4c 4c 20 57 41 52 52 |ISCLAIM |ALL WARR|
|000059a0| 41 4e 54 49 45 53 20 57 | 49 54 48 20 52 45 47 41 |ANTIES W|ITH REGA|
|000059b0| 52 44 20 54 4f 20 54 48 | 49 53 0a 09 58 53 4f 46 |RD TO TH|IS..XSOF|
|000059c0| 54 57 41 52 45 2c 20 49 | 4e 43 4c 55 44 49 4e 47 |TWARE, I|NCLUDING|
|000059d0| 20 41 4c 4c 20 49 4d 50 | 4c 49 45 44 20 57 41 52 | ALL IMP|LIED WAR|
|000059e0| 52 41 4e 54 49 45 53 20 | 4f 46 20 4d 45 52 43 48 |RANTIES |OF MERCH|
|000059f0| 41 4e 54 41 42 49 4c 49 | 54 59 20 41 4e 44 0a 09 |ANTABILI|TY AND..|
|00005a00| 58 46 49 54 4e 45 53 53 | 2c 20 49 4e 20 4e 4f 20 |XFITNESS|, IN NO |
|00005a10| 45 56 45 4e 54 20 53 48 | 41 4c 4c 20 44 49 47 49 |EVENT SH|ALL DIGI|
|00005a20| 54 41 4c 20 42 45 20 4c | 49 41 42 4c 45 20 46 4f |TAL BE L|IABLE FO|
|00005a30| 52 20 41 4e 59 20 53 50 | 45 43 49 41 4c 2c 20 49 |R ANY SP|ECIAL, I|
|00005a40| 4e 44 49 52 45 43 54 0a | 09 58 4f 52 20 43 4f 4e |NDIRECT.|.XOR CON|
|00005a50| 53 45 51 55 45 4e 54 49 | 41 4c 20 44 41 4d 41 47 |SEQUENTI|AL DAMAG|
|00005a60| 45 53 20 4f 52 20 41 4e | 59 20 44 41 4d 41 47 45 |ES OR AN|Y DAMAGE|
|00005a70| 53 20 57 48 41 54 53 4f | 45 56 45 52 20 52 45 53 |S WHATSO|EVER RES|
|00005a80| 55 4c 54 49 4e 47 20 46 | 52 4f 4d 20 4c 4f 53 53 |ULTING F|ROM LOSS|
|00005a90| 0a 09 58 4f 46 20 55 53 | 45 2c 20 44 41 54 41 20 |..XOF US|E, DATA |
|00005aa0| 4f 52 20 50 52 4f 46 49 | 54 53 2c 20 57 48 45 54 |OR PROFI|TS, WHET|
|00005ab0| 48 45 52 20 49 4e 20 41 | 4e 20 41 43 54 49 4f 4e |HER IN A|N ACTION|
|00005ac0| 20 4f 46 20 43 4f 4e 54 | 52 41 43 54 2c 20 4e 45 | OF CONT|RACT, NE|
|00005ad0| 47 4c 49 47 45 4e 43 45 | 0a 09 58 4f 52 20 4f 54 |GLIGENCE|..XOR OT|
|00005ae0| 48 45 52 20 54 4f 52 54 | 49 4f 55 53 20 41 43 54 |HER TORT|IOUS ACT|
|00005af0| 49 4f 4e 2c 20 41 52 49 | 53 49 4e 47 20 4f 55 54 |ION, ARI|SING OUT|
|00005b00| 20 4f 46 20 4f 52 20 49 | 4e 20 43 4f 4e 4e 45 43 | OF OR I|N CONNEC|
|00005b10| 54 49 4f 4e 20 57 49 54 | 48 20 54 48 45 20 55 53 |TION WIT|H THE US|
|00005b20| 45 0a 09 58 4f 52 20 50 | 45 52 46 4f 52 4d 41 4e |E..XOR P|ERFORMAN|
|00005b30| 43 45 20 4f 46 20 54 48 | 49 53 20 53 4f 46 54 57 |CE OF TH|IS SOFTW|
|00005b40| 41 52 45 2e 0a 09 58 0a | 09 58 2a 2a 2a 2a 2a 2a |ARE...X.|.X******|
|00005b50| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00005b60| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00005b70| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00005b80| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2f 0a 09 58 |********|****/..X|
|00005b90| 0a 09 58 23 69 6e 63 6c | 75 64 65 20 3c 58 31 31 |..X#incl|ude <X11|
|00005ba0| 2f 49 6e 74 72 69 6e 73 | 69 63 2e 68 3e 0a 09 58 |/Intrins|ic.h>..X|
|00005bb0| 23 69 6e 63 6c 75 64 65 | 20 3c 58 31 31 2f 53 74 |#include| <X11/St|
|00005bc0| 72 69 6e 67 44 65 66 73 | 2e 68 3e 0a 09 58 0a 09 |ringDefs|.h>..X..|
|00005bd0| 58 23 69 6e 63 6c 75 64 | 65 20 22 42 6f 78 2e 68 |X#includ|e "Box.h|
|00005be0| 22 0a 09 58 23 69 6e 63 | 6c 75 64 65 20 22 4c 61 |"..X#inc|lude "La|
|00005bf0| 62 65 6c 47 61 64 67 65 | 2e 68 22 0a 09 58 23 69 |belGadge|.h"..X#i|
|00005c00| 6e 63 6c 75 64 65 20 22 | 50 75 73 68 62 75 74 74 |nclude "|Pushbutt|
|00005c10| 6f 6e 2e 68 22 0a 09 58 | 0a 09 58 76 6f 69 64 20 |on.h"..X|..Xvoid |
|00005c20| 47 6f 6f 64 62 79 65 28 | 77 69 64 67 65 74 2c 20 |Goodbye(|widget, |
|00005c30| 63 6c 69 65 6e 74 44 61 | 74 61 2c 20 63 61 6c 6c |clientDa|ta, call|
|00005c40| 44 61 74 61 29 0a 09 58 | 20 20 20 20 57 69 64 67 |Data)..X| Widg|
|00005c50| 65 74 20 77 69 64 67 65 | 74 3b 0a 09 58 20 20 20 |et widge|t;..X |
|00005c60| 20 63 61 64 64 72 5f 74 | 20 63 6c 69 65 6e 74 44 | caddr_t| clientD|
|00005c70| 61 74 61 2c 20 63 61 6c | 6c 44 61 74 61 3b 0a 09 |ata, cal|lData;..|
|00005c80| 58 7b 0a 09 58 20 20 20 | 20 65 78 69 74 28 30 29 |X{..X | exit(0)|
|00005c90| 3b 0a 09 58 7d 0a 09 58 | 0a 09 58 69 6e 74 20 6d |;..X}..X|..Xint m|
|00005ca0| 61 69 6e 28 61 72 67 63 | 2c 20 61 72 67 76 29 0a |ain(argc|, argv).|
|00005cb0| 09 58 20 20 20 20 75 6e | 73 69 67 6e 65 64 20 69 |.X un|signed i|
|00005cc0| 6e 74 20 61 72 67 63 3b | 0a 09 58 20 20 20 20 63 |nt argc;|..X c|
|00005cd0| 68 61 72 20 2a 2a 61 72 | 67 76 3b 0a 09 58 7b 0a |har **ar|gv;..X{.|
|00005ce0| 09 58 20 20 20 20 57 69 | 64 67 65 74 20 74 6f 70 |.X Wi|dget top|
|00005cf0| 6c 65 76 65 6c 2c 20 6c | 61 62 65 6c 2c 20 70 75 |level, l|abel, pu|
|00005d00| 73 68 62 75 74 74 6f 6e | 2c 20 62 6f 78 3b 0a 09 |shbutton|, box;..|
|00005d10| 58 20 20 20 20 41 72 67 | 20 61 72 67 5b 32 35 5d |X Arg| arg[25]|
|00005d20| 3b 0a 09 58 20 20 20 20 | 75 6e 73 69 67 6e 65 64 |;..X |unsigned|
|00005d30| 20 69 6e 74 20 6e 3b 0a | 09 58 20 20 20 20 58 74 | int n;.|.X Xt|
|00005d40| 41 70 70 43 6f 6e 74 65 | 78 74 20 61 70 70 3b 0a |AppConte|xt app;.|
|00005d50| 09 58 0a 09 58 20 20 20 | 20 74 6f 70 6c 65 76 65 |.X..X | topleve|
|00005d60| 6c 20 3d 20 58 74 41 70 | 70 49 6e 69 74 69 61 6c |l = XtAp|pInitial|
|00005d70| 69 7a 65 28 26 61 70 70 | 2c 20 22 47 61 64 67 65 |ize(&app|, "Gadge|
|00005d80| 74 22 2c 0a 09 58 09 20 | 20 20 20 28 58 72 6d 4f |t",..X. | (XrmO|
|00005d90| 70 74 69 6f 6e 44 65 73 | 63 4c 69 73 74 29 20 4e |ptionDes|cList) N|
|00005da0| 55 4c 4c 2c 20 30 2c 20 | 26 61 72 67 63 2c 20 61 |ULL, 0, |&argc, a|
|00005db0| 72 67 76 2c 0a 09 58 09 | 20 20 20 20 28 53 74 72 |rgv,..X.| (Str|
|00005dc0| 69 6e 67 20 2a 29 20 4e | 55 4c 4c 2c 20 28 41 72 |ing *) N|ULL, (Ar|
|00005dd0| 67 4c 69 73 74 29 20 4e | 55 4c 4c 2c 20 30 29 3b |gList) N|ULL, 0);|
|00005de0| 0a 09 58 0a 09 58 20 20 | 20 20 62 6f 78 20 3d 20 |..X..X | box = |
|00005df0| 58 74 43 72 65 61 74 65 | 4d 61 6e 61 67 65 64 57 |XtCreate|ManagedW|
|00005e00| 69 64 67 65 74 28 22 62 | 6f 78 22 2c 20 62 6f 78 |idget("b|ox", box|
|00005e10| 57 69 64 67 65 74 43 6c | 61 73 73 2c 20 74 6f 70 |WidgetCl|ass, top|
|00005e20| 6c 65 76 65 6c 2c 0a 09 | 58 09 28 41 72 67 20 2a |level,..|X.(Arg *|
|00005e30| 29 20 4e 55 4c 4c 2c 20 | 30 29 3b 0a 09 58 0a 09 |) NULL, |0);..X..|
|00005e40| 58 20 20 20 20 2f 2a 20 | 4d 61 6b 65 20 74 68 65 |X /* |Make the|
|00005e50| 20 67 61 64 67 65 74 20 | 73 6d 61 6c 6c 20 74 6f | gadget |small to|
|00005e60| 20 6d 61 6b 65 20 73 75 | 72 65 20 69 74 27 73 20 | make su|re it's |
|00005e70| 63 6c 69 70 70 69 6e 67 | 20 74 6f 20 69 74 73 20 |clipping| to its |
|00005e80| 73 69 7a 65 0a 09 58 20 | 20 20 20 20 20 20 63 6f |size..X | co|
|00005e90| 72 72 65 63 74 6c 79 2e | 20 2a 2f 0a 09 58 0a 09 |rrectly.| */..X..|
|00005ea0| 58 20 20 20 20 6e 20 3d | 20 30 3b 0a 09 58 20 20 |X n =| 0;..X |
|00005eb0| 20 20 58 74 53 65 74 41 | 72 67 28 61 72 67 5b 6e | XtSetA|rg(arg[n|
|00005ec0| 5d 2c 20 58 74 4e 78 2c | 20 31 30 29 3b 09 6e 2b |], XtNx,| 10);.n+|
|00005ed0| 2b 3b 0a 09 58 20 20 20 | 20 58 74 53 65 74 41 72 |+;..X | XtSetAr|
|00005ee0| 67 28 61 72 67 5b 6e 5d | 2c 20 58 74 4e 79 2c 20 |g(arg[n]|, XtNy, |
|00005ef0| 31 30 29 3b 09 6e 2b 2b | 3b 0a 09 58 20 20 20 20 |10);.n++|;..X |
|00005f00| 58 74 53 65 74 41 72 67 | 28 61 72 67 5b 6e 5d 2c |XtSetArg|(arg[n],|
|00005f10| 20 58 74 4e 77 69 64 74 | 68 2c 20 37 30 29 3b 09 | XtNwidt|h, 70);.|
|00005f20| 6e 2b 2b 3b 0a 09 58 20 | 20 20 20 58 74 53 65 74 |n++;..X | XtSet|
|00005f30| 41 72 67 28 61 72 67 5b | 6e 5d 2c 20 58 74 4e 68 |Arg(arg[|n], XtNh|
|00005f40| 65 69 67 68 74 2c 20 31 | 32 29 3b 09 6e 2b 2b 3b |eight, 1|2);.n++;|
|00005f50| 0a 09 58 20 20 20 20 58 | 74 53 65 74 41 72 67 28 |..X X|tSetArg(|
|00005f60| 61 72 67 5b 6e 5d 2c 20 | 58 74 4e 6c 61 62 65 6c |arg[n], |XtNlabel|
|00005f70| 2c 20 22 47 6f 6f 64 62 | 79 65 2c 20 77 6f 72 6c |, "Goodb|ye, worl|
|00005f80| 64 22 29 3b 09 6e 2b 2b | 3b 0a 09 58 0a 09 58 20 |d");.n++|;..X..X |
|00005f90| 20 20 20 6c 61 62 65 6c | 20 3d 20 58 74 43 72 65 | label| = XtCre|
|00005fa0| 61 74 65 4d 61 6e 61 67 | 65 64 57 69 64 67 65 74 |ateManag|edWidget|
|00005fb0| 28 22 6c 61 62 65 6c 22 | 2c 20 6c 61 62 65 6c 47 |("label"|, labelG|
|00005fc0| 61 64 67 65 74 43 6c 61 | 73 73 2c 20 62 6f 78 2c |adgetCla|ss, box,|
|00005fd0| 0a 09 58 09 61 72 67 2c | 20 6e 29 3b 0a 09 58 0a |..X.arg,| n);..X.|
|00005fe0| 09 58 20 20 20 20 6e 20 | 3d 20 30 3b 0a 09 58 20 |.X n |= 0;..X |
|00005ff0| 20 20 20 58 74 53 65 74 | 41 72 67 28 61 72 67 5b | XtSet|Arg(arg[|
|00006000| 6e 5d 2c 20 58 74 4e 78 | 2c 20 31 30 29 3b 20 6e |n], XtNx|, 10); n|
|00006010| 2b 2b 3b 0a 09 58 20 20 | 20 20 58 74 53 65 74 41 |++;..X | XtSetA|
|00006020| 72 67 28 61 72 67 5b 6e | 5d 2c 20 58 74 4e 79 2c |rg(arg[n|], XtNy,|
|00006030| 20 34 30 29 3b 20 6e 2b | 2b 3b 0a 09 58 20 20 20 | 40); n+|+;..X |
|00006040| 20 58 74 53 65 74 41 72 | 67 28 61 72 67 5b 6e 5d | XtSetAr|g(arg[n]|
|00006050| 2c 20 58 74 4e 6c 61 62 | 65 6c 2c 20 22 43 6c 69 |, XtNlab|el, "Cli|
|00006060| 63 6b 20 61 6e 64 20 64 | 69 65 22 29 3b 09 6e 2b |ck and d|ie");.n+|
|00006070| 2b 3b 0a 09 58 0a 09 58 | 20 20 20 20 70 75 73 68 |+;..X..X| push|
|00006080| 62 75 74 74 6f 6e 20 3d | 20 58 74 43 72 65 61 74 |button =| XtCreat|
|00006090| 65 4d 61 6e 61 67 65 64 | 57 69 64 67 65 74 28 22 |eManaged|Widget("|
|000060a0| 70 75 73 68 62 75 74 74 | 6f 6e 22 2c 20 70 75 73 |pushbutt|on", pus|
|000060b0| 68 62 75 74 74 6f 6e 57 | 69 64 67 65 74 43 6c 61 |hbuttonW|idgetCla|
|000060c0| 73 73 2c 0a 09 58 09 62 | 6f 78 2c 20 61 72 67 2c |ss,..X.b|ox, arg,|
|000060d0| 20 6e 29 3b 0a 09 58 0a | 09 58 20 20 20 20 58 74 | n);..X.|.X Xt|
|000060e0| 41 64 64 43 61 6c 6c 62 | 61 63 6b 28 70 75 73 68 |AddCallb|ack(push|
|000060f0| 62 75 74 74 6f 6e 2c 20 | 58 74 4e 63 61 6c 6c 62 |button, |XtNcallb|
|00006100| 61 63 6b 2c 20 47 6f 6f | 64 62 79 65 2c 20 4e 55 |ack, Goo|dbye, NU|
|00006110| 4c 4c 29 3b 0a 09 58 0a | 09 58 20 20 20 20 58 74 |LL);..X.|.X Xt|
|00006120| 52 65 61 6c 69 7a 65 57 | 69 64 67 65 74 28 74 6f |RealizeW|idget(to|
|00006130| 70 6c 65 76 65 6c 29 3b | 0a 09 58 20 20 20 20 58 |plevel);|..X X|
|00006140| 74 41 70 70 4d 61 69 6e | 4c 6f 6f 70 28 61 70 70 |tAppMain|Loop(app|
|00006150| 29 3b 0a 09 58 7d 0a 53 | 48 41 52 5f 45 4f 46 0a |);..X}.S|HAR_EOF.|
|00006160| 69 66 20 74 65 73 74 20 | 32 34 39 38 20 2d 6e 65 |if test |2498 -ne|
|00006170| 20 22 60 77 63 20 2d 63 | 20 3c 20 27 67 61 64 67 | "`wc -c| < 'gadg|
|00006180| 65 74 2e 63 27 60 22 0a | 74 68 65 6e 0a 09 65 63 |et.c'`".|then..ec|
|00006190| 68 6f 20 73 68 61 72 3a | 20 65 72 72 6f 72 20 74 |ho shar:| error t|
|000061a0| 72 61 6e 73 6d 69 74 74 | 69 6e 67 20 22 27 67 61 |ransmitt|ing "'ga|
|000061b0| 64 67 65 74 2e 63 27 22 | 20 27 28 73 68 6f 75 6c |dget.c'"| '(shoul|
|000061c0| 64 20 68 61 76 65 20 62 | 65 65 6e 20 32 34 39 38 |d have b|een 2498|
|000061d0| 20 63 68 61 72 61 63 74 | 65 72 73 29 27 0a 66 69 | charact|ers)'.fi|
|000061e0| 0a 66 69 20 23 20 65 6e | 64 20 6f 66 20 6f 76 65 |.fi # en|d of ove|
|000061f0| 72 77 72 69 74 69 6e 67 | 20 63 68 65 63 6b 0a 65 |rwriting| check.e|
|00006200| 63 68 6f 20 73 68 61 72 | 3a 20 65 78 74 72 61 63 |cho shar|: extrac|
|00006210| 74 69 6e 67 20 22 27 67 | 6f 6f 64 62 79 65 2e 63 |ting "'g|oodbye.c|
|00006220| 27 22 20 27 28 32 33 39 | 30 20 63 68 61 72 61 63 |'" '(239|0 charac|
|00006230| 74 65 72 73 29 27 0a 69 | 66 20 74 65 73 74 20 2d |ters)'.i|f test -|
|00006240| 66 20 27 67 6f 6f 64 62 | 79 65 2e 63 27 0a 74 68 |f 'goodb|ye.c'.th|
|00006250| 65 6e 0a 09 65 63 68 6f | 20 73 68 61 72 3a 20 77 |en..echo| shar: w|
|00006260| 69 6c 6c 20 6e 6f 74 20 | 6f 76 65 72 2d 77 72 69 |ill not |over-wri|
|00006270| 74 65 20 65 78 69 73 74 | 69 6e 67 20 66 69 6c 65 |te exist|ing file|
|00006280| 20 22 27 67 6f 6f 64 62 | 79 65 2e 63 27 22 0a 65 | "'goodb|ye.c'".e|
|00006290| 6c 73 65 0a 73 65 64 20 | 27 73 2f 5e 09 58 2f 2f |lse.sed |'s/^.X//|
|000062a0| 27 20 3c 3c 20 5c 53 48 | 41 52 5f 45 4f 46 20 3e |' << \SH|AR_EOF >|
|000062b0| 20 27 67 6f 6f 64 62 79 | 65 2e 63 27 0a 09 58 2f | 'goodby|e.c'..X/|
|000062c0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|000062d0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|000062e0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|000062f0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 0a 09 58 43 6f |********|***..XCo|
|00006300| 70 79 72 69 67 68 74 20 | 31 39 39 30 20 62 79 20 |pyright |1990 by |
|00006310| 44 69 67 69 74 61 6c 20 | 45 71 75 69 70 6d 65 6e |Digital |Equipmen|
|00006320| 74 20 43 6f 72 70 6f 72 | 61 74 69 6f 6e 2c 20 4d |t Corpor|ation, M|
|00006330| 61 79 6e 61 72 64 2c 20 | 4d 61 73 73 61 63 68 75 |aynard, |Massachu|
|00006340| 73 65 74 74 73 2e 0a 09 | 58 0a 09 58 20 20 20 20 |setts...|X..X |
|00006350| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00006360| 20 20 20 20 41 6c 6c 20 | 52 69 67 68 74 73 20 52 | All |Rights R|
|00006370| 65 73 65 72 76 65 64 0a | 09 58 0a 09 58 50 65 72 |eserved.|.X..XPer|
|00006380| 6d 69 73 73 69 6f 6e 20 | 74 6f 20 75 73 65 2c 20 |mission |to use, |
|00006390| 63 6f 70 79 2c 20 6d 6f | 64 69 66 79 2c 20 61 6e |copy, mo|dify, an|
|000063a0| 64 20 64 69 73 74 72 69 | 62 75 74 65 20 74 68 65 |d distri|bute the|
|000063b0| 73 65 20 65 78 61 6d 70 | 6c 65 73 20 66 6f 72 20 |se examp|les for |
|000063c0| 61 6e 79 0a 09 58 70 75 | 72 70 6f 73 65 20 61 6e |any..Xpu|rpose an|
|000063d0| 64 20 77 69 74 68 6f 75 | 74 20 66 65 65 20 69 73 |d withou|t fee is|
|000063e0| 20 68 65 72 65 62 79 20 | 67 72 61 6e 74 65 64 2c | hereby |granted,|
|000063f0| 20 70 72 6f 76 69 64 65 | 64 20 74 68 61 74 20 74 | provide|d that t|
+--------+-------------------------+-------------------------+--------+--------+
Only 25.0 KB of data is shown above.