home *** CD-ROM | disk | FTP | other *** search
open in:
MacOS 8.1
|
Win98
|
DOS
browse contents |
view JSON data
|
view as text
This file was processed as: SHell self-extracting ARchive
(archive/shar).
Confidence | Program | Detection | Match Type | Support
|
---|
100%
| dexvert
| Newsgroup Content (archive/news)
| magic
| Supported |
100%
| dexvert
| SHell self-extracting ARchive (archive/shar)
| magic
| Supported |
100%
| dexvert
| Internet Message Format (text/imf)
| magic
| Supported |
1%
| dexvert
| Text File (text/txt)
| fallback
| Supported |
100%
| file
| news, 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 78 61 | 6e 74 68 21 6e 69 63 2e |Path: xa|nth!nic.|
|00000010| 4d 52 2e 4e 45 54 21 68 | 61 6c 21 6e 63 6f 61 73 |MR.NET!h|al!ncoas|
|00000020| 74 21 61 6c 6c 62 65 72 | 79 0a 46 72 6f 6d 3a 20 |t!allber|y.From: |
|00000030| 6a 65 66 40 68 65 6c 69 | 6f 73 2e 65 65 2e 6c 62 |jef@heli|os.ee.lb|
|00000040| 6c 2e 67 6f 76 20 28 4a | 65 66 20 50 6f 73 6b 61 |l.gov (J|ef Poska|
|00000050| 6e 7a 65 72 29 0a 4e 65 | 77 73 67 72 6f 75 70 73 |nzer).Ne|wsgroups|
|00000060| 3a 20 63 6f 6d 70 2e 73 | 6f 75 72 63 65 73 2e 6d |: comp.s|ources.m|
|00000070| 69 73 63 0a 53 75 62 6a | 65 63 74 3a 20 76 30 35 |isc.Subj|ect: v05|
|00000080| 69 30 34 35 3a 20 70 6f | 72 74 61 62 6c 65 20 62 |i045: po|rtable b|
|00000090| 69 74 6d 61 70 20 72 6f | 75 74 69 6e 65 73 20 28 |itmap ro|utines (|
|000000a0| 35 20 6f 66 20 35 29 0a | 4d 65 73 73 61 67 65 2d |5 of 5).|Message-|
|000000b0| 49 44 3a 20 3c 38 38 31 | 31 30 31 30 32 33 37 2e |ID: <881|1010237.|
|000000c0| 41 41 30 32 37 30 32 40 | 68 65 6c 69 6f 73 2e 65 |AA02702@|helios.e|
|000000d0| 65 2e 6c 62 6c 2e 67 6f | 76 3e 0a 44 61 74 65 3a |e.lbl.go|v>.Date:|
|000000e0| 20 39 20 4e 6f 76 20 38 | 38 20 30 32 3a 34 31 3a | 9 Nov 8|8 02:41:|
|000000f0| 32 34 20 47 4d 54 0a 53 | 65 6e 64 65 72 3a 20 61 |24 GMT.S|ender: a|
|00000100| 6c 6c 62 65 72 79 40 6e | 63 6f 61 73 74 2e 55 55 |llbery@n|coast.UU|
|00000110| 43 50 0a 52 65 70 6c 79 | 2d 54 6f 3a 20 6a 65 66 |CP.Reply|-To: jef|
|00000120| 40 68 65 6c 69 6f 73 2e | 65 65 2e 6c 62 6c 2e 67 |@helios.|ee.lbl.g|
|00000130| 6f 76 20 28 4a 65 66 20 | 50 6f 73 6b 61 6e 7a 65 |ov (Jef |Poskanze|
|00000140| 72 29 0a 4c 69 6e 65 73 | 3a 20 33 35 34 0a 41 70 |r).Lines|: 354.Ap|
|00000150| 70 72 6f 76 65 64 3a 20 | 61 6c 6c 62 65 72 79 40 |proved: |allbery@|
|00000160| 6e 63 6f 61 73 74 2e 55 | 55 43 50 0a 0a 50 6f 73 |ncoast.U|UCP..Pos|
|00000170| 74 69 6e 67 2d 6e 75 6d | 62 65 72 3a 20 56 6f 6c |ting-num|ber: Vol|
|00000180| 75 6d 65 20 35 2c 20 49 | 73 73 75 65 20 34 35 0a |ume 5, I|ssue 45.|
|00000190| 53 75 62 6d 69 74 74 65 | 64 2d 62 79 3a 20 22 4a |Submitte|d-by: "J|
|000001a0| 65 66 20 50 6f 73 6b 61 | 6e 7a 65 72 22 20 3c 6a |ef Poska|nzer" <j|
|000001b0| 65 66 40 68 65 6c 69 6f | 73 2e 65 65 2e 6c 62 6c |ef@helio|s.ee.lbl|
|000001c0| 2e 67 6f 76 3e 0a 41 72 | 63 68 69 76 65 2d 6e 61 |.gov>.Ar|chive-na|
|000001d0| 6d 65 3a 20 70 62 6d 33 | 2f 50 61 72 74 35 0a 0a |me: pbm3|/Part5..|
|000001e0| 23 21 20 2f 62 69 6e 2f | 73 68 0a 23 20 54 68 69 |#! /bin/|sh.# Thi|
|000001f0| 73 20 69 73 20 61 20 73 | 68 65 6c 6c 20 61 72 63 |s is a s|hell arc|
|00000200| 68 69 76 65 2c 20 6d 65 | 61 6e 69 6e 67 3a 0a 23 |hive, me|aning:.#|
|00000210| 20 31 2e 20 52 65 6d 6f | 76 65 20 65 76 65 72 79 | 1. Remo|ve every|
|00000220| 74 68 69 6e 67 20 61 62 | 6f 76 65 20 74 68 65 20 |thing ab|ove the |
|00000230| 23 21 20 2f 62 69 6e 2f | 73 68 20 6c 69 6e 65 2e |#! /bin/|sh line.|
|00000240| 0a 23 20 32 2e 20 53 61 | 76 65 20 74 68 65 20 72 |.# 2. Sa|ve the r|
|00000250| 65 73 75 6c 74 69 6e 67 | 20 74 65 78 74 20 69 6e |esulting| text in|
|00000260| 20 61 20 66 69 6c 65 2e | 0a 23 20 33 2e 20 45 78 | a file.|.# 3. Ex|
|00000270| 65 63 75 74 65 20 74 68 | 65 20 66 69 6c 65 20 77 |ecute th|e file w|
|00000280| 69 74 68 20 2f 62 69 6e | 2f 73 68 20 28 6e 6f 74 |ith /bin|/sh (not|
|00000290| 20 63 73 68 29 20 74 6f | 20 63 72 65 61 74 65 20 | csh) to| create |
|000002a0| 74 68 65 20 66 69 6c 65 | 73 3a 0a 23 09 70 62 6d |the file|s:.#.pbm|
|000002b0| 2e 68 0a 23 09 6c 69 62 | 70 62 6d 2e 68 0a 23 09 |.h.#.lib|pbm.h.#.|
|000002c0| 6d 61 63 70 2e 68 0a 23 | 09 78 31 30 77 64 2e 68 |macp.h.#|.x10wd.h|
|000002d0| 0a 23 09 78 31 31 77 64 | 2e 68 0a 23 09 70 62 6d |.#.x11wd|.h.#.pbm|
|000002e0| 2e 35 0a 23 09 62 6d 61 | 6c 69 61 73 65 73 0a 23 |.5.#.bma|liases.#|
|000002f0| 09 62 69 74 72 65 76 65 | 72 73 65 2e 68 0a 23 20 |.bitreve|rse.h.# |
|00000300| 54 68 69 73 20 61 72 63 | 68 69 76 65 20 63 72 65 |This arc|hive cre|
|00000310| 61 74 65 64 3a 20 4d 6f | 6e 20 4f 63 74 20 33 31 |ated: Mo|n Oct 31|
|00000320| 20 31 38 3a 33 33 3a 34 | 31 20 31 39 38 38 0a 23 | 18:33:4|1 1988.#|
|00000330| 20 42 79 3a 09 4a 65 66 | 20 50 6f 73 6b 61 6e 7a | By:.Jef| Poskanz|
|00000340| 65 72 20 28 50 61 72 61 | 74 68 65 6f 2d 41 6e 61 |er (Para|theo-Ana|
|00000350| 6d 65 74 61 6d 79 73 74 | 69 6b 68 6f 6f 64 20 4f |metamyst|ikhood O|
|00000360| 66 20 45 72 69 73 20 45 | 73 6f 74 65 72 69 63 2c |f Eris E|soteric,|
|00000370| 20 41 64 61 20 4c 6f 76 | 65 6c 61 63 65 20 43 61 | Ada Lov|elace Ca|
|00000380| 62 61 6c 29 0a 65 78 70 | 6f 72 74 20 50 41 54 48 |bal).exp|ort PATH|
|00000390| 3b 20 50 41 54 48 3d 2f | 62 69 6e 3a 24 50 41 54 |; PATH=/|bin:$PAT|
|000003a0| 48 0a 65 63 68 6f 20 73 | 68 61 72 3a 20 65 78 74 |H.echo s|har: ext|
|000003b0| 72 61 63 74 69 6e 67 20 | 22 27 70 62 6d 2e 68 27 |racting |"'pbm.h'|
|000003c0| 22 20 27 28 34 38 30 20 | 63 68 61 72 61 63 74 65 |" '(480 |characte|
|000003d0| 72 73 29 27 0a 69 66 20 | 74 65 73 74 20 2d 66 20 |rs)'.if |test -f |
|000003e0| 27 70 62 6d 2e 68 27 0a | 74 68 65 6e 0a 09 65 63 |'pbm.h'.|then..ec|
|000003f0| 68 6f 20 73 68 61 72 3a | 20 77 69 6c 6c 20 6e 6f |ho shar:| will no|
|00000400| 74 20 6f 76 65 72 2d 77 | 72 69 74 65 20 65 78 69 |t over-w|rite exi|
|00000410| 73 74 69 6e 67 20 66 69 | 6c 65 20 22 27 70 62 6d |sting fi|le "'pbm|
|00000420| 2e 68 27 22 0a 65 6c 73 | 65 0a 73 65 64 20 27 73 |.h'".els|e.sed 's|
|00000430| 2f 5e 58 2f 2f 27 20 3c | 3c 20 5c 53 48 41 52 5f |/^X//' <|< \SHAR_|
|00000440| 45 4f 46 20 3e 20 27 70 | 62 6d 2e 68 27 0a 58 2f |EOF > 'p|bm.h'.X/|
|00000450| 2a 20 70 62 6d 2e 68 20 | 2d 20 68 65 61 64 65 72 |* pbm.h |- header|
|00000460| 20 66 69 6c 65 20 66 6f | 72 20 6c 69 62 70 62 6d | file fo|r libpbm|
|00000470| 20 70 6f 72 74 61 62 6c | 65 20 62 69 74 6d 61 70 | portabl|e bitmap|
|00000480| 20 6c 69 62 72 61 72 79 | 0a 58 2a 2f 0a 58 0a 58 | library|.X*/.X.X|
|00000490| 74 79 70 65 64 65 66 20 | 75 6e 73 69 67 6e 65 64 |typedef |unsigned|
|000004a0| 20 63 68 61 72 20 62 69 | 74 3b 0a 58 0a 58 2f 2a | char bi|t;.X.X/*|
|000004b0| 20 44 65 63 6c 61 72 61 | 74 69 6f 6e 73 20 6f 66 | Declara|tions of|
|000004c0| 20 72 6f 75 74 69 6e 65 | 73 2e 20 2a 2f 0a 58 0a | routine|s. */.X.|
|000004d0| 58 62 69 74 20 2a 2a 70 | 62 6d 5f 61 6c 6c 6f 63 |Xbit **p|bm_alloc|
|000004e0| 61 72 72 61 79 28 20 29 | 3b 0a 58 09 2f 2a 20 62 |array( )|;.X./* b|
|000004f0| 69 74 73 20 3d 20 70 62 | 6d 5f 61 6c 6c 6f 63 61 |its = pb|m_alloca|
|00000500| 72 72 61 79 28 20 63 6f | 6c 73 2c 20 72 6f 77 73 |rray( co|ls, rows|
|00000510| 20 29 3b 20 62 69 74 73 | 5b 72 6f 77 5d 5b 63 6f | ); bits|[row][co|
|00000520| 6c 5d 3b 20 2a 2f 0a 58 | 0a 58 62 69 74 20 2a 2a |l]; */.X|.Xbit **|
|00000530| 70 62 6d 5f 72 65 61 64 | 70 62 6d 28 20 29 3b 0a |pbm_read|pbm( );.|
|00000540| 58 09 2f 2a 20 62 69 74 | 73 20 3d 20 70 62 6d 5f |X./* bit|s = pbm_|
|00000550| 72 65 61 64 70 62 6d 28 | 20 66 69 6c 65 2c 20 26 |readpbm(| file, &|
|00000560| 63 6f 6c 73 2c 20 26 72 | 6f 77 73 20 29 3b 20 2a |cols, &r|ows ); *|
|00000570| 2f 0a 58 70 62 6d 5f 77 | 72 69 74 65 70 62 6d 28 |/.Xpbm_w|ritepbm(|
|00000580| 20 29 3b 0a 58 09 2f 2a | 20 70 62 6d 5f 77 72 69 | );.X./*| pbm_wri|
|00000590| 74 65 70 62 6d 28 20 66 | 69 6c 65 2c 20 62 69 74 |tepbm( f|ile, bit|
|000005a0| 73 2c 20 63 6f 6c 73 2c | 20 72 6f 77 73 20 29 3b |s, cols,| rows );|
|000005b0| 20 2a 2f 0a 58 0a 58 62 | 69 74 20 2a 2a 70 62 6d | */.X.Xb|it **pbm|
|000005c0| 5f 72 65 61 64 63 62 6d | 28 20 29 3b 0a 58 09 2f |_readcbm|( );.X./|
|000005d0| 2a 20 62 69 74 73 20 3d | 20 70 62 6d 5f 72 65 61 |* bits =| pbm_rea|
|000005e0| 64 63 62 6d 28 20 66 69 | 6c 65 2c 20 26 63 6f 6c |dcbm( fi|le, &col|
|000005f0| 73 2c 20 26 72 6f 77 73 | 20 29 3b 20 2a 2f 0a 58 |s, &rows| ); */.X|
|00000600| 70 62 6d 5f 77 72 69 74 | 65 63 62 6d 28 20 29 3b |pbm_writ|ecbm( );|
|00000610| 0a 58 09 2f 2a 20 70 62 | 6d 5f 77 72 69 74 65 63 |.X./* pb|m_writec|
|00000620| 62 6d 28 20 66 69 6c 65 | 2c 20 62 69 74 73 2c 20 |bm( file|, bits, |
|00000630| 63 6f 6c 73 2c 20 72 6f | 77 73 20 29 3b 20 2a 2f |cols, ro|ws ); */|
|00000640| 0a 53 48 41 52 5f 45 4f | 46 0a 69 66 20 74 65 73 |.SHAR_EO|F.if tes|
|00000650| 74 20 34 38 30 20 2d 6e | 65 20 22 60 77 63 20 2d |t 480 -n|e "`wc -|
|00000660| 63 20 3c 20 27 70 62 6d | 2e 68 27 60 22 0a 74 68 |c < 'pbm|.h'`".th|
|00000670| 65 6e 0a 09 65 63 68 6f | 20 73 68 61 72 3a 20 65 |en..echo| shar: e|
|00000680| 72 72 6f 72 20 74 72 61 | 6e 73 6d 69 74 74 69 6e |rror tra|nsmittin|
|00000690| 67 20 22 27 70 62 6d 2e | 68 27 22 20 27 28 73 68 |g "'pbm.|h'" '(sh|
|000006a0| 6f 75 6c 64 20 68 61 76 | 65 20 62 65 65 6e 20 34 |ould hav|e been 4|
|000006b0| 38 30 20 63 68 61 72 61 | 63 74 65 72 73 29 27 0a |80 chara|cters)'.|
|000006c0| 66 69 0a 66 69 20 23 20 | 65 6e 64 20 6f 66 20 6f |fi.fi # |end of o|
|000006d0| 76 65 72 77 72 69 74 69 | 6e 67 20 63 68 65 63 6b |verwriti|ng check|
|000006e0| 0a 65 63 68 6f 20 73 68 | 61 72 3a 20 65 78 74 72 |.echo sh|ar: extr|
|000006f0| 61 63 74 69 6e 67 20 22 | 27 6c 69 62 70 62 6d 2e |acting "|'libpbm.|
|00000700| 68 27 22 20 27 28 33 38 | 32 20 63 68 61 72 61 63 |h'" '(38|2 charac|
|00000710| 74 65 72 73 29 27 0a 69 | 66 20 74 65 73 74 20 2d |ters)'.i|f test -|
|00000720| 66 20 27 6c 69 62 70 62 | 6d 2e 68 27 0a 74 68 65 |f 'libpb|m.h'.the|
|00000730| 6e 0a 09 65 63 68 6f 20 | 73 68 61 72 3a 20 77 69 |n..echo |shar: wi|
|00000740| 6c 6c 20 6e 6f 74 20 6f | 76 65 72 2d 77 72 69 74 |ll not o|ver-writ|
|00000750| 65 20 65 78 69 73 74 69 | 6e 67 20 66 69 6c 65 20 |e existi|ng file |
|00000760| 22 27 6c 69 62 70 62 6d | 2e 68 27 22 0a 65 6c 73 |"'libpbm|.h'".els|
|00000770| 65 0a 73 65 64 20 27 73 | 2f 5e 58 2f 2f 27 20 3c |e.sed 's|/^X//' <|
|00000780| 3c 20 5c 53 48 41 52 5f | 45 4f 46 20 3e 20 27 6c |< \SHAR_|EOF > 'l|
|00000790| 69 62 70 62 6d 2e 68 27 | 0a 58 2f 2a 20 6c 69 62 |ibpbm.h'|.X/* lib|
|000007a0| 70 62 6d 2e 68 20 2d 20 | 69 6e 74 65 72 6e 61 6c |pbm.h - |internal|
|000007b0| 20 68 65 61 64 65 72 20 | 66 69 6c 65 20 66 6f 72 | header |file for|
|000007c0| 20 6c 69 62 70 62 6d 20 | 70 6f 72 74 61 62 6c 65 | libpbm |portable|
|000007d0| 20 62 69 74 6d 61 70 20 | 6c 69 62 72 61 72 79 0a | bitmap |library.|
|000007e0| 58 2a 2f 0a 58 0a 58 23 | 64 65 66 69 6e 65 20 50 |X*/.X.X#|define P|
|000007f0| 42 4d 5f 4d 41 47 49 43 | 31 20 27 50 27 0a 58 23 |BM_MAGIC|1 'P'.X#|
|00000800| 64 65 66 69 6e 65 20 50 | 42 4d 5f 4d 41 47 49 43 |define P|BM_MAGIC|
|00000810| 32 20 27 31 27 0a 58 0a | 58 23 64 65 66 69 6e 65 |2 '1'.X.|X#define|
|00000820| 20 43 42 4d 5f 4d 41 47 | 49 43 31 20 34 32 0a 58 | CBM_MAG|IC1 42.X|
|00000830| 23 64 65 66 69 6e 65 20 | 4f 43 42 4d 5f 4d 41 47 |#define |OCBM_MAG|
|00000840| 49 43 32 20 32 33 0a 58 | 23 64 65 66 69 6e 65 20 |IC2 23.X|#define |
|00000850| 4e 43 42 4d 5f 4d 41 47 | 49 43 32 20 32 34 0a 58 |NCBM_MAG|IC2 24.X|
|00000860| 0a 58 23 64 65 66 69 6e | 65 20 56 45 52 53 49 4f |.X#defin|e VERSIO|
|00000870| 4e 5f 4f 4c 44 43 42 4d | 20 31 0a 58 23 64 65 66 |N_OLDCBM| 1.X#def|
|00000880| 69 6e 65 20 56 45 52 53 | 49 4f 4e 5f 52 55 4e 4c |ine VERS|ION_RUNL|
|00000890| 45 4e 20 32 0a 58 0a 58 | 23 64 65 66 69 6e 65 20 |EN 2.X.X|#define |
|000008a0| 44 45 46 41 55 4c 54 5f | 42 49 54 53 50 45 52 43 |DEFAULT_|BITSPERC|
|000008b0| 4f 55 4e 54 20 38 0a 58 | 23 64 65 66 69 6e 65 20 |OUNT 8.X|#define |
|000008c0| 4d 41 58 5f 42 49 54 53 | 50 45 52 43 4f 55 4e 54 |MAX_BITS|PERCOUNT|
|000008d0| 20 31 32 0a 58 23 64 65 | 66 69 6e 65 20 4d 41 58 | 12.X#de|fine MAX|
|000008e0| 5f 4d 41 58 43 4f 55 4e | 54 20 38 31 39 31 0a 58 |_MAXCOUN|T 8191.X|
|000008f0| 0a 58 23 64 65 66 69 6e | 65 20 44 45 46 41 55 4c |.X#defin|e DEFAUL|
|00000900| 54 5f 52 45 50 45 41 54 | 42 49 54 53 20 32 0a 58 |T_REPEAT|BITS 2.X|
|00000910| 23 64 65 66 69 6e 65 20 | 4d 41 58 5f 52 45 50 45 |#define |MAX_REPE|
|00000920| 41 54 42 49 54 53 20 33 | 32 0a 53 48 41 52 5f 45 |ATBITS 3|2.SHAR_E|
|00000930| 4f 46 0a 69 66 20 74 65 | 73 74 20 33 38 32 20 2d |OF.if te|st 382 -|
|00000940| 6e 65 20 22 60 77 63 20 | 2d 63 20 3c 20 27 6c 69 |ne "`wc |-c < 'li|
|00000950| 62 70 62 6d 2e 68 27 60 | 22 0a 74 68 65 6e 0a 09 |bpbm.h'`|".then..|
|00000960| 65 63 68 6f 20 73 68 61 | 72 3a 20 65 72 72 6f 72 |echo sha|r: error|
|00000970| 20 74 72 61 6e 73 6d 69 | 74 74 69 6e 67 20 22 27 | transmi|tting "'|
|00000980| 6c 69 62 70 62 6d 2e 68 | 27 22 20 27 28 73 68 6f |libpbm.h|'" '(sho|
|00000990| 75 6c 64 20 68 61 76 65 | 20 62 65 65 6e 20 33 38 |uld have| been 38|
|000009a0| 32 20 63 68 61 72 61 63 | 74 65 72 73 29 27 0a 66 |2 charac|ters)'.f|
|000009b0| 69 0a 66 69 20 23 20 65 | 6e 64 20 6f 66 20 6f 76 |i.fi # e|nd of ov|
|000009c0| 65 72 77 72 69 74 69 6e | 67 20 63 68 65 63 6b 0a |erwritin|g check.|
|000009d0| 65 63 68 6f 20 73 68 61 | 72 3a 20 65 78 74 72 61 |echo sha|r: extra|
|000009e0| 63 74 69 6e 67 20 22 27 | 6d 61 63 70 2e 68 27 22 |cting "'|macp.h'"|
|000009f0| 20 27 28 31 36 31 20 63 | 68 61 72 61 63 74 65 72 | '(161 c|haracter|
|00000a00| 73 29 27 0a 69 66 20 74 | 65 73 74 20 2d 66 20 27 |s)'.if t|est -f '|
|00000a10| 6d 61 63 70 2e 68 27 0a | 74 68 65 6e 0a 09 65 63 |macp.h'.|then..ec|
|00000a20| 68 6f 20 73 68 61 72 3a | 20 77 69 6c 6c 20 6e 6f |ho shar:| will no|
|00000a30| 74 20 6f 76 65 72 2d 77 | 72 69 74 65 20 65 78 69 |t over-w|rite exi|
|00000a40| 73 74 69 6e 67 20 66 69 | 6c 65 20 22 27 6d 61 63 |sting fi|le "'mac|
|00000a50| 70 2e 68 27 22 0a 65 6c | 73 65 0a 73 65 64 20 27 |p.h'".el|se.sed '|
|00000a60| 73 2f 5e 58 2f 2f 27 20 | 3c 3c 20 5c 53 48 41 52 |s/^X//' |<< \SHAR|
|00000a70| 5f 45 4f 46 20 3e 20 27 | 6d 61 63 70 2e 68 27 0a |_EOF > '|macp.h'.|
|00000a80| 58 2f 2a 20 6d 61 63 70 | 2e 68 20 2d 20 68 65 61 |X/* macp|.h - hea|
|00000a90| 64 65 72 20 66 69 6c 65 | 20 66 6f 72 20 4d 61 63 |der file| for Mac|
|00000aa0| 50 61 69 6e 74 20 66 69 | 6c 65 73 0a 58 2a 2f 0a |Paint fi|les.X*/.|
|00000ab0| 58 0a 58 23 64 65 66 69 | 6e 65 09 48 45 41 44 45 |X.X#defi|ne.HEADE|
|00000ac0| 52 5f 4c 45 4e 47 54 48 | 09 35 31 32 0a 58 23 64 |R_LENGTH|.512.X#d|
|00000ad0| 65 66 69 6e 65 09 4d 41 | 58 5f 4c 49 4e 45 53 09 |efine.MA|X_LINES.|
|00000ae0| 37 32 30 0a 58 23 64 65 | 66 69 6e 65 09 42 59 54 |720.X#de|fine.BYT|
|00000af0| 45 53 5f 57 49 44 45 09 | 37 32 0a 58 23 64 65 66 |ES_WIDE.|72.X#def|
|00000b00| 69 6e 65 20 4d 41 58 5f | 43 4f 4c 53 09 35 37 36 |ine MAX_|COLS.576|
|00000b10| 09 2f 2a 20 3d 20 42 59 | 54 45 53 5f 57 49 44 45 |./* = BY|TES_WIDE|
|00000b20| 20 2a 20 38 20 2a 2f 0a | 53 48 41 52 5f 45 4f 46 | * 8 */.|SHAR_EOF|
|00000b30| 0a 69 66 20 74 65 73 74 | 20 31 36 31 20 2d 6e 65 |.if test| 161 -ne|
|00000b40| 20 22 60 77 63 20 2d 63 | 20 3c 20 27 6d 61 63 70 | "`wc -c| < 'macp|
|00000b50| 2e 68 27 60 22 0a 74 68 | 65 6e 0a 09 65 63 68 6f |.h'`".th|en..echo|
|00000b60| 20 73 68 61 72 3a 20 65 | 72 72 6f 72 20 74 72 61 | shar: e|rror tra|
|00000b70| 6e 73 6d 69 74 74 69 6e | 67 20 22 27 6d 61 63 70 |nsmittin|g "'macp|
|00000b80| 2e 68 27 22 20 27 28 73 | 68 6f 75 6c 64 20 68 61 |.h'" '(s|hould ha|
|00000b90| 76 65 20 62 65 65 6e 20 | 31 36 31 20 63 68 61 72 |ve been |161 char|
|00000ba0| 61 63 74 65 72 73 29 27 | 0a 66 69 0a 66 69 20 23 |acters)'|.fi.fi #|
|00000bb0| 20 65 6e 64 20 6f 66 20 | 6f 76 65 72 77 72 69 74 | end of |overwrit|
|00000bc0| 69 6e 67 20 63 68 65 63 | 6b 0a 65 63 68 6f 20 73 |ing chec|k.echo s|
|00000bd0| 68 61 72 3a 20 65 78 74 | 72 61 63 74 69 6e 67 20 |har: ext|racting |
|00000be0| 22 27 78 31 30 77 64 2e | 68 27 22 20 27 28 39 35 |"'x10wd.|h'" '(95|
|00000bf0| 32 20 63 68 61 72 61 63 | 74 65 72 73 29 27 0a 69 |2 charac|ters)'.i|
|00000c00| 66 20 74 65 73 74 20 2d | 66 20 27 78 31 30 77 64 |f test -|f 'x10wd|
|00000c10| 2e 68 27 0a 74 68 65 6e | 0a 09 65 63 68 6f 20 73 |.h'.then|..echo s|
|00000c20| 68 61 72 3a 20 77 69 6c | 6c 20 6e 6f 74 20 6f 76 |har: wil|l not ov|
|00000c30| 65 72 2d 77 72 69 74 65 | 20 65 78 69 73 74 69 6e |er-write| existin|
|00000c40| 67 20 66 69 6c 65 20 22 | 27 78 31 30 77 64 2e 68 |g file "|'x10wd.h|
|00000c50| 27 22 0a 65 6c 73 65 0a | 73 65 64 20 27 73 2f 5e |'".else.|sed 's/^|
|00000c60| 58 2f 2f 27 20 3c 3c 20 | 5c 53 48 41 52 5f 45 4f |X//' << |\SHAR_EO|
|00000c70| 46 20 3e 20 27 78 31 30 | 77 64 2e 68 27 0a 58 2f |F > 'x10|wd.h'.X/|
|00000c80| 2a 20 78 31 30 77 64 2e | 68 20 2d 20 74 68 65 20 |* x10wd.|h - the |
|00000c90| 66 6f 6c 6c 6f 77 69 6e | 67 20 64 65 66 73 20 61 |followin|g defs a|
|00000ca0| 72 65 20 74 61 6b 65 6e | 20 66 72 6f 6d 20 76 61 |re taken| from va|
|00000cb0| 72 69 6f 75 73 20 58 31 | 30 20 68 65 61 64 65 72 |rious X1|0 header|
|00000cc0| 20 66 69 6c 65 73 0a 58 | 2a 2f 0a 58 0a 58 23 64 | files.X|*/.X.X#d|
|00000cd0| 65 66 69 6e 65 20 58 59 | 46 6f 72 6d 61 74 20 30 |efine XY|Format 0|
|00000ce0| 0a 58 23 64 65 66 69 6e | 65 20 5a 46 6f 72 6d 61 |.X#defin|e ZForma|
|00000cf0| 74 20 31 0a 58 0a 58 23 | 64 65 66 69 6e 65 20 58 |t 1.X.X#|define X|
|00000d00| 31 30 57 44 5f 46 49 4c | 45 5f 56 45 52 53 49 4f |10WD_FIL|E_VERSIO|
|00000d10| 4e 20 36 0a 58 74 79 70 | 65 64 65 66 20 73 74 72 |N 6.Xtyp|edef str|
|00000d20| 75 63 74 20 7b 0a 58 20 | 20 20 20 69 6e 74 20 68 |uct {.X | int h|
|00000d30| 65 61 64 65 72 5f 73 69 | 7a 65 3b 09 09 2f 2a 20 |eader_si|ze;../* |
|00000d40| 53 69 7a 65 20 6f 66 20 | 74 68 65 20 65 6e 74 69 |Size of |the enti|
|00000d50| 72 65 20 66 69 6c 65 20 | 68 65 61 64 65 72 20 28 |re file |header (|
|00000d60| 62 79 74 65 73 29 2e 20 | 2a 2f 0a 58 20 20 20 20 |bytes). |*/.X |
|00000d70| 69 6e 74 20 66 69 6c 65 | 5f 76 65 72 73 69 6f 6e |int file|_version|
|00000d80| 3b 09 09 2f 2a 20 58 31 | 30 57 44 5f 46 49 4c 45 |;../* X1|0WD_FILE|
|00000d90| 5f 56 45 52 53 49 4f 4e | 20 2a 2f 0a 58 20 20 20 |_VERSION| */.X |
|00000da0| 20 69 6e 74 20 64 69 73 | 70 6c 61 79 5f 74 79 70 | int dis|play_typ|
|00000db0| 65 3b 09 09 2f 2a 20 44 | 69 73 70 6c 61 79 20 74 |e;../* D|isplay t|
|00000dc0| 79 70 65 2e 20 2a 2f 0a | 58 20 20 20 20 69 6e 74 |ype. */.|X int|
|00000dd0| 20 64 69 73 70 6c 61 79 | 5f 70 6c 61 6e 65 73 3b | display|_planes;|
|00000de0| 09 09 2f 2a 20 4e 75 6d | 62 65 72 20 6f 66 20 64 |../* Num|ber of d|
|00000df0| 69 73 70 6c 61 79 20 70 | 6c 61 6e 65 73 2e 20 2a |isplay p|lanes. *|
|00000e00| 2f 0a 58 20 20 20 20 69 | 6e 74 20 70 69 78 6d 61 |/.X i|nt pixma|
|00000e10| 70 5f 66 6f 72 6d 61 74 | 3b 09 09 2f 2a 20 50 69 |p_format|;../* Pi|
|00000e20| 78 6d 61 70 20 66 6f 72 | 6d 61 74 2e 20 2a 2f 0a |xmap for|mat. */.|
|00000e30| 58 20 20 20 20 69 6e 74 | 20 70 69 78 6d 61 70 5f |X int| pixmap_|
|00000e40| 77 69 64 74 68 3b 09 09 | 2f 2a 20 50 69 78 6d 61 |width;..|/* Pixma|
|00000e50| 70 20 77 69 64 74 68 2e | 20 2a 2f 0a 58 20 20 20 |p width.| */.X |
|00000e60| 20 69 6e 74 20 70 69 78 | 6d 61 70 5f 68 65 69 67 | int pix|map_heig|
|00000e70| 68 74 3b 09 09 2f 2a 20 | 50 69 78 6d 61 70 20 68 |ht;../* |Pixmap h|
|00000e80| 65 69 67 68 74 2e 20 2a | 2f 0a 58 20 20 20 20 73 |eight. *|/.X s|
|00000e90| 68 6f 72 74 20 77 69 6e | 64 6f 77 5f 77 69 64 74 |hort win|dow_widt|
|00000ea0| 68 3b 09 09 2f 2a 20 57 | 69 6e 64 6f 77 20 77 69 |h;../* W|indow wi|
|00000eb0| 64 74 68 2e 20 2a 2f 0a | 58 20 20 20 20 73 68 6f |dth. */.|X sho|
|00000ec0| 72 74 20 77 69 6e 64 6f | 77 5f 68 65 69 67 68 74 |rt windo|w_height|
|00000ed0| 3b 09 2f 2a 20 57 69 6e | 64 6f 77 20 68 65 69 67 |;./* Win|dow heig|
|00000ee0| 68 74 2e 20 2a 2f 0a 58 | 20 20 20 20 73 68 6f 72 |ht. */.X| shor|
|00000ef0| 74 20 77 69 6e 64 6f 77 | 5f 78 3b 09 09 2f 2a 20 |t window|_x;../* |
|00000f00| 57 69 6e 64 6f 77 20 75 | 70 70 65 72 20 6c 65 66 |Window u|pper lef|
|00000f10| 74 20 58 20 63 6f 6f 72 | 64 69 6e 61 74 65 2e 20 |t X coor|dinate. |
|00000f20| 2a 2f 0a 58 20 20 20 20 | 73 68 6f 72 74 20 77 69 |*/.X |short wi|
|00000f30| 6e 64 6f 77 5f 79 3b 09 | 09 2f 2a 20 57 69 6e 64 |ndow_y;.|./* Wind|
|00000f40| 6f 77 20 75 70 70 65 72 | 20 6c 65 66 74 20 59 20 |ow upper| left Y |
|00000f50| 63 6f 6f 72 64 69 6e 61 | 74 65 2e 20 2a 2f 0a 58 |coordina|te. */.X|
|00000f60| 20 20 20 20 73 68 6f 72 | 74 20 77 69 6e 64 6f 77 | shor|t window|
|00000f70| 5f 62 64 72 77 69 64 74 | 68 3b 09 2f 2a 20 57 69 |_bdrwidt|h;./* Wi|
|00000f80| 6e 64 6f 77 20 62 6f 72 | 64 65 72 20 77 69 64 74 |ndow bor|der widt|
|00000f90| 68 2e 20 2a 2f 0a 58 20 | 20 20 20 73 68 6f 72 74 |h. */.X | short|
|00000fa0| 20 77 69 6e 64 6f 77 5f | 6e 63 6f 6c 6f 72 73 3b | window_|ncolors;|
|00000fb0| 09 2f 2a 20 6e 75 6d 62 | 65 72 20 6f 66 20 43 6f |./* numb|er of Co|
|00000fc0| 6c 6f 72 20 65 6e 74 72 | 69 65 73 20 69 6e 20 74 |lor entr|ies in t|
|00000fd0| 68 69 73 20 77 69 6e 64 | 6f 77 20 2a 2f 0a 58 20 |his wind|ow */.X |
|00000fe0| 20 20 20 7d 20 58 31 30 | 57 44 46 69 6c 65 48 65 | } X10|WDFileHe|
|00000ff0| 61 64 65 72 3b 0a 58 0a | 58 74 79 70 65 64 65 66 |ader;.X.|Xtypedef|
|00001000| 20 73 74 72 75 63 74 20 | 7b 0a 58 20 20 20 20 69 | struct |{.X i|
|00001010| 6e 74 20 70 69 78 65 6c | 3b 0a 58 20 20 20 20 75 |nt pixel|;.X u|
|00001020| 6e 73 69 67 6e 65 64 20 | 73 68 6f 72 74 20 72 65 |nsigned |short re|
|00001030| 64 2c 20 67 72 65 65 6e | 2c 20 62 6c 75 65 3b 0a |d, green|, blue;.|
|00001040| 58 20 20 20 20 7d 20 58 | 31 30 43 6f 6c 6f 72 3b |X } X|10Color;|
|00001050| 0a 53 48 41 52 5f 45 4f | 46 0a 69 66 20 74 65 73 |.SHAR_EO|F.if tes|
|00001060| 74 20 39 35 32 20 2d 6e | 65 20 22 60 77 63 20 2d |t 952 -n|e "`wc -|
|00001070| 63 20 3c 20 27 78 31 30 | 77 64 2e 68 27 60 22 0a |c < 'x10|wd.h'`".|
|00001080| 74 68 65 6e 0a 09 65 63 | 68 6f 20 73 68 61 72 3a |then..ec|ho shar:|
|00001090| 20 65 72 72 6f 72 20 74 | 72 61 6e 73 6d 69 74 74 | error t|ransmitt|
|000010a0| 69 6e 67 20 22 27 78 31 | 30 77 64 2e 68 27 22 20 |ing "'x1|0wd.h'" |
|000010b0| 27 28 73 68 6f 75 6c 64 | 20 68 61 76 65 20 62 65 |'(should| have be|
|000010c0| 65 6e 20 39 35 32 20 63 | 68 61 72 61 63 74 65 72 |en 952 c|haracter|
|000010d0| 73 29 27 0a 66 69 0a 66 | 69 20 23 20 65 6e 64 20 |s)'.fi.f|i # end |
|000010e0| 6f 66 20 6f 76 65 72 77 | 72 69 74 69 6e 67 20 63 |of overw|riting c|
|000010f0| 68 65 63 6b 0a 65 63 68 | 6f 20 73 68 61 72 3a 20 |heck.ech|o shar: |
|00001100| 65 78 74 72 61 63 74 69 | 6e 67 20 22 27 78 31 31 |extracti|ng "'x11|
|00001110| 77 64 2e 68 27 22 20 27 | 28 31 36 39 32 20 63 68 |wd.h'" '|(1692 ch|
|00001120| 61 72 61 63 74 65 72 73 | 29 27 0a 69 66 20 74 65 |aracters|)'.if te|
|00001130| 73 74 20 2d 66 20 27 78 | 31 31 77 64 2e 68 27 0a |st -f 'x|11wd.h'.|
|00001140| 74 68 65 6e 0a 09 65 63 | 68 6f 20 73 68 61 72 3a |then..ec|ho shar:|
|00001150| 20 77 69 6c 6c 20 6e 6f | 74 20 6f 76 65 72 2d 77 | will no|t over-w|
|00001160| 72 69 74 65 20 65 78 69 | 73 74 69 6e 67 20 66 69 |rite exi|sting fi|
|00001170| 6c 65 20 22 27 78 31 31 | 77 64 2e 68 27 22 0a 65 |le "'x11|wd.h'".e|
|00001180| 6c 73 65 0a 73 65 64 20 | 27 73 2f 5e 58 2f 2f 27 |lse.sed |'s/^X//'|
|00001190| 20 3c 3c 20 5c 53 48 41 | 52 5f 45 4f 46 20 3e 20 | << \SHA|R_EOF > |
|000011a0| 27 78 31 31 77 64 2e 68 | 27 0a 58 2f 2a 20 78 31 |'x11wd.h|'.X/* x1|
|000011b0| 31 77 64 2e 68 20 2d 20 | 74 68 65 20 66 6f 6c 6c |1wd.h - |the foll|
|000011c0| 6f 77 69 6e 67 20 64 65 | 66 73 20 61 72 65 20 74 |owing de|fs are t|
|000011d0| 61 6b 65 6e 20 66 72 6f | 6d 20 76 61 72 69 6f 75 |aken fro|m variou|
|000011e0| 73 20 58 2e 56 31 31 52 | 32 20 68 65 61 64 65 72 |s X.V11R|2 header|
|000011f0| 20 66 69 6c 65 73 0a 58 | 2a 2f 0a 58 0a 58 23 64 | files.X|*/.X.X#d|
|00001200| 65 66 69 6e 65 20 4c 53 | 42 46 69 72 73 74 20 30 |efine LS|BFirst 0|
|00001210| 0a 58 23 64 65 66 69 6e | 65 20 4d 53 42 46 69 72 |.X#defin|e MSBFir|
|00001220| 73 74 20 31 0a 58 0a 58 | 23 64 65 66 69 6e 65 20 |st 1.X.X|#define |
|00001230| 58 59 42 69 74 6d 61 70 | 20 30 0a 58 23 64 65 66 |XYBitmap| 0.X#def|
|00001240| 69 6e 65 20 58 59 50 69 | 78 6d 61 70 20 31 0a 58 |ine XYPi|xmap 1.X|
|00001250| 23 64 65 66 69 6e 65 20 | 5a 50 69 78 6d 61 70 20 |#define |ZPixmap |
|00001260| 32 0a 58 0a 58 74 79 70 | 65 64 65 66 20 75 6e 73 |2.X.Xtyp|edef uns|
|00001270| 69 67 6e 65 64 20 6c 6f | 6e 67 20 78 77 64 76 61 |igned lo|ng xwdva|
|00001280| 6c 3b 0a 58 23 64 65 66 | 69 6e 65 20 58 31 31 57 |l;.X#def|ine X11W|
|00001290| 44 5f 46 49 4c 45 5f 56 | 45 52 53 49 4f 4e 20 37 |D_FILE_V|ERSION 7|
|000012a0| 0a 58 74 79 70 65 64 65 | 66 20 73 74 72 75 63 74 |.Xtypede|f struct|
|000012b0| 20 7b 0a 58 20 20 20 20 | 78 77 64 76 61 6c 20 68 | {.X |xwdval h|
|000012c0| 65 61 64 65 72 5f 73 69 | 7a 65 3b 09 09 2f 2a 20 |eader_si|ze;../* |
|000012d0| 53 69 7a 65 20 6f 66 20 | 74 68 65 20 65 6e 74 69 |Size of |the enti|
|000012e0| 72 65 20 66 69 6c 65 20 | 68 65 61 64 65 72 20 28 |re file |header (|
|000012f0| 62 79 74 65 73 29 2e 20 | 2a 2f 0a 58 20 20 20 20 |bytes). |*/.X |
|00001300| 78 77 64 76 61 6c 20 66 | 69 6c 65 5f 76 65 72 73 |xwdval f|ile_vers|
|00001310| 69 6f 6e 3b 09 2f 2a 20 | 58 31 31 57 44 5f 46 49 |ion;./* |X11WD_FI|
|00001320| 4c 45 5f 56 45 52 53 49 | 4f 4e 20 2a 2f 0a 58 20 |LE_VERSI|ON */.X |
|00001330| 20 20 20 78 77 64 76 61 | 6c 20 70 69 78 6d 61 70 | xwdva|l pixmap|
|00001340| 5f 66 6f 72 6d 61 74 3b | 09 2f 2a 20 50 69 78 6d |_format;|./* Pixm|
|00001350| 61 70 20 66 6f 72 6d 61 | 74 20 2a 2f 0a 58 20 20 |ap forma|t */.X |
|00001360| 20 20 78 77 64 76 61 6c | 20 70 69 78 6d 61 70 5f | xwdval| pixmap_|
|00001370| 64 65 70 74 68 3b 09 2f | 2a 20 50 69 78 6d 61 70 |depth;./|* Pixmap|
|00001380| 20 64 65 70 74 68 20 2a | 2f 0a 58 20 20 20 20 78 | depth *|/.X x|
|00001390| 77 64 76 61 6c 20 70 69 | 78 6d 61 70 5f 77 69 64 |wdval pi|xmap_wid|
|000013a0| 74 68 3b 09 2f 2a 20 50 | 69 78 6d 61 70 20 77 69 |th;./* P|ixmap wi|
|000013b0| 64 74 68 20 2a 2f 0a 58 | 20 20 20 20 78 77 64 76 |dth */.X| xwdv|
|000013c0| 61 6c 20 70 69 78 6d 61 | 70 5f 68 65 69 67 68 74 |al pixma|p_height|
|000013d0| 3b 09 2f 2a 20 50 69 78 | 6d 61 70 20 68 65 69 67 |;./* Pix|map heig|
|000013e0| 68 74 20 2a 2f 0a 58 20 | 20 20 20 78 77 64 76 61 |ht */.X | xwdva|
|000013f0| 6c 20 78 6f 66 66 73 65 | 74 3b 09 09 2f 2a 20 42 |l xoffse|t;../* B|
|00001400| 69 74 6d 61 70 20 78 20 | 6f 66 66 73 65 74 20 2a |itmap x |offset *|
|00001410| 2f 0a 58 20 20 20 20 78 | 77 64 76 61 6c 20 62 79 |/.X x|wdval by|
|00001420| 74 65 5f 6f 72 64 65 72 | 3b 09 09 2f 2a 20 4d 53 |te_order|;../* MS|
|00001430| 42 46 69 72 73 74 2c 20 | 4c 53 42 46 69 72 73 74 |BFirst, |LSBFirst|
|00001440| 20 2a 2f 0a 58 20 20 20 | 20 78 77 64 76 61 6c 20 | */.X | xwdval |
|00001450| 62 69 74 6d 61 70 5f 75 | 6e 69 74 3b 09 09 2f 2a |bitmap_u|nit;../*|
|00001460| 20 42 69 74 6d 61 70 20 | 75 6e 69 74 20 2a 2f 0a | Bitmap |unit */.|
|00001470| 58 20 20 20 20 78 77 64 | 76 61 6c 20 62 69 74 6d |X xwd|val bitm|
|00001480| 61 70 5f 62 69 74 5f 6f | 72 64 65 72 3b 09 2f 2a |ap_bit_o|rder;./*|
|00001490| 20 4d 53 42 46 69 72 73 | 74 2c 20 4c 53 42 46 69 | MSBFirs|t, LSBFi|
|000014a0| 72 73 74 20 2a 2f 0a 58 | 20 20 20 20 78 77 64 76 |rst */.X| xwdv|
|000014b0| 61 6c 20 62 69 74 6d 61 | 70 5f 70 61 64 3b 09 09 |al bitma|p_pad;..|
|000014c0| 2f 2a 20 42 69 74 6d 61 | 70 20 73 63 61 6e 6c 69 |/* Bitma|p scanli|
|000014d0| 6e 65 20 70 61 64 20 2a | 2f 0a 58 20 20 20 20 78 |ne pad *|/.X x|
|000014e0| 77 64 76 61 6c 20 62 69 | 74 73 5f 70 65 72 5f 70 |wdval bi|ts_per_p|
|000014f0| 69 78 65 6c 3b 09 2f 2a | 20 42 69 74 73 20 70 65 |ixel;./*| Bits pe|
|00001500| 72 20 70 69 78 65 6c 20 | 2a 2f 0a 58 20 20 20 20 |r pixel |*/.X |
|00001510| 78 77 64 76 61 6c 20 62 | 79 74 65 73 5f 70 65 72 |xwdval b|ytes_per|
|00001520| 5f 6c 69 6e 65 3b 09 2f | 2a 20 42 79 74 65 73 20 |_line;./|* Bytes |
|00001530| 70 65 72 20 73 63 61 6e | 6c 69 6e 65 20 2a 2f 0a |per scan|line */.|
|00001540| 58 20 20 20 20 78 77 64 | 76 61 6c 20 76 69 73 75 |X xwd|val visu|
|00001550| 61 6c 5f 63 6c 61 73 73 | 3b 09 2f 2a 20 43 6c 61 |al_class|;./* Cla|
|00001560| 73 73 20 6f 66 20 63 6f | 6c 6f 72 6d 61 70 20 2a |ss of co|lormap *|
|00001570| 2f 0a 58 20 20 20 20 78 | 77 64 76 61 6c 20 72 65 |/.X x|wdval re|
|00001580| 64 5f 6d 61 73 6b 3b 09 | 09 2f 2a 20 5a 20 72 65 |d_mask;.|./* Z re|
|00001590| 64 20 6d 61 73 6b 20 2a | 2f 0a 58 20 20 20 20 78 |d mask *|/.X x|
|000015a0| 77 64 76 61 6c 20 67 72 | 65 65 6e 5f 6d 61 73 6b |wdval gr|een_mask|
|000015b0| 3b 09 09 2f 2a 20 5a 20 | 67 72 65 65 6e 20 6d 61 |;../* Z |green ma|
|000015c0| 73 6b 20 2a 2f 0a 58 20 | 20 20 20 78 77 64 76 61 |sk */.X | xwdva|
|000015d0| 6c 20 62 6c 75 65 5f 6d | 61 73 6b 3b 09 09 2f 2a |l blue_m|ask;../*|
|000015e0| 20 5a 20 62 6c 75 65 20 | 6d 61 73 6b 20 2a 2f 0a | Z blue |mask */.|
|000015f0| 58 20 20 20 20 78 77 64 | 76 61 6c 20 62 69 74 73 |X xwd|val bits|
|00001600| 5f 70 65 72 5f 72 67 62 | 3b 09 2f 2a 20 4c 6f 67 |_per_rgb|;./* Log|
|00001610| 20 62 61 73 65 20 32 20 | 6f 66 20 64 69 73 74 69 | base 2 |of disti|
|00001620| 6e 63 74 20 63 6f 6c 6f | 72 20 76 61 6c 75 65 73 |nct colo|r values|
|00001630| 20 2a 2f 0a 58 20 20 20 | 20 78 77 64 76 61 6c 20 | */.X | xwdval |
|00001640| 63 6f 6c 6f 72 6d 61 70 | 5f 65 6e 74 72 69 65 73 |colormap|_entries|
|00001650| 3b 09 2f 2a 20 4e 75 6d | 62 65 72 20 6f 66 20 65 |;./* Num|ber of e|
|00001660| 6e 74 72 69 65 73 20 69 | 6e 20 63 6f 6c 6f 72 6d |ntries i|n colorm|
|00001670| 61 70 20 2a 2f 0a 58 20 | 20 20 20 78 77 64 76 61 |ap */.X | xwdva|
|00001680| 6c 20 6e 63 6f 6c 6f 72 | 73 3b 09 09 2f 2a 20 4e |l ncolor|s;../* N|
|00001690| 75 6d 62 65 72 20 6f 66 | 20 43 6f 6c 6f 72 20 73 |umber of| Color s|
|000016a0| 74 72 75 63 74 75 72 65 | 73 20 2a 2f 0a 58 20 20 |tructure|s */.X |
|000016b0| 20 20 78 77 64 76 61 6c | 20 77 69 6e 64 6f 77 5f | xwdval| window_|
|000016c0| 77 69 64 74 68 3b 09 2f | 2a 20 57 69 6e 64 6f 77 |width;./|* Window|
|000016d0| 20 77 69 64 74 68 20 2a | 2f 0a 58 20 20 20 20 78 | width *|/.X x|
|000016e0| 77 64 76 61 6c 20 77 69 | 6e 64 6f 77 5f 68 65 69 |wdval wi|ndow_hei|
|000016f0| 67 68 74 3b 09 2f 2a 20 | 57 69 6e 64 6f 77 20 68 |ght;./* |Window h|
|00001700| 65 69 67 68 74 20 2a 2f | 0a 58 20 20 20 20 6c 6f |eight */|.X lo|
|00001710| 6e 67 20 77 69 6e 64 6f | 77 5f 78 3b 09 09 2f 2a |ng windo|w_x;../*|
|00001720| 20 57 69 6e 64 6f 77 20 | 75 70 70 65 72 20 6c 65 | Window |upper le|
|00001730| 66 74 20 58 20 63 6f 6f | 72 64 69 6e 61 74 65 20 |ft X coo|rdinate |
|00001740| 2a 2f 0a 58 20 20 20 20 | 6c 6f 6e 67 20 77 69 6e |*/.X |long win|
|00001750| 64 6f 77 5f 79 3b 09 09 | 2f 2a 20 57 69 6e 64 6f |dow_y;..|/* Windo|
|00001760| 77 20 75 70 70 65 72 20 | 6c 65 66 74 20 59 20 63 |w upper |left Y c|
|00001770| 6f 6f 72 64 69 6e 61 74 | 65 20 2a 2f 0a 58 20 20 |oordinat|e */.X |
|00001780| 20 20 78 77 64 76 61 6c | 20 77 69 6e 64 6f 77 5f | xwdval| window_|
|00001790| 62 64 72 77 69 64 74 68 | 3b 09 2f 2a 20 57 69 6e |bdrwidth|;./* Win|
|000017a0| 64 6f 77 20 62 6f 72 64 | 65 72 20 77 69 64 74 68 |dow bord|er width|
|000017b0| 20 2a 2f 0a 58 20 20 20 | 20 7d 20 58 31 31 57 44 | */.X | } X11WD|
|000017c0| 46 69 6c 65 48 65 61 64 | 65 72 3b 0a 58 0a 58 74 |FileHead|er;.X.Xt|
|000017d0| 79 70 65 64 65 66 20 73 | 74 72 75 63 74 20 7b 0a |ypedef s|truct {.|
|000017e0| 58 20 20 20 20 75 6e 73 | 69 67 6e 65 64 20 6c 6f |X uns|igned lo|
|000017f0| 6e 67 20 70 69 78 65 6c | 3b 0a 58 20 20 20 20 75 |ng pixel|;.X u|
|00001800| 6e 73 69 67 6e 65 64 20 | 73 68 6f 72 74 20 72 65 |nsigned |short re|
|00001810| 64 2c 20 67 72 65 65 6e | 2c 20 62 6c 75 65 3b 0a |d, green|, blue;.|
|00001820| 58 20 20 20 20 63 68 61 | 72 20 66 6c 61 67 73 3b |X cha|r flags;|
|00001830| 09 09 09 2f 2a 20 64 6f | 5f 72 65 64 2c 20 64 6f |.../* do|_red, do|
|00001840| 5f 67 72 65 65 6e 2c 20 | 64 6f 5f 62 6c 75 65 20 |_green, |do_blue |
|00001850| 2a 2f 0a 58 20 20 20 20 | 63 68 61 72 20 70 61 64 |*/.X |char pad|
|00001860| 3b 0a 58 20 20 20 20 7d | 20 58 31 31 58 43 6f 6c |;.X }| X11XCol|
|00001870| 6f 72 3b 0a 53 48 41 52 | 5f 45 4f 46 0a 69 66 20 |or;.SHAR|_EOF.if |
|00001880| 74 65 73 74 20 31 36 39 | 32 20 2d 6e 65 20 22 60 |test 169|2 -ne "`|
|00001890| 77 63 20 2d 63 20 3c 20 | 27 78 31 31 77 64 2e 68 |wc -c < |'x11wd.h|
|000018a0| 27 60 22 0a 74 68 65 6e | 0a 09 65 63 68 6f 20 73 |'`".then|..echo s|
|000018b0| 68 61 72 3a 20 65 72 72 | 6f 72 20 74 72 61 6e 73 |har: err|or trans|
|000018c0| 6d 69 74 74 69 6e 67 20 | 22 27 78 31 31 77 64 2e |mitting |"'x11wd.|
|000018d0| 68 27 22 20 27 28 73 68 | 6f 75 6c 64 20 68 61 76 |h'" '(sh|ould hav|
|000018e0| 65 20 62 65 65 6e 20 31 | 36 39 32 20 63 68 61 72 |e been 1|692 char|
|000018f0| 61 63 74 65 72 73 29 27 | 0a 66 69 0a 66 69 20 23 |acters)'|.fi.fi #|
|00001900| 20 65 6e 64 20 6f 66 20 | 6f 76 65 72 77 72 69 74 | end of |overwrit|
|00001910| 69 6e 67 20 63 68 65 63 | 6b 0a 65 63 68 6f 20 73 |ing chec|k.echo s|
|00001920| 68 61 72 3a 20 65 78 74 | 72 61 63 74 69 6e 67 20 |har: ext|racting |
|00001930| 22 27 70 62 6d 2e 35 27 | 22 20 27 28 32 35 30 30 |"'pbm.5'|" '(2500|
|00001940| 20 63 68 61 72 61 63 74 | 65 72 73 29 27 0a 69 66 | charact|ers)'.if|
|00001950| 20 74 65 73 74 20 2d 66 | 20 27 70 62 6d 2e 35 27 | test -f| 'pbm.5'|
|00001960| 0a 74 68 65 6e 0a 09 65 | 63 68 6f 20 73 68 61 72 |.then..e|cho shar|
|00001970| 3a 20 77 69 6c 6c 20 6e | 6f 74 20 6f 76 65 72 2d |: will n|ot over-|
|00001980| 77 72 69 74 65 20 65 78 | 69 73 74 69 6e 67 20 66 |write ex|isting f|
|00001990| 69 6c 65 20 22 27 70 62 | 6d 2e 35 27 22 0a 65 6c |ile "'pb|m.5'".el|
|000019a0| 73 65 0a 73 65 64 20 27 | 73 2f 5e 58 2f 2f 27 20 |se.sed '|s/^X//' |
|000019b0| 3c 3c 20 5c 53 48 41 52 | 5f 45 4f 46 20 3e 20 27 |<< \SHAR|_EOF > '|
|000019c0| 70 62 6d 2e 35 27 0a 58 | 2e 54 48 20 70 62 6d 20 |pbm.5'.X|.TH pbm |
|000019d0| 35 20 22 33 31 20 41 75 | 67 75 73 74 20 31 39 38 |5 "31 Au|gust 198|
|000019e0| 38 22 0a 58 2e 53 48 20 | 4e 41 4d 45 0a 58 70 62 |8".X.SH |NAME.Xpb|
|000019f0| 6d 20 2d 20 70 6f 72 74 | 61 62 6c 65 20 62 69 74 |m - port|able bit|
|00001a00| 6d 61 70 20 66 69 6c 65 | 20 66 6f 72 6d 61 74 0a |map file| format.|
|00001a10| 58 2e 53 48 20 44 45 53 | 43 52 49 50 54 49 4f 4e |X.SH DES|CRIPTION|
|00001a20| 0a 58 54 68 65 20 70 6f | 72 74 61 62 6c 65 20 62 |.XThe po|rtable b|
|00001a30| 69 74 6d 61 70 20 66 6f | 72 6d 61 74 20 69 73 20 |itmap fo|rmat is |
|00001a40| 61 20 6c 6f 77 65 73 74 | 20 63 6f 6d 6d 6f 6e 20 |a lowest| common |
|00001a50| 64 65 6e 6f 6d 69 6e 61 | 74 6f 72 2e 0a 58 49 74 |denomina|tor..XIt|
|00001a60| 20 77 61 73 20 6f 72 69 | 67 69 6e 61 6c 6c 79 20 | was ori|ginally |
|00001a70| 64 65 73 69 67 6e 65 64 | 20 74 6f 20 6d 61 6b 65 |designed| to make|
|00001a80| 20 69 74 20 72 65 61 73 | 6f 6e 61 62 6c 65 20 74 | it reas|onable t|
|00001a90| 6f 20 6d 61 69 6c 20 62 | 69 74 6d 61 70 73 0a 58 |o mail b|itmaps.X|
|00001aa0| 62 65 74 77 65 65 6e 20 | 64 69 66 66 65 72 65 6e |between |differen|
|00001ab0| 74 20 74 79 70 65 73 20 | 6f 66 20 6d 61 63 68 69 |t types |of machi|
|00001ac0| 6e 65 73 20 75 73 69 6e | 67 20 74 68 65 20 74 79 |nes usin|g the ty|
|00001ad0| 70 69 63 61 6c 20 73 74 | 75 70 69 64 20 6e 65 74 |pical st|upid net|
|00001ae0| 77 6f 72 6b 0a 58 6d 61 | 69 6c 65 72 73 20 77 65 |work.Xma|ilers we|
|00001af0| 20 68 61 76 65 20 74 6f | 64 61 79 2e 0a 58 4e 6f | have to|day..XNo|
|00001b00| 77 20 69 74 20 73 65 72 | 76 65 73 20 61 73 20 74 |w it ser|ves as t|
|00001b10| 68 65 20 63 6f 6d 6d 6f | 6e 20 6c 61 6e 67 75 61 |he commo|n langua|
|00001b20| 67 65 20 6f 66 20 61 20 | 6c 61 72 67 65 20 66 61 |ge of a |large fa|
|00001b30| 6d 69 6c 79 20 6f 66 20 | 62 69 74 6d 61 70 0a 58 |mily of |bitmap.X|
|00001b40| 63 6f 6e 76 65 72 73 69 | 6f 6e 20 66 69 6c 74 65 |conversi|on filte|
|00001b50| 72 73 2e 0a 58 54 68 65 | 20 64 65 66 69 6e 69 74 |rs..XThe| definit|
|00001b60| 69 6f 6e 20 69 73 20 61 | 73 20 66 6f 6c 6c 6f 77 |ion is a|s follow|
|00001b70| 73 3a 0a 58 2e 49 50 20 | 2d 20 32 0a 58 41 20 22 |s:.X.IP |- 2.XA "|
|00001b80| 6d 61 67 69 63 20 6e 75 | 6d 62 65 72 22 20 66 6f |magic nu|mber" fo|
|00001b90| 72 20 69 64 65 6e 74 69 | 66 79 69 6e 67 20 74 68 |r identi|fying th|
|00001ba0| 65 20 66 69 6c 65 20 74 | 79 70 65 2e 0a 58 41 20 |e file t|ype..XA |
|00001bb0| 70 62 6d 20 66 69 6c 65 | 27 73 20 6d 61 67 69 63 |pbm file|'s magic|
|00001bc0| 20 6e 75 6d 62 65 72 20 | 69 73 20 74 68 65 20 74 | number |is the t|
|00001bd0| 77 6f 20 63 68 61 72 61 | 63 74 65 72 73 20 22 50 |wo chara|cters "P|
|00001be0| 31 22 2e 0a 58 2e 49 50 | 20 2d 20 32 0a 58 57 68 |1"..X.IP| - 2.XWh|
|00001bf0| 69 74 65 73 70 61 63 65 | 20 28 62 6c 61 6e 6b 73 |itespace| (blanks|
|00001c00| 2c 20 54 41 42 73 2c 20 | 43 52 73 2c 20 4c 46 73 |, TABs, |CRs, LFs|
|00001c10| 29 2e 0a 58 2e 49 50 20 | 2d 20 32 0a 58 41 20 77 |)..X.IP |- 2.XA w|
|00001c20| 69 64 74 68 2c 20 66 6f | 72 6d 61 74 74 65 64 20 |idth, fo|rmatted |
|00001c30| 61 73 20 41 53 43 49 49 | 20 63 68 61 72 61 63 74 |as ASCII| charact|
|00001c40| 65 72 73 20 69 6e 20 64 | 65 63 69 6d 61 6c 2e 0a |ers in d|ecimal..|
|00001c50| 58 2e 49 50 20 2d 20 32 | 0a 58 57 68 69 74 65 73 |X.IP - 2|.XWhites|
|00001c60| 70 61 63 65 2e 0a 58 2e | 49 50 20 2d 20 32 0a 58 |pace..X.|IP - 2.X|
|00001c70| 41 20 68 65 69 67 68 74 | 2c 20 61 67 61 69 6e 20 |A height|, again |
|00001c80| 69 6e 20 41 53 43 49 49 | 20 64 65 63 69 6d 61 6c |in ASCII| decimal|
|00001c90| 2e 0a 58 2e 49 50 20 2d | 20 32 0a 58 57 68 69 74 |..X.IP -| 2.XWhit|
|00001ca0| 65 73 70 61 63 65 2e 0a | 58 2e 49 50 20 2d 20 32 |espace..|X.IP - 2|
|00001cb0| 0a 58 57 69 64 74 68 20 | 2a 20 68 65 69 67 68 74 |.XWidth |* height|
|00001cc0| 20 62 69 74 73 2c 20 65 | 61 63 68 20 65 69 74 68 | bits, e|ach eith|
|00001cd0| 65 72 20 27 31 27 20 6f | 72 20 27 30 27 2c 20 73 |er '1' o|r '0', s|
|00001ce0| 74 61 72 74 69 6e 67 20 | 61 74 20 74 68 65 20 74 |tarting |at the t|
|00001cf0| 6f 70 2d 6c 65 66 74 0a | 58 63 6f 72 6e 65 72 20 |op-left.|Xcorner |
|00001d00| 6f 66 20 74 68 65 20 62 | 69 74 6d 61 70 2c 20 70 |of the b|itmap, p|
|00001d10| 72 6f 63 65 64 69 6e 67 | 20 69 6e 20 6e 6f 72 6d |roceding| in norm|
|00001d20| 61 6c 20 45 6e 67 6c 69 | 73 68 20 72 65 61 64 69 |al Engli|sh readi|
|00001d30| 6e 67 20 6f 72 64 65 72 | 2e 0a 58 2e 49 50 20 2d |ng order|..X.IP -|
|00001d40| 20 32 0a 58 54 68 65 20 | 63 68 61 72 61 63 74 65 | 2.XThe |characte|
|00001d50| 72 20 27 31 27 20 6d 65 | 61 6e 73 20 62 6c 61 63 |r '1' me|ans blac|
|00001d60| 6b 2c 20 27 30 27 20 6d | 65 61 6e 73 20 77 68 69 |k, '0' m|eans whi|
|00001d70| 74 65 2e 0a 58 2e 49 50 | 20 2d 20 32 0a 58 57 68 |te..X.IP| - 2.XWh|
|00001d80| 69 74 65 73 70 61 63 65 | 20 69 6e 20 74 68 65 20 |itespace| in the |
|00001d90| 62 69 74 73 20 73 65 63 | 74 69 6f 6e 20 69 73 20 |bits sec|tion is |
|00001da0| 69 67 6e 6f 72 65 64 2e | 0a 58 2e 49 50 20 2d 20 |ignored.|.X.IP - |
|00001db0| 32 0a 58 43 68 61 72 61 | 63 74 65 72 73 20 66 72 |2.XChara|cters fr|
|00001dc0| 6f 6d 20 61 20 22 23 22 | 20 74 6f 20 74 68 65 20 |om a "#"| to the |
|00001dd0| 6e 65 78 74 20 65 6e 64 | 2d 6f 66 2d 6c 69 6e 65 |next end|-of-line|
|00001de0| 20 61 72 65 20 69 67 6e | 6f 72 65 64 20 28 63 6f | are ign|ored (co|
|00001df0| 6d 6d 65 6e 74 73 29 2e | 0a 58 2e 49 50 20 2d 20 |mments).|.X.IP - |
|00001e00| 32 0a 58 4e 6f 20 6c 69 | 6e 65 20 6d 61 79 20 62 |2.XNo li|ne may b|
|00001e10| 65 20 6c 6f 6e 67 65 72 | 20 74 68 61 6e 20 37 30 |e longer| than 70|
|00001e20| 20 63 68 61 72 61 63 74 | 65 72 73 2e 0a 58 2e 50 | charact|ers..X.P|
|00001e30| 50 0a 58 48 65 72 65 20 | 69 73 20 61 6e 20 65 78 |P.XHere |is an ex|
|00001e40| 61 6d 70 6c 65 20 6f 66 | 20 61 20 73 6d 61 6c 6c |ample of| a small|
|00001e50| 20 62 69 74 6d 61 70 20 | 69 6e 20 74 68 69 73 20 | bitmap |in this |
|00001e60| 66 6f 72 6d 61 74 3a 0a | 58 2e 50 50 0a 58 2e 6e |format:.|X.PP.X.n|
|00001e70| 66 0a 58 50 31 0a 58 23 | 20 66 65 65 70 2e 70 62 |f.XP1.X#| feep.pb|
|00001e80| 6d 0a 58 32 34 20 37 0a | 58 30 20 30 20 30 20 30 |m.X24 7.|X0 0 0 0|
|00001e90| 20 30 20 30 20 30 20 30 | 20 30 20 30 20 30 20 30 | 0 0 0 0| 0 0 0 0|
|00001ea0| 20 30 20 30 20 30 20 30 | 20 30 20 30 20 30 20 30 | 0 0 0 0| 0 0 0 0|
|00001eb0| 20 30 20 30 20 30 20 30 | 0a 58 30 20 31 20 31 20 | 0 0 0 0|.X0 1 1 |
|00001ec0| 31 20 31 20 30 20 30 20 | 31 20 31 20 31 20 31 20 |1 1 0 0 |1 1 1 1 |
|00001ed0| 30 20 30 20 31 20 31 20 | 31 20 31 20 30 20 30 20 |0 0 1 1 |1 1 0 0 |
|00001ee0| 31 20 31 20 31 20 31 20 | 30 0a 58 30 20 31 20 30 |1 1 1 1 |0.X0 1 0|
|00001ef0| 20 30 20 30 20 30 20 30 | 20 31 20 30 20 30 20 30 | 0 0 0 0| 1 0 0 0|
|00001f00| 20 30 20 30 20 31 20 30 | 20 30 20 30 20 30 20 30 | 0 0 1 0| 0 0 0 0|
|00001f10| 20 31 20 30 20 30 20 31 | 20 30 0a 58 30 20 31 20 | 1 0 0 1| 0.X0 1 |
|00001f20| 31 20 31 20 30 20 30 20 | 30 20 31 20 31 20 31 20 |1 1 0 0 |0 1 1 1 |
|00001f30| 30 20 30 20 30 20 31 20 | 31 20 31 20 30 20 30 20 |0 0 0 1 |1 1 0 0 |
|00001f40| 30 20 31 20 31 20 31 20 | 31 20 30 0a 58 30 20 31 |0 1 1 1 |1 0.X0 1|
|00001f50| 20 30 20 30 20 30 20 30 | 20 30 20 31 20 30 20 30 | 0 0 0 0| 0 1 0 0|
|00001f60| 20 30 20 30 20 30 20 31 | 20 30 20 30 20 30 20 30 | 0 0 0 1| 0 0 0 0|
|00001f70| 20 30 20 31 20 30 20 30 | 20 30 20 30 0a 58 30 20 | 0 1 0 0| 0 0.X0 |
|00001f80| 31 20 30 20 30 20 30 20 | 30 20 30 20 31 20 31 20 |1 0 0 0 |0 0 1 1 |
|00001f90| 31 20 31 20 30 20 30 20 | 31 20 31 20 31 20 31 20 |1 1 0 0 |1 1 1 1 |
|00001fa0| 30 20 30 20 31 20 30 20 | 30 20 30 20 30 0a 58 30 |0 0 1 0 |0 0 0.X0|
|00001fb0| 20 30 20 30 20 30 20 30 | 20 30 20 30 20 30 20 30 | 0 0 0 0| 0 0 0 0|
|00001fc0| 20 30 20 30 20 30 20 30 | 20 30 20 30 20 30 20 30 | 0 0 0 0| 0 0 0 0|
|00001fd0| 20 30 20 30 20 30 20 30 | 20 30 20 30 20 30 0a 58 | 0 0 0 0| 0 0 0.X|
|00001fe0| 2e 66 69 0a 58 2e 50 50 | 0a 58 50 72 6f 67 72 61 |.fi.X.PP|.XProgra|
|00001ff0| 6d 73 20 74 68 61 74 20 | 72 65 61 64 20 74 68 69 |ms that |read thi|
|00002000| 73 20 66 6f 72 6d 61 74 | 20 73 68 6f 75 6c 64 20 |s format| should |
|00002010| 62 65 20 61 73 20 6c 65 | 6e 69 65 6e 74 20 61 73 |be as le|nient as|
|00002020| 20 70 6f 73 73 69 62 6c | 65 2c 0a 58 61 63 63 65 | possibl|e,.Xacce|
|00002030| 70 74 69 6e 67 20 61 6e | 79 74 68 69 6e 67 20 74 |pting an|ything t|
|00002040| 68 61 74 20 6c 6f 6f 6b | 73 20 72 65 6d 6f 74 65 |hat look|s remote|
|00002050| 6c 79 20 6c 69 6b 65 20 | 61 20 62 69 74 6d 61 70 |ly like |a bitmap|
|00002060| 2e 0a 58 2e 53 48 20 22 | 53 45 45 20 41 4c 53 4f |..X.SH "|SEE ALSO|
|00002070| 22 0a 58 62 72 75 73 68 | 74 6f 70 62 6d 28 31 29 |".Xbrush|topbm(1)|
|00002080| 2c 20 63 62 6d 74 6f 70 | 62 6d 28 31 29 2c 20 67 |, cbmtop|bm(1), g|
|00002090| 69 66 74 6f 70 62 6d 28 | 31 29 2c 20 69 63 6f 6e |iftopbm(|1), icon|
|000020a0| 74 6f 70 62 6d 28 31 29 | 2c 20 6d 61 63 70 74 6f |topbm(1)|, macpto|
|000020b0| 70 62 6d 28 31 29 2c 0a | 58 70 62 6d 63 61 74 6c |pbm(1),.|Xpbmcatl|
|000020c0| 72 28 31 29 2c 20 70 62 | 6d 63 61 74 74 62 28 31 |r(1), pb|mcattb(1|
|000020d0| 29 2c 20 70 62 6d 63 72 | 6f 70 28 31 29 2c 20 70 |), pbmcr|op(1), p|
|000020e0| 62 6d 63 75 74 28 31 29 | 2c 20 70 62 6d 65 6e 6c |bmcut(1)|, pbmenl|
|000020f0| 61 72 67 65 28 31 29 2c | 0a 58 70 62 6d 66 6c 69 |arge(1),|.Xpbmfli|
|00002100| 70 6c 72 28 31 29 2c 20 | 70 62 6d 66 6c 69 70 74 |plr(1), |pbmflipt|
|00002110| 62 28 31 29 2c 20 70 62 | 6d 69 6e 76 65 72 74 28 |b(1), pb|minvert(|
|00002120| 31 29 2c 20 70 62 6d 6d | 61 6b 65 28 31 29 2c 20 |1), pbmm|ake(1), |
|00002130| 70 62 6d 70 61 73 74 65 | 28 31 29 2c 0a 58 70 62 |pbmpaste|(1),.Xpb|
|00002140| 6d 74 6f 61 73 63 69 69 | 28 31 29 2c 20 70 62 6d |mtoascii|(1), pbm|
|00002150| 74 6f 63 62 6d 28 31 29 | 2c 20 70 62 6d 74 6f 69 |tocbm(1)|, pbmtoi|
|00002160| 63 6f 6e 28 31 29 2c 20 | 70 62 6d 74 6f 6c 6a 28 |con(1), |pbmtolj(|
|00002170| 31 29 2c 20 70 62 6d 74 | 6f 6d 61 63 70 28 31 29 |1), pbmt|omacp(1)|
|00002180| 2c 0a 58 70 62 6d 74 6f | 70 73 28 31 29 2c 20 70 |,.Xpbmto|ps(1), p|
|00002190| 62 6d 74 6f 70 74 78 28 | 31 29 2c 20 70 62 6d 74 |bmtoptx(|1), pbmt|
|000021a0| 6f 72 61 73 74 28 31 29 | 2c 20 70 62 6d 74 6f 78 |orast(1)|, pbmtox|
|000021b0| 31 30 62 6d 28 31 29 2c | 20 70 62 6d 74 6f 78 31 |10bm(1),| pbmtox1|
|000021c0| 30 77 64 28 31 29 2c 0a | 58 70 62 6d 74 6f 78 62 |0wd(1),.|Xpbmtoxb|
|000021d0| 6d 28 31 29 2c 20 70 62 | 6d 74 6f 78 77 64 28 31 |m(1), pb|mtoxwd(1|
|000021e0| 29 2c 20 70 62 6d 74 72 | 6e 73 70 6f 73 28 31 29 |), pbmtr|nspos(1)|
|000021f0| 2c 20 72 61 73 74 74 6f | 70 62 6d 28 31 29 2c 0a |, rastto|pbm(1),.|
|00002200| 58 78 62 6d 74 6f 70 62 | 6d 28 31 29 2c 20 78 77 |Xxbmtopb|m(1), xw|
|00002210| 64 74 6f 70 62 6d 28 31 | 29 2c 20 78 78 78 74 6f |dtopbm(1|), xxxto|
|00002220| 70 62 6d 28 31 29 0a 58 | 2e 53 48 20 41 55 54 48 |pbm(1).X|.SH AUTH|
|00002230| 4f 52 0a 58 43 6f 70 79 | 72 69 67 68 74 20 28 43 |OR.XCopy|right (C|
|00002240| 29 20 31 39 38 38 20 62 | 79 20 4a 65 66 20 50 6f |) 1988 b|y Jef Po|
|00002250| 73 6b 61 6e 7a 65 72 2e | 0a 58 0a 58 50 65 72 6d |skanzer.|.X.XPerm|
|00002260| 69 73 73 69 6f 6e 20 74 | 6f 20 75 73 65 2c 20 63 |ission t|o use, c|
|00002270| 6f 70 79 2c 20 6d 6f 64 | 69 66 79 2c 20 61 6e 64 |opy, mod|ify, and|
|00002280| 20 64 69 73 74 72 69 62 | 75 74 65 20 74 68 69 73 | distrib|ute this|
|00002290| 20 73 6f 66 74 77 61 72 | 65 20 61 6e 64 20 69 74 | softwar|e and it|
|000022a0| 73 0a 58 64 6f 63 75 6d | 65 6e 74 61 74 69 6f 6e |s.Xdocum|entation|
|000022b0| 20 66 6f 72 20 61 6e 79 | 20 70 75 72 70 6f 73 65 | for any| purpose|
|000022c0| 20 61 6e 64 20 77 69 74 | 68 6f 75 74 20 66 65 65 | and wit|hout fee|
|000022d0| 20 69 73 20 68 65 72 65 | 62 79 20 67 72 61 6e 74 | is here|by grant|
|000022e0| 65 64 2c 20 70 72 6f 76 | 69 64 65 64 0a 58 74 68 |ed, prov|ided.Xth|
|000022f0| 61 74 20 74 68 65 20 61 | 62 6f 76 65 20 63 6f 70 |at the a|bove cop|
|00002300| 79 72 69 67 68 74 20 6e | 6f 74 69 63 65 20 61 70 |yright n|otice ap|
|00002310| 70 65 61 72 20 69 6e 20 | 61 6c 6c 20 63 6f 70 69 |pear in |all copi|
|00002320| 65 73 20 61 6e 64 20 74 | 68 61 74 20 62 6f 74 68 |es and t|hat both|
|00002330| 20 74 68 61 74 0a 58 63 | 6f 70 79 72 69 67 68 74 | that.Xc|opyright|
|00002340| 20 6e 6f 74 69 63 65 20 | 61 6e 64 20 74 68 69 73 | notice |and this|
|00002350| 20 70 65 72 6d 69 73 73 | 69 6f 6e 20 6e 6f 74 69 | permiss|ion noti|
|00002360| 63 65 20 61 70 70 65 61 | 72 20 69 6e 20 73 75 70 |ce appea|r in sup|
|00002370| 70 6f 72 74 69 6e 67 0a | 58 64 6f 63 75 6d 65 6e |porting.|Xdocumen|
|00002380| 74 61 74 69 6f 6e 2e 20 | 20 54 68 69 73 20 73 6f |tation. | This so|
|00002390| 66 74 77 61 72 65 20 69 | 73 20 70 72 6f 76 69 64 |ftware i|s provid|
|000023a0| 65 64 20 22 61 73 20 69 | 73 22 20 77 69 74 68 6f |ed "as i|s" witho|
|000023b0| 75 74 20 65 78 70 72 65 | 73 73 20 6f 72 0a 58 69 |ut expre|ss or.Xi|
|000023c0| 6d 70 6c 69 65 64 20 77 | 61 72 72 61 6e 74 79 2e |mplied w|arranty.|
|000023d0| 0a 53 48 41 52 5f 45 4f | 46 0a 69 66 20 74 65 73 |.SHAR_EO|F.if tes|
|000023e0| 74 20 32 35 30 30 20 2d | 6e 65 20 22 60 77 63 20 |t 2500 -|ne "`wc |
|000023f0| 2d 63 20 3c 20 27 70 62 | 6d 2e 35 27 60 22 0a 74 |-c < 'pb|m.5'`".t|
|00002400| 68 65 6e 0a 09 65 63 68 | 6f 20 73 68 61 72 3a 20 |hen..ech|o shar: |
|00002410| 65 72 72 6f 72 20 74 72 | 61 6e 73 6d 69 74 74 69 |error tr|ansmitti|
|00002420| 6e 67 20 22 27 70 62 6d | 2e 35 27 22 20 27 28 73 |ng "'pbm|.5'" '(s|
|00002430| 68 6f 75 6c 64 20 68 61 | 76 65 20 62 65 65 6e 20 |hould ha|ve been |
|00002440| 32 35 30 30 20 63 68 61 | 72 61 63 74 65 72 73 29 |2500 cha|racters)|
|00002450| 27 0a 66 69 0a 66 69 20 | 23 20 65 6e 64 20 6f 66 |'.fi.fi |# end of|
|00002460| 20 6f 76 65 72 77 72 69 | 74 69 6e 67 20 63 68 65 | overwri|ting che|
|00002470| 63 6b 0a 65 63 68 6f 20 | 73 68 61 72 3a 20 65 78 |ck.echo |shar: ex|
|00002480| 74 72 61 63 74 69 6e 67 | 20 22 27 62 6d 61 6c 69 |tracting| "'bmali|
|00002490| 61 73 65 73 27 22 20 27 | 28 33 38 36 20 63 68 61 |ases'" '|(386 cha|
|000024a0| 72 61 63 74 65 72 73 29 | 27 0a 69 66 20 74 65 73 |racters)|'.if tes|
|000024b0| 74 20 2d 66 20 27 62 6d | 61 6c 69 61 73 65 73 27 |t -f 'bm|aliases'|
|000024c0| 0a 74 68 65 6e 0a 09 65 | 63 68 6f 20 73 68 61 72 |.then..e|cho shar|
|000024d0| 3a 20 77 69 6c 6c 20 6e | 6f 74 20 6f 76 65 72 2d |: will n|ot over-|
|000024e0| 77 72 69 74 65 20 65 78 | 69 73 74 69 6e 67 20 66 |write ex|isting f|
|000024f0| 69 6c 65 20 22 27 62 6d | 61 6c 69 61 73 65 73 27 |ile "'bm|aliases'|
|00002500| 22 0a 65 6c 73 65 0a 73 | 65 64 20 27 73 2f 5e 58 |".else.s|ed 's/^X|
|00002510| 2f 2f 27 20 3c 3c 20 5c | 53 48 41 52 5f 45 4f 46 |//' << \|SHAR_EOF|
|00002520| 20 3e 20 27 62 6d 61 6c | 69 61 73 65 73 27 0a 58 | > 'bmal|iases'.X|
|00002530| 23 20 54 68 69 73 20 73 | 63 72 69 70 74 20 6d 75 |# This s|cript mu|
|00002540| 73 74 20 62 65 20 73 6f | 75 72 63 65 64 20 2d 20 |st be so|urced - |
|00002550| 69 74 20 77 69 6c 6c 20 | 6e 6f 74 20 77 6f 72 6b |it will |not work|
|00002560| 20 69 66 20 79 6f 75 20 | 72 75 6e 20 69 74 20 69 | if you |run it i|
|00002570| 6e 20 61 20 73 75 62 2d | 73 68 65 6c 6c 2e 0a 58 |n a sub-|shell..X|
|00002580| 0a 58 73 65 74 20 5f 74 | 6f 5f 6f 6e 6c 79 3d 22 |.Xset _t|o_only="|
|00002590| 61 73 63 69 69 20 6c 6a | 20 70 73 20 70 74 78 20 |ascii lj| ps ptx |
|000025a0| 78 31 30 62 6d 20 78 31 | 30 77 64 22 0a 58 73 65 |x10bm x1|0wd".Xse|
|000025b0| 74 20 5f 66 72 6f 6d 5f | 6f 6e 6c 79 3d 22 62 72 |t _from_|only="br|
|000025c0| 75 73 68 20 67 69 66 20 | 78 78 78 22 0a 58 73 65 |ush gif |xxx".Xse|
|000025d0| 74 20 5f 62 6f 74 68 3d | 22 63 62 6d 20 69 63 6f |t _both=|"cbm ico|
|000025e0| 6e 20 6d 61 63 70 20 72 | 61 73 74 20 78 62 6d 20 |n macp r|ast xbm |
|000025f0| 78 77 64 22 0a 58 0a 58 | 66 6f 72 65 61 63 68 20 |xwd".X.X|foreach |
|00002600| 69 20 28 20 24 5f 62 6f | 74 68 20 24 5f 66 72 6f |i ( $_bo|th $_fro|
|00002610| 6d 5f 6f 6e 6c 79 20 29 | 0a 58 20 20 20 20 66 6f |m_only )|.X fo|
|00002620| 72 65 61 63 68 20 6a 20 | 28 20 24 5f 62 6f 74 68 |reach j |( $_both|
|00002630| 20 24 5f 74 6f 5f 6f 6e | 6c 79 20 29 0a 58 09 69 | $_to_on|ly ).X.i|
|00002640| 66 20 28 20 24 69 20 21 | 3d 20 24 6a 20 29 20 74 |f ( $i !|= $j ) t|
|00002650| 68 65 6e 0a 58 09 20 20 | 20 20 61 6c 69 61 73 20 |hen.X. | alias |
|00002660| 24 7b 69 7d 74 6f 24 7b | 6a 7d 20 22 28 20 24 7b |${i}to${|j} "( ${|
|00002670| 69 7d 74 6f 70 62 6d 20 | 7c 20 70 62 6d 74 6f 24 |i}topbm || pbmto$|
|00002680| 7b 6a 7d 20 29 22 0a 58 | 09 65 6e 64 69 66 0a 58 |{j} )".X|.endif.X|
|00002690| 20 20 20 20 65 6e 64 0a | 58 65 6e 64 0a 58 0a 58 | end.|Xend.X.X|
|000026a0| 75 6e 73 65 74 20 5f 74 | 6f 5f 6f 6e 6c 79 20 5f |unset _t|o_only _|
|000026b0| 66 72 6f 6d 5f 6f 6e 6c | 79 20 5f 62 6f 74 68 0a |from_onl|y _both.|
|000026c0| 53 48 41 52 5f 45 4f 46 | 0a 69 66 20 74 65 73 74 |SHAR_EOF|.if test|
|000026d0| 20 33 38 36 20 2d 6e 65 | 20 22 60 77 63 20 2d 63 | 386 -ne| "`wc -c|
|000026e0| 20 3c 20 27 62 6d 61 6c | 69 61 73 65 73 27 60 22 | < 'bmal|iases'`"|
|000026f0| 0a 74 68 65 6e 0a 09 65 | 63 68 6f 20 73 68 61 72 |.then..e|cho shar|
|00002700| 3a 20 65 72 72 6f 72 20 | 74 72 61 6e 73 6d 69 74 |: error |transmit|
|00002710| 74 69 6e 67 20 22 27 62 | 6d 61 6c 69 61 73 65 73 |ting "'b|maliases|
|00002720| 27 22 20 27 28 73 68 6f | 75 6c 64 20 68 61 76 65 |'" '(sho|uld have|
|00002730| 20 62 65 65 6e 20 33 38 | 36 20 63 68 61 72 61 63 | been 38|6 charac|
|00002740| 74 65 72 73 29 27 0a 66 | 69 0a 66 69 20 23 20 65 |ters)'.f|i.fi # e|
|00002750| 6e 64 20 6f 66 20 6f 76 | 65 72 77 72 69 74 69 6e |nd of ov|erwritin|
|00002760| 67 20 63 68 65 63 6b 0a | 65 63 68 6f 20 73 68 61 |g check.|echo sha|
|00002770| 72 3a 20 65 78 74 72 61 | 63 74 69 6e 67 20 22 27 |r: extra|cting "'|
|00002780| 62 69 74 72 65 76 65 72 | 73 65 2e 68 27 22 20 27 |bitrever|se.h'" '|
|00002790| 28 31 39 39 32 20 63 68 | 61 72 61 63 74 65 72 73 |(1992 ch|aracters|
|000027a0| 29 27 0a 69 66 20 74 65 | 73 74 20 2d 66 20 27 62 |)'.if te|st -f 'b|
|000027b0| 69 74 72 65 76 65 72 73 | 65 2e 68 27 0a 74 68 65 |itrevers|e.h'.the|
|000027c0| 6e 0a 09 65 63 68 6f 20 | 73 68 61 72 3a 20 77 69 |n..echo |shar: wi|
|000027d0| 6c 6c 20 6e 6f 74 20 6f | 76 65 72 2d 77 72 69 74 |ll not o|ver-writ|
|000027e0| 65 20 65 78 69 73 74 69 | 6e 67 20 66 69 6c 65 20 |e existi|ng file |
|000027f0| 22 27 62 69 74 72 65 76 | 65 72 73 65 2e 68 27 22 |"'bitrev|erse.h'"|
|00002800| 0a 65 6c 73 65 0a 73 65 | 64 20 27 73 2f 5e 58 2f |.else.se|d 's/^X/|
|00002810| 2f 27 20 3c 3c 20 5c 53 | 48 41 52 5f 45 4f 46 20 |/' << \S|HAR_EOF |
|00002820| 3e 20 27 62 69 74 72 65 | 76 65 72 73 65 2e 68 27 |> 'bitre|verse.h'|
|00002830| 0a 58 2f 2a 0a 58 2a 2a | 20 62 69 74 72 65 76 65 |.X/*.X**| bitreve|
|00002840| 72 73 65 2e 68 0a 58 2a | 2a 0a 58 2a 2a 20 54 68 |rse.h.X*|*.X** Th|
|00002850| 69 73 20 70 61 72 74 69 | 63 75 6c 61 72 20 61 72 |is parti|cular ar|
|00002860| 72 61 79 20 73 65 65 6d | 73 20 74 6f 20 62 65 20 |ray seem|s to be |
|00002870| 75 73 65 66 75 6c 20 69 | 6e 20 61 20 6c 6f 74 20 |useful i|n a lot |
|00002880| 6f 66 20 62 69 74 6d 61 | 70 0a 58 2a 2a 20 63 6f |of bitma|p.X** co|
|00002890| 6e 76 65 72 73 69 6f 6e | 20 70 72 6f 67 72 61 6d |nversion| program|
|000028a0| 73 2e 20 20 49 74 27 73 | 20 6e 6f 74 20 75 73 65 |s. It's| not use|
|000028b0| 64 20 69 6e 20 70 62 6d | 20 62 65 63 61 75 73 65 |d in pbm| because|
|000028c0| 20 62 69 74 73 20 61 72 | 65 0a 58 2a 2a 20 73 74 | bits ar|e.X** st|
|000028d0| 6f 72 65 64 20 6f 6e 65 | 20 70 65 72 20 62 79 74 |ored one| per byt|
|000028e0| 65 2c 20 66 6f 72 20 65 | 61 73 69 65 72 20 6d 61 |e, for e|asier ma|
|000028f0| 6e 69 70 75 6c 61 74 69 | 6f 6e 2e 20 20 42 75 74 |nipulati|on. But|
|00002900| 20 69 66 20 79 6f 75 20 | 77 61 6e 74 65 64 0a 58 | if you |wanted.X|
|00002910| 2a 2a 20 74 6f 20 77 72 | 69 74 65 2c 20 66 6f 72 |** to wr|ite, for|
|00002920| 20 65 78 61 6d 70 6c 65 | 2c 20 61 20 70 72 6f 67 | example|, a prog|
|00002930| 72 61 6d 20 74 6f 20 64 | 69 72 65 63 74 6c 79 20 |ram to d|irectly |
|00002940| 63 6f 6e 76 65 72 74 20 | 53 75 6e 20 72 61 73 74 |convert |Sun rast|
|00002950| 65 72 0a 58 2a 2a 20 66 | 6f 72 6d 61 74 20 69 6e |er.X** f|ormat in|
|00002960| 74 6f 20 58 20 62 69 74 | 6d 61 70 73 2c 20 79 6f |to X bit|maps, yo|
|00002970| 75 20 63 6f 75 6c 64 20 | 75 73 65 20 74 68 69 73 |u could |use this|
|00002980| 2e 0a 58 2a 2f 0a 58 0a | 58 75 6e 73 69 67 6e 65 |..X*/.X.|Xunsigne|
|00002990| 64 20 63 68 61 72 20 62 | 69 74 72 65 76 65 72 73 |d char b|itrevers|
|000029a0| 65 5b 32 35 36 5d 20 3d | 20 7b 0a 58 20 20 20 20 |e[256] =| {.X |
|000029b0| 30 78 30 30 2c 20 30 78 | 38 30 2c 20 30 78 34 30 |0x00, 0x|80, 0x40|
|000029c0| 2c 20 30 78 63 30 2c 20 | 30 78 32 30 2c 20 30 78 |, 0xc0, |0x20, 0x|
|000029d0| 61 30 2c 20 30 78 36 30 | 2c 20 30 78 65 30 2c 20 |a0, 0x60|, 0xe0, |
|000029e0| 30 78 31 30 2c 20 30 78 | 39 30 2c 20 30 78 35 30 |0x10, 0x|90, 0x50|
|000029f0| 2c 20 30 78 64 30 2c 0a | 58 20 20 20 20 30 78 33 |, 0xd0,.|X 0x3|
|00002a00| 30 2c 20 30 78 62 30 2c | 20 30 78 37 30 2c 20 30 |0, 0xb0,| 0x70, 0|
|00002a10| 78 66 30 2c 20 30 78 30 | 38 2c 20 30 78 38 38 2c |xf0, 0x0|8, 0x88,|
|00002a20| 20 30 78 34 38 2c 20 30 | 78 63 38 2c 20 30 78 32 | 0x48, 0|xc8, 0x2|
|00002a30| 38 2c 20 30 78 61 38 2c | 20 30 78 36 38 2c 20 30 |8, 0xa8,| 0x68, 0|
|00002a40| 78 65 38 2c 0a 58 20 20 | 20 20 30 78 31 38 2c 20 |xe8,.X | 0x18, |
|00002a50| 30 78 39 38 2c 20 30 78 | 35 38 2c 20 30 78 64 38 |0x98, 0x|58, 0xd8|
|00002a60| 2c 20 30 78 33 38 2c 20 | 30 78 62 38 2c 20 30 78 |, 0x38, |0xb8, 0x|
|00002a70| 37 38 2c 20 30 78 66 38 | 2c 20 30 78 30 34 2c 20 |78, 0xf8|, 0x04, |
|00002a80| 30 78 38 34 2c 20 30 78 | 34 34 2c 20 30 78 63 34 |0x84, 0x|44, 0xc4|
|00002a90| 2c 0a 58 20 20 20 20 30 | 78 32 34 2c 20 30 78 61 |,.X 0|x24, 0xa|
|00002aa0| 34 2c 20 30 78 36 34 2c | 20 30 78 65 34 2c 20 30 |4, 0x64,| 0xe4, 0|
|00002ab0| 78 31 34 2c 20 30 78 39 | 34 2c 20 30 78 35 34 2c |x14, 0x9|4, 0x54,|
|00002ac0| 20 30 78 64 34 2c 20 30 | 78 33 34 2c 20 30 78 62 | 0xd4, 0|x34, 0xb|
|00002ad0| 34 2c 20 30 78 37 34 2c | 20 30 78 66 34 2c 0a 58 |4, 0x74,| 0xf4,.X|
|00002ae0| 20 20 20 20 30 78 30 63 | 2c 20 30 78 38 63 2c 20 | 0x0c|, 0x8c, |
|00002af0| 30 78 34 63 2c 20 30 78 | 63 63 2c 20 30 78 32 63 |0x4c, 0x|cc, 0x2c|
|00002b00| 2c 20 30 78 61 63 2c 20 | 30 78 36 63 2c 20 30 78 |, 0xac, |0x6c, 0x|
|00002b10| 65 63 2c 20 30 78 31 63 | 2c 20 30 78 39 63 2c 20 |ec, 0x1c|, 0x9c, |
|00002b20| 30 78 35 63 2c 20 30 78 | 64 63 2c 0a 58 20 20 20 |0x5c, 0x|dc,.X |
|00002b30| 20 30 78 33 63 2c 20 30 | 78 62 63 2c 20 30 78 37 | 0x3c, 0|xbc, 0x7|
|00002b40| 63 2c 20 30 78 66 63 2c | 20 30 78 30 32 2c 20 30 |c, 0xfc,| 0x02, 0|
|00002b50| 78 38 32 2c 20 30 78 34 | 32 2c 20 30 78 63 32 2c |x82, 0x4|2, 0xc2,|
|00002b60| 20 30 78 32 32 2c 20 30 | 78 61 32 2c 20 30 78 36 | 0x22, 0|xa2, 0x6|
|00002b70| 32 2c 20 30 78 65 32 2c | 0a 58 20 20 20 20 30 78 |2, 0xe2,|.X 0x|
|00002b80| 31 32 2c 20 30 78 39 32 | 2c 20 30 78 35 32 2c 20 |12, 0x92|, 0x52, |
|00002b90| 30 78 64 32 2c 20 30 78 | 33 32 2c 20 30 78 62 32 |0xd2, 0x|32, 0xb2|
|00002ba0| 2c 20 30 78 37 32 2c 20 | 30 78 66 32 2c 20 30 78 |, 0x72, |0xf2, 0x|
|00002bb0| 30 61 2c 20 30 78 38 61 | 2c 20 30 78 34 61 2c 20 |0a, 0x8a|, 0x4a, |
|00002bc0| 30 78 63 61 2c 0a 58 20 | 20 20 20 30 78 32 61 2c |0xca,.X | 0x2a,|
|00002bd0| 20 30 78 61 61 2c 20 30 | 78 36 61 2c 20 30 78 65 | 0xaa, 0|x6a, 0xe|
|00002be0| 61 2c 20 30 78 31 61 2c | 20 30 78 39 61 2c 20 30 |a, 0x1a,| 0x9a, 0|
|00002bf0| 78 35 61 2c 20 30 78 64 | 61 2c 20 30 78 33 61 2c |x5a, 0xd|a, 0x3a,|
|00002c00| 20 30 78 62 61 2c 20 30 | 78 37 61 2c 20 30 78 66 | 0xba, 0|x7a, 0xf|
|00002c10| 61 2c 0a 58 20 20 20 20 | 30 78 30 36 2c 20 30 78 |a,.X |0x06, 0x|
|00002c20| 38 36 2c 20 30 78 34 36 | 2c 20 30 78 63 36 2c 20 |86, 0x46|, 0xc6, |
|00002c30| 30 78 32 36 2c 20 30 78 | 61 36 2c 20 30 78 36 36 |0x26, 0x|a6, 0x66|
|00002c40| 2c 20 30 78 65 36 2c 20 | 30 78 31 36 2c 20 30 78 |, 0xe6, |0x16, 0x|
|00002c50| 39 36 2c 20 30 78 35 36 | 2c 20 30 78 64 36 2c 0a |96, 0x56|, 0xd6,.|
|00002c60| 58 20 20 20 20 30 78 33 | 36 2c 20 30 78 62 36 2c |X 0x3|6, 0xb6,|
|00002c70| 20 30 78 37 36 2c 20 30 | 78 66 36 2c 20 30 78 30 | 0x76, 0|xf6, 0x0|
|00002c80| 65 2c 20 30 78 38 65 2c | 20 30 78 34 65 2c 20 30 |e, 0x8e,| 0x4e, 0|
|00002c90| 78 63 65 2c 20 30 78 32 | 65 2c 20 30 78 61 65 2c |xce, 0x2|e, 0xae,|
|00002ca0| 20 30 78 36 65 2c 20 30 | 78 65 65 2c 0a 58 20 20 | 0x6e, 0|xee,.X |
|00002cb0| 20 20 30 78 31 65 2c 20 | 30 78 39 65 2c 20 30 78 | 0x1e, |0x9e, 0x|
|00002cc0| 35 65 2c 20 30 78 64 65 | 2c 20 30 78 33 65 2c 20 |5e, 0xde|, 0x3e, |
|00002cd0| 30 78 62 65 2c 20 30 78 | 37 65 2c 20 30 78 66 65 |0xbe, 0x|7e, 0xfe|
|00002ce0| 2c 20 30 78 30 31 2c 20 | 30 78 38 31 2c 20 30 78 |, 0x01, |0x81, 0x|
|00002cf0| 34 31 2c 20 30 78 63 31 | 2c 0a 58 20 20 20 20 30 |41, 0xc1|,.X 0|
|00002d00| 78 32 31 2c 20 30 78 61 | 31 2c 20 30 78 36 31 2c |x21, 0xa|1, 0x61,|
|00002d10| 20 30 78 65 31 2c 20 30 | 78 31 31 2c 20 30 78 39 | 0xe1, 0|x11, 0x9|
|00002d20| 31 2c 20 30 78 35 31 2c | 20 30 78 64 31 2c 20 30 |1, 0x51,| 0xd1, 0|
|00002d30| 78 33 31 2c 20 30 78 62 | 31 2c 20 30 78 37 31 2c |x31, 0xb|1, 0x71,|
|00002d40| 20 30 78 66 31 2c 0a 58 | 20 20 20 20 30 78 30 39 | 0xf1,.X| 0x09|
|00002d50| 2c 20 30 78 38 39 2c 20 | 30 78 34 39 2c 20 30 78 |, 0x89, |0x49, 0x|
|00002d60| 63 39 2c 20 30 78 32 39 | 2c 20 30 78 61 39 2c 20 |c9, 0x29|, 0xa9, |
|00002d70| 30 78 36 39 2c 20 30 78 | 65 39 2c 20 30 78 31 39 |0x69, 0x|e9, 0x19|
|00002d80| 2c 20 30 78 39 39 2c 20 | 30 78 35 39 2c 20 30 78 |, 0x99, |0x59, 0x|
|00002d90| 64 39 2c 0a 58 20 20 20 | 20 30 78 33 39 2c 20 30 |d9,.X | 0x39, 0|
|00002da0| 78 62 39 2c 20 30 78 37 | 39 2c 20 30 78 66 39 2c |xb9, 0x7|9, 0xf9,|
|00002db0| 20 30 78 30 35 2c 20 30 | 78 38 35 2c 20 30 78 34 | 0x05, 0|x85, 0x4|
|00002dc0| 35 2c 20 30 78 63 35 2c | 20 30 78 32 35 2c 20 30 |5, 0xc5,| 0x25, 0|
|00002dd0| 78 61 35 2c 20 30 78 36 | 35 2c 20 30 78 65 35 2c |xa5, 0x6|5, 0xe5,|
|00002de0| 0a 58 20 20 20 20 30 78 | 31 35 2c 20 30 78 39 35 |.X 0x|15, 0x95|
|00002df0| 2c 20 30 78 35 35 2c 20 | 30 78 64 35 2c 20 30 78 |, 0x55, |0xd5, 0x|
|00002e00| 33 35 2c 20 30 78 62 35 | 2c 20 30 78 37 35 2c 20 |35, 0xb5|, 0x75, |
|00002e10| 30 78 66 35 2c 20 30 78 | 30 64 2c 20 30 78 38 64 |0xf5, 0x|0d, 0x8d|
|00002e20| 2c 20 30 78 34 64 2c 20 | 30 78 63 64 2c 0a 58 20 |, 0x4d, |0xcd,.X |
|00002e30| 20 20 20 30 78 32 64 2c | 20 30 78 61 64 2c 20 30 | 0x2d,| 0xad, 0|
|00002e40| 78 36 64 2c 20 30 78 65 | 64 2c 20 30 78 31 64 2c |x6d, 0xe|d, 0x1d,|
|00002e50| 20 30 78 39 64 2c 20 30 | 78 35 64 2c 20 30 78 64 | 0x9d, 0|x5d, 0xd|
|00002e60| 64 2c 20 30 78 33 64 2c | 20 30 78 62 64 2c 20 30 |d, 0x3d,| 0xbd, 0|
|00002e70| 78 37 64 2c 20 30 78 66 | 64 2c 0a 58 20 20 20 20 |x7d, 0xf|d,.X |
|00002e80| 30 78 30 33 2c 20 30 78 | 38 33 2c 20 30 78 34 33 |0x03, 0x|83, 0x43|
|00002e90| 2c 20 30 78 63 33 2c 20 | 30 78 32 33 2c 20 30 78 |, 0xc3, |0x23, 0x|
|00002ea0| 61 33 2c 20 30 78 36 33 | 2c 20 30 78 65 33 2c 20 |a3, 0x63|, 0xe3, |
|00002eb0| 30 78 31 33 2c 20 30 78 | 39 33 2c 20 30 78 35 33 |0x13, 0x|93, 0x53|
|00002ec0| 2c 20 30 78 64 33 2c 0a | 58 20 20 20 20 30 78 33 |, 0xd3,.|X 0x3|
|00002ed0| 33 2c 20 30 78 62 33 2c | 20 30 78 37 33 2c 20 30 |3, 0xb3,| 0x73, 0|
|00002ee0| 78 66 33 2c 20 30 78 30 | 62 2c 20 30 78 38 62 2c |xf3, 0x0|b, 0x8b,|
|00002ef0| 20 30 78 34 62 2c 20 30 | 78 63 62 2c 20 30 78 32 | 0x4b, 0|xcb, 0x2|
|00002f00| 62 2c 20 30 78 61 62 2c | 20 30 78 36 62 2c 20 30 |b, 0xab,| 0x6b, 0|
|00002f10| 78 65 62 2c 0a 58 20 20 | 20 20 30 78 31 62 2c 20 |xeb,.X | 0x1b, |
|00002f20| 30 78 39 62 2c 20 30 78 | 35 62 2c 20 30 78 64 62 |0x9b, 0x|5b, 0xdb|
|00002f30| 2c 20 30 78 33 62 2c 20 | 30 78 62 62 2c 20 30 78 |, 0x3b, |0xbb, 0x|
|00002f40| 37 62 2c 20 30 78 66 62 | 2c 20 30 78 30 37 2c 20 |7b, 0xfb|, 0x07, |
|00002f50| 30 78 38 37 2c 20 30 78 | 34 37 2c 20 30 78 63 37 |0x87, 0x|47, 0xc7|
|00002f60| 2c 0a 58 20 20 20 20 30 | 78 32 37 2c 20 30 78 61 |,.X 0|x27, 0xa|
|00002f70| 37 2c 20 30 78 36 37 2c | 20 30 78 65 37 2c 20 30 |7, 0x67,| 0xe7, 0|
|00002f80| 78 31 37 2c 20 30 78 39 | 37 2c 20 30 78 35 37 2c |x17, 0x9|7, 0x57,|
|00002f90| 20 30 78 64 37 2c 20 30 | 78 33 37 2c 20 30 78 62 | 0xd7, 0|x37, 0xb|
|00002fa0| 37 2c 20 30 78 37 37 2c | 20 30 78 66 37 2c 0a 58 |7, 0x77,| 0xf7,.X|
|00002fb0| 20 20 20 20 30 78 30 66 | 2c 20 30 78 38 66 2c 20 | 0x0f|, 0x8f, |
|00002fc0| 30 78 34 66 2c 20 30 78 | 63 66 2c 20 30 78 32 66 |0x4f, 0x|cf, 0x2f|
|00002fd0| 2c 20 30 78 61 66 2c 20 | 30 78 36 66 2c 20 30 78 |, 0xaf, |0x6f, 0x|
|00002fe0| 65 66 2c 20 30 78 31 66 | 2c 20 30 78 39 66 2c 20 |ef, 0x1f|, 0x9f, |
|00002ff0| 30 78 35 66 2c 20 30 78 | 64 66 2c 0a 58 20 20 20 |0x5f, 0x|df,.X |
|00003000| 20 30 78 33 66 2c 20 30 | 78 62 66 2c 20 30 78 37 | 0x3f, 0|xbf, 0x7|
|00003010| 66 2c 20 30 78 66 66 7d | 3b 0a 53 48 41 52 5f 45 |f, 0xff}|;.SHAR_E|
|00003020| 4f 46 0a 69 66 20 74 65 | 73 74 20 31 39 39 32 20 |OF.if te|st 1992 |
|00003030| 2d 6e 65 20 22 60 77 63 | 20 2d 63 20 3c 20 27 62 |-ne "`wc| -c < 'b|
|00003040| 69 74 72 65 76 65 72 73 | 65 2e 68 27 60 22 0a 74 |itrevers|e.h'`".t|
|00003050| 68 65 6e 0a 09 65 63 68 | 6f 20 73 68 61 72 3a 20 |hen..ech|o shar: |
|00003060| 65 72 72 6f 72 20 74 72 | 61 6e 73 6d 69 74 74 69 |error tr|ansmitti|
|00003070| 6e 67 20 22 27 62 69 74 | 72 65 76 65 72 73 65 2e |ng "'bit|reverse.|
|00003080| 68 27 22 20 27 28 73 68 | 6f 75 6c 64 20 68 61 76 |h'" '(sh|ould hav|
|00003090| 65 20 62 65 65 6e 20 31 | 39 39 32 20 63 68 61 72 |e been 1|992 char|
|000030a0| 61 63 74 65 72 73 29 27 | 0a 66 69 0a 66 69 20 23 |acters)'|.fi.fi #|
|000030b0| 20 65 6e 64 20 6f 66 20 | 6f 76 65 72 77 72 69 74 | end of |overwrit|
|000030c0| 69 6e 67 20 63 68 65 63 | 6b 0a 23 09 45 6e 64 20 |ing chec|k.#.End |
|000030d0| 6f 66 20 73 68 65 6c 6c | 20 61 72 63 68 69 76 65 |of shell| archive|
|000030e0| 0a 65 78 69 74 20 30 0a | |.exit 0.| |
+--------+-------------------------+-------------------------+--------+--------+