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
| SHell self-extracting ARchive (archive/shar)
| magic
| Supported |
100%
| dexvert
| LaTeX Document (document/latex)
| magic
| Supported |
1%
| dexvert
| Text File (text/txt)
| fallback
| Supported |
100%
| file
| LaTeX document text
| default
| |
99%
| file
| LaTeX document, ASCII text
| default
| |
100%
| checkBytes
| Printable ASCII
| default
| |
100%
| perlTextCheck
| Likely Text (Perl)
| default
| |
100%
| siegfried
| fmt/329 Shell Archive Format
| default
| |
100%
| detectItEasy
| Format: plain text[LF]
| default (weak)
|
|
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 4e 65 77 73 67 72 6f 75 | 70 73 3a 20 63 6f 6d 70 |Newsgrou|ps: comp|
|00000010| 2e 73 6f 75 72 63 65 73 | 2e 6d 69 73 63 0a 46 72 |.sources|.misc.Fr|
|00000020| 6f 6d 3a 20 52 61 79 73 | 68 61 64 65 20 43 6f 6e |om: Rays|hade Con|
|00000030| 73 74 72 75 63 74 69 6f | 6e 20 43 6f 2e 20 3c 72 |structio|n Co. <r|
|00000040| 61 79 73 68 61 64 65 40 | 77 65 65 64 65 61 74 65 |ayshade@|weedeate|
|00000050| 72 2e 6d 61 74 68 2e 59 | 41 4c 45 2e 45 44 55 3e |r.math.Y|ALE.EDU>|
|00000060| 0a 53 75 62 6a 65 63 74 | 3a 20 20 76 32 31 69 30 |.Subject|: v21i0|
|00000070| 30 36 3a 20 20 72 61 79 | 73 68 61 64 65 20 2d 20 |06: ray|shade - |
|00000080| 41 20 72 61 79 74 72 61 | 63 69 6e 67 20 70 61 63 |A raytra|cing pac|
|00000090| 6b 61 67 65 20 66 6f 72 | 20 55 4e 49 58 2c 20 50 |kage for| UNIX, P|
|000000a0| 61 72 74 30 33 2f 31 39 | 0a 4d 65 73 73 61 67 65 |art03/19|.Message|
|000000b0| 2d 49 44 3a 20 3c 31 39 | 39 31 4a 75 6c 32 30 2e |-ID: <19|91Jul20.|
|000000c0| 30 34 33 33 34 35 2e 31 | 31 32 39 31 40 73 70 61 |043345.1|1291@spa|
|000000d0| 72 6b 79 2e 49 4d 44 2e | 53 74 65 72 6c 69 6e 67 |rky.IMD.|Sterling|
|000000e0| 2e 43 4f 4d 3e 0a 58 2d | 4d 64 34 2d 53 69 67 6e |.COM>.X-|Md4-Sign|
|000000f0| 61 74 75 72 65 3a 20 38 | 34 35 30 33 35 36 66 62 |ature: 8|450356fb|
|00000100| 33 32 36 31 37 39 62 65 | 64 34 32 31 39 34 62 64 |326179be|d42194bd|
|00000110| 62 61 35 39 39 32 65 0a | 44 61 74 65 3a 20 53 61 |ba5992e.|Date: Sa|
|00000120| 74 2c 20 32 30 20 4a 75 | 6c 20 31 39 39 31 20 30 |t, 20 Ju|l 1991 0|
|00000130| 34 3a 33 33 3a 34 35 20 | 47 4d 54 0a 41 70 70 72 |4:33:45 |GMT.Appr|
|00000140| 6f 76 65 64 3a 20 6b 65 | 6e 74 40 73 70 61 72 6b |oved: ke|nt@spark|
|00000150| 79 2e 69 6d 64 2e 73 74 | 65 72 6c 69 6e 67 2e 63 |y.imd.st|erling.c|
|00000160| 6f 6d 0a 0a 53 75 62 6d | 69 74 74 65 64 2d 62 79 |om..Subm|itted-by|
|00000170| 3a 20 52 61 79 73 68 61 | 64 65 20 43 6f 6e 73 74 |: Raysha|de Const|
|00000180| 72 75 63 74 69 6f 6e 20 | 43 6f 2e 20 3c 72 61 79 |ruction |Co. <ray|
|00000190| 73 68 61 64 65 40 77 65 | 65 64 65 61 74 65 72 2e |shade@we|edeater.|
|000001a0| 6d 61 74 68 2e 59 41 4c | 45 2e 45 44 55 3e 0a 50 |math.YAL|E.EDU>.P|
|000001b0| 6f 73 74 69 6e 67 2d 6e | 75 6d 62 65 72 3a 20 56 |osting-n|umber: V|
|000001c0| 6f 6c 75 6d 65 20 32 31 | 2c 20 49 73 73 75 65 20 |olume 21|, Issue |
|000001d0| 36 0a 41 72 63 68 69 76 | 65 2d 6e 61 6d 65 3a 20 |6.Archiv|e-name: |
|000001e0| 72 61 79 73 68 61 64 65 | 2f 70 61 72 74 30 33 0a |rayshade|/part03.|
|000001f0| 45 6e 76 69 72 6f 6e 6d | 65 6e 74 3a 20 55 4e 49 |Environm|ent: UNI|
|00000200| 58 2c 20 21 31 36 42 49 | 54 0a 0a 23 21 20 2f 62 |X, !16BI|T..#! /b|
|00000210| 69 6e 2f 73 68 0a 23 20 | 54 68 69 73 20 69 73 20 |in/sh.# |This is |
|00000220| 61 20 73 68 65 6c 6c 20 | 61 72 63 68 69 76 65 2e |a shell |archive.|
|00000230| 20 20 52 65 6d 6f 76 65 | 20 61 6e 79 74 68 69 6e | Remove| anythin|
|00000240| 67 20 62 65 66 6f 72 65 | 20 74 68 69 73 20 6c 69 |g before| this li|
|00000250| 6e 65 2c 20 74 68 65 6e | 20 75 6e 70 61 63 6b 0a |ne, then| unpack.|
|00000260| 23 20 69 74 20 62 79 20 | 73 61 76 69 6e 67 20 69 |# it by |saving i|
|00000270| 74 20 69 6e 74 6f 20 61 | 20 66 69 6c 65 20 61 6e |t into a| file an|
|00000280| 64 20 74 79 70 69 6e 67 | 20 22 73 68 20 66 69 6c |d typing| "sh fil|
|00000290| 65 22 2e 20 20 54 6f 20 | 6f 76 65 72 77 72 69 74 |e". To |overwrit|
|000002a0| 65 20 65 78 69 73 74 69 | 6e 67 0a 23 20 66 69 6c |e existi|ng.# fil|
|000002b0| 65 73 2c 20 74 79 70 65 | 20 22 73 68 20 66 69 6c |es, type| "sh fil|
|000002c0| 65 20 2d 63 22 2e 20 20 | 59 6f 75 20 63 61 6e 20 |e -c". |You can |
|000002d0| 61 6c 73 6f 20 66 65 65 | 64 20 74 68 69 73 20 61 |also fee|d this a|
|000002e0| 73 20 73 74 61 6e 64 61 | 72 64 20 69 6e 70 75 74 |s standa|rd input|
|000002f0| 20 76 69 61 0a 23 20 75 | 6e 73 68 61 72 2c 20 6f | via.# u|nshar, o|
|00000300| 72 20 62 79 20 74 79 70 | 69 6e 67 20 22 73 68 20 |r by typ|ing "sh |
|00000310| 3c 66 69 6c 65 22 2c 20 | 65 2e 67 2e 2e 20 20 49 |<file", |e.g.. I|
|00000320| 66 20 74 68 69 73 20 61 | 72 63 68 69 76 65 20 69 |f this a|rchive i|
|00000330| 73 20 63 6f 6d 70 6c 65 | 74 65 2c 20 79 6f 75 0a |s comple|te, you.|
|00000340| 23 20 77 69 6c 6c 20 73 | 65 65 20 74 68 65 20 66 |# will s|ee the f|
|00000350| 6f 6c 6c 6f 77 69 6e 67 | 20 6d 65 73 73 61 67 65 |ollowing| message|
|00000360| 20 61 74 20 74 68 65 20 | 65 6e 64 3a 0a 23 09 09 | at the |end:.#..|
|00000370| 22 45 6e 64 20 6f 66 20 | 61 72 63 68 69 76 65 20 |"End of |archive |
|00000380| 33 20 28 6f 66 20 31 39 | 29 2e 22 0a 23 20 43 6f |3 (of 19|).".# Co|
|00000390| 6e 74 65 6e 74 73 3a 20 | 20 44 6f 63 2f 43 68 61 |ntents: | Doc/Cha|
|000003a0| 6e 67 65 73 20 44 6f 63 | 2f 47 75 69 64 65 2f 74 |nges Doc|/Guide/t|
|000003b0| 72 61 6e 73 66 6f 72 6d | 2e 74 65 78 20 44 6f 63 |ransform|.tex Doc|
|000003c0| 2f 54 4f 44 4f 0a 23 20 | 20 20 45 78 61 6d 70 6c |/TODO.# | Exampl|
|000003d0| 65 73 2f 62 6f 78 62 61 | 6c 6c 2e 72 61 79 20 52 |es/boxba|ll.ray R|
|000003e0| 65 63 6f 6e 66 69 67 75 | 72 65 20 6c 69 62 72 61 |econfigu|re libra|
|000003f0| 79 2f 6c 69 62 63 6f 6d | 6d 6f 6e 2f 63 6f 6c 6f |y/libcom|mon/colo|
|00000400| 72 2e 68 0a 23 20 20 20 | 6c 69 62 72 61 79 2f 6c |r.h.# |libray/l|
|00000410| 69 62 63 6f 6d 6d 6f 6e | 2f 65 72 72 6f 72 2e 68 |ibcommon|/error.h|
|00000420| 20 6c 69 62 72 61 79 2f | 6c 69 62 63 6f 6d 6d 6f | libray/|libcommo|
|00000430| 6e 2f 65 78 70 72 2e 68 | 0a 23 20 20 20 6c 69 62 |n/expr.h|.# lib|
|00000440| 72 61 79 2f 6c 69 62 63 | 6f 6d 6d 6f 6e 2f 72 6f |ray/libc|ommon/ro|
|00000450| 74 61 74 65 2e 68 20 6c | 69 62 72 61 79 2f 6c 69 |tate.h l|ibray/li|
|00000460| 62 63 6f 6d 6d 6f 6e 2f | 73 61 6d 70 6c 69 6e 67 |bcommon/|sampling|
|00000470| 2e 68 0a 23 20 20 20 6c | 69 62 72 61 79 2f 6c 69 |.h.# l|ibray/li|
|00000480| 62 63 6f 6d 6d 6f 6e 2f | 74 72 61 6e 73 6c 61 74 |bcommon/|translat|
|00000490| 65 2e 68 20 6c 69 62 72 | 61 79 2f 6c 69 62 69 6d |e.h libr|ay/libim|
|000004a0| 61 67 65 2f 69 6d 61 67 | 65 2e 68 0a 23 20 20 20 |age/imag|e.h.# |
|000004b0| 6c 69 62 72 61 79 2f 6c | 69 62 6f 62 6a 2f 62 6f |libray/l|ibobj/bo|
|000004c0| 75 6e 64 73 2e 68 20 6c | 69 62 72 61 79 2f 6c 69 |unds.h l|ibray/li|
|000004d0| 62 6f 62 6a 2f 63 73 67 | 2e 68 0a 23 20 20 20 6c |bobj/csg|.h.# l|
|000004e0| 69 62 72 61 79 2f 6c 69 | 62 6f 62 6a 2f 69 6e 73 |ibray/li|bobj/ins|
|000004f0| 74 61 6e 63 65 2e 68 20 | 6c 69 62 72 61 79 2f 6c |tance.h |libray/l|
|00000500| 69 62 6f 62 6a 2f 70 6f | 6c 79 2e 68 0a 23 20 20 |ibobj/po|ly.h.# |
|00000510| 20 6c 69 62 72 61 79 2f | 6c 69 62 6f 62 6a 2f 74 | libray/|libobj/t|
|00000520| 6f 72 75 73 2e 68 20 6c | 69 62 72 61 79 2f 6c 69 |orus.h l|ibray/li|
|00000530| 62 73 75 72 66 2f 61 74 | 6d 6f 73 70 68 65 72 65 |bsurf/at|mosphere|
|00000540| 2e 68 0a 23 20 20 20 6c | 69 62 72 61 79 2f 6c 69 |.h.# l|ibray/li|
|00000550| 62 74 65 78 74 2f 62 6c | 6f 74 63 68 2e 63 20 6c |btext/bl|otch.c l|
|00000560| 69 62 72 61 79 2f 6c 69 | 62 74 65 78 74 2f 62 75 |ibray/li|btext/bu|
|00000570| 6d 70 2e 63 0a 23 20 20 | 20 6c 69 62 72 61 79 2f |mp.c.# | libray/|
|00000580| 6c 69 62 74 65 78 74 2f | 63 68 65 63 6b 65 72 2e |libtext/|checker.|
|00000590| 63 20 6c 69 62 72 61 79 | 2f 6c 69 62 74 65 78 74 |c libray|/libtext|
|000005a0| 2f 66 62 6d 62 75 6d 70 | 2e 63 0a 23 20 20 20 6c |/fbmbump|.c.# l|
|000005b0| 69 62 72 61 79 2f 6c 69 | 62 74 65 78 74 2f 67 6c |ibray/li|btext/gl|
|000005c0| 6f 73 73 2e 63 20 6c 69 | 62 72 61 79 2f 6c 69 62 |oss.c li|bray/lib|
|000005d0| 74 65 78 74 2f 69 6d 61 | 67 65 74 65 78 74 2e 68 |text/ima|getext.h|
|000005e0| 0a 23 20 20 20 6c 69 62 | 72 61 79 2f 6c 69 62 74 |.# lib|ray/libt|
|000005f0| 65 78 74 2f 6d 6f 75 6e | 74 2e 63 20 6c 69 62 73 |ext/moun|t.c libs|
|00000600| 68 61 64 65 2f 62 75 69 | 6c 74 69 6e 2e 63 20 6c |hade/bui|ltin.c l|
|00000610| 69 62 73 68 61 64 65 2f | 73 74 61 74 73 2e 68 0a |ibshade/|stats.h.|
|00000620| 23 20 20 20 6c 69 62 73 | 68 61 64 65 2f 73 79 6d |# libs|hade/sym|
|00000630| 74 61 62 2e 68 20 6c 69 | 62 73 68 61 64 65 2f 76 |tab.h li|bshade/v|
|00000640| 69 65 77 69 6e 67 2e 68 | 0a 23 20 57 72 61 70 70 |iewing.h|.# Wrapp|
|00000650| 65 64 20 62 79 20 6b 6f | 6c 62 40 77 6f 6f 64 79 |ed by ko|lb@woody|
|00000660| 20 6f 6e 20 57 65 64 20 | 4a 75 6c 20 31 37 20 31 | on Wed |Jul 17 1|
|00000670| 37 3a 35 36 3a 33 37 20 | 31 39 39 31 0a 50 41 54 |7:56:37 |1991.PAT|
|00000680| 48 3d 2f 62 69 6e 3a 2f | 75 73 72 2f 62 69 6e 3a |H=/bin:/|usr/bin:|
|00000690| 2f 75 73 72 2f 75 63 62 | 20 3b 20 65 78 70 6f 72 |/usr/ucb| ; expor|
|000006a0| 74 20 50 41 54 48 0a 69 | 66 20 74 65 73 74 20 2d |t PATH.i|f test -|
|000006b0| 66 20 27 44 6f 63 2f 43 | 68 61 6e 67 65 73 27 20 |f 'Doc/C|hanges' |
|000006c0| 2d 61 20 22 24 7b 31 7d | 22 20 21 3d 20 22 2d 63 |-a "${1}|" != "-c|
|000006d0| 22 20 3b 20 74 68 65 6e | 20 0a 20 20 65 63 68 6f |" ; then| . echo|
|000006e0| 20 73 68 61 72 3a 20 57 | 69 6c 6c 20 6e 6f 74 20 | shar: W|ill not |
|000006f0| 63 6c 6f 62 62 65 72 20 | 65 78 69 73 74 69 6e 67 |clobber |existing|
|00000700| 20 66 69 6c 65 20 5c 22 | 27 44 6f 63 2f 43 68 61 | file \"|'Doc/Cha|
|00000710| 6e 67 65 73 27 5c 22 0a | 65 6c 73 65 0a 65 63 68 |nges'\".|else.ech|
|00000720| 6f 20 73 68 61 72 3a 20 | 45 78 74 72 61 63 74 69 |o shar: |Extracti|
|00000730| 6e 67 20 5c 22 27 44 6f | 63 2f 43 68 61 6e 67 65 |ng \"'Do|c/Change|
|00000740| 73 27 5c 22 20 5c 28 31 | 33 36 31 20 63 68 61 72 |s'\" \(1|361 char|
|00000750| 61 63 74 65 72 73 5c 29 | 0a 73 65 64 20 22 73 2f |acters\)|.sed "s/|
|00000760| 5e 58 2f 2f 22 20 3e 27 | 44 6f 63 2f 43 68 61 6e |^X//" >'|Doc/Chan|
|00000770| 67 65 73 27 20 3c 3c 27 | 45 4e 44 5f 4f 46 5f 46 |ges' <<'|END_OF_F|
|00000780| 49 4c 45 27 0a 58 4d 61 | 6a 6f 72 20 63 68 61 6e |ILE'.XMa|jor chan|
|00000790| 67 65 73 20 73 69 6e 63 | 65 20 33 2e 30 0a 58 2d |ges sinc|e 3.0.X-|
|000007a0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|000007b0| 2d 2d 2d 2d 2d 2d 0a 58 | 41 64 64 69 74 69 6f 6e |------.X|Addition|
|000007c0| 20 6f 66 20 43 53 47 2e | 20 20 22 75 6e 69 6f 6e | of CSG.| "union|
|000007d0| 22 2c 20 22 69 6e 74 65 | 72 73 65 63 74 22 20 61 |", "inte|rsect" a|
|000007e0| 6e 64 20 22 64 69 66 66 | 65 72 65 6e 63 65 22 20 |nd "diff|erence" |
|000007f0| 74 79 70 65 73 2e 0a 58 | 0a 58 41 6e 69 6d 61 74 |types..X|.XAnimat|
|00000800| 69 6f 6e 20 73 75 70 70 | 6f 72 74 2e 20 20 4d 75 |ion supp|ort. Mu|
|00000810| 6c 74 69 2d 66 72 61 6d | 65 20 69 6d 61 67 65 20 |lti-fram|e image |
|00000820| 66 69 6c 65 73 2c 20 75 | 73 65 20 6f 66 20 65 78 |files, u|se of ex|
|00000830| 70 72 65 73 73 69 6f 6e | 73 2c 20 61 6e 69 6d 61 |pression|s, anima|
|00000840| 74 65 64 0a 58 74 72 61 | 6e 73 66 6f 72 6d 61 74 |ted.Xtra|nsformat|
|00000850| 69 6f 6e 73 2c 20 6e 65 | 77 20 6b 65 79 77 6f 72 |ions, ne|w keywor|
|00000860| 64 73 2c 20 69 6e 63 6c | 75 64 69 6e 67 3a 20 73 |ds, incl|uding: s|
|00000870| 68 75 74 74 65 72 2c 20 | 66 72 61 6d 65 73 2c 20 |hutter, |frames, |
|00000880| 66 72 61 6d 65 6c 65 6e | 67 74 68 2c 0a 58 64 65 |framelen|gth,.Xde|
|00000890| 66 69 6e 65 2c 20 73 74 | 61 72 74 74 69 6d 65 2e |fine, st|arttime.|
|000008a0| 20 20 22 6c 69 6e 65 61 | 72 22 20 66 75 6e 63 74 | "linea|r" funct|
|000008b0| 69 6f 6e 2c 20 22 74 69 | 6d 65 22 20 61 6e 64 20 |ion, "ti|me" and |
|000008c0| 22 66 72 61 6d 65 22 20 | 76 61 72 69 61 62 6c 65 |"frame" |variable|
|000008d0| 73 2e 0a 58 0a 58 41 67 | 67 72 65 67 61 74 65 20 |s..X.XAg|gregate |
|000008e0| 73 79 6e 74 61 78 20 63 | 68 61 6e 67 65 64 2e 20 |syntax c|hanged. |
|000008f0| 20 52 61 74 68 65 72 20 | 74 68 61 6e 20 22 64 65 | Rather |than "de|
|00000900| 66 69 6e 65 20 2e 2e 2e | 2e 20 64 65 66 65 6e 64 |fine ...|. defend|
|00000910| 22 20 77 69 74 68 0a 58 | 74 68 65 20 61 67 67 72 |" with.X|the aggr|
|00000920| 65 67 61 74 65 20 74 79 | 70 65 20 62 75 72 69 65 |egate ty|pe burie|
|00000930| 64 20 69 6e 62 65 74 77 | 65 65 6e 2c 20 73 79 6e |d inbetw|een, syn|
|00000940| 74 61 78 20 69 73 20 22 | 74 79 70 65 20 2e 2e 2e |tax is "|type ...|
|00000950| 20 65 6e 64 22 2c 20 77 | 68 65 72 65 20 74 79 70 | end", w|here typ|
|00000960| 65 0a 58 69 73 20 6f 6e | 65 20 6f 66 3a 20 67 72 |e.Xis on|e of: gr|
|00000970| 69 64 2c 20 6c 69 73 74 | 2c 20 75 6e 69 6f 6e 2c |id, list|, union,|
|00000980| 20 69 6e 74 65 72 73 65 | 63 74 2c 20 64 69 66 66 | interse|ct, diff|
|00000990| 65 72 65 6e 63 65 2e 20 | 20 4f 62 6a 65 63 74 20 |erence. | Object |
|000009a0| 6e 61 6d 69 6e 67 0a 58 | 69 73 20 6e 6f 77 20 61 |naming.X|is now a|
|000009b0| 63 63 6f 6d 70 6c 69 73 | 68 65 64 20 62 79 20 70 |ccomplis|hed by p|
|000009c0| 72 65 63 65 64 69 6e 67 | 20 6f 6e 65 20 6f 66 20 |receding| one of |
|000009d0| 74 68 65 20 61 62 6f 76 | 65 20 77 69 74 68 20 74 |the abov|e with t|
|000009e0| 68 65 20 22 6e 61 6d 65 | 22 20 6b 65 79 77 6f 72 |he "name|" keywor|
|000009f0| 64 0a 58 66 6f 6c 6c 6f | 77 65 64 20 62 79 20 74 |d.Xfollo|wed by t|
|00000a00| 68 65 20 6e 61 6d 65 20 | 74 6f 20 61 73 73 69 67 |he name |to assig|
|00000a10| 6e 20 74 6f 20 74 68 65 | 20 61 67 67 72 65 67 61 |n to the| aggrega|
|00000a20| 74 65 2e 0a 58 0a 58 54 | 6f 72 75 73 2c 20 62 6c |te..X.XT|orus, bl|
|00000a30| 6f 62 20 70 72 69 6d 69 | 74 69 76 65 73 20 61 64 |ob primi|tives ad|
|00000a40| 64 65 64 2c 20 63 6f 75 | 72 74 65 73 79 20 6f 66 |ded, cou|rtesy of|
|00000a50| 20 4d 61 72 6b 20 50 6f | 64 6c 69 70 65 63 20 61 | Mark Po|dlipec a|
|00000a60| 6e 64 20 4a 6f 63 68 65 | 6e 20 53 63 68 77 61 72 |nd Joche|n Schwar|
|00000a70| 7a 65 2e 0a 58 42 75 67 | 67 79 20 73 75 70 65 72 |ze..XBug|gy super|
|00000a80| 71 75 61 64 72 69 63 20 | 70 72 69 6d 69 74 69 76 |quadric |primitiv|
|00000a90| 65 20 72 65 6d 6f 76 65 | 64 2e 0a 58 0a 58 53 75 |e remove|d..X.XSu|
|00000aa0| 72 66 61 63 65 20 64 65 | 66 69 6e 69 74 69 6f 6e |rface de|finition|
|00000ab0| 20 73 79 6e 74 61 78 20 | 61 6e 64 20 62 69 6e 64 | syntax |and bind|
|00000ac0| 69 6e 67 20 63 68 61 6e | 67 65 64 2e 20 20 53 75 |ing chan|ged. Su|
|00000ad0| 72 66 61 63 65 20 64 65 | 66 69 6e 69 74 69 6f 6e |rface de|finition|
|00000ae0| 20 69 73 20 6e 6f 77 20 | 6b 65 79 77 6f 72 64 2d | is now |keyword-|
|00000af0| 0a 58 62 61 73 65 64 2e | 20 20 4e 6f 74 65 20 74 |.Xbased.| Note t|
|00000b00| 68 61 74 20 74 68 65 20 | 73 70 65 63 75 6c 61 72 |hat the |specular|
|00000b10| 20 63 6f 6c 6f 72 20 6f | 66 20 61 20 73 75 72 66 | color o|f a surf|
|00000b20| 61 63 65 20 69 73 20 75 | 73 65 64 20 74 6f 20 6d |ace is u|sed to m|
|00000b30| 6f 64 69 66 79 20 74 68 | 65 20 63 6f 6c 6f 72 20 |odify th|e color |
|00000b40| 6f 66 0a 58 72 65 66 6c | 65 63 74 65 64 20 72 61 |of.Xrefl|ected ra|
|00000b50| 79 73 20 69 6e 20 34 2e | 30 2e 20 20 57 68 65 6e |ys in 4.|0. When|
|00000b60| 20 63 6f 6e 76 65 72 74 | 69 6e 67 20 33 2e 30 20 | convert|ing 3.0 |
|00000b70| 73 63 72 69 70 74 73 20 | 74 6f 20 34 2e 30 2c 20 |scripts |to 4.0, |
|00000b80| 74 68 65 20 73 70 65 63 | 75 6c 61 72 20 63 6f 6d |the spec|ular com|
|00000b90| 70 6f 6e 65 6e 74 0a 58 | 61 6e 64 2f 6f 72 20 72 |ponent.X|and/or r|
|00000ba0| 65 66 6c 65 63 74 69 76 | 69 74 79 20 6d 61 79 20 |eflectiv|ity may |
|00000bb0| 6e 65 65 64 20 74 6f 20 | 62 65 20 6d 6f 64 69 66 |need to |be modif|
|00000bc0| 69 65 64 2e 0a 58 0a 58 | 49 6d 70 72 6f 76 65 64 |ied..X.X|Improved|
|00000bd0| 20 61 6e 74 69 61 6c 69 | 61 73 69 6e 67 2e 20 20 | antiali|asing. |
|00000be0| 52 61 74 68 65 72 20 74 | 68 61 6e 20 75 73 69 6e |Rather t|han usin|
|00000bf0| 67 20 61 6e 20 61 64 61 | 70 74 69 76 65 20 73 63 |g an ada|ptive sc|
|00000c00| 68 65 6d 65 20 6f 72 20 | 6e 6f 6e 61 64 61 70 74 |heme or |nonadapt|
|00000c10| 69 76 65 0a 58 22 64 69 | 73 74 72 69 62 75 74 65 |ive.X"di|stribute|
|00000c20| 64 22 20 72 61 79 20 74 | 72 61 63 69 6e 67 2c 20 |d" ray t|racing, |
|00000c30| 61 6e 20 61 64 61 70 74 | 69 76 65 20 6a 69 74 74 |an adapt|ive jitt|
|00000c40| 65 72 65 64 20 61 6c 67 | 6f 72 69 74 68 6d 20 69 |ered alg|orithm i|
|00000c50| 73 20 75 73 65 64 2e 0a | 58 0a 58 41 64 64 69 74 |s used..|X.XAddit|
|00000c60| 69 6f 6e 61 6c 20 74 65 | 78 74 75 72 65 73 20 61 |ional te|xtures a|
|00000c70| 6e 64 20 6c 69 67 68 74 | 20 73 6f 75 72 63 65 20 |nd light| source |
|00000c80| 74 79 70 65 73 2e 0a 58 | 0a 58 56 61 73 74 6c 79 |types..X|.XVastly|
|00000c90| 20 69 6d 70 72 6f 76 65 | 64 20 70 65 72 66 6f 72 | improve|d perfor|
|00000ca0| 6d 61 6e 63 65 20 77 68 | 65 6e 20 75 73 69 6e 67 |mance wh|en using|
|00000cb0| 20 6d 61 6e 79 20 74 65 | 78 74 75 72 69 6e 67 20 | many te|xturing |
|00000cc0| 66 75 6e 63 74 69 6f 6e | 73 2e 0a 58 0a 58 4d 61 |function|s..X.XMa|
|00000cd0| 6e 79 20 6d 69 6e 6f 72 | 20 61 6e 64 20 6e 6f 74 |ny minor| and not|
|00000ce0| 2d 73 6f 2d 6d 69 6e 6f | 72 20 62 75 67 66 69 78 |-so-mino|r bugfix|
|00000cf0| 65 73 2e 0a 45 4e 44 5f | 4f 46 5f 46 49 4c 45 0a |es..END_|OF_FILE.|
|00000d00| 69 66 20 74 65 73 74 20 | 31 33 36 31 20 2d 6e 65 |if test |1361 -ne|
|00000d10| 20 60 77 63 20 2d 63 20 | 3c 27 44 6f 63 2f 43 68 | `wc -c |<'Doc/Ch|
|00000d20| 61 6e 67 65 73 27 60 3b | 20 74 68 65 6e 0a 20 20 |anges'`;| then. |
|00000d30| 20 20 65 63 68 6f 20 73 | 68 61 72 3a 20 5c 22 27 | echo s|har: \"'|
|00000d40| 44 6f 63 2f 43 68 61 6e | 67 65 73 27 5c 22 20 75 |Doc/Chan|ges'\" u|
|00000d50| 6e 70 61 63 6b 65 64 20 | 77 69 74 68 20 77 72 6f |npacked |with wro|
|00000d60| 6e 67 20 73 69 7a 65 21 | 0a 66 69 0a 23 20 65 6e |ng size!|.fi.# en|
|00000d70| 64 20 6f 66 20 27 44 6f | 63 2f 43 68 61 6e 67 65 |d of 'Do|c/Change|
|00000d80| 73 27 0a 66 69 0a 69 66 | 20 74 65 73 74 20 2d 66 |s'.fi.if| test -f|
|00000d90| 20 27 44 6f 63 2f 47 75 | 69 64 65 2f 74 72 61 6e | 'Doc/Gu|ide/tran|
|00000da0| 73 66 6f 72 6d 2e 74 65 | 78 27 20 2d 61 20 22 24 |sform.te|x' -a "$|
|00000db0| 7b 31 7d 22 20 21 3d 20 | 22 2d 63 22 20 3b 20 74 |{1}" != |"-c" ; t|
|00000dc0| 68 65 6e 20 0a 20 20 65 | 63 68 6f 20 73 68 61 72 |hen . e|cho shar|
|00000dd0| 3a 20 57 69 6c 6c 20 6e | 6f 74 20 63 6c 6f 62 62 |: Will n|ot clobb|
|00000de0| 65 72 20 65 78 69 73 74 | 69 6e 67 20 66 69 6c 65 |er exist|ing file|
|00000df0| 20 5c 22 27 44 6f 63 2f | 47 75 69 64 65 2f 74 72 | \"'Doc/|Guide/tr|
|00000e00| 61 6e 73 66 6f 72 6d 2e | 74 65 78 27 5c 22 0a 65 |ansform.|tex'\".e|
|00000e10| 6c 73 65 0a 65 63 68 6f | 20 73 68 61 72 3a 20 45 |lse.echo| shar: E|
|00000e20| 78 74 72 61 63 74 69 6e | 67 20 5c 22 27 44 6f 63 |xtractin|g \"'Doc|
|00000e30| 2f 47 75 69 64 65 2f 74 | 72 61 6e 73 66 6f 72 6d |/Guide/t|ransform|
|00000e40| 2e 74 65 78 27 5c 22 20 | 5c 28 31 34 39 36 20 63 |.tex'\" |\(1496 c|
|00000e50| 68 61 72 61 63 74 65 72 | 73 5c 29 0a 73 65 64 20 |haracter|s\).sed |
|00000e60| 22 73 2f 5e 58 2f 2f 22 | 20 3e 27 44 6f 63 2f 47 |"s/^X//"| >'Doc/G|
|00000e70| 75 69 64 65 2f 74 72 61 | 6e 73 66 6f 72 6d 2e 74 |uide/tra|nsform.t|
|00000e80| 65 78 27 20 3c 3c 27 45 | 4e 44 5f 4f 46 5f 46 49 |ex' <<'E|ND_OF_FI|
|00000e90| 4c 45 27 0a 58 5c 63 68 | 61 70 74 65 72 20 7b 54 |LE'.X\ch|apter {T|
|00000ea0| 72 61 6e 73 66 6f 72 6d | 61 74 69 6f 6e 73 7d 0a |ransform|ations}.|
|00000eb0| 58 0a 58 52 61 79 73 68 | 61 64 65 20 73 75 70 70 |X.XRaysh|ade supp|
|00000ec0| 6f 72 74 73 20 74 68 65 | 20 61 70 70 6c 69 63 61 |orts the| applica|
|00000ed0| 74 69 6f 6e 20 6f 66 20 | 6c 69 6e 65 61 72 20 74 |tion of |linear t|
|00000ee0| 72 61 6e 73 66 6f 72 6d | 61 74 69 6f 6e 73 20 74 |ransform|ations t|
|00000ef0| 6f 20 6f 62 6a 65 63 74 | 73 0a 58 61 6e 64 20 74 |o object|s.Xand t|
|00000f00| 65 78 74 75 72 65 73 2e | 20 20 49 66 20 6d 6f 72 |extures.| If mor|
|00000f10| 65 20 74 68 61 6e 20 6f | 6e 65 20 74 72 61 6e 73 |e than o|ne trans|
|00000f20| 66 6f 72 6d 61 74 69 6f | 6e 20 69 73 20 73 70 65 |formatio|n is spe|
|00000f30| 63 69 66 69 65 64 2c 20 | 74 68 65 0a 58 74 6f 74 |cified, |the.Xtot|
|00000f40| 61 6c 20 72 65 73 75 6c | 74 69 6e 67 20 74 72 61 |al resul|ting tra|
|00000f50| 6e 73 66 6f 72 6d 61 74 | 69 6f 6e 20 69 73 20 63 |nsformat|ion is c|
|00000f60| 6f 6d 70 75 74 65 64 20 | 61 6e 64 20 61 70 70 6c |omputed |and appl|
|00000f70| 69 65 64 2e 0a 58 0a 58 | 5c 62 65 67 69 6e 7b 64 |ied..X.X|\begin{d|
|00000f80| 65 66 6b 65 79 7d 7b 74 | 72 61 6e 73 6c 61 74 65 |efkey}{t|ranslate|
|00000f90| 7d 7b 5c 65 76 65 63 7b | 64 65 6c 74 61 7d 7d 0a |}{\evec{|delta}}.|
|00000fa0| 58 54 72 61 6e 73 6c 61 | 74 65 20 28 6d 6f 76 65 |XTransla|te (move|
|00000fb0| 29 20 62 79 20 7b 5c 65 | 6d 20 64 65 6c 74 61 7d |) by {\e|m delta}|
|00000fc0| 2e 0a 58 5c 65 6e 64 7b | 64 65 66 6b 65 79 7d 0a |..X\end{|defkey}.|
|00000fd0| 58 0a 58 5c 62 65 67 69 | 6e 7b 64 65 66 6b 65 79 |X.X\begi|n{defkey|
|00000fe0| 7d 7b 72 6f 74 61 74 65 | 7d 7b 5c 65 76 65 63 7b |}{rotate|}{\evec{|
|00000ff0| 61 78 69 73 7d 20 24 5c | 74 68 65 74 61 24 7d 0a |axis} $\|theta$}.|
|00001000| 58 52 6f 74 61 74 65 20 | 63 6f 75 6e 74 65 72 2d |XRotate |counter-|
|00001010| 63 6c 6f 63 6b 77 69 73 | 65 20 61 62 6f 75 74 20 |clockwis|e about |
|00001020| 74 68 65 20 67 69 76 65 | 6e 20 61 78 69 73 20 62 |the give|n axis b|
|00001030| 79 20 24 5c 74 68 65 74 | 61 24 20 64 65 67 72 65 |y $\thet|a$ degre|
|00001040| 65 73 2e 0a 58 5c 65 6e | 64 7b 64 65 66 6b 65 79 |es..X\en|d{defkey|
|00001050| 7d 0a 58 0a 58 5c 62 65 | 67 69 6e 7b 64 65 66 6b |}.X.X\be|gin{defk|
|00001060| 65 79 7d 7b 73 63 61 6c | 65 7d 7b 5c 65 76 65 63 |ey}{scal|e}{\evec|
|00001070| 7b 76 7d 7d 0a 58 53 63 | 61 6c 65 20 62 79 20 7b |{v}}.XSc|ale by {|
|00001080| 5c 65 6d 20 76 7d 2e 0a | 58 5c 65 6e 64 7b 64 65 |\em v}..|X\end{de|
|00001090| 66 6b 65 79 7d 0a 58 41 | 6c 6c 20 74 68 72 65 65 |fkey}.XA|ll three|
|000010a0| 20 73 63 61 6c 69 6e 67 | 20 63 6f 6d 70 6f 6e 65 | scaling| compone|
|000010b0| 6e 74 73 20 6d 75 73 74 | 20 62 65 20 6e 6f 6e 2d |nts must| be non-|
|000010c0| 7a 65 72 6f 2c 20 65 6c | 73 65 20 64 65 67 65 6e |zero, el|se degen|
|000010d0| 65 72 61 74 65 20 6d 61 | 74 72 69 63 65 73 0a 58 |erate ma|trices.X|
|000010e0| 77 69 6c 6c 20 72 65 73 | 75 6c 74 2e 0a 58 0a 58 |will res|ult..X.X|
|000010f0| 5c 62 65 67 69 6e 7b 64 | 65 66 6b 65 79 7d 7b 74 |\begin{d|efkey}{t|
|00001100| 72 61 6e 73 66 6f 72 6d | 7d 7b 5c 65 76 65 63 7b |ransform|}{\evec{|
|00001110| 72 6f 77 31 7d 20 5c 65 | 76 65 63 7b 72 6f 77 32 |row1} \e|vec{row2|
|00001120| 7d 20 5c 65 76 65 63 7b | 72 6f 77 33 7d 20 5b 5c |} \evec{|row3} [\|
|00001130| 65 76 65 63 7b 64 65 6c | 74 61 7d 5d 7d 0a 58 41 |evec{del|ta}]}.XA|
|00001140| 70 70 6c 79 20 74 68 65 | 20 67 69 76 65 6e 20 33 |pply the| given 3|
|00001150| 2d 62 79 2d 33 20 74 72 | 61 6e 73 66 6f 72 6d 61 |-by-3 tr|ansforma|
|00001160| 74 69 6f 6e 20 6d 61 74 | 72 69 78 2e 20 20 49 66 |tion mat|rix. If|
|00001170| 20 67 69 76 65 6e 2c 20 | 7b 5c 65 6d 20 64 65 6c | given, |{\em del|
|00001180| 74 61 7d 0a 58 73 70 65 | 63 69 66 69 65 73 20 61 |ta}.Xspe|cifies a|
|00001190| 20 74 72 61 6e 73 6c 61 | 74 69 6f 6e 20 76 65 63 | transla|tion vec|
|000011a0| 74 6f 72 2e 0a 58 5c 65 | 6e 64 7b 64 65 66 6b 65 |tor..X\e|nd{defke|
|000011b0| 79 7d 0a 58 0a 58 54 72 | 61 6e 73 66 6f 72 6d 61 |y}.X.XTr|ansforma|
|000011c0| 74 69 6f 6e 73 20 73 68 | 6f 75 6c 64 0a 58 62 65 |tions sh|ould.Xbe|
|000011d0| 20 73 70 65 63 69 66 69 | 65 64 20 69 6e 20 74 68 | specifi|ed in th|
|000011e0| 65 20 6f 72 64 65 72 20 | 69 6e 20 77 68 69 63 68 |e order |in which|
|000011f0| 20 74 68 65 79 20 61 72 | 65 20 74 6f 20 62 65 20 | they ar|e to be |
|00001200| 61 70 70 6c 69 65 64 0a | 58 69 6d 6d 65 64 69 61 |applied.|Ximmedia|
|00001210| 74 65 6c 79 20 66 6f 6c | 6c 6f 77 69 6e 67 20 74 |tely fol|lowing t|
|00001220| 68 65 20 69 74 65 6d 20 | 74 6f 0a 58 62 65 20 74 |he item |to.Xbe t|
|00001230| 72 61 6e 73 66 6f 72 6d | 65 64 2e 20 20 46 6f 72 |ransform|ed. For|
|00001240| 20 65 78 61 6d 70 6c 65 | 3a 0a 58 0a 58 5c 62 65 | example|:.X.X\be|
|00001250| 67 69 6e 7b 76 65 72 62 | 61 74 69 6d 7d 0a 58 20 |gin{verb|atim}.X |
|00001260| 20 20 20 20 20 20 20 2f | 2a 0a 58 20 20 20 20 20 | /|*.X |
|00001270| 20 20 20 20 2a 20 45 6c | 6c 69 70 73 6f 69 64 2c | * El|lipsoid,|
|00001280| 20 72 6f 74 61 74 65 64 | 20 63 75 62 65 0a 58 20 | rotated| cube.X |
|00001290| 20 20 20 20 20 20 20 20 | 2a 2f 0a 58 20 20 20 20 | |*/.X |
|000012a0| 20 20 20 20 73 70 68 65 | 72 65 20 31 2e 20 30 20 | sphe|re 1. 0 |
|000012b0| 30 20 30 20 20 20 73 63 | 61 6c 65 20 32 2e 20 31 |0 0 sc|ale 2. 1|
|000012c0| 2e 20 31 2e 20 74 72 61 | 6e 73 6c 61 74 65 20 30 |. 1. tra|nslate 0|
|000012d0| 20 30 20 2d 32 2e 35 0a | 58 20 20 20 20 20 20 20 | 0 -2.5.|X |
|000012e0| 20 62 6f 78 20 30 20 30 | 20 30 20 2e 35 20 2e 35 | box 0 0| 0 .5 .5|
|000012f0| 20 2e 35 0a 58 20 20 20 | 20 20 20 20 20 20 20 20 | .5.X | |
|00001300| 72 6f 74 61 74 65 20 30 | 20 30 20 31 20 34 35 20 |rotate 0| 0 1 45 |
|00001310| 72 6f 74 61 74 65 20 31 | 20 30 20 30 20 34 35 20 |rotate 1| 0 0 45 |
|00001320| 74 72 61 6e 73 6c 61 74 | 65 20 30 20 30 20 32 2e |translat|e 0 0 2.|
|00001330| 35 0a 58 5c 65 6e 64 7b | 76 65 72 62 61 74 69 6d |5.X\end{|verbatim|
|00001340| 7d 0a 58 0a 58 54 72 61 | 6e 73 66 6f 72 6d 61 74 |}.X.XTra|nsformat|
|00001350| 69 6f 6e 73 20 6d 61 79 | 20 61 6c 73 6f 20 62 65 |ions may| also be|
|00001360| 20 61 70 70 6c 69 65 64 | 20 74 6f 20 74 65 78 74 | applied| to text|
|00001370| 75 72 65 73 3a 0a 58 0a | 58 5c 62 65 67 69 6e 7b |ures:.X.|X\begin{|
|00001380| 76 65 72 62 61 74 69 6d | 7d 0a 58 20 20 20 70 6c |verbatim|}.X pl|
|00001390| 61 6e 65 20 30 20 30 20 | 2d 34 20 20 30 20 30 20 |ane 0 0 |-4 0 0 |
|000013a0| 31 0a 58 20 20 20 20 20 | 74 65 78 74 75 72 65 20 |1.X |texture |
|000013b0| 63 68 65 63 6b 65 72 20 | 72 65 64 20 73 63 61 6c |checker |red scal|
|000013c0| 65 20 32 20 32 20 32 20 | 72 6f 74 61 74 65 20 30 |e 2 2 2 |rotate 0|
|000013d0| 20 30 20 31 20 34 35 0a | 58 5c 65 6e 64 7b 76 65 | 0 1 45.|X\end{ve|
|000013e0| 72 62 61 74 69 6d 7d 0a | 58 0a 58 4e 6f 74 65 20 |rbatim}.|X.XNote |
|000013f0| 74 68 61 74 20 74 72 61 | 6e 73 66 6f 72 6d 61 74 |that tra|nsformat|
|00001400| 69 6f 6e 20 70 61 72 61 | 6d 65 74 65 72 73 20 6d |ion para|meters m|
|00001410| 61 79 20 62 65 20 73 70 | 65 63 69 66 69 65 64 20 |ay be sp|ecified |
|00001420| 75 73 69 6e 67 0a 58 6f | 66 20 61 6e 69 6d 61 74 |using.Xo|f animat|
|00001430| 65 64 20 65 78 70 72 65 | 73 73 69 6f 6e 73 2c 20 |ed expre|ssions, |
|00001440| 63 61 75 73 69 6e 67 20 | 74 68 65 20 74 72 61 6e |causing |the tran|
|00001450| 73 66 6f 72 6d 61 74 69 | 6f 6e 73 20 74 68 65 6d |sformati|ons them|
|00001460| 73 65 6c 76 65 73 0a 58 | 74 6f 20 62 65 20 61 6e |selves.X|to be an|
|00001470| 69 6d 61 74 65 64 2e 20 | 20 53 65 65 20 41 70 70 |imated. | See App|
|00001480| 65 6e 64 69 78 20 42 20 | 66 6f 72 20 66 75 72 74 |endix B |for furt|
|00001490| 68 65 72 20 64 65 74 61 | 69 6c 73 2e 0a 45 4e 44 |her deta|ils..END|
|000014a0| 5f 4f 46 5f 46 49 4c 45 | 0a 69 66 20 74 65 73 74 |_OF_FILE|.if test|
|000014b0| 20 31 34 39 36 20 2d 6e | 65 20 60 77 63 20 2d 63 | 1496 -n|e `wc -c|
|000014c0| 20 3c 27 44 6f 63 2f 47 | 75 69 64 65 2f 74 72 61 | <'Doc/G|uide/tra|
|000014d0| 6e 73 66 6f 72 6d 2e 74 | 65 78 27 60 3b 20 74 68 |nsform.t|ex'`; th|
|000014e0| 65 6e 0a 20 20 20 20 65 | 63 68 6f 20 73 68 61 72 |en. e|cho shar|
|000014f0| 3a 20 5c 22 27 44 6f 63 | 2f 47 75 69 64 65 2f 74 |: \"'Doc|/Guide/t|
|00001500| 72 61 6e 73 66 6f 72 6d | 2e 74 65 78 27 5c 22 20 |ransform|.tex'\" |
|00001510| 75 6e 70 61 63 6b 65 64 | 20 77 69 74 68 20 77 72 |unpacked| with wr|
|00001520| 6f 6e 67 20 73 69 7a 65 | 21 0a 66 69 0a 23 20 65 |ong size|!.fi.# e|
|00001530| 6e 64 20 6f 66 20 27 44 | 6f 63 2f 47 75 69 64 65 |nd of 'D|oc/Guide|
|00001540| 2f 74 72 61 6e 73 66 6f | 72 6d 2e 74 65 78 27 0a |/transfo|rm.tex'.|
|00001550| 66 69 0a 69 66 20 74 65 | 73 74 20 2d 66 20 27 44 |fi.if te|st -f 'D|
|00001560| 6f 63 2f 54 4f 44 4f 27 | 20 2d 61 20 22 24 7b 31 |oc/TODO'| -a "${1|
|00001570| 7d 22 20 21 3d 20 22 2d | 63 22 20 3b 20 74 68 65 |}" != "-|c" ; the|
|00001580| 6e 20 0a 20 20 65 63 68 | 6f 20 73 68 61 72 3a 20 |n . ech|o shar: |
|00001590| 57 69 6c 6c 20 6e 6f 74 | 20 63 6c 6f 62 62 65 72 |Will not| clobber|
|000015a0| 20 65 78 69 73 74 69 6e | 67 20 66 69 6c 65 20 5c | existin|g file \|
|000015b0| 22 27 44 6f 63 2f 54 4f | 44 4f 27 5c 22 0a 65 6c |"'Doc/TO|DO'\".el|
|000015c0| 73 65 0a 65 63 68 6f 20 | 73 68 61 72 3a 20 45 78 |se.echo |shar: Ex|
|000015d0| 74 72 61 63 74 69 6e 67 | 20 5c 22 27 44 6f 63 2f |tracting| \"'Doc/|
|000015e0| 54 4f 44 4f 27 5c 22 20 | 5c 28 31 32 38 37 20 63 |TODO'\" |\(1287 c|
|000015f0| 68 61 72 61 63 74 65 72 | 73 5c 29 0a 73 65 64 20 |haracter|s\).sed |
|00001600| 22 73 2f 5e 58 2f 2f 22 | 20 3e 27 44 6f 63 2f 54 |"s/^X//"| >'Doc/T|
|00001610| 4f 44 4f 27 20 3c 3c 27 | 45 4e 44 5f 4f 46 5f 46 |ODO' <<'|END_OF_F|
|00001620| 49 4c 45 27 0a 58 2d 2d | 2d 2d 2d 2d 2d 2d 2d 0a |ILE'.X--|-------.|
|00001630| 58 54 4f 44 4f 20 4c 69 | 73 74 0a 58 2d 2d 2d 2d |XTODO Li|st.X----|
|00001640| 2d 2d 2d 2d 2d 0a 58 0a | 58 4e 6f 6e 2d 55 52 54 |-----.X.|XNon-URT|
|00001650| 20 69 6d 61 67 65 73 20 | 75 70 73 69 64 65 2d 64 | images |upside-d|
|00001660| 6f 77 6e 2e 0a 58 0a 58 | 49 66 20 57 6f 72 6c 64 |own..X.X|If World|
|00001670| 20 6f 62 6a 65 63 74 20 | 68 61 73 20 6f 6e 6c 79 | object |has only|
|00001680| 20 6f 6e 65 20 73 75 62 | 6f 62 6a 65 63 74 2c 20 | one sub|object, |
|00001690| 61 6e 64 20 74 68 65 20 | 57 6f 72 6c 64 0a 58 69 |and the |World.Xi|
|000016a0| 73 20 6e 65 69 74 68 65 | 72 20 74 65 78 74 75 72 |s neithe|r textur|
|000016b0| 65 64 20 6e 6f 72 20 74 | 72 61 6e 73 66 6f 72 6d |ed nor t|ransform|
|000016c0| 65 64 20 28 63 61 6e 27 | 74 20 64 6f 20 74 68 69 |ed (can'|t do thi|
|000016d0| 73 20 61 6e 79 77 61 79 | 29 2c 0a 58 74 68 65 6e |s anyway|),.Xthen|
|000016e0| 20 6d 61 6b 65 20 74 68 | 61 74 20 6f 62 6a 65 63 | make th|at objec|
|000016f0| 74 20 74 68 65 20 57 6f | 72 6c 64 20 6f 62 6a 65 |t the Wo|rld obje|
|00001700| 63 74 2e 20 20 49 6e 20 | 74 68 65 6f 72 79 20 77 |ct. In |theory w|
|00001710| 65 20 63 6f 75 6c 64 0a | 58 64 6f 20 74 68 69 73 |e could.|Xdo this|
|00001720| 20 28 63 6f 6c 6c 61 70 | 73 69 6e 67 29 20 74 68 | (collap|sing) th|
|00001730| 72 6f 75 67 68 6f 75 74 | 20 74 68 65 20 6d 6f 64 |roughout| the mod|
|00001740| 65 6c 69 6e 67 20 74 72 | 65 65 2e 0a 58 0a 58 3e |eling tr|ee..X.X>|
|00001750| 20 32 20 6f 62 6a 65 63 | 74 73 20 69 6e 20 43 53 | 2 objec|ts in CS|
|00001760| 47 20 6f 62 6a 65 63 74 | 73 0a 58 0a 58 43 72 65 |G object|s.X.XCre|
|00001770| 61 74 65 20 6e 61 73 74 | 79 2c 20 72 69 67 6f 72 |ate nast|y, rigor|
|00001780| 6f 75 73 20 74 65 73 74 | 20 73 63 65 6e 65 73 2c |ous test| scenes,|
|00001790| 20 6d 6f 72 65 20 65 78 | 61 6d 70 6c 65 73 20 69 | more ex|amples i|
|000017a0| 6e 20 67 65 6e 65 72 61 | 6c 2e 0a 58 0a 58 41 6e |n genera|l..X.XAn|
|000017b0| 69 6d 61 74 65 64 20 6c | 69 67 68 74 73 20 26 20 |imated l|ights & |
|000017c0| 63 61 6d 65 72 61 2e 0a | 58 0a 58 43 75 62 69 63 |camera..|X.XCubic|
|000017d0| 20 69 6e 74 65 72 70 6f | 6c 61 74 69 6f 6e 20 66 | interpo|lation f|
|000017e0| 75 6e 63 74 69 6f 6e 73 | 2e 0a 58 0a 58 41 6e 69 |unctions|..X.XAni|
|000017f0| 6d 61 74 65 64 20 70 72 | 69 6d 69 74 69 76 65 2f |mated pr|imitive/|
|00001800| 74 65 78 74 75 72 65 2f | 73 75 72 66 61 63 65 2f |texture/|surface/|
|00001810| 65 74 63 20 70 61 72 61 | 6d 65 74 65 72 73 2e 0a |etc para|meters..|
|00001820| 58 0a 58 54 68 65 72 65 | 20 73 68 6f 75 6c 64 20 |X.XThere| should |
|00001830| 62 65 20 61 20 77 69 6e | 64 6f 77 69 6e 67 20 63 |be a win|dowing c|
|00001840| 6f 6d 6d 61 6e 64 20 74 | 68 61 74 20 74 61 6b 65 |ommand t|hat take|
|00001850| 73 20 70 69 78 65 6c 20 | 6c 6f 63 61 74 69 6f 6e |s pixel |location|
|00001860| 73 0a 58 61 73 20 77 65 | 6c 6c 20 61 73 20 6f 6e |s.Xas we|ll as on|
|00001870| 65 20 74 68 61 74 20 74 | 61 6b 65 73 20 6e 6f 72 |e that t|akes nor|
|00001880| 6d 61 6c 69 7a 65 64 20 | 63 6f 6f 72 64 69 6e 61 |malized |coordina|
|00001890| 74 65 73 2e 0a 58 0a 58 | 50 75 74 20 4c 69 6e 64 |tes..X.X|Put Lind|
|000018a0| 61 20 63 6f 64 65 20 62 | 61 63 6b 20 69 6e 20 70 |a code b|ack in p|
|000018b0| 6c 61 63 65 2e 0a 58 0a | 58 55 73 65 72 2d 73 65 |lace..X.|XUser-se|
|000018c0| 6c 65 63 74 61 62 6c 65 | 20 70 72 69 6d 69 74 69 |lectable| primiti|
|000018d0| 76 65 73 2f 61 67 67 72 | 65 67 61 74 65 73 2f 6c |ves/aggr|egates/l|
|000018e0| 69 67 68 74 73 2f 74 65 | 78 74 75 72 65 73 20 61 |ights/te|xtures a|
|000018f0| 74 20 63 6f 6d 70 69 6c | 65 20 74 69 6d 65 3f 0a |t compil|e time?.|
|00001900| 58 0a 58 54 65 63 68 6e | 69 63 61 6c 20 44 6f 63 |X.XTechn|ical Doc|
|00001910| 75 6d 65 6e 74 61 74 69 | 6f 6e 0a 58 0a 58 4d 61 |umentati|on.X.XMa|
|00001920| 6b 65 20 68 65 69 67 68 | 74 66 69 65 6c 64 73 20 |ke heigh|tfields |
|00001930| 62 65 20 73 74 6f 72 65 | 64 20 69 6e 20 66 69 78 |be store|d in fix|
|00001940| 65 64 2d 70 6f 69 6e 74 | 2c 20 61 6e 64 20 74 61 |ed-point|, and ta|
|00001950| 6b 65 20 63 61 72 65 20 | 6f 66 20 62 79 74 65 2d |ke care |of byte-|
|00001960| 6f 72 64 65 72 69 6e 67 | 0a 58 70 72 6f 62 6c 65 |ordering|.Xproble|
|00001970| 6d 73 20 73 6f 20 74 68 | 61 74 20 68 65 69 67 68 |ms so th|at heigh|
|00001980| 74 20 66 69 65 6c 64 73 | 20 61 72 65 20 74 72 61 |t fields| are tra|
|00001990| 6e 73 70 6f 72 74 61 62 | 6c 65 20 66 72 6f 6d 20 |nsportab|le from |
|000019a0| 6d 61 63 68 69 6e 65 20 | 74 6f 20 6d 61 63 68 69 |machine |to machi|
|000019b0| 6e 65 2e 0a 58 0a 58 49 | 73 20 42 61 79 65 73 27 |ne..X.XI|s Bayes'|
|000019c0| 20 74 68 65 6f 72 65 6d | 2d 62 61 73 65 64 20 70 | theorem|-based p|
|000019d0| 6f 6c 79 67 6f 6e 20 69 | 6e 74 65 72 73 65 63 74 |olygon i|ntersect|
|000019e0| 69 6f 6e 20 6d 65 74 68 | 6f 64 20 62 65 74 74 65 |ion meth|od bette|
|000019f0| 72 3f 0a 58 0a 58 41 64 | 61 70 74 69 76 65 20 67 |r?.X.XAd|aptive g|
|00001a00| 72 69 64 64 69 6e 67 2e | 0a 58 0a 58 42 65 74 74 |ridding.|.X.XBett|
|00001a10| 65 72 20 61 6e 74 69 61 | 6c 69 61 73 69 6e 67 2e |er antia|liasing.|
|00001a20| 0a 58 0a 58 41 64 64 20 | 61 6e 20 6f 70 74 69 6f |.X.XAdd |an optio|
|00001a30| 6e 20 74 6f 20 70 65 72 | 66 6f 72 6d 20 73 6f 72 |n to per|form sor|
|00001a40| 74 69 6e 67 20 64 75 72 | 69 6e 67 20 72 61 79 2f |ting dur|ing ray/|
|00001a50| 4c 69 73 74 20 69 6e 74 | 65 72 73 65 63 74 69 6f |List int|ersectio|
|00001a60| 6e 20 74 65 73 74 73 20 | 73 6f 0a 58 6f 62 6a 65 |n tests |so.Xobje|
|00001a70| 63 74 73 20 61 72 65 20 | 74 65 73 74 65 64 20 61 |cts are |tested a|
|00001a80| 70 70 72 6f 78 69 6d 61 | 74 65 6c 79 20 69 6e 20 |pproxima|tely in |
|00001a90| 6f 72 64 65 72 2e 0a 58 | 0a 58 45 78 70 72 20 63 |order..X|.XExpr c|
|00001aa0| 6f 6d 70 72 65 73 73 6f | 72 20 70 72 6f 67 72 61 |ompresso|r progra|
|00001ab0| 6d 3a 20 20 53 70 69 74 | 73 20 6f 75 74 20 2e 72 |m: Spit|s out .r|
|00001ac0| 61 79 20 66 69 6c 65 20 | 77 69 74 68 20 6a 75 73 |ay file |with jus|
|00001ad0| 74 20 66 6c 6f 61 74 73 | 2e 0a 58 0a 58 4f 70 74 |t floats|..X.XOpt|
|00001ae0| 69 6d 69 7a 65 20 62 6c | 75 72 20 66 6f 72 20 6e |imize bl|ur for n|
|00001af0| 6f 6e 2d 6a 69 74 74 65 | 72 20 63 61 73 65 20 28 |on-jitte|r case (|
|00001b00| 64 6f 6e 27 74 20 65 78 | 61 70 6e 64 20 62 62 6f |don't ex|apnd bbo|
|00001b10| 78 65 73 2c 20 65 74 63 | 29 2e 0a 58 0a 58 41 6e |xes, etc|)..X.XAn|
|00001b20| 69 6d 61 74 65 64 20 73 | 63 61 6c 65 73 20 61 6e |imated s|cales an|
|00001b30| 64 20 74 72 61 6e 73 6c | 61 74 69 6f 6e 73 20 63 |d transl|ations c|
|00001b40| 61 6e 20 6d 6f 64 69 66 | 79 20 6d 61 74 72 69 78 |an modif|y matrix|
|00001b50| 20 64 69 72 65 63 74 6c | 79 2e 0a 45 4e 44 5f 4f | directl|y..END_O|
|00001b60| 46 5f 46 49 4c 45 0a 69 | 66 20 74 65 73 74 20 31 |F_FILE.i|f test 1|
|00001b70| 32 38 37 20 2d 6e 65 20 | 60 77 63 20 2d 63 20 3c |287 -ne |`wc -c <|
|00001b80| 27 44 6f 63 2f 54 4f 44 | 4f 27 60 3b 20 74 68 65 |'Doc/TOD|O'`; the|
|00001b90| 6e 0a 20 20 20 20 65 63 | 68 6f 20 73 68 61 72 3a |n. ec|ho shar:|
|00001ba0| 20 5c 22 27 44 6f 63 2f | 54 4f 44 4f 27 5c 22 20 | \"'Doc/|TODO'\" |
|00001bb0| 75 6e 70 61 63 6b 65 64 | 20 77 69 74 68 20 77 72 |unpacked| with wr|
|00001bc0| 6f 6e 67 20 73 69 7a 65 | 21 0a 66 69 0a 23 20 65 |ong size|!.fi.# e|
|00001bd0| 6e 64 20 6f 66 20 27 44 | 6f 63 2f 54 4f 44 4f 27 |nd of 'D|oc/TODO'|
|00001be0| 0a 66 69 0a 69 66 20 74 | 65 73 74 20 2d 66 20 27 |.fi.if t|est -f '|
|00001bf0| 45 78 61 6d 70 6c 65 73 | 2f 62 6f 78 62 61 6c 6c |Examples|/boxball|
|00001c00| 2e 72 61 79 27 20 2d 61 | 20 22 24 7b 31 7d 22 20 |.ray' -a| "${1}" |
|00001c10| 21 3d 20 22 2d 63 22 20 | 3b 20 74 68 65 6e 20 0a |!= "-c" |; then .|
|00001c20| 20 20 65 63 68 6f 20 73 | 68 61 72 3a 20 57 69 6c | echo s|har: Wil|
|00001c30| 6c 20 6e 6f 74 20 63 6c | 6f 62 62 65 72 20 65 78 |l not cl|obber ex|
|00001c40| 69 73 74 69 6e 67 20 66 | 69 6c 65 20 5c 22 27 45 |isting f|ile \"'E|
|00001c50| 78 61 6d 70 6c 65 73 2f | 62 6f 78 62 61 6c 6c 2e |xamples/|boxball.|
|00001c60| 72 61 79 27 5c 22 0a 65 | 6c 73 65 0a 65 63 68 6f |ray'\".e|lse.echo|
|00001c70| 20 73 68 61 72 3a 20 45 | 78 74 72 61 63 74 69 6e | shar: E|xtractin|
|00001c80| 67 20 5c 22 27 45 78 61 | 6d 70 6c 65 73 2f 62 6f |g \"'Exa|mples/bo|
|00001c90| 78 62 61 6c 6c 2e 72 61 | 79 27 5c 22 20 5c 28 31 |xball.ra|y'\" \(1|
|00001ca0| 33 38 30 20 63 68 61 72 | 61 63 74 65 72 73 5c 29 |380 char|acters\)|
|00001cb0| 0a 73 65 64 20 22 73 2f | 5e 58 2f 2f 22 20 3e 27 |.sed "s/|^X//" >'|
|00001cc0| 45 78 61 6d 70 6c 65 73 | 2f 62 6f 78 62 61 6c 6c |Examples|/boxball|
|00001cd0| 2e 72 61 79 27 20 3c 3c | 27 45 4e 44 5f 4f 46 5f |.ray' <<|'END_OF_|
|00001ce0| 46 49 4c 45 27 0a 58 2f | 2a 0a 58 20 2a 20 57 68 |FILE'.X/|*.X * Wh|
|00001cf0| 69 74 65 20 64 69 66 66 | 75 73 65 20 73 70 68 65 |ite diff|use sphe|
|00001d00| 72 65 20 77 69 74 68 20 | 77 6f 6f 64 65 6e 20 62 |re with |wooden b|
|00001d10| 6f 78 2d 73 68 61 70 65 | 64 20 72 65 67 69 6f 6e |ox-shape|d region|
|00001d20| 73 20 72 65 6d 6f 76 65 | 64 2e 0a 58 20 2a 20 52 |s remove|d..X * R|
|00001d30| 6f 64 20 42 6f 67 61 72 | 74 20 31 31 2f 39 30 0a |od Bogar|t 11/90.|
|00001d40| 58 20 2a 2f 0a 58 65 79 | 65 70 20 20 34 20 33 20 |X */.Xey|ep 4 3 |
|00001d50| 35 0a 58 66 6f 76 20 31 | 35 0a 58 6c 69 67 68 74 |5.Xfov 1|5.Xlight|
|00001d60| 20 31 20 64 69 72 65 63 | 74 69 6f 6e 61 6c 20 31 | 1 direc|tional 1|
|00001d70| 20 30 2e 35 20 32 0a 58 | 73 61 6d 70 6c 65 20 31 | 0.5 2.X|sample 1|
|00001d80| 09 2f 2a 20 49 6e 63 72 | 65 61 73 65 20 74 68 69 |./* Incr|ease thi|
|00001d90| 73 20 76 61 6c 75 65 20 | 66 6f 72 20 6c 65 73 73 |s value |for less|
|00001da0| 20 6e 6f 69 73 79 20 69 | 6d 61 67 65 20 2a 2f 0a | noisy i|mage */.|
|00001db0| 58 72 65 70 6f 72 74 20 | 76 65 72 62 6f 73 65 0a |Xreport |verbose.|
|00001dc0| 58 73 63 72 65 65 6e 20 | 33 32 30 20 32 35 36 0a |Xscreen |320 256.|
|00001dd0| 58 0a 58 70 6c 61 6e 65 | 20 30 2e 20 30 2e 20 2d |X.Xplane| 0. 0. -|
|00001de0| 35 2e 20 30 2e 20 30 2e | 20 31 20 74 65 78 74 75 |5. 0. 0.| 1 textu|
|00001df0| 72 65 20 6d 61 72 62 6c | 65 20 73 63 61 6c 65 20 |re marbl|e scale |
|00001e00| 32 20 32 20 31 0a 58 0a | 58 64 69 66 66 65 72 65 |2 2 1.X.|Xdiffere|
|00001e10| 6e 63 65 0a 58 09 73 70 | 68 65 72 65 20 20 30 2e |nce.X.sp|here 0.|
|00001e20| 36 35 20 30 20 30 20 30 | 0a 58 09 67 72 69 64 20 |65 0 0 0|.X.grid |
|00001e30| 33 20 33 20 33 09 0a 58 | 09 09 61 70 70 6c 79 73 |3 3 3..X|..applys|
|00001e40| 75 72 66 20 61 6d 62 69 | 65 6e 74 20 2e 32 20 2e |urf ambi|ent .2 .|
|00001e50| 30 35 20 2e 30 35 0a 58 | 09 09 09 20 20 64 69 66 |05 .05.X|... dif|
|00001e60| 66 75 73 65 20 2e 38 20 | 2e 31 20 2e 30 35 0a 58 |fuse .8 |.1 .05.X|
|00001e70| 09 09 09 20 20 73 70 65 | 63 75 6c 61 72 20 2e 30 |... spe|cular .0|
|00001e80| 35 20 2e 30 35 20 2e 30 | 35 0a 58 09 20 20 09 09 |5 .05 .0|5.X. ..|
|00001e90| 20 20 73 70 65 63 70 6f | 77 20 32 30 0a 58 0a 58 | specpo|w 20.X.X|
|00001ea0| 09 09 62 6f 78 20 30 2e | 33 20 30 2e 33 20 2d 30 |..box 0.|3 0.3 -0|
|00001eb0| 2e 37 20 30 2e 37 20 30 | 2e 37 20 2d 30 2e 33 20 |.7 0.7 0|.7 -0.3 |
|00001ec0| 0a 58 09 09 62 6f 78 20 | 2d 30 2e 32 20 30 2e 33 |.X..box |-0.2 0.3|
|00001ed0| 20 2d 30 2e 37 20 30 2e | 32 20 30 2e 37 20 2d 30 | -0.7 0.|2 0.7 -0|
|00001ee0| 2e 33 20 0a 58 09 09 62 | 6f 78 20 2d 30 2e 37 20 |.3 .X..b|ox -0.7 |
|00001ef0| 30 2e 33 20 2d 30 2e 37 | 20 2d 30 2e 33 20 30 2e |0.3 -0.7| -0.3 0.|
|00001f00| 37 20 2d 30 2e 33 20 0a | 58 0a 58 09 09 62 6f 78 |7 -0.3 .|X.X..box|
|00001f10| 20 30 2e 33 20 30 2e 33 | 20 2d 30 2e 32 20 30 2e | 0.3 0.3| -0.2 0.|
|00001f20| 37 20 30 2e 37 20 30 2e | 32 20 0a 58 09 09 62 6f |7 0.7 0.|2 .X..bo|
|00001f30| 78 20 2d 30 2e 32 20 30 | 2e 33 20 2d 30 2e 32 20 |x -0.2 0|.3 -0.2 |
|00001f40| 30 2e 32 20 30 2e 37 20 | 30 2e 32 20 0a 58 09 09 |0.2 0.7 |0.2 .X..|
|00001f50| 62 6f 78 20 2d 30 2e 37 | 20 30 2e 33 20 2d 30 2e |box -0.7| 0.3 -0.|
|00001f60| 32 20 2d 30 2e 33 20 30 | 2e 37 20 30 2e 32 20 0a |2 -0.3 0|.7 0.2 .|
|00001f70| 58 0a 58 09 09 62 6f 78 | 20 30 2e 33 20 30 2e 33 |X.X..box| 0.3 0.3|
|00001f80| 20 30 2e 33 20 30 2e 37 | 20 30 2e 37 20 30 2e 37 | 0.3 0.7| 0.7 0.7|
|00001f90| 20 0a 58 09 09 62 6f 78 | 20 2d 30 2e 32 20 30 2e | .X..box| -0.2 0.|
|00001fa0| 33 20 30 2e 33 20 30 2e | 32 20 30 2e 37 20 30 2e |3 0.3 0.|2 0.7 0.|
|00001fb0| 37 20 0a 58 09 09 62 6f | 78 20 2d 30 2e 37 20 30 |7 .X..bo|x -0.7 0|
|00001fc0| 2e 33 20 30 2e 33 20 2d | 30 2e 33 20 30 2e 37 20 |.3 0.3 -|0.3 0.7 |
|00001fd0| 30 2e 37 20 0a 58 0a 58 | 09 09 62 6f 78 20 30 2e |0.7 .X.X|..box 0.|
|00001fe0| 33 20 2d 30 2e 32 20 2d | 30 2e 37 20 30 2e 37 20 |3 -0.2 -|0.7 0.7 |
|00001ff0| 30 2e 32 20 2d 30 2e 33 | 20 0a 58 09 09 62 6f 78 |0.2 -0.3| .X..box|
|00002000| 20 2d 30 2e 32 20 2d 30 | 2e 32 20 2d 30 2e 37 20 | -0.2 -0|.2 -0.7 |
|00002010| 30 2e 32 20 30 2e 32 20 | 2d 30 2e 33 20 0a 58 09 |0.2 0.2 |-0.3 .X.|
|00002020| 09 62 6f 78 20 2d 30 2e | 37 20 2d 30 2e 32 20 2d |.box -0.|7 -0.2 -|
|00002030| 30 2e 37 20 2d 30 2e 33 | 20 30 2e 32 20 2d 30 2e |0.7 -0.3| 0.2 -0.|
|00002040| 33 20 0a 58 0a 58 09 09 | 62 6f 78 20 30 2e 33 20 |3 .X.X..|box 0.3 |
|00002050| 2d 30 2e 32 20 2d 30 2e | 32 20 30 2e 37 20 30 2e |-0.2 -0.|2 0.7 0.|
|00002060| 32 20 30 2e 32 20 0a 58 | 09 09 62 6f 78 20 2d 30 |2 0.2 .X|..box -0|
|00002070| 2e 32 20 2d 30 2e 32 20 | 2d 30 2e 32 20 30 2e 32 |.2 -0.2 |-0.2 0.2|
|00002080| 20 30 2e 32 20 30 2e 32 | 20 0a 58 09 09 62 6f 78 | 0.2 0.2| .X..box|
|00002090| 20 2d 30 2e 37 20 2d 30 | 2e 32 20 2d 30 2e 32 20 | -0.7 -0|.2 -0.2 |
|000020a0| 2d 30 2e 33 20 30 2e 32 | 20 30 2e 32 20 0a 58 0a |-0.3 0.2| 0.2 .X.|
|000020b0| 58 09 09 62 6f 78 20 30 | 2e 33 20 2d 30 2e 32 20 |X..box 0|.3 -0.2 |
|000020c0| 30 2e 33 20 30 2e 37 20 | 30 2e 32 20 30 2e 37 20 |0.3 0.7 |0.2 0.7 |
|000020d0| 0a 58 09 09 62 6f 78 20 | 2d 30 2e 32 20 2d 30 2e |.X..box |-0.2 -0.|
|000020e0| 32 20 30 2e 33 20 30 2e | 32 20 30 2e 32 20 30 2e |2 0.3 0.|2 0.2 0.|
|000020f0| 37 20 0a 58 09 09 62 6f | 78 20 2d 30 2e 37 20 2d |7 .X..bo|x -0.7 -|
|00002100| 30 2e 32 20 30 2e 33 20 | 2d 30 2e 33 20 30 2e 32 |0.2 0.3 |-0.3 0.2|
|00002110| 20 30 2e 37 20 0a 58 0a | 58 09 09 62 6f 78 20 30 | 0.7 .X.|X..box 0|
|00002120| 2e 33 20 2d 30 2e 37 20 | 2d 30 2e 37 20 30 2e 37 |.3 -0.7 |-0.7 0.7|
|00002130| 20 2d 30 2e 33 20 2d 30 | 2e 33 20 0a 58 09 09 62 | -0.3 -0|.3 .X..b|
|00002140| 6f 78 20 2d 30 2e 32 20 | 2d 30 2e 37 20 2d 30 2e |ox -0.2 |-0.7 -0.|
|00002150| 37 20 30 2e 32 20 2d 30 | 2e 33 20 2d 30 2e 33 20 |7 0.2 -0|.3 -0.3 |
|00002160| 0a 58 09 09 62 6f 78 20 | 2d 30 2e 37 20 2d 30 2e |.X..box |-0.7 -0.|
|00002170| 37 20 2d 30 2e 37 20 2d | 30 2e 33 20 2d 30 2e 33 |7 -0.7 -|0.3 -0.3|
|00002180| 20 2d 30 2e 33 20 0a 58 | 0a 58 09 09 62 6f 78 20 | -0.3 .X|.X..box |
|00002190| 30 2e 33 20 2d 30 2e 37 | 20 2d 30 2e 32 20 30 2e |0.3 -0.7| -0.2 0.|
|000021a0| 37 20 2d 30 2e 33 20 30 | 2e 32 20 0a 58 09 09 62 |7 -0.3 0|.2 .X..b|
|000021b0| 6f 78 20 2d 30 2e 32 20 | 2d 30 2e 37 20 2d 30 2e |ox -0.2 |-0.7 -0.|
|000021c0| 32 20 30 2e 32 20 2d 30 | 2e 33 20 30 2e 32 20 0a |2 0.2 -0|.3 0.2 .|
|000021d0| 58 09 09 62 6f 78 20 2d | 30 2e 37 20 2d 30 2e 37 |X..box -|0.7 -0.7|
|000021e0| 20 2d 30 2e 32 20 2d 30 | 2e 33 20 2d 30 2e 33 20 | -0.2 -0|.3 -0.3 |
|000021f0| 30 2e 32 20 0a 58 0a 58 | 09 09 62 6f 78 20 30 2e |0.2 .X.X|..box 0.|
|00002200| 33 20 2d 30 2e 37 20 30 | 2e 33 20 30 2e 37 20 2d |3 -0.7 0|.3 0.7 -|
|00002210| 30 2e 33 20 30 2e 37 20 | 0a 58 09 09 62 6f 78 20 |0.3 0.7 |.X..box |
|00002220| 2d 30 2e 32 20 2d 30 2e | 37 20 30 2e 33 20 30 2e |-0.2 -0.|7 0.3 0.|
|00002230| 32 20 2d 30 2e 33 20 30 | 2e 37 20 0a 58 09 09 62 |2 -0.3 0|.7 .X..b|
|00002240| 6f 78 20 2d 30 2e 37 20 | 2d 30 2e 37 20 30 2e 33 |ox -0.7 |-0.7 0.3|
|00002250| 20 2d 30 2e 33 20 2d 30 | 2e 33 20 30 2e 37 20 0a | -0.3 -0|.3 0.7 .|
|00002260| 58 09 65 6e 64 20 74 65 | 78 74 75 72 65 20 77 6f |X.end te|xture wo|
|00002270| 6f 64 20 73 63 61 6c 65 | 20 33 20 31 20 31 0a 58 |od scale| 3 1 1.X|
|00002280| 65 6e 64 0a 45 4e 44 5f | 4f 46 5f 46 49 4c 45 0a |end.END_|OF_FILE.|
|00002290| 69 66 20 74 65 73 74 20 | 31 33 38 30 20 2d 6e 65 |if test |1380 -ne|
|000022a0| 20 60 77 63 20 2d 63 20 | 3c 27 45 78 61 6d 70 6c | `wc -c |<'Exampl|
|000022b0| 65 73 2f 62 6f 78 62 61 | 6c 6c 2e 72 61 79 27 60 |es/boxba|ll.ray'`|
|000022c0| 3b 20 74 68 65 6e 0a 20 | 20 20 20 65 63 68 6f 20 |; then. | echo |
|000022d0| 73 68 61 72 3a 20 5c 22 | 27 45 78 61 6d 70 6c 65 |shar: \"|'Example|
|000022e0| 73 2f 62 6f 78 62 61 6c | 6c 2e 72 61 79 27 5c 22 |s/boxbal|l.ray'\"|
|000022f0| 20 75 6e 70 61 63 6b 65 | 64 20 77 69 74 68 20 77 | unpacke|d with w|
|00002300| 72 6f 6e 67 20 73 69 7a | 65 21 0a 66 69 0a 23 20 |rong siz|e!.fi.# |
|00002310| 65 6e 64 20 6f 66 20 27 | 45 78 61 6d 70 6c 65 73 |end of '|Examples|
|00002320| 2f 62 6f 78 62 61 6c 6c | 2e 72 61 79 27 0a 66 69 |/boxball|.ray'.fi|
|00002330| 0a 69 66 20 74 65 73 74 | 20 2d 66 20 27 52 65 63 |.if test| -f 'Rec|
|00002340| 6f 6e 66 69 67 75 72 65 | 27 20 2d 61 20 22 24 7b |onfigure|' -a "${|
|00002350| 31 7d 22 20 21 3d 20 22 | 2d 63 22 20 3b 20 74 68 |1}" != "|-c" ; th|
|00002360| 65 6e 20 0a 20 20 65 63 | 68 6f 20 73 68 61 72 3a |en . ec|ho shar:|
|00002370| 20 57 69 6c 6c 20 6e 6f | 74 20 63 6c 6f 62 62 65 | Will no|t clobbe|
|00002380| 72 20 65 78 69 73 74 69 | 6e 67 20 66 69 6c 65 20 |r existi|ng file |
|00002390| 5c 22 27 52 65 63 6f 6e | 66 69 67 75 72 65 27 5c |\"'Recon|figure'\|
|000023a0| 22 0a 65 6c 73 65 0a 65 | 63 68 6f 20 73 68 61 72 |".else.e|cho shar|
|000023b0| 3a 20 45 78 74 72 61 63 | 74 69 6e 67 20 5c 22 27 |: Extrac|ting \"'|
|000023c0| 52 65 63 6f 6e 66 69 67 | 75 72 65 27 5c 22 20 5c |Reconfig|ure'\" \|
|000023d0| 28 31 34 38 32 20 63 68 | 61 72 61 63 74 65 72 73 |(1482 ch|aracters|
|000023e0| 5c 29 0a 73 65 64 20 22 | 73 2f 5e 58 2f 2f 22 20 |\).sed "|s/^X//" |
|000023f0| 3e 27 52 65 63 6f 6e 66 | 69 67 75 72 65 27 20 3c |>'Reconf|igure' <|
|00002400| 3c 27 45 4e 44 5f 4f 46 | 5f 46 49 4c 45 27 0a 58 |<'END_OF|_FILE'.X|
|00002410| 23 21 2f 62 69 6e 2f 73 | 68 0a 58 23 0a 58 23 20 |#!/bin/s|h.X#.X# |
|00002420| 52 65 63 6f 6e 66 69 67 | 75 72 65 0a 58 23 20 45 |Reconfig|ure.X# E|
|00002430| 78 74 72 61 63 74 20 2e | 53 48 20 66 69 6c 65 73 |xtract .|SH files|
|00002440| 20 75 73 69 6e 67 20 76 | 61 6c 75 65 73 20 69 6e | using v|alues in|
|00002450| 20 63 6f 6e 66 69 67 2e | 73 68 0a 58 23 0a 58 23 | config.|sh.X#.X#|
|00002460| 20 55 73 65 66 75 6c 20 | 69 6e 20 65 6e 76 69 72 | Useful |in envir|
|00002470| 6f 6e 6d 65 6e 74 73 20 | 69 6e 20 77 68 69 63 68 |onments |in which|
|00002480| 20 74 68 65 20 73 6f 75 | 72 63 65 20 74 72 65 65 | the sou|rce tree|
|00002490| 0a 58 23 20 69 73 20 75 | 73 65 64 20 74 6f 20 62 |.X# is u|sed to b|
|000024a0| 75 69 6c 64 20 65 78 65 | 63 75 74 61 62 6c 65 73 |uild exe|cutables|
|000024b0| 20 66 6f 72 20 6d 6f 72 | 65 20 74 68 61 6e 20 6f | for mor|e than o|
|000024c0| 6e 65 20 6b 69 6e 64 20 | 6f 66 20 6d 61 63 68 69 |ne kind |of machi|
|000024d0| 6e 65 2e 0a 58 23 20 41 | 66 74 65 72 20 72 75 6e |ne..X# A|fter run|
|000024e0| 6e 69 6e 67 20 43 6f 6e | 66 69 67 75 72 65 20 6f |ning Con|figure o|
|000024f0| 6e 20 61 20 70 61 72 74 | 69 63 75 6c 61 72 20 6d |n a part|icular m|
|00002500| 61 63 68 69 6e 65 2c 20 | 63 6f 70 79 20 74 68 65 |achine, |copy the|
|00002510| 0a 58 23 20 72 65 73 75 | 6c 74 69 6e 67 20 63 6f |.X# resu|lting co|
|00002520| 6e 66 69 67 2e 73 68 20 | 74 6f 2c 20 66 6f 72 20 |nfig.sh |to, for |
|00002530| 65 78 61 6d 70 6c 65 2c | 20 63 6f 6e 66 69 67 2e |example,| config.|
|00002540| 73 68 2e 53 50 41 52 43 | 2e 0a 58 23 20 57 68 65 |sh.SPARC|..X# Whe|
|00002550| 6e 20 79 6f 75 20 68 61 | 76 65 20 74 6f 20 72 65 |n you ha|ve to re|
|00002560| 63 6f 6d 70 69 6c 65 20 | 66 6f 72 20 73 6f 6d 65 |compile |for some|
|00002570| 20 72 65 61 73 6f 6e 2c | 20 72 75 6e 6e 69 6e 67 | reason,| running|
|00002580| 0a 58 23 20 22 52 65 63 | 6f 6e 66 69 67 75 72 65 |.X# "Rec|onfigure|
|00002590| 20 63 6f 6e 66 69 67 2e | 73 68 2e 53 50 41 52 43 | config.|sh.SPARC|
|000025a0| 22 20 73 68 6f 75 6c 64 | 20 70 72 6f 64 75 63 65 |" should| produce|
|000025b0| 20 74 68 65 20 63 6f 72 | 72 65 63 74 20 4d 61 6b | the cor|rect Mak|
|000025c0| 65 66 69 6c 65 73 0a 58 | 23 20 61 6e 64 20 74 68 |efiles.X|# and th|
|000025d0| 65 20 6c 69 6b 65 2e 0a | 58 23 0a 58 23 20 49 66 |e like..|X#.X# If|
|000025e0| 20 79 6f 75 20 6e 65 65 | 64 20 74 6f 20 72 75 6e | you nee|d to run|
|000025f0| 20 22 6d 61 6b 65 20 64 | 65 70 65 6e 64 22 20 66 | "make d|epend" f|
|00002600| 6f 72 20 61 20 6d 61 63 | 68 69 6e 65 20 6f 74 68 |or a mac|hine oth|
|00002610| 65 72 20 74 68 61 6e 20 | 74 68 65 20 6f 6e 65 0a |er than |the one.|
|00002620| 58 23 20 74 68 61 74 20 | 74 68 65 20 43 6f 6e 66 |X# that |the Conf|
|00002630| 69 67 75 72 65 20 73 63 | 72 69 70 74 20 77 61 73 |igure sc|ript was|
|00002640| 20 6c 61 73 74 20 72 75 | 6e 20 66 6f 72 2c 20 79 | last ru|n for, y|
|00002650| 6f 75 20 77 69 6c 6c 20 | 6e 65 65 64 20 74 6f 20 |ou will |need to |
|00002660| 72 65 6d 61 6b 65 0a 58 | 23 20 74 68 65 20 22 6d |remake.X|# the "m|
|00002670| 6b 64 65 70 22 20 73 63 | 72 69 70 74 20 62 79 20 |kdep" sc|ript by |
|00002680| 72 65 6d 6f 76 69 6e 67 | 20 69 74 2c 20 63 6f 70 |removing| it, cop|
|00002690| 79 69 6e 67 20 74 68 65 | 20 61 70 70 72 6f 70 72 |ying the| appropr|
|000026a0| 69 61 74 65 0a 58 23 20 | 63 6f 6e 66 69 67 2e 73 |iate.X# |config.s|
|000026b0| 68 2e 4d 41 43 48 49 4e | 45 20 66 69 6c 65 20 74 |h.MACHIN|E file t|
|000026c0| 6f 20 63 6f 6e 66 69 67 | 2e 73 68 2c 20 61 6e 64 |o config|.sh, and|
|000026d0| 20 72 75 6e 6e 69 6e 67 | 20 22 43 6f 6e 66 69 67 | running| "Config|
|000026e0| 75 72 65 20 2d 64 22 2e | 0a 58 23 0a 58 0a 58 63 |ure -d".|.X#.X.Xc|
|000026f0| 61 73 65 20 22 24 31 22 | 20 69 6e 0a 58 27 27 29 |ase "$1"| in.X'')|
|00002700| 0a 58 09 63 6f 6e 66 69 | 67 66 69 6c 65 3d 22 2e |.X.confi|gfile=".|
|00002710| 2f 63 6f 6e 66 69 67 2e | 73 68 22 0a 58 09 3b 3b |/config.|sh".X.;;|
|00002720| 0a 58 2a 29 0a 58 09 69 | 66 20 74 65 73 74 20 2d |.X*).X.i|f test -|
|00002730| 66 20 22 24 31 22 20 3b | 20 74 68 65 6e 0a 58 09 |f "$1" ;| then.X.|
|00002740| 09 63 6f 6e 66 69 67 66 | 69 6c 65 3d 22 24 31 22 |.configf|ile="$1"|
|00002750| 0a 58 09 65 6c 73 65 0a | 58 09 09 65 63 68 6f 20 |.X.else.|X..echo |
|00002760| 22 24 31 20 64 6f 65 73 | 20 6e 6f 74 20 65 78 69 |"$1 does| not exi|
|00002770| 73 74 2e 22 0a 58 09 09 | 65 78 69 74 0a 58 09 66 |st.".X..|exit.X.f|
|00002780| 69 0a 58 65 73 61 63 0a | 58 0a 58 65 63 68 6f 20 |i.Xesac.|X.Xecho |
|00002790| 22 52 65 63 6f 6e 66 69 | 67 75 72 69 6e 67 20 75 |"Reconfi|guring u|
|000027a0| 73 69 6e 67 20 24 63 6f | 6e 66 69 67 66 69 6c 65 |sing $co|nfigfile|
|000027b0| 2e 22 0a 58 2e 20 24 63 | 6f 6e 66 69 67 66 69 6c |.".X. $c|onfigfil|
|000027c0| 65 0a 58 0a 58 65 63 68 | 6f 20 22 20 22 0a 58 65 |e.X.Xech|o " ".Xe|
|000027d0| 63 68 6f 20 22 44 6f 69 | 6e 67 20 76 61 72 69 61 |cho "Doi|ng varia|
|000027e0| 62 6c 65 20 73 75 62 73 | 74 69 74 75 74 69 6f 6e |ble subs|titution|
|000027f0| 73 20 6f 6e 20 2e 53 48 | 20 66 69 6c 65 73 2e 2e |s on .SH| files..|
|00002800| 2e 22 0a 58 73 65 74 20 | 78 20 60 61 77 6b 20 27 |.".Xset |x `awk '|
|00002810| 7b 70 72 69 6e 74 20 24 | 31 7d 27 20 3c 4d 41 4e |{print $|1}' <MAN|
|00002820| 49 46 45 53 54 20 7c 20 | 24 67 72 65 70 20 27 5c |IFEST | |$grep '\|
|00002830| 2e 53 48 27 60 0a 58 73 | 68 69 66 74 0a 58 63 61 |.SH'`.Xs|hift.Xca|
|00002840| 73 65 20 24 23 20 69 6e | 0a 58 30 29 20 73 65 74 |se $# in|.X0) set|
|00002850| 20 78 20 2a 2e 53 48 3b | 20 73 68 69 66 74 3b 3b | x *.SH;| shift;;|
|00002860| 0a 58 65 73 61 63 0a 58 | 69 66 20 74 65 73 74 20 |.Xesac.X|if test |
|00002870| 21 20 2d 66 20 24 31 3b | 20 74 68 65 6e 0a 58 20 |! -f $1;| then.X |
|00002880| 20 20 20 73 68 69 66 74 | 0a 58 66 69 0a 58 66 6f | shift|.Xfi.Xfo|
|00002890| 72 20 66 69 6c 65 20 69 | 6e 20 24 2a 3b 20 64 6f |r file i|n $*; do|
|000028a0| 0a 58 20 20 20 20 63 61 | 73 65 20 22 24 66 69 6c |.X ca|se "$fil|
|000028b0| 65 22 20 69 6e 0a 58 20 | 20 20 20 2a 2f 2a 29 0a |e" in.X | */*).|
|000028c0| 58 09 64 69 72 3d 60 24 | 65 78 70 72 20 58 24 66 |X.dir=`$|expr X$f|
|000028d0| 69 6c 65 20 3a 20 27 58 | 5c 28 2e 2a 5c 29 2f 27 |ile : 'X|\(.*\)/'|
|000028e0| 60 0a 58 09 66 69 6c 65 | 3d 60 24 65 78 70 72 20 |`.X.file|=`$expr |
|000028f0| 58 24 66 69 6c 65 20 3a | 20 27 58 2e 2a 2f 5c 28 |X$file :| 'X.*/\(|
|00002900| 2e 2a 5c 29 27 60 0a 58 | 09 28 63 64 20 24 64 69 |.*\)'`.X|.(cd $di|
|00002910| 72 20 26 26 20 2e 20 24 | 66 69 6c 65 29 0a 58 09 |r && . $|file).X.|
|00002920| 3b 3b 0a 58 20 20 20 20 | 2a 29 0a 58 09 2e 20 24 |;;.X |*).X.. $|
|00002930| 66 69 6c 65 0a 58 09 3b | 3b 0a 58 20 20 20 20 65 |file.X.;|;.X e|
|00002940| 73 61 63 0a 58 64 6f 6e | 65 0a 58 69 66 20 74 65 |sac.Xdon|e.Xif te|
|00002950| 73 74 20 2d 66 20 63 6f | 6e 66 69 67 2e 68 2e 53 |st -f co|nfig.h.S|
|00002960| 48 3b 20 74 68 65 6e 0a | 58 20 20 20 20 69 66 20 |H; then.|X if |
|00002970| 74 65 73 74 20 21 20 2d | 66 20 63 6f 6e 66 69 67 |test ! -|f config|
|00002980| 2e 68 3b 20 74 68 65 6e | 0a 58 09 3a 20 6f 6f 70 |.h; then|.X.: oop|
|00002990| 73 2c 20 74 68 65 79 20 | 6c 65 66 74 20 69 74 20 |s, they |left it |
|000029a0| 6f 75 74 20 6f 66 20 4d | 41 4e 49 46 45 53 54 2c |out of M|ANIFEST,|
|000029b0| 20 70 72 6f 62 61 62 6c | 79 2c 20 73 6f 20 64 6f | probabl|y, so do|
|000029c0| 20 69 74 20 61 6e 79 77 | 61 79 2e 0a 58 09 2e 20 | it anyw|ay..X.. |
|000029d0| 63 6f 6e 66 69 67 2e 68 | 2e 53 48 0a 58 20 20 20 |config.h|.SH.X |
|000029e0| 20 66 69 0a 58 66 69 0a | 58 0a 58 65 63 68 6f 20 | fi.Xfi.|X.Xecho |
|000029f0| 22 59 6f 75 20 6d 75 73 | 74 20 72 75 6e 20 27 6d |"You mus|t run 'm|
|00002a00| 61 6b 65 20 64 65 70 65 | 6e 64 27 20 74 68 65 6e |ake depe|nd' then|
|00002a10| 20 27 6d 61 6b 65 27 2e | 22 0a 45 4e 44 5f 4f 46 | 'make'.|".END_OF|
|00002a20| 5f 46 49 4c 45 0a 69 66 | 20 74 65 73 74 20 31 34 |_FILE.if| test 14|
|00002a30| 38 32 20 2d 6e 65 20 60 | 77 63 20 2d 63 20 3c 27 |82 -ne `|wc -c <'|
|00002a40| 52 65 63 6f 6e 66 69 67 | 75 72 65 27 60 3b 20 74 |Reconfig|ure'`; t|
|00002a50| 68 65 6e 0a 20 20 20 20 | 65 63 68 6f 20 73 68 61 |hen. |echo sha|
|00002a60| 72 3a 20 5c 22 27 52 65 | 63 6f 6e 66 69 67 75 72 |r: \"'Re|configur|
|00002a70| 65 27 5c 22 20 75 6e 70 | 61 63 6b 65 64 20 77 69 |e'\" unp|acked wi|
|00002a80| 74 68 20 77 72 6f 6e 67 | 20 73 69 7a 65 21 0a 66 |th wrong| size!.f|
|00002a90| 69 0a 63 68 6d 6f 64 20 | 2b 78 20 27 52 65 63 6f |i.chmod |+x 'Reco|
|00002aa0| 6e 66 69 67 75 72 65 27 | 0a 23 20 65 6e 64 20 6f |nfigure'|.# end o|
|00002ab0| 66 20 27 52 65 63 6f 6e | 66 69 67 75 72 65 27 0a |f 'Recon|figure'.|
|00002ac0| 66 69 0a 69 66 20 74 65 | 73 74 20 2d 66 20 27 6c |fi.if te|st -f 'l|
|00002ad0| 69 62 72 61 79 2f 6c 69 | 62 63 6f 6d 6d 6f 6e 2f |ibray/li|bcommon/|
|00002ae0| 63 6f 6c 6f 72 2e 68 27 | 20 2d 61 20 22 24 7b 31 |color.h'| -a "${1|
|00002af0| 7d 22 20 21 3d 20 22 2d | 63 22 20 3b 20 74 68 65 |}" != "-|c" ; the|
|00002b00| 6e 20 0a 20 20 65 63 68 | 6f 20 73 68 61 72 3a 20 |n . ech|o shar: |
|00002b10| 57 69 6c 6c 20 6e 6f 74 | 20 63 6c 6f 62 62 65 72 |Will not| clobber|
|00002b20| 20 65 78 69 73 74 69 6e | 67 20 66 69 6c 65 20 5c | existin|g file \|
|00002b30| 22 27 6c 69 62 72 61 79 | 2f 6c 69 62 63 6f 6d 6d |"'libray|/libcomm|
|00002b40| 6f 6e 2f 63 6f 6c 6f 72 | 2e 68 27 5c 22 0a 65 6c |on/color|.h'\".el|
|00002b50| 73 65 0a 65 63 68 6f 20 | 73 68 61 72 3a 20 45 78 |se.echo |shar: Ex|
|00002b60| 74 72 61 63 74 69 6e 67 | 20 5c 22 27 6c 69 62 72 |tracting| \"'libr|
|00002b70| 61 79 2f 6c 69 62 63 6f | 6d 6d 6f 6e 2f 63 6f 6c |ay/libco|mmon/col|
|00002b80| 6f 72 2e 68 27 5c 22 20 | 5c 28 31 32 34 31 20 63 |or.h'\" |\(1241 c|
|00002b90| 68 61 72 61 63 74 65 72 | 73 5c 29 0a 73 65 64 20 |haracter|s\).sed |
|00002ba0| 22 73 2f 5e 58 2f 2f 22 | 20 3e 27 6c 69 62 72 61 |"s/^X//"| >'libra|
|00002bb0| 79 2f 6c 69 62 63 6f 6d | 6d 6f 6e 2f 63 6f 6c 6f |y/libcom|mon/colo|
|00002bc0| 72 2e 68 27 20 3c 3c 27 | 45 4e 44 5f 4f 46 5f 46 |r.h' <<'|END_OF_F|
|00002bd0| 49 4c 45 27 0a 58 2f 2a | 0a 58 20 2a 20 63 6f 6c |ILE'.X/*|.X * col|
|00002be0| 6f 72 2e 68 0a 58 20 2a | 0a 58 20 2a 20 43 6f 70 |or.h.X *|.X * Cop|
|00002bf0| 79 72 69 67 68 74 20 28 | 43 29 20 31 39 38 39 2c |yright (|C) 1989,|
|00002c00| 20 31 39 39 31 2c 20 43 | 72 61 69 67 20 45 2e 20 | 1991, C|raig E. |
|00002c10| 4b 6f 6c 62 0a 58 20 2a | 20 41 6c 6c 20 72 69 67 |Kolb.X *| All rig|
|00002c20| 68 74 73 20 72 65 73 65 | 72 76 65 64 2e 0a 58 20 |hts rese|rved..X |
|00002c30| 2a 0a 58 20 2a 20 54 68 | 69 73 20 73 6f 66 74 77 |*.X * Th|is softw|
|00002c40| 61 72 65 20 6d 61 79 20 | 62 65 20 66 72 65 65 6c |are may |be freel|
|00002c50| 79 20 63 6f 70 69 65 64 | 2c 20 6d 6f 64 69 66 69 |y copied|, modifi|
|00002c60| 65 64 2c 20 61 6e 64 20 | 72 65 64 69 73 74 72 69 |ed, and |redistri|
|00002c70| 62 75 74 65 64 0a 58 20 | 2a 20 70 72 6f 76 69 64 |buted.X |* provid|
|00002c80| 65 64 20 74 68 61 74 20 | 74 68 69 73 20 63 6f 70 |ed that |this cop|
|00002c90| 79 72 69 67 68 74 20 6e | 6f 74 69 63 65 20 69 73 |yright n|otice is|
|00002ca0| 20 70 72 65 73 65 72 76 | 65 64 20 6f 6e 20 61 6c | preserv|ed on al|
|00002cb0| 6c 20 63 6f 70 69 65 73 | 2e 0a 58 20 2a 0a 58 20 |l copies|..X *.X |
|00002cc0| 2a 20 59 6f 75 20 6d 61 | 79 20 6e 6f 74 20 64 69 |* You ma|y not di|
|00002cd0| 73 74 72 69 62 75 74 65 | 20 74 68 69 73 20 73 6f |stribute| this so|
|00002ce0| 66 74 77 61 72 65 2c 20 | 69 6e 20 77 68 6f 6c 65 |ftware, |in whole|
|00002cf0| 20 6f 72 20 69 6e 20 70 | 61 72 74 2c 20 61 73 20 | or in p|art, as |
|00002d00| 70 61 72 74 20 6f 66 0a | 58 20 2a 20 61 6e 79 20 |part of.|X * any |
|00002d10| 63 6f 6d 6d 65 72 63 69 | 61 6c 20 70 72 6f 64 75 |commerci|al produ|
|00002d20| 63 74 20 77 69 74 68 6f | 75 74 20 74 68 65 20 65 |ct witho|ut the e|
|00002d30| 78 70 72 65 73 73 20 63 | 6f 6e 73 65 6e 74 20 6f |xpress c|onsent o|
|00002d40| 66 20 74 68 65 20 61 75 | 74 68 6f 72 73 2e 0a 58 |f the au|thors..X|
|00002d50| 20 2a 0a 58 20 2a 20 54 | 68 65 72 65 20 69 73 20 | *.X * T|here is |
|00002d60| 6e 6f 20 77 61 72 72 61 | 6e 74 79 20 6f 72 20 6f |no warra|nty or o|
|00002d70| 74 68 65 72 20 67 75 61 | 72 61 6e 74 65 65 20 6f |ther gua|rantee o|
|00002d80| 66 20 66 69 74 6e 65 73 | 73 20 6f 66 20 74 68 69 |f fitnes|s of thi|
|00002d90| 73 20 73 6f 66 74 77 61 | 72 65 0a 58 20 2a 20 66 |s softwa|re.X * f|
|00002da0| 6f 72 20 61 6e 79 20 70 | 75 72 70 6f 73 65 2e 20 |or any p|urpose. |
|00002db0| 20 49 74 20 69 73 20 70 | 72 6f 76 69 64 65 64 20 | It is p|rovided |
|00002dc0| 73 6f 6c 65 6c 79 20 22 | 61 73 20 69 73 22 2e 0a |solely "|as is"..|
|00002dd0| 58 20 2a 0a 58 20 2a 20 | 24 49 64 3a 20 63 6f 6c |X *.X * |$Id: col|
|00002de0| 6f 72 2e 68 2c 76 20 34 | 2e 30 20 39 31 2f 30 37 |or.h,v 4|.0 91/07|
|00002df0| 2f 31 37 20 31 34 3a 33 | 30 3a 30 38 20 6b 6f 6c |/17 14:3|0:08 kol|
|00002e00| 62 20 45 78 70 20 4c 6f | 63 6b 65 72 3a 20 6b 6f |b Exp Lo|cker: ko|
|00002e10| 6c 62 20 24 0a 58 20 2a | 0a 58 20 2a 20 24 4c 6f |lb $.X *|.X * $Lo|
|00002e20| 67 3a 09 63 6f 6c 6f 72 | 2e 68 2c 76 20 24 0a 58 |g:.color|.h,v $.X|
|00002e30| 20 2a 20 52 65 76 69 73 | 69 6f 6e 20 34 2e 30 20 | * Revis|ion 4.0 |
|00002e40| 20 39 31 2f 30 37 2f 31 | 37 20 20 31 34 3a 33 30 | 91/07/1|7 14:30|
|00002e50| 3a 30 38 20 20 6b 6f 6c | 62 0a 58 20 2a 20 49 6e |:08 kol|b.X * In|
|00002e60| 69 74 69 61 6c 20 76 65 | 72 73 69 6f 6e 2e 0a 58 |itial ve|rsion..X|
|00002e70| 20 2a 20 0a 58 20 2a 2f | 0a 58 23 69 66 6e 64 65 | * .X */|.X#ifnde|
|00002e80| 66 20 43 4f 4c 4f 52 5f | 48 0a 58 23 64 65 66 69 |f COLOR_|H.X#defi|
|00002e90| 6e 65 20 43 4f 4c 4f 52 | 5f 48 0a 58 2f 2a 0a 58 |ne COLOR|_H.X/*.X|
|00002ea0| 20 2a 20 43 6f 6c 6f 72 | 0a 58 20 2a 2f 0a 58 74 | * Color|.X */.Xt|
|00002eb0| 79 70 65 64 65 66 20 73 | 74 72 75 63 74 20 43 6f |ypedef s|truct Co|
|00002ec0| 6c 6f 72 20 7b 0a 58 09 | 46 6c 6f 61 74 20 72 2c |lor {.X.|Float r,|
|00002ed0| 20 67 2c 20 62 3b 09 09 | 09 2f 2a 20 52 65 64 2c | g, b;..|./* Red,|
|00002ee0| 20 67 72 65 65 6e 2c 20 | 62 6c 75 65 2e 20 2a 2f | green, |blue. */|
|00002ef0| 0a 58 7d 20 43 6f 6c 6f | 72 3b 0a 58 0a 58 23 64 |.X} Colo|r;.X.X#d|
|00002f00| 65 66 69 6e 65 20 43 6f | 6c 6f 72 53 63 61 6c 65 |efine Co|lorScale|
|00002f10| 28 73 2c 63 2c 61 29 09 | 09 28 61 29 2d 3e 72 20 |(s,c,a).|.(a)->r |
|00002f20| 3d 20 28 73 29 2a 28 63 | 29 2e 72 2c 20 5c 0a 58 |= (s)*(c|).r, \.X|
|00002f30| 09 09 09 09 09 28 61 29 | 2d 3e 67 20 3d 20 28 73 |.....(a)|->g = (s|
|00002f40| 29 2a 28 63 29 2e 67 2c | 20 5c 0a 58 09 09 09 09 |)*(c).g,| \.X....|
|00002f50| 09 28 61 29 2d 3e 62 20 | 3d 20 28 73 29 2a 28 63 |.(a)->b |= (s)*(c|
|00002f60| 29 2e 62 0a 58 0a 58 23 | 64 65 66 69 6e 65 20 43 |).b.X.X#|define C|
|00002f70| 6f 6c 6f 72 41 64 64 53 | 63 61 6c 65 64 28 78 2c |olorAddS|caled(x,|
|00002f80| 20 73 2c 20 79 2c 20 63 | 29 09 28 63 29 2d 3e 72 | s, y, c|).(c)->r|
|00002f90| 20 3d 20 28 78 29 2e 72 | 20 2b 20 28 73 29 2a 28 | = (x).r| + (s)*(|
|00002fa0| 79 29 2e 72 2c 20 5c 0a | 58 09 09 09 09 09 28 63 |y).r, \.|X.....(c|
|00002fb0| 29 2d 3e 67 20 3d 20 28 | 78 29 2e 67 20 2b 20 28 |)->g = (|x).g + (|
|00002fc0| 73 29 2a 28 79 29 2e 67 | 2c 20 5c 0a 58 09 09 09 |s)*(y).g|, \.X...|
|00002fd0| 09 09 28 63 29 2d 3e 62 | 20 3d 20 28 78 29 2e 62 |..(c)->b| = (x).b|
|00002fe0| 20 2b 20 28 73 29 2a 28 | 79 29 2e 62 0a 58 0a 58 | + (s)*(|y).b.X.X|
|00002ff0| 23 64 65 66 69 6e 65 20 | 43 6f 6c 6f 72 4d 75 6c |#define |ColorMul|
|00003000| 74 69 70 6c 79 28 78 2c | 79 2c 61 29 09 09 28 61 |tiply(x,|y,a)..(a|
|00003010| 29 2d 3e 72 20 3d 20 28 | 78 29 2e 72 2a 28 79 29 |)->r = (|x).r*(y)|
|00003020| 2e 72 2c 20 5c 0a 58 09 | 09 09 09 09 28 61 29 2d |.r, \.X.|....(a)-|
|00003030| 3e 67 20 3d 20 28 78 29 | 2e 67 2a 28 79 29 2e 67 |>g = (x)|.g*(y).g|
|00003040| 2c 20 5c 0a 58 09 09 09 | 09 09 28 61 29 2d 3e 62 |, \.X...|..(a)->b|
|00003050| 20 3d 20 28 78 29 2e 62 | 2a 28 79 29 2e 62 0a 58 | = (x).b|*(y).b.X|
|00003060| 0a 58 23 64 65 66 69 6e | 65 20 43 6f 6c 6f 72 41 |.X#defin|e ColorA|
|00003070| 64 64 28 78 2c 79 2c 61 | 29 09 09 09 28 61 29 2d |dd(x,y,a|)...(a)-|
|00003080| 3e 72 20 3d 20 28 78 29 | 2e 72 2b 28 79 29 2e 72 |>r = (x)|.r+(y).r|
|00003090| 2c 20 5c 0a 58 09 09 09 | 09 09 28 61 29 2d 3e 67 |, \.X...|..(a)->g|
|000030a0| 20 3d 20 28 78 29 2e 67 | 2b 28 79 29 2e 67 2c 20 | = (x).g|+(y).g, |
|000030b0| 5c 0a 58 09 09 09 09 09 | 28 61 29 2d 3e 62 20 3d |\.X.....|(a)->b =|
|000030c0| 20 28 78 29 2e 62 2b 28 | 79 29 2e 62 0a 58 23 65 | (x).b+(|y).b.X#e|
|000030d0| 6e 64 69 66 20 43 4f 4c | 4f 52 5f 48 0a 45 4e 44 |ndif COL|OR_H.END|
|000030e0| 5f 4f 46 5f 46 49 4c 45 | 0a 69 66 20 74 65 73 74 |_OF_FILE|.if test|
|000030f0| 20 31 32 34 31 20 2d 6e | 65 20 60 77 63 20 2d 63 | 1241 -n|e `wc -c|
|00003100| 20 3c 27 6c 69 62 72 61 | 79 2f 6c 69 62 63 6f 6d | <'libra|y/libcom|
|00003110| 6d 6f 6e 2f 63 6f 6c 6f | 72 2e 68 27 60 3b 20 74 |mon/colo|r.h'`; t|
|00003120| 68 65 6e 0a 20 20 20 20 | 65 63 68 6f 20 73 68 61 |hen. |echo sha|
|00003130| 72 3a 20 5c 22 27 6c 69 | 62 72 61 79 2f 6c 69 62 |r: \"'li|bray/lib|
|00003140| 63 6f 6d 6d 6f 6e 2f 63 | 6f 6c 6f 72 2e 68 27 5c |common/c|olor.h'\|
|00003150| 22 20 75 6e 70 61 63 6b | 65 64 20 77 69 74 68 20 |" unpack|ed with |
|00003160| 77 72 6f 6e 67 20 73 69 | 7a 65 21 0a 66 69 0a 23 |wrong si|ze!.fi.#|
|00003170| 20 65 6e 64 20 6f 66 20 | 27 6c 69 62 72 61 79 2f | end of |'libray/|
|00003180| 6c 69 62 63 6f 6d 6d 6f | 6e 2f 63 6f 6c 6f 72 2e |libcommo|n/color.|
|00003190| 68 27 0a 66 69 0a 69 66 | 20 74 65 73 74 20 2d 66 |h'.fi.if| test -f|
|000031a0| 20 27 6c 69 62 72 61 79 | 2f 6c 69 62 63 6f 6d 6d | 'libray|/libcomm|
|000031b0| 6f 6e 2f 65 72 72 6f 72 | 2e 68 27 20 2d 61 20 22 |on/error|.h' -a "|
|000031c0| 24 7b 31 7d 22 20 21 3d | 20 22 2d 63 22 20 3b 20 |${1}" !=| "-c" ; |
|000031d0| 74 68 65 6e 20 0a 20 20 | 65 63 68 6f 20 73 68 61 |then . |echo sha|
|000031e0| 72 3a 20 57 69 6c 6c 20 | 6e 6f 74 20 63 6c 6f 62 |r: Will |not clob|
|000031f0| 62 65 72 20 65 78 69 73 | 74 69 6e 67 20 66 69 6c |ber exis|ting fil|
|00003200| 65 20 5c 22 27 6c 69 62 | 72 61 79 2f 6c 69 62 63 |e \"'lib|ray/libc|
|00003210| 6f 6d 6d 6f 6e 2f 65 72 | 72 6f 72 2e 68 27 5c 22 |ommon/er|ror.h'\"|
|00003220| 0a 65 6c 73 65 0a 65 63 | 68 6f 20 73 68 61 72 3a |.else.ec|ho shar:|
|00003230| 20 45 78 74 72 61 63 74 | 69 6e 67 20 5c 22 27 6c | Extract|ing \"'l|
|00003240| 69 62 72 61 79 2f 6c 69 | 62 63 6f 6d 6d 6f 6e 2f |ibray/li|bcommon/|
|00003250| 65 72 72 6f 72 2e 68 27 | 5c 22 20 5c 28 31 34 31 |error.h'|\" \(141|
|00003260| 37 20 63 68 61 72 61 63 | 74 65 72 73 5c 29 0a 73 |7 charac|ters\).s|
|00003270| 65 64 20 22 73 2f 5e 58 | 2f 2f 22 20 3e 27 6c 69 |ed "s/^X|//" >'li|
|00003280| 62 72 61 79 2f 6c 69 62 | 63 6f 6d 6d 6f 6e 2f 65 |bray/lib|common/e|
|00003290| 72 72 6f 72 2e 68 27 20 | 3c 3c 27 45 4e 44 5f 4f |rror.h' |<<'END_O|
|000032a0| 46 5f 46 49 4c 45 27 0a | 58 2f 2a 0a 58 20 2a 20 |F_FILE'.|X/*.X * |
|000032b0| 65 72 72 6f 72 2e 68 0a | 58 20 2a 0a 58 20 2a 20 |error.h.|X *.X * |
|000032c0| 43 6f 70 79 72 69 67 68 | 74 20 28 43 29 20 31 39 |Copyrigh|t (C) 19|
|000032d0| 38 39 2c 20 31 39 39 31 | 2c 20 43 72 61 69 67 20 |89, 1991|, Craig |
|000032e0| 45 2e 20 4b 6f 6c 62 0a | 58 20 2a 20 41 6c 6c 20 |E. Kolb.|X * All |
|000032f0| 72 69 67 68 74 73 20 72 | 65 73 65 72 76 65 64 2e |rights r|eserved.|
|00003300| 0a 58 20 2a 0a 58 20 2a | 20 54 68 69 73 20 73 6f |.X *.X *| This so|
|00003310| 66 74 77 61 72 65 20 6d | 61 79 20 62 65 20 66 72 |ftware m|ay be fr|
|00003320| 65 65 6c 79 20 63 6f 70 | 69 65 64 2c 20 6d 6f 64 |eely cop|ied, mod|
|00003330| 69 66 69 65 64 2c 20 61 | 6e 64 20 72 65 64 69 73 |ified, a|nd redis|
|00003340| 74 72 69 62 75 74 65 64 | 0a 58 20 2a 20 70 72 6f |tributed|.X * pro|
|00003350| 76 69 64 65 64 20 74 68 | 61 74 20 74 68 69 73 20 |vided th|at this |
|00003360| 63 6f 70 79 72 69 67 68 | 74 20 6e 6f 74 69 63 65 |copyrigh|t notice|
|00003370| 20 69 73 20 70 72 65 73 | 65 72 76 65 64 20 6f 6e | is pres|erved on|
|00003380| 20 61 6c 6c 20 63 6f 70 | 69 65 73 2e 0a 58 20 2a | all cop|ies..X *|
|00003390| 0a 58 20 2a 20 59 6f 75 | 20 6d 61 79 20 6e 6f 74 |.X * You| may not|
|000033a0| 20 64 69 73 74 72 69 62 | 75 74 65 20 74 68 69 73 | distrib|ute this|
|000033b0| 20 73 6f 66 74 77 61 72 | 65 2c 20 69 6e 20 77 68 | softwar|e, in wh|
|000033c0| 6f 6c 65 20 6f 72 20 69 | 6e 20 70 61 72 74 2c 20 |ole or i|n part, |
|000033d0| 61 73 20 70 61 72 74 20 | 6f 66 0a 58 20 2a 20 61 |as part |of.X * a|
|000033e0| 6e 79 20 63 6f 6d 6d 65 | 72 63 69 61 6c 20 70 72 |ny comme|rcial pr|
|000033f0| 6f 64 75 63 74 20 77 69 | 74 68 6f 75 74 20 74 68 |oduct wi|thout th|
|00003400| 65 20 65 78 70 72 65 73 | 73 20 63 6f 6e 73 65 6e |e expres|s consen|
|00003410| 74 20 6f 66 20 74 68 65 | 20 61 75 74 68 6f 72 73 |t of the| authors|
|00003420| 2e 0a 58 20 2a 0a 58 20 | 2a 20 54 68 65 72 65 20 |..X *.X |* There |
|00003430| 69 73 20 6e 6f 20 77 61 | 72 72 61 6e 74 79 20 6f |is no wa|rranty o|
|00003440| 72 20 6f 74 68 65 72 20 | 67 75 61 72 61 6e 74 65 |r other |guarante|
|00003450| 65 20 6f 66 20 66 69 74 | 6e 65 73 73 20 6f 66 20 |e of fit|ness of |
|00003460| 74 68 69 73 20 73 6f 66 | 74 77 61 72 65 0a 58 20 |this sof|tware.X |
|00003470| 2a 20 66 6f 72 20 61 6e | 79 20 70 75 72 70 6f 73 |* for an|y purpos|
|00003480| 65 2e 20 20 49 74 20 69 | 73 20 70 72 6f 76 69 64 |e. It i|s provid|
|00003490| 65 64 20 73 6f 6c 65 6c | 79 20 22 61 73 20 69 73 |ed solel|y "as is|
|000034a0| 22 2e 0a 58 20 2a 0a 58 | 20 2a 20 24 49 64 3a 20 |"..X *.X| * $Id: |
|000034b0| 65 72 72 6f 72 2e 68 2c | 76 20 34 2e 30 20 39 31 |error.h,|v 4.0 91|
|000034c0| 2f 30 37 2f 31 37 20 31 | 34 3a 33 30 3a 32 37 20 |/07/17 1|4:30:27 |
|000034d0| 6b 6f 6c 62 20 45 78 70 | 20 4c 6f 63 6b 65 72 3a |kolb Exp| Locker:|
|000034e0| 20 6b 6f 6c 62 20 24 0a | 58 20 2a 0a 58 20 2a 20 | kolb $.|X *.X * |
|000034f0| 24 4c 6f 67 3a 09 65 72 | 72 6f 72 2e 68 2c 76 20 |$Log:.er|ror.h,v |
|00003500| 24 0a 58 20 2a 20 52 65 | 76 69 73 69 6f 6e 20 34 |$.X * Re|vision 4|
|00003510| 2e 30 20 20 39 31 2f 30 | 37 2f 31 37 20 20 31 34 |.0 91/0|7/17 14|
|00003520| 3a 33 30 3a 32 37 20 20 | 6b 6f 6c 62 0a 58 20 2a |:30:27 |kolb.X *|
|00003530| 20 49 6e 69 74 69 61 6c | 20 76 65 72 73 69 6f 6e | Initial| version|
|00003540| 2e 0a 58 20 2a 20 0a 58 | 20 2a 2f 0a 58 23 69 66 |..X * .X| */.X#if|
|00003550| 6e 64 65 66 20 45 52 52 | 4f 52 5f 48 0a 58 23 64 |ndef ERR|OR_H.X#d|
|00003560| 65 66 69 6e 65 20 45 52 | 52 4f 52 5f 48 0a 58 2f |efine ER|ROR_H.X/|
|00003570| 2a 0a 58 20 2a 20 45 72 | 72 6f 72 20 73 65 76 65 |*.X * Er|ror seve|
|00003580| 72 69 74 79 20 63 6f 64 | 65 73 2c 20 70 61 73 73 |rity cod|es, pass|
|00003590| 65 64 20 74 6f 20 75 73 | 65 72 2d 70 72 6f 76 69 |ed to us|er-provi|
|000035a0| 64 65 64 20 52 4c 65 72 | 72 6f 72 28 29 0a 58 20 |ded RLer|ror().X |
|000035b0| 2a 20 66 75 6e 63 74 69 | 6f 6e 20 77 68 69 63 68 |* functi|on which|
|000035c0| 20 6f 70 74 69 6f 6e 61 | 6c 6c 79 20 70 72 69 6e | optiona|lly prin|
|000035d0| 74 73 20 61 6e 64 20 6f | 70 74 69 6f 6e 61 6c 6c |ts and o|ptionall|
|000035e0| 79 20 65 78 69 74 73 2e | 0a 58 20 2a 0a 58 20 2a |y exits.|.X *.X *|
|000035f0| 20 52 4c 5f 41 44 56 49 | 53 45 09 4d 65 73 73 61 | RL_ADVI|SE.Messa|
|00003600| 67 65 20 6d 61 79 20 73 | 61 66 65 6c 79 20 62 65 |ge may s|afely be|
|00003610| 20 73 61 66 65 6c 79 20 | 73 75 70 70 72 65 73 73 | safely |suppress|
|00003620| 65 64 2c 20 74 68 6f 75 | 67 68 0a 58 20 2a 09 09 |ed, thou|gh.X *..|
|00003630| 74 68 65 20 72 65 73 75 | 6c 74 69 6e 67 20 69 6d |the resu|lting im|
|00003640| 61 67 65 20 6d 61 79 20 | 6e 6f 74 20 62 65 20 65 |age may |not be e|
|00003650| 78 61 63 74 6c 79 20 77 | 68 61 74 20 79 6f 75 20 |xactly w|hat you |
|00003660| 65 78 70 65 63 74 2e 0a | 58 20 2a 20 52 4c 5f 57 |expect..|X * RL_W|
|00003670| 41 52 4e 09 4d 65 73 73 | 61 67 65 20 73 68 6f 75 |ARN.Mess|age shou|
|00003680| 6c 64 20 70 72 6f 62 61 | 62 6c 79 20 62 65 20 70 |ld proba|bly be p|
|00003690| 72 69 6e 74 65 64 3b 20 | 69 6d 61 67 65 20 77 69 |rinted; |image wi|
|000036a0| 6c 6c 20 6d 6f 73 74 0a | 58 20 2a 09 09 6c 69 6b |ll most.|X *..lik|
|000036b0| 65 6c 79 20 62 65 20 61 | 66 66 65 63 74 65 64 2e |ely be a|ffected.|
|000036c0| 0a 58 20 2a 20 52 4c 5f | 41 42 4f 52 54 09 4d 65 |.X * RL_|ABORT.Me|
|000036d0| 73 73 61 67 65 20 73 68 | 6f 75 6c 64 20 62 65 20 |ssage sh|ould be |
|000036e0| 70 72 69 6e 74 65 64 20 | 2d 2d 20 63 6f 75 6c 64 |printed |-- could|
|000036f0| 6e 27 74 20 70 65 72 66 | 6f 72 6d 20 61 20 72 65 |n't perf|orm a re|
|00003700| 71 75 65 73 74 2e 0a 58 | 20 2a 09 09 54 68 65 20 |quest..X| *..The |
|00003710| 72 65 73 75 6c 74 69 6e | 67 20 69 6d 61 67 65 20 |resultin|g image |
|00003720| 77 69 6c 6c 20 62 65 20 | 61 66 66 65 63 74 65 64 |will be |affected|
|00003730| 2e 0a 58 20 2a 20 52 4c | 5f 50 41 4e 49 43 09 46 |..X * RL|_PANIC.F|
|00003740| 61 74 61 6c 20 65 72 72 | 6f 72 20 2d 2d 20 63 61 |atal err|or -- ca|
|00003750| 6c 6c 20 74 6f 20 52 4c | 65 72 72 6f 72 28 29 20 |ll to RL|error() |
|00003760| 6d 75 73 74 20 6e 6f 74 | 20 72 65 74 75 72 6e 2e |must not| return.|
|00003770| 0a 58 20 2a 2f 0a 58 23 | 64 65 66 69 6e 65 20 52 |.X */.X#|define R|
|00003780| 4c 5f 41 44 56 49 53 45 | 09 30 09 2f 2a 20 41 64 |L_ADVISE|.0./* Ad|
|00003790| 76 69 73 6f 72 79 20 2a | 2f 0a 58 23 64 65 66 69 |visory *|/.X#defi|
|000037a0| 6e 65 20 52 4c 5f 57 41 | 52 4e 09 09 31 09 2f 2a |ne RL_WA|RN..1./*|
|000037b0| 20 57 61 72 6e 69 6e 67 | 20 2a 2f 0a 58 23 64 65 | Warning| */.X#de|
|000037c0| 66 69 6e 65 20 52 4c 5f | 41 42 4f 52 54 09 32 09 |fine RL_|ABORT.2.|
|000037d0| 2f 2a 20 41 62 6f 72 74 | 65 64 20 2a 2f 0a 58 23 |/* Abort|ed */.X#|
|000037e0| 64 65 66 69 6e 65 20 52 | 4c 5f 50 41 4e 49 43 09 |define R|L_PANIC.|
|000037f0| 33 09 2f 2a 20 50 61 6e | 69 63 20 2a 2f 0a 58 0a |3./* Pan|ic */.X.|
|00003800| 58 65 78 74 65 72 6e 20 | 76 6f 69 64 20 52 4c 65 |Xextern |void RLe|
|00003810| 72 72 6f 72 28 29 3b 09 | 09 2f 2a 20 61 70 70 6c |rror();.|./* appl|
|00003820| 69 63 61 74 69 6f 6e 2d | 73 75 70 70 6c 69 65 64 |ication-|supplied|
|00003830| 20 72 65 70 6f 72 74 69 | 6e 67 20 72 6f 75 74 69 | reporti|ng routi|
|00003840| 6e 65 20 2a 2f 0a 58 23 | 65 6e 64 69 66 20 2f 2a |ne */.X#|endif /*|
|00003850| 20 45 52 52 4f 52 5f 48 | 20 2a 2f 0a 45 4e 44 5f | ERROR_H| */.END_|
|00003860| 4f 46 5f 46 49 4c 45 0a | 69 66 20 74 65 73 74 20 |OF_FILE.|if test |
|00003870| 31 34 31 37 20 2d 6e 65 | 20 60 77 63 20 2d 63 20 |1417 -ne| `wc -c |
|00003880| 3c 27 6c 69 62 72 61 79 | 2f 6c 69 62 63 6f 6d 6d |<'libray|/libcomm|
|00003890| 6f 6e 2f 65 72 72 6f 72 | 2e 68 27 60 3b 20 74 68 |on/error|.h'`; th|
|000038a0| 65 6e 0a 20 20 20 20 65 | 63 68 6f 20 73 68 61 72 |en. e|cho shar|
|000038b0| 3a 20 5c 22 27 6c 69 62 | 72 61 79 2f 6c 69 62 63 |: \"'lib|ray/libc|
|000038c0| 6f 6d 6d 6f 6e 2f 65 72 | 72 6f 72 2e 68 27 5c 22 |ommon/er|ror.h'\"|
|000038d0| 20 75 6e 70 61 63 6b 65 | 64 20 77 69 74 68 20 77 | unpacke|d with w|
|000038e0| 72 6f 6e 67 20 73 69 7a | 65 21 0a 66 69 0a 23 20 |rong siz|e!.fi.# |
|000038f0| 65 6e 64 20 6f 66 20 27 | 6c 69 62 72 61 79 2f 6c |end of '|libray/l|
|00003900| 69 62 63 6f 6d 6d 6f 6e | 2f 65 72 72 6f 72 2e 68 |ibcommon|/error.h|
|00003910| 27 0a 66 69 0a 69 66 20 | 74 65 73 74 20 2d 66 20 |'.fi.if |test -f |
|00003920| 27 6c 69 62 72 61 79 2f | 6c 69 62 63 6f 6d 6d 6f |'libray/|libcommo|
|00003930| 6e 2f 65 78 70 72 2e 68 | 27 20 2d 61 20 22 24 7b |n/expr.h|' -a "${|
|00003940| 31 7d 22 20 21 3d 20 22 | 2d 63 22 20 3b 20 74 68 |1}" != "|-c" ; th|
|00003950| 65 6e 20 0a 20 20 65 63 | 68 6f 20 73 68 61 72 3a |en . ec|ho shar:|
|00003960| 20 57 69 6c 6c 20 6e 6f | 74 20 63 6c 6f 62 62 65 | Will no|t clobbe|
|00003970| 72 20 65 78 69 73 74 69 | 6e 67 20 66 69 6c 65 20 |r existi|ng file |
|00003980| 5c 22 27 6c 69 62 72 61 | 79 2f 6c 69 62 63 6f 6d |\"'libra|y/libcom|
|00003990| 6d 6f 6e 2f 65 78 70 72 | 2e 68 27 5c 22 0a 65 6c |mon/expr|.h'\".el|
|000039a0| 73 65 0a 65 63 68 6f 20 | 73 68 61 72 3a 20 45 78 |se.echo |shar: Ex|
|000039b0| 74 72 61 63 74 69 6e 67 | 20 5c 22 27 6c 69 62 72 |tracting| \"'libr|
|000039c0| 61 79 2f 6c 69 62 63 6f | 6d 6d 6f 6e 2f 65 78 70 |ay/libco|mmon/exp|
|000039d0| 72 2e 68 27 5c 22 20 5c | 28 31 35 35 32 20 63 68 |r.h'\" \|(1552 ch|
|000039e0| 61 72 61 63 74 65 72 73 | 5c 29 0a 73 65 64 20 22 |aracters|\).sed "|
|000039f0| 73 2f 5e 58 2f 2f 22 20 | 3e 27 6c 69 62 72 61 79 |s/^X//" |>'libray|
|00003a00| 2f 6c 69 62 63 6f 6d 6d | 6f 6e 2f 65 78 70 72 2e |/libcomm|on/expr.|
|00003a10| 68 27 20 3c 3c 27 45 4e | 44 5f 4f 46 5f 46 49 4c |h' <<'EN|D_OF_FIL|
|00003a20| 45 27 0a 58 2f 2a 0a 58 | 20 2a 20 65 78 70 72 2e |E'.X/*.X| * expr.|
|00003a30| 68 0a 58 20 2a 0a 58 20 | 2a 20 43 6f 70 79 72 69 |h.X *.X |* Copyri|
|00003a40| 67 68 74 20 28 43 29 20 | 31 39 38 39 2c 20 31 39 |ght (C) |1989, 19|
|00003a50| 39 31 2c 20 43 72 61 69 | 67 20 45 2e 20 4b 6f 6c |91, Crai|g E. Kol|
|00003a60| 62 2c 20 52 6f 64 20 47 | 2e 20 42 6f 67 61 72 74 |b, Rod G|. Bogart|
|00003a70| 0a 58 20 2a 20 41 6c 6c | 20 72 69 67 68 74 73 20 |.X * All| rights |
|00003a80| 72 65 73 65 72 76 65 64 | 2e 0a 58 20 2a 0a 58 20 |reserved|..X *.X |
|00003a90| 2a 20 54 68 69 73 20 73 | 6f 66 74 77 61 72 65 20 |* This s|oftware |
|00003aa0| 6d 61 79 20 62 65 20 66 | 72 65 65 6c 79 20 63 6f |may be f|reely co|
|00003ab0| 70 69 65 64 2c 20 6d 6f | 64 69 66 69 65 64 2c 20 |pied, mo|dified, |
|00003ac0| 61 6e 64 20 72 65 64 69 | 73 74 72 69 62 75 74 65 |and redi|stribute|
|00003ad0| 64 0a 58 20 2a 20 70 72 | 6f 76 69 64 65 64 20 74 |d.X * pr|ovided t|
|00003ae0| 68 61 74 20 74 68 69 73 | 20 63 6f 70 79 72 69 67 |hat this| copyrig|
|00003af0| 68 74 20 6e 6f 74 69 63 | 65 20 69 73 20 70 72 65 |ht notic|e is pre|
|00003b00| 73 65 72 76 65 64 20 6f | 6e 20 61 6c 6c 20 63 6f |served o|n all co|
|00003b10| 70 69 65 73 2e 0a 58 20 | 2a 0a 58 20 2a 20 59 6f |pies..X |*.X * Yo|
|00003b20| 75 20 6d 61 79 20 6e 6f | 74 20 64 69 73 74 72 69 |u may no|t distri|
|00003b30| 62 75 74 65 20 74 68 69 | 73 20 73 6f 66 74 77 61 |bute thi|s softwa|
|00003b40| 72 65 2c 20 69 6e 20 77 | 68 6f 6c 65 20 6f 72 20 |re, in w|hole or |
|00003b50| 69 6e 20 70 61 72 74 2c | 20 61 73 20 70 61 72 74 |in part,| as part|
|00003b60| 20 6f 66 0a 58 20 2a 20 | 61 6e 79 20 63 6f 6d 6d | of.X * |any comm|
|00003b70| 65 72 63 69 61 6c 20 70 | 72 6f 64 75 63 74 20 77 |ercial p|roduct w|
|00003b80| 69 74 68 6f 75 74 20 74 | 68 65 20 65 78 70 72 65 |ithout t|he expre|
|00003b90| 73 73 20 63 6f 6e 73 65 | 6e 74 20 6f 66 20 74 68 |ss conse|nt of th|
|00003ba0| 65 20 61 75 74 68 6f 72 | 73 2e 0a 58 20 2a 20 0a |e author|s..X * .|
|00003bb0| 58 20 2a 20 54 68 65 72 | 65 20 69 73 20 6e 6f 20 |X * Ther|e is no |
|00003bc0| 77 61 72 72 61 6e 74 79 | 20 6f 72 20 6f 74 68 65 |warranty| or othe|
|00003bd0| 72 20 67 75 61 72 61 6e | 74 65 65 20 6f 66 20 66 |r guaran|tee of f|
|00003be0| 69 74 6e 65 73 73 20 6f | 66 20 74 68 69 73 20 73 |itness o|f this s|
|00003bf0| 6f 66 74 77 61 72 65 0a | 58 20 2a 20 66 6f 72 20 |oftware.|X * for |
|00003c00| 61 6e 79 20 70 75 72 70 | 6f 73 65 2e 20 20 49 74 |any purp|ose. It|
|00003c10| 20 69 73 20 70 72 6f 76 | 69 64 65 64 20 73 6f 6c | is prov|ided sol|
|00003c20| 65 6c 79 20 22 61 73 20 | 69 73 22 2e 0a 58 20 2a |ely "as |is"..X *|
|00003c30| 0a 58 20 2a 20 24 49 64 | 3a 20 65 78 70 72 2e 68 |.X * $Id|: expr.h|
|00003c40| 2c 76 20 34 2e 30 20 39 | 31 2f 30 37 2f 31 37 20 |,v 4.0 9|1/07/17 |
|00003c50| 31 34 3a 33 30 3a 34 37 | 20 6b 6f 6c 62 20 45 78 |14:30:47| kolb Ex|
|00003c60| 70 20 4c 6f 63 6b 65 72 | 3a 20 6b 6f 6c 62 20 24 |p Locker|: kolb $|
|00003c70| 0a 58 20 2a 0a 58 20 2a | 20 24 4c 6f 67 3a 09 65 |.X *.X *| $Log:.e|
|00003c80| 78 70 72 2e 68 2c 76 20 | 24 0a 58 20 2a 20 52 65 |xpr.h,v |$.X * Re|
|00003c90| 76 69 73 69 6f 6e 20 34 | 2e 30 20 20 39 31 2f 30 |vision 4|.0 91/0|
|00003ca0| 37 2f 31 37 20 20 31 34 | 3a 33 30 3a 34 37 20 20 |7/17 14|:30:47 |
|00003cb0| 6b 6f 6c 62 0a 58 20 2a | 20 49 6e 69 74 69 61 6c |kolb.X *| Initial|
|00003cc0| 20 76 65 72 73 69 6f 6e | 2e 0a 58 20 2a 20 0a 58 | version|..X * .X|
|00003cd0| 20 2a 2f 0a 58 23 69 66 | 6e 64 65 66 20 45 58 50 | */.X#if|ndef EXP|
|00003ce0| 52 5f 48 0a 58 23 64 65 | 66 69 6e 65 20 45 58 50 |R_H.X#de|fine EXP|
|00003cf0| 52 5f 48 0a 58 0a 58 23 | 64 65 66 69 6e 65 20 46 |R_H.X.X#|define F|
|00003d00| 4c 4f 41 54 5f 45 58 50 | 52 09 09 30 0a 58 23 64 |LOAT_EXP|R..0.X#d|
|00003d10| 65 66 69 6e 65 20 42 55 | 49 4c 54 49 4e 5f 45 58 |efine BU|ILTIN_EX|
|00003d20| 50 52 09 09 31 0a 58 0a | 58 74 79 70 65 64 65 66 |PR..1.X.|Xtypedef|
|00003d30| 20 73 74 72 75 63 74 20 | 45 78 70 72 20 7b 0a 58 | struct |Expr {.X|
|00003d40| 09 73 68 6f 72 74 09 74 | 79 70 65 2c 09 09 09 2f |.short.t|ype,.../|
|00003d50| 2a 20 45 78 70 72 20 74 | 79 70 65 20 28 66 6c 6f |* Expr t|ype (flo|
|00003d60| 61 74 2f 62 75 69 6c 74 | 69 6e 2f 74 69 6d 65 29 |at/built|in/time)|
|00003d70| 20 2a 2f 0a 58 09 09 74 | 69 6d 65 76 61 72 79 2c | */.X..t|imevary,|
|00003d80| 09 09 2f 2a 20 64 6f 65 | 73 20 74 68 65 20 65 78 |../* doe|s the ex|
|00003d90| 70 72 20 76 61 72 79 20 | 6f 76 65 72 20 74 69 6d |pr vary |over tim|
|00003da0| 65 3f 20 2a 2f 0a 58 09 | 09 73 79 6d 74 61 62 2c |e? */.X.|.symtab,|
|00003db0| 09 09 09 2f 2a 20 69 73 | 20 74 68 65 20 65 78 70 |.../* is| the exp|
|00003dc0| 72 20 69 6e 20 74 68 65 | 20 73 79 6d 74 61 62 3f |r in the| symtab?|
|00003dd0| 20 2a 2f 0a 58 09 09 6e | 70 61 72 61 6d 73 3b 09 | */.X..n|params;.|
|00003de0| 09 2f 2a 20 23 20 6f 66 | 20 70 61 72 61 6d 73 2c |./* # of| params,|
|00003df0| 20 69 66 20 62 75 69 6c | 74 69 6e 20 2a 2f 0a 58 | if buil|tin */.X|
|00003e00| 09 46 6c 6f 61 74 09 76 | 61 6c 75 65 2c 09 09 09 |.Float.v|alue,...|
|00003e10| 2f 2a 20 66 6c 6f 61 74 | 20 76 61 6c 2f 6c 61 73 |/* float| val/las|
|00003e20| 74 20 65 76 61 6c 20 69 | 66 20 74 69 6d 65 65 78 |t eval i|f timeex|
|00003e30| 70 72 20 2a 2f 0a 58 09 | 09 74 69 6d 65 6e 6f 77 |pr */.X.|.timenow|
|00003e40| 2c 09 09 2f 2a 20 74 69 | 6d 65 20 6f 66 20 6c 61 |,../* ti|me of la|
|00003e50| 73 74 20 65 76 61 6c 75 | 61 74 69 6f 6e 20 2a 2f |st evalu|ation */|
|00003e60| 0a 58 09 09 28 2a 66 75 | 6e 63 74 69 6f 6e 29 28 |.X..(*fu|nction)(|
|00003e70| 29 3b 0a 58 09 73 74 72 | 75 63 74 20 45 78 70 72 |);.X.str|uct Expr|
|00003e80| 20 2a 2a 70 61 72 61 6d | 73 3b 09 09 2f 2a 20 70 | **param|s;../* p|
|00003e90| 61 72 61 6d 65 74 65 72 | 73 2c 20 69 66 20 61 20 |arameter|s, if a |
|00003ea0| 62 75 69 6c 74 69 6e 20 | 2a 2f 0a 58 7d 20 45 78 |builtin |*/.X} Ex|
|00003eb0| 70 72 3b 0a 58 0a 58 74 | 79 70 65 64 65 66 20 73 |pr;.X.Xt|ypedef s|
|00003ec0| 74 72 75 63 74 20 45 78 | 70 72 41 73 73 6f 63 20 |truct Ex|prAssoc |
|00003ed0| 7b 0a 58 09 46 6c 6f 61 | 74 20 2a 6c 68 73 3b 09 |{.X.Floa|t *lhs;.|
|00003ee0| 09 09 2f 2a 20 6c 65 66 | 74 2d 68 61 6e 64 20 73 |../* lef|t-hand s|
|00003ef0| 69 64 65 20 2a 2f 0a 58 | 09 45 78 70 72 20 2a 65 |ide */.X|.Expr *e|
|00003f00| 78 70 72 3b 09 09 09 2f | 2a 20 72 69 67 68 74 2d |xpr;.../|* right-|
|00003f10| 68 61 6e 64 20 73 69 64 | 65 20 2a 2f 0a 58 09 73 |hand sid|e */.X.s|
|00003f20| 74 72 75 63 74 20 45 78 | 70 72 41 73 73 6f 63 20 |truct Ex|prAssoc |
|00003f30| 2a 6e 65 78 74 3b 09 09 | 2f 2a 20 4e 65 78 74 20 |*next;..|/* Next |
|00003f40| 69 6e 20 6c 69 73 74 20 | 2a 2f 0a 58 7d 20 45 78 |in list |*/.X} Ex|
|00003f50| 70 72 41 73 73 6f 63 3b | 0a 58 09 0a 58 65 78 74 |prAssoc;|.X..Xext|
|00003f60| 65 72 6e 20 46 6c 6f 61 | 74 09 45 78 70 72 45 76 |ern Floa|t.ExprEv|
|00003f70| 61 6c 28 29 3b 0a 58 0a | 58 65 78 74 65 72 6e 20 |al();.X.|Xextern |
|00003f80| 45 78 70 72 09 2a 45 78 | 70 72 52 65 73 6f 6c 76 |Expr.*Ex|prResolv|
|00003f90| 65 31 28 29 2c 20 2a 45 | 78 70 72 52 65 73 6f 6c |e1(), *E|xprResol|
|00003fa0| 76 65 32 28 29 2c 20 2a | 45 78 70 72 52 65 73 6f |ve2(), *|ExprReso|
|00003fb0| 6c 76 65 33 28 29 2c 0a | 58 09 09 2a 45 78 70 72 |lve3(),.|X..*Expr|
|00003fc0| 52 65 73 6f 6c 76 65 34 | 28 29 2c 20 2a 45 78 70 |Resolve4|(), *Exp|
|00003fd0| 72 52 65 73 6f 6c 76 65 | 35 28 29 2c 20 2a 45 78 |rResolve|5(), *Ex|
|00003fe0| 70 72 46 6c 6f 61 74 43 | 72 65 61 74 65 28 29 3b |prFloatC|reate();|
|00003ff0| 0a 58 65 78 74 65 72 6e | 20 45 78 70 72 09 2a 54 |.Xextern| Expr.*T|
|00004000| 69 6d 65 45 78 70 72 2c | 20 2a 46 72 61 6d 65 45 |imeExpr,| *FrameE|
|00004010| 78 70 72 2c 20 2a 45 78 | 70 72 52 65 75 73 65 46 |xpr, *Ex|prReuseF|
|00004020| 6c 6f 61 74 43 72 65 61 | 74 65 28 29 3b 0a 58 0a |loatCrea|te();.X.|
|00004030| 58 65 78 74 65 72 6e 20 | 45 78 70 72 41 73 73 6f |Xextern |ExprAsso|
|00004040| 63 20 2a 41 73 73 6f 63 | 43 72 65 61 74 65 28 29 |c *Assoc|Create()|
|00004050| 3b 0a 58 0a 58 23 65 6e | 64 69 66 20 2f 2a 20 45 |;.X.X#en|dif /* E|
|00004060| 58 50 52 5f 48 20 2a 2f | 0a 45 4e 44 5f 4f 46 5f |XPR_H */|.END_OF_|
|00004070| 46 49 4c 45 0a 69 66 20 | 74 65 73 74 20 31 35 35 |FILE.if |test 155|
|00004080| 32 20 2d 6e 65 20 60 77 | 63 20 2d 63 20 3c 27 6c |2 -ne `w|c -c <'l|
|00004090| 69 62 72 61 79 2f 6c 69 | 62 63 6f 6d 6d 6f 6e 2f |ibray/li|bcommon/|
|000040a0| 65 78 70 72 2e 68 27 60 | 3b 20 74 68 65 6e 0a 20 |expr.h'`|; then. |
|000040b0| 20 20 20 65 63 68 6f 20 | 73 68 61 72 3a 20 5c 22 | echo |shar: \"|
|000040c0| 27 6c 69 62 72 61 79 2f | 6c 69 62 63 6f 6d 6d 6f |'libray/|libcommo|
|000040d0| 6e 2f 65 78 70 72 2e 68 | 27 5c 22 20 75 6e 70 61 |n/expr.h|'\" unpa|
|000040e0| 63 6b 65 64 20 77 69 74 | 68 20 77 72 6f 6e 67 20 |cked wit|h wrong |
|000040f0| 73 69 7a 65 21 0a 66 69 | 0a 23 20 65 6e 64 20 6f |size!.fi|.# end o|
|00004100| 66 20 27 6c 69 62 72 61 | 79 2f 6c 69 62 63 6f 6d |f 'libra|y/libcom|
|00004110| 6d 6f 6e 2f 65 78 70 72 | 2e 68 27 0a 66 69 0a 69 |mon/expr|.h'.fi.i|
|00004120| 66 20 74 65 73 74 20 2d | 66 20 27 6c 69 62 72 61 |f test -|f 'libra|
|00004130| 79 2f 6c 69 62 63 6f 6d | 6d 6f 6e 2f 72 6f 74 61 |y/libcom|mon/rota|
|00004140| 74 65 2e 68 27 20 2d 61 | 20 22 24 7b 31 7d 22 20 |te.h' -a| "${1}" |
|00004150| 21 3d 20 22 2d 63 22 20 | 3b 20 74 68 65 6e 20 0a |!= "-c" |; then .|
|00004160| 20 20 65 63 68 6f 20 73 | 68 61 72 3a 20 57 69 6c | echo s|har: Wil|
|00004170| 6c 20 6e 6f 74 20 63 6c | 6f 62 62 65 72 20 65 78 |l not cl|obber ex|
|00004180| 69 73 74 69 6e 67 20 66 | 69 6c 65 20 5c 22 27 6c |isting f|ile \"'l|
|00004190| 69 62 72 61 79 2f 6c 69 | 62 63 6f 6d 6d 6f 6e 2f |ibray/li|bcommon/|
|000041a0| 72 6f 74 61 74 65 2e 68 | 27 5c 22 0a 65 6c 73 65 |rotate.h|'\".else|
|000041b0| 0a 65 63 68 6f 20 73 68 | 61 72 3a 20 45 78 74 72 |.echo sh|ar: Extr|
|000041c0| 61 63 74 69 6e 67 20 5c | 22 27 6c 69 62 72 61 79 |acting \|"'libray|
|000041d0| 2f 6c 69 62 63 6f 6d 6d | 6f 6e 2f 72 6f 74 61 74 |/libcomm|on/rotat|
|000041e0| 65 2e 68 27 5c 22 20 5c | 28 31 32 34 34 20 63 68 |e.h'\" \|(1244 ch|
|000041f0| 61 72 61 63 74 65 72 73 | 5c 29 0a 73 65 64 20 22 |aracters|\).sed "|
|00004200| 73 2f 5e 58 2f 2f 22 20 | 3e 27 6c 69 62 72 61 79 |s/^X//" |>'libray|
|00004210| 2f 6c 69 62 63 6f 6d 6d | 6f 6e 2f 72 6f 74 61 74 |/libcomm|on/rotat|
|00004220| 65 2e 68 27 20 3c 3c 27 | 45 4e 44 5f 4f 46 5f 46 |e.h' <<'|END_OF_F|
|00004230| 49 4c 45 27 0a 58 2f 2a | 0a 58 20 2a 20 72 6f 74 |ILE'.X/*|.X * rot|
|00004240| 61 74 65 2e 68 0a 58 20 | 2a 0a 58 20 2a 20 43 6f |ate.h.X |*.X * Co|
|00004250| 70 79 72 69 67 68 74 20 | 28 43 29 20 31 39 38 39 |pyright |(C) 1989|
|00004260| 2c 20 31 39 39 31 2c 20 | 43 72 61 69 67 20 45 2e |, 1991, |Craig E.|
|00004270| 20 4b 6f 6c 62 0a 58 20 | 2a 20 41 6c 6c 20 72 69 | Kolb.X |* All ri|
|00004280| 67 68 74 73 20 72 65 73 | 65 72 76 65 64 2e 0a 58 |ghts res|erved..X|
|00004290| 20 2a 0a 58 20 2a 20 54 | 68 69 73 20 73 6f 66 74 | *.X * T|his soft|
|000042a0| 77 61 72 65 20 6d 61 79 | 20 62 65 20 66 72 65 65 |ware may| be free|
|000042b0| 6c 79 20 63 6f 70 69 65 | 64 2c 20 6d 6f 64 69 66 |ly copie|d, modif|
|000042c0| 69 65 64 2c 20 61 6e 64 | 20 72 65 64 69 73 74 72 |ied, and| redistr|
|000042d0| 69 62 75 74 65 64 0a 58 | 20 2a 20 70 72 6f 76 69 |ibuted.X| * provi|
|000042e0| 64 65 64 20 74 68 61 74 | 20 74 68 69 73 20 63 6f |ded that| this co|
|000042f0| 70 79 72 69 67 68 74 20 | 6e 6f 74 69 63 65 20 69 |pyright |notice i|
|00004300| 73 20 70 72 65 73 65 72 | 76 65 64 20 6f 6e 20 61 |s preser|ved on a|
|00004310| 6c 6c 20 63 6f 70 69 65 | 73 2e 0a 58 20 2a 0a 58 |ll copie|s..X *.X|
|00004320| 20 2a 20 59 6f 75 20 6d | 61 79 20 6e 6f 74 20 64 | * You m|ay not d|
|00004330| 69 73 74 72 69 62 75 74 | 65 20 74 68 69 73 20 73 |istribut|e this s|
|00004340| 6f 66 74 77 61 72 65 2c | 20 69 6e 20 77 68 6f 6c |oftware,| in whol|
|00004350| 65 20 6f 72 20 69 6e 20 | 70 61 72 74 2c 20 61 73 |e or in |part, as|
|00004360| 20 70 61 72 74 20 6f 66 | 0a 58 20 2a 20 61 6e 79 | part of|.X * any|
|00004370| 20 63 6f 6d 6d 65 72 63 | 69 61 6c 20 70 72 6f 64 | commerc|ial prod|
|00004380| 75 63 74 20 77 69 74 68 | 6f 75 74 20 74 68 65 20 |uct with|out the |
|00004390| 65 78 70 72 65 73 73 20 | 63 6f 6e 73 65 6e 74 20 |express |consent |
|000043a0| 6f 66 20 74 68 65 20 61 | 75 74 68 6f 72 73 2e 0a |of the a|uthors..|
|000043b0| 58 20 2a 20 0a 58 20 2a | 20 54 68 65 72 65 20 69 |X * .X *| There i|
|000043c0| 73 20 6e 6f 20 77 61 72 | 72 61 6e 74 79 20 6f 72 |s no war|ranty or|
|000043d0| 20 6f 74 68 65 72 20 67 | 75 61 72 61 6e 74 65 65 | other g|uarantee|
|000043e0| 20 6f 66 20 66 69 74 6e | 65 73 73 20 6f 66 20 74 | of fitn|ess of t|
|000043f0| 68 69 73 20 73 6f 66 74 | 77 61 72 65 0a 58 20 2a |his soft|ware.X *|
|00004400| 20 66 6f 72 20 61 6e 79 | 20 70 75 72 70 6f 73 65 | for any| purpose|
|00004410| 2e 20 20 49 74 20 69 73 | 20 70 72 6f 76 69 64 65 |. It is| provide|
|00004420| 64 20 73 6f 6c 65 6c 79 | 20 22 61 73 20 69 73 22 |d solely| "as is"|
|00004430| 2e 0a 58 20 2a 0a 58 20 | 2a 20 24 49 64 3a 20 72 |..X *.X |* $Id: r|
|00004440| 6f 74 61 74 65 2e 68 2c | 76 20 34 2e 30 20 39 31 |otate.h,|v 4.0 91|
|00004450| 2f 30 37 2f 31 37 20 31 | 34 3a 33 31 3a 32 36 20 |/07/17 1|4:31:26 |
|00004460| 6b 6f 6c 62 20 45 78 70 | 20 4c 6f 63 6b 65 72 3a |kolb Exp| Locker:|
|00004470| 20 6b 6f 6c 62 20 24 0a | 58 20 2a 0a 58 20 2a 20 | kolb $.|X *.X * |
|00004480| 24 4c 6f 67 3a 09 72 6f | 74 61 74 65 2e 68 2c 76 |$Log:.ro|tate.h,v|
|00004490| 20 24 0a 58 20 2a 20 52 | 65 76 69 73 69 6f 6e 20 | $.X * R|evision |
|000044a0| 34 2e 30 20 20 39 31 2f | 30 37 2f 31 37 20 20 31 |4.0 91/|07/17 1|
|000044b0| 34 3a 33 31 3a 32 36 20 | 20 6b 6f 6c 62 0a 58 20 |4:31:26 | kolb.X |
|000044c0| 2a 20 49 6e 69 74 69 61 | 6c 20 76 65 72 73 69 6f |* Initia|l versio|
|000044d0| 6e 2e 0a 58 20 2a 20 0a | 58 20 2a 2f 0a 58 23 69 |n..X * .|X */.X#i|
|000044e0| 66 6e 64 65 66 20 52 4f | 54 41 54 45 5f 48 0a 58 |fndef RO|TATE_H.X|
|000044f0| 23 64 65 66 69 6e 65 20 | 52 4f 54 41 54 45 5f 48 |#define |ROTATE_H|
|00004500| 0a 58 0a 58 23 64 65 66 | 69 6e 65 20 54 72 61 6e |.X.X#def|ine Tran|
|00004510| 73 52 6f 74 61 74 65 43 | 72 65 61 74 65 28 29 09 |sRotateC|reate().|
|00004520| 09 54 72 61 6e 73 43 72 | 65 61 74 65 28 28 54 72 |.TransCr|eate((Tr|
|00004530| 61 6e 73 52 65 66 29 52 | 6f 74 61 74 65 43 72 65 |ansRef)R|otateCre|
|00004540| 61 74 65 28 29 2c 20 52 | 6f 74 61 74 65 4d 65 74 |ate(), R|otateMet|
|00004550| 68 6f 64 73 28 29 29 0a | 58 0a 58 23 64 65 66 69 |hods()).|X.X#defi|
|00004560| 6e 65 20 54 72 61 6e 73 | 52 6f 74 61 74 65 53 65 |ne Trans|RotateSe|
|00004570| 74 58 28 74 2c 20 76 29 | 09 09 54 72 61 6e 73 41 |tX(t, v)|..TransA|
|00004580| 73 73 6f 63 28 74 2c 20 | 26 28 28 52 6f 74 61 74 |ssoc(t, |&((Rotat|
|00004590| 65 20 2a 29 74 2d 3e 74 | 72 29 2d 3e 78 2c 20 76 |e *)t->t|r)->x, v|
|000045a0| 29 0a 58 23 64 65 66 69 | 6e 65 20 54 72 61 6e 73 |).X#defi|ne Trans|
|000045b0| 52 6f 74 61 74 65 53 65 | 74 59 28 74 2c 20 76 29 |RotateSe|tY(t, v)|
|000045c0| 09 09 54 72 61 6e 73 41 | 73 73 6f 63 28 74 2c 20 |..TransA|ssoc(t, |
|000045d0| 26 28 28 52 6f 74 61 74 | 65 20 2a 29 74 2d 3e 74 |&((Rotat|e *)t->t|
|000045e0| 72 29 2d 3e 79 2c 20 76 | 29 0a 58 23 64 65 66 69 |r)->y, v|).X#defi|
|000045f0| 6e 65 20 54 72 61 6e 73 | 52 6f 74 61 74 65 53 65 |ne Trans|RotateSe|
|00004600| 74 5a 28 74 2c 20 76 29 | 09 09 54 72 61 6e 73 41 |tZ(t, v)|..TransA|
|00004610| 73 73 6f 63 28 74 2c 20 | 26 28 28 52 6f 74 61 74 |ssoc(t, |&((Rotat|
|00004620| 65 20 2a 29 74 2d 3e 74 | 72 29 2d 3e 7a 2c 20 76 |e *)t->t|r)->z, v|
|00004630| 29 0a 58 23 64 65 66 69 | 6e 65 20 54 72 61 6e 73 |).X#defi|ne Trans|
|00004640| 52 6f 74 61 74 65 53 65 | 74 54 68 65 74 61 28 74 |RotateSe|tTheta(t|
|00004650| 2c 20 76 29 09 54 72 61 | 6e 73 41 73 73 6f 63 28 |, v).Tra|nsAssoc(|
|00004660| 74 2c 20 26 28 28 52 6f | 74 61 74 65 20 2a 29 74 |t, &((Ro|tate *)t|
|00004670| 2d 3e 74 72 29 2d 3e 74 | 68 65 74 61 2c 20 76 29 |->tr)->t|heta, v)|
|00004680| 0a 58 0a 58 74 79 70 65 | 64 65 66 20 73 74 72 75 |.X.Xtype|def stru|
|00004690| 63 74 20 7b 0a 58 09 46 | 6c 6f 61 74 20 78 2c 20 |ct {.X.F|loat x, |
|000046a0| 79 2c 20 7a 2c 20 74 68 | 65 74 61 3b 0a 58 7d 20 |y, z, th|eta;.X} |
|000046b0| 52 6f 74 61 74 65 3b 0a | 58 0a 58 65 78 74 65 72 |Rotate;.|X.Xexter|
|000046c0| 6e 20 52 6f 74 61 74 65 | 20 2a 52 6f 74 61 74 65 |n Rotate| *Rotate|
|000046d0| 43 72 65 61 74 65 28 29 | 3b 0a 58 65 78 74 65 72 |Create()|;.Xexter|
|000046e0| 6e 20 54 72 61 6e 73 4d | 65 74 68 6f 64 73 20 2a |n TransM|ethods *|
|000046f0| 52 6f 74 61 74 65 4d 65 | 74 68 6f 64 73 28 29 3b |RotateMe|thods();|
|00004700| 0a 58 65 78 74 65 72 6e | 20 76 6f 69 64 20 52 6f |.Xextern| void Ro|
|00004710| 74 61 74 65 50 72 6f 70 | 61 67 61 74 65 28 29 3b |tateProp|agate();|
|00004720| 0a 58 0a 58 23 65 6e 64 | 69 66 20 2f 2a 20 52 4f |.X.X#end|if /* RO|
|00004730| 54 41 54 45 5f 48 20 2a | 2f 0a 45 4e 44 5f 4f 46 |TATE_H *|/.END_OF|
|00004740| 5f 46 49 4c 45 0a 69 66 | 20 74 65 73 74 20 31 32 |_FILE.if| test 12|
|00004750| 34 34 20 2d 6e 65 20 60 | 77 63 20 2d 63 20 3c 27 |44 -ne `|wc -c <'|
|00004760| 6c 69 62 72 61 79 2f 6c | 69 62 63 6f 6d 6d 6f 6e |libray/l|ibcommon|
|00004770| 2f 72 6f 74 61 74 65 2e | 68 27 60 3b 20 74 68 65 |/rotate.|h'`; the|
|00004780| 6e 0a 20 20 20 20 65 63 | 68 6f 20 73 68 61 72 3a |n. ec|ho shar:|
|00004790| 20 5c 22 27 6c 69 62 72 | 61 79 2f 6c 69 62 63 6f | \"'libr|ay/libco|
|000047a0| 6d 6d 6f 6e 2f 72 6f 74 | 61 74 65 2e 68 27 5c 22 |mmon/rot|ate.h'\"|
|000047b0| 20 75 6e 70 61 63 6b 65 | 64 20 77 69 74 68 20 77 | unpacke|d with w|
|000047c0| 72 6f 6e 67 20 73 69 7a | 65 21 0a 66 69 0a 23 20 |rong siz|e!.fi.# |
|000047d0| 65 6e 64 20 6f 66 20 27 | 6c 69 62 72 61 79 2f 6c |end of '|libray/l|
|000047e0| 69 62 63 6f 6d 6d 6f 6e | 2f 72 6f 74 61 74 65 2e |ibcommon|/rotate.|
|000047f0| 68 27 0a 66 69 0a 69 66 | 20 74 65 73 74 20 2d 66 |h'.fi.if| test -f|
|00004800| 20 27 6c 69 62 72 61 79 | 2f 6c 69 62 63 6f 6d 6d | 'libray|/libcomm|
|00004810| 6f 6e 2f 73 61 6d 70 6c | 69 6e 67 2e 68 27 20 2d |on/sampl|ing.h' -|
|00004820| 61 20 22 24 7b 31 7d 22 | 20 21 3d 20 22 2d 63 22 |a "${1}"| != "-c"|
|00004830| 20 3b 20 74 68 65 6e 20 | 0a 20 20 65 63 68 6f 20 | ; then |. echo |
|00004840| 73 68 61 72 3a 20 57 69 | 6c 6c 20 6e 6f 74 20 63 |shar: Wi|ll not c|
|00004850| 6c 6f 62 62 65 72 20 65 | 78 69 73 74 69 6e 67 20 |lobber e|xisting |
|00004860| 66 69 6c 65 20 5c 22 27 | 6c 69 62 72 61 79 2f 6c |file \"'|libray/l|
|00004870| 69 62 63 6f 6d 6d 6f 6e | 2f 73 61 6d 70 6c 69 6e |ibcommon|/samplin|
|00004880| 67 2e 68 27 5c 22 0a 65 | 6c 73 65 0a 65 63 68 6f |g.h'\".e|lse.echo|
|00004890| 20 73 68 61 72 3a 20 45 | 78 74 72 61 63 74 69 6e | shar: E|xtractin|
|000048a0| 67 20 5c 22 27 6c 69 62 | 72 61 79 2f 6c 69 62 63 |g \"'lib|ray/libc|
|000048b0| 6f 6d 6d 6f 6e 2f 73 61 | 6d 70 6c 69 6e 67 2e 68 |ommon/sa|mpling.h|
|000048c0| 27 5c 22 20 5c 28 31 34 | 38 35 20 63 68 61 72 61 |'\" \(14|85 chara|
|000048d0| 63 74 65 72 73 5c 29 0a | 73 65 64 20 22 73 2f 5e |cters\).|sed "s/^|
|000048e0| 58 2f 2f 22 20 3e 27 6c | 69 62 72 61 79 2f 6c 69 |X//" >'l|ibray/li|
|000048f0| 62 63 6f 6d 6d 6f 6e 2f | 73 61 6d 70 6c 69 6e 67 |bcommon/|sampling|
|00004900| 2e 68 27 20 3c 3c 27 45 | 4e 44 5f 4f 46 5f 46 49 |.h' <<'E|ND_OF_FI|
|00004910| 4c 45 27 0a 58 2f 2a 0a | 58 20 2a 20 73 61 6d 70 |LE'.X/*.|X * samp|
|00004920| 6c 69 6e 67 2e 68 0a 58 | 20 2a 0a 58 20 2a 20 43 |ling.h.X| *.X * C|
|00004930| 6f 70 79 72 69 67 68 74 | 20 28 43 29 20 31 39 38 |opyright| (C) 198|
|00004940| 39 2c 20 31 39 39 31 2c | 20 43 72 61 69 67 20 45 |9, 1991,| Craig E|
|00004950| 2e 20 4b 6f 6c 62 0a 58 | 20 2a 20 41 6c 6c 20 72 |. Kolb.X| * All r|
|00004960| 69 67 68 74 73 20 72 65 | 73 65 72 76 65 64 2e 0a |ights re|served..|
|00004970| 58 20 2a 0a 58 20 2a 20 | 54 68 69 73 20 73 6f 66 |X *.X * |This sof|
|00004980| 74 77 61 72 65 20 6d 61 | 79 20 62 65 20 66 72 65 |tware ma|y be fre|
|00004990| 65 6c 79 20 63 6f 70 69 | 65 64 2c 20 6d 6f 64 69 |ely copi|ed, modi|
|000049a0| 66 69 65 64 2c 20 61 6e | 64 20 72 65 64 69 73 74 |fied, an|d redist|
|000049b0| 72 69 62 75 74 65 64 0a | 58 20 2a 20 70 72 6f 76 |ributed.|X * prov|
|000049c0| 69 64 65 64 20 74 68 61 | 74 20 74 68 69 73 20 63 |ided tha|t this c|
|000049d0| 6f 70 79 72 69 67 68 74 | 20 6e 6f 74 69 63 65 20 |opyright| notice |
|000049e0| 69 73 20 70 72 65 73 65 | 72 76 65 64 20 6f 6e 20 |is prese|rved on |
|000049f0| 61 6c 6c 20 63 6f 70 69 | 65 73 2e 0a 58 20 2a 0a |all copi|es..X *.|
|00004a00| 58 20 2a 20 59 6f 75 20 | 6d 61 79 20 6e 6f 74 20 |X * You |may not |
|00004a10| 64 69 73 74 72 69 62 75 | 74 65 20 74 68 69 73 20 |distribu|te this |
|00004a20| 73 6f 66 74 77 61 72 65 | 2c 20 69 6e 20 77 68 6f |software|, in who|
|00004a30| 6c 65 20 6f 72 20 69 6e | 20 70 61 72 74 2c 20 61 |le or in| part, a|
|00004a40| 73 20 70 61 72 74 20 6f | 66 0a 58 20 2a 20 61 6e |s part o|f.X * an|
|00004a50| 79 20 63 6f 6d 6d 65 72 | 63 69 61 6c 20 70 72 6f |y commer|cial pro|
|00004a60| 64 75 63 74 20 77 69 74 | 68 6f 75 74 20 74 68 65 |duct wit|hout the|
|00004a70| 20 65 78 70 72 65 73 73 | 20 63 6f 6e 73 65 6e 74 | express| consent|
|00004a80| 20 6f 66 20 74 68 65 20 | 61 75 74 68 6f 72 73 2e | of the |authors.|
|00004a90| 0a 58 20 2a 0a 58 20 2a | 20 54 68 65 72 65 20 69 |.X *.X *| There i|
|00004aa0| 73 20 6e 6f 20 77 61 72 | 72 61 6e 74 79 20 6f 72 |s no war|ranty or|
|00004ab0| 20 6f 74 68 65 72 20 67 | 75 61 72 61 6e 74 65 65 | other g|uarantee|
|00004ac0| 20 6f 66 20 66 69 74 6e | 65 73 73 20 6f 66 20 74 | of fitn|ess of t|
|00004ad0| 68 69 73 20 73 6f 66 74 | 77 61 72 65 0a 58 20 2a |his soft|ware.X *|
|00004ae0| 20 66 6f 72 20 61 6e 79 | 20 70 75 72 70 6f 73 65 | for any| purpose|
|00004af0| 2e 20 20 49 74 20 69 73 | 20 70 72 6f 76 69 64 65 |. It is| provide|
|00004b00| 64 20 73 6f 6c 65 6c 79 | 20 22 61 73 20 69 73 22 |d solely| "as is"|
|00004b10| 2e 0a 58 20 2a 0a 58 20 | 2a 20 24 49 64 3a 20 73 |..X *.X |* $Id: s|
|00004b20| 61 6d 70 6c 69 6e 67 2e | 68 2c 76 20 34 2e 30 20 |ampling.|h,v 4.0 |
|00004b30| 39 31 2f 30 37 2f 31 37 | 20 31 34 3a 33 32 3a 30 |91/07/17| 14:32:0|
|00004b40| 31 20 6b 6f 6c 62 20 45 | 78 70 20 4c 6f 63 6b 65 |1 kolb E|xp Locke|
|00004b50| 72 3a 20 6b 6f 6c 62 20 | 24 0a 58 20 2a 0a 58 20 |r: kolb |$.X *.X |
|00004b60| 2a 20 24 4c 6f 67 3a 09 | 73 61 6d 70 6c 69 6e 67 |* $Log:.|sampling|
|00004b70| 2e 68 2c 76 20 24 0a 58 | 20 2a 20 52 65 76 69 73 |.h,v $.X| * Revis|
|00004b80| 69 6f 6e 20 34 2e 30 20 | 20 39 31 2f 30 37 2f 31 |ion 4.0 | 91/07/1|
|00004b90| 37 20 20 31 34 3a 33 32 | 3a 30 31 20 20 6b 6f 6c |7 14:32|:01 kol|
|00004ba0| 62 0a 58 20 2a 20 49 6e | 69 74 69 61 6c 20 76 65 |b.X * In|itial ve|
|00004bb0| 72 73 69 6f 6e 2e 0a 58 | 20 2a 20 0a 58 20 2a 2f |rsion..X| * .X */|
|00004bc0| 0a 58 23 69 66 6e 64 65 | 66 20 53 41 4d 50 4c 49 |.X#ifnde|f SAMPLI|
|00004bd0| 4e 47 5f 48 0a 58 23 64 | 65 66 69 6e 65 20 53 41 |NG_H.X#d|efine SA|
|00004be0| 4d 50 4c 49 4e 47 5f 48 | 0a 58 0a 58 2f 2a 0a 58 |MPLING_H|.X.X/*.X|
|00004bf0| 20 2a 20 23 20 6f 66 20 | 73 75 62 73 61 6d 70 6c | * # of |subsampl|
|00004c00| 65 73 20 74 6f 20 74 61 | 6b 65 20 77 69 74 68 69 |es to ta|ke withi|
|00004c10| 6e 20 65 61 63 68 20 6f | 66 20 74 68 65 20 74 6f |n each o|f the to|
|00004c20| 74 73 61 6d 70 6c 65 73 | 20 73 6c 6f 74 73 20 77 |tsamples| slots w|
|00004c30| 68 65 6e 0a 58 20 2a 20 | 63 6f 6d 70 75 74 69 6e |hen.X * |computin|
|00004c40| 67 20 27 61 6e 69 6d 61 | 74 65 64 27 20 62 6f 75 |g 'anima|ted' bou|
|00004c50| 6e 64 69 6e 67 20 62 6f | 78 65 73 2e 0a 58 20 2a |nding bo|xes..X *|
|00004c60| 2f 0a 58 23 64 65 66 69 | 6e 65 20 54 49 4d 45 5f |/.X#defi|ne TIME_|
|00004c70| 53 55 42 5f 53 41 4d 50 | 4c 45 53 09 31 30 0a 58 |SUB_SAMP|LES.10.X|
|00004c80| 0a 58 74 79 70 65 64 65 | 66 20 73 74 72 75 63 74 |.Xtypede|f struct|
|00004c90| 20 53 61 6d 70 6c 65 49 | 6e 66 6f 20 7b 0a 58 09 | SampleI|nfo {.X.|
|00004ca0| 69 6e 74 09 74 6f 74 73 | 61 6d 70 6c 65 73 2c 09 |int.tots|amples,.|
|00004cb0| 2f 2a 20 23 20 6f 66 20 | 73 61 6d 70 6c 65 73 2f |/* # of |samples/|
|00004cc0| 70 69 78 65 6c 20 2a 2f | 0a 58 09 09 73 69 64 65 |pixel */|.X..side|
|00004cd0| 73 61 6d 70 6c 65 73 2c | 09 2f 2a 20 73 71 72 74 |samples,|./* sqrt|
|00004ce0| 28 73 61 6d 70 6c 65 73 | 29 20 2a 2f 0a 58 09 09 |(samples|) */.X..|
|00004cf0| 67 61 75 73 73 69 61 6e | 2c 09 2f 2a 20 67 61 75 |gaussian|,./* gau|
|00004d00| 73 73 69 61 6e 20 66 69 | 6c 74 65 72 3f 20 2a 2f |ssian fi|lter? */|
|00004d10| 0a 58 09 09 66 72 61 6d | 65 6e 75 6d 2c 09 2f 2a |.X..fram|enum,./*|
|00004d20| 20 63 75 72 72 65 6e 74 | 20 66 72 61 6d 65 20 6e | current| frame n|
|00004d30| 75 6d 65 72 20 2a 2f 0a | 58 09 09 74 69 6d 65 6d |umer */.|X..timem|
|00004d40| 61 67 69 63 3b 09 2f 2a | 20 23 20 6f 66 20 74 69 |agic;./*| # of ti|
|00004d50| 6d 65 20 73 61 6d 70 6c | 65 73 20 70 65 72 20 73 |me sampl|es per s|
|00004d60| 63 72 65 65 6e 2e 2e 2e | 20 2a 2f 0a 58 09 46 6c |creen...| */.X.Fl|
|00004d70| 6f 61 74 09 77 65 69 67 | 68 74 2c 09 09 2f 2a 20 |oat.weig|ht,../* |
|00004d80| 31 2e 20 2f 20 74 6f 74 | 73 61 6d 70 6c 65 73 20 |1. / tot|samples |
|00004d90| 2a 2f 0a 58 09 09 73 70 | 61 63 69 6e 67 2c 09 2f |*/.X..sp|acing,./|
|00004da0| 2a 20 31 2e 20 2f 20 73 | 69 64 65 73 61 6d 70 6c |* 1. / s|idesampl|
|00004db0| 65 73 20 20 2a 2f 0a 58 | 09 09 66 69 6c 74 65 72 |es */.X|..filter|
|00004dc0| 77 69 64 74 68 2c 09 2f | 2a 20 74 6f 74 61 6c 20 |width,./|* total |
|00004dd0| 77 69 64 74 68 20 6f 66 | 20 66 69 6c 74 65 72 20 |width of| filter |
|00004de0| 2a 2f 0a 58 09 09 66 69 | 6c 74 65 72 64 65 6c 74 |*/.X..fi|lterdelt|
|00004df0| 61 2c 09 2f 2a 20 66 69 | 6c 74 65 72 77 69 64 74 |a,./* fi|lterwidt|
|00004e00| 68 20 2a 20 73 70 61 63 | 69 6e 67 20 2a 2f 0a 58 |h * spac|ing */.X|
|00004e10| 09 09 2a 2a 66 69 6c 74 | 65 72 2c 09 2f 2a 20 70 |..**filt|er,./* p|
|00004e20| 69 78 65 6c 20 66 69 6c | 74 65 72 2c 20 73 69 64 |ixel fil|ter, sid|
|00004e30| 65 73 61 6d 70 20 62 79 | 20 73 69 64 65 73 61 6d |esamp by| sidesam|
|00004e40| 70 20 2a 2f 0a 58 09 09 | 73 74 61 72 74 74 69 6d |p */.X..|starttim|
|00004e50| 65 2c 09 2f 2a 20 73 74 | 61 72 74 20 74 69 6d 65 |e,./* st|art time|
|00004e60| 20 2a 2f 0a 58 09 09 73 | 68 75 74 74 65 72 3b 09 | */.X..s|hutter;.|
|00004e70| 2f 2a 20 6c 65 6e 67 74 | 68 20 6f 66 20 74 69 6d |/* lengt|h of tim|
|00004e80| 65 20 73 68 75 74 74 65 | 72 20 69 73 20 6f 70 65 |e shutte|r is ope|
|00004e90| 6e 20 2a 2f 0a 58 7d 20 | 53 61 6d 70 6c 65 49 6e |n */.X} |SampleIn|
|00004ea0| 66 6f 3b 0a 58 0a 58 65 | 78 74 65 72 6e 20 53 61 |fo;.X.Xe|xtern Sa|
|00004eb0| 6d 70 6c 65 49 6e 66 6f | 20 53 61 6d 70 6c 69 6e |mpleInfo| Samplin|
|00004ec0| 67 3b 0a 58 0a 58 65 78 | 74 65 72 6e 20 76 6f 69 |g;.X.Xex|tern voi|
|00004ed0| 64 09 53 61 6d 70 6c 69 | 6e 67 53 65 74 4f 70 74 |d.Sampli|ngSetOpt|
|00004ee0| 69 6f 6e 73 28 29 2c 20 | 55 6e 69 74 43 69 72 63 |ions(), |UnitCirc|
|00004ef0| 6c 65 50 6f 69 6e 74 28 | 29 3b 0a 58 0a 58 23 65 |lePoint(|);.X.X#e|
|00004f00| 6e 64 69 66 20 2f 2a 20 | 53 41 4d 50 4c 49 4e 47 |ndif /* |SAMPLING|
|00004f10| 20 2a 2f 0a 45 4e 44 5f | 4f 46 5f 46 49 4c 45 0a | */.END_|OF_FILE.|
|00004f20| 69 66 20 74 65 73 74 20 | 31 34 38 35 20 2d 6e 65 |if test |1485 -ne|
|00004f30| 20 60 77 63 20 2d 63 20 | 3c 27 6c 69 62 72 61 79 | `wc -c |<'libray|
|00004f40| 2f 6c 69 62 63 6f 6d 6d | 6f 6e 2f 73 61 6d 70 6c |/libcomm|on/sampl|
|00004f50| 69 6e 67 2e 68 27 60 3b | 20 74 68 65 6e 0a 20 20 |ing.h'`;| then. |
|00004f60| 20 20 65 63 68 6f 20 73 | 68 61 72 3a 20 5c 22 27 | echo s|har: \"'|
|00004f70| 6c 69 62 72 61 79 2f 6c | 69 62 63 6f 6d 6d 6f 6e |libray/l|ibcommon|
|00004f80| 2f 73 61 6d 70 6c 69 6e | 67 2e 68 27 5c 22 20 75 |/samplin|g.h'\" u|
|00004f90| 6e 70 61 63 6b 65 64 20 | 77 69 74 68 20 77 72 6f |npacked |with wro|
|00004fa0| 6e 67 20 73 69 7a 65 21 | 0a 66 69 0a 23 20 65 6e |ng size!|.fi.# en|
|00004fb0| 64 20 6f 66 20 27 6c 69 | 62 72 61 79 2f 6c 69 62 |d of 'li|bray/lib|
|00004fc0| 63 6f 6d 6d 6f 6e 2f 73 | 61 6d 70 6c 69 6e 67 2e |common/s|ampling.|
|00004fd0| 68 27 0a 66 69 0a 69 66 | 20 74 65 73 74 20 2d 66 |h'.fi.if| test -f|
|00004fe0| 20 27 6c 69 62 72 61 79 | 2f 6c 69 62 63 6f 6d 6d | 'libray|/libcomm|
|00004ff0| 6f 6e 2f 74 72 61 6e 73 | 6c 61 74 65 2e 68 27 20 |on/trans|late.h' |
|00005000| 2d 61 20 22 24 7b 31 7d | 22 20 21 3d 20 22 2d 63 |-a "${1}|" != "-c|
|00005010| 22 20 3b 20 74 68 65 6e | 20 0a 20 20 65 63 68 6f |" ; then| . echo|
|00005020| 20 73 68 61 72 3a 20 57 | 69 6c 6c 20 6e 6f 74 20 | shar: W|ill not |
|00005030| 63 6c 6f 62 62 65 72 20 | 65 78 69 73 74 69 6e 67 |clobber |existing|
|00005040| 20 66 69 6c 65 20 5c 22 | 27 6c 69 62 72 61 79 2f | file \"|'libray/|
|00005050| 6c 69 62 63 6f 6d 6d 6f | 6e 2f 74 72 61 6e 73 6c |libcommo|n/transl|
|00005060| 61 74 65 2e 68 27 5c 22 | 0a 65 6c 73 65 0a 65 63 |ate.h'\"|.else.ec|
|00005070| 68 6f 20 73 68 61 72 3a | 20 45 78 74 72 61 63 74 |ho shar:| Extract|
|00005080| 69 6e 67 20 5c 22 27 6c | 69 62 72 61 79 2f 6c 69 |ing \"'l|ibray/li|
|00005090| 62 63 6f 6d 6d 6f 6e 2f | 74 72 61 6e 73 6c 61 74 |bcommon/|translat|
|000050a0| 65 2e 68 27 5c 22 20 5c | 28 31 31 39 39 20 63 68 |e.h'\" \|(1199 ch|
|000050b0| 61 72 61 63 74 65 72 73 | 5c 29 0a 73 65 64 20 22 |aracters|\).sed "|
|000050c0| 73 2f 5e 58 2f 2f 22 20 | 3e 27 6c 69 62 72 61 79 |s/^X//" |>'libray|
|000050d0| 2f 6c 69 62 63 6f 6d 6d | 6f 6e 2f 74 72 61 6e 73 |/libcomm|on/trans|
|000050e0| 6c 61 74 65 2e 68 27 20 | 3c 3c 27 45 4e 44 5f 4f |late.h' |<<'END_O|
|000050f0| 46 5f 46 49 4c 45 27 0a | 58 2f 2a 0a 58 20 2a 20 |F_FILE'.|X/*.X * |
|00005100| 74 72 61 6e 73 6c 61 74 | 65 2e 68 0a 58 20 2a 0a |translat|e.h.X *.|
|00005110| 58 20 2a 20 43 6f 70 79 | 72 69 67 68 74 20 28 43 |X * Copy|right (C|
|00005120| 29 20 31 39 38 39 2c 20 | 31 39 39 31 2c 20 43 72 |) 1989, |1991, Cr|
|00005130| 61 69 67 20 45 2e 20 4b | 6f 6c 62 0a 58 20 2a 20 |aig E. K|olb.X * |
|00005140| 41 6c 6c 20 72 69 67 68 | 74 73 20 72 65 73 65 72 |All righ|ts reser|
|00005150| 76 65 64 2e 0a 58 20 2a | 0a 58 20 2a 20 54 68 69 |ved..X *|.X * Thi|
|00005160| 73 20 73 6f 66 74 77 61 | 72 65 20 6d 61 79 20 62 |s softwa|re may b|
|00005170| 65 20 66 72 65 65 6c 79 | 20 63 6f 70 69 65 64 2c |e freely| copied,|
|00005180| 20 6d 6f 64 69 66 69 65 | 64 2c 20 61 6e 64 20 72 | modifie|d, and r|
|00005190| 65 64 69 73 74 72 69 62 | 75 74 65 64 0a 58 20 2a |edistrib|uted.X *|
|000051a0| 20 70 72 6f 76 69 64 65 | 64 20 74 68 61 74 20 74 | provide|d that t|
|000051b0| 68 69 73 20 63 6f 70 79 | 72 69 67 68 74 20 6e 6f |his copy|right no|
|000051c0| 74 69 63 65 20 69 73 20 | 70 72 65 73 65 72 76 65 |tice is |preserve|
|000051d0| 64 20 6f 6e 20 61 6c 6c | 20 63 6f 70 69 65 73 2e |d on all| copies.|
|000051e0| 0a 58 20 2a 0a 58 20 2a | 20 59 6f 75 20 6d 61 79 |.X *.X *| You may|
|000051f0| 20 6e 6f 74 20 64 69 73 | 74 72 69 62 75 74 65 20 | not dis|tribute |
|00005200| 74 68 69 73 20 73 6f 66 | 74 77 61 72 65 2c 20 69 |this sof|tware, i|
|00005210| 6e 20 77 68 6f 6c 65 20 | 6f 72 20 69 6e 20 70 61 |n whole |or in pa|
|00005220| 72 74 2c 20 61 73 20 70 | 61 72 74 20 6f 66 0a 58 |rt, as p|art of.X|
|00005230| 20 2a 20 61 6e 79 20 63 | 6f 6d 6d 65 72 63 69 61 | * any c|ommercia|
|00005240| 6c 20 70 72 6f 64 75 63 | 74 20 77 69 74 68 6f 75 |l produc|t withou|
|00005250| 74 20 74 68 65 20 65 78 | 70 72 65 73 73 20 63 6f |t the ex|press co|
|00005260| 6e 73 65 6e 74 20 6f 66 | 20 74 68 65 20 61 75 74 |nsent of| the aut|
|00005270| 68 6f 72 73 2e 0a 58 20 | 2a 20 0a 58 20 2a 20 54 |hors..X |* .X * T|
|00005280| 68 65 72 65 20 69 73 20 | 6e 6f 20 77 61 72 72 61 |here is |no warra|
|00005290| 6e 74 79 20 6f 72 20 6f | 74 68 65 72 20 67 75 61 |nty or o|ther gua|
|000052a0| 72 61 6e 74 65 65 20 6f | 66 20 66 69 74 6e 65 73 |rantee o|f fitnes|
|000052b0| 73 20 6f 66 20 74 68 69 | 73 20 73 6f 66 74 77 61 |s of thi|s softwa|
|000052c0| 72 65 0a 58 20 2a 20 66 | 6f 72 20 61 6e 79 20 70 |re.X * f|or any p|
|000052d0| 75 72 70 6f 73 65 2e 20 | 20 49 74 20 69 73 20 70 |urpose. | It is p|
|000052e0| 72 6f 76 69 64 65 64 20 | 73 6f 6c 65 6c 79 20 22 |rovided |solely "|
|000052f0| 61 73 20 69 73 22 2e 0a | 58 20 2a 0a 58 20 2a 20 |as is"..|X *.X * |
|00005300| 24 49 64 3a 20 74 72 61 | 6e 73 6c 61 74 65 2e 68 |$Id: tra|nslate.h|
|00005310| 2c 76 20 34 2e 30 20 39 | 31 2f 30 37 2f 31 37 20 |,v 4.0 9|1/07/17 |
|00005320| 31 34 3a 33 32 3a 34 39 | 20 6b 6f 6c 62 20 45 78 |14:32:49| kolb Ex|
|00005330| 70 20 4c 6f 63 6b 65 72 | 3a 20 6b 6f 6c 62 20 24 |p Locker|: kolb $|
|00005340| 0a 58 20 2a 0a 58 20 2a | 20 24 4c 6f 67 3a 09 74 |.X *.X *| $Log:.t|
|00005350| 72 61 6e 73 6c 61 74 65 | 2e 68 2c 76 20 24 0a 58 |ranslate|.h,v $.X|
|00005360| 20 2a 20 52 65 76 69 73 | 69 6f 6e 20 34 2e 30 20 | * Revis|ion 4.0 |
|00005370| 20 39 31 2f 30 37 2f 31 | 37 20 20 31 34 3a 33 32 | 91/07/1|7 14:32|
|00005380| 3a 34 39 20 20 6b 6f 6c | 62 0a 58 20 2a 20 49 6e |:49 kol|b.X * In|
|00005390| 69 74 69 61 6c 20 76 65 | 72 73 69 6f 6e 2e 0a 58 |itial ve|rsion..X|
|000053a0| 20 2a 20 0a 58 20 2a 2f | 0a 58 23 69 66 6e 64 65 | * .X */|.X#ifnde|
|000053b0| 66 20 54 52 41 4e 53 4c | 41 54 45 5f 48 0a 58 23 |f TRANSL|ATE_H.X#|
|000053c0| 64 65 66 69 6e 65 20 54 | 52 41 4e 53 4c 41 54 45 |define T|RANSLATE|
|000053d0| 5f 48 0a 58 0a 58 23 64 | 65 66 69 6e 65 20 54 72 |_H.X.X#d|efine Tr|
|000053e0| 61 6e 73 54 72 61 6e 73 | 6c 61 74 65 43 72 65 61 |ansTrans|lateCrea|
|000053f0| 74 65 28 29 09 09 54 72 | 61 6e 73 43 72 65 61 74 |te()..Tr|ansCreat|
|00005400| 65 28 28 54 72 61 6e 73 | 52 65 66 29 54 72 61 6e |e((Trans|Ref)Tran|
|00005410| 73 6c 61 74 65 43 72 65 | 61 74 65 28 29 2c 20 54 |slateCre|ate(), T|
|00005420| 72 61 6e 73 6c 61 74 65 | 4d 65 74 68 6f 64 73 28 |ranslate|Methods(|
|00005430| 29 29 0a 58 0a 58 23 64 | 65 66 69 6e 65 20 54 72 |)).X.X#d|efine Tr|
|00005440| 61 6e 73 54 72 61 6e 73 | 6c 61 74 65 53 65 74 58 |ansTrans|lateSetX|
|00005450| 28 74 2c 20 76 29 09 09 | 54 72 61 6e 73 41 73 73 |(t, v)..|TransAss|
|00005460| 6f 63 28 74 2c 20 26 28 | 28 54 72 61 6e 73 6c 61 |oc(t, &(|(Transla|
|00005470| 74 65 20 2a 29 74 2d 3e | 74 72 29 2d 3e 78 2c 20 |te *)t->|tr)->x, |
|00005480| 76 29 0a 58 23 64 65 66 | 69 6e 65 20 54 72 61 6e |v).X#def|ine Tran|
|00005490| 73 54 72 61 6e 73 6c 61 | 74 65 53 65 74 59 28 74 |sTransla|teSetY(t|
|000054a0| 2c 20 76 29 09 09 54 72 | 61 6e 73 41 73 73 6f 63 |, v)..Tr|ansAssoc|
|000054b0| 28 74 2c 20 26 28 28 54 | 72 61 6e 73 6c 61 74 65 |(t, &((T|ranslate|
|000054c0| 20 2a 29 74 2d 3e 74 72 | 29 2d 3e 79 2c 20 76 29 | *)t->tr|)->y, v)|
|000054d0| 0a 58 23 64 65 66 69 6e | 65 20 54 72 61 6e 73 54 |.X#defin|e TransT|
|000054e0| 72 61 6e 73 6c 61 74 65 | 53 65 74 5a 28 74 2c 20 |ranslate|SetZ(t, |
|000054f0| 76 29 09 09 54 72 61 6e | 73 41 73 73 6f 63 28 74 |v)..Tran|sAssoc(t|
|00005500| 2c 20 26 28 28 54 72 61 | 6e 73 6c 61 74 65 20 2a |, &((Tra|nslate *|
|00005510| 29 74 2d 3e 74 72 29 2d | 3e 7a 2c 20 76 29 0a 58 |)t->tr)-|>z, v).X|
|00005520| 0a 58 74 79 70 65 64 65 | 66 20 56 65 63 74 6f 72 |.Xtypede|f Vector|
|00005530| 20 54 72 61 6e 73 6c 61 | 74 65 3b 0a 58 0a 58 65 | Transla|te;.X.Xe|
|00005540| 78 74 65 72 6e 20 54 72 | 61 6e 73 6c 61 74 65 20 |xtern Tr|anslate |
|00005550| 2a 54 72 61 6e 73 6c 61 | 74 65 43 72 65 61 74 65 |*Transla|teCreate|
|00005560| 28 29 3b 0a 58 65 78 74 | 65 72 6e 20 54 72 61 6e |();.Xext|ern Tran|
|00005570| 73 4d 65 74 68 6f 64 73 | 20 2a 54 72 61 6e 73 6c |sMethods| *Transl|
|00005580| 61 74 65 4d 65 74 68 6f | 64 73 28 29 3b 0a 58 65 |ateMetho|ds();.Xe|
|00005590| 78 74 65 72 6e 20 76 6f | 69 64 20 54 72 61 6e 73 |xtern vo|id Trans|
|000055a0| 6c 61 74 65 50 72 6f 70 | 61 67 61 74 65 28 29 3b |lateProp|agate();|
|000055b0| 0a 58 0a 58 23 65 6e 64 | 69 66 20 2f 2a 20 54 52 |.X.X#end|if /* TR|
|000055c0| 41 4e 53 4c 41 54 45 5f | 48 20 2a 2f 0a 45 4e 44 |ANSLATE_|H */.END|
|000055d0| 5f 4f 46 5f 46 49 4c 45 | 0a 69 66 20 74 65 73 74 |_OF_FILE|.if test|
|000055e0| 20 31 31 39 39 20 2d 6e | 65 20 60 77 63 20 2d 63 | 1199 -n|e `wc -c|
|000055f0| 20 3c 27 6c 69 62 72 61 | 79 2f 6c 69 62 63 6f 6d | <'libra|y/libcom|
|00005600| 6d 6f 6e 2f 74 72 61 6e | 73 6c 61 74 65 2e 68 27 |mon/tran|slate.h'|
|00005610| 60 3b 20 74 68 65 6e 0a | 20 20 20 20 65 63 68 6f |`; then.| echo|
|00005620| 20 73 68 61 72 3a 20 5c | 22 27 6c 69 62 72 61 79 | shar: \|"'libray|
|00005630| 2f 6c 69 62 63 6f 6d 6d | 6f 6e 2f 74 72 61 6e 73 |/libcomm|on/trans|
|00005640| 6c 61 74 65 2e 68 27 5c | 22 20 75 6e 70 61 63 6b |late.h'\|" unpack|
|00005650| 65 64 20 77 69 74 68 20 | 77 72 6f 6e 67 20 73 69 |ed with |wrong si|
|00005660| 7a 65 21 0a 66 69 0a 23 | 20 65 6e 64 20 6f 66 20 |ze!.fi.#| end of |
|00005670| 27 6c 69 62 72 61 79 2f | 6c 69 62 63 6f 6d 6d 6f |'libray/|libcommo|
|00005680| 6e 2f 74 72 61 6e 73 6c | 61 74 65 2e 68 27 0a 66 |n/transl|ate.h'.f|
|00005690| 69 0a 69 66 20 74 65 73 | 74 20 2d 66 20 27 6c 69 |i.if tes|t -f 'li|
|000056a0| 62 72 61 79 2f 6c 69 62 | 69 6d 61 67 65 2f 69 6d |bray/lib|image/im|
|000056b0| 61 67 65 2e 68 27 20 2d | 61 20 22 24 7b 31 7d 22 |age.h' -|a "${1}"|
|000056c0| 20 21 3d 20 22 2d 63 22 | 20 3b 20 74 68 65 6e 20 | != "-c"| ; then |
|000056d0| 0a 20 20 65 63 68 6f 20 | 73 68 61 72 3a 20 57 69 |. echo |shar: Wi|
|000056e0| 6c 6c 20 6e 6f 74 20 63 | 6c 6f 62 62 65 72 20 65 |ll not c|lobber e|
|000056f0| 78 69 73 74 69 6e 67 20 | 66 69 6c 65 20 5c 22 27 |xisting |file \"'|
|00005700| 6c 69 62 72 61 79 2f 6c | 69 62 69 6d 61 67 65 2f |libray/l|ibimage/|
|00005710| 69 6d 61 67 65 2e 68 27 | 5c 22 0a 65 6c 73 65 0a |image.h'|\".else.|
|00005720| 65 63 68 6f 20 73 68 61 | 72 3a 20 45 78 74 72 61 |echo sha|r: Extra|
|00005730| 63 74 69 6e 67 20 5c 22 | 27 6c 69 62 72 61 79 2f |cting \"|'libray/|
|00005740| 6c 69 62 69 6d 61 67 65 | 2f 69 6d 61 67 65 2e 68 |libimage|/image.h|
|00005750| 27 5c 22 20 5c 28 31 31 | 39 30 20 63 68 61 72 61 |'\" \(11|90 chara|
|00005760| 63 74 65 72 73 5c 29 0a | 73 65 64 20 22 73 2f 5e |cters\).|sed "s/^|
|00005770| 58 2f 2f 22 20 3e 27 6c | 69 62 72 61 79 2f 6c 69 |X//" >'l|ibray/li|
|00005780| 62 69 6d 61 67 65 2f 69 | 6d 61 67 65 2e 68 27 20 |bimage/i|mage.h' |
|00005790| 3c 3c 27 45 4e 44 5f 4f | 46 5f 46 49 4c 45 27 0a |<<'END_O|F_FILE'.|
|000057a0| 58 2f 2a 0a 58 20 2a 20 | 69 6d 61 67 65 2e 68 0a |X/*.X * |image.h.|
|000057b0| 58 20 2a 0a 58 20 2a 20 | 43 6f 70 79 72 69 67 68 |X *.X * |Copyrigh|
|000057c0| 74 20 28 43 29 20 31 39 | 38 39 2c 20 31 39 39 31 |t (C) 19|89, 1991|
|000057d0| 2c 20 52 6f 64 20 47 2e | 20 42 6f 67 61 72 74 2c |, Rod G.| Bogart,|
|000057e0| 20 43 72 61 69 67 20 45 | 2e 20 4b 6f 6c 62 0a 58 | Craig E|. Kolb.X|
|000057f0| 20 2a 20 41 6c 6c 20 72 | 69 67 68 74 73 20 72 65 | * All r|ights re|
|00005800| 73 65 72 76 65 64 2e 0a | 58 20 2a 0a 58 20 2a 20 |served..|X *.X * |
|00005810| 54 68 69 73 20 73 6f 66 | 74 77 61 72 65 20 6d 61 |This sof|tware ma|
|00005820| 79 20 62 65 20 66 72 65 | 65 6c 79 20 63 6f 70 69 |y be fre|ely copi|
|00005830| 65 64 2c 20 6d 6f 64 69 | 66 69 65 64 2c 20 61 6e |ed, modi|fied, an|
|00005840| 64 20 72 65 64 69 73 74 | 72 69 62 75 74 65 64 0a |d redist|ributed.|
|00005850| 58 20 2a 20 70 72 6f 76 | 69 64 65 64 20 74 68 61 |X * prov|ided tha|
|00005860| 74 20 74 68 69 73 20 63 | 6f 70 79 72 69 67 68 74 |t this c|opyright|
|00005870| 20 6e 6f 74 69 63 65 20 | 69 73 20 70 72 65 73 65 | notice |is prese|
|00005880| 72 76 65 64 20 6f 6e 20 | 61 6c 6c 20 63 6f 70 69 |rved on |all copi|
|00005890| 65 73 2e 0a 58 20 2a 0a | 58 20 2a 20 59 6f 75 20 |es..X *.|X * You |
|000058a0| 6d 61 79 20 6e 6f 74 20 | 64 69 73 74 72 69 62 75 |may not |distribu|
|000058b0| 74 65 20 74 68 69 73 20 | 73 6f 66 74 77 61 72 65 |te this |software|
|000058c0| 2c 20 69 6e 20 77 68 6f | 6c 65 20 6f 72 20 69 6e |, in who|le or in|
|000058d0| 20 70 61 72 74 2c 20 61 | 73 20 70 61 72 74 20 6f | part, a|s part o|
|000058e0| 66 0a 58 20 2a 20 61 6e | 79 20 63 6f 6d 6d 65 72 |f.X * an|y commer|
|000058f0| 63 69 61 6c 20 70 72 6f | 64 75 63 74 20 77 69 74 |cial pro|duct wit|
|00005900| 68 6f 75 74 20 74 68 65 | 20 65 78 70 72 65 73 73 |hout the| express|
|00005910| 20 63 6f 6e 73 65 6e 74 | 20 6f 66 20 74 68 65 20 | consent| of the |
|00005920| 61 75 74 68 6f 72 73 2e | 0a 58 20 2a 0a 58 20 2a |authors.|.X *.X *|
|00005930| 20 54 68 65 72 65 20 69 | 73 20 6e 6f 20 77 61 72 | There i|s no war|
|00005940| 72 61 6e 74 79 20 6f 72 | 20 6f 74 68 65 72 20 67 |ranty or| other g|
|00005950| 75 61 72 61 6e 74 65 65 | 20 6f 66 20 66 69 74 6e |uarantee| of fitn|
|00005960| 65 73 73 20 6f 66 20 74 | 68 69 73 20 73 6f 66 74 |ess of t|his soft|
|00005970| 77 61 72 65 0a 58 20 2a | 20 66 6f 72 20 61 6e 79 |ware.X *| for any|
|00005980| 20 70 75 72 70 6f 73 65 | 2e 20 20 49 74 20 69 73 | purpose|. It is|
|00005990| 20 70 72 6f 76 69 64 65 | 64 20 73 6f 6c 65 6c 79 | provide|d solely|
|000059a0| 20 22 61 73 20 69 73 22 | 2e 0a 58 20 2a 0a 58 20 | "as is"|..X *.X |
|000059b0| 2a 20 24 49 64 3a 20 69 | 6d 61 67 65 2e 68 2c 76 |* $Id: i|mage.h,v|
|000059c0| 20 34 2e 30 20 39 31 2f | 30 37 2f 31 37 20 31 34 | 4.0 91/|07/17 14|
|000059d0| 3a 33 33 3a 33 39 20 6b | 6f 6c 62 20 45 78 70 20 |:33:39 k|olb Exp |
|000059e0| 4c 6f 63 6b 65 72 3a 20 | 6b 6f 6c 62 20 24 0a 58 |Locker: |kolb $.X|
|000059f0| 20 2a 0a 58 20 2a 20 24 | 4c 6f 67 3a 09 69 6d 61 | *.X * $|Log:.ima|
|00005a00| 67 65 2e 68 2c 76 20 24 | 0a 58 20 2a 20 52 65 76 |ge.h,v $|.X * Rev|
|00005a10| 69 73 69 6f 6e 20 34 2e | 30 20 20 39 31 2f 30 37 |ision 4.|0 91/07|
|00005a20| 2f 31 37 20 20 31 34 3a | 33 33 3a 33 39 20 20 6b |/17 14:|33:39 k|
|00005a30| 6f 6c 62 0a 58 20 2a 20 | 49 6e 69 74 69 61 6c 20 |olb.X * |Initial |
|00005a40| 76 65 72 73 69 6f 6e 2e | 0a 58 20 2a 20 0a 58 20 |version.|.X * .X |
|00005a50| 2a 2f 0a 58 23 69 66 6e | 64 65 66 20 49 4d 41 47 |*/.X#ifn|def IMAG|
|00005a60| 45 5f 48 0a 58 23 64 65 | 66 69 6e 65 20 49 4d 41 |E_H.X#de|fine IMA|
|00005a70| 47 45 5f 48 0a 58 0a 58 | 2f 2a 0a 58 20 2a 20 47 |GE_H.X.X|/*.X * G|
|00005a80| 65 6e 65 72 69 63 20 69 | 6d 61 67 65 20 6f 62 6a |eneric i|mage obj|
|00005a90| 65 63 74 20 66 6f 72 20 | 74 65 78 74 75 72 65 20 |ect for |texture |
|00005aa0| 6d 61 70 20 73 74 6f 72 | 61 67 65 2e 0a 58 20 2a |map stor|age..X *|
|00005ab0| 2f 0a 58 74 79 70 65 64 | 65 66 20 73 74 72 75 63 |/.Xtyped|ef struc|
|00005ac0| 74 20 49 6d 61 67 65 20 | 7b 0a 58 09 69 6e 74 09 |t Image |{.X.int.|
|00005ad0| 77 69 64 74 68 2c 20 68 | 65 69 67 68 74 2c 09 09 |width, h|eight,..|
|00005ae0| 2f 2a 20 49 6d 61 67 65 | 20 73 69 7a 65 20 2a 2f |/* Image| size */|
|00005af0| 0a 58 09 09 63 68 61 6e | 2c 20 68 61 73 5f 61 6c |.X..chan|, has_al|
|00005b00| 70 68 61 2c 09 2f 2a 20 | 23 20 6f 66 20 63 68 61 |pha,./* |# of cha|
|00005b10| 6e 6e 65 6c 73 2c 20 68 | 61 73 20 61 6c 70 68 61 |nnels, h|as alpha|
|00005b20| 20 69 6e 66 6f 3f 20 2a | 2f 0a 58 09 09 74 6f 74 | info? *|/.X..tot|
|00005b30| 61 6c 63 68 61 6e 2c 09 | 09 2f 2a 20 23 20 63 68 |alchan,.|./* # ch|
|00005b40| 61 6e 6e 65 6c 73 20 2b | 20 61 6e 79 20 61 6c 70 |annels +| any alp|
|00005b50| 68 61 20 63 68 61 6e 6e | 65 6c 20 2a 2f 0a 58 09 |ha chann|el */.X.|
|00005b60| 09 63 68 61 6e 73 69 7a | 65 3b 09 09 2f 2a 20 77 |.chansiz|e;../* w|
|00005b70| 69 64 74 68 20 2a 20 68 | 65 69 67 68 74 20 2a 2f |idth * h|eight */|
|00005b80| 0a 58 09 75 6e 73 69 67 | 6e 65 64 20 63 68 61 72 |.X.unsig|ned char|
|00005b90| 20 2a 64 61 74 61 3b 09 | 09 2f 2a 20 49 6d 61 67 | *data;.|./* Imag|
|00005ba0| 65 20 2a 2f 0a 58 09 63 | 68 61 72 09 2a 66 69 6c |e */.X.c|har.*fil|
|00005bb0| 65 6e 61 6d 65 3b 09 09 | 2f 2a 20 46 69 6c 65 6e |ename;..|/* Filen|
|00005bc0| 61 6d 65 20 28 69 64 65 | 6e 74 69 66 69 65 72 29 |ame (ide|ntifier)|
|00005bd0| 20 2a 2f 0a 58 09 73 74 | 72 75 63 74 20 49 6d 61 | */.X.st|ruct Ima|
|00005be0| 67 65 20 2a 6e 65 78 74 | 3b 09 09 2f 2a 20 4e 65 |ge *next|;../* Ne|
|00005bf0| 78 74 20 69 6d 61 67 65 | 20 69 6e 20 6c 69 73 74 |xt image| in list|
|00005c00| 2e 20 2a 2f 0a 58 7d 20 | 49 6d 61 67 65 3b 0a 58 |. */.X} |Image;.X|
|00005c10| 0a 58 49 6d 61 67 65 09 | 2a 49 6d 61 67 65 43 72 |.XImage.|*ImageCr|
|00005c20| 65 61 74 65 28 29 2c 20 | 2a 49 6d 61 67 65 46 69 |eate(), |*ImageFi|
|00005c30| 6e 64 28 29 2c 20 2a 49 | 6d 61 67 65 52 65 61 64 |nd(), *I|mageRead|
|00005c40| 28 29 3b 0a 58 76 6f 69 | 64 09 49 6d 61 67 65 49 |();.Xvoi|d.ImageI|
|00005c50| 6e 64 65 78 28 29 3b 0a | 58 0a 58 23 65 6e 64 69 |ndex();.|X.X#endi|
|00005c60| 66 20 2f 2a 20 49 4d 41 | 47 45 5f 48 20 2a 2f 0a |f /* IMA|GE_H */.|
|00005c70| 45 4e 44 5f 4f 46 5f 46 | 49 4c 45 0a 69 66 20 74 |END_OF_F|ILE.if t|
|00005c80| 65 73 74 20 31 31 39 30 | 20 2d 6e 65 20 60 77 63 |est 1190| -ne `wc|
|00005c90| 20 2d 63 20 3c 27 6c 69 | 62 72 61 79 2f 6c 69 62 | -c <'li|bray/lib|
|00005ca0| 69 6d 61 67 65 2f 69 6d | 61 67 65 2e 68 27 60 3b |image/im|age.h'`;|
|00005cb0| 20 74 68 65 6e 0a 20 20 | 20 20 65 63 68 6f 20 73 | then. | echo s|
|00005cc0| 68 61 72 3a 20 5c 22 27 | 6c 69 62 72 61 79 2f 6c |har: \"'|libray/l|
|00005cd0| 69 62 69 6d 61 67 65 2f | 69 6d 61 67 65 2e 68 27 |ibimage/|image.h'|
|00005ce0| 5c 22 20 75 6e 70 61 63 | 6b 65 64 20 77 69 74 68 |\" unpac|ked with|
|00005cf0| 20 77 72 6f 6e 67 20 73 | 69 7a 65 21 0a 66 69 0a | wrong s|ize!.fi.|
|00005d00| 23 20 65 6e 64 20 6f 66 | 20 27 6c 69 62 72 61 79 |# end of| 'libray|
|00005d10| 2f 6c 69 62 69 6d 61 67 | 65 2f 69 6d 61 67 65 2e |/libimag|e/image.|
|00005d20| 68 27 0a 66 69 0a 69 66 | 20 74 65 73 74 20 2d 66 |h'.fi.if| test -f|
|00005d30| 20 27 6c 69 62 72 61 79 | 2f 6c 69 62 6f 62 6a 2f | 'libray|/libobj/|
|00005d40| 62 6f 75 6e 64 73 2e 68 | 27 20 2d 61 20 22 24 7b |bounds.h|' -a "${|
|00005d50| 31 7d 22 20 21 3d 20 22 | 2d 63 22 20 3b 20 74 68 |1}" != "|-c" ; th|
|00005d60| 65 6e 20 0a 20 20 65 63 | 68 6f 20 73 68 61 72 3a |en . ec|ho shar:|
|00005d70| 20 57 69 6c 6c 20 6e 6f | 74 20 63 6c 6f 62 62 65 | Will no|t clobbe|
|00005d80| 72 20 65 78 69 73 74 69 | 6e 67 20 66 69 6c 65 20 |r existi|ng file |
|00005d90| 5c 22 27 6c 69 62 72 61 | 79 2f 6c 69 62 6f 62 6a |\"'libra|y/libobj|
|00005da0| 2f 62 6f 75 6e 64 73 2e | 68 27 5c 22 0a 65 6c 73 |/bounds.|h'\".els|
|00005db0| 65 0a 65 63 68 6f 20 73 | 68 61 72 3a 20 45 78 74 |e.echo s|har: Ext|
|00005dc0| 72 61 63 74 69 6e 67 20 | 5c 22 27 6c 69 62 72 61 |racting |\"'libra|
|00005dd0| 79 2f 6c 69 62 6f 62 6a | 2f 62 6f 75 6e 64 73 2e |y/libobj|/bounds.|
|00005de0| 68 27 5c 22 20 5c 28 31 | 33 34 38 20 63 68 61 72 |h'\" \(1|348 char|
|00005df0| 61 63 74 65 72 73 5c 29 | 0a 73 65 64 20 22 73 2f |acters\)|.sed "s/|
|00005e00| 5e 58 2f 2f 22 20 3e 27 | 6c 69 62 72 61 79 2f 6c |^X//" >'|libray/l|
|00005e10| 69 62 6f 62 6a 2f 62 6f | 75 6e 64 73 2e 68 27 20 |ibobj/bo|unds.h' |
|00005e20| 3c 3c 27 45 4e 44 5f 4f | 46 5f 46 49 4c 45 27 0a |<<'END_O|F_FILE'.|
|00005e30| 58 2f 2a 0a 58 20 2a 20 | 62 6f 75 6e 64 73 2e 68 |X/*.X * |bounds.h|
|00005e40| 0a 58 20 2a 0a 58 20 2a | 20 43 6f 70 79 72 69 67 |.X *.X *| Copyrig|
|00005e50| 68 74 20 28 43 29 20 31 | 39 38 39 2c 20 31 39 39 |ht (C) 1|989, 199|
|00005e60| 31 2c 20 43 72 61 69 67 | 20 45 2e 20 4b 6f 6c 62 |1, Craig| E. Kolb|
|00005e70| 0a 58 20 2a 20 41 6c 6c | 20 72 69 67 68 74 73 20 |.X * All| rights |
|00005e80| 72 65 73 65 72 76 65 64 | 2e 0a 58 20 2a 0a 58 20 |reserved|..X *.X |
|00005e90| 2a 20 54 68 69 73 20 73 | 6f 66 74 77 61 72 65 20 |* This s|oftware |
|00005ea0| 6d 61 79 20 62 65 20 66 | 72 65 65 6c 79 20 63 6f |may be f|reely co|
|00005eb0| 70 69 65 64 2c 20 6d 6f | 64 69 66 69 65 64 2c 20 |pied, mo|dified, |
|00005ec0| 61 6e 64 20 72 65 64 69 | 73 74 72 69 62 75 74 65 |and redi|stribute|
|00005ed0| 64 0a 58 20 2a 20 70 72 | 6f 76 69 64 65 64 20 74 |d.X * pr|ovided t|
|00005ee0| 68 61 74 20 74 68 69 73 | 20 63 6f 70 79 72 69 67 |hat this| copyrig|
|00005ef0| 68 74 20 6e 6f 74 69 63 | 65 20 69 73 20 70 72 65 |ht notic|e is pre|
|00005f00| 73 65 72 76 65 64 20 6f | 6e 20 61 6c 6c 20 63 6f |served o|n all co|
|00005f10| 70 69 65 73 2e 0a 58 20 | 2a 0a 58 20 2a 20 59 6f |pies..X |*.X * Yo|
|00005f20| 75 20 6d 61 79 20 6e 6f | 74 20 64 69 73 74 72 69 |u may no|t distri|
|00005f30| 62 75 74 65 20 74 68 69 | 73 20 73 6f 66 74 77 61 |bute thi|s softwa|
|00005f40| 72 65 2c 20 69 6e 20 77 | 68 6f 6c 65 20 6f 72 20 |re, in w|hole or |
|00005f50| 69 6e 20 70 61 72 74 2c | 20 61 73 20 70 61 72 74 |in part,| as part|
|00005f60| 20 6f 66 0a 58 20 2a 20 | 61 6e 79 20 63 6f 6d 6d | of.X * |any comm|
|00005f70| 65 72 63 69 61 6c 20 70 | 72 6f 64 75 63 74 20 77 |ercial p|roduct w|
|00005f80| 69 74 68 6f 75 74 20 74 | 68 65 20 65 78 70 72 65 |ithout t|he expre|
|00005f90| 73 73 20 63 6f 6e 73 65 | 6e 74 20 6f 66 20 74 68 |ss conse|nt of th|
|00005fa0| 65 20 61 75 74 68 6f 72 | 73 2e 0a 58 20 2a 0a 58 |e author|s..X *.X|
|00005fb0| 20 2a 20 54 68 65 72 65 | 20 69 73 20 6e 6f 20 77 | * There| is no w|
|00005fc0| 61 72 72 61 6e 74 79 20 | 6f 72 20 6f 74 68 65 72 |arranty |or other|
|00005fd0| 20 67 75 61 72 61 6e 74 | 65 65 20 6f 66 20 66 69 | guarant|ee of fi|
|00005fe0| 74 6e 65 73 73 20 6f 66 | 20 74 68 69 73 20 73 6f |tness of| this so|
|00005ff0| 66 74 77 61 72 65 0a 58 | 20 2a 20 66 6f 72 20 61 |ftware.X| * for a|
|00006000| 6e 79 20 70 75 72 70 6f | 73 65 2e 20 20 49 74 20 |ny purpo|se. It |
|00006010| 69 73 20 70 72 6f 76 69 | 64 65 64 20 73 6f 6c 65 |is provi|ded sole|
|00006020| 6c 79 20 22 61 73 20 69 | 73 22 2e 0a 58 20 2a 0a |ly "as i|s"..X *.|
|00006030| 58 20 2a 20 24 49 64 3a | 20 62 6f 75 6e 64 73 2e |X * $Id:| bounds.|
|00006040| 68 2c 76 20 34 2e 30 20 | 39 31 2f 30 37 2f 31 37 |h,v 4.0 |91/07/17|
|00006050| 20 31 34 3a 33 36 3a 32 | 36 20 6b 6f 6c 62 20 45 | 14:36:2|6 kolb E|
|00006060| 78 70 20 4c 6f 63 6b 65 | 72 3a 20 6b 6f 6c 62 20 |xp Locke|r: kolb |
|00006070| 24 0a 58 20 2a 0a 58 20 | 2a 20 24 4c 6f 67 3a 09 |$.X *.X |* $Log:.|
|00006080| 62 6f 75 6e 64 73 2e 68 | 2c 76 20 24 0a 58 20 2a |bounds.h|,v $.X *|
|00006090| 20 52 65 76 69 73 69 6f | 6e 20 34 2e 30 20 20 39 | Revisio|n 4.0 9|
|000060a0| 31 2f 30 37 2f 31 37 20 | 20 31 34 3a 33 36 3a 32 |1/07/17 | 14:36:2|
|000060b0| 36 20 20 6b 6f 6c 62 0a | 58 20 2a 20 49 6e 69 74 |6 kolb.|X * Init|
|000060c0| 69 61 6c 20 76 65 72 73 | 69 6f 6e 2e 0a 58 20 2a |ial vers|ion..X *|
|000060d0| 20 0a 58 20 2a 2f 0a 58 | 23 69 66 6e 64 65 66 20 | .X */.X|#ifndef |
|000060e0| 42 4f 55 4e 44 53 5f 48 | 0a 58 23 64 65 66 69 6e |BOUNDS_H|.X#defin|
|000060f0| 65 20 42 4f 55 4e 44 53 | 5f 48 0a 58 0a 58 2f 2a |e BOUNDS|_H.X.X/*|
|00006100| 0a 58 20 2a 20 55 73 65 | 64 20 74 6f 20 6d 61 6b |.X * Use|d to mak|
|00006110| 65 20 69 6e 64 69 63 65 | 73 20 69 6e 74 6f 20 62 |e indice|s into b|
|00006120| 6f 75 6e 64 69 6e 67 20 | 62 6f 78 20 61 72 72 61 |ounding |box arra|
|00006130| 79 73 20 6d 6f 72 65 20 | 72 65 61 64 61 62 6c 65 |ys more |readable|
|00006140| 2e 0a 58 20 2a 2f 0a 58 | 23 64 65 66 69 6e 65 20 |..X */.X|#define |
|00006150| 58 09 30 0a 58 23 64 65 | 66 69 6e 65 20 59 09 31 |X.0.X#de|fine Y.1|
|00006160| 0a 58 23 64 65 66 69 6e | 65 20 5a 09 32 0a 58 23 |.X#defin|e Z.2.X#|
|00006170| 64 65 66 69 6e 65 20 4c | 4f 57 09 30 0a 58 23 64 |define L|OW.0.X#d|
|00006180| 65 66 69 6e 65 20 48 49 | 47 48 09 31 0a 58 0a 58 |efine HI|GH.1.X.X|
|00006190| 2f 2a 0a 58 20 2a 20 49 | 66 20 6d 69 6e 69 6d 75 |/*.X * I|f minimu|
|000061a0| 6d 20 58 20 69 73 20 67 | 72 65 61 74 65 72 20 74 |m X is g|reater t|
|000061b0| 68 61 6e 20 6d 61 78 69 | 6d 75 6d 2c 20 74 68 65 |han maxi|mum, the|
|000061c0| 6e 0a 58 20 2a 20 69 73 | 20 63 6f 6e 73 69 64 65 |n.X * is| conside|
|000061d0| 72 65 64 20 74 6f 20 62 | 65 20 75 6e 62 6f 75 6e |red to b|e unboun|
|000061e0| 64 65 64 2e 0a 58 20 2a | 2f 0a 58 0a 58 23 64 65 |ded..X *|/.X.X#de|
|000061f0| 66 69 6e 65 20 55 4e 42 | 4f 55 4e 44 45 44 28 6f |fine UNB|OUNDED(o|
|00006200| 29 09 28 28 6f 29 2d 3e | 62 6f 75 6e 64 73 5b 4c |).((o)->|bounds[L|
|00006210| 4f 57 5d 5b 58 5d 20 3e | 20 28 6f 29 2d 3e 62 6f |OW][X] >| (o)->bo|
|00006220| 75 6e 64 73 5b 48 49 47 | 48 5d 5b 58 5d 29 0a 58 |unds[HIG|H][X]).X|
|00006230| 0a 58 2f 2a 0a 58 20 2a | 20 49 73 20 74 68 65 20 |.X/*.X *| Is the |
|00006240| 70 6f 69 6e 74 20 70 20 | 6f 75 74 73 69 64 65 20 |point p |outside |
|00006250| 6f 66 20 74 68 65 20 62 | 6f 75 6e 64 69 6e 67 20 |of the b|ounding |
|00006260| 62 6f 78 20 22 62 22 3f | 0a 58 20 2a 2f 0a 58 23 |box "b"?|.X */.X#|
|00006270| 64 65 66 69 6e 65 20 4f | 75 74 4f 66 42 6f 75 6e |define O|utOfBoun|
|00006280| 64 73 28 70 2c 62 29 20 | 28 28 70 29 2d 3e 78 20 |ds(p,b) |((p)->x |
|00006290| 3c 20 62 5b 30 5d 5b 30 | 5d 20 7c 7c 20 28 70 29 |< b[0][0|] || (p)|
|000062a0| 2d 3e 78 20 3e 20 62 5b | 31 5d 5b 30 5d 20 7c 7c |->x > b[|1][0] |||
|000062b0| 5c 0a 58 09 09 09 20 20 | 28 70 29 2d 3e 79 20 3c |\.X... |(p)->y <|
|000062c0| 20 62 5b 30 5d 5b 31 5d | 20 7c 7c 20 28 70 29 2d | b[0][1]| || (p)-|
|000062d0| 3e 79 20 3e 20 62 5b 31 | 5d 5b 31 5d 20 7c 7c 5c |>y > b[1|][1] ||\|
|000062e0| 0a 58 09 09 09 20 20 28 | 70 29 2d 3e 7a 20 3c 20 |.X... (|p)->z < |
|000062f0| 62 5b 30 5d 5b 32 5d 20 | 7c 7c 20 28 70 29 2d 3e |b[0][2] ||| (p)->|
|00006300| 7a 20 3e 20 62 5b 31 5d | 5b 32 5d 29 0a 58 0a 58 |z > b[1]|[2]).X.X|
|00006310| 65 78 74 65 72 6e 20 76 | 6f 69 64 20 09 42 6f 75 |extern v|oid .Bou|
|00006320| 6e 64 73 43 6f 70 79 28 | 29 2c 20 42 6f 75 6e 64 |ndsCopy(|), Bound|
|00006330| 73 50 72 69 6e 74 28 29 | 2c 0a 58 09 09 42 6f 75 |sPrint()|,.X..Bou|
|00006340| 6e 64 73 49 6e 69 74 28 | 29 2c 20 42 6f 75 6e 64 |ndsInit(|), Bound|
|00006350| 73 45 6e 6c 61 72 67 65 | 28 29 2c 0a 58 09 09 42 |sEnlarge|(),.X..B|
|00006360| 6f 75 6e 64 73 54 72 61 | 6e 73 66 6f 72 6d 28 29 |oundsTra|nsform()|
|00006370| 3b 0a 58 0a 58 65 78 74 | 65 72 6e 20 69 6e 74 09 |;.X.Xext|ern int.|
|00006380| 42 6f 75 6e 64 73 49 6e | 74 65 72 73 65 63 74 28 |BoundsIn|tersect(|
|00006390| 29 3b 0a 58 23 65 6e 64 | 69 66 20 2f 2a 20 42 4f |);.X#end|if /* BO|
|000063a0| 55 4e 44 53 5f 48 20 2a | 2f 0a 45 4e 44 5f 4f 46 |UNDS_H *|/.END_OF|
|000063b0| 5f 46 49 4c 45 0a 69 66 | 20 74 65 73 74 20 31 33 |_FILE.if| test 13|
|000063c0| 34 38 20 2d 6e 65 20 60 | 77 63 20 2d 63 20 3c 27 |48 -ne `|wc -c <'|
|000063d0| 6c 69 62 72 61 79 2f 6c | 69 62 6f 62 6a 2f 62 6f |libray/l|ibobj/bo|
|000063e0| 75 6e 64 73 2e 68 27 60 | 3b 20 74 68 65 6e 0a 20 |unds.h'`|; then. |
|000063f0| 20 20 20 65 63 68 6f 20 | 73 68 61 72 3a 20 5c 22 | echo |shar: \"|
+--------+-------------------------+-------------------------+--------+--------+
Only 25.0 KB of data is shown above.