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

ConfidenceProgramDetectionMatch TypeSupport
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 Binary Text (image/binaryText) fallback Supported
1% dexvert Text File (text/txt) fallback Supported
100% file MacBinary, Sun Jul 23 21:44:58 1989, modified Fri Jan 26 14:42:02 1990, creator Think C, type ASCII, 8990 bytes "gnosis.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
keyvalue
macFileType[TEXT]
macFileCreator[KAHL]



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 08 67 6e 6f 73 69 73 | 2e 63 00 00 00 00 00 00 |..gnosis|.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 23 1e 00 | 00 00 00 a0 f0 25 1a a1 |.....#..|.....%..|
|00000060| e6 58 8a 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |.X......|........|
|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 67 6e 6f | 73 69 73 2e 63 0d 20 2a |*. *.gno|sis.c. *|
|000000e0| 0d 20 2a 09 50 72 6f 67 | 6e 6f 73 69 73 20 4d 61 |. *.Prog|nosis Ma|
|000000f0| 6e 61 67 65 6d 65 6e 74 | 20 50 61 63 6b 61 67 65 |nagement| Package|
|00000100| 0d 20 2a 0d 20 2a 09 57 | 72 69 74 74 65 6e 20 62 |. *. *.W|ritten b|
|00000110| 79 20 50 61 63 6f 20 58 | 61 6e 64 65 72 20 4e 61 |y Paco X|ander Na|
|00000120| 74 68 61 6e 0d 20 2a 09 | a9 31 39 39 30 2c 20 4d |than. *.|.1990, M|
|00000130| 6f 74 6f 72 6f 6c 61 20 | 49 6e 63 2e 20 20 50 75 |otorola |Inc. Pu|
|00000140| 62 6c 69 63 20 64 6f 6d | 61 69 6e 20 73 6f 75 72 |blic dom|ain sour|
|00000150| 63 65 20 63 6f 64 65 2e | 0d 20 2a 2a 2a 2a 2a 2a |ce 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 2a 2f 0d 0d 23 69 6e |********|**/..#in|
|000001b0| 63 6c 75 64 65 20 22 61 | 70 70 6c 69 63 2e 68 22 |clude "a|pplic.h"|
|000001c0| 0d 23 69 6e 63 6c 75 64 | 65 20 22 77 69 6e 64 6f |.#includ|e "windo|
|000001d0| 77 2e 68 22 0d 23 69 6e | 63 6c 75 64 65 20 22 64 |w.h".#in|clude "d|
|000001e0| 69 61 6c 6f 67 2e 68 22 | 0d 23 69 6e 63 6c 75 64 |ialog.h"|.#includ|
|000001f0| 65 20 22 65 72 72 6f 72 | 2e 68 22 0d 23 69 6e 63 |e "error|.h".#inc|
|00000200| 6c 75 64 65 20 22 73 74 | 72 69 6e 67 2e 68 22 0d |lude "st|ring.h".|
|00000210| 23 69 6e 63 6c 75 64 65 | 20 22 74 65 78 74 2e 68 |#include| "text.h|
|00000220| 22 0d 23 69 6e 63 6c 75 | 64 65 20 22 64 6f 63 75 |".#inclu|de "docu|
|00000230| 6d 65 6e 74 2e 68 22 0d | 23 69 6e 63 6c 75 64 65 |ment.h".|#include|
|00000240| 20 22 6e 65 75 72 61 6c | 2e 68 22 0d 0d 23 69 6e | "neural|.h"..#in|
|00000250| 63 6c 75 64 65 20 22 74 | 65 73 74 2e 68 22 0d 23 |clude "t|est.h".#|
|00000260| 69 6e 63 6c 75 64 65 20 | 22 67 6e 6f 73 69 73 2e |include |"gnosis.|
|00000270| 68 22 0d 23 69 6e 63 6c | 75 64 65 20 22 61 6e 61 |h".#incl|ude "ana|
|00000280| 6c 79 73 69 73 2e 68 22 | 0d 0d 0d 23 64 65 66 69 |lysis.h"|...#defi|
|00000290| 6e 65 20 47 4e 4f 53 5f | 42 49 54 53 09 31 38 31 |ne GNOS_|BITS.181|
|000002a0| 0d 0d 0d 2f 2a 20 4c 6f | 63 61 6c 20 44 61 74 61 |.../* Lo|cal Data|
|000002b0| 20 53 74 72 75 63 74 75 | 72 65 73 0d 20 2a 2f 0d | Structu|res. */.|
|000002c0| 0d 0d 2f 2a 20 45 78 74 | 65 72 6e 61 6c 20 44 61 |../* Ext|ernal Da|
|000002d0| 74 61 20 53 74 72 75 63 | 74 75 72 65 73 0d 20 2a |ta Struc|tures. *|
|000002e0| 2f 0d 47 6e 6f 73 4c 69 | 73 74 0d 09 67 6e 6f 73 |/.GnosLi|st..gnos|
|000002f0| 4c 69 73 74 20 3d 20 7b | 20 30 2c 20 4e 55 4c 4c |List = {| 0, NULL|
|00000300| 2c 20 4e 55 4c 4c 20 7d | 3b 0d 0d 0d 2f 2a 20 4c |, NULL }|;.../* L|
|00000310| 6f 63 61 6c 20 46 75 6e | 63 74 69 6f 6e 20 50 72 |ocal Fun|ction Pr|
|00000320| 6f 74 6f 74 79 70 65 73 | 0d 20 2a 2f 0d 23 69 66 |ototypes|. */.#if|
|00000330| 64 65 66 20 50 52 4f 54 | 4f 54 59 50 45 53 0d 23 |def PROT|OTYPES.#|
|00000340| 65 6e 64 69 66 0d 0d 0d | 2f 2a 20 41 6c 6c 6f 63 |endif...|/* Alloc|
|00000350| 61 74 65 20 61 20 6e 65 | 77 20 70 72 6f 67 6e 6f |ate a ne|w progno|
|00000360| 73 69 73 20 72 65 63 6f | 72 64 20 61 6e 64 20 69 |sis reco|rd and i|
|00000370| 6e 73 65 72 74 20 69 74 | 20 61 74 20 74 68 65 20 |nsert it| at the |
|00000380| 68 65 61 64 20 6f 66 20 | 74 68 65 20 6c 69 73 74 |head of |the list|
|00000390| 0d 20 2a 2f 0d 47 6e 6f | 73 50 74 72 0d 47 6e 6f |. */.Gno|sPtr.Gno|
|000003a0| 73 4e 65 77 20 28 29 0d | 7b 0d 09 72 65 67 69 73 |sNew ().|{..regis|
|000003b0| 74 65 72 20 47 6e 6f 73 | 50 74 72 20 67 6e 6f 73 |ter Gnos|Ptr gnos|
|000003c0| 50 74 72 20 3d 20 4e 55 | 4c 4c 3b 0d 09 0d 09 47 |Ptr = NU|LL;....G|
|000003d0| 6e 6f 73 53 61 76 65 28 | 29 3b 0d 0d 09 69 66 20 |nosSave(|);...if |
|000003e0| 28 67 6e 6f 73 50 74 72 | 20 3d 20 28 47 6e 6f 73 |(gnosPtr| = (Gnos|
|000003f0| 50 74 72 29 20 45 72 72 | 4e 65 77 50 74 72 28 73 |Ptr) Err|NewPtr(s|
|00000400| 69 7a 65 6f 66 28 47 6e | 6f 73 44 61 74 61 29 29 |izeof(Gn|osData))|
|00000410| 29 20 7b 0d 09 09 67 6e | 6f 73 50 74 72 2d 3e 6e |) {...gn|osPtr->n|
|00000420| 65 78 74 20 3d 20 67 6e | 6f 73 4c 69 73 74 2e 68 |ext = gn|osList.h|
|00000430| 65 61 64 3b 0d 09 09 67 | 6e 6f 73 4c 69 73 74 2e |ead;...g|nosList.|
|00000440| 68 65 61 64 20 3d 20 67 | 6e 6f 73 50 74 72 3b 0d |head = g|nosPtr;.|
|00000450| 09 09 67 6e 6f 73 4c 69 | 73 74 2e 63 6f 75 6e 74 |..gnosLi|st.count|
|00000460| 2b 2b 3b 0d 0d 09 09 67 | 6e 6f 73 50 74 72 2d 3e |++;....g|nosPtr->|
|00000470| 74 65 78 74 48 64 6c 20 | 3d 20 28 48 61 6e 64 6c |textHdl |= (Handl|
|00000480| 65 29 20 45 72 72 4e 65 | 77 48 61 6e 64 6c 65 28 |e) ErrNe|wHandle(|
|00000490| 30 4c 29 3b 0d 09 7d 0d | 0d 09 72 65 74 75 72 6e |0L);..}.|..return|
|000004a0| 20 67 6e 6f 73 50 74 72 | 3b 0d 7d 0d 0d 0d 76 6f | gnosPtr|;.}...vo|
|000004b0| 69 64 0d 47 6e 6f 73 44 | 65 6c 65 74 65 20 28 29 |id.GnosD|elete ()|
|000004c0| 0d 7b 0d 09 72 65 67 69 | 73 74 65 72 20 47 6e 6f |.{..regi|ster Gno|
|000004d0| 73 50 74 72 20 67 6e 6f | 73 50 74 72 20 3d 20 67 |sPtr gno|sPtr = g|
|000004e0| 6e 6f 73 4c 69 73 74 2e | 68 65 61 64 3b 0d 09 0d |nosList.|head;...|
|000004f0| 09 69 66 20 28 67 6e 6f | 73 4c 69 73 74 2e 6f 70 |.if (gno|sList.op|
|00000500| 65 6e 20 3d 3d 20 67 6e | 6f 73 4c 69 73 74 2e 68 |en == gn|osList.h|
|00000510| 65 61 64 29 0d 09 09 67 | 6e 6f 73 4c 69 73 74 2e |ead)...g|nosList.|
|00000520| 68 65 61 64 20 3d 20 67 | 6e 6f 73 50 74 72 2d 3e |head = g|nosPtr->|
|00000530| 6e 65 78 74 3b 0d 09 65 | 6c 73 65 20 7b 0d 09 7d |next;..e|lse {..}|
|00000540| 0d 09 0d 09 67 6e 6f 73 | 4c 69 73 74 2e 63 6f 75 |....gnos|List.cou|
|00000550| 6e 74 2d 2d 3b 0d 09 67 | 6e 6f 73 4c 69 73 74 2e |nt--;..g|nosList.|
|00000560| 6f 70 65 6e 20 3d 20 4e | 55 4c 4c 3b 0d 0d 09 44 |open = N|ULL;...D|
|00000570| 69 73 70 6f 73 48 61 6e | 64 6c 65 28 67 6e 6f 73 |isposHan|dle(gnos|
|00000580| 50 74 72 2d 3e 74 65 78 | 74 48 64 6c 29 3b 0d 09 |Ptr->tex|tHdl);..|
|00000590| 44 69 73 70 6f 73 50 74 | 72 28 67 6e 6f 73 50 74 |DisposPt|r(gnosPt|
|000005a0| 72 29 3b 0d 09 0d 09 57 | 69 6e 64 53 77 69 74 63 |r);....W|indSwitc|
|000005b0| 68 28 64 50 74 72 41 6e | 61 6c 2c 20 46 41 4c 53 |h(dPtrAn|al, FALS|
|000005c0| 45 29 3b 0d 09 57 69 6e | 64 53 77 69 74 63 68 28 |E);..Win|dSwitch(|
|000005d0| 77 50 74 72 54 65 78 74 | 2c 20 46 41 4c 53 45 29 |wPtrText|, FALSE)|
|000005e0| 3b 0d 7d 0d 0d 0d 2f 2a | 20 52 65 61 64 20 74 68 |;.}.../*| Read th|
|000005f0| 65 20 73 65 74 20 6f 66 | 20 70 72 6f 67 6e 6f 73 |e set of| prognos|
|00000600| 69 73 20 66 72 6f 6d 20 | 74 68 65 20 6f 70 65 6e |is from |the open|
|00000610| 65 64 20 72 65 73 6f 75 | 72 63 65 20 66 69 6c 65 |ed resou|rce file|
|00000620| 20 61 6e 64 20 64 69 73 | 70 6c 61 79 20 74 68 65 | and dis|play the|
|00000630| 20 0d 20 2a 20 74 69 74 | 6c 65 73 20 69 6e 20 74 | . * tit|les in t|
|00000640| 68 65 20 72 65 73 6f 75 | 72 63 65 20 6c 69 73 74 |he resou|rce list|
|00000650| 20 77 69 6e 64 6f 77 0d | 20 2a 2f 0d 76 6f 69 64 | window.| */.void|
|00000660| 0d 47 6e 6f 73 52 65 66 | 72 65 73 68 20 28 29 0d |.GnosRef|resh ().|
|00000670| 7b 0d 09 72 65 67 69 73 | 74 65 72 20 49 6e 66 6f |{..regis|ter Info|
|00000680| 50 74 72 20 69 6e 66 6f | 50 74 72 20 3d 20 28 49 |Ptr info|Ptr = (I|
|00000690| 6e 66 6f 50 74 72 29 20 | 47 65 74 57 52 65 66 43 |nfoPtr) |GetWRefC|
|000006a0| 6f 6e 28 77 50 74 72 47 | 6e 6f 73 29 3b 0d 09 72 |on(wPtrG|nos);..r|
|000006b0| 65 67 69 73 74 65 72 20 | 4c 69 73 74 48 61 6e 64 |egister |ListHand|
|000006c0| 6c 65 20 6c 69 73 74 48 | 64 6c 20 3d 20 69 6e 66 |le listH|dl = inf|
|000006d0| 6f 50 74 72 2d 3e 69 74 | 65 6d 2e 6c 69 73 74 3b |oPtr->it|em.list;|
|000006e0| 0d 09 72 65 67 69 73 74 | 65 72 20 47 6e 6f 73 50 |..regist|er GnosP|
|000006f0| 74 72 20 67 6e 6f 73 50 | 74 72 20 3d 20 67 6e 6f |tr gnosP|tr = gno|
|00000700| 73 4c 69 73 74 2e 68 65 | 61 64 3b 0d 09 72 65 67 |sList.he|ad;..reg|
|00000710| 69 73 74 65 72 20 43 65 | 6c 6c 20 74 68 65 43 65 |ister Ce|ll theCe|
|00000720| 6c 6c 3b 0d 09 53 74 72 | 32 35 35 20 69 74 65 6d |ll;..Str|255 item|
|00000730| 54 65 78 74 3b 0d 09 47 | 72 61 66 50 74 72 20 73 |Text;..G|rafPtr s|
|00000740| 61 76 65 50 6f 72 74 3b | 0d 0d 09 47 65 74 50 6f |avePort;|...GetPo|
|00000750| 72 74 28 26 73 61 76 65 | 50 6f 72 74 29 3b 0d 09 |rt(&save|Port);..|
|00000760| 53 65 74 50 6f 72 74 28 | 77 50 74 72 47 6e 6f 73 |SetPort(|wPtrGnos|
|00000770| 29 3b 0d 0d 09 2f 2a 20 | 52 65 73 69 7a 65 20 74 |);.../* |Resize t|
|00000780| 68 65 20 6c 69 73 74 20 | 6c 65 6e 67 74 68 0d 09 |he list |length..|
|00000790| 20 2a 2f 0d 09 4c 44 6f | 44 72 61 77 28 46 41 4c | */..LDo|Draw(FAL|
|000007a0| 53 45 2c 20 6c 69 73 74 | 48 64 6c 29 3b 0d 09 4c |SE, list|Hdl);..L|
|000007b0| 44 65 6c 52 6f 77 28 30 | 2c 20 30 2c 20 6c 69 73 |DelRow(0|, 0, lis|
|000007c0| 74 48 64 6c 29 3b 0d 09 | 74 68 65 43 65 6c 6c 2e |tHdl);..|theCell.|
|000007d0| 68 20 3d 20 30 3b 0d 09 | 74 68 65 43 65 6c 6c 2e |h = 0;..|theCell.|
|000007e0| 76 20 3d 20 30 3b 0d 0d | 09 66 6f 72 20 28 74 68 |v = 0;..|.for (th|
|000007f0| 65 43 65 6c 6c 2e 76 20 | 3d 20 30 3b 20 67 6e 6f |eCell.v |= 0; gno|
|00000800| 73 50 74 72 3b 20 67 6e | 6f 73 50 74 72 20 3d 20 |sPtr; gn|osPtr = |
|00000810| 67 6e 6f 73 50 74 72 2d | 3e 6e 65 78 74 29 20 7b |gnosPtr-|>next) {|
|00000820| 0d 09 09 41 70 70 6c 53 | 70 69 6e 43 75 72 73 28 |...ApplS|pinCurs(|
|00000830| 46 41 4c 53 45 29 3b 0d | 09 09 53 74 72 50 43 70 |FALSE);.|..StrPCp|
|00000840| 79 28 69 74 65 6d 54 65 | 78 74 2c 20 67 6e 6f 73 |y(itemTe|xt, gnos|
|00000850| 50 74 72 2d 3e 74 69 74 | 6c 65 29 3b 0d 0d 09 09 |Ptr->tit|le);....|
|00000860| 4c 41 64 64 52 6f 77 28 | 31 2c 20 30 2c 20 6c 69 |LAddRow(|1, 0, li|
|00000870| 73 74 48 64 6c 29 3b 0d | 09 09 4c 53 65 74 43 65 |stHdl);.|..LSetCe|
|00000880| 6c 6c 28 69 74 65 6d 54 | 65 78 74 20 2b 20 31 2c |ll(itemT|ext + 1,|
|00000890| 20 69 74 65 6d 54 65 78 | 74 5b 30 5d 2c 20 74 68 | itemTex|t[0], th|
|000008a0| 65 43 65 6c 6c 2c 20 6c | 69 73 74 48 64 6c 29 3b |eCell, l|istHdl);|
|000008b0| 0d 09 7d 0d 0d 09 2f 2a | 20 53 77 69 74 63 68 20 |..}.../*| Switch |
|000008c0| 74 6f 20 74 68 65 20 72 | 65 73 6f 75 72 63 65 20 |to the r|esource |
|000008d0| 6c 69 73 74 20 77 69 6e | 64 6f 77 20 61 6e 64 20 |list win|dow and |
|000008e0| 72 65 64 72 61 77 20 69 | 74 0d 09 20 2a 2f 0d 09 |redraw i|t.. */..|
|000008f0| 49 6e 76 61 6c 52 65 63 | 74 28 26 77 50 74 72 47 |InvalRec|t(&wPtrG|
|00000900| 6e 6f 73 2d 3e 70 6f 72 | 74 52 65 63 74 29 3b 0d |nos->por|tRect);.|
|00000910| 09 4c 44 6f 44 72 61 77 | 28 54 52 55 45 2c 20 6c |.LDoDraw|(TRUE, l|
|00000920| 69 73 74 48 64 6c 29 3b | 0d 0d 09 69 66 20 28 21 |istHdl);|...if (!|
|00000930| 28 28 57 69 6e 64 6f 77 | 50 65 65 6b 29 20 77 50 |((Window|Peek) wP|
|00000940| 74 72 47 6e 6f 73 29 2d | 3e 76 69 73 69 62 6c 65 |trGnos)-|>visible|
|00000950| 29 0d 09 09 57 69 6e 64 | 53 77 69 74 63 68 28 77 |)...Wind|Switch(w|
|00000960| 50 74 72 47 6e 6f 73 2c | 20 54 52 55 45 29 3b 0d |PtrGnos,| TRUE);.|
|00000970| 0d 09 53 65 74 50 6f 72 | 74 28 73 61 76 65 50 6f |..SetPor|t(savePo|
|00000980| 72 74 29 3b 0d 7d 0d 0d | 0d 2f 2a 20 4f 70 65 6e |rt);.}..|./* Open|
|00000990| 20 74 68 65 20 69 6e 64 | 65 78 65 64 20 70 72 6f | the ind|exed pro|
|000009a0| 67 6e 6f 73 69 73 20 61 | 6e 61 6c 79 73 69 73 0d |gnosis a|nalysis.|
|000009b0| 20 2a 2f 0d 76 6f 69 64 | 0d 47 6e 6f 73 4f 70 65 | */.void|.GnosOpe|
|000009c0| 6e 41 6e 61 6c 20 28 74 | 68 65 47 6e 6f 73 29 0d |nAnal (t|heGnos).|
|000009d0| 09 72 65 67 69 73 74 65 | 72 20 57 4f 52 44 20 74 |.registe|r WORD t|
|000009e0| 68 65 47 6e 6f 73 3b 0d | 7b 0d 09 72 65 67 69 73 |heGnos;.|{..regis|
|000009f0| 74 65 72 20 47 6e 6f 73 | 50 74 72 20 67 6e 6f 73 |ter Gnos|Ptr gnos|
|00000a00| 50 74 72 20 3d 20 67 6e | 6f 73 4c 69 73 74 2e 68 |Ptr = gn|osList.h|
|00000a10| 65 61 64 3b 0d 09 72 65 | 67 69 73 74 65 72 20 57 |ead;..re|gister W|
|00000a20| 4f 52 44 20 74 68 65 49 | 6e 64 65 78 3b 0d 09 0d |ORD theI|ndex;...|
|00000a30| 09 69 66 20 28 28 74 68 | 65 47 6e 6f 73 20 3e 3d |.if ((th|eGnos >=|
|00000a40| 20 30 29 20 26 26 20 28 | 74 68 65 47 6e 6f 73 20 | 0) && (|theGnos |
|00000a50| 3c 20 67 6e 6f 73 4c 69 | 73 74 2e 63 6f 75 6e 74 |< gnosLi|st.count|
|00000a60| 29 29 20 7b 0d 09 09 66 | 6f 72 20 28 74 68 65 49 |)) {...f|or (theI|
|00000a70| 6e 64 65 78 20 3d 20 67 | 6e 6f 73 4c 69 73 74 2e |ndex = g|nosList.|
|00000a80| 63 6f 75 6e 74 20 2d 20 | 31 3b 20 74 68 65 49 6e |count - |1; theIn|
|00000a90| 64 65 78 20 3e 20 74 68 | 65 47 6e 6f 73 3b 20 74 |dex > th|eGnos; t|
|00000aa0| 68 65 49 6e 64 65 78 2d | 2d 29 20 0d 09 09 09 67 |heIndex-|-) ....g|
|00000ab0| 6e 6f 73 50 74 72 20 3d | 20 67 6e 6f 73 50 74 72 |nosPtr =| gnosPtr|
|00000ac0| 2d 3e 6e 65 78 74 3b 0d | 09 09 0d 09 09 67 6e 6f |->next;.|.....gno|
|00000ad0| 73 4c 69 73 74 2e 6f 70 | 65 6e 20 3d 20 67 6e 6f |sList.op|en = gno|
|00000ae0| 73 50 74 72 3b 0d 0d 09 | 09 41 6e 61 6c 50 75 74 |sPtr;...|.AnalPut|
|00000af0| 42 75 66 28 67 6e 6f 73 | 50 74 72 29 3b 0d 09 09 |Buf(gnos|Ptr);...|
|00000b00| 57 69 6e 64 53 77 69 74 | 63 68 28 64 50 74 72 41 |WindSwit|ch(dPtrA|
|00000b10| 6e 61 6c 2c 20 54 52 55 | 45 29 3b 0d 09 7d 0d 7d |nal, TRU|E);..}.}|
|00000b20| 0d 0d 0d 2f 2a 20 4f 70 | 65 6e 20 74 68 65 20 69 |.../* Op|en the i|
|00000b30| 6e 64 65 78 65 64 20 70 | 72 6f 67 6e 6f 73 69 73 |ndexed p|rognosis|
|00000b40| 20 64 65 73 63 72 69 70 | 74 69 6f 6e 20 74 65 78 | descrip|tion tex|
|00000b50| 74 0d 20 2a 2f 0d 76 6f | 69 64 0d 47 6e 6f 73 4f |t. */.vo|id.GnosO|
|00000b60| 70 65 6e 54 65 78 74 20 | 28 57 4f 52 44 20 74 68 |penText |(WORD th|
|00000b70| 65 47 6e 6f 73 29 0d 7b | 0d 09 72 65 67 69 73 74 |eGnos).{|..regist|
|00000b80| 65 72 20 47 6e 6f 73 50 | 74 72 20 67 6e 6f 73 50 |er GnosP|tr gnosP|
|00000b90| 74 72 20 3d 20 67 6e 6f | 73 4c 69 73 74 2e 68 65 |tr = gno|sList.he|
|00000ba0| 61 64 3b 0d 09 72 65 67 | 69 73 74 65 72 20 53 69 |ad;..reg|ister Si|
|00000bb0| 67 6e 65 64 42 79 74 65 | 20 68 64 6c 53 74 61 74 |gnedByte| hdlStat|
|00000bc0| 65 3b 0d 09 72 65 67 69 | 73 74 65 72 20 57 4f 52 |e;..regi|ster WOR|
|00000bd0| 44 20 74 68 65 49 6e 64 | 65 78 3b 0d 0d 09 69 66 |D theInd|ex;...if|
|00000be0| 20 28 28 74 68 65 47 6e | 6f 73 20 3e 3d 20 30 29 | ((theGn|os >= 0)|
|00000bf0| 20 26 26 20 28 74 68 65 | 47 6e 6f 73 20 3c 20 67 | && (the|Gnos < g|
|00000c00| 6e 6f 73 4c 69 73 74 2e | 63 6f 75 6e 74 29 29 20 |nosList.|count)) |
|00000c10| 7b 0d 09 09 66 6f 72 20 | 28 74 68 65 49 6e 64 65 |{...for |(theInde|
|00000c20| 78 20 3d 20 67 6e 6f 73 | 4c 69 73 74 2e 63 6f 75 |x = gnos|List.cou|
|00000c30| 6e 74 20 2d 20 31 3b 20 | 74 68 65 49 6e 64 65 78 |nt - 1; |theIndex|
|00000c40| 20 3e 20 74 68 65 47 6e | 6f 73 3b 20 74 68 65 49 | > theGn|os; theI|
|00000c50| 6e 64 65 78 2d 2d 29 20 | 0d 09 09 09 67 6e 6f 73 |ndex--) |....gnos|
|00000c60| 50 74 72 20 3d 20 67 6e | 6f 73 50 74 72 2d 3e 6e |Ptr = gn|osPtr->n|
|00000c70| 65 78 74 3b 0d 09 09 0d | 09 09 68 64 6c 53 74 61 |ext;....|..hdlSta|
|00000c80| 74 65 20 3d 20 48 47 65 | 74 53 74 61 74 65 28 67 |te = HGe|tState(g|
|00000c90| 6e 6f 73 50 74 72 2d 3e | 74 65 78 74 48 64 6c 29 |nosPtr->|textHdl)|
|00000ca0| 3b 0d 09 09 48 4c 6f 63 | 6b 28 67 6e 6f 73 50 74 |;...HLoc|k(gnosPt|
|00000cb0| 72 2d 3e 74 65 78 74 48 | 64 6c 29 3b 0d 09 09 0d |r->textH|dl);....|
|00000cc0| 09 09 54 65 78 74 57 69 | 6e 64 52 65 73 65 74 28 |..TextWi|ndReset(|
|00000cd0| 77 50 74 72 54 65 78 74 | 29 3b 0d 09 09 54 65 78 |wPtrText|);...Tex|
|00000ce0| 74 50 75 74 54 65 78 74 | 28 2a 28 67 6e 6f 73 50 |tPutText|(*(gnosP|
|00000cf0| 74 72 2d 3e 74 65 78 74 | 48 64 6c 29 2c 20 47 65 |tr->text|Hdl), Ge|
|00000d00| 74 48 61 6e 64 6c 65 53 | 69 7a 65 28 67 6e 6f 73 |tHandleS|ize(gnos|
|00000d10| 50 74 72 2d 3e 74 65 78 | 74 48 64 6c 29 2c 20 77 |Ptr->tex|tHdl), w|
|00000d20| 50 74 72 54 65 78 74 29 | 3b 0d 09 0d 09 09 48 53 |PtrText)|;.....HS|
|00000d30| 65 74 53 74 61 74 65 28 | 67 6e 6f 73 50 74 72 2d |etState(|gnosPtr-|
|00000d40| 3e 74 65 78 74 48 64 6c | 2c 20 68 64 6c 53 74 61 |>textHdl|, hdlSta|
|00000d50| 74 65 29 3b 0d 09 09 57 | 69 6e 64 53 77 69 74 63 |te);...W|indSwitc|
|00000d60| 68 28 77 50 74 72 54 65 | 78 74 2c 20 54 52 55 45 |h(wPtrTe|xt, TRUE|
|00000d70| 29 3b 0d 09 7d 0d 7d 0d | 0d 0d 2f 2a 20 53 61 76 |);..}.}.|../* Sav|
|00000d80| 65 20 74 68 65 20 63 75 | 72 72 65 6e 74 20 70 72 |e the cu|rrent pr|
|00000d90| 6f 67 6e 6f 73 69 73 0d | 20 2a 2f 0d 76 6f 69 64 |ognosis.| */.void|
|00000da0| 0d 47 6e 6f 73 53 61 76 | 65 20 28 29 0d 7b 0d 09 |.GnosSav|e ().{..|
|00000db0| 72 65 67 69 73 74 65 72 | 20 54 45 48 61 6e 64 6c |register| TEHandl|
|00000dc0| 65 20 74 65 48 64 6c 20 | 3d 20 28 28 49 6e 66 6f |e teHdl |= ((Info|
|00000dd0| 50 74 72 29 20 47 65 74 | 57 52 65 66 43 6f 6e 28 |Ptr) Get|WRefCon(|
|00000de0| 77 50 74 72 54 65 78 74 | 29 29 2d 3e 69 74 65 6d |wPtrText|))->item|
|00000df0| 2e 74 65 78 74 2e 74 65 | 48 64 6c 3b 0d 09 72 65 |.text.te|Hdl;..re|
|00000e00| 67 69 73 74 65 72 20 53 | 69 67 6e 65 64 42 79 74 |gister S|ignedByt|
|00000e10| 65 20 68 64 6c 53 74 61 | 74 65 3b 0d 0d 09 69 66 |e hdlSta|te;...if|
|00000e20| 20 28 67 6e 6f 73 4c 69 | 73 74 2e 6f 70 65 6e 20 | (gnosLi|st.open |
|00000e30| 26 26 20 21 74 65 73 74 | 55 73 65 72 29 20 7b 0d |&& !test|User) {.|
|00000e40| 09 09 2f 2a 20 46 69 72 | 73 74 2c 20 72 65 61 64 |../* Fir|st, read|
|00000e50| 20 74 68 65 20 61 6e 61 | 6c 79 73 69 73 0d 09 09 | the ana|lysis...|
|00000e60| 20 2a 2f 0d 09 09 69 66 | 20 28 28 28 57 69 6e 64 | */...if| (((Wind|
|00000e70| 6f 77 50 65 65 6b 29 20 | 64 50 74 72 41 6e 61 6c |owPeek) |dPtrAnal|
|00000e80| 29 2d 3e 76 69 73 69 62 | 6c 65 29 0d 09 09 09 41 |)->visib|le)....A|
|00000e90| 6e 61 6c 47 65 74 42 75 | 66 28 67 6e 6f 73 4c 69 |nalGetBu|f(gnosLi|
|00000ea0| 73 74 2e 6f 70 65 6e 29 | 3b 0d 09 0d 09 09 2f 2a |st.open)|;...../*|
|00000eb0| 20 4e 65 78 74 2c 20 72 | 65 61 64 20 74 68 65 20 | Next, r|ead the |
|00000ec0| 64 65 73 63 72 69 70 74 | 69 6f 6e 20 74 65 78 74 |descript|ion text|
|00000ed0| 0d 09 09 20 2a 2f 0d 09 | 09 69 66 20 28 28 28 57 |... */..|.if (((W|
|00000ee0| 69 6e 64 6f 77 50 65 65 | 6b 29 20 77 50 74 72 54 |indowPee|k) wPtrT|
|00000ef0| 65 78 74 29 2d 3e 76 69 | 73 69 62 6c 65 29 20 7b |ext)->vi|sible) {|
|00000f00| 0d 09 09 09 68 64 6c 53 | 74 61 74 65 20 3d 20 48 |....hdlS|tate = H|
|00000f10| 47 65 74 53 74 61 74 65 | 28 67 6e 6f 73 4c 69 73 |GetState|(gnosLis|
|00000f20| 74 2e 6f 70 65 6e 2d 3e | 74 65 78 74 48 64 6c 29 |t.open->|textHdl)|
|00000f30| 3b 0d 09 09 09 48 4c 6f | 63 6b 28 67 6e 6f 73 4c |;....HLo|ck(gnosL|
|00000f40| 69 73 74 2e 6f 70 65 6e | 2d 3e 74 65 78 74 48 64 |ist.open|->textHd|
|00000f50| 6c 29 3b 0d 09 09 09 0d | 09 09 09 53 65 74 48 61 |l);.....|...SetHa|
|00000f60| 6e 64 6c 65 53 69 7a 65 | 28 67 6e 6f 73 4c 69 73 |ndleSize|(gnosLis|
|00000f70| 74 2e 6f 70 65 6e 2d 3e | 74 65 78 74 48 64 6c 2c |t.open->|textHdl,|
|00000f80| 20 28 53 69 7a 65 29 20 | 28 2a 74 65 48 64 6c 29 | (Size) |(*teHdl)|
|00000f90| 2d 3e 74 65 4c 65 6e 67 | 74 68 29 3b 0d 09 09 09 |->teLeng|th);....|
|00000fa0| 42 6c 6f 63 6b 4d 6f 76 | 65 28 2a 28 54 45 47 65 |BlockMov|e(*(TEGe|
|00000fb0| 74 54 65 78 74 28 74 65 | 48 64 6c 29 29 2c 20 2a |tText(te|Hdl)), *|
|00000fc0| 67 6e 6f 73 4c 69 73 74 | 2e 6f 70 65 6e 2d 3e 74 |gnosList|.open->t|
|00000fd0| 65 78 74 48 64 6c 2c 20 | 28 53 69 7a 65 29 20 28 |extHdl, |(Size) (|
|00000fe0| 2a 74 65 48 64 6c 29 2d | 3e 74 65 4c 65 6e 67 74 |*teHdl)-|>teLengt|
|00000ff0| 68 29 3b 0d 09 0d 09 09 | 09 48 53 65 74 53 74 61 |h);.....|.HSetSta|
|00001000| 74 65 28 67 6e 6f 73 4c | 69 73 74 2e 6f 70 65 6e |te(gnosL|ist.open|
|00001010| 2d 3e 74 65 78 74 48 64 | 6c 2c 20 68 64 6c 53 74 |->textHd|l, hdlSt|
|00001020| 61 74 65 29 3b 0d 09 09 | 7d 0d 09 09 0d 09 09 67 |ate);...|}......g|
|00001030| 6e 6f 73 4c 69 73 74 2e | 6f 70 65 6e 20 3d 20 4e |nosList.|open = N|
|00001040| 55 4c 4c 3b 0d 09 7d 0d | 7d 0d 0d 0d 2f 2a 20 43 |ULL;..}.|}.../* C|
|00001050| 6c 6f 73 65 20 61 6c 6c | 20 74 68 65 20 70 72 6f |lose all| the pro|
|00001060| 67 6e 6f 73 69 73 0d 20 | 2a 2f 0d 76 6f 69 64 0d |gnosis. |*/.void.|
|00001070| 47 6e 6f 73 43 6c 6f 73 | 65 20 28 29 0d 7b 0d 09 |GnosClos|e ().{..|
|00001080| 72 65 67 69 73 74 65 72 | 20 47 6e 6f 73 50 74 72 |register| GnosPtr|
|00001090| 20 67 6e 6f 73 50 74 72 | 20 3d 20 67 6e 6f 73 4c | gnosPtr| = gnosL|
|000010a0| 69 73 74 2e 68 65 61 64 | 3b 0d 0d 09 47 6e 6f 73 |ist.head|;...Gnos|
|000010b0| 53 61 76 65 28 29 3b 0d | 0d 09 66 6f 72 20 28 3b |Save();.|..for (;|
|000010c0| 20 67 6e 6f 73 4c 69 73 | 74 2e 63 6f 75 6e 74 2d | gnosLis|t.count-|
|000010d0| 2d 3b 20 29 20 7b 0d 09 | 09 67 6e 6f 73 4c 69 73 |-; ) {..|.gnosLis|
|000010e0| 74 2e 68 65 61 64 20 3d | 20 67 6e 6f 73 50 74 72 |t.head =| gnosPtr|
|000010f0| 2d 3e 6e 65 78 74 3b 0d | 09 09 44 69 73 70 6f 73 |->next;.|..Dispos|
|00001100| 48 61 6e 64 6c 65 28 67 | 6e 6f 73 50 74 72 2d 3e |Handle(g|nosPtr->|
|00001110| 74 65 78 74 48 64 6c 29 | 3b 0d 09 09 44 69 73 70 |textHdl)|;...Disp|
|00001120| 6f 73 50 74 72 28 67 6e | 6f 73 50 74 72 29 3b 0d |osPtr(gn|osPtr);.|
|00001130| 09 09 0d 09 09 67 6e 6f | 73 50 74 72 20 3d 20 67 |.....gno|sPtr = g|
|00001140| 6e 6f 73 4c 69 73 74 2e | 68 65 61 64 3b 0d 09 7d |nosList.|head;..}|
|00001150| 0d 0d 09 67 6e 6f 73 4c | 69 73 74 2e 63 6f 75 6e |...gnosL|ist.coun|
|00001160| 74 20 3d 20 30 3b 0d 09 | 67 6e 6f 73 4c 69 73 74 |t = 0;..|gnosList|
|00001170| 2e 68 65 61 64 20 3d 20 | 4e 55 4c 4c 3b 0d 09 67 |.head = |NULL;..g|
|00001180| 6e 6f 73 4c 69 73 74 2e | 6f 70 65 6e 20 3d 20 4e |nosList.|open = N|
|00001190| 55 4c 4c 3b 0d 09 09 0d | 09 57 69 6e 64 53 77 69 |ULL;....|.WindSwi|
|000011a0| 74 63 68 28 77 50 74 72 | 47 6e 6f 73 2c 20 46 41 |tch(wPtr|Gnos, FA|
|000011b0| 4c 53 45 29 3b 0d 09 57 | 69 6e 64 53 77 69 74 63 |LSE);..W|indSwitc|
|000011c0| 68 28 64 50 74 72 41 6e | 61 6c 2c 20 46 41 4c 53 |h(dPtrAn|al, FALS|
|000011d0| 45 29 3b 0d 09 57 69 6e | 64 53 77 69 74 63 68 28 |E);..Win|dSwitch(|
|000011e0| 77 50 74 72 54 65 78 74 | 2c 20 46 41 4c 53 45 29 |wPtrText|, FALSE)|
|000011f0| 3b 0d 7d 0d 0d 0d 2f 2a | 20 48 61 6e 64 6c 65 20 |;.}.../*| Handle |
|00001200| 61 20 63 6c 69 63 6b 20 | 69 6e 73 69 64 65 20 74 |a click |inside t|
|00001210| 68 65 20 70 72 6f 67 6e | 6f 73 69 73 20 6c 69 73 |he progn|osis lis|
|00001220| 74 20 77 69 6e 64 6f 77 | 0d 20 2a 2f 0d 76 6f 69 |t window|. */.voi|
|00001230| 64 20 0d 47 6e 6f 73 43 | 6c 69 63 6b 20 28 74 68 |d .GnosC|lick (th|
|00001240| 65 43 65 6c 6c 2c 20 64 | 62 6c 43 6c 69 63 6b 29 |eCell, d|blClick)|
|00001250| 0d 09 72 65 67 69 73 74 | 65 72 20 43 65 6c 6c 20 |..regist|er Cell |
|00001260| 74 68 65 43 65 6c 6c 3b | 0d 09 72 65 67 69 73 74 |theCell;|..regist|
|00001270| 65 72 20 42 6f 6f 6c 65 | 61 6e 20 64 62 6c 43 6c |er Boole|an dblCl|
|00001280| 69 63 6b 3b 0d 7b 0d 09 | 2f 2a 20 46 69 72 73 74 |ick;.{..|/* First|
|00001290| 2c 20 73 61 76 65 20 61 | 6e 79 20 63 75 72 72 65 |, save a|ny curre|
|000012a0| 6e 74 20 70 72 6f 67 6e | 6f 73 69 73 20 61 6e 64 |nt progn|osis and|
|000012b0| 20 75 70 64 61 74 65 20 | 74 69 74 6c 65 73 0d 09 | update |titles..|
|000012c0| 20 2a 2f 0d 09 47 6e 6f | 73 53 61 76 65 28 29 3b | */..Gno|sSave();|
|000012d0| 0d 09 47 6e 6f 73 52 65 | 66 72 65 73 68 28 29 3b |..GnosRe|fresh();|
|000012e0| 0d 0d 09 2f 2a 20 4f 70 | 65 6e 20 74 68 65 20 73 |.../* Op|en the s|
|000012f0| 65 6c 65 63 74 65 64 20 | 70 72 6f 67 6e 6f 73 69 |elected |prognosi|
|00001300| 73 0d 09 20 2a 2f 0d 09 | 47 6e 6f 73 4f 70 65 6e |s.. */..|GnosOpen|
|00001310| 41 6e 61 6c 28 74 68 65 | 43 65 6c 6c 2e 76 29 3b |Anal(the|Cell.v);|
|00001320| 0d 09 47 6e 6f 73 4f 70 | 65 6e 54 65 78 74 28 74 |..GnosOp|enText(t|
|00001330| 68 65 43 65 6c 6c 2e 76 | 29 3b 0d 7d 0d 0d 0d 2f |heCell.v|);.}.../|
|00001340| 2a 20 43 6f 6e 76 65 72 | 74 20 66 72 6f 6d 20 74 |* Conver|t from t|
|00001350| 68 65 20 63 68 61 72 61 | 63 74 65 72 20 62 61 73 |he chara|cter bas|
|00001360| 65 64 20 67 6e 6f 73 20 | 64 61 74 61 20 70 6f 69 |ed gnos |data poi|
|00001370| 6e 74 65 72 20 74 6f 20 | 74 68 65 20 62 69 74 6d |nter to |the bitm|
|00001380| 61 70 0d 20 2a 20 72 65 | 71 75 69 72 65 64 20 74 |ap. * re|quired t|
|00001390| 6f 20 63 6f 6e 64 69 74 | 69 6f 6e 20 74 68 65 20 |o condit|ion the |
|000013a0| 6e 65 75 72 61 6c 20 6e | 65 74 77 6f 72 6b 0d 20 |neural n|etwork. |
|000013b0| 2a 2f 0d 76 6f 69 64 0d | 47 6e 6f 73 53 74 75 66 |*/.void.|GnosStuf|
|000013c0| 66 42 69 74 73 20 28 67 | 6e 6f 73 50 74 72 2c 20 |fBits (g|nosPtr, |
|000013d0| 67 6e 6f 73 42 69 74 73 | 29 0d 09 72 65 67 69 73 |gnosBits|)..regis|
|000013e0| 74 65 72 20 47 6e 6f 73 | 50 74 72 20 67 6e 6f 73 |ter Gnos|Ptr gnos|
|000013f0| 50 74 72 3b 0d 09 72 65 | 67 69 73 74 65 72 20 42 |Ptr;..re|gister B|
|00001400| 6f 6f 6c 65 61 6e 20 2a | 67 6e 6f 73 42 69 74 73 |oolean *|gnosBits|
|00001410| 3b 0d 7b 0d 09 72 65 67 | 69 73 74 65 72 20 57 4f |;.{..reg|ister WO|
|00001420| 52 44 20 69 2c 20 76 61 | 6c 75 65 2c 20 74 68 65 |RD i, va|lue, the|
|00001430| 42 69 74 20 3d 20 30 3b | 0d 0d 09 66 6f 72 20 28 |Bit = 0;|...for (|
|00001440| 69 20 3d 20 4d 41 58 50 | 41 44 20 2a 20 32 3b 20 |i = MAXP|AD * 2; |
|00001450| 2d 2d 69 3b 29 20 7b 0d | 09 09 76 61 6c 75 65 20 |--i;) {.|..value |
|00001460| 3d 20 67 6e 6f 73 50 74 | 72 2d 3e 63 6f 6c 6f 72 |= gnosPt|r->color|
|00001470| 5b 30 5d 5b 69 5d 20 2d | 20 27 30 27 3b 0d 09 09 |[0][i] -| '0';...|
|00001480| 67 6e 6f 73 42 69 74 73 | 5b 74 68 65 42 69 74 2b |gnosBits|[theBit+|
|00001490| 2b 5d 20 3d 20 28 76 61 | 6c 75 65 20 26 20 30 78 |+] = (va|lue & 0x|
|000014a0| 30 31 29 20 3f 20 54 52 | 55 45 20 3a 20 46 41 4c |01) ? TR|UE : FAL|
|000014b0| 53 45 3b 0d 09 09 67 6e | 6f 73 42 69 74 73 5b 74 |SE;...gn|osBits[t|
|000014c0| 68 65 42 69 74 2b 2b 5d | 20 3d 20 28 76 61 6c 75 |heBit++]| = (valu|
|000014d0| 65 20 26 20 30 78 30 32 | 29 20 3f 20 54 52 55 45 |e & 0x02|) ? TRUE|
|000014e0| 20 3a 20 46 41 4c 53 45 | 3b 0d 09 09 67 6e 6f 73 | : FALSE|;...gnos|
|000014f0| 42 69 74 73 5b 74 68 65 | 42 69 74 2b 2b 5d 20 3d |Bits[the|Bit++] =|
|00001500| 20 28 76 61 6c 75 65 20 | 26 20 30 78 30 34 29 20 | (value |& 0x04) |
|00001510| 3f 20 54 52 55 45 20 3a | 20 46 41 4c 53 45 3b 0d |? TRUE :| FALSE;.|
|00001520| 09 7d 0d 09 0d 09 41 70 | 70 6c 53 70 69 6e 43 75 |.}....Ap|plSpinCu|
|00001530| 72 73 28 46 41 4c 53 45 | 29 3b 0d 09 0d 09 66 6f |rs(FALSE|);....fo|
|00001540| 72 20 28 69 20 3d 20 4d | 41 58 50 41 44 20 2a 20 |r (i = M|AXPAD * |
|00001550| 32 3b 20 2d 2d 69 3b 29 | 20 7b 0d 09 09 76 61 6c |2; --i;)| {...val|
|00001560| 75 65 20 3d 20 67 6e 6f | 73 50 74 72 2d 3e 70 61 |ue = gno|sPtr->pa|
|00001570| 69 72 5b 30 5d 5b 69 5d | 20 2d 20 27 30 27 3b 0d |ir[0][i]| - '0';.|
|00001580| 09 09 67 6e 6f 73 42 69 | 74 73 5b 74 68 65 42 69 |..gnosBi|ts[theBi|
|00001590| 74 2b 2b 5d 20 3d 20 28 | 76 61 6c 75 65 20 26 20 |t++] = (|value & |
|000015a0| 30 78 30 31 29 20 3f 20 | 54 52 55 45 20 3a 20 46 |0x01) ? |TRUE : F|
|000015b0| 41 4c 53 45 3b 0d 09 09 | 67 6e 6f 73 42 69 74 73 |ALSE;...|gnosBits|
|000015c0| 5b 74 68 65 42 69 74 2b | 2b 5d 20 3d 20 28 76 61 |[theBit+|+] = (va|
|000015d0| 6c 75 65 20 26 20 30 78 | 30 32 29 20 3f 20 54 52 |lue & 0x|02) ? TR|
|000015e0| 55 45 20 3a 20 46 41 4c | 53 45 3b 0d 09 09 67 6e |UE : FAL|SE;...gn|
|000015f0| 6f 73 42 69 74 73 5b 74 | 68 65 42 69 74 2b 2b 5d |osBits[t|heBit++]|
|00001600| 20 3d 20 28 76 61 6c 75 | 65 20 26 20 30 78 30 34 | = (valu|e & 0x04|
|00001610| 29 20 3f 20 54 52 55 45 | 20 3a 20 46 41 4c 53 45 |) ? TRUE| : FALSE|
|00001620| 3b 0d 09 7d 0d 0d 09 41 | 70 70 6c 53 70 69 6e 43 |;..}...A|pplSpinC|
|00001630| 75 72 73 28 46 41 4c 53 | 45 29 3b 0d 09 0d 09 66 |urs(FALS|E);....f|
|00001640| 6f 72 20 28 69 20 3d 20 | 4d 41 58 50 41 44 20 2a |or (i = |MAXPAD *|
|00001650| 20 32 3b 20 2d 2d 69 3b | 29 20 7b 0d 09 09 73 77 | 2; --i;|) {...sw|
|00001660| 69 74 63 68 20 28 67 6e | 6f 73 50 74 72 2d 3e 6d |itch (gn|osPtr->m|
|00001670| 61 72 6b 5b 30 5d 5b 69 | 5d 29 20 7b 0d 09 09 63 |ark[0][i|]) {...c|
|00001680| 61 73 65 20 27 2b 27 3a | 0d 09 09 09 76 61 6c 75 |ase '+':|....valu|
|00001690| 65 20 3d 20 30 3b 0d 09 | 09 09 62 72 65 61 6b 3b |e = 0;..|..break;|
|000016a0| 0d 09 09 63 61 73 65 20 | 27 78 27 3a 0d 09 09 09 |...case |'x':....|
|000016b0| 76 61 6c 75 65 20 3d 20 | 31 3b 0d 09 09 09 62 72 |value = |1;....br|
|000016c0| 65 61 6b 3b 0d 09 09 63 | 61 73 65 20 27 3d 27 3a |eak;...c|ase '=':|
|000016d0| 0d 09 09 09 76 61 6c 75 | 65 20 3d 20 32 3b 0d 09 |....valu|e = 2;..|
|000016e0| 09 09 62 72 65 61 6b 3b | 0d 09 09 63 61 73 65 20 |..break;|...case |
|000016f0| 27 2d 27 3a 0d 09 09 09 | 76 61 6c 75 65 20 3d 20 |'-':....|value = |
|00001700| 33 3b 0d 09 09 09 62 72 | 65 61 6b 3b 0d 09 09 64 |3;....br|eak;...d|
|00001710| 65 66 61 75 6c 74 3a 0d | 09 09 09 62 72 65 61 6b |efault:.|...break|
|00001720| 3b 0d 09 09 7d 0d 0d 09 | 09 67 6e 6f 73 42 69 74 |;...}...|.gnosBit|
|00001730| 73 5b 74 68 65 42 69 74 | 2b 2b 5d 20 3d 20 28 76 |s[theBit|++] = (v|
|00001740| 61 6c 75 65 20 26 20 30 | 78 30 31 29 20 3f 20 54 |alue & 0|x01) ? T|
|00001750| 52 55 45 20 3a 20 46 41 | 4c 53 45 3b 0d 09 09 67 |RUE : FA|LSE;...g|
|00001760| 6e 6f 73 42 69 74 73 5b | 74 68 65 42 69 74 2b 2b |nosBits[|theBit++|
|00001770| 5d 20 3d 20 28 76 61 6c | 75 65 20 26 20 30 78 30 |] = (val|ue & 0x0|
|00001780| 32 29 20 3f 20 54 52 55 | 45 20 3a 20 46 41 4c 53 |2) ? TRU|E : FALS|
|00001790| 45 3b 0d 09 7d 0d 0d 09 | 41 70 70 6c 53 70 69 6e |E;..}...|ApplSpin|
|000017a0| 43 75 72 73 28 46 41 4c | 53 45 29 3b 0d 09 0d 09 |Curs(FAL|SE);....|
|000017b0| 66 6f 72 20 28 69 20 3d | 20 4d 41 58 50 41 44 20 |for (i =| MAXPAD |
|000017c0| 2a 20 32 3b 20 2d 2d 69 | 3b 29 20 7b 0d 09 09 73 |* 2; --i|;) {...s|
|000017d0| 77 69 74 63 68 20 28 67 | 6e 6f 73 50 74 72 2d 3e |witch (g|nosPtr->|
|000017e0| 61 6e 78 69 65 74 79 5b | 30 5d 5b 69 5d 29 20 7b |anxiety[|0][i]) {|
|000017f0| 0d 09 09 63 61 73 65 20 | 27 20 27 3a 0d 09 09 09 |...case |' ':....|
|00001800| 76 61 6c 75 65 20 3d 20 | 30 3b 0d 09 09 09 62 72 |value = |0;....br|
|00001810| 65 61 6b 3b 0d 09 09 63 | 61 73 65 20 27 41 27 3a |eak;...c|ase 'A':|
|00001820| 0d 09 09 09 76 61 6c 75 | 65 20 3d 20 31 3b 0d 09 |....valu|e = 1;..|
|00001830| 09 09 62 72 65 61 6b 3b | 0d 09 09 63 61 73 65 20 |..break;|...case |
|00001840| 27 43 27 3a 0d 09 09 09 | 76 61 6c 75 65 20 3d 20 |'C':....|value = |
|00001850| 32 3b 0d 09 09 09 62 72 | 65 61 6b 3b 0d 09 09 64 |2;....br|eak;...d|
|00001860| 65 66 61 75 6c 74 3a 0d | 09 09 09 62 72 65 61 6b |efault:.|...break|
|00001870| 3b 0d 09 09 7d 0d 0d 09 | 09 67 6e 6f 73 42 69 74 |;...}...|.gnosBit|
|00001880| 73 5b 74 68 65 42 69 74 | 2b 2b 5d 20 3d 20 28 76 |s[theBit|++] = (v|
|00001890| 61 6c 75 65 20 26 20 30 | 78 30 31 29 20 3f 20 54 |alue & 0|x01) ? T|
|000018a0| 52 55 45 20 3a 20 46 41 | 4c 53 45 3b 0d 09 09 67 |RUE : FA|LSE;...g|
|000018b0| 6e 6f 73 42 69 74 73 5b | 74 68 65 42 69 74 2b 2b |nosBits[|theBit++|
|000018c0| 5d 20 3d 20 28 76 61 6c | 75 65 20 26 20 30 78 30 |] = (val|ue & 0x0|
|000018d0| 32 29 20 3f 20 54 52 55 | 45 20 3a 20 46 41 4c 53 |2) ? TRU|E : FALS|
|000018e0| 45 3b 0d 09 7d 0d 0d 09 | 41 70 70 6c 53 70 69 6e |E;..}...|ApplSpin|
|000018f0| 43 75 72 73 28 46 41 4c | 53 45 29 3b 0d 09 0d 09 |Curs(FAL|SE);....|
|00001900| 66 6f 72 20 28 69 20 3d | 20 4d 41 58 50 41 44 20 |for (i =| MAXPAD |
|00001910| 2a 20 32 3b 20 2d 2d 69 | 3b 29 20 7b 0d 09 09 73 |* 2; --i|;) {...s|
|00001920| 77 69 74 63 68 20 28 67 | 6e 6f 73 50 74 72 2d 3e |witch (g|nosPtr->|
|00001930| 73 74 72 65 73 73 5b 30 | 5d 5b 69 5d 29 20 7b 0d |stress[0|][i]) {.|
|00001940| 09 09 63 61 73 65 20 27 | 20 27 3a 0d 09 09 09 76 |..case '| ':....v|
|00001950| 61 6c 75 65 20 3d 20 30 | 3b 0d 09 09 09 62 72 65 |alue = 0|;....bre|
|00001960| 61 6b 3b 0d 09 09 63 61 | 73 65 20 27 31 27 3a 0d |ak;...ca|se '1':.|
|00001970| 09 09 09 76 61 6c 75 65 | 20 3d 20 31 3b 0d 09 09 |...value| = 1;...|
|00001980| 09 62 72 65 61 6b 3b 0d | 09 09 63 61 73 65 20 27 |.break;.|..case '|
|00001990| 32 27 3a 0d 09 09 09 76 | 61 6c 75 65 20 3d 20 32 |2':....v|alue = 2|
|000019a0| 3b 0d 09 09 09 62 72 65 | 61 6b 3b 0d 09 09 64 65 |;....bre|ak;...de|
|000019b0| 66 61 75 6c 74 3a 0d 09 | 09 09 62 72 65 61 6b 3b |fault:..|..break;|
|000019c0| 0d 09 09 7d 0d 0d 09 09 | 67 6e 6f 73 42 69 74 73 |...}....|gnosBits|
|000019d0| 5b 74 68 65 42 69 74 2b | 2b 5d 20 3d 20 28 76 61 |[theBit+|+] = (va|
|000019e0| 6c 75 65 20 26 20 30 78 | 30 31 29 20 3f 20 54 52 |lue & 0x|01) ? TR|
|000019f0| 55 45 20 3a 20 46 41 4c | 53 45 3b 0d 09 09 67 6e |UE : FAL|SE;...gn|
|00001a00| 6f 73 42 69 74 73 5b 74 | 68 65 42 69 74 2b 2b 5d |osBits[t|heBit++]|
|00001a10| 20 3d 20 28 76 61 6c 75 | 65 20 26 20 30 78 30 32 | = (valu|e & 0x02|
|00001a20| 29 20 3f 20 54 52 55 45 | 20 3a 20 46 41 4c 53 45 |) ? TRUE| : FALSE|
|00001a30| 3b 0d 09 7d 0d 0d 09 41 | 70 70 6c 53 70 69 6e 43 |;..}...A|pplSpinC|
|00001a40| 75 72 73 28 46 41 4c 53 | 45 29 3b 0d 09 0d 09 66 |urs(FALS|E);....f|
|00001a50| 6f 72 20 28 3b 20 74 68 | 65 42 69 74 20 3c 20 47 |or (; th|eBit < G|
|00001a60| 4e 4f 53 5f 42 49 54 53 | 3b 20 74 68 65 42 69 74 |NOS_BITS|; theBit|
|00001a70| 2b 2b 29 0d 09 20 09 67 | 6e 6f 73 42 69 74 73 5b |++).. .g|nosBits[|
|00001a80| 74 68 65 42 69 74 5d 20 | 3d 20 46 41 4c 53 45 3b |theBit] |= FALSE;|
|00001a90| 0d 7d 0d 0d 0d 2f 2a 20 | 54 65 61 63 68 20 74 68 |.}.../* |Teach th|
|00001aa0| 65 20 6e 65 75 72 61 6c | 20 6e 65 74 77 6f 72 6b |e neural| network|
|00001ab0| 20 75 73 69 6e 67 20 61 | 6c 6c 20 74 68 65 20 73 | using a|ll the s|
|00001ac0| 61 76 65 64 20 70 72 6f | 67 6e 6f 73 65 73 0d 20 |aved pro|gnoses. |
|00001ad0| 2a 2f 0d 76 6f 69 64 0d | 47 6e 6f 73 4c 65 61 72 |*/.void.|GnosLear|
|00001ae0| 6e 20 28 29 0d 7b 0d 09 | 72 65 67 69 73 74 65 72 |n ().{..|register|
|00001af0| 20 47 6e 6f 73 50 74 72 | 20 67 6e 6f 73 50 74 72 | GnosPtr| gnosPtr|
|00001b00| 20 3d 20 67 6e 6f 73 4c | 69 73 74 2e 68 65 61 64 | = gnosL|ist.head|
|00001b10| 3b 0d 09 72 65 67 69 73 | 74 65 72 20 57 4f 52 44 |;..regis|ter WORD|
|00001b20| 20 74 68 65 47 6e 6f 73 | 3b 0d 09 42 6f 6f 6c 65 | theGnos|;..Boole|
|00001b30| 61 6e 20 67 6e 6f 73 42 | 69 74 73 5b 47 4e 4f 53 |an gnosB|its[GNOS|
|00001b40| 5f 42 49 54 53 5d 3b 0d | 0d 09 2f 2a 20 43 6c 65 |_BITS];.|../* Cle|
|00001b50| 61 72 20 61 6e 79 20 70 | 72 65 76 69 6f 75 73 20 |ar any p|revious |
|00001b60| 6e 65 75 72 61 6c 20 6e | 65 74 20 61 6e 64 20 67 |neural n|et and g|
|00001b70| 65 74 20 61 20 6e 65 77 | 20 6f 6e 65 0d 09 20 2a |et a new| one.. *|
|00001b80| 2f 0d 09 4e 4e 49 6e 69 | 74 28 29 3b 0d 0d 09 2f |/..NNIni|t();.../|
|00001b90| 2a 20 4e 6f 77 20 63 6c | 61 73 73 2c 20 70 6c 65 |* Now cl|ass, ple|
|00001ba0| 61 73 65 20 73 74 75 64 | 79 20 65 61 63 68 20 63 |ase stud|y each c|
|00001bb0| 68 61 70 74 65 72 20 69 | 6e 20 79 6f 75 72 20 70 |hapter i|n your p|
|00001bc0| 72 6f 67 6e 6f 73 69 73 | 20 6c 69 73 74 0d 09 20 |rognosis| list.. |
|00001bd0| 2a 2f 0d 09 66 6f 72 20 | 28 74 68 65 47 6e 6f 73 |*/..for |(theGnos|
|00001be0| 20 3d 20 30 3b 20 74 68 | 65 47 6e 6f 73 20 3c 20 | = 0; th|eGnos < |
|00001bf0| 67 6e 6f 73 4c 69 73 74 | 2e 63 6f 75 6e 74 3b 20 |gnosList|.count; |
|00001c00| 74 68 65 47 6e 6f 73 2b | 2b 2c 20 67 6e 6f 73 50 |theGnos+|+, gnosP|
|00001c10| 74 72 20 3d 20 67 6e 6f | 73 50 74 72 2d 3e 6e 65 |tr = gno|sPtr->ne|
|00001c20| 78 74 29 20 7b 0d 09 09 | 41 70 70 6c 53 70 69 6e |xt) {...|ApplSpin|
|00001c30| 43 75 72 73 28 46 41 4c | 53 45 29 3b 0d 09 09 47 |Curs(FAL|SE);...G|
|00001c40| 6e 6f 73 53 74 75 66 66 | 42 69 74 73 28 67 6e 6f |nosStuff|Bits(gno|
|00001c50| 73 50 74 72 2c 20 67 6e | 6f 73 42 69 74 73 29 3b |sPtr, gn|osBits);|
|00001c60| 0d 09 09 4e 4e 4c 65 61 | 72 6e 28 67 6e 6f 73 42 |...NNLea|rn(gnosB|
|00001c70| 69 74 73 2c 20 47 4e 4f | 53 5f 42 49 54 53 2c 20 |its, GNO|S_BITS, |
|00001c80| 74 68 65 47 6e 6f 73 29 | 3b 0d 09 7d 0d 7d 0d 0d |theGnos)|;..}.}..|
|00001c90| 0d 2f 2a 20 55 73 65 20 | 74 68 65 20 6e 65 75 72 |./* Use |the neur|
|00001ca0| 61 6c 20 6e 65 74 77 6f | 72 6b 20 74 6f 20 69 6e |al netwo|rk to in|
|00001cb0| 66 65 72 20 73 61 76 65 | 64 20 70 72 6f 67 6e 6f |fer save|d progno|
|00001cc0| 73 65 73 0d 20 2a 2f 0d | 76 6f 69 64 0d 47 6e 6f |ses. */.|void.Gno|
|00001cd0| 73 52 65 63 61 6c 6c 20 | 28 29 0d 7b 0d 09 72 65 |sRecall |().{..re|
|00001ce0| 67 69 73 74 65 72 20 49 | 6e 66 6f 50 74 72 20 69 |gister I|nfoPtr i|
|00001cf0| 6e 66 6f 50 74 72 20 3d | 20 28 49 6e 66 6f 50 74 |nfoPtr =| (InfoPt|
|00001d00| 72 29 20 47 65 74 57 52 | 65 66 43 6f 6e 28 77 50 |r) GetWR|efCon(wP|
|00001d10| 74 72 47 6e 6f 73 29 3b | 0d 09 72 65 67 69 73 74 |trGnos);|..regist|
|00001d20| 65 72 20 4c 69 73 74 48 | 61 6e 64 6c 65 20 6c 69 |er ListH|andle li|
|00001d30| 73 74 48 64 6c 20 3d 20 | 69 6e 66 6f 50 74 72 2d |stHdl = |infoPtr-|
|00001d40| 3e 69 74 65 6d 2e 6c 69 | 73 74 3b 0d 09 72 65 67 |>item.li|st;..reg|
|00001d50| 69 73 74 65 72 20 43 65 | 6c 6c 20 74 68 65 43 65 |ister Ce|ll theCe|
|00001d60| 6c 6c 3b 0d 09 42 6f 6f | 6c 65 61 6e 20 67 6e 6f |ll;..Boo|lean gno|
|00001d70| 73 42 69 74 73 5b 47 4e | 4f 53 5f 42 49 54 53 5d |sBits[GN|OS_BITS]|
|00001d80| 3b 0d 09 57 4f 52 44 20 | 74 68 65 4c 65 6e 20 3d |;..WORD |theLen =|
|00001d90| 20 32 35 35 3b 0d 09 53 | 74 72 32 35 35 20 69 74 | 255;..S|tr255 it|
|00001da0| 65 6d 54 65 78 74 3b 0d | 09 4c 4f 4e 47 20 74 68 |emText;.|.LONG th|
|00001db0| 65 4e 75 6d 3b 0d 0d 09 | 2f 2a 20 43 6f 6e 76 65 |eNum;...|/* Conve|
|00001dc0| 72 74 20 74 68 65 20 63 | 75 72 72 65 6e 74 20 61 |rt the c|urrent a|
|00001dd0| 6e 61 6c 79 73 69 73 20 | 69 6e 74 6f 20 61 20 6e |nalysis |into a n|
|00001de0| 65 74 77 6f 72 6b 20 69 | 6e 70 75 74 20 76 65 63 |etwork i|nput vec|
|00001df0| 74 6f 72 2c 20 74 68 65 | 6e 20 61 63 74 69 76 61 |tor, the|n activa|
|00001e00| 74 65 20 0d 09 20 2a 2f | 0d 09 41 6e 61 6c 52 65 |te .. */|..AnalRe|
|00001e10| 61 64 57 69 6e 64 28 29 | 3b 0d 20 09 47 6e 6f 73 |adWind()|;. .Gnos|
|00001e20| 53 74 75 66 66 42 69 74 | 73 28 26 61 6e 61 6c 47 |StuffBit|s(&analG|
|00001e30| 6e 6f 73 42 75 66 2c 20 | 67 6e 6f 73 42 69 74 73 |nosBuf, |gnosBits|
|00001e40| 29 3b 0d 09 4e 4e 41 63 | 74 69 76 61 74 65 28 67 |);..NNAc|tivate(g|
|00001e50| 6e 6f 73 42 69 74 73 2c | 20 47 4e 4f 53 5f 42 49 |nosBits,| GNOS_BI|
|00001e60| 54 53 29 3b 0d 0d 09 2f | 2a 20 43 6c 65 61 72 20 |TS);.../|* Clear |
|00001e70| 74 68 65 20 63 65 72 74 | 61 69 6e 74 79 20 63 6f |the cert|ainty co|
|00001e80| 6c 75 6d 6e 0d 09 20 2a | 2f 0d 09 74 68 65 43 65 |lumn.. *|/..theCe|
|00001e90| 6c 6c 2e 68 20 3d 20 31 | 3b 0d 0d 09 66 6f 72 20 |ll.h = 1|;...for |
|00001ea0| 28 74 68 65 43 65 6c 6c | 2e 76 20 3d 20 28 2a 6c |(theCell|.v = (*l|
|00001eb0| 69 73 74 48 64 6c 29 2d | 3e 64 61 74 61 42 6f 75 |istHdl)-|>dataBou|
|00001ec0| 6e 64 73 2e 62 6f 74 74 | 6f 6d 3b 20 74 68 65 43 |nds.bott|om; theC|
|00001ed0| 65 6c 6c 2e 76 2d 2d 3b | 20 29 20 0d 09 09 4c 43 |ell.v--;| ) ...LC|
|00001ee0| 6c 72 43 65 6c 6c 28 74 | 68 65 43 65 6c 6c 2c 20 |lrCell(t|heCell, |
|00001ef0| 6c 69 73 74 48 64 6c 29 | 3b 0d 0d 09 2f 2a 20 52 |listHdl)|;.../* R|
|00001f00| 65 70 6f 72 74 20 74 68 | 65 20 63 65 72 74 61 69 |eport th|e certai|
|00001f10| 6e 74 79 20 66 61 63 74 | 6f 72 0d 09 20 2a 2f 0d |nty fact|or.. */.|
|00001f20| 09 73 70 72 69 6e 74 66 | 28 28 63 68 61 72 20 2a |.sprintf|((char *|
|00001f30| 29 20 69 74 65 6d 54 65 | 78 74 2c 20 22 25 35 2e |) itemTe|xt, "%5.|
|00001f40| 32 66 25 25 20 63 65 72 | 74 61 69 6e 74 79 22 2c |2f%% cer|tainty",|
|00001f50| 20 6e 6e 43 65 72 74 61 | 69 6e 74 79 29 3b 0d 09 | nnCerta|inty);..|
|00001f60| 43 74 6f 50 73 74 72 28 | 28 63 68 61 72 20 2a 29 |CtoPstr(|(char *)|
|00001f70| 20 69 74 65 6d 54 65 78 | 74 29 3b 0d 0d 09 2f 2a | itemTex|t);.../*|
|00001f80| 20 52 65 66 6c 65 63 74 | 20 74 68 65 20 69 6e 64 | Reflect| the ind|
|00001f90| 65 78 0d 09 20 2a 2f 0d | 09 74 68 65 43 65 6c 6c |ex.. */.|.theCell|
|00001fa0| 2e 68 20 3d 20 31 3b 0d | 09 74 68 65 43 65 6c 6c |.h = 1;.|.theCell|
|00001fb0| 2e 76 20 3d 20 67 6e 6f | 73 4c 69 73 74 2e 63 6f |.v = gno|sList.co|
|00001fc0| 75 6e 74 20 2d 20 28 6e | 6e 4f 75 74 70 75 74 20 |unt - (n|nOutput |
|00001fd0| 2b 20 31 29 3b 0d 09 4c | 53 65 74 43 65 6c 6c 28 |+ 1);..L|SetCell(|
|00001fe0| 69 74 65 6d 54 65 78 74 | 20 2b 20 31 2c 20 69 74 |itemText| + 1, it|
|00001ff0| 65 6d 54 65 78 74 5b 30 | 5d 2c 20 74 68 65 43 65 |emText[0|], theCe|
|00002000| 6c 6c 2c 20 6c 69 73 74 | 48 64 6c 29 3b 0d 0d 09 |ll, list|Hdl);...|
|00002010| 2f 2a 20 52 65 70 6f 72 | 74 20 74 68 65 20 64 65 |/* Repor|t the de|
|00002020| 73 63 72 69 70 74 69 6f | 6e 20 74 65 78 74 2c 20 |scriptio|n text, |
|00002030| 62 75 74 20 6f 6e 6c 79 | 20 69 6e 20 75 73 65 72 |but only| in user|
|00002040| 20 6d 6f 64 65 2e 2e 2e | 0d 09 20 2a 2f 0d 09 69 | mode...|.. */..i|
|00002050| 66 20 28 74 65 73 74 55 | 73 65 72 29 0d 09 09 47 |f (testU|ser)...G|
|00002060| 6e 6f 73 4f 70 65 6e 54 | 65 78 74 28 74 68 65 43 |nosOpenT|ext(theC|
|00002070| 65 6c 6c 2e 76 29 3b 0d | 09 65 6c 73 65 0d 09 09 |ell.v);.|.else...|
|00002080| 53 65 6c 65 63 74 57 69 | 6e 64 6f 77 28 77 50 74 |SelectWi|ndow(wPt|
|00002090| 72 47 6e 6f 73 29 3b 0d | 7d 0d 0d 0d 2f 2a 20 45 |rGnos);.|}.../* E|
|000020a0| 78 65 63 75 74 65 20 74 | 68 65 20 73 65 6c 65 63 |xecute t|he selec|
|000020b0| 74 65 64 20 50 72 6f 67 | 6e 6f 73 69 73 20 6d 65 |ted Prog|nosis me|
|000020c0| 6e 75 20 69 74 65 6d 0d | 20 2a 2f 0d 76 6f 69 64 |nu item.| */.void|
|000020d0| 0d 47 6e 6f 73 4d 65 6e | 75 20 28 74 68 65 49 74 |.GnosMen|u (theIt|
|000020e0| 65 6d 29 0d 09 72 65 67 | 69 73 74 65 72 20 57 4f |em)..reg|ister WO|
|000020f0| 52 44 20 74 68 65 49 74 | 65 6d 3b 0d 7b 0d 09 72 |RD theIt|em;.{..r|
|00002100| 65 67 69 73 74 65 72 20 | 49 6e 66 6f 50 74 72 20 |egister |InfoPtr |
|00002110| 69 6e 66 6f 50 74 72 20 | 3d 20 28 49 6e 66 6f 50 |infoPtr |= (InfoP|
|00002120| 74 72 29 20 47 65 74 57 | 52 65 66 43 6f 6e 28 77 |tr) GetW|RefCon(w|
|00002130| 50 74 72 47 6e 6f 73 29 | 3b 0d 0d 09 73 77 69 74 |PtrGnos)|;...swit|
|00002140| 63 68 20 28 74 68 65 49 | 74 65 6d 29 20 7b 0d 09 |ch (theI|tem) {..|
|00002150| 63 61 73 65 20 67 6e 6f | 73 4e 65 77 3a 0d 09 09 |case gno|sNew:...|
|00002160| 47 6e 6f 73 4e 65 77 28 | 29 3b 0d 09 09 41 6e 61 |GnosNew(|);...Ana|
|00002170| 6c 53 74 75 62 28 29 3b | 0d 09 09 41 6e 61 6c 57 |lStub();|...AnalW|
|00002180| 72 69 74 65 57 69 6e 64 | 28 29 3b 0d 09 09 41 6e |riteWind|();...An|
|00002190| 61 6c 47 65 74 42 75 66 | 28 67 6e 6f 73 4c 69 73 |alGetBuf|(gnosLis|
|000021a0| 74 2e 68 65 61 64 29 3b | 0d 0d 09 09 47 6e 6f 73 |t.head);|....Gnos|
|000021b0| 52 65 66 72 65 73 68 28 | 29 3b 0d 0d 09 09 47 6e |Refresh(|);....Gn|
|000021c0| 6f 73 4f 70 65 6e 41 6e | 61 6c 28 67 6e 6f 73 4c |osOpenAn|al(gnosL|
|000021d0| 69 73 74 2e 63 6f 75 6e | 74 20 2d 20 31 29 3b 0d |ist.coun|t - 1);.|
|000021e0| 09 09 47 6e 6f 73 4f 70 | 65 6e 54 65 78 74 28 67 |..GnosOp|enText(g|
|000021f0| 6e 6f 73 4c 69 73 74 2e | 63 6f 75 6e 74 20 2d 20 |nosList.|count - |
|00002200| 31 29 3b 0d 0d 09 09 69 | 66 20 28 21 74 65 73 74 |1);....i|f (!test|
|00002210| 55 73 65 72 29 0d 09 09 | 09 69 6e 66 6f 50 74 72 |User)...|.infoPtr|
|00002220| 2d 3e 64 69 72 74 79 20 | 3d 20 54 52 55 45 3b 0d |->dirty |= TRUE;.|
|00002230| 0d 09 09 62 72 65 61 6b | 3b 0d 0d 09 63 61 73 65 |...break|;...case|
|00002240| 20 67 6e 6f 73 44 65 6c | 65 74 65 3a 0d 09 09 47 | gnosDel|ete:...G|
|00002250| 6e 6f 73 44 65 6c 65 74 | 65 28 29 3b 0d 09 09 47 |nosDelet|e();...G|
|00002260| 6e 6f 73 52 65 66 72 65 | 73 68 28 29 3b 0d 0d 09 |nosRefre|sh();...|
|00002270| 09 69 66 20 28 21 74 65 | 73 74 55 73 65 72 29 0d |.if (!te|stUser).|
|00002280| 09 09 09 69 6e 66 6f 50 | 74 72 2d 3e 64 69 72 74 |...infoP|tr->dirt|
|00002290| 79 20 3d 20 54 52 55 45 | 3b 0d 0d 09 09 62 72 65 |y = TRUE|;....bre|
|000022a0| 61 6b 3b 0d 0d 09 63 61 | 73 65 20 67 6e 6f 73 41 |ak;...ca|se gnosA|
|000022b0| 6e 61 6c 79 7a 65 3a 0d | 09 09 41 6e 61 6c 52 65 |nalyze:.|..AnalRe|
|000022c0| 61 64 57 69 6e 64 28 29 | 3b 0d 09 09 41 6e 61 6c |adWind()|;...Anal|
|000022d0| 52 65 70 6f 72 74 28 29 | 3b 0d 0d 09 09 69 66 20 |Report()|;....if |
|000022e0| 28 21 74 65 73 74 55 73 | 65 72 29 0d 09 09 09 69 |(!testUs|er)....i|
|000022f0| 6e 66 6f 50 74 72 2d 3e | 64 69 72 74 79 20 3d 20 |nfoPtr->|dirty = |
|00002300| 54 52 55 45 3b 0d 0d 09 | 09 62 72 65 61 6b 3b 0d |TRUE;...|.break;.|
|00002310| 0d 09 63 61 73 65 20 67 | 6e 6f 73 4c 65 61 72 6e |..case g|nosLearn|
|00002320| 3a 0d 09 09 47 6e 6f 73 | 53 61 76 65 28 29 3b 0d |:...Gnos|Save();.|
|00002330| 09 09 47 6e 6f 73 52 65 | 66 72 65 73 68 28 29 3b |..GnosRe|fresh();|
|00002340| 0d 09 09 47 6e 6f 73 4c | 65 61 72 6e 28 29 3b 0d |...GnosL|earn();.|
|00002350| 09 09 62 72 65 61 6b 3b | 0d 0d 09 63 61 73 65 20 |..break;|...case |
|00002360| 67 6e 6f 73 52 65 63 61 | 6c 6c 3a 0d 09 09 47 6e |gnosReca|ll:...Gn|
|00002370| 6f 73 52 65 63 61 6c 6c | 28 29 3b 0d 09 09 62 72 |osRecall|();...br|
|00002380| 65 61 6b 3b 0d 0d 09 64 | 65 66 61 75 6c 74 3a 0d |eak;...d|efault:.|
|00002390| 09 09 62 72 65 61 6b 3b | 0d 09 7d 0d 7d 0d 00 00 |..break;|..}.}...|
|000023a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000023b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000023c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000023d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000023e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000023f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
+--------+-------------------------+-------------------------+--------+--------+