home *** CD-ROM | disk | FTP | other *** search
/ Garbo / Garbo.cdr / mac / source / luschsrc.sit / test.c.bin < prev    next >
MacBinary  |  1990-05-23  |  6.4 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: test.c.bin

ConfidenceProgramDetectionMatch TypeSupport
66% dexvert AMOS Picture Packer (image/amosPicturePacker) ext Supported
10% dexvert Jesper Olsen Module (music/jesperOlsen) magic 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 Binary Text (image/binaryText) fallback Supported
1% dexvert Text File (text/txt) fallback Supported
100% file MacBinary, Wed Jul 19 07:35:25 1989, modified Fri Jan 26 14:44:51 1990, creator Think C, type ASCII, 6274 bytes "test.c" default (weak)
99% file data default
49% TrID Macintosh plain text (MacBinary) default
33% TrID TTComp archive compressed (bin-4K) default (weak)
17% TrID MacBinary 1 default (weak)
100% lsar MacBinary default
100% gt2 MAC Bilddatei default (weak)


id metadata
keyvalue
macFileType[TEXT]
macFileCreator[KAHL]



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 06 74 65 73 74 2e 63 | 00 00 00 00 00 00 00 00 |..test.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 18 82 00 | 00 00 00 a0 ea 17 fd a1 |........|........|
|00000060| e6 59 33 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |.Y3.....|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000080| 2f 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |/*******|********|
|00000090| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|000000a0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|000000b0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|000000c0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|000000d0| 2a 0d 20 2a 09 74 65 73 | 74 2e 63 0d 20 2a 0d 20 |*. *.tes|t.c. *. |
|000000e0| 2a 09 43 6f 6c 6f 72 20 | 54 65 73 74 20 4d 61 6e |*.Color |Test Man|
|000000f0| 61 67 65 6d 65 6e 74 20 | 50 61 63 6b 61 67 65 0d |agement |Package.|
|00000100| 20 2a 0d 20 2a 09 57 72 | 69 74 74 65 6e 20 62 79 | *. *.Wr|itten by|
|00000110| 20 50 61 63 6f 20 58 61 | 6e 64 65 72 20 4e 61 74 | Paco Xa|nder Nat|
|00000120| 68 61 6e 0d 20 2a 09 a9 | 31 39 39 30 2c 20 4d 6f |han. *..|1990, Mo|
|00000130| 74 6f 72 6f 6c 61 20 49 | 6e 63 2e 20 20 50 75 62 |torola I|nc. Pub|
|00000140| 6c 69 63 20 64 6f 6d 61 | 69 6e 20 73 6f 75 72 63 |lic doma|in sourc|
|00000150| 65 20 63 6f 64 65 2e 0d | 20 2a 2a 2a 2a 2a 2a 2a |e code..| *******|
|00000160| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00000170| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00000180| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00000190| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|000001a0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2f 0d 0d 23 69 6e 63 |********|*/..#inc|
|000001b0| 6c 75 64 65 20 22 61 70 | 70 6c 69 63 2e 68 22 0d |lude "ap|plic.h".|
|000001c0| 23 69 6e 63 6c 75 64 65 | 20 22 77 69 6e 64 6f 77 |#include| "window|
|000001d0| 2e 68 22 0d 23 69 6e 63 | 6c 75 64 65 20 22 64 69 |.h".#inc|lude "di|
|000001e0| 61 6c 6f 67 2e 68 22 0d | 23 69 6e 63 6c 75 64 65 |alog.h".|#include|
|000001f0| 20 22 73 74 72 69 6e 67 | 2e 68 22 0d 0d 23 69 6e | "string|.h"..#in|
|00000200| 63 6c 75 64 65 20 22 74 | 65 73 74 2e 68 22 0d 23 |clude "t|est.h".#|
|00000210| 69 6e 63 6c 75 64 65 20 | 22 67 6e 6f 73 69 73 2e |include |"gnosis.|
|00000220| 68 22 0d 23 69 6e 63 6c | 75 64 65 20 22 61 6e 61 |h".#incl|ude "ana|
|00000230| 6c 79 73 69 73 2e 68 22 | 0d 0d 0d 23 64 65 66 69 |lysis.h"|...#defi|
|00000240| 6e 65 20 4d 41 58 42 41 | 4e 47 09 09 34 30 0d 0d |ne MAXBA|NG..40..|
|00000250| 0d 2f 2a 20 45 78 74 65 | 72 6e 61 6c 20 44 61 74 |./* Exte|rnal Dat|
|00000260| 61 20 53 74 72 75 63 74 | 75 72 65 73 0d 20 2a 2f |a Struct|ures. */|
|00000270| 0d 42 6f 6f 6c 65 61 6e | 0d 09 74 65 73 74 55 73 |.Boolean|..testUs|
|00000280| 65 72 20 3d 20 54 52 55 | 45 2c 0d 09 74 65 73 74 |er = TRU|E,..test|
|00000290| 42 43 72 61 69 67 20 3d | 20 46 41 4c 53 45 2c 0d |BCraig =| FALSE,.|
|000002a0| 09 74 65 73 74 4a 44 61 | 76 69 73 20 3d 20 46 41 |.testJDa|vis = FA|
|000002b0| 4c 53 45 3b 0d 09 0d 50 | 61 6c 65 74 74 65 48 61 |LSE;...P|aletteHa|
|000002c0| 6e 64 6c 65 0d 09 74 65 | 73 74 50 61 6c 20 3d 20 |ndle..te|stPal = |
|000002d0| 4e 55 4c 4c 3b 0d 0d 54 | 65 73 74 50 68 61 73 65 |NULL;..T|estPhase|
|000002e0| 73 0d 09 74 65 73 74 50 | 68 61 73 65 20 3d 20 74 |s..testP|hase = t|
|000002f0| 73 74 50 68 61 73 65 31 | 3b 0d 0d 54 65 73 74 50 |stPhase1|;..TestP|
|00000300| 61 64 54 79 70 65 0d 09 | 74 65 73 74 50 61 64 5b |adType..|testPad[|
|00000310| 4d 41 58 50 41 44 5d 3b | 0d 0d 0d 2f 2a 20 4c 6f |MAXPAD];|.../* Lo|
|00000320| 63 61 6c 20 44 61 74 61 | 20 53 74 72 75 63 74 75 |cal Data| Structu|
|00000330| 72 65 73 0d 20 2a 2f 0d | 73 74 61 74 69 63 20 73 |res. */.|static s|
|00000340| 68 6f 72 74 0d 09 74 65 | 73 74 4f 72 64 65 72 20 |hort..te|stOrder |
|00000350| 3d 20 30 3b 0d 0d 0d 2f | 2a 20 4c 6f 63 61 6c 20 |= 0;.../|* Local |
|00000360| 46 75 6e 63 74 69 6f 6e | 20 50 72 6f 74 6f 74 79 |Function| Prototy|
|00000370| 70 65 73 0d 20 2a 2f 0d | 23 69 66 64 65 66 20 50 |pes. */.|#ifdef P|
|00000380| 52 4f 54 4f 54 59 50 45 | 53 0d 23 65 6e 64 69 66 |ROTOTYPE|S.#endif|
|00000390| 0d 0d 0d 2f 2a 20 53 65 | 74 75 70 20 74 68 65 20 |.../* Se|tup the |
|000003a0| 63 6f 6c 6f 72 20 74 65 | 73 74 20 77 69 6e 64 6f |color te|st windo|
|000003b0| 77 0d 20 2a 2f 0d 76 6f | 69 64 0d 54 65 73 74 53 |w. */.vo|id.TestS|
|000003c0| 65 74 75 70 20 28 29 0d | 7b 0d 09 47 72 61 66 50 |etup ().|{..GrafP|
|000003d0| 74 72 20 73 61 76 65 50 | 6f 72 74 3b 0d 0d 09 47 |tr saveP|ort;...G|
|000003e0| 65 74 50 6f 72 74 28 26 | 73 61 76 65 50 6f 72 74 |etPort(&|savePort|
|000003f0| 29 3b 0d 09 53 65 74 50 | 6f 72 74 28 77 50 74 72 |);..SetP|ort(wPtr|
|00000400| 54 65 73 74 29 3b 0d 0d | 09 2f 2a 20 53 65 74 75 |Test);..|./* Setu|
|00000410| 70 20 66 6f 72 20 63 6f | 6c 6f 72 20 64 72 61 77 |p for co|lor draw|
|00000420| 69 6e 67 20 75 73 69 6e | 67 20 61 20 70 61 6c 65 |ing usin|g a pale|
|00000430| 74 74 65 0d 09 20 2a 2f | 0d 09 69 66 20 28 6c 61 |tte.. */|..if (la|
|00000440| 4d 61 63 68 69 6e 65 2e | 68 61 73 43 6f 6c 6f 72 |Machine.|hasColor|
|00000450| 20 26 26 20 28 74 65 73 | 74 50 61 6c 20 3d 20 47 | && (tes|tPal = G|
|00000460| 65 74 4e 65 77 50 61 6c | 65 74 74 65 28 52 53 52 |etNewPal|ette(RSR|
|00000470| 43 42 41 53 45 29 29 20 | 26 26 20 77 50 74 72 54 |CBASE)) |&& wPtrT|
|00000480| 65 73 74 29 0d 09 09 53 | 65 74 50 61 6c 65 74 74 |est)...S|etPalett|
|00000490| 65 28 77 50 74 72 54 65 | 73 74 2c 20 74 65 73 74 |e(wPtrTe|st, test|
|000004a0| 50 61 6c 2c 20 54 52 55 | 45 29 3b 0d 09 0d 09 54 |Pal, TRU|E);....T|
|000004b0| 65 78 74 46 6f 6e 74 28 | 73 79 73 74 65 6d 46 6f |extFont(|systemFo|
|000004c0| 6e 74 29 3b 0d 09 74 65 | 73 74 4a 44 61 76 69 73 |nt);..te|stJDavis|
|000004d0| 20 3d 20 21 6c 61 4d 61 | 63 68 69 6e 65 2e 68 61 | = !laMa|chine.ha|
|000004e0| 73 43 6f 6c 6f 72 3b 0d | 09 54 65 73 74 52 65 73 |sColor;.|.TestRes|
|000004f0| 65 74 28 29 3b 0d 0d 09 | 54 65 73 74 54 69 74 6c |et();...|TestTitl|
|00000500| 65 49 6e 66 6f 28 29 3b | 0d 0d 09 2f 2a 20 50 72 |eInfo();|.../* Pr|
|00000510| 65 70 61 72 65 20 74 6f | 20 64 72 61 77 2c 20 70 |epare to| draw, p|
|00000520| 61 72 64 6e 65 72 21 0d | 09 20 2a 2f 0d 09 49 6e |ardner!.|. */..In|
|00000530| 76 61 6c 52 65 63 74 28 | 26 77 50 74 72 54 65 73 |valRect(|&wPtrTes|
|00000540| 74 2d 3e 70 6f 72 74 52 | 65 63 74 29 3b 0d 09 57 |t->portR|ect);..W|
|00000550| 69 6e 64 53 77 69 74 63 | 68 28 77 50 74 72 54 65 |indSwitc|h(wPtrTe|
|00000560| 73 74 2c 20 54 52 55 45 | 29 3b 0d 0d 09 53 65 74 |st, TRUE|);...Set|
|00000570| 50 6f 72 74 28 73 61 76 | 65 50 6f 72 74 29 3b 0d |Port(sav|ePort);.|
|00000580| 7d 0d 0d 0d 2f 2a 20 52 | 65 73 65 74 20 74 68 65 |}.../* R|eset the|
|00000590| 20 63 6f 6c 6f 72 20 74 | 65 73 74 20 77 69 6e 64 | color t|est wind|
|000005a0| 6f 77 20 66 6f 72 20 61 | 6e 6f 74 68 65 72 20 74 |ow for a|nother t|
|000005b0| 65 73 74 0d 20 2a 2f 0d | 76 6f 69 64 0d 54 65 73 |est. */.|void.Tes|
|000005c0| 74 52 65 73 65 74 20 28 | 29 0d 7b 0d 09 72 65 67 |tReset (|).{..reg|
|000005d0| 69 73 74 65 72 20 73 68 | 6f 72 74 20 69 2c 20 77 |ister sh|ort i, w|
|000005e0| 69 64 74 68 2c 20 68 65 | 69 67 68 74 2c 20 74 65 |idth, he|ight, te|
|000005f0| 6d 70 43 6f 6c 6f 72 2c | 20 74 65 6d 70 49 6e 64 |mpColor,| tempInd|
|00000600| 65 78 3b 0d 09 47 72 61 | 66 50 74 72 20 73 61 76 |ex;..Gra|fPtr sav|
|00000610| 65 50 6f 72 74 3b 0d 0d | 09 47 65 74 50 6f 72 74 |ePort;..|.GetPort|
|00000620| 28 26 73 61 76 65 50 6f | 72 74 29 3b 0d 09 53 65 |(&savePo|rt);..Se|
|00000630| 74 50 6f 72 74 28 77 50 | 74 72 54 65 73 74 29 3b |tPort(wP|trTest);|
|00000640| 0d 0d 09 2f 2a 20 53 65 | 74 75 70 20 74 68 65 20 |.../* Se|tup the |
|00000650| 63 6f 6c 6f 72 20 70 61 | 64 73 0d 09 20 2a 2f 0d |color pa|ds.. */.|
|00000660| 09 77 69 64 74 68 20 3d | 20 28 77 50 74 72 54 65 |.width =| (wPtrTe|
|00000670| 73 74 2d 3e 70 6f 72 74 | 52 65 63 74 2e 72 69 67 |st->port|Rect.rig|
|00000680| 68 74 20 2d 20 77 50 74 | 72 54 65 73 74 2d 3e 70 |ht - wPt|rTest->p|
|00000690| 6f 72 74 52 65 63 74 2e | 6c 65 66 74 29 20 2f 20 |ortRect.|left) / |
|000006a0| 28 4d 41 58 50 41 44 20 | 2f 20 32 29 3b 0d 09 68 |(MAXPAD |/ 2);..h|
|000006b0| 65 69 67 68 74 20 3d 20 | 28 77 50 74 72 54 65 73 |eight = |(wPtrTes|
|000006c0| 74 2d 3e 70 6f 72 74 52 | 65 63 74 2e 62 6f 74 74 |t->portR|ect.bott|
|000006d0| 6f 6d 20 2d 20 77 50 74 | 72 54 65 73 74 2d 3e 70 |om - wPt|rTest->p|
|000006e0| 6f 72 74 52 65 63 74 2e | 74 6f 70 29 20 2f 20 32 |ortRect.|top) / 2|
|000006f0| 3b 0d 09 0d 09 66 6f 72 | 20 28 69 20 3d 20 30 3b |;....for| (i = 0;|
|00000700| 20 69 20 3c 20 4d 41 58 | 50 41 44 3b 20 69 2b 2b | i < MAX|PAD; i++|
|00000710| 29 20 7b 0d 09 09 69 66 | 20 28 69 20 3c 20 28 4d |) {...if| (i < (M|
|00000720| 41 58 50 41 44 20 2f 20 | 32 29 29 20 7b 0d 09 09 |AXPAD / |2)) {...|
|00000730| 09 74 65 73 74 50 61 64 | 5b 69 5d 2e 62 6f 75 6e |.testPad|[i].boun|
|00000740| 64 73 2e 6c 65 66 74 20 | 3d 20 69 20 2a 20 77 69 |ds.left |= i * wi|
|00000750| 64 74 68 3b 0d 09 09 09 | 74 65 73 74 50 61 64 5b |dth;....|testPad[|
|00000760| 69 5d 2e 62 6f 75 6e 64 | 73 2e 74 6f 70 20 3d 20 |i].bound|s.top = |
|00000770| 30 3b 0d 09 09 7d 0d 09 | 09 65 6c 73 65 20 7b 0d |0;...}..|.else {.|
|00000780| 09 09 09 74 65 73 74 50 | 61 64 5b 69 5d 2e 62 6f |...testP|ad[i].bo|
|00000790| 75 6e 64 73 2e 6c 65 66 | 74 20 3d 20 28 69 20 2d |unds.lef|t = (i -|
|000007a0| 20 28 4d 41 58 50 41 44 | 20 2f 20 32 29 29 20 2a | (MAXPAD| / 2)) *|
|000007b0| 20 77 69 64 74 68 3b 0d | 09 09 09 74 65 73 74 50 | width;.|...testP|
|000007c0| 61 64 5b 69 5d 2e 62 6f | 75 6e 64 73 2e 74 6f 70 |ad[i].bo|unds.top|
|000007d0| 20 3d 20 68 65 69 67 68 | 74 3b 0d 09 09 7d 0d 0d | = heigh|t;...}..|
|000007e0| 09 09 74 65 73 74 50 61 | 64 5b 69 5d 2e 62 6f 75 |..testPa|d[i].bou|
|000007f0| 6e 64 73 2e 72 69 67 68 | 74 20 3d 20 74 65 73 74 |nds.righ|t = test|
|00000800| 50 61 64 5b 69 5d 2e 62 | 6f 75 6e 64 73 2e 6c 65 |Pad[i].b|ounds.le|
|00000810| 66 74 20 2b 20 77 69 64 | 74 68 3b 0d 09 09 74 65 |ft + wid|th;...te|
|00000820| 73 74 50 61 64 5b 69 5d | 2e 62 6f 75 6e 64 73 2e |stPad[i]|.bounds.|
|00000830| 62 6f 74 74 6f 6d 20 3d | 20 74 65 73 74 50 61 64 |bottom =| testPad|
|00000840| 5b 69 5d 2e 62 6f 75 6e | 64 73 2e 74 6f 70 20 2b |[i].boun|ds.top +|
|00000850| 20 68 65 69 67 68 74 3b | 0d 0d 09 09 2f 2a 20 53 | height;|..../* S|
|00000860| 69 6e 63 65 20 69 74 27 | 73 20 6e 6f 74 20 74 68 |ince it'|s not th|
|00000870| 65 20 64 65 66 61 75 6c | 74 0d 09 09 20 2a 2f 0d |e defaul|t... */.|
|00000880| 09 09 69 66 20 28 74 65 | 73 74 42 43 72 61 69 67 |..if (te|stBCraig|
|00000890| 29 0d 09 09 09 49 6e 73 | 65 74 52 65 63 74 28 26 |)....Ins|etRect(&|
|000008a0| 74 65 73 74 50 61 64 5b | 69 5d 2e 62 6f 75 6e 64 |testPad[|i].bound|
|000008b0| 73 2c 20 35 2c 20 35 29 | 3b 0d 0d 09 09 74 65 73 |s, 5, 5)|;....tes|
|000008c0| 74 50 61 64 5b 69 5d 2e | 63 6f 6c 6f 72 20 3d 20 |tPad[i].|color = |
|000008d0| 69 20 2b 20 32 3b 0d 09 | 09 74 65 73 74 50 61 64 |i + 2;..|.testPad|
|000008e0| 5b 69 5d 2e 6f 72 64 65 | 72 20 3d 20 69 3b 0d 09 |[i].orde|r = i;..|
|000008f0| 09 74 65 73 74 50 61 64 | 5b 69 5d 2e 73 65 6c 65 |.testPad|[i].sele|
|00000900| 63 74 65 64 20 3d 20 46 | 41 4c 53 45 3b 0d 09 7d |cted = F|ALSE;..}|
|00000910| 0d 0d 09 2f 2a 20 52 61 | 6e 64 6f 6d 69 7a 65 20 |.../* Ra|ndomize |
|00000920| 74 68 65 20 6f 72 64 65 | 72 20 6f 66 20 74 68 65 |the orde|r of the|
|00000930| 20 63 6f 6c 6f 72 20 70 | 61 64 73 0d 09 20 2a 2f | color p|ads.. */|
|00000940| 0d 09 66 6f 72 20 28 69 | 20 3d 20 30 3b 20 69 20 |..for (i| = 0; i |
|00000950| 3c 20 4d 41 58 50 41 44 | 3b 20 69 2b 2b 29 20 7b |< MAXPAD|; i++) {|
|00000960| 0d 09 09 74 65 6d 70 49 | 6e 64 65 78 20 3d 20 44 |...tempI|ndex = D|
|00000970| 6c 6f 67 52 61 6e 64 6f | 6d 28 4d 41 58 50 41 44 |logRando|m(MAXPAD|
|00000980| 29 3b 0d 09 09 74 65 6d | 70 43 6f 6c 6f 72 20 3d |);...tem|pColor =|
|00000990| 20 74 65 73 74 50 61 64 | 5b 69 5d 2e 63 6f 6c 6f | testPad|[i].colo|
|000009a0| 72 3b 0d 09 09 74 65 73 | 74 50 61 64 5b 69 5d 2e |r;...tes|tPad[i].|
|000009b0| 63 6f 6c 6f 72 20 3d 20 | 74 65 73 74 50 61 64 5b |color = |testPad[|
|000009c0| 74 65 6d 70 49 6e 64 65 | 78 5d 2e 63 6f 6c 6f 72 |tempInde|x].color|
|000009d0| 3b 0d 09 09 74 65 73 74 | 50 61 64 5b 74 65 6d 70 |;...test|Pad[temp|
|000009e0| 49 6e 64 65 78 5d 2e 63 | 6f 6c 6f 72 20 3d 20 74 |Index].c|olor = t|
|000009f0| 65 6d 70 43 6f 6c 6f 72 | 3b 0d 09 7d 0d 0d 09 2f |empColor|;..}.../|
|00000a00| 2a 20 52 65 73 65 74 20 | 74 68 65 20 74 65 73 74 |* Reset |the test|
|00000a10| 20 69 6e 66 6f 20 61 6e | 64 20 74 68 65 20 61 6e | info an|d the an|
|00000a20| 61 6c 79 73 69 73 20 62 | 75 66 66 65 72 0d 09 20 |alysis b|uffer.. |
|00000a30| 2a 2f 0d 09 74 65 73 74 | 4f 72 64 65 72 20 3d 20 |*/..test|Order = |
|00000a40| 30 3b 0d 09 0d 09 69 66 | 20 28 74 65 73 74 55 73 |0;....if| (testUs|
|00000a50| 65 72 29 20 7b 0d 09 09 | 41 6e 61 6c 53 74 75 62 |er) {...|AnalStub|
|00000a60| 28 29 3b 0d 09 09 41 6e | 61 6c 57 72 69 74 65 57 |();...An|alWriteW|
|00000a70| 69 6e 64 28 29 3b 0d 09 | 7d 0d 0d 09 53 65 74 50 |ind();..|}...SetP|
|00000a80| 6f 72 74 28 73 61 76 65 | 50 6f 72 74 29 3b 0d 7d |ort(save|Port);.}|
|00000a90| 0d 0d 0d 2f 2a 20 55 70 | 64 61 74 65 20 74 68 65 |.../* Up|date the|
|00000aa0| 20 69 6e 66 6f 20 73 74 | 72 69 6e 67 0d 20 2a 2f | info st|ring. */|
|00000ab0| 0d 76 6f 69 64 0d 54 65 | 73 74 54 69 74 6c 65 49 |.void.Te|stTitleI|
|00000ac0| 6e 66 6f 20 28 29 0d 7b | 0d 09 53 74 72 32 35 35 |nfo ().{|..Str255|
|00000ad0| 20 62 6c 61 62 54 65 78 | 74 3b 0d 09 47 72 61 66 | blabTex|t;..Graf|
|00000ae0| 50 74 72 20 73 61 76 65 | 50 6f 72 74 3b 0d 09 0d |Ptr save|Port;...|
|00000af0| 09 47 65 74 50 6f 72 74 | 28 26 73 61 76 65 50 6f |.GetPort|(&savePo|
|00000b00| 72 74 29 3b 0d 0d 09 2f | 2a 20 55 70 64 61 74 65 |rt);.../|* Update|
|00000b10| 20 74 68 65 20 69 6e 66 | 6f 20 70 72 6f 6d 70 74 | the inf|o prompt|
|00000b20| 20 73 74 72 69 6e 67 0d | 09 20 2a 2f 0d 09 47 65 | string.|. */..Ge|
|00000b30| 74 49 6e 64 53 74 72 69 | 6e 67 28 62 6c 61 62 54 |tIndStri|ng(blabT|
|00000b40| 65 78 74 2c 20 73 74 72 | 73 49 6e 66 6f 2c 20 74 |ext, str|sInfo, t|
|00000b50| 65 73 74 50 68 61 73 65 | 29 3b 0d 09 53 65 74 57 |estPhase|);..SetW|
|00000b60| 54 69 74 6c 65 28 77 50 | 74 72 54 65 73 74 2c 20 |Title(wP|trTest, |
|00000b70| 62 6c 61 62 54 65 78 74 | 29 3b 09 0d 09 0d 09 53 |blabText|);.....S|
|00000b80| 65 74 50 6f 72 74 28 73 | 61 76 65 50 6f 72 74 29 |etPort(s|avePort)|
|00000b90| 3b 0d 7d 0d 0d 0d 2f 2a | 20 52 65 64 72 61 77 20 |;.}.../*| Redraw |
|00000ba0| 74 68 65 20 63 6f 6c 6f | 72 20 74 65 73 74 20 77 |the colo|r test w|
|00000bb0| 69 6e 64 6f 77 2e 20 20 | 4e 6f 74 65 3a 20 6d 6f |indow. |Note: mo|
|00000bc0| 64 69 66 69 65 64 20 74 | 6f 20 73 68 6f 77 20 63 |dified t|o show c|
|00000bd0| 6f 6c 6f 72 20 61 6e 64 | 20 76 61 6c 75 65 73 2c |olor and| values,|
|00000be0| 20 0d 20 2a 20 6e 6f 74 | 20 6f 72 64 65 72 20 2d | . * not| order -|
|00000bf0| 20 4a 69 6d 0d 20 2a 2f | 0d 76 6f 69 64 0d 54 65 | Jim. */|.void.Te|
|00000c00| 73 74 44 72 61 77 20 28 | 29 0d 7b 0d 09 72 65 67 |stDraw (|).{..reg|
|00000c10| 69 73 74 65 72 20 73 68 | 6f 72 74 20 69 2c 20 6a |ister sh|ort i, j|
|00000c20| 2c 20 64 68 2c 20 64 76 | 3b 0d 09 52 65 63 74 20 |, dh, dv|;..Rect |
|00000c30| 62 6f 75 6e 64 73 3b 0d | 09 53 74 72 32 35 35 20 |bounds;.|.Str255 |
|00000c40| 6e 61 6d 65 54 65 78 74 | 2c 20 6f 72 64 54 65 78 |nameText|, ordTex|
|00000c50| 74 3b 0d 09 47 72 61 66 | 50 74 72 20 73 61 76 65 |t;..Graf|Ptr save|
|00000c60| 50 6f 72 74 3b 0d 09 0d | 09 2f 2a 20 53 61 76 65 |Port;...|./* Save|
|00000c70| 20 74 68 65 20 63 75 72 | 72 65 6e 74 20 73 74 61 | the cur|rent sta|
|00000c80| 74 65 0d 09 20 2a 2f 0d | 09 47 65 74 50 6f 72 74 |te.. */.|.GetPort|
|00000c90| 28 26 73 61 76 65 50 6f | 72 74 29 3b 0d 09 53 65 |(&savePo|rt);..Se|
|00000ca0| 74 50 6f 72 74 28 77 50 | 74 72 54 65 73 74 29 3b |tPort(wP|trTest);|
|00000cb0| 0d 0d 09 2f 2a 20 44 72 | 61 77 20 74 68 65 20 70 |.../* Dr|aw the p|
|00000cc0| 61 64 73 20 69 6e 20 63 | 6f 6c 6f 72 0d 09 20 2a |ads in c|olor.. *|
|00000cd0| 2f 0d 09 64 68 20 3d 20 | 74 65 73 74 50 61 64 5b |/..dh = |testPad[|
|00000ce0| 30 5d 2e 62 6f 75 6e 64 | 73 2e 72 69 67 68 74 20 |0].bound|s.right |
|00000cf0| 2f 20 4d 41 58 42 41 4e | 47 3b 0d 09 64 76 20 3d |/ MAXBAN|G;..dv =|
|00000d00| 20 74 65 73 74 50 61 64 | 5b 30 5d 2e 62 6f 75 6e | testPad|[0].boun|
|00000d10| 64 73 2e 62 6f 74 74 6f | 6d 20 2f 20 4d 41 58 42 |ds.botto|m / MAXB|
|00000d20| 41 4e 47 3b 0d 0d 09 66 | 6f 72 20 28 69 20 3d 20 |ANG;...f|or (i = |
|00000d30| 30 3b 20 69 20 3c 20 4d | 41 58 50 41 44 3b 20 69 |0; i < M|AXPAD; i|
|00000d40| 2b 2b 29 20 7b 0d 09 09 | 2f 2a 20 44 72 61 77 20 |++) {...|/* Draw |
|00000d50| 74 68 65 20 70 61 64 20 | 63 6f 6c 6f 72 0d 09 09 |the pad |color...|
|00000d60| 20 2a 2f 0d 09 09 69 66 | 20 28 21 74 65 73 74 50 | */...if| (!testP|
|00000d70| 61 64 5b 69 5d 2e 73 65 | 6c 65 63 74 65 64 20 26 |ad[i].se|lected &|
|00000d80| 26 20 21 74 65 73 74 4a | 44 61 76 69 73 29 20 7b |& !testJ|Davis) {|
|00000d90| 0d 09 09 09 50 65 6e 4d | 6f 64 65 28 70 61 74 4f |....PenM|ode(patO|
|00000da0| 72 29 3b 0d 09 09 09 50 | 6d 46 6f 72 65 43 6f 6c |r);....P|mForeCol|
|00000db0| 6f 72 28 74 65 73 74 50 | 61 64 5b 69 5d 2e 63 6f |or(testP|ad[i].co|
|00000dc0| 6c 6f 72 29 3b 0d 09 09 | 09 50 61 69 6e 74 52 65 |lor);...|.PaintRe|
|00000dd0| 63 74 28 26 74 65 73 74 | 50 61 64 5b 69 5d 2e 62 |ct(&test|Pad[i].b|
|00000de0| 6f 75 6e 64 73 29 3b 0d | 09 09 7d 0d 09 09 65 6c |ounds);.|..}...el|
|00000df0| 73 65 20 69 66 20 28 74 | 65 73 74 50 61 64 5b 69 |se if (t|estPad[i|
|00000e00| 5d 2e 73 65 6c 65 63 74 | 65 64 20 26 26 20 21 74 |].select|ed && !t|
|00000e10| 65 73 74 4a 44 61 76 69 | 73 29 20 7b 0d 09 09 09 |estJDavi|s) {....|
|00000e20| 50 65 6e 4d 6f 64 65 28 | 70 61 74 4f 72 29 3b 0d |PenMode(|patOr);.|
|00000e30| 09 09 09 50 6d 46 6f 72 | 65 43 6f 6c 6f 72 28 74 |...PmFor|eColor(t|
|00000e40| 65 73 74 50 61 64 5b 69 | 5d 2e 63 6f 6c 6f 72 29 |estPad[i|].color)|
|00000e50| 3b 0d 09 09 09 62 6f 75 | 6e 64 73 20 3d 20 74 65 |;....bou|nds = te|
|00000e60| 73 74 50 61 64 5b 69 5d | 2e 62 6f 75 6e 64 73 3b |stPad[i]|.bounds;|
|00000e70| 0d 09 09 0d 09 09 09 66 | 6f 72 20 28 6a 20 3d 20 |.......f|or (j = |
|00000e80| 30 3b 20 6a 20 3c 20 4d | 41 58 42 41 4e 47 3b 20 |0; j < M|AXBANG; |
|00000e90| 6a 2b 2b 29 20 7b 0d 09 | 09 09 09 49 6e 73 65 74 |j++) {..|...Inset|
|00000ea0| 52 65 63 74 28 26 62 6f | 75 6e 64 73 2c 20 64 68 |Rect(&bo|unds, dh|
|00000eb0| 2c 20 64 76 29 3b 0d 09 | 09 09 09 46 72 61 6d 65 |, dv);..|...Frame|
|00000ec0| 52 65 63 74 28 26 62 6f | 75 6e 64 73 29 3b 0d 09 |Rect(&bo|unds);..|
|00000ed0| 09 09 7d 0d 0d 09 09 09 | 50 65 6e 4d 6f 64 65 28 |..}.....|PenMode(|
|00000ee0| 70 61 74 43 6f 70 79 29 | 3b 0d 09 09 09 50 6d 46 |patCopy)|;....PmF|
|00000ef0| 6f 72 65 43 6f 6c 6f 72 | 28 31 29 3b 0d 0d 09 09 |oreColor|(1);....|
|00000f00| 09 47 65 74 49 6e 64 53 | 74 72 69 6e 67 28 6e 61 |.GetIndS|tring(na|
|00000f10| 6d 65 54 65 78 74 2c 20 | 73 74 72 73 43 6f 6c 6f |meText, |strsColo|
|00000f20| 72 73 20 2c 20 74 65 73 | 74 50 61 64 5b 69 5d 2e |rs , tes|tPad[i].|
|00000f30| 63 6f 6c 6f 72 20 2d 20 | 31 29 3b 0d 09 09 09 73 |color - |1);....s|
|00000f40| 70 72 69 6e 74 66 28 28 | 63 68 61 72 20 2a 29 20 |printf((|char *) |
|00000f50| 6f 72 64 54 65 78 74 2c | 20 22 25 73 3a 20 25 64 |ordText,| "%s: %d|
|00000f60| 22 2c 20 50 74 6f 43 73 | 74 72 28 28 63 68 61 72 |", PtoCs|tr((char|
|00000f70| 20 2a 29 20 6e 61 6d 65 | 54 65 78 74 29 2c 20 74 | *) name|Text), t|
|00000f80| 65 73 74 50 61 64 5b 69 | 5d 2e 63 6f 6c 6f 72 20 |estPad[i|].color |
|00000f90| 2d 20 32 29 3b 0d 0d 09 | 09 09 4d 6f 76 65 54 6f |- 2);...|..MoveTo|
|00000fa0| 28 74 65 73 74 50 61 64 | 5b 69 5d 2e 62 6f 75 6e |(testPad|[i].boun|
|00000fb0| 64 73 2e 6c 65 66 74 20 | 2b 20 31 30 2c 20 74 65 |ds.left |+ 10, te|
|00000fc0| 73 74 50 61 64 5b 69 5d | 2e 62 6f 75 6e 64 73 2e |stPad[i]|.bounds.|
|00000fd0| 62 6f 74 74 6f 6d 20 2d | 20 31 36 29 3b 0d 09 09 |bottom -| 16);...|
|00000fe0| 09 44 72 61 77 53 74 72 | 69 6e 67 28 43 74 6f 50 |.DrawStr|ing(CtoP|
|00000ff0| 73 74 72 28 28 63 68 61 | 72 20 2a 29 20 6f 72 64 |str((cha|r *) ord|
|00001000| 54 65 78 74 29 29 3b 0d | 09 09 7d 0d 09 09 65 6c |Text));.|..}...el|
|00001010| 73 65 20 7b 0d 09 09 09 | 45 72 61 73 65 52 65 63 |se {....|EraseRec|
|00001020| 74 28 26 74 65 73 74 50 | 61 64 5b 69 5d 2e 62 6f |t(&testP|ad[i].bo|
|00001030| 75 6e 64 73 29 3b 0d 0d | 09 09 09 47 65 74 49 6e |unds);..|...GetIn|
|00001040| 64 53 74 72 69 6e 67 28 | 6e 61 6d 65 54 65 78 74 |dString(|nameText|
|00001050| 2c 20 73 74 72 73 43 6f | 6c 6f 72 73 20 2c 20 74 |, strsCo|lors , t|
|00001060| 65 73 74 50 61 64 5b 69 | 5d 2e 63 6f 6c 6f 72 20 |estPad[i|].color |
|00001070| 2d 20 31 29 3b 0d 09 09 | 09 73 70 72 69 6e 74 66 |- 1);...|.sprintf|
|00001080| 28 28 63 68 61 72 20 2a | 29 20 6f 72 64 54 65 78 |((char *|) ordTex|
|00001090| 74 2c 20 22 25 73 3a 20 | 25 64 22 2c 20 50 74 6f |t, "%s: |%d", Pto|
|000010a0| 43 73 74 72 28 28 63 68 | 61 72 20 2a 29 20 6e 61 |Cstr((ch|ar *) na|
|000010b0| 6d 65 54 65 78 74 29 2c | 20 74 65 73 74 50 61 64 |meText),| testPad|
|000010c0| 5b 69 5d 2e 63 6f 6c 6f | 72 20 2d 20 32 29 3b 0d |[i].colo|r - 2);.|
|000010d0| 0d 09 09 09 4d 6f 76 65 | 54 6f 28 74 65 73 74 50 |....Move|To(testP|
|000010e0| 61 64 5b 69 5d 2e 62 6f | 75 6e 64 73 2e 6c 65 66 |ad[i].bo|unds.lef|
|000010f0| 74 20 2b 20 31 30 2c 20 | 74 65 73 74 50 61 64 5b |t + 10, |testPad[|
|00001100| 69 5d 2e 62 6f 75 6e 64 | 73 2e 62 6f 74 74 6f 6d |i].bound|s.bottom|
|00001110| 20 2d 20 31 36 29 3b 0d | 09 09 09 44 72 61 77 53 | - 16);.|...DrawS|
|00001120| 74 72 69 6e 67 28 43 74 | 6f 50 73 74 72 28 28 63 |tring(Ct|oPstr((c|
|00001130| 68 61 72 20 2a 29 20 6f | 72 64 54 65 78 74 29 29 |har *) o|rdText))|
|00001140| 3b 0d 0d 09 09 09 69 66 | 20 28 74 65 73 74 50 61 |;.....if| (testPa|
|00001150| 64 5b 69 5d 2e 73 65 6c | 65 63 74 65 64 29 20 7b |d[i].sel|ected) {|
|00001160| 0d 09 09 09 09 62 6f 75 | 6e 64 73 20 3d 20 74 65 |.....bou|nds = te|
|00001170| 73 74 50 61 64 5b 69 5d | 2e 62 6f 75 6e 64 73 3b |stPad[i]|.bounds;|
|00001180| 0d 09 09 09 0d 09 09 09 | 09 66 6f 72 20 28 6a 20 |........|.for (j |
|00001190| 3d 20 30 3b 20 6a 20 3c | 20 4d 41 58 42 41 4e 47 |= 0; j <| MAXBANG|
|000011a0| 3b 20 6a 2b 2b 29 20 7b | 0d 09 09 09 09 09 49 6e |; j++) {|......In|
|000011b0| 73 65 74 52 65 63 74 28 | 26 62 6f 75 6e 64 73 2c |setRect(|&bounds,|
|000011c0| 20 64 68 2c 20 64 76 29 | 3b 0d 09 09 09 09 09 46 | dh, dv)|;......F|
|000011d0| 72 61 6d 65 52 65 63 74 | 28 26 62 6f 75 6e 64 73 |rameRect|(&bounds|
|000011e0| 29 3b 0d 09 09 09 09 7d | 0d 09 09 09 7d 0d 09 09 |);.....}|....}...|
|000011f0| 7d 0d 09 7d 0d 0d 09 53 | 65 74 50 6f 72 74 28 73 |}..}...S|etPort(s|
|00001200| 61 76 65 50 6f 72 74 29 | 3b 0d 7d 0d 0d 0d 2f 2a |avePort)|;.}.../*|
|00001210| 20 48 61 6e 64 6c 65 20 | 61 20 63 6f 6c 6f 72 20 | Handle |a color |
|00001220| 73 65 6c 65 63 74 69 6f | 6e 0d 20 2a 2f 0d 76 6f |selectio|n. */.vo|
|00001230| 69 64 0d 54 65 73 74 43 | 6c 69 63 6b 20 28 74 68 |id.TestC|lick (th|
|00001240| 65 50 6f 69 6e 74 29 0d | 09 72 65 67 69 73 74 65 |ePoint).|.registe|
|00001250| 72 20 50 6f 69 6e 74 20 | 74 68 65 50 6f 69 6e 74 |r Point |thePoint|
|00001260| 3b 0d 7b 0d 09 72 65 67 | 69 73 74 65 72 20 73 68 |;.{..reg|ister sh|
|00001270| 6f 72 74 20 69 3b 0d 09 | 47 72 61 66 50 74 72 20 |ort i;..|GrafPtr |
|00001280| 73 61 76 65 50 6f 72 74 | 3b 0d 0d 09 47 65 74 50 |savePort|;...GetP|
|00001290| 6f 72 74 28 26 73 61 76 | 65 50 6f 72 74 29 3b 0d |ort(&sav|ePort);.|
|000012a0| 09 53 65 74 50 6f 72 74 | 28 77 50 74 72 54 65 73 |.SetPort|(wPtrTes|
|000012b0| 74 29 3b 0d 0d 09 2f 2a | 20 43 68 65 63 6b 20 74 |t);.../*| Check t|
|000012c0| 68 65 20 6e 6f 6e 2d 70 | 61 64 20 73 74 61 74 65 |he non-p|ad state|
|000012d0| 73 0d 09 20 2a 2f 0d 09 | 66 6f 72 20 28 69 20 3d |s.. */..|for (i =|
|000012e0| 20 30 3b 20 69 20 3c 20 | 4d 41 58 50 41 44 3b 20 | 0; i < |MAXPAD; |
|000012f0| 69 2b 2b 29 20 7b 0d 09 | 09 69 66 20 28 28 21 74 |i++) {..|.if ((!t|
|00001300| 65 73 74 50 61 64 5b 69 | 5d 2e 73 65 6c 65 63 74 |estPad[i|].select|
|00001310| 65 64 29 20 26 26 20 50 | 74 49 6e 52 65 63 74 28 |ed) && P|tInRect(|
|00001320| 74 68 65 50 6f 69 6e 74 | 2c 20 26 74 65 73 74 50 |thePoint|, &testP|
|00001330| 61 64 5b 69 5d 2e 62 6f | 75 6e 64 73 29 29 20 7b |ad[i].bo|unds)) {|
|00001340| 0d 09 09 09 74 65 73 74 | 50 61 64 5b 69 5d 2e 6f |....test|Pad[i].o|
|00001350| 72 64 65 72 20 3d 20 74 | 65 73 74 4f 72 64 65 72 |rder = t|estOrder|
|00001360| 2b 2b 3b 0d 09 09 09 74 | 65 73 74 50 61 64 5b 69 |++;....t|estPad[i|
|00001370| 5d 2e 73 65 6c 65 63 74 | 65 64 20 3d 20 54 52 55 |].select|ed = TRU|
|00001380| 45 3b 0d 09 09 09 49 6e | 76 61 6c 52 65 63 74 28 |E;....In|valRect(|
|00001390| 26 74 65 73 74 50 61 64 | 5b 69 5d 2e 62 6f 75 6e |&testPad|[i].boun|
|000013a0| 64 73 29 3b 0d 09 09 09 | 0d 09 09 09 69 66 20 28 |ds);....|....if (|
|000013b0| 74 65 73 74 4f 72 64 65 | 72 20 3d 3d 20 4d 41 58 |testOrde|r == MAX|
|000013c0| 50 41 44 29 20 7b 0d 09 | 09 09 09 69 66 20 28 74 |PAD) {..|...if (t|
|000013d0| 65 73 74 50 68 61 73 65 | 20 3d 3d 20 74 73 74 50 |estPhase| == tstP|
|000013e0| 68 61 73 65 31 29 20 7b | 0d 09 09 09 09 09 74 65 |hase1) {|......te|
|000013f0| 73 74 50 68 61 73 65 2b | 2b 3b 0d 09 09 09 09 09 |stPhase+|+;......|
|00001400| 41 6e 61 6c 50 61 73 73 | 28 74 65 73 74 50 61 73 |AnalPass|(testPas|
|00001410| 73 30 29 3b 0d 0d 09 09 | 09 09 09 54 65 73 74 52 |s0);....|...TestR|
|00001420| 65 73 65 74 28 29 3b 0d | 09 09 09 09 09 49 6e 76 |eset();.|.....Inv|
|00001430| 61 6c 52 65 63 74 28 26 | 28 77 50 74 72 54 65 73 |alRect(&|(wPtrTes|
|00001440| 74 2d 3e 70 6f 72 74 52 | 65 63 74 29 29 3b 0d 09 |t->portR|ect));..|
|00001450| 09 09 09 7d 0d 09 09 09 | 09 65 6c 73 65 20 69 66 |...}....|.else if|
|00001460| 20 28 74 65 73 74 50 68 | 61 73 65 20 3d 3d 20 74 | (testPh|ase == t|
|00001470| 73 74 50 68 61 73 65 32 | 29 20 7b 0d 09 09 09 09 |stPhase2|) {.....|
|00001480| 09 74 65 73 74 50 68 61 | 73 65 2b 2b 3b 0d 09 09 |.testPha|se++;...|
|00001490| 09 09 09 41 6e 61 6c 50 | 61 73 73 28 74 65 73 74 |...AnalP|ass(test|
|000014a0| 50 61 73 73 31 29 3b 0d | 09 09 09 09 09 41 6e 61 |Pass1);.|.....Ana|
|000014b0| 6c 52 65 70 6f 72 74 28 | 29 3b 0d 0d 09 09 09 09 |lReport(|);......|
|000014c0| 09 69 66 20 28 74 65 73 | 74 55 73 65 72 29 0d 09 |.if (tes|tUser)..|
|000014d0| 09 09 09 09 09 47 6e 6f | 73 52 65 63 61 6c 6c 28 |.....Gno|sRecall(|
|000014e0| 29 3b 0d 09 09 09 09 7d | 0d 09 09 09 7d 0d 09 09 |);.....}|....}...|
|000014f0| 7d 0d 09 7d 0d 0d 09 54 | 65 73 74 54 69 74 6c 65 |}..}...T|estTitle|
|00001500| 49 6e 66 6f 28 29 3b 0d | 09 53 65 74 50 6f 72 74 |Info();.|.SetPort|
|00001510| 28 73 61 76 65 50 6f 72 | 74 29 3b 0d 7d 0d 0d 0d |(savePor|t);.}...|
|00001520| 2f 2a 20 45 78 65 63 75 | 74 65 20 74 65 73 74 20 |/* Execu|te test |
|00001530| 6d 65 6e 75 20 73 65 6c | 65 63 74 69 6f 6e 73 0d |menu sel|ections.|
|00001540| 20 2a 2f 0d 76 6f 69 64 | 0d 54 65 73 74 4d 65 6e | */.void|.TestMen|
|00001550| 75 20 28 74 68 65 49 74 | 65 6d 29 0d 09 72 65 67 |u (theIt|em)..reg|
|00001560| 69 73 74 65 72 20 73 68 | 6f 72 74 20 74 68 65 49 |ister sh|ort theI|
|00001570| 74 65 6d 3b 0d 7b 0d 09 | 47 72 61 66 50 74 72 20 |tem;.{..|GrafPtr |
|00001580| 73 61 76 65 50 6f 72 74 | 3b 0d 09 72 65 67 69 73 |savePort|;..regis|
|00001590| 74 65 72 20 6c 6f 6e 67 | 20 77 61 69 74 54 69 6d |ter long| waitTim|
|000015a0| 65 3b 0d 09 72 65 67 69 | 73 74 65 72 20 73 68 6f |e;..regi|ster sho|
|000015b0| 72 74 20 69 3b 0d 0d 09 | 47 65 74 50 6f 72 74 28 |rt i;...|GetPort(|
|000015c0| 26 73 61 76 65 50 6f 72 | 74 29 3b 0d 09 53 65 74 |&savePor|t);..Set|
|000015d0| 50 6f 72 74 28 77 50 74 | 72 54 65 73 74 29 3b 0d |Port(wPt|rTest);.|
|000015e0| 0d 09 73 77 69 74 63 68 | 20 28 74 68 65 49 74 65 |..switch| (theIte|
|000015f0| 6d 29 20 7b 0d 09 63 61 | 73 65 20 74 65 73 74 52 |m) {..ca|se testR|
|00001600| 65 73 65 74 3a 0d 09 09 | 66 6f 72 20 28 69 20 3d |eset:...|for (i =|
|00001610| 20 30 3b 20 69 20 3c 20 | 4d 41 58 50 41 44 3b 20 | 0; i < |MAXPAD; |
|00001620| 69 2b 2b 29 20 7b 0d 09 | 09 09 54 65 73 74 52 65 |i++) {..|..TestRe|
|00001630| 73 65 74 28 29 3b 0d 09 | 09 09 54 65 73 74 44 72 |set();..|..TestDr|
|00001640| 61 77 28 29 3b 0d 09 09 | 0d 09 09 09 66 6f 72 20 |aw();...|....for |
|00001650| 28 77 61 69 74 54 69 6d | 65 20 3d 20 54 69 63 6b |(waitTim|e = Tick|
|00001660| 43 6f 75 6e 74 28 29 20 | 2b 20 32 4c 3b 20 54 69 |Count() |+ 2L; Ti|
|00001670| 63 6b 43 6f 75 6e 74 28 | 29 20 3c 20 77 61 69 74 |ckCount(|) < wait|
|00001680| 54 69 6d 65 3b 20 29 20 | 3b 0d 09 09 7d 0d 0d 09 |Time; ) |;...}...|
|00001690| 09 74 65 73 74 50 68 61 | 73 65 20 3d 20 74 73 74 |.testPha|se = tst|
|000016a0| 50 68 61 73 65 31 3b 0d | 09 09 54 65 73 74 54 69 |Phase1;.|..TestTi|
|000016b0| 74 6c 65 49 6e 66 6f 28 | 29 3b 0d 09 09 57 69 6e |tleInfo(|);...Win|
|000016c0| 64 53 77 69 74 63 68 28 | 77 50 74 72 54 65 73 74 |dSwitch(|wPtrTest|
|000016d0| 2c 20 54 52 55 45 29 3b | 0d 09 09 62 72 65 61 6b |, TRUE);|...break|
|000016e0| 3b 0d 0d 09 63 61 73 65 | 20 74 65 73 74 55 73 65 |;...case| testUse|
|000016f0| 72 4d 6f 64 65 3a 0d 09 | 09 74 65 73 74 55 73 65 |rMode:..|.testUse|
|00001700| 72 20 3d 20 21 74 65 73 | 74 55 73 65 72 3b 0d 09 |r = !tes|tUser;..|
|00001710| 09 62 72 65 61 6b 3b 0d | 0d 09 63 61 73 65 20 74 |.break;.|..case t|
|00001720| 65 73 74 42 6f 72 64 65 | 72 6c 65 73 73 3a 0d 09 |estBorde|rless:..|
|00001730| 09 74 65 73 74 42 43 72 | 61 69 67 20 3d 20 21 74 |.testBCr|aig = !t|
|00001740| 65 73 74 42 43 72 61 69 | 67 3b 0d 0d 09 09 66 6f |estBCrai|g;....fo|
|00001750| 72 20 28 69 20 3d 20 30 | 3b 20 69 20 3c 20 4d 41 |r (i = 0|; i < MA|
|00001760| 58 50 41 44 3b 20 69 2b | 2b 29 0d 09 09 09 69 66 |XPAD; i+|+)....if|
|00001770| 20 28 74 65 73 74 42 43 | 72 61 69 67 29 0d 09 09 | (testBC|raig)...|
|00001780| 09 09 49 6e 73 65 74 52 | 65 63 74 28 26 74 65 73 |..InsetR|ect(&tes|
|00001790| 74 50 61 64 5b 69 5d 2e | 62 6f 75 6e 64 73 2c 20 |tPad[i].|bounds, |
|000017a0| 35 2c 20 35 29 3b 0d 09 | 09 09 65 6c 73 65 0d 09 |5, 5);..|..else..|
|000017b0| 09 09 09 49 6e 73 65 74 | 52 65 63 74 28 26 74 65 |...Inset|Rect(&te|
|000017c0| 73 74 50 61 64 5b 69 5d | 2e 62 6f 75 6e 64 73 2c |stPad[i]|.bounds,|
|000017d0| 20 2d 35 2c 20 2d 35 29 | 3b 0d 0d 09 09 49 6e 76 | -5, -5)|;....Inv|
|000017e0| 61 6c 52 65 63 74 28 26 | 77 50 74 72 54 65 73 74 |alRect(&|wPtrTest|
|000017f0| 2d 3e 70 6f 72 74 52 65 | 63 74 29 3b 0d 09 09 62 |->portRe|ct);...b|
|00001800| 72 65 61 6b 3b 0d 0d 09 | 63 61 73 65 20 74 65 73 |reak;...|case tes|
|00001810| 74 49 6e 43 6f 6c 6f 72 | 3a 0d 09 09 69 66 20 28 |tInColor|:...if (|
|00001820| 21 74 65 73 74 4a 44 61 | 76 69 73 29 20 7b 0d 09 |!testJDa|vis) {..|
|00001830| 09 09 50 65 6e 4d 6f 64 | 65 28 70 61 74 43 6f 70 |..PenMod|e(patCop|
|00001840| 79 29 3b 0d 09 09 09 50 | 6d 46 6f 72 65 43 6f 6c |y);....P|mForeCol|
|00001850| 6f 72 28 31 29 3b 0d 09 | 09 7d 0d 09 0d 09 09 74 |or(1);..|.}.....t|
|00001860| 65 73 74 4a 44 61 76 69 | 73 20 3d 20 21 74 65 73 |estJDavi|s = !tes|
|00001870| 74 4a 44 61 76 69 73 3b | 0d 09 09 49 6e 76 61 6c |tJDavis;|...Inval|
|00001880| 52 65 63 74 28 26 77 50 | 74 72 54 65 73 74 2d 3e |Rect(&wP|trTest->|
|00001890| 70 6f 72 74 52 65 63 74 | 29 3b 0d 09 09 62 72 65 |portRect|);...bre|
|000018a0| 61 6b 3b 0d 0d 09 63 61 | 73 65 20 74 65 73 74 43 |ak;...ca|se testC|
|000018b0| 6c 65 61 6e 55 70 3a 0d | 09 09 57 69 6e 64 54 69 |leanUp:.|..WindTi|
|000018c0| 6c 65 53 74 61 63 6b 28 | 29 3b 0d 09 09 62 72 65 |leStack(|);...bre|
|000018d0| 61 6b 3b 0d 0d 09 64 65 | 66 61 75 6c 74 3a 0d 09 |ak;...de|fault:..|
|000018e0| 09 62 72 65 61 6b 3b 0d | 09 7d 0d 0d 09 53 65 74 |.break;.|.}...Set|
|000018f0| 50 6f 72 74 28 73 61 76 | 65 50 6f 72 74 29 3b 0d |Port(sav|ePort);.|
|00001900| 7d 0d 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |}.......|........|
|00001910| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001920| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001930| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001940| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001950| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001960| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001970| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
+--------+-------------------------+-------------------------+--------+--------+