home *** CD-ROM | disk | FTP | other *** search
MacBinary | 1989-09-14 | 3.0 KB | [TEXT/KAHL] |
open in:
MacOS 8.1
|
Win98
|
DOS
view JSON data
|
view as text
This file was processed as: MacBinary
(archive/macBinary).
You can browse this item here: tracer.c.bin
Confidence | Program | Detection | Match Type | Support
|
---|
66%
| dexvert
| AMOS Picture Packer (image/amosPicturePacker)
| ext
| Supported |
1%
| dexvert
| Debian floppy split (archive/debianFloppySplit)
| ext
| Unsupported |
1%
| dexvert
| Sound Images sound sample (audio/soundImagesSoundSample)
| ext
| Unsupported |
1%
| dexvert
| DESI-III drawing (image/desiIIIDrawing)
| ext
| Unsupported |
1%
| dexvert
| MS-DOS PMODE extender executable (executable/msdosPMODEExtenderExecutable)
| ext
| Unsupported |
1%
| dexvert
| Alien Trilogytextures (other/alienTrilogyTextures)
| ext
| Unsupported |
1%
| dexvert
| APT cache data (other/aptCacheData)
| ext
| Unsupported |
1%
| dexvert
| CorelTRACE configuration (other/corelTRACEConfiguration)
| ext
| Unsupported |
1%
| dexvert
| Dreamcast Disc (other/dreamcastDisc)
| ext
| Unsupported |
1%
| dexvert
| EST flat binary (other/estFlatBinary)
| ext
| Unsupported |
1%
| dexvert
| Finale Enigma Binary Format (other/finaleEnigmaBinaryFormat)
| ext
| Unsupported |
1%
| dexvert
| Sega Genesis/Megadrive/32x ROM (other/genesisROM)
| ext
| Unsupported |
1%
| dexvert
| Myth: The Fallen Lords game archive (other/mythTheFallenLordsGameArchive)
| ext
| Unsupported |
1%
| dexvert
| Sound Images Sound Driver (other/soundImagesSoundDriver)
| ext
| Unsupported |
1%
| dexvert
| Symantec/Norton Config (other/symantecNortonConfig)
| ext
| Unsupported |
1%
| dexvert
| Vectrex ROM (other/vectrexROM)
| ext
| Unsupported |
1%
| dexvert
| BIS raP encoded format (other/bisraPEncoded)
| ext
| Unsupported |
1%
| dexvert
| Pascal Script binary (other/pascalScriptBinary)
| ext
| Unsupported |
1%
| dexvert
| 7th Level game data archive (other/seventhLevelGameDataArchive)
| ext
| Unsupported |
1%
| dexvert
| MacBinary (archive/macBinary)
| fallback
| Supported |
1%
| dexvert
| Text File (text/txt)
| fallback
| Supported |
100%
| file
| MacBinary, Sun Nov 13 04:57:33 1988, modified Fri Apr 28 17:28:55 1989, creator Think C, type ASCII, 2891 bytes "tracer.c"
| default (weak)
| |
99%
| file
| data
| default
| |
74%
| TrID
| Macintosh plain text (MacBinary)
| default
| |
25%
| TrID
| MacBinary 1
| default (weak)
| |
100%
| lsar
| MacBinary
| default
| |
100%
| gt2
| MAC Bilddatei
| default (weak)
|
|
id metadata |
---|
key | value |
---|
macFileType | [TEXT] |
macFileCreator | [KAHL] |
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 08 74 72 61 63 65 72 | 2e 63 00 00 00 00 00 00 |..tracer|.c......|
|00000010| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 54 45 58 54 4b 41 48 | 4c 00 00 00 00 00 00 00 |.TEXTKAH|L.......|
|00000050| 00 00 00 00 00 0b 4b 00 | 00 00 00 9f a3 0d 0d a0 |......K.|........|
|00000060| 7e 88 17 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |~.......|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000080| 23 64 65 66 69 6e 65 20 | 5f 4d 43 36 38 38 38 31 |#define |_MC68881|
|00000090| 5f 0d 0d 2f 2a 20 74 72 | 61 63 65 72 20 76 65 72 |_../* tr|acer ver|
|000000a0| 73 69 6f 6e 20 32 2e 31 | 20 2a 2f 0d 23 69 6e 63 |sion 2.1| */.#inc|
|000000b0| 6c 75 64 65 20 3c 73 74 | 64 69 6f 2e 68 3e 0d 23 |lude <st|dio.h>.#|
|000000c0| 69 6e 63 6c 75 64 65 20 | 3c 6d 61 74 68 2e 68 3e |include |<math.h>|
|000000d0| 0d 23 69 6e 63 6c 75 64 | 65 20 22 72 74 64 2e 68 |.#includ|e "rtd.h|
|000000e0| 22 0d 23 69 6e 63 6c 75 | 64 65 20 22 6d 61 63 72 |".#inclu|de "macr|
|000000f0| 6f 73 2e 68 22 0d 0d 0d | 46 49 4c 45 20 2a 20 66 |os.h"...|FILE * f|
|00000100| 70 3b 0d 64 6f 75 62 6c | 65 20 20 28 2a 73 75 7a |p;.doubl|e (*suz|
|00000110| 69 65 29 5b 33 30 30 5d | 2c 0d 20 20 20 20 20 20 |ie)[300]|,. |
|00000120| 20 20 73 61 6d 20 3d 20 | 31 2e 30 3b 0d 69 6e 74 | sam = |1.0;.int|
|00000130| 20 20 20 20 20 78 73 75 | 65 2c 0d 20 20 20 20 20 | xsu|e,. |
|00000140| 20 20 20 79 73 75 65 3b | 0d 73 74 72 75 63 74 20 | ysue;|.struct |
|00000150| 62 61 6c 6c 20 2a 62 6c | 5b 31 35 30 5d 3b 0d 69 |ball *bl|[150];.i|
|00000160| 6e 74 20 20 20 20 20 6c | 65 76 65 6c 2c 0d 20 20 |nt l|evel,. |
|00000170| 20 20 20 20 20 20 6e 6f | 62 3b 0d 73 74 72 75 63 | no|b;.struc|
|00000180| 74 20 73 70 68 65 72 65 | 20 20 20 6c 73 3b 0d 0d |t sphere| ls;..|
|00000190| 0d 23 69 66 64 65 66 20 | 54 48 49 4e 4b 5f 43 20 |.#ifdef |THINK_C |
|000001a0| 0d 5f 6d 61 69 6e 20 28 | 61 72 67 63 2c 20 61 72 |._main (|argc, ar|
|000001b0| 67 76 29 0d 23 65 6c 73 | 65 0d 6d 61 69 6e 20 28 |gv).#els|e.main (|
|000001c0| 61 72 67 63 2c 20 61 72 | 67 76 29 0d 23 65 6e 64 |argc, ar|gv).#end|
|000001d0| 69 66 0d 0d 69 6e 74 20 | 20 20 20 20 61 72 67 63 |if..int | argc|
|000001e0| 3b 0d 63 68 61 72 20 20 | 2a 2a 61 72 67 76 3b 0d |;.char |**argv;.|
|000001f0| 7b 0d 09 63 68 61 72 20 | 2a 20 6d 6c 61 6c 6c 6f |{..char |* mlallo|
|00000200| 63 28 29 3b 0d 20 20 20 | 20 46 49 4c 45 20 2a 20 |c();. | FILE * |
|00000210| 64 66 2c 20 2a 74 65 78 | 66 69 6c 65 3b 0d 20 20 |df, *tex|file;. |
|00000220| 20 20 73 74 61 74 69 63 | 20 64 6f 75 62 6c 65 20 | static| double |
|00000230| 20 20 78 63 6f 2c 0d 20 | 20 20 20 20 20 20 20 20 | xco,. | |
|00000240| 20 20 20 20 20 20 20 20 | 20 20 20 79 63 6f 3b 0d | | yco;.|
|00000250| 20 20 20 20 73 74 72 75 | 63 74 20 72 61 79 20 20 | stru|ct ray |
|00000260| 72 72 3b 0d 20 20 20 20 | 73 74 72 75 63 74 20 76 |rr;. |struct v|
|00000270| 65 63 74 6f 72 20 20 20 | 76 70 3b 0d 20 20 20 20 |ector |vp;. |
|00000280| 64 6f 75 62 6c 65 20 20 | 78 2c 0d 20 20 20 20 20 |double |x,. |
|00000290| 20 20 20 20 20 20 20 79 | 2c 0d 20 20 20 20 20 20 | y|,. |
|000002a0| 20 20 20 20 20 20 7a 3b | 0d 20 20 20 20 69 6e 74 | z;|. int|
|000002b0| 20 20 20 20 20 69 2c 0d | 20 20 20 20 20 20 20 20 | i,.| |
|000002c0| 20 20 20 20 69 6e 20 3d | 20 30 2c 0d 20 20 20 20 | in =| 0,. |
|000002d0| 20 20 20 20 20 20 20 20 | 6f 75 74 20 3d 20 30 2c | |out = 0,|
|000002e0| 0d 20 20 20 20 20 20 20 | 20 20 20 20 20 74 65 78 |. | tex|
|000002f0| 20 3d 20 30 3b 0d 20 20 | 20 20 69 6e 74 20 20 20 | = 0;. | int |
|00000300| 20 20 63 3b 0d 0d 0d 09 | 73 75 7a 69 65 20 3d 20 | c;....|suzie = |
|00000310| 28 64 6f 75 62 6c 65 20 | 28 2a 29 5b 5d 29 20 6d |(double |(*)[]) m|
|00000320| 6c 61 6c 6c 6f 63 28 73 | 69 7a 65 6f 66 28 64 6f |lalloc(s|izeof(do|
|00000330| 75 62 6c 65 29 20 2a 20 | 33 30 30 4c 20 2a 20 33 |uble) * |300L * 3|
|00000340| 30 30 4c 29 3b 0d 09 69 | 66 20 28 73 75 7a 69 65 |00L);..i|f (suzie|
|00000350| 20 3d 3d 20 4e 55 4c 4c | 29 20 62 6f 6f 62 6f 6f | == NULL|) booboo|
|00000360| 28 22 4f 75 74 20 6f 66 | 20 6d 65 6d 6f 72 79 2e |("Out of| memory.|
|00000370| 22 29 3b 0d 09 0d 2f 2a | 20 63 6f 6d 6d 61 6e 64 |");.../*| command|
|00000380| 20 69 6e 74 65 72 70 20 | 2a 2f 0d 09 0d 20 20 20 | interp |*/... |
|00000390| 20 66 6f 72 20 28 69 20 | 3d 20 31 3b 20 69 20 3c | for (i |= 1; i <|
|000003a0| 20 61 72 67 63 3b 20 69 | 2b 2b 29 20 7b 0d 09 69 | argc; i|++) {..i|
|000003b0| 66 20 28 61 72 67 76 5b | 69 5d 5b 30 5d 20 21 3d |f (argv[|i][0] !=|
|000003c0| 20 27 2d 27 29 0d 09 20 | 20 20 20 62 6f 6f 62 6f | '-').. | boobo|
|000003d0| 6f 20 28 22 4f 70 74 69 | 6f 6e 73 20 73 74 72 74 |o ("Opti|ons strt|
|000003e0| 20 77 69 74 68 20 61 20 | 27 2d 27 20 62 6f 7a 6f | with a |'-' bozo|
|000003f0| 22 29 3b 0d 09 63 20 3d | 20 61 72 67 76 5b 69 5d |");..c =| argv[i]|
|00000400| 5b 31 5d 3b 0d 0d 09 73 | 77 69 74 63 68 20 28 63 |[1];...s|witch (c|
|00000410| 29 20 7b 0d 09 20 20 20 | 20 63 61 73 65 20 28 27 |) {.. | case ('|
|00000420| 69 27 29 3a 20 0d 09 09 | 69 66 20 28 69 6e 29 0d |i'): ...|if (in).|
|00000430| 09 09 20 20 20 20 62 6f | 6f 62 6f 6f 20 28 22 53 |.. bo|oboo ("S|
|00000440| 6f 72 72 79 2c 20 62 75 | 74 20 79 6f 75 20 6d 61 |orry, bu|t you ma|
|00000450| 79 20 6f 6e 6c 79 20 68 | 61 76 65 20 6f 6e 65 20 |y only h|ave one |
|00000460| 69 6e 70 75 74 20 66 69 | 6c 65 22 29 3b 0d 09 09 |input fi|le");...|
|00000470| 69 6e 20 3d 20 31 3b 0d | 09 09 69 66 20 28 28 69 |in = 1;.|..if ((i|
|00000480| 20 2b 20 31 29 20 3e 3d | 20 61 72 67 63 20 7c 7c | + 1) >=| argc |||
|00000490| 20 61 72 67 76 5b 69 20 | 2b 20 31 5d 5b 30 5d 20 | argv[i |+ 1][0] |
|000004a0| 3d 3d 20 27 2d 27 29 2f | 2a 20 6e 6f 20 61 72 67 |== '-')/|* no arg|
|000004b0| 20 2a 2f 0d 09 09 20 20 | 20 20 64 66 20 3d 20 73 | */... | df = s|
|000004c0| 74 64 69 6e 3b 0d 09 09 | 65 6c 73 65 0d 09 09 20 |tdin;...|else... |
|000004d0| 20 20 20 69 66 20 28 28 | 64 66 20 3d 20 66 6f 70 | if ((|df = fop|
|000004e0| 65 6e 20 28 61 72 67 76 | 5b 2b 2b 69 5d 2c 20 22 |en (argv|[++i], "|
|000004f0| 72 22 29 29 20 3d 3d 20 | 4e 55 4c 4c 29 0d 09 09 |r")) == |NULL)...|
|00000500| 09 62 6f 6f 62 6f 6f 20 | 28 22 69 6e 70 75 74 20 |.booboo |("input |
|00000510| 66 69 6c 65 20 6e 6f 74 | 20 66 6f 75 6e 64 22 29 |file not| found")|
|00000520| 3b 0d 09 09 62 72 65 61 | 6b 3b 0d 09 20 20 20 20 |;...brea|k;.. |
|00000530| 63 61 73 65 20 28 27 6f | 27 29 3a 20 0d 09 09 69 |case ('o|'): ...i|
|00000540| 66 20 28 6f 75 74 29 0d | 09 09 20 20 20 20 62 6f |f (out).|.. bo|
|00000550| 6f 62 6f 6f 20 28 22 53 | 6f 72 72 79 2c 20 62 75 |oboo ("S|orry, bu|
|00000560| 74 20 79 6f 75 20 6d 61 | 79 20 68 61 76 65 20 6f |t you ma|y have o|
|00000570| 6e 6c 79 20 6f 6e 65 20 | 6f 75 74 70 75 74 20 66 |nly one |output f|
|00000580| 69 6c 65 22 29 3b 0d 09 | 09 6f 75 74 20 3d 20 31 |ile");..|.out = 1|
|00000590| 3b 0d 09 09 69 66 20 28 | 28 69 20 2b 20 31 29 20 |;...if (|(i + 1) |
|000005a0| 3e 3d 20 61 72 67 63 20 | 7c 7c 20 61 72 67 76 5b |>= argc ||| argv[|
|000005b0| 69 20 2b 20 31 5d 5b 30 | 5d 20 3d 3d 20 27 2d 27 |i + 1][0|] == '-'|
|000005c0| 29 2f 2a 20 6e 6f 20 61 | 72 67 20 2a 2f 0d 09 09 |)/* no a|rg */...|
|000005d0| 20 20 20 20 66 70 20 3d | 20 73 74 64 6f 75 74 3b | fp =| stdout;|
|000005e0| 0d 09 09 65 6c 73 65 0d | 09 09 20 20 20 20 66 70 |...else.|.. fp|
|000005f0| 20 3d 20 66 6f 70 65 6e | 20 28 61 72 67 76 5b 2b | = fopen| (argv[+|
|00000600| 2b 69 5d 2c 20 22 77 22 | 29 3b 0d 09 09 62 72 65 |+i], "w"|);...bre|
|00000610| 61 6b 3b 0d 09 20 20 20 | 20 63 61 73 65 20 28 27 |ak;.. | case ('|
|00000620| 73 27 29 3a 20 0d 09 09 | 69 66 20 28 74 65 78 29 |s'): ...|if (tex)|
|00000630| 0d 09 09 20 20 20 20 62 | 6f 6f 62 6f 6f 20 28 22 |... b|ooboo ("|
|00000640| 53 6f 72 72 79 2c 20 62 | 75 74 20 79 6f 75 20 6d |Sorry, b|ut you m|
|00000650| 61 79 20 68 61 76 65 20 | 6f 6e 6c 79 20 6f 6e 65 |ay have |only one|
|00000660| 20 69 6d 61 67 65 20 66 | 69 6c 65 22 29 3b 0d 09 | image f|ile");..|
|00000670| 09 69 66 20 28 28 69 20 | 2b 20 31 29 20 3e 3d 20 |.if ((i |+ 1) >= |
|00000680| 61 72 67 63 20 7c 7c 20 | 61 72 67 76 5b 69 20 2b |argc || |argv[i +|
|00000690| 20 31 5d 5b 30 5d 20 3d | 3d 20 27 2d 27 29 2f 2a | 1][0] =|= '-')/*|
|000006a0| 20 6e 6f 20 61 72 67 20 | 2a 2f 0d 09 09 20 20 20 | no arg |*/... |
|000006b0| 20 62 6f 6f 62 6f 6f 20 | 28 22 2d 73 20 72 65 71 | booboo |("-s req|
|000006c0| 75 69 72 65 73 20 61 6e | 20 61 72 67 75 6d 65 6e |uires an| argumen|
|000006d0| 74 22 29 3b 0d 09 09 74 | 65 78 20 3d 20 31 3b 0d |t");...t|ex = 1;.|
|000006e0| 09 09 69 66 20 28 28 74 | 65 78 66 69 6c 65 20 3d |..if ((t|exfile =|
|000006f0| 20 66 6f 70 65 6e 20 28 | 61 72 67 76 5b 2b 2b 69 | fopen (|argv[++i|
|00000700| 5d 2c 20 22 72 22 29 29 | 20 3d 3d 20 4e 55 4c 4c |], "r"))| == NULL|
|00000710| 29 0d 09 09 20 20 20 20 | 62 6f 6f 62 6f 6f 20 28 |)... |booboo (|
|00000720| 22 69 6d 61 67 65 20 66 | 69 6c 65 20 6e 6f 74 20 |"image f|ile not |
|00000730| 66 6f 75 6e 64 22 29 3b | 0d 09 09 62 72 65 61 6b |found");|...break|
|00000740| 3b 0d 09 09 62 6f 6f 62 | 6f 6f 20 28 22 74 68 69 |;...boob|oo ("thi|
|00000750| 73 20 6c 69 6e 65 20 73 | 68 6f 75 6c 64 6e 27 74 |s line s|houldn't|
|00000760| 20 64 6f 20 61 6e 79 74 | 68 69 6e 67 22 29 3b 0d | do anyt|hing");.|
|00000770| 09 20 20 20 20 63 61 73 | 65 20 28 27 53 27 29 3a |. cas|e ('S'):|
|00000780| 20 0d 09 09 69 66 20 28 | 61 72 67 76 5b 69 5d 5b | ...if (|argv[i][|
|00000790| 32 5d 20 3c 20 27 30 27 | 20 7c 7c 20 61 72 67 76 |2] < '0'| || argv|
|000007a0| 5b 69 5d 5b 32 5d 20 3e | 20 27 39 27 29 7b 0d 70 |[i][2] >| '9'){.p|
|000007b0| 72 69 6e 74 66 28 22 25 | 63 5c 6e 22 2c 61 72 67 |rintf("%|c\n",arg|
|000007c0| 76 5b 69 5d 5b 32 5d 29 | 3b 0d 09 09 20 20 20 20 |v[i][2])|;... |
|000007d0| 62 6f 6f 62 6f 6f 20 28 | 22 2d 53 20 6e 65 65 64 |booboo (|"-S need|
|000007e0| 73 20 61 20 6e 75 6d 65 | 72 69 63 61 6c 20 61 72 |s a nume|rical ar|
|000007f0| 67 75 6d 65 6e 74 22 29 | 3b 7d 0d 09 09 73 61 6d |gument")|;}...sam|
|00000800| 20 3d 20 61 74 6f 66 20 | 28 26 28 61 72 67 76 5b | = atof |(&(argv[|
|00000810| 69 5d 5b 32 5d 29 29 3b | 0d 09 09 62 72 65 61 6b |i][2]));|...break|
|00000820| 3b 0d 09 20 20 20 20 64 | 65 66 61 75 6c 74 3a 20 |;.. d|efault: |
|00000830| 0d 09 09 62 6f 6f 62 6f | 6f 20 28 22 55 6e 72 65 |...boobo|o ("Unre|
|00000840| 63 6f 67 6e 69 7a 65 64 | 20 6f 70 74 69 6f 6e 2e |cognized| option.|
|00000850| 20 42 65 74 74 65 72 20 | 74 72 79 20 61 67 61 69 | Better |try agai|
|00000860| 6e 22 29 3b 0d 09 7d 0d | 20 20 20 20 7d 0d 0d 0d |n");..}.| }...|
|00000870| 20 20 20 20 69 66 20 28 | 21 69 6e 29 0d 09 69 66 | if (|!in)..if|
|00000880| 20 28 28 64 66 20 3d 20 | 66 6f 70 65 6e 20 28 22 | ((df = |fopen ("|
|00000890| 62 64 61 74 61 2e 69 22 | 2c 20 22 72 22 29 29 20 |bdata.i"|, "r")) |
|000008a0| 3d 3d 20 4e 55 4c 4c 29 | 0d 09 20 20 20 20 62 6f |== NULL)|.. bo|
|000008b0| 6f 62 6f 6f 20 28 22 62 | 64 61 74 61 2e 69 20 6e |oboo ("b|data.i n|
|000008c0| 6f 74 20 66 6f 75 6e 64 | 22 29 3b 0d 20 20 20 20 |ot found|");. |
|000008d0| 69 66 20 28 21 6f 75 74 | 29 0d 09 66 70 20 3d 20 |if (!out|)..fp = |
|000008e0| 66 6f 70 65 6e 20 28 22 | 64 61 74 61 2e 64 69 73 |fopen ("|data.dis|
|000008f0| 22 2c 20 22 77 22 29 3b | 0d 20 20 20 20 69 66 20 |", "w");|. if |
|00000900| 28 21 74 65 78 29 0d 09 | 69 66 20 28 28 74 65 78 |(!tex)..|if ((tex|
|00000910| 66 69 6c 65 20 3d 20 66 | 6f 70 65 6e 20 28 22 70 |file = f|open ("p|
|00000920| 61 74 2e 64 65 66 22 2c | 20 22 72 22 29 29 20 3d |at.def",| "r")) =|
|00000930| 3d 20 4e 55 4c 4c 29 0d | 09 20 20 20 20 62 6f 6f |= NULL).|. boo|
|00000940| 62 6f 6f 20 28 22 70 61 | 74 2e 64 65 66 20 6e 6f |boo ("pa|t.def no|
|00000950| 74 20 66 6f 75 6e 64 22 | 29 3b 0d 0d 0d 0d 20 20 |t found"|);.... |
|00000960| 20 20 6e 6f 62 20 3d 20 | 67 5f 62 61 6c 20 28 64 | nob = |g_bal (d|
|00000970| 66 29 3b 0d 20 20 20 20 | 67 5f 62 6f 64 20 28 74 |f);. |g_bod (t|
|00000980| 65 78 66 69 6c 65 29 3b | 0d 0d 0d 0d 20 20 20 20 |exfile);|.... |
|00000990| 4d 56 20 28 39 35 2e 30 | 2c 20 31 34 30 2e 30 2c |MV (95.0|, 140.0,|
|000009a0| 20 2d 32 30 30 2e 30 2c | 20 76 70 29 3b 0d 20 20 | -200.0,| vp);. |
|000009b0| 20 20 4d 56 20 28 30 2e | 30 2c 20 39 30 30 2e 30 | MV (0.|0, 900.0|
|000009c0| 2c 20 30 2e 30 2c 20 6c | 73 2e 63 65 6e 74 29 3b |, 0.0, l|s.cent);|
|000009d0| 0d 20 20 20 20 6c 73 2e | 72 61 64 20 3d 20 34 30 |. ls.|rad = 40|
|000009e0| 3b 0d 20 20 20 20 66 70 | 72 69 6e 74 66 20 28 66 |;. fp|rintf (f|
|000009f0| 70 2c 20 22 25 64 20 25 | 64 5c 6e 22 2c 20 28 69 |p, "%d %|d\n", (i|
|00000a00| 6e 74 29 20 28 28 58 4d | 41 58 20 2d 20 58 4d 49 |nt) ((XM|AX - XMI|
|00000a10| 4e 29 20 2a 20 53 43 41 | 4c 45 20 2b 30 2e 39 39 |N) * SCA|LE +0.99|
|00000a20| 39 39 39 39 39 29 2c 0d | 20 20 20 20 09 09 09 09 |99999),.| ....|
|00000a30| 09 09 09 20 28 69 6e 74 | 29 20 28 28 59 4d 41 58 |... (int|) ((YMAX|
|00000a40| 20 2d 20 59 4d 49 4e 29 | 20 2a 20 53 43 41 4c 45 | - YMIN)| * SCALE|
|00000a50| 20 2b 30 2e 39 39 39 39 | 39 39 39 29 29 3b 0d 0d | +0.9999|999));..|
|00000a60| 20 20 20 20 66 6f 72 20 | 28 79 63 6f 20 3d 20 59 | for |(yco = Y|
|00000a70| 4d 41 58 20 2a 20 53 43 | 41 4c 45 3b 20 79 63 6f |MAX * SC|ALE; yco|
|00000a80| 20 3e 20 59 4d 49 4e 20 | 2a 20 53 43 41 4c 45 3b | > YMIN |* SCALE;|
|00000a90| 20 79 63 6f 2d 2d 29 20 | 7b 0d 20 20 20 20 09 70 | yco--) |{. .p|
|00000aa0| 72 69 6e 74 66 28 22 53 | 63 61 6e 2d 6c 69 6e 65 |rintf("S|can-line|
|00000ab0| 20 25 6c 66 5c 6e 22 2c | 79 63 6f 29 3b 0d 09 66 | %lf\n",|yco);..f|
|00000ac0| 6f 72 20 28 78 63 6f 20 | 3d 20 58 4d 49 4e 20 2a |or (xco |= XMIN *|
|00000ad0| 20 53 43 41 4c 45 3b 20 | 78 63 6f 20 3c 20 58 4d | SCALE; |xco < XM|
|00000ae0| 41 58 20 2a 20 53 43 41 | 4c 45 3b 20 78 63 6f 2b |AX * SCA|LE; xco+|
|00000af0| 2b 29 20 7b 0d 09 09 43 | 61 6c 6c 53 74 64 45 76 |+) {...C|allStdEv|
|00000b00| 65 6e 74 28 29 3b 0d 09 | 20 20 20 20 4d 56 20 28 |ent();..| MV (|
|00000b10| 78 63 6f 20 2f 20 53 43 | 41 4c 45 2c 20 79 63 6f |xco / SC|ALE, yco|
|00000b20| 20 2f 20 53 43 41 4c 45 | 2c 20 30 2e 30 2c 20 72 | / SCALE|, 0.0, r|
|00000b30| 72 2e 6f 72 67 29 3b 0d | 09 20 20 20 20 53 56 20 |r.org);.|. SV |
|00000b40| 28 72 72 2e 64 69 72 2c | 20 72 72 2e 6f 72 67 2c |(rr.dir,| rr.org,|
|00000b50| 20 76 70 29 3b 0d 09 20 | 20 20 20 66 70 72 69 6e | vp);.. | fprin|
|00000b60| 74 66 20 28 66 70 2c 20 | 22 25 63 22 2c 20 73 68 |tf (fp, |"%c", sh|
|00000b70| 61 64 65 20 28 26 72 72 | 29 29 3b 0d 09 7d 0d 09 |ade (&rr|));..}..|
|00000b80| 7d 0d 7d 0d 0d 62 6f 6f | 62 6f 6f 20 28 73 74 72 |}.}..boo|boo (str|
|00000b90| 29 0d 63 68 61 72 20 20 | 20 2a 73 74 72 3b 20 7b |).char | *str; {|
|00000ba0| 0d 20 20 20 20 70 72 69 | 6e 74 66 20 28 22 25 73 |. pri|ntf ("%s|
|00000bb0| 5c 6e 22 2c 20 73 74 72 | 29 3b 0d 20 20 20 20 65 |\n", str|);. e|
|00000bc0| 78 69 74 20 28 2d 31 29 | 3b 0d 7d 00 00 00 00 00 |xit (-1)|;.}.....|
|00000bd0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000be0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000bf0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
+--------+-------------------------+-------------------------+--------+--------+