home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1999 …ember: Reference Library / Apple Developer Reference Library (December 1999) (Disk 1).iso / pc / technical documentation / develop / develop issue 23 / develop issue 23 code / projectdrag 1.1b8.sea / ProjectDrag 1.1b8 / Sources / ProjectDrag Sources / TasksAndErrors.c < prev    next >
MacBinary  |  1995-07-24  |  6.6 KB  |  [TEXT/MPS ]

open in: MacOS 8.1     |     Win98     |     DOS

browse contents    |     view JSON data     |     view as text


This file was processed as: MacBinary (archive/macBinary).

ConfidenceProgramDetectionMatch TypeSupport
66% dexvert Compact Compressed (Unix) (archive/compact) ext Supported
10% dexvert MacBinary (archive/macBinary) fallback Supported
1% dexvert Text File (text/txt) fallback Supported
100% file MacBinary II, inited, Mon Jul 24 23:21:52 1995, modified Mon Jul 24 23:21:52 1995, creator 'MPS ', type ASCII, 6122 bytes "TasksAndErrors.c" , at 0x186a 428 bytes resource default (weak)
99% file data default
74% TrID Macintosh plain text (MacBinary) default
25% TrID MacBinary 2 default (weak)
100% siegfried fmt/1762 MacBinary (II) default
100% lsar MacBinary default


id metadata
keyvalue
macFileType[TEXT]
macFileCreator[MPS ]



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 10 54 61 73 6b 73 41 | 6e 64 45 72 72 6f 72 73 |..TasksA|ndErrors|
|00000010| 2e 63 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |.c......|........|
|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 4d 50 53 | 20 01 00 00 00 00 00 00 |.TEXTMPS| .......|
|00000050| 00 00 00 00 00 17 ea 00 | 00 01 ac ac 3a 13 d0 ac |........|....:...|
|00000060| 3a 13 d0 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |:.......|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 3f 09 00 00 |........|....?...|
|00000080| 2f 2a 20 54 61 73 6b 73 | 41 6e 64 45 72 72 6f 72 |/* Tasks|AndError|
|00000090| 73 2e 68 3a 20 54 61 73 | 6b 20 61 6e 64 20 65 72 |s.h: Tas|k and er|
|000000a0| 72 6f 72 20 6e 6f 74 69 | 66 69 63 61 74 69 6f 6e |ror noti|fication|
|000000b0| 20 72 6f 75 74 69 6e 65 | 73 20 66 6f 72 20 50 72 | routine|s for Pr|
|000000c0| 6f 6a 65 63 74 44 72 61 | 67 0d 20 2a 0d 20 2a 20 |ojectDra|g. *. * |
|000000d0| 41 20 73 65 74 20 6f 66 | 20 61 70 70 6c 65 74 73 |A set of| applets|
|000000e0| 20 66 6f 72 20 64 72 61 | 67 20 61 6e 64 20 64 72 | for dra|g and dr|
|000000f0| 6f 70 20 73 6f 75 72 63 | 65 20 63 6f 6e 74 72 6f |op sourc|e contro|
|00000100| 6c 20 62 79 20 54 69 6d | 20 4d 61 72 6f 6e 65 79 |l by Tim| Maroney|
|00000110| 2e 0d 20 2a 20 53 65 65 | 20 64 65 76 65 6c 6f 70 |.. * See| develop|
|00000120| 2c 20 69 73 73 75 65 20 | 32 33 20 66 6f 72 20 64 |, issue |23 for d|
|00000130| 65 74 61 69 6c 73 2e 0d | 20 2a 0d 20 2a 20 42 75 |etails..| *. * Bu|
|00000140| 69 6c 74 20 6f 6e 20 44 | 72 6f 70 53 68 65 6c 6c |ilt on D|ropShell|
|00000150| 20 62 79 20 4c 65 6f 6e | 61 72 64 20 52 6f 73 65 | by Leon|ard Rose|
|00000160| 6e 74 68 6f 6c 2c 20 53 | 74 65 70 68 61 6e 20 53 |nthol, S|tephan S|
|00000170| 6f 6d 6f 67 79 69 2c 20 | 61 6e 64 20 4d 61 72 73 |omogyi, |and Mars|
|00000180| 68 61 6c 6c 20 43 6c 6f | 77 2c 0d 20 2a 20 61 6e |hall Clo|w,. * an|
|00000190| 64 20 75 73 69 6e 67 20 | 74 68 65 20 4d 6f 72 65 |d using |the More|
|000001a0| 46 69 6c 65 73 20 75 74 | 69 6c 69 74 69 65 73 20 |Files ut|ilities |
|000001b0| 62 79 20 4a 69 6d 20 4c | 75 74 68 65 72 2e 0d 20 |by Jim L|uther.. |
|000001c0| 2a 0d 20 2a 20 54 68 69 | 73 20 73 6f 66 74 77 61 |*. * Thi|s softwa|
|000001d0| 72 65 20 69 73 20 66 72 | 65 65 2c 20 62 75 74 20 |re is fr|ee, but |
|000001e0| 64 6f 6e 27 74 20 6d 6f | 64 69 66 79 20 61 6e 64 |don't mo|dify and|
|000001f0| 20 72 65 64 69 73 74 72 | 69 62 75 74 65 20 69 74 | redistr|ibute it|
|00000200| 20 77 69 74 68 6f 75 74 | 0d 20 2a 20 63 68 61 6e | without|. * chan|
|00000210| 67 69 6e 67 20 74 68 65 | 20 73 74 61 74 75 73 20 |ging the| status |
|00000220| 77 69 6e 64 6f 77 20 74 | 6f 20 69 6e 64 69 63 61 |window t|o indica|
|00000230| 74 65 20 79 6f 75 72 20 | 6e 61 6d 65 20 61 6e 64 |te your |name and|
|00000240| 20 79 6f 75 72 20 63 68 | 61 6e 67 65 73 21 0d 20 | your ch|anges!. |
|00000250| 2a 2f 0d 0d 23 69 6e 63 | 6c 75 64 65 20 3c 44 69 |*/..#inc|lude <Di|
|00000260| 61 6c 6f 67 73 2e 68 3e | 0d 23 69 6e 63 6c 75 64 |alogs.h>|.#includ|
|00000270| 65 20 3c 45 72 72 6f 72 | 73 2e 68 3e 0d 23 69 6e |e <Error|s.h>.#in|
|00000280| 63 6c 75 64 65 20 3c 4c | 6f 77 4d 65 6d 2e 68 3e |clude <L|owMem.h>|
|00000290| 0d 23 69 6e 63 6c 75 64 | 65 20 3c 54 6f 6f 6c 55 |.#includ|e <ToolU|
|000002a0| 74 69 6c 73 2e 68 3e 0d | 0d 23 69 6e 63 6c 75 64 |tils.h>.|.#includ|
|000002b0| 65 20 22 50 44 55 74 69 | 6c 69 74 69 65 73 2e 68 |e "PDUti|lities.h|
|000002c0| 22 0d 23 69 6e 63 6c 75 | 64 65 20 22 54 61 73 6b |".#inclu|de "Task|
|000002d0| 73 41 6e 64 45 72 72 6f | 72 73 2e 68 22 0d 23 69 |sAndErro|rs.h".#i|
|000002e0| 6e 63 6c 75 64 65 20 22 | 44 53 47 6c 6f 62 61 6c |nclude "|DSGlobal|
|000002f0| 73 2e 68 22 0d 0d 0d 23 | 64 65 66 69 6e 65 09 6b |s.h"...#|define.k|
|00000300| 52 65 73 54 65 78 74 41 | 6c 65 72 74 49 44 09 32 |ResTextA|lertID.2|
|00000310| 30 37 0d 0d 23 64 65 66 | 69 6e 65 20 6b 53 74 61 |07..#def|ine kSta|
|00000320| 74 75 73 57 69 6e 64 6f | 77 20 32 31 30 0d 23 64 |tusWindo|w 210.#d|
|00000330| 65 66 69 6e 65 20 6b 53 | 74 61 74 75 73 49 6e 66 |efine kS|tatusInf|
|00000340| 6f 20 31 0d 23 64 65 66 | 69 6e 65 20 6b 53 74 61 |o 1.#def|ine kSta|
|00000350| 74 75 73 54 65 78 74 20 | 33 0d 0d 0d 74 79 70 65 |tusText |3...type|
|00000360| 64 65 66 20 73 74 72 75 | 63 74 20 54 61 73 6b 53 |def stru|ct TaskS|
|00000370| 74 61 63 6b 45 6e 74 72 | 79 0d 7b 0d 09 73 74 72 |tackEntr|y.{..str|
|00000380| 75 63 74 20 54 61 73 6b | 53 74 61 63 6b 45 6e 74 |uct Task|StackEnt|
|00000390| 72 79 20 2a 66 4e 65 78 | 74 3b 0d 09 53 74 72 32 |ry *fNex|t;..Str2|
|000003a0| 35 35 20 66 4d 65 73 73 | 61 67 65 3b 0d 7d 20 54 |55 fMess|age;.} T|
|000003b0| 61 73 6b 53 74 61 63 6b | 45 6e 74 72 79 3b 0d 0d |askStack|Entry;..|
|000003c0| 0d 74 79 70 65 64 65 66 | 20 73 74 72 75 63 74 20 |.typedef| struct |
|000003d0| 50 65 72 73 69 73 74 65 | 6e 74 41 6e 73 77 65 72 |Persiste|ntAnswer|
|000003e0| 52 65 63 6f 72 64 0d 7b | 0d 09 73 74 72 75 63 74 |Record.{|..struct|
|000003f0| 20 50 65 72 73 69 73 74 | 65 6e 74 41 6e 73 77 65 | Persist|entAnswe|
|00000400| 72 52 65 63 6f 72 64 20 | 2a 66 4e 65 78 74 3b 0d |rRecord |*fNext;.|
|00000410| 09 73 68 6f 72 74 20 66 | 53 74 72 4c 69 73 74 49 |.short f|StrListI|
|00000420| 44 3b 0d 09 73 68 6f 72 | 74 20 66 53 74 72 49 6e |D;..shor|t fStrIn|
|00000430| 64 65 78 3b 0d 09 43 6f | 6e 66 69 72 6d 52 65 73 |dex;..Co|nfirmRes|
|00000440| 70 6f 6e 73 65 20 66 41 | 6e 73 77 65 72 3b 0d 7d |ponse fA|nswer;.}|
|00000450| 20 50 65 72 73 69 73 74 | 65 6e 74 41 6e 73 77 65 | Persist|entAnswe|
|00000460| 72 52 65 63 6f 72 64 3b | 0d 0d 0d 73 74 61 74 69 |rRecord;|...stati|
|00000470| 63 20 44 69 61 6c 6f 67 | 50 74 72 20 70 53 74 61 |c Dialog|Ptr pSta|
|00000480| 74 75 73 57 69 6e 64 6f | 77 3b 0d 73 74 61 74 69 |tusWindo|w;.stati|
|00000490| 63 20 4f 53 45 72 72 20 | 70 54 61 73 6b 45 72 72 |c OSErr |pTaskErr|
|000004a0| 6f 72 3b 0d 73 74 61 74 | 69 63 20 53 74 72 32 35 |or;.stat|ic Str25|
|000004b0| 35 20 70 54 61 73 6b 45 | 72 72 6f 72 53 74 72 69 |5 pTaskE|rrorStri|
|000004c0| 6e 67 3b 0d 73 74 61 74 | 69 63 20 42 6f 6f 6c 65 |ng;.stat|ic Boole|
|000004d0| 61 6e 20 70 48 61 76 65 | 45 72 72 6f 72 4e 75 6d |an pHave|ErrorNum|
|000004e0| 62 65 72 20 3d 20 66 61 | 6c 73 65 3b 0d 73 74 61 |ber = fa|lse;.sta|
|000004f0| 74 69 63 20 42 6f 6f 6c | 65 61 6e 20 70 48 61 76 |tic Bool|ean pHav|
|00000500| 65 45 72 72 6f 72 53 74 | 72 69 6e 67 20 3d 20 66 |eErrorSt|ring = f|
|00000510| 61 6c 73 65 3b 0d 73 74 | 61 74 69 63 20 54 61 73 |alse;.st|atic Tas|
|00000520| 6b 53 74 61 63 6b 45 6e | 74 72 79 20 2a 70 54 61 |kStackEn|try *pTa|
|00000530| 73 6b 53 74 61 63 6b 20 | 3d 20 4e 55 4c 4c 3b 0d |skStack |= NULL;.|
|00000540| 73 74 61 74 69 63 20 50 | 65 72 73 69 73 74 65 6e |static P|ersisten|
|00000550| 74 41 6e 73 77 65 72 52 | 65 63 6f 72 64 20 2a 70 |tAnswerR|ecord *p|
|00000560| 50 65 72 73 69 73 74 65 | 6e 74 41 6e 73 77 65 72 |Persiste|ntAnswer|
|00000570| 20 3d 20 4e 55 4c 4c 3b | 0d 0d 0d 73 74 61 74 69 | = NULL;|...stati|
|00000580| 63 20 76 6f 69 64 20 52 | 65 73 54 65 78 74 45 72 |c void R|esTextEr|
|00000590| 72 6f 72 41 6c 65 72 74 | 28 73 68 6f 72 74 20 73 |rorAlert|(short s|
|000005a0| 74 72 4c 69 73 74 49 44 | 2c 20 73 68 6f 72 74 20 |trListID|, short |
|000005b0| 73 74 72 49 6e 64 65 78 | 2c 20 4f 53 45 72 72 20 |strIndex|, OSErr |
|000005c0| 63 61 6c 6c 65 72 45 72 | 72 2c 0d 09 09 09 09 09 |callerEr|r,......|
|000005d0| 09 09 20 20 20 53 74 72 | 69 6e 67 50 74 72 20 70 |.. Str|ingPtr p|
|000005e0| 61 72 61 6d 31 2c 20 53 | 74 72 69 6e 67 50 74 72 |aram1, S|tringPtr|
|000005f0| 20 70 61 72 61 6d 32 2c | 0d 09 09 09 09 09 09 09 | param2,|........|
|00000600| 20 20 20 53 74 72 69 6e | 67 50 74 72 20 70 61 72 | Strin|gPtr par|
|00000610| 61 6d 33 2c 20 53 74 72 | 69 6e 67 50 74 72 20 70 |am3, Str|ingPtr p|
|00000620| 61 72 61 6d 34 29 3b 0d | 0d 0d 73 74 61 74 69 63 |aram4);.|..static|
|00000630| 20 76 6f 69 64 20 49 6e | 73 74 61 6c 6c 53 74 61 | void In|stallSta|
|00000640| 74 75 73 57 69 6e 64 6f | 77 28 76 6f 69 64 29 20 |tusWindo|w(void) |
|00000650| 0d 7b 0d 09 69 66 20 28 | 70 53 74 61 74 75 73 57 |.{..if (|pStatusW|
|00000660| 69 6e 64 6f 77 20 3d 3d | 20 4e 55 4c 4c 29 0d 09 |indow ==| NULL)..|
|00000670| 7b 0d 09 09 73 68 6f 72 | 74 20 74 79 70 65 3b 0d |{...shor|t type;.|
|00000680| 09 09 48 61 6e 64 6c 65 | 20 68 3b 0d 09 09 52 65 |..Handle| h;...Re|
|00000690| 63 74 20 72 3b 0d 09 09 | 53 74 72 32 35 35 20 73 |ct r;...|Str255 s|
|000006a0| 3b 0d 09 09 09 09 0d 09 | 09 70 53 74 61 74 75 73 |;.......|.pStatus|
|000006b0| 57 69 6e 64 6f 77 20 3d | 20 47 65 74 4e 65 77 44 |Window =| GetNewD|
|000006c0| 69 61 6c 6f 67 28 6b 53 | 74 61 74 75 73 57 69 6e |ialog(kS|tatusWin|
|000006d0| 64 6f 77 2c 20 4e 55 4c | 4c 2c 20 28 57 69 6e 64 |dow, NUL|L, (Wind|
|000006e0| 6f 77 50 74 72 29 2d 31 | 29 3b 0d 09 09 47 65 74 |owPtr)-1|);...Get|
|000006f0| 44 49 74 65 6d 28 70 53 | 74 61 74 75 73 57 69 6e |DItem(pS|tatusWin|
|00000700| 64 6f 77 2c 20 6b 53 74 | 61 74 75 73 49 6e 66 6f |dow, kSt|atusInfo|
|00000710| 2c 20 26 74 79 70 65 2c | 20 26 68 2c 20 26 72 29 |, &type,| &h, &r)|
|00000720| 3b 0d 09 09 52 65 70 6c | 61 63 65 49 6e 49 6e 64 |;...Repl|aceInInd|
|00000730| 53 74 72 69 6e 67 28 73 | 2c 20 6b 50 72 6f 6a 65 |String(s|, kProje|
|00000740| 63 74 44 72 61 67 53 74 | 72 69 6e 67 73 2c 20 6b |ctDragSt|rings, k|
|00000750| 54 69 6d 73 42 79 6c 69 | 6e 65 2c 20 4c 4d 47 65 |TimsByli|ne, LMGe|
|00000760| 74 43 75 72 41 70 4e 61 | 6d 65 28 29 2c 0d 09 09 |tCurApNa|me(),...|
|00000770| 09 09 09 09 09 4e 55 4c | 4c 2c 20 4e 55 4c 4c 2c |.....NUL|L, NULL,|
|00000780| 20 4e 55 4c 4c 29 3b 0d | 09 09 53 65 74 49 54 65 | NULL);.|..SetITe|
|00000790| 78 74 28 68 2c 20 73 29 | 3b 0d 09 09 53 68 6f 77 |xt(h, s)|;...Show|
|000007a0| 57 69 6e 64 6f 77 28 70 | 53 74 61 74 75 73 57 69 |Window(p|StatusWi|
|000007b0| 6e 64 6f 77 29 3b 0d 09 | 09 44 72 61 77 44 69 61 |ndow);..|.DrawDia|
|000007c0| 6c 6f 67 28 70 53 74 61 | 74 75 73 57 69 6e 64 6f |log(pSta|tusWindo|
|000007d0| 77 29 3b 0d 09 7d 0d 7d | 0d 0d 0d 76 6f 69 64 20 |w);..}.}|...void |
|000007e0| 53 65 74 53 74 61 74 75 | 73 4d 65 73 73 61 67 65 |SetStatu|sMessage|
|000007f0| 28 53 74 72 69 6e 67 50 | 74 72 20 6d 65 73 73 61 |(StringP|tr messa|
|00000800| 67 65 29 0d 7b 0d 09 73 | 68 6f 72 74 20 74 79 70 |ge).{..s|hort typ|
|00000810| 65 3b 0d 09 48 61 6e 64 | 6c 65 20 68 3b 0d 09 52 |e;..Hand|le h;..R|
|00000820| 65 63 74 20 72 3b 0d 09 | 53 74 72 32 35 35 20 73 |ect r;..|Str255 s|
|00000830| 3b 0d 09 75 6e 73 69 67 | 6e 65 64 20 63 68 61 72 |;..unsig|ned char|
|00000840| 20 6e 75 6c 6c 53 74 72 | 69 6e 67 5b 31 5d 3b 0d | nullStr|ing[1];.|
|00000850| 09 0d 09 69 66 20 28 70 | 53 74 61 74 75 73 57 69 |...if (p|StatusWi|
|00000860| 6e 64 6f 77 20 3d 3d 20 | 4e 55 4c 4c 29 0d 09 09 |ndow == |NULL)...|
|00000870| 49 6e 73 74 61 6c 6c 53 | 74 61 74 75 73 57 69 6e |InstallS|tatusWin|
|00000880| 64 6f 77 28 29 3b 0d 0d | 09 47 65 74 44 49 74 65 |dow();..|.GetDIte|
|00000890| 6d 28 70 53 74 61 74 75 | 73 57 69 6e 64 6f 77 2c |m(pStatu|sWindow,|
|000008a0| 20 6b 53 74 61 74 75 73 | 54 65 78 74 2c 20 26 74 | kStatus|Text, &t|
|000008b0| 79 70 65 2c 20 26 68 2c | 20 26 72 29 3b 0d 09 47 |ype, &h,| &r);..G|
|000008c0| 65 74 49 54 65 78 74 28 | 68 2c 20 73 29 3b 0d 09 |etIText(|h, s);..|
|000008d0| 69 66 20 28 6d 65 73 73 | 61 67 65 20 3d 3d 20 4e |if (mess|age == N|
|000008e0| 55 4c 4c 29 0d 09 7b 0d | 09 09 6e 75 6c 6c 53 74 |ULL)..{.|..nullSt|
|000008f0| 72 69 6e 67 5b 30 5d 20 | 3d 20 30 3b 0d 09 09 6d |ring[0] |= 0;...m|
|00000900| 65 73 73 61 67 65 20 3d | 20 6e 75 6c 6c 53 74 72 |essage =| nullStr|
|00000910| 69 6e 67 3b 0d 09 7d 0d | 09 69 66 20 28 21 45 71 |ing;..}.|.if (!Eq|
|00000920| 75 61 6c 53 74 72 69 6e | 67 28 6d 65 73 73 61 67 |ualStrin|g(messag|
|00000930| 65 2c 20 73 2c 20 74 72 | 75 65 2c 20 74 72 75 65 |e, s, tr|ue, true|
|00000940| 29 29 0d 09 09 53 65 74 | 49 54 65 78 74 28 68 2c |))...Set|IText(h,|
|00000950| 20 6d 65 73 73 61 67 65 | 29 3b 0d 7d 0d 0d 0d 76 | message|);.}...v|
|00000960| 6f 69 64 20 54 61 73 6b | 53 74 61 72 74 28 73 68 |oid Task|Start(sh|
|00000970| 6f 72 74 20 73 74 72 4c | 69 73 74 49 44 2c 20 73 |ort strL|istID, s|
|00000980| 68 6f 72 74 20 73 74 72 | 49 6e 64 65 78 2c 20 53 |hort str|Index, S|
|00000990| 74 72 69 6e 67 50 74 72 | 20 70 61 72 61 6d 31 2c |tringPtr| param1,|
|000009a0| 20 53 74 72 69 6e 67 50 | 74 72 20 70 61 72 61 6d | StringP|tr param|
|000009b0| 32 2c 0d 09 09 09 20 20 | 20 20 53 74 72 69 6e 67 |2,.... | String|
|000009c0| 50 74 72 20 70 61 72 61 | 6d 33 2c 20 53 74 72 69 |Ptr para|m3, Stri|
|000009d0| 6e 67 50 74 72 20 70 61 | 72 61 6d 34 29 0d 7b 0d |ngPtr pa|ram4).{.|
|000009e0| 09 53 74 72 32 35 35 20 | 6d 65 73 73 61 67 65 3b |.Str255 |message;|
|000009f0| 0d 09 54 61 73 6b 53 74 | 61 63 6b 45 6e 74 72 79 |..TaskSt|ackEntry|
|00000a00| 20 2a 74 68 65 45 6e 74 | 72 79 3b 0d 09 0d 09 52 | *theEnt|ry;....R|
|00000a10| 65 70 6c 61 63 65 49 6e | 49 6e 64 53 74 72 69 6e |eplaceIn|IndStrin|
|00000a20| 67 28 6d 65 73 73 61 67 | 65 2c 20 73 74 72 4c 69 |g(messag|e, strLi|
|00000a30| 73 74 49 44 2c 20 73 74 | 72 49 6e 64 65 78 2c 20 |stID, st|rIndex, |
|00000a40| 70 61 72 61 6d 31 2c 20 | 70 61 72 61 6d 32 2c 20 |param1, |param2, |
|00000a50| 70 61 72 61 6d 33 2c 20 | 70 61 72 61 6d 34 29 3b |param3, |param4);|
|00000a60| 09 0d 09 53 65 74 53 74 | 61 74 75 73 4d 65 73 73 |...SetSt|atusMess|
|00000a70| 61 67 65 28 6d 65 73 73 | 61 67 65 29 3b 0d 09 0d |age(mess|age);...|
|00000a80| 09 2f 2a 20 70 75 73 68 | 20 74 68 65 20 74 61 73 |./* push| the tas|
|00000a90| 6b 20 73 74 72 69 6e 67 | 20 6f 6e 74 6f 20 74 68 |k string| onto th|
|00000aa0| 65 20 74 61 73 6b 20 73 | 74 61 63 6b 20 2a 2f 0d |e task s|tack */.|
|00000ab0| 09 74 68 65 45 6e 74 72 | 79 20 3d 20 28 54 61 73 |.theEntr|y = (Tas|
|00000ac0| 6b 53 74 61 63 6b 45 6e | 74 72 79 2a 29 4e 65 77 |kStackEn|try*)New|
|00000ad0| 50 74 72 28 73 69 7a 65 | 6f 66 28 54 61 73 6b 53 |Ptr(size|of(TaskS|
|00000ae0| 74 61 63 6b 45 6e 74 72 | 79 29 29 3b 0d 09 2f 2a |tackEntr|y));../*|
|00000af0| 20 58 58 58 20 75 68 2d | 6f 68 20 69 66 20 74 68 | XXX uh-|oh if th|
|00000b00| 65 72 65 27 73 20 6e 6f | 20 6d 65 6d 6f 72 79 20 |ere's no| memory |
|00000b10| 2a 2f 0d 09 42 6c 6f 63 | 6b 4d 6f 76 65 44 61 74 |*/..Bloc|kMoveDat|
|00000b20| 61 28 6d 65 73 73 61 67 | 65 2c 20 74 68 65 45 6e |a(messag|e, theEn|
|00000b30| 74 72 79 2d 3e 66 4d 65 | 73 73 61 67 65 2c 20 6d |try->fMe|ssage, m|
|00000b40| 65 73 73 61 67 65 5b 30 | 5d 20 2b 20 31 29 3b 0d |essage[0|] + 1);.|
|00000b50| 09 74 68 65 45 6e 74 72 | 79 2d 3e 66 4e 65 78 74 |.theEntr|y->fNext|
|00000b60| 20 3d 20 70 54 61 73 6b | 53 74 61 63 6b 3b 0d 09 | = pTask|Stack;..|
|00000b70| 70 54 61 73 6b 53 74 61 | 63 6b 20 3d 20 74 68 65 |pTaskSta|ck = the|
|00000b80| 45 6e 74 72 79 3b 0d 7d | 0d 0d 0d 76 6f 69 64 20 |Entry;.}|...void |
|00000b90| 54 61 73 6b 44 6f 6e 65 | 28 76 6f 69 64 29 0d 7b |TaskDone|(void).{|
|00000ba0| 0d 09 2f 2a 20 70 6f 70 | 20 74 68 65 20 74 61 73 |../* pop| the tas|
|00000bb0| 6b 20 66 72 6f 6d 20 74 | 68 65 20 74 61 73 6b 20 |k from t|he task |
|00000bc0| 73 74 61 63 6b 20 2a 2f | 0d 09 54 61 73 6b 53 74 |stack */|..TaskSt|
|00000bd0| 61 63 6b 45 6e 74 72 79 | 20 2a 74 68 65 45 6e 74 |ackEntry| *theEnt|
|00000be0| 72 79 20 3d 20 70 54 61 | 73 6b 53 74 61 63 6b 3b |ry = pTa|skStack;|
|00000bf0| 0d 09 70 54 61 73 6b 53 | 74 61 63 6b 20 3d 20 70 |..pTaskS|tack = p|
|00000c00| 54 61 73 6b 53 74 61 63 | 6b 2d 3e 66 4e 65 78 74 |TaskStac|k->fNext|
|00000c10| 3b 0d 09 44 69 73 70 6f | 73 65 50 74 72 28 28 50 |;..Dispo|sePtr((P|
|00000c20| 74 72 29 74 68 65 45 6e | 74 72 79 29 3b 0d 09 0d |tr)theEn|try);...|
|00000c30| 09 69 66 20 28 70 54 61 | 73 6b 53 74 61 63 6b 20 |.if (pTa|skStack |
|00000c40| 21 3d 20 4e 55 4c 4c 29 | 0d 09 7b 0d 09 09 53 65 |!= NULL)|..{...Se|
|00000c50| 74 53 74 61 74 75 73 4d | 65 73 73 61 67 65 28 70 |tStatusM|essage(p|
|00000c60| 54 61 73 6b 53 74 61 63 | 6b 2d 3e 66 4d 65 73 73 |TaskStac|k->fMess|
|00000c70| 61 67 65 29 3b 0d 09 7d | 0d 09 65 6c 73 65 20 69 |age);..}|..else i|
|00000c80| 66 20 28 21 67 44 6f 6e | 65 29 0d 09 7b 0d 09 09 |f (!gDon|e)..{...|
|00000c90| 2f 2a 20 70 75 74 20 6e | 6f 74 68 69 6e 67 20 69 |/* put n|othing i|
|00000ca0| 6e 20 74 68 65 20 73 74 | 61 74 75 73 20 77 69 6e |n the st|atus win|
|00000cb0| 64 6f 77 20 2a 2f 0d 09 | 09 53 65 74 53 74 61 74 |dow */..|.SetStat|
|00000cc0| 75 73 4d 65 73 73 61 67 | 65 28 4e 55 4c 4c 29 3b |usMessag|e(NULL);|
|00000cd0| 0d 09 7d 0d 7d 0d 0d 0d | 76 6f 69 64 20 50 6f 70 |..}.}...|void Pop|
|00000ce0| 41 6c 6c 54 61 73 6b 73 | 28 76 6f 69 64 29 0d 7b |AllTasks|(void).{|
|00000cf0| 0d 09 2f 2a 20 69 66 20 | 74 68 65 72 65 20 77 61 |../* if |there wa|
|00000d00| 73 20 61 6e 20 65 72 72 | 6f 72 2c 20 73 68 6f 77 |s an err|or, show|
|00000d10| 20 74 68 65 20 61 6c 65 | 72 74 20 2a 2f 0d 09 69 | the ale|rt */..i|
|00000d20| 66 20 28 70 48 61 76 65 | 45 72 72 6f 72 4e 75 6d |f (pHave|ErrorNum|
|00000d30| 62 65 72 29 0d 09 7b 0d | 09 09 69 66 20 28 70 54 |ber)..{.|..if (pT|
|00000d40| 61 73 6b 45 72 72 6f 72 | 20 21 3d 20 75 73 65 72 |askError| != user|
|00000d50| 43 61 6e 63 65 6c 65 64 | 45 72 72 29 0d 09 09 09 |Canceled|Err)....|
|00000d60| 52 65 73 54 65 78 74 45 | 72 72 6f 72 41 6c 65 72 |ResTextE|rrorAler|
|00000d70| 74 28 6b 50 72 6f 6a 65 | 63 74 44 72 61 67 53 74 |t(kProje|ctDragSt|
|00000d80| 72 69 6e 67 73 2c 20 6b | 41 6e 45 72 72 6f 72 4f |rings, k|AnErrorO|
|00000d90| 63 63 75 72 65 64 2c 20 | 70 54 61 73 6b 45 72 72 |ccured, |pTaskErr|
|00000da0| 6f 72 2c 0d 09 09 09 09 | 09 09 09 20 20 70 54 61 |or,.....|... pTa|
|00000db0| 73 6b 53 74 61 63 6b 2d | 3e 66 4d 65 73 73 61 67 |skStack-|>fMessag|
|00000dc0| 65 2c 20 4e 55 4c 4c 2c | 20 4e 55 4c 4c 2c 20 4e |e, NULL,| NULL, N|
|00000dd0| 55 4c 4c 29 3b 0d 09 7d | 0d 09 65 6c 73 65 20 69 |ULL);..}|..else i|
|00000de0| 66 20 28 70 48 61 76 65 | 45 72 72 6f 72 53 74 72 |f (pHave|ErrorStr|
|00000df0| 69 6e 67 29 0d 09 7b 0d | 09 09 52 65 73 54 65 78 |ing)..{.|..ResTex|
|00000e00| 74 45 72 72 6f 72 41 6c | 65 72 74 28 6b 50 72 6f |tErrorAl|ert(kPro|
|00000e10| 6a 65 63 74 44 72 61 67 | 53 74 72 69 6e 67 73 2c |jectDrag|Strings,|
|00000e20| 20 6b 41 6e 45 72 72 6f | 72 4f 63 63 75 72 65 64 | kAnErro|rOccured|
|00000e30| 2c 20 70 54 61 73 6b 45 | 72 72 6f 72 2c 0d 09 09 |, pTaskE|rror,...|
|00000e40| 09 09 09 09 09 70 54 61 | 73 6b 53 74 61 63 6b 2d |.....pTa|skStack-|
|00000e50| 3e 66 4d 65 73 73 61 67 | 65 2c 20 70 54 61 73 6b |>fMessag|e, pTask|
|00000e60| 45 72 72 6f 72 53 74 72 | 69 6e 67 2c 20 4e 55 4c |ErrorStr|ing, NUL|
|00000e70| 4c 2c 20 4e 55 4c 4c 29 | 3b 0d 09 7d 0d 09 70 48 |L, NULL)|;..}..pH|
|00000e80| 61 76 65 45 72 72 6f 72 | 4e 75 6d 62 65 72 20 3d |aveError|Number =|
|00000e90| 20 70 48 61 76 65 45 72 | 72 6f 72 53 74 72 69 6e | pHaveEr|rorStrin|
|00000ea0| 67 20 3d 20 66 61 6c 73 | 65 3b 0d 09 0d 09 2f 2a |g = fals|e;..../*|
|00000eb0| 20 64 65 6c 65 74 65 20 | 74 68 65 20 74 61 73 6b | delete |the task|
|00000ec0| 20 73 74 61 63 6b 20 2a | 2f 0d 09 77 68 69 6c 65 | stack *|/..while|
|00000ed0| 20 28 70 54 61 73 6b 53 | 74 61 63 6b 29 0d 09 7b | (pTaskS|tack)..{|
|00000ee0| 0d 09 09 54 61 73 6b 53 | 74 61 63 6b 45 6e 74 72 |...TaskS|tackEntr|
|00000ef0| 79 20 2a 74 68 65 45 6e | 74 72 79 20 3d 20 70 54 |y *theEn|try = pT|
|00000f00| 61 73 6b 53 74 61 63 6b | 3b 0d 09 09 70 54 61 73 |askStack|;...pTas|
|00000f10| 6b 53 74 61 63 6b 20 3d | 20 70 54 61 73 6b 53 74 |kStack =| pTaskSt|
|00000f20| 61 63 6b 2d 3e 66 4e 65 | 78 74 3b 0d 09 09 44 69 |ack->fNe|xt;...Di|
|00000f30| 73 70 6f 73 65 50 74 72 | 28 28 50 74 72 29 74 68 |sposePtr|((Ptr)th|
|00000f40| 65 45 6e 74 72 79 29 3b | 0d 09 7d 0d 09 0d 09 2f |eEntry);|..}..../|
|00000f50| 2a 20 64 65 6c 65 74 65 | 20 74 68 65 20 70 65 72 |* delete| the per|
|00000f60| 73 69 73 74 65 6e 74 20 | 61 6e 73 77 65 72 20 6c |sistent |answer l|
|00000f70| 69 73 74 20 2a 2f 0d 09 | 77 68 69 6c 65 20 28 70 |ist */..|while (p|
|00000f80| 50 65 72 73 69 73 74 65 | 6e 74 41 6e 73 77 65 72 |Persiste|ntAnswer|
|00000f90| 29 0d 09 7b 0d 09 09 50 | 65 72 73 69 73 74 65 6e |)..{...P|ersisten|
|00000fa0| 74 41 6e 73 77 65 72 52 | 65 63 6f 72 64 20 2a 74 |tAnswerR|ecord *t|
|00000fb0| 68 65 45 6e 74 72 79 20 | 3d 20 70 50 65 72 73 69 |heEntry |= pPersi|
|00000fc0| 73 74 65 6e 74 41 6e 73 | 77 65 72 3b 0d 09 09 70 |stentAns|wer;...p|
|00000fd0| 50 65 72 73 69 73 74 65 | 6e 74 41 6e 73 77 65 72 |Persiste|ntAnswer|
|00000fe0| 20 3d 20 70 50 65 72 73 | 69 73 74 65 6e 74 41 6e | = pPers|istentAn|
|00000ff0| 73 77 65 72 2d 3e 66 4e | 65 78 74 3b 0d 09 09 44 |swer->fN|ext;...D|
|00001000| 69 73 70 6f 73 65 50 74 | 72 28 28 50 74 72 29 74 |isposePt|r((Ptr)t|
|00001010| 68 65 45 6e 74 72 79 29 | 3b 0d 09 7d 0d 09 0d 09 |heEntry)|;..}....|
|00001020| 2f 2a 20 70 75 74 20 6e | 6f 74 68 69 6e 67 20 69 |/* put n|othing i|
|00001030| 6e 20 74 68 65 20 73 74 | 61 74 75 73 20 77 69 6e |n the st|atus win|
|00001040| 64 6f 77 20 2a 2f 0d 09 | 53 65 74 53 74 61 74 75 |dow */..|SetStatu|
|00001050| 73 4d 65 73 73 61 67 65 | 28 4e 55 4c 4c 29 3b 0d |sMessage|(NULL);.|
|00001060| 7d 0d 0d 0d 4f 53 45 72 | 72 20 52 61 69 73 65 45 |}...OSEr|r RaiseE|
|00001070| 72 72 6f 72 4e 75 6d 62 | 65 72 28 4f 53 45 72 72 |rrorNumb|er(OSErr|
|00001080| 20 65 72 72 29 0d 7b 0d | 09 2f 2a 20 6d 61 72 6b | err).{.|./* mark|
|00001090| 20 74 68 65 20 65 72 72 | 6f 72 20 66 6f 72 20 50 | the err|or for P|
|000010a0| 6f 70 41 6c 6c 54 61 73 | 6b 73 20 74 6f 20 73 68 |opAllTas|ks to sh|
|000010b0| 6f 77 20 2a 2f 0d 09 70 | 48 61 76 65 45 72 72 6f |ow */..p|HaveErro|
|000010c0| 72 4e 75 6d 62 65 72 20 | 3d 20 74 72 75 65 3b 0d |rNumber |= true;.|
|000010d0| 09 70 54 61 73 6b 45 72 | 72 6f 72 20 3d 20 65 72 |.pTaskEr|ror = er|
|000010e0| 72 3b 0d 09 72 65 74 75 | 72 6e 20 65 72 72 3b 0d |r;..retu|rn err;.|
|000010f0| 7d 0d 0d 0d 76 6f 69 64 | 20 52 61 69 73 65 45 72 |}...void| RaiseEr|
|00001100| 72 6f 72 53 74 72 69 6e | 67 28 73 68 6f 72 74 20 |rorStrin|g(short |
|00001110| 73 74 72 4c 69 73 74 49 | 44 2c 20 73 68 6f 72 74 |strListI|D, short|
|00001120| 20 73 74 72 49 6e 64 65 | 78 2c 0d 09 09 09 09 09 | strInde|x,......|
|00001130| 20 20 20 53 74 72 69 6e | 67 50 74 72 20 70 61 72 | Strin|gPtr par|
|00001140| 61 6d 31 2c 20 53 74 72 | 69 6e 67 50 74 72 20 70 |am1, Str|ingPtr p|
|00001150| 61 72 61 6d 32 2c 0d 09 | 09 09 09 09 20 20 20 53 |aram2,..|.... S|
|00001160| 74 72 69 6e 67 50 74 72 | 20 70 61 72 61 6d 33 2c |tringPtr| param3,|
|00001170| 20 53 74 72 69 6e 67 50 | 74 72 20 70 61 72 61 6d | StringP|tr param|
|00001180| 34 29 0d 7b 0d 09 2f 2a | 20 6d 61 72 6b 20 74 68 |4).{../*| mark th|
|00001190| 65 20 65 72 72 6f 72 20 | 66 6f 72 20 50 6f 70 41 |e error |for PopA|
|000011a0| 6c 6c 54 61 73 6b 73 20 | 74 6f 20 73 68 6f 77 20 |llTasks |to show |
|000011b0| 2a 2f 0d 09 70 48 61 76 | 65 45 72 72 6f 72 53 74 |*/..pHav|eErrorSt|
|000011c0| 72 69 6e 67 20 3d 20 74 | 72 75 65 3b 0d 09 52 65 |ring = t|rue;..Re|
|000011d0| 70 6c 61 63 65 49 6e 49 | 6e 64 53 74 72 69 6e 67 |placeInI|ndString|
|000011e0| 28 70 54 61 73 6b 45 72 | 72 6f 72 53 74 72 69 6e |(pTaskEr|rorStrin|
|000011f0| 67 2c 20 73 74 72 4c 69 | 73 74 49 44 2c 20 73 74 |g, strLi|stID, st|
|00001200| 72 49 6e 64 65 78 2c 0d | 09 09 09 09 09 20 20 20 |rIndex,.|..... |
|00001210| 70 61 72 61 6d 31 2c 20 | 70 61 72 61 6d 32 2c 20 |param1, |param2, |
|00001220| 70 61 72 61 6d 33 2c 20 | 70 61 72 61 6d 34 29 3b |param3, |param4);|
|00001230| 0d 7d 0d 0d 0d 76 6f 69 | 64 20 52 65 73 54 65 78 |.}...voi|d ResTex|
|00001240| 74 45 72 72 6f 72 41 6c | 65 72 74 28 73 68 6f 72 |tErrorAl|ert(shor|
|00001250| 74 20 73 74 72 4c 69 73 | 74 49 44 2c 20 73 68 6f |t strLis|tID, sho|
|00001260| 72 74 20 73 74 72 49 6e | 64 65 78 2c 20 4f 53 45 |rt strIn|dex, OSE|
|00001270| 72 72 20 63 61 6c 6c 65 | 72 45 72 72 2c 0d 09 09 |rr calle|rErr,...|
|00001280| 09 09 09 20 20 20 53 74 | 72 69 6e 67 50 74 72 20 |... St|ringPtr |
|00001290| 70 61 72 61 6d 31 2c 20 | 53 74 72 69 6e 67 50 74 |param1, |StringPt|
|000012a0| 72 20 70 61 72 61 6d 32 | 2c 0d 09 09 09 09 09 20 |r param2|,...... |
|000012b0| 20 20 53 74 72 69 6e 67 | 50 74 72 20 70 61 72 61 | String|Ptr para|
|000012c0| 6d 33 2c 20 53 74 72 69 | 6e 67 50 74 72 20 70 61 |m3, Stri|ngPtr pa|
|000012d0| 72 61 6d 34 29 0d 7b 0d | 09 53 74 72 32 35 35 20 |ram4).{.|.Str255 |
|000012e0| 6d 65 73 73 61 67 65 3b | 0d 09 53 74 72 32 35 35 |message;|..Str255|
|000012f0| 20 65 72 72 6f 72 53 74 | 72 69 6e 67 3b 0d 09 0d | errorSt|ring;...|
|00001300| 09 69 66 20 28 63 61 6c | 6c 65 72 45 72 72 20 21 |.if (cal|lerErr !|
|00001310| 3d 20 6e 6f 45 72 72 29 | 0d 09 09 4e 75 6d 54 6f |= noErr)|...NumTo|
|00001320| 53 74 72 69 6e 67 20 28 | 63 61 6c 6c 65 72 45 72 |String (|callerEr|
|00001330| 72 2c 20 65 72 72 6f 72 | 53 74 72 69 6e 67 29 3b |r, error|String);|
|00001340| 0d 09 65 6c 73 65 0d 09 | 09 65 72 72 6f 72 53 74 |..else..|.errorSt|
|00001350| 72 69 6e 67 5b 30 5d 20 | 3d 20 30 3b 0d 09 52 65 |ring[0] |= 0;..Re|
|00001360| 70 6c 61 63 65 49 6e 49 | 6e 64 53 74 72 69 6e 67 |placeInI|ndString|
|00001370| 28 6d 65 73 73 61 67 65 | 2c 20 73 74 72 4c 69 73 |(message|, strLis|
|00001380| 74 49 44 2c 20 73 74 72 | 49 6e 64 65 78 2c 20 70 |tID, str|Index, p|
|00001390| 61 72 61 6d 31 2c 20 70 | 61 72 61 6d 32 2c 20 70 |aram1, p|aram2, p|
|000013a0| 61 72 61 6d 33 2c 20 70 | 61 72 61 6d 34 29 3b 09 |aram3, p|aram4);.|
|000013b0| 0d 09 50 61 72 61 6d 54 | 65 78 74 28 6d 65 73 73 |..ParamT|ext(mess|
|000013c0| 61 67 65 2c 20 65 72 72 | 6f 72 53 74 72 69 6e 67 |age, err|orString|
|000013d0| 2c 20 4e 55 4c 4c 2c 20 | 4e 55 4c 4c 29 3b 0d 09 |, NULL, |NULL);..|
|000013e0| 28 76 6f 69 64 29 20 41 | 6c 65 72 74 20 28 20 6b |(void) A|lert ( k|
|000013f0| 52 65 73 54 65 78 74 41 | 6c 65 72 74 49 44 2c 20 |ResTextA|lertID, |
|00001400| 4e 55 4c 4c 20 29 3b 0d | 7d 0d 0d 0d 76 6f 69 64 |NULL );.|}...void|
|00001410| 20 50 65 72 73 69 73 74 | 65 6e 74 41 6e 73 77 65 | Persist|entAnswe|
|00001420| 72 28 73 68 6f 72 74 20 | 73 74 72 4c 69 73 74 49 |r(short |strListI|
|00001430| 44 2c 20 73 68 6f 72 74 | 20 73 74 72 49 6e 64 65 |D, short| strInde|
|00001440| 78 2c 20 43 6f 6e 66 69 | 72 6d 52 65 73 70 6f 6e |x, Confi|rmRespon|
|00001450| 73 65 20 61 6e 73 77 65 | 72 29 0d 7b 0d 09 2f 2a |se answe|r).{../*|
|00001460| 20 73 65 61 72 63 68 20 | 74 68 65 20 6c 69 73 74 | search |the list|
|00001470| 20 66 6f 72 20 74 68 69 | 73 20 65 6e 74 72 79 20 | for thi|s entry |
|00001480| 2a 2f 0d 09 50 65 72 73 | 69 73 74 65 6e 74 41 6e |*/..Pers|istentAn|
|00001490| 73 77 65 72 52 65 63 6f | 72 64 20 2a 74 68 65 45 |swerReco|rd *theE|
|000014a0| 6e 74 72 79 3b 0d 09 66 | 6f 72 20 28 74 68 65 45 |ntry;..f|or (theE|
|000014b0| 6e 74 72 79 20 3d 20 70 | 50 65 72 73 69 73 74 65 |ntry = p|Persiste|
|000014c0| 6e 74 41 6e 73 77 65 72 | 3b 20 74 68 65 45 6e 74 |ntAnswer|; theEnt|
|000014d0| 72 79 20 21 3d 20 4e 55 | 4c 4c 3b 20 74 68 65 45 |ry != NU|LL; theE|
|000014e0| 6e 74 72 79 20 3d 20 74 | 68 65 45 6e 74 72 79 2d |ntry = t|heEntry-|
|000014f0| 3e 66 4e 65 78 74 29 0d | 09 7b 0d 09 09 69 66 20 |>fNext).|.{...if |
|00001500| 28 74 68 65 45 6e 74 72 | 79 2d 3e 66 53 74 72 4c |(theEntr|y->fStrL|
|00001510| 69 73 74 49 44 20 3d 3d | 20 73 74 72 4c 69 73 74 |istID ==| strList|
|00001520| 49 44 20 26 26 20 74 68 | 65 45 6e 74 72 79 2d 3e |ID && th|eEntry->|
|00001530| 66 53 74 72 49 6e 64 65 | 78 20 3d 3d 20 73 74 72 |fStrInde|x == str|
|00001540| 49 6e 64 65 78 29 0d 09 | 09 7b 0d 09 09 09 2f 2a |Index)..|.{..../*|
|00001550| 20 66 6f 75 6e 64 20 69 | 74 20 2a 2f 0d 09 09 09 | found i|t */....|
|00001560| 74 68 65 45 6e 74 72 79 | 2d 3e 66 41 6e 73 77 65 |theEntry|->fAnswe|
|00001570| 72 20 3d 20 61 6e 73 77 | 65 72 3b 0d 09 09 09 72 |r = answ|er;....r|
|00001580| 65 74 75 72 6e 3b 0d 09 | 09 7d 0d 09 7d 0d 09 0d |eturn;..|.}..}...|
|00001590| 09 2f 2a 20 64 69 64 6e | 27 74 20 66 69 6e 64 20 |./* didn|'t find |
|000015a0| 69 74 2c 20 61 64 64 20 | 6f 6e 65 20 2a 2f 0d 09 |it, add |one */..|
|000015b0| 74 68 65 45 6e 74 72 79 | 20 3d 20 28 50 65 72 73 |theEntry| = (Pers|
|000015c0| 69 73 74 65 6e 74 41 6e | 73 77 65 72 52 65 63 6f |istentAn|swerReco|
|000015d0| 72 64 2a 29 4e 65 77 50 | 74 72 43 6c 65 61 72 28 |rd*)NewP|trClear(|
|000015e0| 73 69 7a 65 6f 66 28 50 | 65 72 73 69 73 74 65 6e |sizeof(P|ersisten|
|000015f0| 74 41 6e 73 77 65 72 52 | 65 63 6f 72 64 29 29 3b |tAnswerR|ecord));|
|00001600| 0d 09 69 66 20 28 74 68 | 65 45 6e 74 72 79 20 3d |..if (th|eEntry =|
|00001610| 3d 20 4e 55 4c 4c 29 20 | 72 65 74 75 72 6e 3b 0d |= NULL) |return;.|
|00001620| 09 74 68 65 45 6e 74 72 | 79 2d 3e 66 53 74 72 4c |.theEntr|y->fStrL|
|00001630| 69 73 74 49 44 20 3d 20 | 73 74 72 4c 69 73 74 49 |istID = |strListI|
|00001640| 44 3b 0d 09 74 68 65 45 | 6e 74 72 79 2d 3e 66 53 |D;..theE|ntry->fS|
|00001650| 74 72 49 6e 64 65 78 20 | 3d 20 73 74 72 49 6e 64 |trIndex |= strInd|
|00001660| 65 78 3b 0d 09 74 68 65 | 45 6e 74 72 79 2d 3e 66 |ex;..the|Entry->f|
|00001670| 41 6e 73 77 65 72 20 3d | 20 61 6e 73 77 65 72 3b |Answer =| answer;|
|00001680| 0d 09 74 68 65 45 6e 74 | 72 79 2d 3e 66 4e 65 78 |..theEnt|ry->fNex|
|00001690| 74 20 3d 20 70 50 65 72 | 73 69 73 74 65 6e 74 41 |t = pPer|sistentA|
|000016a0| 6e 73 77 65 72 3b 0d 09 | 70 50 65 72 73 69 73 74 |nswer;..|pPersist|
|000016b0| 65 6e 74 41 6e 73 77 65 | 72 20 3d 20 74 68 65 45 |entAnswe|r = theE|
|000016c0| 6e 74 72 79 3b 0d 7d 0d | 0d 0d 42 6f 6f 6c 65 61 |ntry;.}.|..Boolea|
|000016d0| 6e 20 47 65 74 50 65 72 | 73 69 73 74 65 6e 74 41 |n GetPer|sistentA|
|000016e0| 6e 73 77 65 72 28 73 68 | 6f 72 74 20 73 74 72 4c |nswer(sh|ort strL|
|000016f0| 69 73 74 49 44 2c 20 73 | 68 6f 72 74 20 73 74 72 |istID, s|hort str|
|00001700| 49 6e 64 65 78 2c 20 43 | 6f 6e 66 69 72 6d 52 65 |Index, C|onfirmRe|
|00001710| 73 70 6f 6e 73 65 20 2a | 61 6e 73 77 65 72 29 0d |sponse *|answer).|
|00001720| 7b 0d 09 2f 2a 20 73 65 | 61 72 63 68 20 74 68 65 |{../* se|arch the|
|00001730| 20 6c 69 73 74 20 66 6f | 72 20 74 68 69 73 20 65 | list fo|r this e|
|00001740| 6e 74 72 79 20 2a 2f 0d | 09 50 65 72 73 69 73 74 |ntry */.|.Persist|
|00001750| 65 6e 74 41 6e 73 77 65 | 72 52 65 63 6f 72 64 20 |entAnswe|rRecord |
|00001760| 2a 74 68 65 45 6e 74 72 | 79 3b 0d 09 66 6f 72 20 |*theEntr|y;..for |
|00001770| 28 74 68 65 45 6e 74 72 | 79 20 3d 20 70 50 65 72 |(theEntr|y = pPer|
|00001780| 73 69 73 74 65 6e 74 41 | 6e 73 77 65 72 3b 20 74 |sistentA|nswer; t|
|00001790| 68 65 45 6e 74 72 79 20 | 21 3d 20 4e 55 4c 4c 3b |heEntry |!= NULL;|
|000017a0| 20 74 68 65 45 6e 74 72 | 79 20 3d 20 74 68 65 45 | theEntr|y = theE|
|000017b0| 6e 74 72 79 2d 3e 66 4e | 65 78 74 29 0d 09 7b 0d |ntry->fN|ext)..{.|
|000017c0| 09 09 69 66 20 28 74 68 | 65 45 6e 74 72 79 2d 3e |..if (th|eEntry->|
|000017d0| 66 53 74 72 4c 69 73 74 | 49 44 20 3d 3d 20 73 74 |fStrList|ID == st|
|000017e0| 72 4c 69 73 74 49 44 20 | 26 26 20 74 68 65 45 6e |rListID |&& theEn|
|000017f0| 74 72 79 2d 3e 66 53 74 | 72 49 6e 64 65 78 20 3d |try->fSt|rIndex =|
|00001800| 3d 20 73 74 72 49 6e 64 | 65 78 29 0d 09 09 7b 0d |= strInd|ex)...{.|
|00001810| 09 09 09 2f 2a 20 66 6f | 75 6e 64 20 69 74 20 2a |.../* fo|und it *|
|00001820| 2f 0d 09 09 09 2a 61 6e | 73 77 65 72 20 3d 20 74 |/....*an|swer = t|
|00001830| 68 65 45 6e 74 72 79 2d | 3e 66 41 6e 73 77 65 72 |heEntry-|>fAnswer|
|00001840| 3b 0d 09 09 09 72 65 74 | 75 72 6e 20 74 72 75 65 |;....ret|urn true|
|00001850| 3b 0d 09 09 7d 0d 09 7d | 0d 09 72 65 74 75 72 6e |;...}..}|..return|
|00001860| 20 66 61 6c 73 65 3b 0d | 7d 0d 00 00 00 00 00 00 | false;.|}.......|
|00001870| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001880| 00 00 01 00 00 00 01 6e | 00 00 00 6e 00 00 00 3e |.......n|...n...>|
|00001890| 00 00 00 c3 00 00 00 00 | 00 03 f0 00 00 00 0c 3c |........|.......<|
|000018a0| 00 00 00 c3 00 00 00 00 | 00 0f fc 00 00 00 0c 3c |........|.......<|
|000018b0| 10 54 61 73 6b 73 41 6e | 64 45 72 72 6f 72 73 2e |.TasksAn|dErrors.|
|000018c0| 63 72 02 00 00 00 54 45 | 58 54 4d 50 53 20 01 00 |cr....TE|XTMPS ..|
|000018d0| 00 00 54 45 58 54 4d 50 | 53 20 01 00 ff ff ff ff |..TEXTMP|S ......|
|000018e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000018f0| 00 00 ab d5 41 80 00 00 | 17 ea 00 00 01 ac 0c 3c |....A...|.......<|
|00001900| 00 00 00 c3 00 00 00 0d | 11 11 2c 00 00 00 0c 3c |........|..,....<|
|00001910| 00 00 00 c3 00 00 00 0c | 44 44 6c 00 00 00 0c 3c |........|DDl....<|
|00001920| 00 00 00 c3 00 00 00 0d | 11 11 2c 00 00 00 0c 3c |........|..,....<|
|00001930| 00 00 00 c3 00 00 00 0c | 44 44 6c 00 00 00 0c 3c |........|DDl....<|
|00001940| 00 00 00 c3 00 00 00 0f | ff ff fc 00 00 00 0c 3c |........|.......<|
|00001950| 00 00 00 c3 00 00 00 00 | 00 00 00 00 00 00 0c 3c |........|.......<|
|00001960| 00 00 00 c3 00 00 00 00 | 00 00 00 00 00 00 0c 3c |........|.......<|
|00001970| 00 00 00 c3 03 f3 03 0f | 30 c3 c3 0c 3c 3f 0c 3c |........|0...<?.<|
|00001980| 00 00 00 48 00 09 4d 6f | 6e 61 63 6f 00 32 35 35 |...H..Mo|naco.255|
|00001990| 01 02 de 30 6d 20 66 69 | 6c 65 4e 61 6d 65 2c 20 |...0m fi|leName, |
|000019a0| 73 68 6f 72 74 20 00 06 | 00 04 00 2a 00 74 02 61 |short ..|...*.t.a|
|000019b0| 02 70 00 2a 00 20 01 d1 | 02 50 ac 39 db 90 00 00 |.p.*. ..|.P.9....|
|000019c0| 0c 56 00 00 0c 56 00 00 | 02 fc 01 00 00 00 00 1e |.V...V..|........|
|000019d0| 00 2a 00 74 02 61 02 70 | 00 2a 00 20 01 d1 02 50 |.*.t.a.p|.*. ...P|
|000019e0| 00 00 02 fc 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000019f0| 01 00 00 00 01 6e 00 00 | 00 6e 00 00 00 3e 00 e6 |.....n..|.n...>..|
|00001a00| 06 48 22 86 00 00 00 1c | 00 3e 00 00 4d 50 53 52 |.H".....|.>..MPSR|
|00001a10| 00 01 00 0a 03 ed ff ff | 00 00 00 00 00 00 00 00 |........|........|
|00001a20| 03 f0 ff ff 00 00 00 4c | 00 f0 b8 08 00 00 00 00 |.......L|........|
|00001a30| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001a40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001a50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001a60| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001a70| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
+--------+-------------------------+-------------------------+--------+--------+