home *** CD-ROM | disk | FTP | other *** search
MacBinary | 1995-01-13 | 9.8 KB | [TEXT/KEEN] |
open in:
MacOS 8.1
|
Win98
|
DOS
browse contents |
view JSON data
|
view as text
This file was processed as: MacBinary
(archive/macBinary).
Confidence | Program | Detection | Match Type | Support
|
---|
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, Fri Jan 13 23:52:15 1995, modified Fri Jan 13 23:52:15 1995, creator 'KEEN', type ASCII, 8719 bytes "Code_Main.c" , at 0x228f 928 bytes resource
| default (weak)
| |
99%
| file
| data
| default
| |
74%
| TrID
| Macintosh plain text (MacBinary)
| default
| |
25%
| TrID
| MacBinary 2
| default (weak)
| |
100%
| lsar
| MacBinary
| default
|
|
id metadata |
---|
key | value |
---|
macFileType | [TEXT] |
macFileCreator | [KEEN] |
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 0b 43 6f 64 65 5f 4d | 61 69 6e 2e 63 00 00 00 |..Code_M|ain.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 45 45 | 4e 01 00 00 00 00 00 00 |.TEXTKEE|N.......|
|00000050| 00 00 00 00 00 22 0f 00 | 00 03 a0 ab 3d 08 ff ab |....."..|....=...|
|00000060| 3d 08 ff 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 9d a1 00 00 |........|........|
|00000080| 2f 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 6d 61 69 6e |/*******|****main|
|00000090| 20 66 69 6c 65 20 66 6f | 72 20 63 6f 64 65 20 72 | file fo|r code r|
|000000a0| 65 73 6f 75 72 63 65 2a | 2a 2a 2a 2a 2a 2a 2a 2a |esource*|********|
|000000b0| 2a 2a 2a 2a 2a 2f 0d 2f | 2a 20 43 6f 70 79 72 69 |*****/./|* Copyri|
|000000c0| 67 68 74 20 a9 20 31 39 | 39 31 2c 20 31 39 39 32 |ght . 19|91, 1992|
|000000d0| 20 74 68 65 20 46 72 65 | 65 20 53 6f 66 74 77 61 | the Fre|e Softwa|
|000000e0| 72 65 20 46 6f 75 6e 64 | 61 74 69 6f 6e 2c 20 49 |re Found|ation, I|
|000000f0| 6e 63 2e 0d 20 2a 20 09 | 09 54 68 69 73 20 66 69 |nc.. * .|.This fi|
|00000100| 6c 65 20 69 73 20 66 72 | 65 65 20 73 6f 66 74 77 |le is fr|ee softw|
|00000110| 61 72 65 3b 20 79 6f 75 | 20 63 61 6e 20 72 65 64 |are; you| can red|
|00000120| 69 73 74 72 69 62 75 74 | 65 20 6f 72 20 6d 6f 64 |istribut|e or mod|
|00000130| 69 66 79 0d 20 2a 20 69 | 74 20 75 6e 64 65 72 20 |ify. * i|t under |
|00000140| 74 68 65 20 74 65 72 6d | 73 20 6f 66 20 74 68 65 |the term|s of the|
|00000150| 20 47 4e 55 20 47 65 6e | 65 72 61 6c 20 50 75 62 | GNU Gen|eral Pub|
|00000160| 6c 69 63 20 4c 69 63 65 | 6e 73 65 20 61 73 20 70 |lic Lice|nse as p|
|00000170| 75 62 6c 69 73 68 65 64 | 20 62 79 0d 20 2a 20 74 |ublished| by. * t|
|00000180| 68 65 20 46 72 65 65 20 | 53 6f 66 74 77 61 72 65 |he Free |Software|
|00000190| 20 46 6f 75 6e 64 61 74 | 69 6f 6e 3b 20 65 69 74 | Foundat|ion; eit|
|000001a0| 68 65 72 20 76 65 72 73 | 69 6f 6e 20 31 2c 20 6f |her vers|ion 1, o|
|000001b0| 72 20 61 6e 79 20 6c 61 | 74 65 72 20 76 65 72 73 |r any la|ter vers|
|000001c0| 69 6f 6e 2e 0d 20 2a 20 | 09 09 54 68 69 73 20 66 |ion.. * |..This f|
|000001d0| 69 6c 65 20 69 73 20 64 | 69 73 74 72 69 62 75 74 |ile is d|istribut|
|000001e0| 65 64 20 69 6e 20 74 68 | 65 20 68 6f 70 65 20 74 |ed in th|e hope t|
|000001f0| 68 61 74 20 69 74 20 77 | 69 6c 6c 20 62 65 20 75 |hat it w|ill be u|
|00000200| 73 65 66 75 6c 2c 0d 20 | 2a 20 62 75 74 20 57 49 |seful,. |* but WI|
|00000210| 54 48 4f 55 54 20 41 4e | 59 20 57 41 52 52 41 4e |THOUT AN|Y WARRAN|
|00000220| 54 59 3b 20 77 69 74 68 | 6f 75 74 20 65 76 65 6e |TY; with|out even|
|00000230| 20 74 68 65 20 69 6d 70 | 6c 69 65 64 20 77 61 72 | the imp|lied war|
|00000240| 72 61 6e 74 79 20 6f 66 | 0d 20 2a 20 4d 45 52 43 |ranty of|. * MERC|
|00000250| 48 41 4e 54 41 42 49 4c | 49 54 59 20 6f 72 20 46 |HANTABIL|ITY or F|
|00000260| 49 54 4e 45 53 53 20 46 | 4f 52 20 41 20 50 41 52 |ITNESS F|OR A PAR|
|00000270| 54 49 43 55 4c 41 52 20 | 50 55 52 50 4f 53 45 2e |TICULAR |PURPOSE.|
|00000280| 20 53 65 65 20 74 68 65 | 0d 20 2a 20 47 4e 55 20 | See the|. * GNU |
|00000290| 47 65 6e 65 72 61 6c 20 | 50 75 62 6c 69 63 20 4c |General |Public L|
|000002a0| 69 63 65 6e 73 65 20 66 | 6f 72 20 6d 6f 72 65 20 |icense f|or more |
|000002b0| 64 65 74 61 69 6c 73 2e | 0d 20 2a 20 09 09 59 6f |details.|. * ..Yo|
|000002c0| 75 20 73 68 6f 75 6c 64 | 20 68 61 76 65 20 72 65 |u should| have re|
|000002d0| 63 65 69 76 65 64 20 61 | 20 63 6f 70 79 20 6f 66 |ceived a| copy of|
|000002e0| 20 74 68 65 20 47 4e 55 | 20 47 65 6e 65 72 61 6c | the GNU| General|
|000002f0| 20 50 75 62 6c 69 63 20 | 4c 69 63 65 6e 73 65 0d | Public |License.|
|00000300| 20 2a 20 61 6c 6f 6e 67 | 20 77 69 74 68 20 47 41 | * along| with GA|
|00000310| 57 4b 3b 20 73 65 65 20 | 74 68 65 20 66 69 6c 65 |WK; see |the file|
|00000320| 20 22 43 4f 50 59 49 4e | 47 20 68 41 57 4b 22 2e | "COPYIN|G hAWK".|
|00000330| 20 49 66 20 6e 6f 74 2c | 20 77 72 69 74 65 20 74 | If not,| write t|
|00000340| 6f 0d 20 2a 20 74 68 65 | 20 46 72 65 65 20 53 6f |o. * the| Free So|
|00000350| 66 74 77 61 72 65 20 46 | 6f 75 6e 64 61 74 69 6f |ftware F|oundatio|
|00000360| 6e 2c 20 36 37 35 20 4d | 61 73 73 20 41 76 65 2c |n, 675 M|ass Ave,|
|00000370| 20 43 61 6d 62 72 69 64 | 67 65 2c 20 4d 41 20 30 | Cambrid|ge, MA 0|
|00000380| 32 31 33 39 2c 20 55 53 | 41 2e 0d 20 2a 20 57 72 |2139, US|A.. * Wr|
|00000390| 69 74 74 65 6e 20 66 6f | 72 20 54 48 49 4e 4b 20 |itten fo|r THINK |
|000003a0| 43 20 34 20 6f 6e 20 74 | 68 65 20 4d 61 63 69 6e |C 4 on t|he Macin|
|000003b0| 74 6f 73 68 20 62 79 20 | 4b 65 6e 20 45 61 72 6c |tosh by |Ken Earl|
|000003c0| 65 20 28 44 79 6e 61 62 | 79 74 65 29 20 41 75 67 |e (Dynab|yte) Aug|
|000003d0| 20 31 39 39 31 2e 0d 20 | 20 20 52 65 76 69 73 65 | 1991.. | Revise|
|000003e0| 64 20 4d 61 79 20 31 39 | 39 32 3a 20 6e 65 77 20 |d May 19|92: new |
|000003f0| 73 65 74 75 70 2f 72 65 | 73 74 6f 72 65 20 61 34 |setup/re|store a4|
|00000400| 20 73 74 72 61 74 65 67 | 79 2e 0d 20 2a 2f 0d 23 | strateg|y.. */.#|
|00000410| 69 6e 63 6c 75 64 65 20 | 22 41 70 70 43 6f 64 65 |include |"AppCode|
|00000420| 43 6f 6d 6d 2e 68 22 0d | 23 69 6e 63 6c 75 64 65 |Comm.h".|#include|
|00000430| 20 3c 73 74 72 69 6e 67 | 2e 68 3e 0d 0d 41 70 70 | <string|.h>..App|
|00000440| 43 6f 64 65 43 6f 6d 6d | 09 67 61 63 63 3b 0d 0d |CodeComm|.gacc;..|
|00000450| 2f 2a 20 47 6c 6f 62 61 | 6c 20 74 6f 20 69 6e 64 |/* Globa|l to ind|
|00000460| 69 63 61 74 65 20 69 66 | 20 63 61 6c 6c 69 6e 67 |icate if| calling|
|00000470| 20 61 70 70 27 73 20 65 | 76 65 6e 74 20 6c 6f 6f | app's e|vent loo|
|00000480| 70 20 68 61 73 20 62 65 | 65 6e 20 6d 61 64 65 0d |p has be|en made.|
|00000490| 61 76 61 69 6c 61 62 6c | 65 20 61 6e 64 20 73 68 |availabl|e and sh|
|000004a0| 6f 75 6c 64 20 63 61 6c | 6c 20 69 74 20 2a 2f 0d |ould cal|l it */.|
|000004b0| 42 6f 6f 6c 65 61 6e 20 | 67 43 6f 6e 63 75 72 72 |Boolean |gConcurr|
|000004c0| 65 6e 74 3b 0d 0d 23 69 | 66 6e 64 65 66 20 4e 55 |ent;..#i|fndef NU|
|000004d0| 4c 4c 0d 23 64 65 66 69 | 6e 65 20 4e 55 4c 4c 09 |LL.#defi|ne NULL.|
|000004e0| 09 28 28 76 6f 69 64 20 | 2a 29 20 30 29 0d 23 65 |.((void |*) 0).#e|
|000004f0| 6e 64 69 66 0d 0d 6c 6f | 6e 67 20 5f 63 6f 64 65 |ndif..lo|ng _code|
|00000500| 5f 61 34 2c 20 5f 61 70 | 70 5f 61 34 3b 0d 0d 23 |_a4, _ap|p_a4;..#|
|00000510| 64 65 66 69 6e 65 20 53 | 65 74 55 70 41 34 28 29 |define S|etUpA4()|
|00000520| 09 61 73 6d 20 7b 20 6d | 6f 76 65 2e 6c 20 61 34 |.asm { m|ove.l a4|
|00000530| 2c 5f 74 65 6d 70 5f 61 | 20 7d 5c 0d 09 09 09 09 |,_temp_a| }\.....|
|00000540| 09 61 73 6d 20 7b 20 6d | 6f 76 65 2e 6c 20 5f 74 |.asm { m|ove.l _t|
|00000550| 65 6d 70 5f 63 2c 20 61 | 34 20 7d 5c 0d 09 09 09 |emp_c, a|4 }\....|
|00000560| 09 09 5f 61 70 70 5f 61 | 34 20 3d 20 5f 74 65 6d |.._app_a|4 = _tem|
|00000570| 70 5f 61 3b 0d 09 09 09 | 09 09 09 09 0d 0d 23 64 |p_a;....|......#d|
|00000580| 65 66 69 6e 65 20 52 65 | 73 74 6f 72 65 41 34 28 |efine Re|storeA4(|
|00000590| 29 09 09 6c 6f 6e 67 09 | 5f 74 65 6d 70 5f 61 2c |)..long.|_temp_a,|
|000005a0| 20 5f 74 65 6d 70 5f 63 | 20 3d 20 5f 63 6f 64 65 | _temp_c| = _code|
|000005b0| 5f 61 34 3b 5c 0d 09 09 | 09 09 09 09 61 73 6d 20 |_a4;\...|....asm |
|000005c0| 7b 20 6d 6f 76 65 2e 6c | 20 5f 61 70 70 5f 61 34 |{ move.l| _app_a4|
|000005d0| 2c 61 34 20 7d 0d 2f 2a | 0d 2d 63 61 6c 6c 20 52 |,a4 }./*|.-call R|
|000005e0| 65 73 74 6f 72 65 41 34 | 28 29 20 61 74 20 76 65 |estoreA4|() at ve|
|000005f0| 72 79 20 62 65 67 69 6e | 6e 69 6e 67 20 6f 66 20 |ry begin|ning of |
|00000600| 63 61 6c 6c 62 61 63 6b | 0d 2d 61 74 20 65 6e 64 |callback|.-at end|
|00000610| 20 6f 66 20 65 61 63 68 | 20 63 61 6c 6c 62 61 63 | of each| callbac|
|00000620| 6b 20 64 6f 20 53 65 74 | 55 70 41 34 28 29 0d 2d |k do Set|UpA4().-|
|00000630| 74 68 65 72 65 27 73 20 | 61 6c 73 6f 20 61 20 62 |there's |also a b|
|00000640| 69 74 20 6f 66 20 61 73 | 6d 20 61 74 20 74 68 65 |it of as|m at the|
|00000650| 20 74 6f 70 20 6f 66 20 | 6d 61 69 6e 28 29 20 74 | top of |main() t|
|00000660| 6f 20 72 65 63 6f 76 65 | 72 20 61 30 2c 0d 09 77 |o recove|r a0,..w|
|00000670| 68 69 63 68 20 63 6f 6e | 74 61 69 6e 73 20 74 68 |hich con|tains th|
|00000680| 65 20 43 6f 64 65 27 73 | 20 61 34 20 76 61 6c 75 |e Code's| a4 valu|
|00000690| 65 2c 20 61 6e 64 20 61 | 74 20 62 6f 74 74 6f 6d |e, and a|t bottom|
|000006a0| 20 74 6f 20 72 65 73 74 | 6f 72 65 20 61 34 2e 0d | to rest|ore a4..|
|000006b0| 2a 2f 0d 0d 2f 2a 20 22 | 6d 61 69 6e 22 20 63 61 |*/../* "|main" ca|
|000006c0| 6c 6c 20 66 6f 72 20 74 | 68 65 20 73 70 65 63 69 |ll for t|he speci|
|000006d0| 66 69 63 20 63 6f 64 65 | 20 72 65 73 6f 75 72 63 |fic code| resourc|
|000006e0| 65 20 2a 2f 0d 65 78 74 | 65 72 6e 20 73 68 6f 72 |e */.ext|ern shor|
|000006f0| 74 20 44 6f 52 65 61 64 | 52 65 73 28 76 6f 69 64 |t DoRead|Res(void|
|00000700| 29 3b 20 2f 2a 20 73 65 | 65 20 52 65 61 64 5f 52 |); /* se|e Read_R|
|00000710| 65 73 2e 63 20 2a 2f 0d | 0d 2f 2a 20 50 72 6f 74 |es.c */.|./* Prot|
|00000720| 6f 73 20 66 6f 72 20 66 | 75 6e 63 74 69 6f 6e 73 |os for f|unctions|
|00000730| 20 69 6e 20 74 68 69 73 | 20 66 69 6c 65 20 2a 2f | in this| file */|
|00000740| 0d 76 6f 69 64 20 6d 61 | 69 6e 28 41 43 43 50 74 |.void ma|in(ACCPt|
|00000750| 72 20 61 63 29 3b 0d 2f | 2a 20 43 61 6c 6c 62 61 |r ac);./|* Callba|
|00000760| 63 6b 73 2c 20 74 6f 20 | 62 65 20 6d 61 64 65 20 |cks, to |be made |
|00000770| 61 76 61 69 6c 61 62 6c | 65 20 74 6f 20 6f 74 68 |availabl|e to oth|
|00000780| 65 72 20 66 69 6c 65 73 | 20 2a 2f 0d 73 68 6f 72 |er files| */.shor|
|00000790| 74 20 49 6e 44 69 63 74 | 69 6f 6e 61 72 79 28 63 |t InDict|ionary(c|
|000007a0| 68 61 72 20 2a 74 6f 6b | 65 6e 4e 61 6d 65 29 3b |har *tok|enName);|
|000007b0| 0d 42 6f 6f 6c 65 61 6e | 20 48 61 73 49 6e 44 69 |.Boolean| HasInDi|
|000007c0| 63 74 69 6f 6e 61 72 79 | 28 76 6f 69 64 29 3b 0d |ctionary|(void);.|
|000007d0| 48 61 6e 64 6c 65 20 47 | 65 74 46 72 6f 6e 74 54 |Handle G|etFrontT|
|000007e0| 65 78 74 28 42 6f 6f 6c | 65 61 6e 20 67 65 74 49 |ext(Bool|ean getI|
|000007f0| 74 41 6c 6c 29 3b 0d 42 | 6f 6f 6c 65 61 6e 20 48 |tAll);.B|oolean H|
|00000800| 61 73 47 65 74 46 72 6f | 6e 74 54 65 78 74 28 76 |asGetFro|ntText(v|
|00000810| 6f 69 64 29 3b 0d 76 6f | 69 64 20 47 65 74 4e 65 |oid);.vo|id GetNe|
|00000820| 78 74 4d 75 6c 74 69 46 | 69 6c 65 28 73 68 6f 72 |xtMultiF|ile(shor|
|00000830| 74 20 2a 70 61 6e 65 50 | 74 72 2c 20 73 68 6f 72 |t *paneP|tr, shor|
|00000840| 74 20 2a 69 6e 64 65 78 | 50 74 72 2c 20 0d 09 09 |t *index|Ptr, ...|
|00000850| 73 68 6f 72 74 20 2a 76 | 52 65 66 4e 75 6d 50 74 |short *v|RefNumPt|
|00000860| 72 2c 20 63 68 61 72 20 | 2a 66 69 6c 65 4e 61 6d |r, char |*fileNam|
|00000870| 65 2c 20 42 6f 6f 6c 65 | 61 6e 20 63 6c 65 61 72 |e, Boole|an clear|
|00000880| 46 6c 61 67 29 3b 0d 42 | 6f 6f 6c 65 61 6e 20 48 |Flag);.B|oolean H|
|00000890| 61 73 47 65 74 4e 65 78 | 74 4d 75 6c 74 69 46 69 |asGetNex|tMultiFi|
|000008a0| 6c 65 28 76 6f 69 64 29 | 3b 0d 73 68 6f 72 74 20 |le(void)|;.short |
|000008b0| 4f 4b 53 74 6f 70 41 6c | 65 72 74 28 50 74 72 20 |OKStopAl|ert(Ptr |
|000008c0| 63 73 74 72 69 6e 67 50 | 74 72 29 3b 0d 42 6f 6f |cstringP|tr);.Boo|
|000008d0| 6c 65 61 6e 20 48 61 73 | 4f 4b 53 74 6f 70 41 6c |lean Has|OKStopAl|
|000008e0| 65 72 74 28 76 6f 69 64 | 29 3b 0d 76 6f 69 64 20 |ert(void|);.void |
|000008f0| 4d 65 6d 6f 72 79 41 6c | 65 72 74 28 76 6f 69 64 |MemoryAl|ert(void|
|00000900| 29 3b 0d 42 6f 6f 6c 65 | 61 6e 20 48 61 73 4d 65 |);.Boole|an HasMe|
|00000910| 6d 6f 72 79 41 6c 65 72 | 74 28 76 6f 69 64 29 3b |moryAler|t(void);|
|00000920| 0d 73 68 6f 72 74 20 47 | 65 74 53 63 72 65 65 6e |.short G|etScreen|
|00000930| 48 65 69 67 68 74 28 76 | 6f 69 64 29 3b 0d 42 6f |Height(v|oid);.Bo|
|00000940| 6f 6c 65 61 6e 20 48 61 | 73 47 65 74 53 63 72 65 |olean Ha|sGetScre|
|00000950| 65 6e 48 65 69 67 68 74 | 28 76 6f 69 64 29 3b 0d |enHeight|(void);.|
|00000960| 73 68 6f 72 74 20 47 65 | 74 53 63 72 65 65 6e 57 |short Ge|tScreenW|
|00000970| 69 64 74 68 28 76 6f 69 | 64 29 3b 0d 42 6f 6f 6c |idth(voi|d);.Bool|
|00000980| 65 61 6e 20 48 61 73 47 | 65 74 53 63 72 65 65 6e |ean HasG|etScreen|
|00000990| 57 69 64 74 68 28 76 6f | 69 64 29 3b 0d 76 6f 69 |Width(vo|id);.voi|
|000009a0| 64 20 53 65 74 57 61 74 | 63 68 43 75 72 73 6f 72 |d SetWat|chCursor|
|000009b0| 28 76 6f 69 64 29 3b 0d | 42 6f 6f 6c 65 61 6e 20 |(void);.|Boolean |
|000009c0| 48 61 73 53 65 74 57 61 | 74 63 68 43 75 72 73 6f |HasSetWa|tchCurso|
|000009d0| 72 28 76 6f 69 64 29 3b | 0d 76 6f 69 64 20 44 6f |r(void);|.void Do|
|000009e0| 45 76 65 6e 74 4c 6f 6f | 70 4f 6e 63 65 28 76 6f |EventLoo|pOnce(vo|
|000009f0| 69 64 29 3b 0d 42 6f 6f | 6c 65 61 6e 20 48 61 73 |id);.Boo|lean Has|
|00000a00| 44 6f 45 76 65 6e 74 4c | 6f 6f 70 4f 6e 63 65 28 |DoEventL|oopOnce(|
|00000a10| 76 6f 69 64 29 3b 0d 48 | 61 6e 64 6c 65 20 47 65 |void);.H|andle Ge|
|00000a20| 74 54 68 65 43 6c 69 70 | 28 76 6f 69 64 29 3b 0d |tTheClip|(void);.|
|00000a30| 42 6f 6f 6c 65 61 6e 20 | 48 61 73 47 65 74 54 68 |Boolean |HasGetTh|
|00000a40| 65 43 6c 69 70 28 76 6f | 69 64 29 3b 0d 73 68 6f |eClip(vo|id);.sho|
|00000a50| 72 74 20 50 75 74 54 68 | 65 43 6c 69 70 28 63 68 |rt PutTh|eClip(ch|
|00000a60| 61 72 20 2a 6e 65 77 43 | 6c 69 70 53 74 72 29 3b |ar *newC|lipStr);|
|00000a70| 0d 42 6f 6f 6c 65 61 6e | 20 48 61 73 50 75 74 54 |.Boolean| HasPutT|
|00000a80| 68 65 43 6c 69 70 28 76 | 6f 69 64 29 3b 0d 0d 2f |heClip(v|oid);../|
|00000a90| 2a 20 54 68 65 20 22 6d | 61 69 6e 22 20 74 68 61 |* The "m|ain" tha|
|00000aa0| 74 20 69 73 20 63 61 6c | 6c 65 64 20 66 72 6f 6d |t is cal|led from|
|00000ab0| 20 74 68 65 20 72 75 6e | 6e 69 6e 67 20 61 70 70 | the run|ning app|
|00000ac0| 6c 69 63 61 74 69 6f 6e | 2e 20 54 68 69 73 20 66 |lication|. This f|
|00000ad0| 69 6c 65 20 69 73 0d 6b | 65 70 74 20 73 6d 61 6c |ile is.k|ept smal|
|00000ae0| 6c 20 61 6e 64 20 62 65 | 73 74 20 69 6e 20 69 74 |l and be|st in it|
|00000af0| 73 20 6f 77 6e 20 73 65 | 67 6d 65 6e 74 20 62 65 |s own se|gment be|
|00000b00| 63 61 75 73 65 20 6c 6f | 74 73 20 6f 66 20 6f 74 |cause lo|ts of ot|
|00000b10| 68 65 72 20 74 68 69 6e | 67 73 20 67 65 74 20 70 |her thin|gs get p|
|00000b20| 69 6c 65 64 0d 69 6e 74 | 6f 20 68 65 72 65 20 61 |iled.int|o here a|
|00000b30| 73 20 77 65 6c 6c 20 2d | 20 74 68 65 20 6a 75 6d |s well -| the jum|
|00000b40| 70 20 74 61 62 6c 65 20 | 66 6f 72 20 74 68 65 20 |p table |for the |
|00000b50| 63 6f 64 65 20 72 65 73 | 6f 75 72 63 65 2c 20 66 |code res|ource, f|
|00000b60| 6f 72 20 65 78 61 6d 70 | 6c 65 2e 0d 53 6f 20 64 |or examp|le..So d|
|00000b70| 6f 20 74 68 65 20 62 61 | 72 65 20 6d 69 6e 69 6d |o the ba|re minim|
|00000b80| 75 6d 20 2d 20 73 65 74 | 20 75 70 20 74 68 65 20 |um - set| up the |
|00000b90| 67 6c 6f 62 61 6c 20 72 | 65 67 69 73 74 65 72 20 |global r|egister |
|00000ba0| 72 65 66 65 72 65 6e 63 | 65 2c 20 63 61 6c 6c 20 |referenc|e, call |
|00000bb0| 74 68 65 0d 63 6f 64 65 | 20 72 65 73 6f 75 72 63 |the.code| resourc|
|00000bc0| 65 20 6d 61 69 6e 20 66 | 75 6e 63 74 69 6f 6e 2c |e main f|unction,|
|00000bd0| 20 70 61 73 73 20 62 61 | 63 6b 20 61 20 72 65 73 | pass ba|ck a res|
|00000be0| 75 6c 74 20 63 6f 64 65 | 2c 20 61 6e 64 20 72 65 |ult code|, and re|
|00000bf0| 73 74 6f 72 65 20 74 68 | 65 0d 61 34 20 72 65 67 |store th|e.a4 reg|
|00000c00| 69 73 74 65 72 2e 20 46 | 75 6e 63 74 69 6f 6e 73 |ister. F|unctions|
|00000c10| 20 62 65 6c 6f 77 20 6d | 61 69 6e 28 29 20 61 72 | below m|ain() ar|
|00000c20| 65 20 74 68 65 20 65 78 | 74 65 6e 73 69 6f 6e 20 |e the ex|tension |
|00000c30| 69 6e 74 65 72 66 61 63 | 65 0d 66 75 6e 63 74 69 |interfac|e.functi|
|00000c40| 6f 6e 73 2c 20 77 68 69 | 63 68 20 6d 75 73 74 20 |ons, whi|ch must |
|00000c50| 62 65 20 69 6e 20 74 68 | 69 73 20 66 69 6c 65 20 |be in th|is file |
|00000c60| 74 6f 20 6d 61 6b 65 20 | 75 73 65 20 6f 66 20 74 |to make |use of t|
|00000c70| 68 65 20 6c 69 74 74 6c | 65 20 66 75 6e 63 74 69 |he littl|e functi|
|00000c80| 6f 6e 73 0d 61 62 6f 76 | 65 20 74 68 61 74 20 73 |ons.abov|e that s|
|00000c90| 61 76 65 20 61 6e 64 20 | 72 65 73 74 6f 72 65 20 |ave and |restore |
|00000ca0| 61 34 2e 20 54 68 65 79 | 20 61 6c 6c 20 63 68 65 |a4. They| all che|
|00000cb0| 63 6b 20 74 6f 20 73 65 | 65 20 74 68 61 74 20 74 |ck to se|e that t|
|00000cc0| 68 65 20 65 78 74 65 6e | 73 69 6f 6e 0d 69 6e 20 |he exten|sion.in |
|00000cd0| 71 75 65 73 74 69 6f 6e | 20 68 61 73 20 62 65 65 |question| has bee|
|00000ce0| 6e 20 70 61 73 73 65 64 | 20 66 72 6f 6d 20 74 68 |n passed| from th|
|00000cf0| 65 20 61 70 70 6c 69 63 | 61 74 69 6f 6e 2c 20 61 |e applic|ation, a|
|00000d00| 6e 64 20 69 66 20 6e 6f | 74 20 65 69 74 68 65 72 |nd if no|t either|
|00000d10| 20 72 65 74 75 72 6e 0d | 61 20 7a 65 72 6f 20 6f | return.|a zero o|
|00000d20| 72 20 4e 55 4c 4c 20 6f | 72 20 72 65 74 75 72 6e |r NULL o|r return|
|00000d30| 20 61 20 73 61 66 65 20 | 67 65 6e 65 72 61 6c 20 | a safe |general |
|00000d40| 76 61 6c 75 65 2e 20 4e | 6f 20 65 78 74 65 6e 73 |value. N|o extens|
|00000d50| 69 6f 6e 20 73 68 6f 75 | 6c 64 20 62 65 0d 65 73 |ion shou|ld be.es|
|00000d60| 73 65 6e 74 69 61 6c 20 | 74 6f 20 74 68 65 20 6f |sential |to the o|
|00000d70| 70 65 72 61 74 69 6f 6e | 20 6f 66 20 74 68 65 20 |peration| of the |
|00000d80| 63 6f 64 65 20 72 65 73 | 6f 75 72 63 65 2e 0d 2a |code res|ource..*|
|00000d90| 2f 0d 2f 2a 20 72 65 73 | 75 6c 74 73 3a 0d 3c 3d |/./* res|ults:.<=|
|00000da0| 20 2d 33 20 3a 20 63 6f | 75 6e 74 73 20 61 73 20 | -3 : co|unts as |
|00000db0| 2d 31 20 61 74 20 70 72 | 65 73 65 6e 74 0d 2d 32 |-1 at pr|esent.-2|
|00000dc0| 20 3a 20 73 68 6f 77 20 | 73 74 64 65 72 72 0d 2d | : show |stderr.-|
|00000dd0| 31 20 3a 20 75 73 65 72 | 20 63 61 6e 63 65 6c 6c |1 : user| cancell|
|00000de0| 65 64 20 6f 72 20 65 72 | 72 6f 72 20 64 75 72 69 |ed or er|ror duri|
|00000df0| 6e 67 20 64 69 61 6c 6f | 67 20 2d 20 6e 6f 20 72 |ng dialo|g - no r|
|00000e00| 75 6e 0d 30 20 20 3a 20 | 72 75 6e 20 4f 4b 2c 20 |un.0 : |run OK, |
|00000e10| 64 6f 20 6e 6f 74 68 69 | 6e 67 20 73 70 65 63 69 |do nothi|ng speci|
|00000e20| 61 6c 20 61 66 74 65 72 | 0d 31 20 20 3a 20 73 68 |al after|.1 : sh|
|00000e30| 6f 77 20 73 74 64 6f 75 | 74 0d 32 20 20 3a 20 73 |ow stdou|t.2 : s|
|00000e40| 68 6f 77 20 61 6e 64 20 | 73 65 6c 65 63 74 20 73 |how and |select s|
|00000e50| 74 64 6f 75 74 0d 3e 20 | 32 20 3a 20 6e 6f 20 61 |tdout.> |2 : no a|
|00000e60| 63 74 69 6f 6e 20 61 74 | 20 70 72 65 73 65 6e 74 |ction at| present|
|00000e70| 20 28 63 6f 75 6e 74 73 | 20 61 73 20 65 71 75 69 | (counts| as equi|
|00000e80| 76 61 6c 65 6e 74 20 74 | 6f 20 30 29 0d 2a 2f 0d |valent t|o 0).*/.|
|00000e90| 76 6f 69 64 20 6d 61 69 | 6e 28 41 43 43 50 74 72 |void mai|n(ACCPtr|
|00000ea0| 20 61 63 29 0d 09 7b 0d | 09 73 68 6f 72 74 09 72 | ac)..{.|.short.r|
|00000eb0| 65 73 75 6c 74 3b 0d 09 | 6c 6f 6e 67 09 5f 74 65 |esult;..|long._te|
|00000ec0| 6d 70 5f 61 2c 20 5f 74 | 65 6d 70 5f 63 3b 0d 09 |mp_a, _t|emp_c;..|
|00000ed0| 0d 09 2f 2a 20 69 6e 69 | 74 69 61 6c 20 73 65 74 |../* ini|tial set|
|00000ee0| 75 70 20 6f 66 20 61 34 | 20 2a 2f 0d 09 61 73 6d |up of a4| */..asm|
|00000ef0| 0d 09 09 7b 0d 09 09 6d | 6f 76 65 2e 6c 09 61 34 |...{...m|ove.l.a4|
|00000f00| 2c 20 5f 74 65 6d 70 5f | 61 0d 09 09 6d 6f 76 65 |, _temp_|a...move|
|00000f10| 2e 6c 09 61 30 2c 20 5f | 74 65 6d 70 5f 63 0d 09 |.l.a0, _|temp_c..|
|00000f20| 09 6d 6f 76 65 2e 6c 09 | 61 30 2c 20 61 34 0d 09 |.move.l.|a0, a4..|
|00000f30| 09 7d 0d 09 5f 61 70 70 | 5f 61 34 20 3d 20 5f 74 |.}.._app|_a4 = _t|
|00000f40| 65 6d 70 5f 61 3b 0d 09 | 5f 63 6f 64 65 5f 61 34 |emp_a;..|_code_a4|
|00000f50| 20 3d 20 5f 74 65 6d 70 | 5f 63 3b 0d 09 0d 09 2f | = _temp|_c;..../|
|00000f60| 2a 20 55 6e 63 6f 6d 6d | 65 6e 74 20 74 68 69 73 |* Uncomm|ent this|
|00000f70| 20 66 6f 72 20 61 20 76 | 65 72 73 69 6f 6e 20 22 | for a v|ersion "|
|00000f80| 73 61 6e 69 74 79 20 63 | 68 65 63 6b 22 3a 20 2a |sanity c|heck": *|
|00000f90| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 0d 09 69 |********|*****..i|
|00000fa0| 66 20 28 61 63 2d 3e 76 | 65 72 73 69 6f 6e 20 3c |f (ac->v|ersion <|
|00000fb0| 20 30 20 7c 7c 20 61 63 | 2d 3e 76 65 72 73 69 6f | 0 || ac|->versio|
|00000fc0| 6e 20 3e 20 31 30 30 29 | 0d 09 09 7b 0d 09 09 4f |n > 100)|...{...O|
|00000fd0| 4b 53 74 6f 70 41 6c 65 | 72 74 28 22 56 65 72 73 |KStopAle|rt("Vers|
|00000fe0| 69 6f 6e 20 6e 75 6d 62 | 65 72 20 70 61 73 73 65 |ion numb|er passe|
|00000ff0| 64 20 62 79 20 63 61 6c | 6c 69 6e 67 20 61 70 70 |d by cal|ling app|
|00001000| 6c 69 63 61 74 69 6f 6e | 20 5c 0d 69 73 20 69 6d |lication| \.is im|
|00001010| 70 6f 73 73 69 62 6c 65 | 2e 20 50 6c 65 61 73 65 |possible|. Please|
|00001020| 20 66 69 78 20 74 68 65 | 20 61 70 70 6c 69 63 61 | fix the| applica|
|00001030| 74 69 6f 6e 20 62 65 66 | 6f 72 65 20 74 72 79 69 |tion bef|ore tryi|
|00001040| 6e 67 20 61 67 61 69 6e | 2e 22 29 3b 0d 09 09 61 |ng again|.");...a|
|00001050| 63 2d 3e 72 65 73 75 6c | 74 20 3d 20 2d 31 3b 0d |c->resul|t = -1;.|
|00001060| 09 09 61 73 6d 0d 09 09 | 09 7b 0d 09 09 09 6d 6f |..asm...|.{....mo|
|00001070| 76 65 2e 6c 20 5f 61 70 | 70 5f 61 34 2c 20 61 34 |ve.l _ap|p_a4, a4|
|00001080| 0d 09 09 09 7d 0d 09 09 | 72 65 74 75 72 6e 3b 0d |....}...|return;.|
|00001090| 09 09 7d 0d 09 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 20 |..}..***|******* |
|000010a0| 65 6e 64 20 76 65 72 73 | 69 6f 6e 20 63 68 65 63 |end vers|ion chec|
|000010b0| 6b 20 2a 2f 0d 09 0d 09 | 67 61 63 63 20 3d 20 2a |k */....|gacc = *|
|000010c0| 61 63 3b 20 2f 2a 20 6d | 61 6b 65 20 61 20 67 6c |ac; /* m|ake a gl|
|000010d0| 6f 62 61 6c 20 63 6f 70 | 79 20 2a 2f 0d 09 69 66 |obal cop|y */..if|
|000010e0| 20 28 67 61 63 63 2e 76 | 65 72 73 69 6f 6e 20 3c | (gacc.v|ersion <|
|000010f0| 3d 20 31 29 0d 09 09 7b | 0d 09 09 67 61 63 63 2e |= 1)...{|...gacc.|
|00001100| 44 6f 45 76 65 6e 74 4c | 6f 6f 70 4f 6e 63 65 5f |DoEventL|oopOnce_|
|00001110| 45 78 74 20 3d 20 4e 55 | 4c 4c 3b 0d 09 09 67 61 |Ext = NU|LL;...ga|
|00001120| 63 63 2e 47 65 74 41 70 | 70 43 6c 69 70 5f 45 78 |cc.GetAp|pClip_Ex|
|00001130| 74 20 3d 20 4e 55 4c 4c | 3b 0d 09 09 7d 0d 09 69 |t = NULL|;...}..i|
|00001140| 66 20 28 48 61 73 44 6f | 45 76 65 6e 74 4c 6f 6f |f (HasDo|EventLoo|
|00001150| 70 4f 6e 63 65 28 29 29 | 0d 09 09 67 43 6f 6e 63 |pOnce())|...gConc|
|00001160| 75 72 72 65 6e 74 20 3d | 20 54 52 55 45 3b 0d 09 |urrent =| TRUE;..|
|00001170| 65 6c 73 65 0d 09 09 67 | 43 6f 6e 63 75 72 72 65 |else...g|Concurre|
|00001180| 6e 74 20 3d 20 46 41 4c | 53 45 3b 0d 0d 09 2f 2a |nt = FAL|SE;.../*|
|00001190| 20 63 61 6c 6c 20 27 74 | 72 75 65 27 20 6d 61 69 | call 't|rue' mai|
|000011a0| 6e 20 6f 66 20 63 6f 64 | 65 20 72 65 73 6f 75 72 |n of cod|e resour|
|000011b0| 63 65 20 2a 2f 0d 09 72 | 65 73 75 6c 74 20 3d 20 |ce */..r|esult = |
|000011c0| 44 6f 52 65 61 64 52 65 | 73 28 29 3b 0d 09 61 63 |DoReadRe|s();..ac|
|000011d0| 2d 3e 72 65 73 75 6c 74 | 20 3d 20 72 65 73 75 6c |->result| = resul|
|000011e0| 74 3b 0d 09 2f 2a 20 75 | 6e 6c 6f 61 64 20 6e 6f |t;../* u|nload no|
|000011f0| 6e 2d 6d 61 69 6e 20 73 | 65 67 6d 65 6e 74 73 20 |n-main s|egments |
|00001200| 2a 2f 0d 09 55 6e 6c 6f | 61 64 41 34 53 65 67 28 |*/..Unlo|adA4Seg(|
|00001210| 4e 65 77 50 74 72 29 3b | 0d 09 55 6e 6c 6f 61 64 |NewPtr);|..Unload|
|00001220| 41 34 53 65 67 28 73 74 | 72 63 6d 70 29 3b 0d 09 |A4Seg(st|rcmp);..|
|00001230| 2f 2a 20 72 65 73 74 6f | 72 65 20 61 70 70 27 73 |/* resto|re app's|
|00001240| 20 61 34 20 2a 2f 0d 09 | 61 73 6d 0d 09 09 7b 0d | a4 */..|asm...{.|
|00001250| 09 09 6d 6f 76 65 2e 6c | 20 5f 61 70 70 5f 61 34 |..move.l| _app_a4|
|00001260| 2c 20 61 34 0d 09 09 7d | 0d 09 2f 2a 20 72 65 74 |, a4...}|../* ret|
|00001270| 75 72 6e 20 6e 6f 74 68 | 69 6e 67 20 2d 20 63 6f |urn noth|ing - co|
|00001280| 6d 6d 75 6e 69 63 61 74 | 69 6f 6e 20 76 69 61 20 |mmunicat|ion via |
|00001290| 61 63 2d 3e 72 65 73 75 | 6c 74 20 2a 2f 0d 09 7d |ac->resu|lt */..}|
|000012a0| 0d 0d 2f 2a 20 45 78 74 | 65 6e 73 69 6f 6e 20 66 |../* Ext|ension f|
|000012b0| 75 6e 63 74 69 6f 6e 73 | 2e 20 53 65 65 20 43 61 |unctions|. See Ca|
|000012c0| 6c 6c 5f 52 65 73 6f 75 | 72 63 65 2e 63 20 66 6f |ll_Resou|rce.c fo|
|000012d0| 72 20 64 65 74 61 69 6c | 73 0d 6f 6e 20 77 68 61 |r detail|s.on wha|
|000012e0| 74 20 74 68 65 73 65 20 | 64 6f 2e 20 45 6e 74 65 |t these |do. Ente|
|000012f0| 72 41 63 74 20 73 75 70 | 70 6c 69 65 73 20 74 68 |rAct sup|plies th|
|00001300| 65 6d 20 61 6c 6c 2c 20 | 62 75 74 20 79 6f 75 72 |em all, |but your|
|00001310| 20 61 70 70 6c 69 63 61 | 74 69 6f 6e 0d 64 6f 65 | applica|tion.doe|
|00001320| 73 6e 27 74 20 68 61 76 | 65 20 74 6f 20 73 75 70 |sn't hav|e to sup|
|00001330| 70 6c 79 20 61 6e 79 20 | 6f 66 20 74 68 65 6d 2c |ply any |of them,|
|00001340| 20 61 6e 64 20 79 6f 75 | 72 20 63 6f 64 65 20 72 | and you|r code r|
|00001350| 65 73 6f 75 72 63 65 20 | 73 68 6f 75 6c 64 0d 6e |esource |should.n|
|00001360| 6f 74 20 72 65 6c 79 20 | 6f 6e 20 61 6e 79 20 6f |ot rely |on any o|
|00001370| 66 20 74 68 65 6d 20 62 | 65 69 6e 67 20 61 76 61 |f them b|eing ava|
|00001380| 69 6c 61 62 6c 65 2e 0d | 0d 41 20 42 6f 6f 6c 65 |ilable..|.A Boole|
|00001390| 61 6e 20 63 6f 6d 70 61 | 6e 69 6f 6e 20 66 75 6e |an compa|nion fun|
|000013a0| 63 74 69 6f 6e 20 66 6f | 72 20 65 61 63 68 20 65 |ction fo|r each e|
|000013b0| 78 74 65 6e 73 69 6f 6e | 20 72 65 70 6f 72 74 73 |xtension| reports|
|000013c0| 20 77 68 65 74 68 65 72 | 0d 74 68 65 20 65 78 74 | whether|.the ext|
|000013d0| 65 6e 73 69 6f 6e 20 69 | 73 20 61 76 61 69 6c 61 |ension i|s availa|
|000013e0| 62 6c 65 20 66 6f 72 20 | 75 73 65 2e 20 0d 2a 2f |ble for |use. .*/|
|000013f0| 0d 0d 73 68 6f 72 74 20 | 49 6e 44 69 63 74 69 6f |..short |InDictio|
|00001400| 6e 61 72 79 28 63 68 61 | 72 20 2a 74 6f 6b 65 6e |nary(cha|r *token|
|00001410| 4e 61 6d 65 29 0d 09 7b | 0d 09 41 43 43 50 74 72 |Name)..{|..ACCPtr|
|00001420| 09 6c 61 63 63 70 20 3d | 20 26 67 61 63 63 3b 20 |.laccp =| &gacc; |
|00001430| 2f 2a 20 6d 75 73 74 20 | 75 73 65 20 61 20 6c 6f |/* must |use a lo|
|00001440| 63 61 6c 20 70 6f 69 6e | 74 65 72 20 2a 2f 0d 09 |cal poin|ter */..|
|00001450| 73 68 6f 72 74 09 72 65 | 74 3b 0d 09 0d 09 52 65 |short.re|t;....Re|
|00001460| 73 74 6f 72 65 41 34 28 | 29 3b 0d 09 69 66 20 28 |storeA4(|);..if (|
|00001470| 6c 61 63 63 70 2d 3e 49 | 6e 44 69 63 74 69 6f 6e |laccp->I|nDiction|
|00001480| 61 72 79 5f 45 78 74 20 | 21 3d 20 4e 55 4c 4c 29 |ary_Ext |!= NULL)|
|00001490| 0d 09 09 72 65 74 20 3d | 20 28 2a 28 6c 61 63 63 |...ret =| (*(lacc|
|000014a0| 70 2d 3e 49 6e 44 69 63 | 74 69 6f 6e 61 72 79 5f |p->InDic|tionary_|
|000014b0| 45 78 74 29 29 28 74 6f | 6b 65 6e 4e 61 6d 65 29 |Ext))(to|kenName)|
|000014c0| 3b 0d 09 65 6c 73 65 0d | 09 09 72 65 74 20 3d 20 |;..else.|..ret = |
|000014d0| 30 3b 0d 09 53 65 74 55 | 70 41 34 28 29 3b 0d 09 |0;..SetU|pA4();..|
|000014e0| 72 65 74 75 72 6e 28 72 | 65 74 29 3b 0d 09 7d 0d |return(r|et);..}.|
|000014f0| 0d 42 6f 6f 6c 65 61 6e | 20 48 61 73 49 6e 44 69 |.Boolean| HasInDi|
|00001500| 63 74 69 6f 6e 61 72 79 | 28 29 0d 09 7b 0d 09 72 |ctionary|()..{..r|
|00001510| 65 74 75 72 6e 28 67 61 | 63 63 2e 49 6e 44 69 63 |eturn(ga|cc.InDic|
|00001520| 74 69 6f 6e 61 72 79 5f | 45 78 74 20 21 3d 20 4e |tionary_|Ext != N|
|00001530| 55 4c 4c 29 3b 0d 09 7d | 0d 0d 48 61 6e 64 6c 65 |ULL);..}|..Handle|
|00001540| 20 47 65 74 46 72 6f 6e | 74 54 65 78 74 28 42 6f | GetFron|tText(Bo|
|00001550| 6f 6c 65 61 6e 20 67 65 | 74 49 74 41 6c 6c 29 0d |olean ge|tItAll).|
|00001560| 09 7b 0d 09 41 43 43 50 | 74 72 09 6c 61 63 63 70 |.{..ACCP|tr.laccp|
|00001570| 20 3d 20 26 67 61 63 63 | 3b 20 2f 2a 20 6d 75 73 | = &gacc|; /* mus|
|00001580| 74 20 75 73 65 20 61 20 | 6c 6f 63 61 6c 20 70 6f |t use a |local po|
|00001590| 69 6e 74 65 72 20 2a 2f | 0d 09 48 61 6e 64 6c 65 |inter */|..Handle|
|000015a0| 09 72 65 74 3b 0d 09 0d | 09 52 65 73 74 6f 72 65 |.ret;...|.Restore|
|000015b0| 41 34 28 29 3b 0d 09 69 | 66 20 28 6c 61 63 63 70 |A4();..i|f (laccp|
|000015c0| 2d 3e 47 65 74 46 72 6f | 6e 74 54 65 78 74 5f 45 |->GetFro|ntText_E|
|000015d0| 78 74 20 21 3d 20 4e 55 | 4c 4c 29 0d 09 09 72 65 |xt != NU|LL)...re|
|000015e0| 74 20 3d 20 28 2a 28 6c | 61 63 63 70 2d 3e 47 65 |t = (*(l|accp->Ge|
|000015f0| 74 46 72 6f 6e 74 54 65 | 78 74 5f 45 78 74 29 29 |tFrontTe|xt_Ext))|
|00001600| 28 67 65 74 49 74 41 6c | 6c 29 3b 0d 09 65 6c 73 |(getItAl|l);..els|
|00001610| 65 0d 09 09 72 65 74 20 | 3d 20 4e 55 4c 4c 3b 0d |e...ret |= NULL;.|
|00001620| 09 53 65 74 55 70 41 34 | 28 29 3b 0d 09 72 65 74 |.SetUpA4|();..ret|
|00001630| 75 72 6e 28 72 65 74 29 | 3b 0d 09 7d 0d 0d 42 6f |urn(ret)|;..}..Bo|
|00001640| 6f 6c 65 61 6e 20 48 61 | 73 47 65 74 46 72 6f 6e |olean Ha|sGetFron|
|00001650| 74 54 65 78 74 28 29 0d | 09 7b 0d 09 72 65 74 75 |tText().|.{..retu|
|00001660| 72 6e 28 67 61 63 63 2e | 47 65 74 46 72 6f 6e 74 |rn(gacc.|GetFront|
|00001670| 54 65 78 74 5f 45 78 74 | 20 21 3d 20 4e 55 4c 4c |Text_Ext| != NULL|
|00001680| 29 3b 0d 09 7d 0d 0d 76 | 6f 69 64 20 47 65 74 4e |);..}..v|oid GetN|
|00001690| 65 78 74 4d 75 6c 74 69 | 46 69 6c 65 28 73 68 6f |extMulti|File(sho|
|000016a0| 72 74 20 2a 70 61 6e 65 | 50 74 72 2c 20 73 68 6f |rt *pane|Ptr, sho|
|000016b0| 72 74 20 2a 69 6e 64 65 | 78 50 74 72 2c 20 0d 09 |rt *inde|xPtr, ..|
|000016c0| 09 73 68 6f 72 74 20 2a | 76 52 65 66 4e 75 6d 50 |.short *|vRefNumP|
|000016d0| 74 72 2c 20 63 68 61 72 | 20 2a 66 69 6c 65 4e 61 |tr, char| *fileNa|
|000016e0| 6d 65 2c 20 42 6f 6f 6c | 65 61 6e 20 63 6c 65 61 |me, Bool|ean clea|
|000016f0| 72 46 6c 61 67 29 0d 09 | 7b 0d 09 41 43 43 50 74 |rFlag)..|{..ACCPt|
|00001700| 72 09 6c 61 63 63 70 20 | 3d 20 26 67 61 63 63 3b |r.laccp |= &gacc;|
|00001710| 20 2f 2a 20 6d 75 73 74 | 20 75 73 65 20 61 20 6c | /* must| use a l|
|00001720| 6f 63 61 6c 20 70 6f 69 | 6e 74 65 72 20 2a 2f 0d |ocal poi|nter */.|
|00001730| 09 0d 09 52 65 73 74 6f | 72 65 41 34 28 29 3b 0d |...Resto|reA4();.|
|00001740| 09 69 66 20 28 6c 61 63 | 63 70 2d 3e 47 65 74 4e |.if (lac|cp->GetN|
|00001750| 65 78 74 4d 75 6c 74 69 | 46 69 6c 65 5f 45 78 74 |extMulti|File_Ext|
|00001760| 20 21 3d 20 4e 55 4c 4c | 29 0d 09 09 28 2a 28 6c | != NULL|)...(*(l|
|00001770| 61 63 63 70 2d 3e 47 65 | 74 4e 65 78 74 4d 75 6c |accp->Ge|tNextMul|
|00001780| 74 69 46 69 6c 65 5f 45 | 78 74 29 29 28 70 61 6e |tiFile_E|xt))(pan|
|00001790| 65 50 74 72 2c 20 69 6e | 64 65 78 50 74 72 2c 0d |ePtr, in|dexPtr,.|
|000017a0| 09 09 09 76 52 65 66 4e | 75 6d 50 74 72 2c 20 66 |...vRefN|umPtr, f|
|000017b0| 69 6c 65 4e 61 6d 65 2c | 20 63 6c 65 61 72 46 6c |ileName,| clearFl|
|000017c0| 61 67 29 3b 0d 09 65 6c | 73 65 0d 09 09 2a 69 6e |ag);..el|se...*in|
|000017d0| 64 65 78 50 74 72 20 3d | 20 2d 31 3b 0d 09 53 65 |dexPtr =| -1;..Se|
|000017e0| 74 55 70 41 34 28 29 3b | 0d 09 7d 0d 0d 42 6f 6f |tUpA4();|..}..Boo|
|000017f0| 6c 65 61 6e 20 48 61 73 | 47 65 74 4e 65 78 74 4d |lean Has|GetNextM|
|00001800| 75 6c 74 69 46 69 6c 65 | 28 29 0d 09 7b 0d 09 72 |ultiFile|()..{..r|
|00001810| 65 74 75 72 6e 28 67 61 | 63 63 2e 47 65 74 4e 65 |eturn(ga|cc.GetNe|
|00001820| 78 74 4d 75 6c 74 69 46 | 69 6c 65 5f 45 78 74 20 |xtMultiF|ile_Ext |
|00001830| 21 3d 20 4e 55 4c 4c 29 | 3b 0d 09 7d 0d 0d 73 68 |!= NULL)|;..}..sh|
|00001840| 6f 72 74 20 4f 4b 53 74 | 6f 70 41 6c 65 72 74 28 |ort OKSt|opAlert(|
|00001850| 50 74 72 20 63 73 74 72 | 69 6e 67 50 74 72 29 0d |Ptr cstr|ingPtr).|
|00001860| 09 7b 0d 09 41 43 43 50 | 74 72 09 6c 61 63 63 70 |.{..ACCP|tr.laccp|
|00001870| 20 3d 20 26 67 61 63 63 | 3b 20 2f 2a 20 6d 75 73 | = &gacc|; /* mus|
|00001880| 74 20 75 73 65 20 61 20 | 6c 6f 63 61 6c 20 70 6f |t use a |local po|
|00001890| 69 6e 74 65 72 20 2a 2f | 0d 09 73 68 6f 72 74 09 |inter */|..short.|
|000018a0| 72 65 74 3b 0d 09 0d 09 | 52 65 73 74 6f 72 65 41 |ret;....|RestoreA|
|000018b0| 34 28 29 3b 0d 09 69 66 | 20 28 6c 61 63 63 70 2d |4();..if| (laccp-|
|000018c0| 3e 4f 4b 53 74 6f 70 41 | 6c 65 72 74 5f 45 78 74 |>OKStopA|lert_Ext|
|000018d0| 20 21 3d 20 4e 55 4c 4c | 29 0d 09 09 72 65 74 20 | != NULL|)...ret |
|000018e0| 3d 20 28 2a 28 6c 61 63 | 63 70 2d 3e 4f 4b 53 74 |= (*(lac|cp->OKSt|
|000018f0| 6f 70 41 6c 65 72 74 5f | 45 78 74 29 29 28 63 73 |opAlert_|Ext))(cs|
|00001900| 74 72 69 6e 67 50 74 72 | 29 3b 0d 09 65 6c 73 65 |tringPtr|);..else|
|00001910| 0d 09 09 72 65 74 20 3d | 20 30 3b 0d 09 53 65 74 |...ret =| 0;..Set|
|00001920| 55 70 41 34 28 29 3b 0d | 09 72 65 74 75 72 6e 28 |UpA4();.|.return(|
|00001930| 72 65 74 29 3b 0d 09 7d | 0d 0d 42 6f 6f 6c 65 61 |ret);..}|..Boolea|
|00001940| 6e 20 48 61 73 4f 4b 53 | 74 6f 70 41 6c 65 72 74 |n HasOKS|topAlert|
|00001950| 28 29 0d 09 7b 0d 09 72 | 65 74 75 72 6e 28 67 61 |()..{..r|eturn(ga|
|00001960| 63 63 2e 4f 4b 53 74 6f | 70 41 6c 65 72 74 5f 45 |cc.OKSto|pAlert_E|
|00001970| 78 74 20 21 3d 20 4e 55 | 4c 4c 29 3b 0d 09 7d 0d |xt != NU|LL);..}.|
|00001980| 0d 76 6f 69 64 20 4d 65 | 6d 6f 72 79 41 6c 65 72 |.void Me|moryAler|
|00001990| 74 28 29 0d 09 7b 0d 09 | 41 43 43 50 74 72 09 6c |t()..{..|ACCPtr.l|
|000019a0| 61 63 63 70 20 3d 20 26 | 67 61 63 63 3b 20 2f 2a |accp = &|gacc; /*|
|000019b0| 20 6d 75 73 74 20 75 73 | 65 20 61 20 6c 6f 63 61 | must us|e a loca|
|000019c0| 6c 20 70 6f 69 6e 74 65 | 72 20 2a 2f 0d 09 0d 09 |l pointe|r */....|
|000019d0| 52 65 73 74 6f 72 65 41 | 34 28 29 3b 0d 09 69 66 |RestoreA|4();..if|
|000019e0| 20 28 6c 61 63 63 70 2d | 3e 4d 65 6d 6f 72 79 41 | (laccp-|>MemoryA|
|000019f0| 6c 65 72 74 5f 45 78 74 | 20 21 3d 20 4e 55 4c 4c |lert_Ext| != NULL|
|00001a00| 29 0d 09 09 28 2a 28 6c | 61 63 63 70 2d 3e 4d 65 |)...(*(l|accp->Me|
|00001a10| 6d 6f 72 79 41 6c 65 72 | 74 5f 45 78 74 29 29 28 |moryAler|t_Ext))(|
|00001a20| 29 3b 0d 09 53 65 74 55 | 70 41 34 28 29 3b 0d 09 |);..SetU|pA4();..|
|00001a30| 7d 0d 0d 42 6f 6f 6c 65 | 61 6e 20 48 61 73 4d 65 |}..Boole|an HasMe|
|00001a40| 6d 6f 72 79 41 6c 65 72 | 74 28 29 0d 09 7b 0d 09 |moryAler|t()..{..|
|00001a50| 72 65 74 75 72 6e 28 67 | 61 63 63 2e 4d 65 6d 6f |return(g|acc.Memo|
|00001a60| 72 79 41 6c 65 72 74 5f | 45 78 74 20 21 3d 20 4e |ryAlert_|Ext != N|
|00001a70| 55 4c 4c 29 3b 0d 09 7d | 0d 0d 73 68 6f 72 74 20 |ULL);..}|..short |
|00001a80| 47 65 74 53 63 72 65 65 | 6e 48 65 69 67 68 74 28 |GetScree|nHeight(|
|00001a90| 29 0d 09 7b 0d 09 41 43 | 43 50 74 72 09 6c 61 63 |)..{..AC|CPtr.lac|
|00001aa0| 63 70 20 3d 20 26 67 61 | 63 63 3b 20 2f 2a 20 6d |cp = &ga|cc; /* m|
|00001ab0| 75 73 74 20 75 73 65 20 | 61 20 6c 6f 63 61 6c 20 |ust use |a local |
|00001ac0| 70 6f 69 6e 74 65 72 20 | 2a 2f 0d 09 73 68 6f 72 |pointer |*/..shor|
|00001ad0| 74 09 09 72 65 74 3b 0d | 09 0d 09 52 65 73 74 6f |t..ret;.|...Resto|
|00001ae0| 72 65 41 34 28 29 3b 0d | 09 69 66 20 28 6c 61 63 |reA4();.|.if (lac|
|00001af0| 63 70 2d 3e 47 65 74 53 | 63 72 65 65 6e 48 65 69 |cp->GetS|creenHei|
|00001b00| 67 68 74 5f 45 78 74 20 | 21 3d 20 4e 55 4c 4c 29 |ght_Ext |!= NULL)|
|00001b10| 0d 09 09 72 65 74 20 3d | 20 28 2a 28 6c 61 63 63 |...ret =| (*(lacc|
|00001b20| 70 2d 3e 47 65 74 53 63 | 72 65 65 6e 48 65 69 67 |p->GetSc|reenHeig|
|00001b30| 68 74 5f 45 78 74 29 29 | 28 29 3b 0d 09 65 6c 73 |ht_Ext))|();..els|
|00001b40| 65 0d 09 09 72 65 74 20 | 3d 20 33 34 32 3b 20 2f |e...ret |= 342; /|
|00001b50| 2a 20 6d 69 6e 69 6d 75 | 6d 20 70 6f 73 73 69 62 |* minimu|m possib|
|00001b60| 6c 65 20 2a 2f 0d 09 53 | 65 74 55 70 41 34 28 29 |le */..S|etUpA4()|
|00001b70| 3b 0d 09 72 65 74 75 72 | 6e 28 72 65 74 29 3b 0d |;..retur|n(ret);.|
|00001b80| 09 7d 0d 0d 42 6f 6f 6c | 65 61 6e 20 48 61 73 47 |.}..Bool|ean HasG|
|00001b90| 65 74 53 63 72 65 65 6e | 48 65 69 67 68 74 28 29 |etScreen|Height()|
|00001ba0| 0d 09 7b 0d 09 72 65 74 | 75 72 6e 28 67 61 63 63 |..{..ret|urn(gacc|
|00001bb0| 2e 47 65 74 53 63 72 65 | 65 6e 48 65 69 67 68 74 |.GetScre|enHeight|
|00001bc0| 5f 45 78 74 20 21 3d 20 | 4e 55 4c 4c 29 3b 0d 09 |_Ext != |NULL);..|
|00001bd0| 7d 0d 0d 73 68 6f 72 74 | 20 47 65 74 53 63 72 65 |}..short| GetScre|
|00001be0| 65 6e 57 69 64 74 68 28 | 29 0d 09 7b 0d 09 41 43 |enWidth(|)..{..AC|
|00001bf0| 43 50 74 72 09 6c 61 63 | 63 70 20 3d 20 26 67 61 |CPtr.lac|cp = &ga|
|00001c00| 63 63 3b 20 2f 2a 20 6d | 75 73 74 20 75 73 65 20 |cc; /* m|ust use |
|00001c10| 61 20 6c 6f 63 61 6c 20 | 70 6f 69 6e 74 65 72 20 |a local |pointer |
|00001c20| 2a 2f 0d 09 73 68 6f 72 | 74 09 09 72 65 74 3b 0d |*/..shor|t..ret;.|
|00001c30| 09 0d 09 52 65 73 74 6f | 72 65 41 34 28 29 3b 0d |...Resto|reA4();.|
|00001c40| 09 69 66 20 28 6c 61 63 | 63 70 2d 3e 47 65 74 53 |.if (lac|cp->GetS|
|00001c50| 63 72 65 65 6e 57 69 64 | 74 68 5f 45 78 74 20 21 |creenWid|th_Ext !|
|00001c60| 3d 20 4e 55 4c 4c 29 0d | 09 09 72 65 74 20 3d 20 |= NULL).|..ret = |
|00001c70| 28 2a 28 6c 61 63 63 70 | 2d 3e 47 65 74 53 63 72 |(*(laccp|->GetScr|
|00001c80| 65 65 6e 57 69 64 74 68 | 5f 45 78 74 29 29 28 29 |eenWidth|_Ext))()|
|00001c90| 3b 0d 09 65 6c 73 65 0d | 09 09 72 65 74 20 3d 20 |;..else.|..ret = |
|00001ca0| 35 31 32 3b 20 2f 2a 20 | 6d 69 6e 69 6d 75 6d 20 |512; /* |minimum |
|00001cb0| 70 6f 73 73 69 62 6c 65 | 20 2a 2f 0d 09 53 65 74 |possible| */..Set|
|00001cc0| 55 70 41 34 28 29 3b 0d | 09 72 65 74 75 72 6e 28 |UpA4();.|.return(|
|00001cd0| 72 65 74 29 3b 0d 09 7d | 0d 0d 42 6f 6f 6c 65 61 |ret);..}|..Boolea|
|00001ce0| 6e 20 48 61 73 47 65 74 | 53 63 72 65 65 6e 57 69 |n HasGet|ScreenWi|
|00001cf0| 64 74 68 28 29 0d 09 7b | 0d 09 72 65 74 75 72 6e |dth()..{|..return|
|00001d00| 28 67 61 63 63 2e 47 65 | 74 53 63 72 65 65 6e 57 |(gacc.Ge|tScreenW|
|00001d10| 69 64 74 68 5f 45 78 74 | 20 21 3d 20 4e 55 4c 4c |idth_Ext| != NULL|
|00001d20| 29 3b 0d 09 7d 0d 0d 76 | 6f 69 64 20 53 65 74 57 |);..}..v|oid SetW|
|00001d30| 61 74 63 68 43 75 72 73 | 6f 72 28 29 0d 09 7b 0d |atchCurs|or()..{.|
|00001d40| 09 41 43 43 50 74 72 09 | 6c 61 63 63 70 20 3d 20 |.ACCPtr.|laccp = |
|00001d50| 26 67 61 63 63 3b 20 2f | 2a 20 6d 75 73 74 20 75 |&gacc; /|* must u|
|00001d60| 73 65 20 61 20 6c 6f 63 | 61 6c 20 70 6f 69 6e 74 |se a loc|al point|
|00001d70| 65 72 20 2a 2f 0d 09 0d | 09 52 65 73 74 6f 72 65 |er */...|.Restore|
|00001d80| 41 34 28 29 3b 0d 09 69 | 66 20 28 6c 61 63 63 70 |A4();..i|f (laccp|
|00001d90| 2d 3e 53 65 74 57 61 74 | 63 68 43 75 72 73 6f 72 |->SetWat|chCursor|
|00001da0| 5f 45 78 74 20 21 3d 20 | 4e 55 4c 4c 29 0d 09 09 |_Ext != |NULL)...|
|00001db0| 28 2a 28 6c 61 63 63 70 | 2d 3e 53 65 74 57 61 74 |(*(laccp|->SetWat|
|00001dc0| 63 68 43 75 72 73 6f 72 | 5f 45 78 74 29 29 28 29 |chCursor|_Ext))()|
|00001dd0| 3b 0d 09 53 65 74 55 70 | 41 34 28 29 3b 0d 09 7d |;..SetUp|A4();..}|
|00001de0| 0d 0d 42 6f 6f 6c 65 61 | 6e 20 48 61 73 53 65 74 |..Boolea|n HasSet|
|00001df0| 57 61 74 63 68 43 75 72 | 73 6f 72 28 29 0d 09 7b |WatchCur|sor()..{|
|00001e00| 0d 09 72 65 74 75 72 6e | 28 67 61 63 63 2e 53 65 |..return|(gacc.Se|
|00001e10| 74 57 61 74 63 68 43 75 | 72 73 6f 72 5f 45 78 74 |tWatchCu|rsor_Ext|
|00001e20| 20 21 3d 20 4e 55 4c 4c | 29 3b 0d 09 7d 0d 0d 76 | != NULL|);..}..v|
|00001e30| 6f 69 64 20 44 6f 45 76 | 65 6e 74 4c 6f 6f 70 4f |oid DoEv|entLoopO|
|00001e40| 6e 63 65 28 29 0d 09 7b | 0d 09 41 43 43 50 74 72 |nce()..{|..ACCPtr|
|00001e50| 09 6c 61 63 63 70 20 3d | 20 26 67 61 63 63 3b 20 |.laccp =| &gacc; |
|00001e60| 2f 2a 20 6d 75 73 74 20 | 75 73 65 20 61 20 6c 6f |/* must |use a lo|
|00001e70| 63 61 6c 20 70 6f 69 6e | 74 65 72 20 2a 2f 0d 09 |cal poin|ter */..|
|00001e80| 0d 09 52 65 73 74 6f 72 | 65 41 34 28 29 3b 0d 09 |..Restor|eA4();..|
|00001e90| 69 66 20 28 6c 61 63 63 | 70 2d 3e 44 6f 45 76 65 |if (lacc|p->DoEve|
|00001ea0| 6e 74 4c 6f 6f 70 4f 6e | 63 65 5f 45 78 74 20 21 |ntLoopOn|ce_Ext !|
|00001eb0| 3d 20 4e 55 4c 4c 29 0d | 09 09 28 2a 28 6c 61 63 |= NULL).|..(*(lac|
|00001ec0| 63 70 2d 3e 44 6f 45 76 | 65 6e 74 4c 6f 6f 70 4f |cp->DoEv|entLoopO|
|00001ed0| 6e 63 65 5f 45 78 74 29 | 29 28 29 3b 0d 09 53 65 |nce_Ext)|)();..Se|
|00001ee0| 74 55 70 41 34 28 29 3b | 0d 09 7d 0d 0d 42 6f 6f |tUpA4();|..}..Boo|
|00001ef0| 6c 65 61 6e 20 48 61 73 | 44 6f 45 76 65 6e 74 4c |lean Has|DoEventL|
|00001f00| 6f 6f 70 4f 6e 63 65 28 | 29 0d 09 7b 0d 09 72 65 |oopOnce(|)..{..re|
|00001f10| 74 75 72 6e 28 67 61 63 | 63 2e 44 6f 45 76 65 6e |turn(gac|c.DoEven|
|00001f20| 74 4c 6f 6f 70 4f 6e 63 | 65 5f 45 78 74 20 21 3d |tLoopOnc|e_Ext !=|
|00001f30| 20 4e 55 4c 4c 29 3b 0d | 09 7d 0d 0d 48 61 6e 64 | NULL);.|.}..Hand|
|00001f40| 6c 65 20 47 65 74 54 68 | 65 43 6c 69 70 28 29 0d |le GetTh|eClip().|
|00001f50| 09 7b 0d 09 41 43 43 50 | 74 72 09 6c 61 63 63 70 |.{..ACCP|tr.laccp|
|00001f60| 20 3d 20 26 67 61 63 63 | 3b 20 2f 2a 20 6d 75 73 | = &gacc|; /* mus|
|00001f70| 74 20 75 73 65 20 61 20 | 6c 6f 63 61 6c 20 70 6f |t use a |local po|
|00001f80| 69 6e 74 65 72 20 2a 2f | 0d 09 48 61 6e 64 6c 65 |inter */|..Handle|
|00001f90| 09 72 65 74 3b 0d 09 0d | 09 52 65 73 74 6f 72 65 |.ret;...|.Restore|
|00001fa0| 41 34 28 29 3b 0d 09 69 | 66 20 28 6c 61 63 63 70 |A4();..i|f (laccp|
|00001fb0| 2d 3e 47 65 74 41 70 70 | 43 6c 69 70 5f 45 78 74 |->GetApp|Clip_Ext|
|00001fc0| 20 21 3d 20 4e 55 4c 4c | 29 0d 09 09 72 65 74 20 | != NULL|)...ret |
|00001fd0| 3d 20 28 2a 28 6c 61 63 | 63 70 2d 3e 47 65 74 41 |= (*(lac|cp->GetA|
|00001fe0| 70 70 43 6c 69 70 5f 45 | 78 74 29 29 28 29 3b 0d |ppClip_E|xt))();.|
|00001ff0| 09 65 6c 73 65 0d 09 09 | 72 65 74 20 3d 20 4e 55 |.else...|ret = NU|
|00002000| 4c 4c 3b 0d 09 53 65 74 | 55 70 41 34 28 29 3b 0d |LL;..Set|UpA4();.|
|00002010| 09 72 65 74 75 72 6e 28 | 72 65 74 29 3b 0d 09 7d |.return(|ret);..}|
|00002020| 0d 0d 42 6f 6f 6c 65 61 | 6e 20 48 61 73 47 65 74 |..Boolea|n HasGet|
|00002030| 54 68 65 43 6c 69 70 28 | 29 0d 09 7b 0d 09 72 65 |TheClip(|)..{..re|
|00002040| 74 75 72 6e 28 67 61 63 | 63 2e 47 65 74 41 70 70 |turn(gac|c.GetApp|
|00002050| 43 6c 69 70 5f 45 78 74 | 20 21 3d 20 4e 55 4c 4c |Clip_Ext| != NULL|
|00002060| 29 3b 0d 09 7d 0d 0d 2f | 2f 20 4e 6f 74 65 20 66 |);..}../|/ Note f|
|00002070| 6f 72 20 76 65 72 73 69 | 6f 6e 20 33 20 74 68 65 |or versi|on 3 the|
|00002080| 20 76 65 72 73 69 6f 6e | 20 69 73 20 73 69 67 6e | version| is sign|
|00002090| 61 6c 6c 65 64 20 62 79 | 20 6c 6f 6e 67 20 65 78 |alled by| long ex|
|000020a0| 74 65 6e 64 49 44 20 3d | 3d 20 27 56 45 52 33 27 |tendID =|= 'VER3'|
|000020b0| 0d 2f 2f 20 69 6e 73 69 | 64 65 20 67 61 63 63 20 |.// insi|de gacc |
|000020c0| 2d 2d 20 66 6f 72 20 70 | 72 65 76 69 6f 75 73 20 |-- for p|revious |
|000020d0| 76 65 72 73 69 6f 6e 73 | 2c 20 74 68 65 20 6f 64 |versions|, the od|
|000020e0| 64 73 20 6f 66 20 74 68 | 69 73 20 6c 6f 6e 67 20 |ds of th|is long |
|000020f0| 62 65 69 6e 67 20 73 65 | 74 0d 2f 2f 20 74 6f 20 |being se|t.// to |
|00002100| 65 78 61 63 74 6c 79 20 | 27 56 45 52 33 27 20 61 |exactly |'VER3' a|
|00002110| 72 65 20 76 65 72 79 20 | 73 6d 61 6c 6c 2e 0d 0d |re very |small...|
|00002120| 73 68 6f 72 74 20 50 75 | 74 54 68 65 43 6c 69 70 |short Pu|tTheClip|
|00002130| 28 63 68 61 72 20 2a 6e | 65 77 43 6c 69 70 53 74 |(char *n|ewClipSt|
|00002140| 72 29 0d 09 7b 0d 09 41 | 43 43 50 74 72 09 6c 61 |r)..{..A|CCPtr.la|
|00002150| 63 63 70 20 3d 20 26 67 | 61 63 63 3b 20 2f 2a 20 |ccp = &g|acc; /* |
|00002160| 6d 75 73 74 20 75 73 65 | 20 61 20 6c 6f 63 61 6c |must use| a local|
|00002170| 20 70 6f 69 6e 74 65 72 | 20 2a 2f 0d 09 73 68 6f | pointer| */..sho|
|00002180| 72 74 09 72 65 74 20 3d | 20 30 3b 0d 09 0d 09 52 |rt.ret =| 0;....R|
|00002190| 65 73 74 6f 72 65 41 34 | 28 29 3b 0d 09 69 66 20 |estoreA4|();..if |
|000021a0| 28 6c 61 63 63 70 2d 3e | 65 78 74 65 6e 64 49 44 |(laccp->|extendID|
|000021b0| 20 3d 3d 20 27 56 45 52 | 33 27 20 26 26 20 6c 61 | == 'VER|3' && la|
|000021c0| 63 63 70 2d 3e 50 75 74 | 41 70 70 43 6c 69 70 5f |ccp->Put|AppClip_|
|000021d0| 45 78 74 20 21 3d 20 4e | 55 4c 4c 29 0d 09 09 72 |Ext != N|ULL)...r|
|000021e0| 65 74 20 3d 20 28 2a 28 | 6c 61 63 63 70 2d 3e 50 |et = (*(|laccp->P|
|000021f0| 75 74 41 70 70 43 6c 69 | 70 5f 45 78 74 29 29 28 |utAppCli|p_Ext))(|
|00002200| 6e 65 77 43 6c 69 70 53 | 74 72 29 3b 0d 09 53 65 |newClipS|tr);..Se|
|00002210| 74 55 70 41 34 28 29 3b | 0d 09 72 65 74 75 72 6e |tUpA4();|..return|
|00002220| 28 72 65 74 29 3b 0d 09 | 7d 0d 0d 42 6f 6f 6c 65 |(ret);..|}..Boole|
|00002230| 61 6e 20 48 61 73 50 75 | 74 54 68 65 43 6c 69 70 |an HasPu|tTheClip|
|00002240| 28 76 6f 69 64 29 0d 09 | 7b 0d 09 72 65 74 75 72 |(void)..|{..retur|
|00002250| 6e 28 67 61 63 63 2e 65 | 78 74 65 6e 64 49 44 20 |n(gacc.e|xtendID |
|00002260| 3d 3d 20 27 56 45 52 33 | 27 20 26 26 20 67 61 63 |== 'VER3|' && gac|
|00002270| 63 2e 50 75 74 41 70 70 | 43 6c 69 70 5f 45 78 74 |c.PutApp|Clip_Ext|
|00002280| 20 21 3d 20 4e 55 4c 4c | 29 3b 0d 09 7d 0d 0d 00 | != NULL|);..}...|
|00002290| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000022a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000022b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000022c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000022d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000022e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000022f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002300| 00 00 01 00 00 00 03 1e | 00 00 02 1e 00 00 00 82 |........|........|
|00002310| 00 08 01 07 00 06 00 06 | 00 06 00 05 00 05 00 06 |........|........|
|00002320| 00 06 01 03 00 06 00 06 | 00 05 00 08 00 06 00 06 |........|........|
|00002330| 0b 43 6f 64 65 5f 4d 61 | 69 6e 2e 63 02 00 00 00 |.Code_Ma|in.c....|
|00002340| 54 45 58 54 4b 45 45 4e | 01 00 00 00 00 80 00 00 |TEXTKEEN|........|
|00002350| 00 00 54 45 58 54 4b 45 | 45 4e 01 00 00 00 00 80 |..TEXTKE|EN......|
|00002360| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002370| 00 00 a6 91 e8 86 00 00 | 22 0f 00 00 03 a0 00 08 |........|".......|
|00002380| 00 06 00 06 00 05 00 04 | 00 02 00 04 00 06 00 00 |........|........|
|00002390| 01 07 01 07 00 06 00 05 | 00 06 00 06 00 06 00 05 |........|........|
|000023a0| 00 05 00 05 00 05 00 05 | 00 05 00 05 00 05 00 05 |........|........|
|000023b0| 00 05 00 05 00 03 00 03 | 00 04 00 04 00 05 00 05 |........|........|
|000023c0| 00 05 00 05 00 05 00 05 | 00 05 00 05 00 05 00 05 |........|........|
|000023d0| 00 04 00 05 00 06 00 06 | 00 06 00 06 00 06 00 06 |........|........|
|000023e0| 00 09 00 09 00 09 01 04 | 00 04 00 06 00 09 00 07 |........|........|
|000023f0| 00 0a 00 06 00 05 00 05 | 00 06 00 06 00 05 00 06 |........|........|
|00002400| 00 00 00 04 00 06 00 04 | 00 00 01 f0 00 15 00 00 |........|........|
|00002410| 1d b4 00 00 1d c3 0f 44 | 6f 45 76 65 6e 74 4c 6f |.......D|oEventLo|
|00002420| 6f 70 4f 6e 63 65 00 00 | 14 c1 00 00 14 cd 0d 47 |opOnce..|.......G|
|00002430| 65 74 46 72 6f 6e 74 54 | 65 78 74 00 00 00 16 0c |etFrontT|ext.....|
|00002440| 00 00 16 1c 11 47 65 74 | 4e 65 78 74 4d 75 6c 74 |.....Get|NextMult|
|00002450| 69 46 69 6c 65 00 00 00 | 1a 00 00 00 1a 0f 0f 47 |iFile...|.......G|
|00002460| 65 74 53 63 72 65 65 6e | 48 65 69 67 68 74 00 00 |etScreen|Height..|
|00002470| 1b 59 00 00 1b 67 0f 47 | 65 74 53 63 72 65 65 6e |.Y...g.G|etScreen|
|00002480| 57 69 64 74 68 00 00 00 | 1e c3 00 00 1e cd 0b 47 |Width...|.......G|
|00002490| 65 74 54 68 65 43 6c 69 | 70 00 00 00 1e 75 00 00 |etTheCli|p....u..|
|000024a0| 1e 87 13 48 61 73 44 6f | 45 76 65 6e 74 4c 6f 6f |...HasDo|EventLoo|
|000024b0| 70 4f 6e 63 65 00 00 00 | 15 c6 00 00 15 d5 0f 48 |pOnce...|.......H|
|000024c0| 61 73 47 65 74 46 72 6f | 6e 74 54 65 78 74 00 00 |asGetFro|ntText..|
|000024d0| 17 75 00 00 17 88 13 48 | 61 73 47 65 74 4e 65 78 |.u.....H|asGetNex|
|000024e0| 74 4d 75 6c 74 69 46 69 | 6c 65 00 00 1b 0c 00 00 |tMultiFi|le......|
|000024f0| 1b 1e 13 48 61 73 47 65 | 74 53 63 72 65 65 6e 48 |...HasGe|tScreenH|
|00002500| 65 69 67 68 74 00 00 00 | 1c 62 00 00 1c 73 11 48 |eight...|.b...s.H|
|00002510| 61 73 47 65 74 53 63 72 | 65 65 6e 57 69 64 74 68 |asGetScr|eenWidth|
|00002520| 00 00 1f aa 00 00 1f b7 | 0d 48 61 73 47 65 74 54 |........|.HasGetT|
|00002530| 68 65 43 6c 69 70 00 00 | 14 79 00 00 14 88 0f 48 |heClip..|.y.....H|
|00002540| 61 73 49 6e 44 69 63 74 | 69 6f 6e 61 72 79 00 00 |asInDict|ionary..|
|00002550| 19 bb 00 00 19 c9 0f 48 | 61 73 4d 65 6d 6f 72 79 |.......H|asMemory|
|00002560| 41 6c 65 72 74 00 00 00 | 18 c2 00 00 18 d0 0f 48 |Alert...|.......H|
|00002570| 61 73 4f 4b 53 74 6f 70 | 41 6c 65 72 74 00 00 00 |asOKStop|Alert...|
|00002580| 1d 6a 00 00 1d 7b 11 48 | 61 73 53 65 74 57 61 74 |.j...{.H|asSetWat|
|00002590| 63 68 43 75 72 73 6f 72 | 00 00 13 78 00 00 13 84 |chCursor|...x....|
|000025a0| 0d 49 6e 44 69 63 74 69 | 6f 6e 61 72 79 00 00 00 |.InDicti|onary...|
|000025b0| 19 06 00 00 19 11 0b 4d | 65 6d 6f 72 79 41 6c 65 |.......M|emoryAle|
|000025c0| 72 74 00 00 0e 15 00 00 | 0e 19 05 6d 61 69 6e 00 |rt......|...main.|
|000025d0| 00 00 17 c4 00 00 17 cf | 0b 4f 4b 53 74 6f 70 41 |........|.OKStopA|
|000025e0| 6c 65 72 74 00 00 1c ac | 00 00 1c ba 0f 53 65 74 |lert....|.....Set|
|000025f0| 57 61 74 63 68 43 75 72 | 73 6f 72 00 00 00 00 0a |WatchCur|sor.....|
|00002600| 00 09 06 4d 6f 6e 61 63 | 6f 00 00 00 00 04 ab 3c |...Monac|o......<|
|00002610| c2 af 00 00 00 08 00 47 | 00 33 02 1b 01 e3 00 00 |.......G|.3......|
|00002620| 01 00 00 00 03 1e 00 00 | 02 1e 00 00 00 82 00 a7 |........|........|
|00002630| 0f 80 12 bc 00 00 00 1c | 00 82 00 04 45 54 41 42 |........|....ETAB|
|00002640| 00 00 00 2a 4d 50 53 52 | 00 00 00 36 45 46 4e 54 |...*MPSR|...6EFNT|
|00002650| 00 00 00 42 4a 41 47 5a | 00 00 00 4e 57 53 49 5a |...BJAGZ|...NWSIZ|
|00002660| 00 00 00 5a 03 ec ff ff | 00 00 00 00 00 00 00 00 |...Z....|........|
|00002670| 03 ef ff ff 00 00 00 08 | 00 00 00 00 03 eb ff ff |........|........|
|00002680| 00 00 01 fc 00 00 00 00 | 03 ed ff ff 00 00 02 0a |........|........|
|00002690| 00 00 00 00 03 ee ff ff | 00 00 02 12 00 00 00 00 |........|........|
|000026a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000026b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000026c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000026d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000026e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000026f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
+--------+-------------------------+-------------------------+--------+--------+