home *** CD-ROM | disk | FTP | other *** search
MacBinary | 2002-10-31 | 9.9 KB | [TEXT/CWIE] |
view JSON data
|
view as text
|
open on a Mac
|
open on a PC
This file was processed as: MacBinary
(archive/macBinary).
You can browse this item here: UtilFuncs.c
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, Thu Oct 31 21:10:52 2002, modified Thu Oct 31 21:10:52 2002, creator 'CWIE', type ASCII, 9261 bytes "UtilFuncs.c" , at 0x24ad 519 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 |
---|
key | value |
---|
macFileType | [TEXT] |
macFileCreator | [CWIE] |
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 0b 55 74 69 6c 46 75 | 6e 63 73 2e 63 00 00 00 |..UtilFu|ncs.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 43 57 49 | 45 01 00 00 00 00 00 00 |.TEXTCWI|E.......|
|00000050| 00 00 00 00 00 24 2d 00 | 00 02 07 b9 e7 93 2c b9 |.....$-.|......,.|
|00000060| e7 93 2c 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 6a af 00 00 |........|....j...|
|00000080| 2f 2a 0d 20 2a 20 54 68 | 65 20 63 6f 6e 74 65 6e |/*. * Th|e conten|
|00000090| 74 73 20 6f 66 20 74 68 | 69 73 20 66 69 6c 65 20 |ts of th|is file |
|000000a0| 61 72 65 20 73 75 62 6a | 65 63 74 20 74 6f 20 74 |are subj|ect to t|
|000000b0| 68 65 20 4d 6f 7a 69 6c | 6c 61 20 50 75 62 6c 69 |he Mozil|la Publi|
|000000c0| 63 0d 20 2a 20 4c 69 63 | 65 6e 73 65 20 56 65 72 |c. * Lic|ense Ver|
|000000d0| 73 69 6f 6e 20 31 2e 31 | 20 28 74 68 65 20 22 4c |sion 1.1| (the "L|
|000000e0| 69 63 65 6e 73 65 22 29 | 3b 20 79 6f 75 20 6d 61 |icense")|; you ma|
|000000f0| 79 20 6e 6f 74 20 75 73 | 65 20 74 68 69 73 20 66 |y not us|e this f|
|00000100| 69 6c 65 0d 20 2a 20 65 | 78 63 65 70 74 20 69 6e |ile. * e|xcept in|
|00000110| 20 63 6f 6d 70 6c 69 61 | 6e 63 65 20 77 69 74 68 | complia|nce with|
|00000120| 20 74 68 65 20 4c 69 63 | 65 6e 73 65 2e 20 59 6f | the Lic|ense. Yo|
|00000130| 75 20 6d 61 79 20 6f 62 | 74 61 69 6e 20 61 20 63 |u may ob|tain a c|
|00000140| 6f 70 79 20 6f 66 0d 20 | 2a 20 74 68 65 20 4c 69 |opy of. |* the Li|
|00000150| 63 65 6e 73 65 20 61 74 | 20 68 74 74 70 3a 2f 2f |cense at| http://|
|00000160| 77 77 77 2e 6d 6f 7a 69 | 6c 6c 61 2e 6f 72 67 2f |www.mozi|lla.org/|
|00000170| 4d 50 4c 2f 0d 20 2a 20 | 0d 20 2a 20 53 6f 66 74 |MPL/. * |. * Soft|
|00000180| 77 61 72 65 20 64 69 73 | 74 72 69 62 75 74 65 64 |ware dis|tributed|
|00000190| 20 75 6e 64 65 72 20 74 | 68 65 20 4c 69 63 65 6e | under t|he Licen|
|000001a0| 73 65 20 69 73 20 64 69 | 73 74 72 69 62 75 74 65 |se is di|stribute|
|000001b0| 64 20 6f 6e 20 61 6e 20 | 22 41 53 0d 20 2a 20 49 |d on an |"AS. * I|
|000001c0| 53 22 20 62 61 73 69 73 | 2c 20 57 49 54 48 4f 55 |S" basis|, WITHOU|
|000001d0| 54 20 57 41 52 52 41 4e | 54 59 20 4f 46 20 41 4e |T WARRAN|TY OF AN|
|000001e0| 59 20 4b 49 4e 44 2c 20 | 65 69 74 68 65 72 20 65 |Y KIND, |either e|
|000001f0| 78 70 72 65 73 73 20 6f | 72 0d 20 2a 20 69 6d 70 |xpress o|r. * imp|
|00000200| 6c 69 65 64 2e 20 53 65 | 65 20 74 68 65 20 4c 69 |lied. Se|e the Li|
|00000210| 63 65 6e 73 65 20 66 6f | 72 20 74 68 65 20 73 70 |cense fo|r the sp|
|00000220| 65 63 69 66 69 63 20 6c | 61 6e 67 75 61 67 65 20 |ecific l|anguage |
|00000230| 67 6f 76 65 72 6e 69 6e | 67 0d 20 2a 20 72 69 67 |governin|g. * rig|
|00000240| 68 74 73 20 61 6e 64 20 | 6c 69 6d 69 74 61 74 69 |hts and |limitati|
|00000250| 6f 6e 73 20 75 6e 64 65 | 72 20 74 68 65 20 4c 69 |ons unde|r the Li|
|00000260| 63 65 6e 73 65 2e 0d 20 | 2a 20 0d 20 2a 20 54 68 |cense.. |* . * Th|
|00000270| 65 20 4f 72 69 67 69 6e | 61 6c 20 43 6f 64 65 20 |e Origin|al Code |
|00000280| 69 73 20 43 6f 70 79 72 | 69 67 68 74 20 31 39 39 |is Copyr|ight 199|
|00000290| 33 20 4a 69 6d 20 42 75 | 6d 67 61 72 64 6e 65 72 |3 Jim Bu|mgardner|
|000002a0| 2e 0d 20 2a 20 0d 20 2a | 20 54 68 65 20 49 6e 69 |.. * . *| The Ini|
|000002b0| 74 69 61 6c 20 44 65 76 | 65 6c 6f 70 65 72 20 6f |tial Dev|eloper o|
|000002c0| 66 20 74 68 65 20 4f 72 | 69 67 69 6e 61 6c 20 43 |f the Or|iginal C|
|000002d0| 6f 64 65 20 69 73 20 4a | 69 6d 20 42 75 6d 67 61 |ode is J|im Bumga|
|000002e0| 72 64 6e 65 72 0d 20 2a | 20 50 6f 72 74 69 6f 6e |rdner. *| Portion|
|000002f0| 73 20 63 72 65 61 74 65 | 64 20 62 79 20 4c 61 6e |s create|d by Lan|
|00000300| 65 20 52 6f 61 74 68 65 | 20 61 72 65 0d 20 2a 20 |e Roathe| are. * |
|00000310| 43 6f 70 79 72 69 67 68 | 74 20 28 43 29 20 43 6f |Copyrigh|t (C) Co|
|00000320| 70 79 72 69 67 68 74 20 | a9 20 31 39 39 36 2d 32 |pyright |. 1996-2|
|00000330| 30 30 32 2e 0d 20 2a 20 | 41 6c 6c 20 52 69 67 68 |002.. * |All Righ|
|00000340| 74 73 20 52 65 73 65 72 | 76 65 64 2e 0d 20 2a 0d |ts Reser|ved.. *.|
|00000350| 20 2a 20 4d 6f 64 69 66 | 69 65 64 3a 20 24 44 61 | * Modif|ied: $Da|
|00000360| 74 65 3a 20 32 30 30 32 | 2f 30 34 2f 32 30 20 30 |te: 2002|/04/20 0|
|00000370| 35 3a 33 32 3a 31 32 20 | 24 0d 20 2a 20 52 65 76 |5:32:12 |$. * Rev|
|00000380| 69 73 69 6f 6e 3a 20 24 | 49 64 3a 20 55 74 69 6c |ision: $|Id: Util|
|00000390| 46 75 6e 63 73 2e 63 2c | 76 20 31 2e 31 31 20 32 |Funcs.c,|v 1.11 2|
|000003a0| 30 30 32 2f 30 34 2f 32 | 30 20 30 35 3a 33 32 3a |002/04/2|0 05:32:|
|000003b0| 31 32 20 72 61 76 69 6e | 67 20 45 78 70 20 24 0d |12 ravin|g Exp $.|
|000003c0| 20 2a 0d 20 2a 20 43 6f | 6e 74 72 69 62 75 74 6f | *. * Co|ntributo|
|000003d0| 72 28 73 29 3a 0d 20 2a | 09 09 4c 61 6e 65 20 52 |r(s):. *|..Lane R|
|000003e0| 6f 61 74 68 65 0d 20 2a | 09 09 4e 69 63 6b 20 53 |oathe. *|..Nick S|
|000003f0| 68 61 6e 6b 73 0d 20 2a | 2f 0d 0d 2f 2f 20 30 35 |hanks. *|/..// 05|
|00000400| 2f 31 30 2f 30 31 20 2d | 20 47 41 42 3a 20 4d 50 |/10/01 -| GAB: MP|
|00000410| 57 20 65 6e 76 69 72 6f | 6e 6d 65 6e 74 20 73 75 |W enviro|nment su|
|00000420| 70 70 6f 72 74 0d 23 69 | 66 64 65 66 20 5f 5f 4d |pport.#i|fdef __M|
|00000430| 50 57 5f 5f 0d 23 69 6e | 63 6c 75 64 65 20 22 4d |PW__.#in|clude "M|
|00000440| 50 57 49 6e 63 6c 75 64 | 65 73 2e 68 22 0d 23 65 |PWInclud|es.h".#e|
|00000450| 6e 64 69 66 0d 0d 23 69 | 6e 63 6c 75 64 65 20 3c |ndif..#i|nclude <|
|00000460| 73 74 64 69 6f 2e 68 3e | 0d 23 69 66 20 5f 5f 4d |stdio.h>|.#if __M|
|00000470| 57 45 52 4b 53 5f 5f 0d | 09 23 64 65 66 69 6e 65 |WERKS__.|.#define|
|00000480| 20 44 45 42 55 47 20 31 | 0d 09 23 69 6e 63 6c 75 | DEBUG 1|..#inclu|
|00000490| 64 65 20 3c 64 65 62 75 | 67 67 69 6e 67 2e 68 3e |de <debu|gging.h>|
|000004a0| 09 2f 2f 20 4c 52 3a 20 | 76 31 2e 36 2e 35 2c 20 |.// LR: |v1.6.5, |
|000004b0| 76 69 61 20 4d 61 78 20 | 48 6f 72 6e 20 2d 20 73 |via Max |Horn - s|
|000004c0| 61 66 65 20 6f 6e 20 73 | 79 73 74 65 6d 73 20 77 |afe on s|ystems w|
|000004d0| 2f 6f 20 64 65 62 75 67 | 67 65 72 0d 23 65 6c 73 |/o debug|ger.#els|
|000004e0| 65 0d 2f 2f 20 20 20 20 | 23 69 6e 63 6c 75 64 65 |e.// |#include|
|000004f0| 20 3c 43 61 72 62 6f 6e | 43 6f 72 65 2f 44 65 62 | <Carbon|Core/Deb|
|00000500| 75 67 67 69 6e 67 2e 68 | 3e 0d 23 65 6e 64 69 66 |ugging.h|>.#endif|
|00000510| 0d 0d 23 69 6e 63 6c 75 | 64 65 20 22 55 74 69 6c |..#inclu|de "Util|
|00000520| 69 74 79 2e 68 22 0d 0d | 2f 2a 2a 2a 20 53 45 54 |ity.h"..|/*** SET|
|00000530| 20 43 4f 4e 54 52 4f 4c | 20 2a 2a 2a 2f 0d 76 6f | CONTROL| ***/.vo|
|00000540| 69 64 20 53 65 74 43 6f | 6e 74 72 6f 6c 28 20 44 |id SetCo|ntrol( D|
|00000550| 69 61 6c 6f 67 50 74 72 | 20 64 69 61 6c 6f 67 2c |ialogPtr| dialog,|
|00000560| 20 73 68 6f 72 74 20 69 | 74 65 6d 2c 20 73 68 6f | short i|tem, sho|
|00000570| 72 74 20 76 61 6c 75 65 | 20 29 0d 7b 0d 09 48 61 |rt value| ).{..Ha|
|00000580| 6e 64 6c 65 20 68 61 6e | 64 6c 65 3b 0d 09 73 68 |ndle han|dle;..sh|
|00000590| 6f 72 74 20 74 79 70 65 | 3b 0d 09 52 65 63 74 20 |ort type|;..Rect |
|000005a0| 72 3b 0d 0d 09 47 65 74 | 44 69 61 6c 6f 67 49 74 |r;...Get|DialogIt|
|000005b0| 65 6d 28 20 64 69 61 6c | 6f 67 2c 20 69 74 65 6d |em( dial|og, item|
|000005c0| 2c 20 26 74 79 70 65 2c | 20 26 68 61 6e 64 6c 65 |, &type,| &handle|
|000005d0| 2c 20 26 72 20 29 3b 0d | 09 53 65 74 43 6f 6e 74 |, &r );.|.SetCont|
|000005e0| 72 6f 6c 56 61 6c 75 65 | 28 20 28 20 43 6f 6e 74 |rolValue|( ( Cont|
|000005f0| 72 6f 6c 48 61 6e 64 6c | 65 20 29 20 68 61 6e 64 |rolHandl|e ) hand|
|00000600| 6c 65 2c 20 76 61 6c 75 | 65 20 29 3b 0d 7d 0d 0d |le, valu|e );.}..|
|00000610| 2f 2f 20 43 6f 70 79 20 | 61 20 70 61 73 63 61 6c |// Copy |a pascal|
|00000620| 20 73 74 72 69 6e 67 20 | 74 6f 20 61 20 64 69 61 | string |to a dia|
|00000630| 6c 6f 67 27 73 20 74 65 | 78 74 20 69 74 65 6d 20 |log's te|xt item |
|00000640| 28 20 73 74 61 74 69 63 | 20 74 65 78 74 20 6f 72 |( static| text or|
|00000650| 20 65 64 69 74 20 74 65 | 78 74 20 29 0d 0d 2f 2a | edit te|xt )../*|
|00000660| 2a 2a 20 53 45 54 20 54 | 45 58 54 20 2a 2a 2a 2f |** SET T|EXT ***/|
|00000670| 0d 76 6f 69 64 20 53 65 | 74 54 65 78 74 28 20 44 |.void Se|tText( D|
|00000680| 69 61 6c 6f 67 50 74 72 | 20 64 69 61 6c 6f 67 2c |ialogPtr| dialog,|
|00000690| 20 73 68 6f 72 74 20 69 | 74 65 6d 2c 20 53 74 72 | short i|tem, Str|
|000006a0| 69 6e 67 50 74 72 20 74 | 65 78 74 20 29 0d 7b 0d |ingPtr t|ext ).{.|
|000006b0| 09 48 61 6e 64 6c 65 09 | 68 61 6e 64 6c 65 3b 0d |.Handle.|handle;.|
|000006c0| 09 73 68 6f 72 74 09 74 | 79 70 65 3b 0d 09 52 65 |.short.t|ype;..Re|
|000006d0| 63 74 09 72 3b 0d 0d 09 | 47 65 74 44 69 61 6c 6f |ct.r;...|GetDialo|
|000006e0| 67 49 74 65 6d 28 20 64 | 69 61 6c 6f 67 2c 20 69 |gItem( d|ialog, i|
|000006f0| 74 65 6d 2c 20 26 74 79 | 70 65 2c 20 26 68 61 6e |tem, &ty|pe, &han|
|00000700| 64 6c 65 2c 20 26 72 20 | 29 3b 0d 09 53 65 74 44 |dle, &r |);..SetD|
|00000710| 69 61 6c 6f 67 49 74 65 | 6d 54 65 78 74 28 20 68 |ialogIte|mText( h|
|00000720| 61 6e 64 6c 65 2c 20 74 | 65 78 74 20 29 3b 0d 7d |andle, t|ext );.}|
|00000730| 0d 0d 2f 2f 20 43 6f 70 | 79 20 61 20 64 69 61 6c |..// Cop|y a dial|
|00000740| 6f 67 27 73 20 74 65 78 | 74 20 69 74 65 6d 20 74 |og's tex|t item t|
|00000750| 6f 20 61 20 70 61 73 63 | 61 6c 20 73 74 72 69 6e |o a pasc|al strin|
|00000760| 67 2e 0d 0d 2f 2a 2a 2a | 20 47 45 54 20 54 45 58 |g.../***| GET TEX|
|00000770| 54 20 2a 2a 2a 2f 0d 76 | 6f 69 64 20 47 65 74 54 |T ***/.v|oid GetT|
|00000780| 65 78 74 28 20 44 69 61 | 6c 6f 67 50 74 72 20 64 |ext( Dia|logPtr d|
|00000790| 69 61 6c 6f 67 2c 20 73 | 68 6f 72 74 20 69 74 65 |ialog, s|hort ite|
|000007a0| 6d 2c 20 53 74 72 69 6e | 67 50 74 72 20 74 65 78 |m, Strin|gPtr tex|
|000007b0| 74 20 29 0d 7b 0d 09 48 | 61 6e 64 6c 65 09 68 61 |t ).{..H|andle.ha|
|000007c0| 6e 64 6c 65 3b 0d 09 73 | 68 6f 72 74 09 74 79 70 |ndle;..s|hort.typ|
|000007d0| 65 3b 0d 09 52 65 63 74 | 09 72 3b 0d 0d 09 47 65 |e;..Rect|.r;...Ge|
|000007e0| 74 44 69 61 6c 6f 67 49 | 74 65 6d 28 20 64 69 61 |tDialogI|tem( dia|
|000007f0| 6c 6f 67 2c 20 69 74 65 | 6d 2c 20 26 74 79 70 65 |log, ite|m, &type|
|00000800| 2c 20 26 68 61 6e 64 6c | 65 2c 20 26 72 20 29 3b |, &handl|e, &r );|
|00000810| 0d 09 47 65 74 44 69 61 | 6c 6f 67 49 74 65 6d 54 |..GetDia|logItemT|
|00000820| 65 78 74 28 20 68 61 6e | 64 6c 65 2c 20 28 53 74 |ext( han|dle, (St|
|00000830| 72 69 6e 67 50 74 72 29 | 20 74 65 78 74 20 29 3b |ringPtr)| text );|
|00000840| 0d 7d 0d 0d 2f 2a 2a 2a | 20 47 45 54 20 52 45 43 |.}../***| GET REC|
|00000850| 54 20 2a 2a 2a 2f 0d 76 | 6f 69 64 20 47 65 74 52 |T ***/.v|oid GetR|
|00000860| 65 63 74 28 20 44 69 61 | 6c 6f 67 50 74 72 20 64 |ect( Dia|logPtr d|
|00000870| 69 61 6c 6f 67 2c 20 73 | 68 6f 72 74 20 69 74 65 |ialog, s|hort ite|
|00000880| 6d 2c 20 52 65 63 74 20 | 2a 72 20 29 0d 7b 0d 09 |m, Rect |*r ).{..|
|00000890| 48 61 6e 64 6c 65 09 68 | 61 6e 64 6c 65 3b 0d 09 |Handle.h|andle;..|
|000008a0| 73 68 6f 72 74 09 74 79 | 70 65 3b 0d 0d 09 47 65 |short.ty|pe;...Ge|
|000008b0| 74 44 69 61 6c 6f 67 49 | 74 65 6d 28 20 64 69 61 |tDialogI|tem( dia|
|000008c0| 6c 6f 67 2c 20 69 74 65 | 6d 2c 20 26 74 79 70 65 |log, ite|m, &type|
|000008d0| 2c 20 26 68 61 6e 64 6c | 65 2c 20 72 20 29 3b 0d |, &handl|e, r );.|
|000008e0| 7d 0d 0d 2f 2a 2a 2a 20 | 53 45 54 20 44 52 41 57 |}../*** |SET DRAW|
|000008f0| 20 50 52 4f 43 20 2a 2a | 2a 2f 0d 76 6f 69 64 20 | PROC **|*/.void |
|00000900| 53 65 74 44 72 61 77 28 | 20 44 69 61 6c 6f 67 50 |SetDraw(| DialogP|
|00000910| 74 72 20 64 69 61 6c 6f | 67 2c 20 73 68 6f 72 74 |tr dialo|g, short|
|00000920| 20 69 74 65 6d 2c 20 48 | 61 6e 64 6c 65 20 70 72 | item, H|andle pr|
|00000930| 6f 63 20 29 0d 7b 0d 09 | 48 61 6e 64 6c 65 09 68 |oc ).{..|Handle.h|
|00000940| 61 6e 64 6c 65 3b 0d 09 | 73 68 6f 72 74 09 74 79 |andle;..|short.ty|
|00000950| 70 65 3b 0d 09 52 65 63 | 74 09 72 3b 0d 0d 09 47 |pe;..Rec|t.r;...G|
|00000960| 65 74 44 69 61 6c 6f 67 | 49 74 65 6d 28 20 64 69 |etDialog|Item( di|
|00000970| 61 6c 6f 67 2c 20 69 74 | 65 6d 2c 20 26 74 79 70 |alog, it|em, &typ|
|00000980| 65 2c 20 26 68 61 6e 64 | 6c 65 2c 20 26 72 20 29 |e, &hand|le, &r )|
|00000990| 3b 0d 09 53 65 74 44 69 | 61 6c 6f 67 49 74 65 6d |;..SetDi|alogItem|
|000009a0| 28 20 64 69 61 6c 6f 67 | 2c 20 69 74 65 6d 2c 20 |( dialog|, item, |
|000009b0| 74 79 70 65 2c 20 70 72 | 6f 63 2c 20 26 72 20 29 |type, pr|oc, &r )|
|000009c0| 3b 0d 7d 0d 0d 2f 2a 2a | 2a 20 44 49 53 41 42 4c |;.}../**|* DISABL|
|000009d0| 45 20 42 55 54 54 4f 4e | 20 2a 2a 2a 2f 0d 76 6f |E BUTTON| ***/.vo|
|000009e0| 69 64 20 44 69 73 61 62 | 6c 65 42 75 74 74 6f 6e |id Disab|leButton|
|000009f0| 28 20 44 69 61 6c 6f 67 | 50 74 72 20 64 69 61 6c |( Dialog|Ptr dial|
|00000a00| 6f 67 2c 20 73 68 6f 72 | 74 20 62 69 64 20 29 0d |og, shor|t bid ).|
|00000a10| 7b 0d 09 48 61 6e 64 6c | 65 09 68 3b 0d 09 73 68 |{..Handl|e.h;..sh|
|00000a20| 6f 72 74 09 74 3b 0d 09 | 52 65 63 74 09 72 3b 0d |ort.t;..|Rect.r;.|
|00000a30| 0d 2f 2f 20 4c 52 3a 20 | 76 31 2e 36 2e 35 2c 09 |.// LR: |v1.6.5,.|
|00000a40| 53 65 74 44 69 61 6c 6f | 67 44 65 66 61 75 6c 74 |SetDialo|gDefault|
|00000a50| 49 74 65 6d 28 20 64 69 | 61 6c 6f 67 2c 20 62 69 |Item( di|alog, bi|
|00000a60| 64 20 29 3b 0d 09 47 65 | 74 44 69 61 6c 6f 67 49 |d );..Ge|tDialogI|
|00000a70| 74 65 6d 28 20 64 69 61 | 6c 6f 67 2c 20 62 69 64 |tem( dia|log, bid|
|00000a80| 2c 20 26 74 2c 20 26 68 | 2c 20 26 72 20 29 3b 0d |, &t, &h|, &r );.|
|00000a90| 09 48 69 6c 69 74 65 43 | 6f 6e 74 72 6f 6c 28 20 |.HiliteC|ontrol( |
|00000aa0| 28 20 43 6f 6e 74 72 6f | 6c 48 61 6e 64 6c 65 20 |( Contro|lHandle |
|00000ab0| 29 20 68 2c 20 6b 43 6f | 6e 74 72 6f 6c 44 69 73 |) h, kCo|ntrolDis|
|00000ac0| 61 62 6c 65 64 50 61 72 | 74 20 29 3b 0d 7d 0d 0d |abledPar|t );.}..|
|00000ad0| 2f 2a 2a 2a 20 45 4e 41 | 42 4c 45 20 42 55 54 54 |/*** ENA|BLE BUTT|
|00000ae0| 4f 4e 20 2a 2a 2a 2f 0d | 76 6f 69 64 20 45 6e 61 |ON ***/.|void Ena|
|00000af0| 62 6c 65 42 75 74 74 6f | 6e 28 20 44 69 61 6c 6f |bleButto|n( Dialo|
|00000b00| 67 50 74 72 20 64 69 61 | 6c 6f 67 2c 20 73 68 6f |gPtr dia|log, sho|
|00000b10| 72 74 20 62 69 64 20 29 | 0d 7b 0d 09 48 61 6e 64 |rt bid )|.{..Hand|
|00000b20| 6c 65 09 68 3b 0d 09 73 | 68 6f 72 74 09 74 3b 0d |le.h;..s|hort.t;.|
|00000b30| 09 52 65 63 74 09 72 3b | 0d 0d 2f 2f 20 4c 52 3a |.Rect.r;|..// LR:|
|00000b40| 20 76 31 2e 36 2e 35 2c | 09 53 65 74 44 69 61 6c | v1.6.5,|.SetDial|
|00000b50| 6f 67 44 65 66 61 75 6c | 74 49 74 65 6d 28 20 64 |ogDefaul|tItem( d|
|00000b60| 69 61 6c 6f 67 2c 20 62 | 69 64 20 29 3b 0d 09 47 |ialog, b|id );..G|
|00000b70| 65 74 44 69 61 6c 6f 67 | 49 74 65 6d 28 20 64 69 |etDialog|Item( di|
|00000b80| 61 6c 6f 67 2c 20 62 69 | 64 2c 20 26 74 2c 20 26 |alog, bi|d, &t, &|
|00000b90| 68 2c 20 26 72 20 29 3b | 0d 09 48 69 6c 69 74 65 |h, &r );|..Hilite|
|00000ba0| 43 6f 6e 74 72 6f 6c 28 | 20 28 20 43 6f 6e 74 72 |Control(| ( Contr|
|00000bb0| 6f 6c 48 61 6e 64 6c 65 | 20 29 20 68 2c 20 6b 43 |olHandle| ) h, kC|
|00000bc0| 6f 6e 74 72 6f 6c 4e 6f | 50 61 72 74 20 29 3b 0d |ontrolNo|Part );.|
|00000bd0| 7d 0d 0d 2f 2a 09 2a 2a | 2a 20 43 68 65 63 6b 20 |}../*.**|* Check |
|00000be0| 66 6f 72 20 61 6e 20 61 | 62 6f 72 74 20 6b 65 79 |for an a|bort key|
|00000bf0| 70 72 65 73 73 20 28 45 | 53 43 20 6f 72 20 43 6f |press (E|SC or Co|
|00000c00| 6d 6d 61 6e 64 20 2e 29 | 20 2a 2a 2a 0d 0d 09 4c |mmand .)| ***...L|
|00000c10| 52 3a 20 31 2e 36 36 20 | 2d 20 61 64 64 65 64 20 |R: 1.66 |- added |
|00000c20| 74 6f 20 61 6c 6c 6f 77 | 20 61 6e 79 20 72 6f 75 |to allow| any rou|
|00000c30| 74 69 6e 65 20 74 6f 20 | 63 68 65 63 6b 20 66 6f |tine to |check fo|
|00000c40| 72 20 61 6e 20 61 62 6f | 72 74 20 6b 65 79 70 72 |r an abo|rt keypr|
|00000c50| 65 73 73 2e 0d 0d 09 45 | 58 49 54 3a 20 74 72 75 |ess....E|XIT: tru|
|00000c60| 65 20 3d 3d 20 75 73 65 | 72 20 70 72 65 73 73 65 |e == use|r presse|
|00000c70| 64 20 61 62 6f 72 74 20 | 6b 65 79 28 73 29 0d 2a |d abort |key(s).*|
|00000c80| 2f 0d 0d 42 6f 6f 6c 65 | 61 6e 20 43 68 65 63 6b |/..Boole|an Check|
|00000c90| 46 6f 72 41 62 6f 72 74 | 28 20 76 6f 69 64 20 29 |ForAbort|( void )|
|00000ca0| 0d 7b 0d 09 45 76 65 6e | 74 52 65 63 6f 72 64 20 |.{..Even|tRecord |
|00000cb0| 65 76 65 6e 74 3b 0d 0d | 09 69 66 28 20 45 76 65 |event;..|.if( Eve|
|00000cc0| 6e 74 41 76 61 69 6c 28 | 20 6b 65 79 44 6f 77 6e |ntAvail(| keyDown|
|00000cd0| 4d 61 73 6b 2c 20 26 65 | 76 65 6e 74 20 29 20 29 |Mask, &e|vent ) )|
|00000ce0| 09 2f 2f 20 47 65 74 4e | 65 78 74 45 76 65 6e 74 |.// GetN|extEvent|
|00000cf0| 20 77 69 6c 6c 20 4e 4f | 54 20 77 6f 72 6b 20 28 | will NO|T work (|
|00000d00| 64 6f 65 73 6e 27 74 20 | 73 65 65 20 74 68 65 20 |doesn't |see the |
|00000d10| 6b 65 79 20 70 72 65 73 | 73 21 29 0d 09 7b 0d 09 |key pres|s!)..{..|
|00000d20| 09 69 66 28 20 6b 65 79 | 44 6f 77 6e 20 3d 3d 20 |.if( key|Down == |
|00000d30| 65 76 65 6e 74 2e 77 68 | 61 74 20 29 09 09 2f 2f |event.wh|at )..//|
|00000d40| 20 73 68 6f 75 6c 64 20 | 61 6c 77 61 79 73 20 62 | should |always b|
|00000d50| 65 20 74 72 75 65 2c 20 | 62 75 74 20 2e 2e 2e 0d |e true, |but ....|
|00000d60| 09 09 7b 0d 09 09 09 63 | 68 61 72 20 63 3b 0d 09 |..{....c|har c;..|
|00000d70| 09 09 45 76 65 6e 74 52 | 65 63 6f 72 64 20 62 6f |..EventR|ecord bo|
|00000d80| 67 75 73 3b 0d 0d 09 09 | 09 77 68 69 6c 65 28 20 |gus;....|.while( |
|00000d90| 47 65 74 4e 65 78 74 45 | 76 65 6e 74 28 20 65 76 |GetNextE|vent( ev|
|00000da0| 65 72 79 45 76 65 6e 74 | 2c 20 26 62 6f 67 75 73 |eryEvent|, &bogus|
|00000db0| 20 29 20 29 0d 09 09 09 | 09 3b 09 2f 2f 20 72 65 | ) )....|.;.// re|
|00000dc0| 6d 6f 76 65 20 61 6c 6c | 20 70 65 6e 64 69 6e 67 |move all| pending|
|00000dd0| 20 65 76 65 6e 74 73 21 | 0d 0d 09 09 09 63 20 3d | events!|.....c =|
|00000de0| 20 28 65 76 65 6e 74 2e | 6d 65 73 73 61 67 65 20 | (event.|message |
|00000df0| 26 20 63 68 61 72 43 6f | 64 65 4d 61 73 6b 29 3b |& charCo|deMask);|
|00000e00| 0d 0d 09 09 09 2f 2f 20 | 30 35 2f 31 30 2f 30 31 |.....// |05/10/01|
|00000e10| 20 2d 20 47 41 42 3a 20 | 75 6e 69 6e 74 65 6e 64 | - GAB: |unintend|
|00000e20| 65 64 20 61 73 73 69 67 | 6e 6d 65 6e 74 3f 0d 09 |ed assig|nment?..|
|00000e30| 09 09 69 66 28 20 32 37 | 20 3d 3d 20 63 20 7c 7c |..if( 27| == c |||
|00000e40| 20 28 27 2e 27 20 3d 3d | 20 63 20 26 26 20 28 65 | ('.' ==| c && (e|
|00000e50| 76 65 6e 74 2e 6d 6f 64 | 69 66 69 65 72 73 20 26 |vent.mod|ifiers &|
|00000e60| 20 63 6d 64 4b 65 79 29 | 29 20 29 0d 09 09 09 09 | cmdKey)|) ).....|
|00000e70| 72 65 74 75 72 6e 28 20 | 74 72 75 65 20 29 3b 0d |return( |true );.|
|00000e80| 09 09 7d 0d 09 7d 0d 09 | 72 65 74 75 72 6e 28 20 |..}..}..|return( |
|00000e90| 66 61 6c 73 65 20 29 3b | 0d 7d 0d 0d 2f 2f 20 53 |false );|.}..// S|
|00000ea0| 69 6d 75 6c 61 74 65 20 | 74 68 65 20 75 73 65 72 |imulate |the user|
|00000eb0| 20 70 72 65 73 73 69 6e | 67 20 61 20 62 75 74 74 | pressin|g a butt|
|00000ec0| 6f 6e 2e 09 54 68 69 73 | 20 69 73 20 75 73 65 64 |on..This| is used|
|00000ed0| 20 74 6f 20 67 69 76 65 | 20 74 68 65 20 75 73 65 | to give| the use|
|00000ee0| 72 20 73 6f 6d 65 0d 2f | 2f 20 76 69 73 75 61 6c |r some./|/ visual|
|00000ef0| 20 66 65 65 64 62 61 63 | 6b 20 77 68 65 6e 20 74 | feedbac|k when t|
|00000f00| 68 65 79 20 75 73 65 20 | 74 68 65 20 6b 65 79 62 |hey use |the keyb|
|00000f10| 6f 61 72 64 20 61 73 20 | 61 20 73 68 6f 72 74 63 |oard as |a shortc|
|00000f20| 75 74 20 74 6f 20 70 72 | 65 73 73 20 61 20 64 69 |ut to pr|ess a di|
|00000f30| 61 6c 6f 67 20 62 75 74 | 74 6f 6e 2e 0d 0d 2f 2a |alog but|ton.../*|
|00000f40| 2a 2a 20 53 49 4d 55 4c | 41 54 45 20 42 55 54 54 |** SIMUL|ATE BUTT|
|00000f50| 4f 4e 20 50 52 45 53 53 | 20 2a 2a 2a 2f 0d 76 6f |ON PRESS| ***/.vo|
|00000f60| 69 64 20 53 69 6d 75 6c | 61 74 65 42 75 74 74 6f |id Simul|ateButto|
|00000f70| 6e 50 72 65 73 73 28 20 | 44 69 61 6c 6f 67 50 74 |nPress( |DialogPt|
|00000f80| 72 20 64 69 61 6c 6f 67 | 2c 20 73 68 6f 72 74 20 |r dialog|, short |
|00000f90| 62 69 64 20 29 0d 7b 0d | 09 48 61 6e 64 6c 65 09 |bid ).{.|.Handle.|
|00000fa0| 68 3b 0d 09 73 68 6f 72 | 74 09 74 3b 0d 09 52 65 |h;..shor|t.t;..Re|
|00000fb0| 63 74 09 72 3b 0d 09 75 | 6e 73 69 67 6e 65 64 20 |ct.r;..u|nsigned |
|00000fc0| 6c 6f 6e 67 20 64 65 6c | 61 79 3b 0d 09 47 72 61 |long del|ay;..Gra|
|00000fd0| 66 50 74 72 09 67 70 3b | 0d 0d 09 47 65 74 50 6f |fPtr.gp;|...GetPo|
|00000fe0| 72 74 28 20 26 67 70 20 | 29 3b 0d 09 53 65 74 50 |rt( &gp |);..SetP|
|00000ff0| 6f 72 74 44 69 61 6c 6f | 67 50 6f 72 74 28 20 64 |ortDialo|gPort( d|
|00001000| 69 61 6c 6f 67 20 29 3b | 0d 0d 09 47 65 74 44 69 |ialog );|...GetDi|
|00001010| 61 6c 6f 67 49 74 65 6d | 28 20 64 69 61 6c 6f 67 |alogItem|( dialog|
|00001020| 2c 20 62 69 64 2c 20 26 | 74 2c 20 26 68 2c 20 26 |, bid, &|t, &h, &|
|00001030| 72 20 29 3b 0d 09 48 69 | 6c 69 74 65 43 6f 6e 74 |r );..Hi|liteCont|
|00001040| 72 6f 6c 28 20 28 20 43 | 6f 6e 74 72 6f 6c 48 61 |rol( ( C|ontrolHa|
|00001050| 6e 64 6c 65 20 29 20 68 | 2c 20 6b 43 6f 6e 74 72 |ndle ) h|, kContr|
|00001060| 6f 6c 42 75 74 74 6f 6e | 50 61 72 74 20 29 3b 0d |olButton|Part );.|
|00001070| 09 44 65 6c 61 79 28 20 | 31 30 2c 20 26 64 65 6c |.Delay( |10, &del|
|00001080| 61 79 20 29 3b 0d 09 48 | 69 6c 69 74 65 43 6f 6e |ay );..H|iliteCon|
|00001090| 74 72 6f 6c 28 20 28 20 | 43 6f 6e 74 72 6f 6c 48 |trol( ( |ControlH|
|000010a0| 61 6e 64 6c 65 20 29 20 | 68 2c 20 6b 43 6f 6e 74 |andle ) |h, kCont|
|000010b0| 72 6f 6c 4e 6f 50 61 72 | 74 20 29 3b 0d 09 53 65 |rolNoPar|t );..Se|
|000010c0| 74 50 6f 72 74 28 20 67 | 70 20 29 3b 0d 7d 0d 0d |tPort( g|p );.}..|
|000010d0| 2f 2a 2a 2a 20 45 52 52 | 4f 52 20 41 4c 45 52 54 |/*** ERR|OR ALERT|
|000010e0| 20 2a 2a 2a 2f 0d 2f 2f | 20 4c 52 3a 20 76 31 2e | ***/.//| LR: v1.|
|000010f0| 36 2e 35 2c 20 6d 6f 64 | 69 66 69 65 64 20 74 6f |6.5, mod|ified to|
|00001100| 20 61 63 63 65 70 74 20 | 53 54 52 23 20 69 6e 64 | accept |STR# ind|
|00001110| 65 78 20 66 6f 72 20 6c | 6f 63 61 6c 69 7a 61 74 |ex for l|ocalizat|
|00001120| 69 6f 6e 0d 73 68 6f 72 | 74 20 45 72 72 6f 72 41 |ion.shor|t ErrorA|
|00001130| 6c 65 72 74 28 20 73 68 | 6f 72 74 20 73 65 76 65 |lert( sh|ort seve|
|00001140| 72 69 74 79 2c 20 73 68 | 6f 72 74 20 73 74 72 69 |rity, sh|ort stri|
|00001150| 64 2c 20 2e 2e 2e 20 29 | 0d 7b 0d 09 63 68 61 72 |d, ... )|.{..char|
|00001160| 20 09 74 62 75 66 5b 32 | 35 36 5d 2c 20 73 74 72 | .tbuf[2|56], str|
|00001170| 5b 32 35 36 5d 3b 0d 09 | 73 68 6f 72 74 09 69 74 |[256];..|short.it|
|00001180| 65 6d 48 69 74 3b 0d 09 | 76 61 5f 6c 69 73 74 20 |emHit;..|va_list |
|00001190| 61 72 67 73 3b 0d 09 41 | 6c 65 72 74 54 79 70 65 |args;..A|lertType|
|000011a0| 20 69 6e 41 6c 65 72 74 | 54 79 70 65 3b 0d 0d 09 | inAlert|Type;...|
|000011b0| 47 65 74 49 6e 64 53 74 | 72 69 6e 67 28 20 28 53 |GetIndSt|ring( (S|
|000011c0| 74 72 69 6e 67 50 74 72 | 29 73 74 72 2c 20 73 74 |tringPtr|)str, st|
|000011d0| 72 45 72 72 6f 72 2c 20 | 73 74 72 69 64 20 29 3b |rError, |strid );|
|000011e0| 0d 09 43 6f 70 79 50 61 | 73 63 61 6c 53 74 72 69 |..CopyPa|scalStri|
|000011f0| 6e 67 54 6f 43 28 20 28 | 53 74 72 69 6e 67 50 74 |ngToC( (|StringPt|
|00001200| 72 29 73 74 72 2c 20 73 | 74 72 20 29 3b 0d 0d 09 |r)str, s|tr );...|
|00001210| 76 61 5f 73 74 61 72 74 | 28 20 61 72 67 73 2c 20 |va_start|( args, |
|00001220| 73 74 72 69 64 20 29 3b | 0d 09 76 73 70 72 69 6e |strid );|..vsprin|
|00001230| 74 66 28 20 74 62 75 66 | 2c 20 73 74 72 2c 20 61 |tf( tbuf|, str, a|
|00001240| 72 67 73 20 29 3b 0d 09 | 76 61 5f 65 6e 64 28 20 |rgs );..|va_end( |
|00001250| 61 72 67 73 20 29 3b 0d | 0d 09 43 6f 70 79 43 53 |args );.|..CopyCS|
|00001260| 74 72 69 6e 67 54 6f 50 | 61 73 63 61 6c 28 20 74 |tringToP|ascal( t|
|00001270| 62 75 66 2c 20 28 53 74 | 72 69 6e 67 50 74 72 29 |buf, (St|ringPtr)|
|00001280| 74 62 75 66 20 29 3b 0d | 0d 09 69 66 20 28 67 2e |tbuf );.|..if (g.|
|00001290| 61 70 70 65 61 72 61 6e | 63 65 41 76 61 69 6c 61 |appearan|ceAvaila|
|000012a0| 62 6c 65 29 0d 09 7b 0d | 09 09 41 6c 65 72 74 53 |ble)..{.|..AlertS|
|000012b0| 74 64 41 6c 65 72 74 50 | 61 72 61 6d 52 65 63 20 |tdAlertP|aramRec |
|000012c0| 70 61 72 61 6d 73 3b 0d | 0d 09 09 73 77 69 74 63 |params;.|...switc|
|000012d0| 68 20 28 73 65 76 65 72 | 69 74 79 29 0d 09 09 7b |h (sever|ity)...{|
|000012e0| 0d 09 09 63 61 73 65 20 | 45 53 5f 4e 6f 74 65 3a |...case |ES_Note:|
|000012f0| 0d 09 09 09 69 6e 41 6c | 65 72 74 54 79 70 65 20 |....inAl|ertType |
|00001300| 20 3d 20 6b 41 6c 65 72 | 74 4e 6f 74 65 41 6c 65 | = kAler|tNoteAle|
|00001310| 72 74 3b 0d 09 09 09 62 | 72 65 61 6b 3b 0d 0d 09 |rt;....b|reak;...|
|00001320| 09 63 61 73 65 20 45 53 | 5f 43 61 75 74 69 6f 6e |.case ES|_Caution|
|00001330| 3a 0d 09 09 09 69 6e 41 | 6c 65 72 74 54 79 70 65 |:....inA|lertType|
|00001340| 20 20 3d 20 6b 41 6c 65 | 72 74 43 61 75 74 69 6f | = kAle|rtCautio|
|00001350| 6e 41 6c 65 72 74 3b 0d | 09 09 09 62 72 65 61 6b |nAlert;.|...break|
|00001360| 3b 0d 0d 09 09 63 61 73 | 65 20 45 53 5f 53 74 6f |;....cas|e ES_Sto|
|00001370| 70 3a 0d 09 09 63 61 73 | 65 20 45 53 5f 46 61 74 |p:...cas|e ES_Fat|
|00001380| 61 6c 3a 0d 09 09 09 69 | 6e 41 6c 65 72 74 54 79 |al:....i|nAlertTy|
|00001390| 70 65 20 20 3d 20 6b 41 | 6c 65 72 74 53 74 6f 70 |pe = kA|lertStop|
|000013a0| 41 6c 65 72 74 3b 0d 09 | 09 09 62 72 65 61 6b 3b |Alert;..|..break;|
|000013b0| 0d 09 09 7d 0d 0d 09 09 | 2f 2f 4c 52 20 31 38 30 |...}....|//LR 180|
|000013c0| 20 2d 2d 20 49 20 77 61 | 6e 74 20 61 6c 65 72 74 | -- I wa|nt alert|
|000013d0| 73 20 74 6f 20 62 65 6c | 6f 6e 67 20 74 6f 20 74 |s to bel|ong to t|
|000013e0| 68 65 20 65 72 72 6f 72 | 20 77 69 6e 64 6f 77 21 |he error| window!|
|000013f0| 0d 09 09 6d 65 6d 73 65 | 74 28 20 26 70 61 72 61 |...memse|t( ¶|
|00001400| 6d 73 2c 20 30 2c 20 73 | 69 7a 65 6f 66 28 70 61 |ms, 0, s|izeof(pa|
|00001410| 72 61 6d 73 29 20 29 3b | 0d 09 09 70 61 72 61 6d |rams) );|...param|
|00001420| 73 2e 64 65 66 61 75 6c | 74 54 65 78 74 20 3d 20 |s.defaul|tText = |
|00001430| 22 5c 70 42 75 6d 6d 65 | 72 21 22 3b 0d 09 09 70 |"\pBumme|r!";...p|
|00001440| 61 72 61 6d 73 2e 64 65 | 66 61 75 6c 74 42 75 74 |arams.de|faultBut|
|00001450| 74 6f 6e 20 3d 20 6f 6b | 3b 0d 09 09 70 61 72 61 |ton = ok|;...para|
|00001460| 6d 73 2e 70 6f 73 69 74 | 69 6f 6e 20 3d 20 6b 57 |ms.posit|ion = kW|
|00001470| 69 6e 64 6f 77 41 6c 65 | 72 74 50 6f 73 69 74 69 |indowAle|rtPositi|
|00001480| 6f 6e 50 61 72 65 6e 74 | 57 69 6e 64 6f 77 3b 0d |onParent|Window;.|
|00001490| 09 09 0d 09 09 53 74 61 | 6e 64 61 72 64 41 6c 65 |.....Sta|ndardAle|
|000014a0| 72 74 28 20 69 6e 41 6c | 65 72 74 54 79 70 65 2c |rt( inAl|ertType,|
|000014b0| 20 28 53 74 72 69 6e 67 | 50 74 72 29 74 62 75 66 | (String|Ptr)tbuf|
|000014c0| 2c 20 4e 55 4c 4c 2c 20 | 26 70 61 72 61 6d 73 2c |, NULL, |¶ms,|
|000014d0| 20 26 69 74 65 6d 48 69 | 74 20 29 3b 0d 09 7d 0d | &itemHi|t );..}.|
|000014e0| 09 65 6c 73 65 0d 09 7b | 0d 09 09 50 61 72 61 6d |.else..{|...Param|
|000014f0| 54 65 78 74 28 20 28 53 | 74 72 69 6e 67 50 74 72 |Text( (S|tringPtr|
|00001500| 29 20 74 62 75 66 2c 20 | 4e 55 4c 4c 2c 20 4e 55 |) tbuf, |NULL, NU|
|00001510| 4c 4c 2c 20 4e 55 4c 4c | 20 29 3b 0d 09 09 49 6e |LL, NULL| );...In|
|00001520| 69 74 43 75 72 73 6f 72 | 28 29 3b 0d 09 09 73 77 |itCursor|();...sw|
|00001530| 69 74 63 68 28 20 73 65 | 76 65 72 69 74 79 20 29 |itch( se|verity )|
|00001540| 0d 09 09 7b 0d 09 09 63 | 61 73 65 20 45 53 5f 4e |...{...c|ase ES_N|
|00001550| 6f 74 65 3a 0d 09 09 09 | 69 74 65 6d 48 69 74 20 |ote:....|itemHit |
|00001560| 3d 20 4e 6f 74 65 41 6c | 65 72 74 28 20 61 6c 65 |= NoteAl|ert( ale|
|00001570| 72 74 45 72 72 6f 72 2c | 20 4e 55 4c 4c 20 29 3b |rtError,| NULL );|
|00001580| 0d 09 09 09 62 72 65 61 | 6b 3b 0d 09 09 09 0d 09 |....brea|k;......|
|00001590| 09 63 61 73 65 20 45 53 | 5f 43 61 75 74 69 6f 6e |.case ES|_Caution|
|000015a0| 3a 0d 09 09 09 69 74 65 | 6d 48 69 74 20 3d 20 43 |:....ite|mHit = C|
|000015b0| 61 75 74 69 6f 6e 41 6c | 65 72 74 28 20 61 6c 65 |autionAl|ert( ale|
|000015c0| 72 74 45 72 72 6f 72 2c | 20 4e 55 4c 4c 20 29 3b |rtError,| NULL );|
|000015d0| 0d 09 09 09 62 72 65 61 | 6b 3b 0d 0d 09 09 63 61 |....brea|k;....ca|
|000015e0| 73 65 20 45 53 5f 53 74 | 6f 70 3a 0d 09 09 63 61 |se ES_St|op:...ca|
|000015f0| 73 65 20 45 53 5f 46 61 | 74 61 6c 3a 0d 09 09 09 |se ES_Fa|tal:....|
|00001600| 69 74 65 6d 48 69 74 20 | 3d 20 53 74 6f 70 41 6c |itemHit |= StopAl|
|00001610| 65 72 74 28 20 61 6c 65 | 72 74 45 72 72 6f 72 2c |ert( ale|rtError,|
|00001620| 20 4e 55 4c 4c 20 29 3b | 0d 09 09 09 62 72 65 61 | NULL );|....brea|
|00001630| 6b 3b 0d 09 09 7d 0d 09 | 7d 0d 0d 09 2f 2f 20 4c |k;...}..|}...// L|
|00001640| 52 3a 20 76 31 2e 36 2e | 35 2c 20 2d 2d 20 4e 6f |R: v1.6.|5, -- No|
|00001650| 20 22 44 65 62 75 67 22 | 20 62 75 74 74 6f 6e 73 | "Debug"| buttons|
|00001660| 2c 20 62 75 74 20 4f 50 | 54 49 4f 4e 20 6f 6e 20 |, but OP|TION on |
|00001670| 61 6e 79 20 67 6f 65 73 | 20 69 6e 74 6f 20 64 65 |any goes| into de|
|00001680| 62 75 67 67 65 72 20 6e | 6f 77 21 0d 09 7b 0d 09 |bugger n|ow!..{..|
|00001690| 09 4b 65 79 4d 61 70 20 | 6b 65 79 73 3b 0d 0d 09 |.KeyMap |keys;...|
|000016a0| 09 47 65 74 4b 65 79 73 | 28 20 6b 65 79 73 20 29 |.GetKeys|( keys )|
|000016b0| 3b 0d 09 09 69 66 28 20 | 6b 65 79 73 5b 31 5d 20 |;...if( |keys[1] |
|000016c0| 26 20 28 31 3c 3c 32 29 | 20 29 0d 0d 2f 2f 20 30 |& (1<<2)| )..// 0|
|000016d0| 35 2f 31 30 2f 30 31 20 | 2d 20 47 41 42 3a 20 44 |5/10/01 |- GAB: D|
|000016e0| 45 42 55 47 53 54 52 20 | 6e 6f 74 20 64 65 66 69 |EBUGSTR |not defi|
|000016f0| 6e 65 64 20 66 6f 72 20 | 6e 6f 6e 2d 43 61 72 62 |ned for |non-Carb|
|00001700| 6f 6e 20 62 75 69 6c 64 | 73 0d 23 69 66 20 5f 5f |on build|s.#if __|
|00001710| 4d 57 45 52 4b 53 5f 5f | 20 26 26 20 54 41 52 47 |MWERKS__| && TARG|
|00001720| 45 54 5f 41 50 49 5f 4d | 41 43 5f 43 41 52 42 4f |ET_API_M|AC_CARBO|
|00001730| 4e 0d 09 09 09 64 65 62 | 75 67 5f 73 74 72 69 6e |N....deb|ug_strin|
|00001740| 67 28 20 28 53 74 72 69 | 6e 67 50 74 72 29 20 74 |g( (Stri|ngPtr) t|
|00001750| 62 75 66 20 29 3b 09 2f | 2f 4c 52 20 2d 2d 20 31 |buf );./|/LR -- 1|
|00001760| 2e 37 36 20 44 45 42 55 | 47 53 54 52 20 69 73 20 |.76 DEBU|GSTR is |
|00001770| 6f 75 74 2c 20 74 68 69 | 73 20 69 73 20 6e 6f 77 |out, thi|s is now|
|00001780| 20 69 6e 2e 20 53 69 67 | 68 2e 0d 2f 2f 09 09 09 | in. Sig|h..//...|
|00001790| 44 45 42 55 47 53 54 52 | 28 20 28 53 74 72 69 6e |DEBUGSTR|( (Strin|
|000017a0| 67 50 74 72 29 20 74 62 | 75 66 20 29 3b 0d 23 65 |gPtr) tb|uf );.#e|
|000017b0| 6c 73 65 0d 09 09 09 44 | 65 62 75 67 53 74 72 28 |lse....D|ebugStr(|
|000017c0| 20 28 53 74 72 69 6e 67 | 50 74 72 29 20 74 62 75 | (String|Ptr) tbu|
|000017d0| 66 20 29 3b 0d 23 65 6e | 64 69 66 0d 09 7d 0d 0d |f );.#en|dif..}..|
|000017e0| 09 69 66 28 20 20 73 65 | 76 65 72 69 74 79 20 3d |.if( se|verity =|
|000017f0| 3d 20 45 53 5f 46 61 74 | 61 6c 20 29 0d 09 09 45 |= ES_Fat|al )...E|
|00001800| 78 69 74 54 6f 53 68 65 | 6c 6c 28 29 3b 0d 09 0d |xitToShe|ll();...|
|00001810| 09 72 65 74 75 72 6e 20 | 69 74 65 6d 48 69 74 3b |.return |itemHit;|
|00001820| 0d 7d 0d 0d 2f 2a 2a 2a | 20 4f 53 20 45 52 52 4f |.}../***| OS ERRO|
|00001830| 52 20 41 4c 45 52 54 20 | 2a 2a 2a 2f 0d 2f 2a 20 |R ALERT |***/./* |
|00001840| 4c 52 3a 20 76 31 2e 36 | 2e 35 2c 20 72 65 6d 6f |LR: v1.6|.5, remo|
|00001850| 76 65 64 20 64 75 65 20 | 74 6f 20 72 65 64 75 6e |ved due |to redun|
|00001860| 64 61 6e 63 79 20 61 6e | 64 20 6c 6f 63 61 6c 69 |dancy an|d locali|
|00001870| 7a 61 74 69 6f 6e 0d 73 | 68 6f 72 74 20 4f 53 45 |zation.s|hort OSE|
|00001880| 72 72 6f 72 41 6c 65 72 | 74 28 20 73 68 6f 72 74 |rrorAler|t( short|
|00001890| 20 73 65 76 65 72 69 74 | 79 2c 20 73 68 6f 72 74 | severit|y, short|
|000018a0| 20 73 74 72 69 64 2c 20 | 73 68 6f 72 74 20 65 72 | strid, |short er|
|000018b0| 72 6f 72 20 29 0d 7b 0d | 09 53 74 72 32 35 35 20 |ror ).{.|.Str255 |
|000018c0| 73 31 2c 20 73 32 3b 0d | 0d 0d 09 47 65 74 49 6e |s1, s2;.|...GetIn|
|000018d0| 64 53 74 72 69 6e 67 28 | 20 73 2c 20 73 74 72 45 |dString(| s, strE|
|000018e0| 72 72 6f 72 2c 20 65 72 | 72 4f 53 20 29 3b 0d 09 |rror, er|rOS );..|
|000018f0| 72 65 74 75 72 6e 20 45 | 72 72 6f 72 41 6c 65 72 |return E|rrorAler|
|00001900| 74 28 20 73 65 76 65 72 | 69 74 79 2c 20 73 2c 20 |t( sever|ity, s, |
|00001910| 73 74 72 69 64 2c 20 65 | 72 72 6f 72 20 29 3b 0d |strid, e|rror );.|
|00001920| 7d 0d 2a 2f 0d 0d 2f 2a | 2a 2a 20 4d 59 20 52 41 |}.*/../*|** MY RA|
|00001930| 4e 44 4f 4d 20 2a 2a 2a | 2f 0d 73 68 6f 72 74 20 |NDOM ***|/.short |
|00001940| 4d 79 52 61 6e 64 6f 6d | 28 20 73 68 6f 72 74 20 |MyRandom|( short |
|00001950| 6c 69 6d 69 74 20 29 0d | 7b 0d 2f 2a 0d 09 75 6e |limit ).|{./*..un|
|00001960| 73 69 67 6e 65 64 20 6c | 6f 6e 67 20 72 3b 0d 09 |signed l|ong r;..|
|00001970| 72 20 3d 20 28 20 75 6e | 73 69 67 6e 65 64 20 29 |r = ( un|signed )|
|00001980| 20 52 61 6e 64 6f 6d 28 | 29 3b 0d 09 72 20 3d 20 | Random(|);..r = |
|00001990| 28 20 72 2a 20 28 6c 6f | 6e 67 29 20 6c 69 6d 69 |( r* (lo|ng) limi|
|000019a0| 74 20 29 2f 36 35 35 33 | 36 4c 3b 0d 09 72 65 74 |t )/6553|6L;..ret|
|000019b0| 75 72 6e 20 28 73 68 6f | 72 74 29 20 72 3b 0d 2a |urn (sho|rt) r;.*|
|000019c0| 2f 0d 09 72 65 74 75 72 | 6e 20 52 61 6e 64 6f 6d |/..retur|n Random|
|000019d0| 28 29 20 25 20 6c 69 6d | 69 74 3b 0d 7d 0d 0d 2f |() % lim|it;.}../|
|000019e0| 2a 2a 2a 20 4d 59 20 53 | 45 54 20 43 55 52 53 4f |*** MY S|ET CURSO|
|000019f0| 52 20 2a 2a 2a 2f 0d 76 | 6f 69 64 20 4d 79 53 65 |R ***/.v|oid MySe|
|00001a00| 74 43 75 72 73 6f 72 28 | 20 73 68 6f 72 74 20 6e |tCursor(| short n|
|00001a10| 20 29 0d 7b 0d 09 73 74 | 61 74 69 63 20 73 68 6f | ).{..st|atic sho|
|00001a20| 72 74 20 6c 61 73 74 4e | 3d 2d 31 3b 0d 09 69 66 |rt lastN|=-1;..if|
|00001a30| 28 20 6e 20 21 3d 20 6c | 61 73 74 4e 20 29 0d 09 |( n != l|astN )..|
|00001a40| 7b 0d 09 09 6c 61 73 74 | 4e 20 3d 20 6e 3b 0d 09 |{...last|N = n;..|
|00001a50| 09 73 77 69 74 63 68 28 | 20 6e 20 29 0d 09 09 7b |.switch(| n )...{|
|00001a60| 0d 23 69 66 20 54 41 52 | 47 45 54 5f 41 50 49 5f |.#if TAR|GET_API_|
|00001a70| 4d 41 43 5f 43 41 52 42 | 4f 4e 0d 09 09 09 63 61 |MAC_CARB|ON....ca|
|00001a80| 73 65 20 43 5f 41 72 72 | 6f 77 3a 0d 09 09 09 7b |se C_Arr|ow:....{|
|00001a90| 0d 09 09 09 09 43 75 72 | 73 6f 72 20 61 72 72 6f |.....Cur|sor arro|
|00001aa0| 77 3b 0d 0d 09 09 09 09 | 47 65 74 51 44 47 6c 6f |w;......|GetQDGlo|
|00001ab0| 62 61 6c 73 41 72 72 6f | 77 28 20 26 61 72 72 6f |balsArro|w( &arro|
|00001ac0| 77 20 29 3b 0d 09 09 09 | 09 53 65 74 43 75 72 73 |w );....|.SetCurs|
|00001ad0| 6f 72 28 20 26 61 72 72 | 6f 77 20 29 3b 0d 09 09 |or( &arr|ow );...|
|00001ae0| 09 09 62 72 65 61 6b 3b | 0d 09 09 09 7d 0d 23 65 |..break;|....}.#e|
|00001af0| 6c 73 65 0d 09 09 09 63 | 61 73 65 20 43 5f 41 72 |lse....c|ase C_Ar|
|00001b00| 72 6f 77 3a 09 53 65 74 | 43 75 72 73 6f 72 28 20 |row:.Set|Cursor( |
|00001b10| 26 71 64 2e 61 72 72 6f | 77 20 29 3b 09 09 62 72 |&qd.arro|w );..br|
|00001b20| 65 61 6b 3b 09 2f 2f 20 | 4c 52 3a 20 71 64 2e 0d |eak;.// |LR: qd..|
|00001b30| 23 65 6e 64 69 66 0d 09 | 09 09 2f 2f 20 4e 53 3a |#endif..|..// NS:|
|00001b40| 20 76 31 2e 35 2c 20 63 | 68 61 6e 67 65 64 20 43 | v1.5, c|hanged C|
|00001b50| 75 72 73 20 74 6f 20 43 | 75 72 73 48 61 6e 64 6c |urs to C|ursHandl|
|00001b60| 65 0d 09 09 09 63 61 73 | 65 20 43 5f 57 61 74 63 |e....cas|e C_Watc|
|00001b70| 68 3a 09 53 65 74 43 75 | 72 73 6f 72 28 20 2a 67 |h:.SetCu|rsor( *g|
|00001b80| 2e 77 61 74 63 68 20 29 | 3b 09 09 62 72 65 61 6b |.watch )|;..break|
|00001b90| 3b 0d 09 09 09 63 61 73 | 65 20 43 5f 49 42 65 61 |;....cas|e C_IBea|
|00001ba0| 6d 3a 09 53 65 74 43 75 | 72 73 6f 72 28 20 2a 67 |m:.SetCu|rsor( *g|
|00001bb0| 2e 69 42 65 61 6d 20 29 | 3b 09 09 62 72 65 61 6b |.iBeam )|;..break|
|00001bc0| 3b 0d 09 09 7d 0d 09 7d | 0d 7d 0d 0d 2f 2f 23 69 |;...}..}|.}..//#i|
|00001bd0| 66 20 66 61 6c 73 65 09 | 2f 2f 20 4e 53 3a 20 76 |f false.|// NS: v|
|00001be0| 31 2e 36 2e 36 2c 20 6e | 6f 77 20 69 6e 20 43 61 |1.6.6, n|ow in Ca|
|00001bf0| 72 62 6f 6e 41 63 63 65 | 73 73 6f 72 73 2e 6f 09 |rbonAcce|ssors.o.|
|00001c00| 09 09 21 54 41 52 47 45 | 54 5f 41 50 49 5f 4d 41 |..!TARGE|T_API_MA|
|00001c10| 43 5f 43 41 52 42 4f 4e | 0d 23 69 66 20 21 54 41 |C_CARBON|.#if !TA|
|00001c20| 52 47 45 54 5f 41 50 49 | 5f 4d 41 43 5f 43 41 52 |RGET_API|_MAC_CAR|
|00001c30| 42 4f 4e 09 2f 2f 4c 52 | 20 2d 2d 20 6e 6f 74 20 |BON.//LR| -- not |
|00001c40| 69 66 20 79 6f 75 20 63 | 6f 6d 70 69 6c 65 20 61 |if you c|ompile a|
|00001c50| 6c 6c 20 74 68 65 20 70 | 72 6f 6a 65 63 74 73 20 |ll the p|rojects |
|00001c60| 69 74 27 73 20 6e 6f 74 | 21 21 21 0d 0d 2f 2a 2a |it's not|!!!../**|
|00001c70| 2a 20 43 4f 50 59 20 50 | 41 53 43 41 4c 20 53 54 |* COPY P|ASCAL ST|
|00001c80| 52 49 4e 47 20 54 4f 20 | 43 20 2a 2a 2a 2f 0d 76 |RING TO |C ***/.v|
|00001c90| 6f 69 64 20 43 6f 70 79 | 50 61 73 63 61 6c 53 74 |oid Copy|PascalSt|
|00001ca0| 72 69 6e 67 54 6f 43 28 | 20 43 6f 6e 73 74 53 74 |ringToC(| ConstSt|
|00001cb0| 72 32 35 35 50 61 72 61 | 6d 20 73 6f 75 72 63 65 |r255Para|m source|
|00001cc0| 2c 20 63 68 61 72 2a 20 | 64 65 73 74 20 29 0d 7b |, char* |dest ).{|
|00001cd0| 0d 09 69 66 28 20 73 6f | 75 72 63 65 20 21 3d 20 |..if( so|urce != |
|00001ce0| 4e 55 4c 4c 20 29 0d 09 | 7b 0d 09 09 53 49 6e 74 |NULL )..|{...SInt|
|00001cf0| 31 36 20 6c 65 6e 67 74 | 68 20 20 3d 20 2a 73 6f |16 lengt|h = *so|
|00001d00| 75 72 63 65 2b 2b 3b 0d | 09 09 77 68 69 6c 65 20 |urce++;.|..while |
|00001d10| 28 6c 65 6e 67 74 68 20 | 3e 20 30 29 20 0d 09 09 |(length |> 0) ...|
|00001d20| 7b 0d 09 09 09 2a 64 65 | 73 74 2b 2b 20 3d 20 2a |{....*de|st++ = *|
|00001d30| 28 63 68 61 72 2a 29 20 | 73 6f 75 72 63 65 2b 2b |(char*) |source++|
|00001d40| 3b 0d 09 09 09 2d 2d 6c | 65 6e 67 74 68 3b 0d 09 |;....--l|ength;..|
|00001d50| 09 7d 0d 09 7d 0d 09 2a | 64 65 73 74 20 3d 20 27 |.}..}..*|dest = '|
|00001d60| 5c 30 27 3b 0d 7d 0d 0d | 2f 2f 20 09 43 6f 70 79 |\0';.}..|// .Copy|
|00001d70| 43 53 74 72 69 6e 67 54 | 6f 50 61 73 63 61 6c 20 |CStringT|oPascal |
|00001d80| 63 6f 6e 76 65 72 74 73 | 20 74 68 65 20 73 6f 75 |converts| the sou|
|00001d90| 72 63 65 20 43 20 73 74 | 72 69 6e 67 20 74 6f 20 |rce C st|ring to |
|00001da0| 61 20 64 65 73 74 69 6e | 61 74 69 6f 6e 0d 2f 2f |a destin|ation.//|
|00001db0| 20 09 70 61 73 63 61 6c | 20 73 74 72 69 6e 67 20 | .pascal| string |
|00001dc0| 61 73 20 69 74 20 63 6f | 70 69 65 73 2e 20 54 68 |as it co|pies. Th|
|00001dd0| 65 20 64 65 73 74 20 73 | 74 72 69 6e 67 20 77 69 |e dest s|tring wi|
|00001de0| 6c 6c 0d 2f 2f 20 09 62 | 65 20 74 72 75 6e 63 61 |ll.// .b|e trunca|
|00001df0| 74 65 64 20 74 6f 20 66 | 69 74 20 69 6e 74 6f 20 |ted to f|it into |
|00001e00| 61 6e 20 53 74 72 32 35 | 35 20 69 66 20 6e 65 63 |an Str25|5 if nec|
|00001e10| 65 73 73 61 72 79 2e 0d | 2f 2f 20 20 49 66 20 74 |essary..|// If t|
|00001e20| 68 65 20 43 20 53 74 72 | 69 6e 67 20 70 6f 69 6e |he C Str|ing poin|
|00001e30| 74 65 72 20 69 73 20 4e | 55 4c 4c 2c 74 68 65 20 |ter is N|ULL,the |
|00001e40| 70 61 73 63 61 6c 20 73 | 74 72 69 6e 67 27 73 20 |pascal s|tring's |
|00001e50| 6c 65 6e 67 74 68 20 69 | 73 20 73 65 74 20 74 6f |length i|s set to|
|00001e60| 20 7a 65 72 6f 0d 0d 2f | 2a 2a 2a 20 43 4f 50 59 | zero../|*** COPY|
|00001e70| 20 43 20 53 54 52 49 4e | 47 20 54 4f 20 50 41 53 | C STRIN|G TO PAS|
|00001e80| 43 41 4c 20 2a 2a 2a 2f | 0d 76 6f 69 64 20 43 6f |CAL ***/|.void Co|
|00001e90| 70 79 43 53 74 72 69 6e | 67 54 6f 50 61 73 63 61 |pyCStrin|gToPasca|
|00001ea0| 6c 28 20 63 6f 6e 73 74 | 20 63 68 61 72 2a 20 73 |l( const| char* s|
|00001eb0| 6f 75 72 63 65 2c 20 53 | 74 72 32 35 35 20 64 65 |ource, S|tr255 de|
|00001ec0| 73 74 20 29 0d 7b 0d 09 | 53 49 6e 74 31 36 20 09 |st ).{..|SInt16 .|
|00001ed0| 6c 65 6e 67 74 68 20 20 | 3d 20 30 3b 0d 09 0d 09 |length |= 0;....|
|00001ee0| 2f 2f 20 68 61 6e 64 6c | 65 20 63 61 73 65 20 6f |// handl|e case o|
|00001ef0| 66 20 6f 76 65 72 6c 61 | 70 70 69 6e 67 20 73 74 |f overla|pping st|
|00001f00| 72 69 6e 67 73 0d 09 69 | 66 28 20 28 76 6f 69 64 |rings..i|f( (void|
|00001f10| 2a 29 20 73 6f 75 72 63 | 65 20 3d 3d 20 28 76 6f |*) sourc|e == (vo|
|00001f20| 69 64 2a 29 20 64 65 73 | 74 29 0d 09 7b 0d 09 09 |id*) des|t)..{...|
|00001f30| 75 6e 73 69 67 6e 65 64 | 20 63 68 61 72 2a 09 09 |unsigned| char*..|
|00001f40| 63 75 72 64 73 74 20 3d | 20 26 64 65 73 74 5b 31 |curdst =| &dest[1|
|00001f50| 5d 3b 0d 09 09 75 6e 73 | 69 67 6e 65 64 20 63 68 |];...uns|igned ch|
|00001f60| 61 72 09 09 74 68 69 73 | 43 68 61 72 3b 0d 09 09 |ar..this|Char;...|
|00001f70| 09 09 0d 09 09 74 68 69 | 73 43 68 61 72 20 3d 20 |.....thi|sChar = |
|00001f80| 2a 28 63 6f 6e 73 74 20 | 75 6e 73 69 67 6e 65 64 |*(const |unsigned|
|00001f90| 20 63 68 61 72 2a 29 20 | 73 6f 75 72 63 65 2b 2b | char*) |source++|
|00001fa0| 3b 0d 09 09 77 68 69 6c | 65 20 28 74 68 69 73 43 |;...whil|e (thisC|
|00001fb0| 68 61 72 20 21 3d 20 27 | 5c 30 27 29 20 0d 09 09 |har != '|\0') ...|
|00001fc0| 7b 0d 09 09 09 75 6e 73 | 69 67 6e 65 64 20 63 68 |{....uns|igned ch|
|00001fd0| 61 72 20 6e 65 78 74 43 | 68 61 72 3b 0d 09 09 09 |ar nextC|har;....|
|00001fe0| 0d 09 09 09 2f 2f 20 75 | 73 65 20 6e 65 78 74 43 |....// u|se nextC|
|00001ff0| 68 61 72 20 73 6f 20 77 | 65 20 64 6f 6e 27 74 20 |har so w|e don't |
|00002000| 6f 76 65 72 77 72 69 74 | 65 20 77 68 61 74 20 77 |overwrit|e what w|
|00002010| 65 20 61 72 65 20 61 62 | 6f 75 74 20 74 6f 20 72 |e are ab|out to r|
|00002020| 65 61 64 0d 09 09 09 6e | 65 78 74 43 68 61 72 20 |ead....n|extChar |
|00002030| 3d 20 2a 28 63 6f 6e 73 | 74 20 75 6e 73 69 67 6e |= *(cons|t unsign|
|00002040| 65 64 20 63 68 61 72 2a | 29 20 73 6f 75 72 63 65 |ed char*|) source|
|00002050| 2b 2b 3b 0d 09 09 09 2a | 63 75 72 64 73 74 2b 2b |++;....*|curdst++|
|00002060| 20 3d 20 74 68 69 73 43 | 68 61 72 3b 0d 09 09 09 | = thisC|har;....|
|00002070| 74 68 69 73 43 68 61 72 | 20 3d 20 6e 65 78 74 43 |thisChar| = nextC|
|00002080| 68 61 72 3b 0d 09 09 09 | 0d 09 09 09 69 66 20 28 |har;....|....if (|
|00002090| 2b 2b 6c 65 6e 67 74 68 | 20 3e 3d 20 32 35 35 29 |++length| >= 255)|
|000020a0| 0d 09 09 09 09 62 72 65 | 61 6b 3b 0d 09 09 7d 0d |.....bre|ak;...}.|
|000020b0| 09 7d 0d 09 65 6c 73 65 | 20 69 66 20 28 73 6f 75 |.}..else| if (sou|
|000020c0| 72 63 65 20 21 3d 20 4e | 55 4c 4c 29 0d 09 7b 0d |rce != N|ULL)..{.|
|000020d0| 09 09 75 6e 73 69 67 6e | 65 64 20 63 68 61 72 2a |..unsign|ed char*|
|000020e0| 09 09 63 75 72 64 73 74 | 20 3d 20 26 64 65 73 74 |..curdst| = &dest|
|000020f0| 5b 31 5d 3b 0d 09 09 53 | 49 6e 74 31 36 20 09 09 |[1];...S|Int16 ..|
|00002100| 09 09 6f 76 65 72 66 6c | 6f 77 20 3d 20 32 35 35 |..overfl|ow = 255|
|00002110| 3b 09 09 2f 2f 20 63 6f | 75 6e 74 20 64 6f 77 6e |;..// co|unt down|
|00002120| 20 73 6f 20 74 65 73 74 | 20 69 74 20 6c 6f 6f 70 | so test| it loop|
|00002130| 20 69 73 20 66 61 73 74 | 65 72 0d 09 09 72 65 67 | is fast|er...reg|
|00002140| 69 73 74 65 72 20 63 68 | 61 72 09 09 74 65 6d 70 |ister ch|ar..temp|
|00002150| 3b 0d 09 0d 09 09 2f 2f | 20 43 61 6e 27 74 20 64 |;.....//| Can't d|
|00002160| 6f 20 74 68 65 20 4b 26 | 52 20 43 20 74 68 69 6e |o the K&|R C thin|
|00002170| 67 20 6f 66 20 d2 77 68 | 69 6c 65 20 28 2a 73 2b |g of .wh|ile (*s+|
|00002180| 2b 20 3d 20 2a 74 2b 2b | 29 d3 20 62 65 63 61 75 |+ = *t++|). becau|
|00002190| 73 65 20 69 74 20 77 69 | 6c 6c 20 63 6f 70 79 20 |se it wi|ll copy |
|000021a0| 74 72 61 69 6c 69 6e 67 | 20 7a 65 72 6f 0d 09 09 |trailing| zero...|
|000021b0| 2f 2f 20 77 68 69 63 68 | 20 6d 69 67 68 74 20 6f |// which| might o|
|000021c0| 76 65 72 72 75 6e 20 70 | 61 73 63 61 6c 20 62 75 |verrun p|ascal bu|
|000021d0| 66 66 65 72 2e 20 20 49 | 6e 73 74 65 61 64 20 77 |ffer. I|nstead w|
|000021e0| 65 20 75 73 65 20 61 20 | 74 65 6d 70 20 76 61 72 |e use a |temp var|
|000021f0| 69 61 62 6c 65 2e 0d 09 | 09 77 68 69 6c 65 28 20 |iable...|.while( |
|00002200| 28 74 65 6d 70 20 3d 20 | 2a 73 6f 75 72 63 65 2b |(temp = |*source+|
|00002210| 2b 29 20 21 3d 20 30 20 | 29 20 0d 09 09 7b 0d 09 |+) != 0 |) ...{..|
|00002220| 09 09 2a 28 63 68 61 72 | 2a 29 20 63 75 72 64 73 |..*(char|*) curds|
|00002230| 74 2b 2b 20 3d 20 74 65 | 6d 70 3b 0d 09 09 09 09 |t++ = te|mp;.....|
|00002240| 0d 09 09 09 69 66 20 28 | 2d 2d 6f 76 65 72 66 6c |....if (|--overfl|
|00002250| 6f 77 20 3c 3d 20 30 29 | 0d 09 09 09 09 62 72 65 |ow <= 0)|.....bre|
|00002260| 61 6b 3b 0d 09 09 7d 0d | 09 09 6c 65 6e 67 74 68 |ak;...}.|..length|
|00002270| 20 3d 20 32 35 35 20 2d | 20 6f 76 65 72 66 6c 6f | = 255 -| overflo|
|00002280| 77 3b 0d 09 7d 0d 09 64 | 65 73 74 5b 30 5d 20 3d |w;..}..d|est[0] =|
|00002290| 20 6c 65 6e 67 74 68 3b | 0d 7d 0d 0d 23 65 6e 64 | length;|.}..#end|
|000022a0| 69 66 0d 0d 2f 2a 2a 2a | 20 45 51 55 41 4c 20 50 |if../***| EQUAL P|
|000022b0| 41 53 43 41 4c 20 53 54 | 52 49 4e 47 53 20 2a 2a |ASCAL ST|RINGS **|
|000022c0| 2a 2f 0d 42 6f 6f 6c 65 | 61 6e 20 45 71 75 61 6c |*/.Boole|an Equal|
|000022d0| 50 53 74 72 69 6e 67 73 | 28 20 55 49 6e 74 38 20 |PStrings|( UInt8 |
|000022e0| 2a 73 6f 75 72 63 65 2c | 20 55 49 6e 74 38 20 2a |*source,| UInt8 *|
|000022f0| 64 65 73 74 20 29 0d 7b | 0d 09 55 49 6e 74 38 20 |dest ).{|..UInt8 |
|00002300| 6c 65 6e 67 74 68 20 3d | 20 2a 73 6f 75 72 63 65 |length =| *source|
|00002310| 2c 20 63 6f 75 6e 74 3b | 0d 09 66 6f 72 28 20 63 |, count;|..for( c|
|00002320| 6f 75 6e 74 20 3d 20 30 | 3b 20 63 6f 75 6e 74 20 |ount = 0|; count |
|00002330| 3c 3d 20 6c 65 6e 67 74 | 68 3b 20 63 6f 75 6e 74 |<= lengt|h; count|
|00002340| 2b 2b 20 29 0d 09 09 69 | 66 28 20 2a 73 6f 75 72 |++ )...i|f( *sour|
|00002350| 63 65 2b 2b 20 21 3d 20 | 2a 64 65 73 74 2b 2b 20 |ce++ != |*dest++ |
|00002360| 29 20 72 65 74 75 72 6e | 20 66 61 6c 73 65 3b 0d |) return| false;.|
|00002370| 09 72 65 74 75 72 6e 20 | 74 72 75 65 3b 0d 7d 0d |.return |true;.}.|
|00002380| 0d 23 69 66 6e 64 65 66 | 20 5f 5f 4d 43 36 38 4b |.#ifndef| __MC68K|
|00002390| 5f 5f 0d 0d 2f 2a 2a 2a | 20 4c 41 55 4e 43 48 20 |__../***| LAUNCH |
|000023a0| 57 45 42 20 42 52 4f 57 | 53 45 52 20 2a 2a 2a 2f |WEB BROW|SER ***/|
|000023b0| 0d 4f 53 53 74 61 74 75 | 73 20 4c 61 75 6e 63 68 |.OSStatu|s Launch|
|000023c0| 55 52 4c 28 20 53 74 72 | 69 6e 67 50 74 72 20 75 |URL( Str|ingPtr u|
|000023d0| 72 6c 20 29 0d 7b 0d 09 | 4f 53 53 74 61 74 75 73 |rl ).{..|OSStatus|
|000023e0| 20 65 72 72 6f 72 20 3d | 20 6e 6f 45 72 72 3b 0d | error =| noErr;.|
|000023f0| 0d 09 69 66 28 20 49 43 | 4c 61 75 6e 63 68 55 52 |..if( IC|LaunchUR|
|00002400| 4c 20 29 09 2f 2f 4c 52 | 20 77 65 61 6b 20 6c 69 |L ).//LR| weak li|
|00002410| 6e 6b 65 64 21 0d 09 7b | 0d 09 09 6c 6f 6e 67 20 |nked!..{|...long |
|00002420| 73 74 61 72 74 20 3d 20 | 31 2c 20 65 6e 64 20 3d |start = |1, end =|
|00002430| 20 31 2c 20 6c 65 6e 67 | 74 68 20 3d 20 28 6c 6f | 1, leng|th = (lo|
|00002440| 6e 67 29 75 72 6c 5b 30 | 5d 3b 0d 0d 09 09 65 72 |ng)url[0|];....er|
|00002450| 72 6f 72 20 3d 20 49 43 | 4c 61 75 6e 63 68 55 52 |ror = IC|LaunchUR|
|00002460| 4c 28 20 67 2e 69 63 52 | 65 66 2c 20 4e 55 4c 4c |L( g.icR|ef, NULL|
|00002470| 2c 20 75 72 6c 2b 31 2c | 20 6c 65 6e 67 74 68 2c |, url+1,| length,|
|00002480| 20 26 73 74 61 72 74 2c | 20 26 65 6e 64 20 29 3b | &start,| &end );|
|00002490| 0d 09 7d 0d 09 72 65 74 | 75 72 6e 20 65 72 72 6f |..}..ret|urn erro|
|000024a0| 72 3b 0d 7d 0d 0d 23 65 | 6e 64 69 66 0d 00 00 00 |r;.}..#e|ndif....|
|000024b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000024c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000024d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000024e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000024f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002500| 00 00 01 00 00 00 01 9e | 00 00 00 9e 00 00 00 69 |........|.......i|
|00002510| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002520| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002530| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002540| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002550| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002560| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002570| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002580| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002590| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000025a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000025b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000025c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000025d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000025e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000025f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002600| 00 00 00 46 7d 28 2e 18 | 3f e5 32 30 00 04 00 00 |...F}(..|?.20....|
|00002610| 00 00 00 00 00 00 b9 e7 | 4c dc b9 e7 4c dc 00 00 |........|L...L...|
|00002620| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 06 72 |........|.......r|
|00002630| 61 76 69 6e 67 00 00 00 | 0b 55 74 69 6c 46 75 6e |aving...|.UtilFun|
|00002640| 63 73 2e 63 00 00 00 00 | 00 00 00 00 00 04 00 01 |cs.c....|........|
|00002650| 00 01 00 00 00 48 00 09 | 4d 6f 6e 61 63 6f 00 00 |.....H..|Monaco..|
|00002660| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002670| 00 00 00 00 00 00 00 00 | 00 03 00 04 00 30 00 04 |........|.....0..|
|00002680| 01 ca 02 7a 00 30 00 04 | 01 ca 02 7a b9 e7 4c dc |...z.0..|...z..L.|
|00002690| 00 00 00 00 00 00 00 00 | 00 00 00 00 01 00 00 00 |........|........|
|000026a0| 01 00 00 00 01 9e 00 00 | 00 9e 00 00 00 69 03 06 |........|.....i..|
|000026b0| 12 00 0d 51 00 80 00 1c | 00 5a 00 02 63 6b 69 64 |...Q....|.Z..ckid|
|000026c0| 00 00 00 1a 4d 57 42 42 | 00 00 00 26 4d 50 53 52 |....MWBB|...&MPSR|
|000026d0| 00 00 00 32 00 80 00 00 | 00 00 00 00 00 00 00 00 |...2....|........|
|000026e0| 03 f0 ff ff 00 00 00 4a | 00 00 00 00 03 ed ff ff |.......J|........|
|000026f0| 00 00 00 52 00 00 00 00 | 0e 50 72 6f 6a 65 63 74 |...R....|.Project|
|00002700| 6f 72 20 44 61 74 61 00 | 00 00 00 00 00 00 00 00 |or Data.|........|
|00002710| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002720| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002730| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002740| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002750| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002760| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002770| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
+--------+-------------------------+-------------------------+--------+--------+