home *** CD-ROM | disk | FTP | other *** search
MacBinary | 1995-04-23 | 12.4 KB | [TEXT/MPS ] |
open in:
MacOS 8.1
|
Win98
|
DOS
browse contents |
view JSON data
|
view as text
This file was processed as: MacBinary
(archive/macBinary).
Confidence | Program | Detection | Match Type | Support
|
---|
10%
| dexvert
| MacBinary (archive/macBinary)
| fallback
| Supported |
1%
| dexvert
| Text File (text/txt)
| fallback
| Supported |
100%
| file
| MacBinary II, inited, Sun Apr 23 20:03:18 1995, modified Sun Apr 23 20:03:18 1995, creator 'MPS ', type ASCII, 12007 bytes "ICAPI.h" , at 0x2f67 428 bytes resource
| default (weak)
| |
99%
| file
| data
| default
| |
74%
| TrID
| Macintosh plain text (MacBinary)
| default
| |
25%
| TrID
| MacBinary 2
| default (weak)
| |
100%
| siegfried
| fmt/1762 MacBinary (II)
| default
| |
100%
| lsar
| MacBinary
| default
|
|
id metadata |
---|
key | value |
---|
macFileType | [TEXT] |
macFileCreator | [MPS ] |
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 07 49 43 41 50 49 2e | 68 00 00 00 00 00 00 00 |..ICAPI.|h.......|
|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 4d 50 53 | 20 01 00 00 00 00 00 00 |.TEXTMPS| .......|
|00000050| 00 00 00 00 00 2e e7 00 | 00 01 ac ab c0 9b 46 ab |........|......F.|
|00000060| c0 9b 46 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |..F.....|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 cb ad 00 00 |........|........|
|00000080| 2f 2a 0d 09 49 4d 50 4f | 52 54 41 4e 54 20 4e 4f |/*..IMPO|RTANT NO|
|00000090| 54 45 53 20 41 42 4f 55 | 54 20 54 48 45 20 43 20 |TES ABOU|T THE C |
|000000a0| 43 4f 4e 56 45 52 53 49 | 4f 4e 0d 09 2d 2d 2d 2d |CONVERSI|ON..----|
|000000b0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|000000c0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|000000d0| 2d 2d 0d 09 0d 09 6f 20 | 50 61 73 63 61 6c 20 22 |--....o |Pascal "|
|000000e0| 76 61 72 22 20 70 61 72 | 61 6d 65 74 65 72 73 20 |var" par|ameters |
|000000f0| 61 72 65 20 63 6f 6e 76 | 65 72 74 65 64 20 66 72 |are conv|erted fr|
|00000100| 6f 6d 20 22 76 61 72 20 | 78 20 3a 20 79 22 20 74 |om "var |x : y" t|
|00000110| 6f 20 22 79 20 2a 78 22 | 2e 20 20 54 68 69 73 0d |o "y *x"|. This.|
|00000120| 09 20 20 6d 65 61 6e 73 | 20 74 68 61 74 20 77 68 |. means| that wh|
|00000130| 65 6e 20 79 6f 75 20 73 | 65 65 20 74 68 65 20 70 |en you s|ee the p|
|00000140| 61 72 61 6d 65 74 65 72 | 20 22 79 20 2a 78 22 20 |arameter| "y *x" |
|00000150| 79 6f 75 20 73 68 6f 75 | 6c 64 20 62 65 20 61 77 |you shou|ld be aw|
|00000160| 61 72 65 20 74 68 61 74 | 0d 09 09 09 79 6f 75 20 |are that|....you |
|00000170| 2a 63 61 6e 6e 6f 74 20 | 70 61 73 73 20 69 6e 20 |*cannot |pass in |
|00000180| 6e 69 6c 2a 2e 20 20 49 | 6e 20 66 75 74 75 72 65 |nil*. I|n future|
|00000190| 20 74 68 69 73 20 72 65 | 73 74 72 69 63 74 69 6f | this re|strictio|
|000001a0| 6e 20 6d 61 79 20 62 65 | 20 65 61 73 65 64 2c 0d |n may be| eased,.|
|000001b0| 09 09 09 65 73 70 65 63 | 69 61 6c 6c 79 20 66 6f |...espec|ially fo|
|000001c0| 72 20 74 68 65 20 61 74 | 74 72 20 70 61 72 61 6d |r the at|tr param|
|000001d0| 65 74 65 72 20 74 6f 20 | 49 43 47 65 74 50 72 65 |eter to |ICGetPre|
|000001e0| 66 2e 20 20 50 61 72 61 | 6d 65 74 65 72 73 20 77 |f. Para|meters w|
|000001f0| 68 65 72 65 20 6e 69 6c | 0d 09 09 09 69 73 20 6c |here nil|....is l|
|00000200| 65 67 61 6c 20 61 72 65 | 20 64 65 63 6c 61 72 65 |egal are| declare|
|00000210| 64 20 75 73 69 6e 67 20 | 74 68 65 20 65 78 70 6c |d using |the expl|
|00000220| 69 63 69 74 20 70 6f 69 | 6e 74 65 72 20 74 79 70 |icit poi|nter typ|
|00000230| 65 2c 20 69 65 20 22 79 | 50 74 72 20 78 22 2e 0d |e, ie "y|Ptr x"..|
|00000240| 0d 09 6f 20 53 74 72 69 | 6e 67 73 20 61 72 65 20 |..o Stri|ngs are |
|00000250| 2a 50 61 73 63 61 6c 2a | 20 73 74 72 69 6e 67 73 |*Pascal*| strings|
|00000260| 2e 20 20 54 68 69 73 20 | 6d 65 61 6e 73 20 74 68 |. This |means th|
|00000270| 61 74 20 74 68 65 79 20 | 6d 75 73 74 20 62 65 20 |at they |must be |
|00000280| 77 6f 72 64 20 61 6c 69 | 67 6e 65 64 2e 0d 09 09 |word ali|gned....|
|00000290| 4d 50 57 20 61 6e 64 20 | 54 68 69 6e 6b 20 43 20 |MPW and |Think C |
|000002a0| 64 6f 20 74 68 69 73 20 | 61 75 74 6f 6d 61 74 69 |do this |automati|
|000002b0| 63 61 6c 6c 79 2e 20 20 | 54 68 65 20 6c 61 73 74 |cally. |The last|
|000002c0| 20 74 69 6d 65 20 49 20 | 63 68 65 63 6b 2c 20 4d | time I |check, M|
|000002d0| 65 74 72 6f 77 65 72 6b | 73 0d 09 09 43 20 64 6f |etrowerk|s...C do|
|000002e0| 65 73 20 6e 6f 74 2e 20 | 20 49 66 20 69 74 20 73 |es not. | If it s|
|000002f0| 74 69 6c 6c 20 64 6f 65 | 73 6e 27 74 2c 20 74 68 |till doe|sn't, th|
|00000300| 65 6e 20 49 4d 48 4f 20 | 69 74 27 73 20 61 20 62 |en IMHO |it's a b|
|00000310| 75 67 20 69 6e 20 74 68 | 65 69 72 20 63 6f 6d 70 |ug in th|eir comp|
|00000320| 69 6c 65 72 0d 09 09 61 | 6e 64 20 79 6f 75 20 73 |iler...a|nd you s|
|00000330| 68 6f 75 6c 64 20 72 65 | 70 6f 72 74 20 69 74 20 |hould re|port it |
|00000340| 74 6f 20 74 68 65 6d 2e | 0d 0d 09 6f 20 54 68 65 |to them.|...o The|
|00000350| 20 63 61 6e 6f 6e 69 63 | 61 6c 20 49 6e 74 65 72 | canonic|al Inter|
|00000360| 6e 65 74 20 43 6f 6e 66 | 69 67 20 69 6e 74 65 72 |net Conf|ig inter|
|00000370| 66 61 63 65 20 69 73 20 | 64 65 66 69 6e 65 64 20 |face is |defined |
|00000380| 69 6e 20 50 61 73 63 61 | 6c 2e 20 20 54 68 65 73 |in Pasca|l. Thes|
|00000390| 65 0d 09 09 68 65 61 64 | 65 72 73 20 68 61 76 65 |e...head|ers have|
|000003a0| 20 6e 6f 74 20 62 65 65 | 6e 20 74 68 6f 72 6f 75 | not bee|n thorou|
|000003b0| 67 68 6c 79 20 74 65 73 | 74 65 64 2e 20 20 49 66 |ghly tes|ted. If|
|000003c0| 20 74 68 65 72 65 20 69 | 73 20 61 20 63 6f 6e 66 | there i|s a conf|
|000003d0| 6c 69 63 74 20 62 65 74 | 77 65 65 6e 0d 09 09 74 |lict bet|ween...t|
|000003e0| 68 65 73 65 20 68 65 61 | 64 65 72 73 20 61 6e 64 |hese hea|ders and|
|000003f0| 20 74 68 65 20 50 61 73 | 63 61 6c 20 69 6e 74 65 | the Pas|cal inte|
|00000400| 72 66 61 63 65 73 2c 20 | 74 68 65 20 50 61 73 63 |rfaces, |the Pasc|
|00000410| 61 6c 20 73 68 6f 75 6c | 64 20 74 61 6b 65 20 70 |al shoul|d take p|
|00000420| 72 65 63 65 64 65 6e 63 | 65 2e 0d 2a 2f 0d 0d 2f |recedenc|e..*/../|
|00000430| 2a 20 2f 2f 2f 2f 2f 2f | 2f 2f 2f 2f 2f 2f 2f 2f |* //////|////////|
|00000440| 2f 2f 2f 2f 2f 2f 2f 2f | 2f 2f 2f 2f 2f 2f 2f 2f |////////|////////|
|00000450| 2f 2f 2f 2f 2f 2f 2f 2f | 2f 2f 2f 2f 2f 2f 2f 2f |////////|////////|
|00000460| 2f 2f 2f 2f 2f 2f 2f 2f | 2f 2f 2f 2f 2f 2f 2f 2f |////////|////////|
|00000470| 2f 2f 2f 2f 2f 2f 2f 2f | 2f 2f 2f 2f 2f 2f 2f 2f |////////|////////|
|00000480| 2f 2f 2f 20 2a 2f 0d 0d | 23 69 66 6e 64 65 66 20 |/// */..|#ifndef |
|00000490| 5f 5f 49 43 41 50 49 5f | 5f 0d 23 64 65 66 69 6e |__ICAPI_|_.#defin|
|000004a0| 65 20 5f 5f 49 43 41 50 | 49 5f 5f 0d 0d 23 69 66 |e __ICAP|I__..#if|
|000004b0| 6e 64 65 66 20 5f 5f 54 | 59 50 45 53 5f 5f 0d 23 |ndef __T|YPES__.#|
|000004c0| 69 6e 63 6c 75 64 65 20 | 3c 54 79 70 65 73 2e 68 |include |<Types.h|
|000004d0| 3e 0d 23 65 6e 64 69 66 | 0d 0d 23 69 66 6e 64 65 |>.#endif|..#ifnde|
|000004e0| 66 20 5f 5f 46 49 4c 45 | 53 5f 5f 0d 23 69 6e 63 |f __FILE|S__.#inc|
|000004f0| 6c 75 64 65 20 3c 46 69 | 6c 65 73 2e 68 3e 0d 23 |lude <Fi|les.h>.#|
|00000500| 65 6e 64 69 66 0d 0d 23 | 69 66 6e 64 65 66 20 5f |endif..#|ifndef _|
|00000510| 5f 49 43 54 59 50 45 53 | 5f 5f 0d 23 69 6e 63 6c |_ICTYPES|__.#incl|
|00000520| 75 64 65 20 3c 49 43 54 | 79 70 65 73 2e 68 3e 0d |ude <ICT|ypes.h>.|
|00000530| 23 65 6e 64 69 66 0d 0d | 23 69 66 6e 64 65 66 20 |#endif..|#ifndef |
|00000540| 5f 5f 49 43 4b 45 59 53 | 5f 5f 0d 23 69 6e 63 6c |__ICKEYS|__.#incl|
|00000550| 75 64 65 20 3c 49 43 4b | 65 79 73 2e 68 3e 0d 23 |ude <ICK|eys.h>.#|
|00000560| 65 6e 64 69 66 0d 0d 2f | 2a 20 2f 2f 2f 2f 2f 2f |endif../|* //////|
|00000570| 2f 2f 2f 2f 2f 2f 2f 2f | 2f 2f 2f 2f 2f 2f 2f 2f |////////|////////|
|00000580| 2f 2f 2f 2f 2f 2f 2f 2f | 2f 2f 2f 2f 2f 2f 2f 2f |////////|////////|
|00000590| 2f 2f 2f 2f 2f 2f 2f 2f | 2f 2f 2f 2f 2f 2f 2f 2f |////////|////////|
|000005a0| 2f 2f 2f 2f 2f 2f 2f 2f | 2f 2f 2f 2f 2f 2f 2f 2f |////////|////////|
|000005b0| 2f 2f 2f 2f 2f 2f 2f 2f | 2f 2f 2f 20 2a 2f 0d 0d |////////|/// */..|
|000005c0| 23 69 66 64 65 66 20 5f | 5f 63 70 6c 75 73 70 6c |#ifdef _|_cpluspl|
|000005d0| 75 73 0d 65 78 74 65 72 | 6e 20 22 43 22 20 7b 0d |us.exter|n "C" {.|
|000005e0| 23 65 6e 64 69 66 0d 0d | 09 70 61 73 63 61 6c 20 |#endif..|.pascal |
|000005f0| 49 43 45 72 72 6f 72 20 | 49 43 53 74 61 72 74 28 |ICError |ICStart(|
|00000600| 49 43 49 6e 73 74 61 6e | 63 65 20 2a 69 6e 73 74 |ICInstan|ce *inst|
|00000610| 2c 20 4f 53 54 79 70 65 | 20 63 72 65 61 74 6f 72 |, OSType| creator|
|00000620| 29 3b 0d 09 2f 2a 20 63 | 61 6c 6c 20 61 74 20 61 |);../* c|all at a|
|00000630| 70 70 6c 69 63 61 74 69 | 6f 6e 20 69 6e 69 74 69 |pplicati|on initi|
|00000640| 61 6c 69 73 61 74 69 6f | 6e 20 2a 2f 0d 0d 09 70 |alisatio|n */...p|
|00000650| 61 73 63 61 6c 20 49 43 | 45 72 72 6f 72 20 49 43 |ascal IC|Error IC|
|00000660| 53 74 6f 70 28 49 43 49 | 6e 73 74 61 6e 63 65 20 |Stop(ICI|nstance |
|00000670| 69 6e 73 74 29 3b 0d 09 | 2f 2a 20 63 61 6c 6c 20 |inst);..|/* call |
|00000680| 61 74 20 61 70 70 6c 69 | 63 61 74 69 6f 6e 20 74 |at appli|cation t|
|00000690| 65 72 6d 69 6e 61 74 69 | 6f 6e 20 2a 2f 0d 0d 09 |erminati|on */...|
|000006a0| 70 61 73 63 61 6c 20 49 | 43 45 72 72 6f 72 20 49 |pascal I|CError I|
|000006b0| 43 46 69 6e 64 43 6f 6e | 66 69 67 46 69 6c 65 28 |CFindCon|figFile(|
|000006c0| 49 43 49 6e 73 74 61 6e | 63 65 20 69 6e 73 74 2c |ICInstan|ce inst,|
|000006d0| 20 73 68 6f 72 74 20 63 | 6f 75 6e 74 2c 20 49 43 | short c|ount, IC|
|000006e0| 44 69 72 53 70 65 63 41 | 72 72 61 79 50 74 72 20 |DirSpecA|rrayPtr |
|000006f0| 66 6f 6c 64 65 72 73 29 | 3b 0d 09 2f 2a 20 63 6f |folders)|;../* co|
|00000700| 75 6e 74 20 69 73 20 74 | 68 65 20 6e 75 6d 62 65 |unt is t|he numbe|
|00000710| 72 20 6f 66 20 49 43 44 | 69 72 53 70 65 63 73 20 |r of ICD|irSpecs |
|00000720| 74 68 61 74 20 61 72 65 | 20 76 61 6c 69 64 20 69 |that are| valid i|
|00000730| 6e 20 66 6f 6c 64 65 72 | 73 20 2a 2f 0d 09 2f 2a |n folder|s */../*|
|00000740| 20 73 65 61 72 63 68 65 | 73 20 74 68 65 20 73 70 | searche|s the sp|
|00000750| 65 63 69 66 69 65 64 20 | 66 6f 6c 64 65 72 73 20 |ecified |folders |
|00000760| 66 69 72 73 74 2c 20 74 | 68 65 6e 20 62 61 63 6b |first, t|hen back|
|00000770| 73 20 6f 75 74 20 74 6f | 20 70 72 65 66 65 72 65 |s out to| prefere|
|00000780| 6e 63 65 73 20 66 6f 6c | 64 65 72 20 2a 2f 0d 09 |nces fol|der */..|
|00000790| 2f 2a 20 64 6f 6e 27 74 | 20 79 6f 75 20 77 6f 72 |/* don't| you wor|
|000007a0| 72 79 20 61 62 6f 75 74 | 20 68 6f 77 20 69 74 20 |ry about| how it |
|000007b0| 66 69 6e 64 73 20 74 68 | 65 20 66 69 6c 65 20 28 |finds th|e file (|
|000007c0| 3b 20 2a 2f 0d 09 2f 2a | 20 79 6f 75 20 63 61 6e |; */../*| you can|
|000007d0| 20 70 61 73 73 20 6e 69 | 6c 20 74 6f 20 66 6f 6c | pass ni|l to fol|
|000007e0| 64 65 72 73 20 69 66 20 | 63 6f 75 6e 74 20 69 73 |ders if |count is|
|000007f0| 20 30 20 2a 2f 0d 0d 09 | 70 61 73 63 61 6c 20 49 | 0 */...|pascal I|
|00000800| 43 45 72 72 6f 72 20 49 | 43 46 69 6e 64 55 73 65 |CError I|CFindUse|
|00000810| 72 43 6f 6e 66 69 67 46 | 69 6c 65 28 49 43 49 6e |rConfigF|ile(ICIn|
|00000820| 73 74 61 6e 63 65 20 69 | 6e 73 74 2c 20 49 43 44 |stance i|nst, ICD|
|00000830| 69 72 53 70 65 63 20 2a | 77 68 65 72 65 29 3b 0d |irSpec *|where);.|
|00000840| 09 2f 2a 20 72 65 71 75 | 69 72 65 73 20 49 43 20 |./* requ|ires IC |
|00000850| 31 2e 31 20 2a 2f 0d 09 | 2f 2a 20 73 69 6d 69 6c |1.1 */..|/* simil|
|00000860| 61 72 20 74 6f 20 49 43 | 46 69 6e 64 43 6f 6e 66 |ar to IC|FindConf|
|00000870| 69 67 46 69 6c 65 20 65 | 78 63 65 70 74 20 2a 2f |igFile e|xcept */|
|00000880| 0d 09 2f 2a 20 46 6f 72 | 20 75 73 65 20 77 69 74 |../* For| use wit|
|00000890| 68 20 64 6f 75 62 6c 65 | 20 63 6c 69 63 6b 61 62 |h double| clickab|
|000008a0| 6c 65 20 70 72 65 66 65 | 72 65 6e 63 65 20 66 69 |le prefe|rence fi|
|000008b0| 6c 65 73 2c 20 74 68 69 | 73 20 73 65 61 72 63 68 |les, thi|s search|
|000008c0| 65 73 20 6f 6e 6c 79 20 | 74 68 65 20 77 68 65 72 |es only |the wher|
|000008d0| 65 20 64 69 72 65 63 74 | 6f 72 79 20 2a 2f 0d 0d |e direct|ory */..|
|000008e0| 09 70 61 73 63 61 6c 20 | 49 43 45 72 72 6f 72 20 |.pascal |ICError |
|000008f0| 49 43 53 70 65 63 69 66 | 79 43 6f 6e 66 69 67 46 |ICSpecif|yConfigF|
|00000900| 69 6c 65 28 49 43 49 6e | 73 74 61 6e 63 65 20 69 |ile(ICIn|stance i|
|00000910| 6e 73 74 2c 20 46 53 53 | 70 65 63 20 2a 63 6f 6e |nst, FSS|pec *con|
|00000920| 66 69 67 29 3b 0d 09 2f | 2a 20 66 6f 72 20 75 73 |fig);../|* for us|
|00000930| 65 20 2a 6f 6e 6c 79 2a | 20 62 79 20 49 6e 74 65 |e *only*| by Inte|
|00000940| 72 6e 65 74 20 43 6f 6e | 66 69 67 75 72 61 74 69 |rnet Con|figurati|
|00000950| 6f 6e 20 61 70 70 6c 69 | 63 61 74 69 6f 6e 20 2a |on appli|cation *|
|00000960| 2f 0d 0d 09 70 61 73 63 | 61 6c 20 49 43 45 72 72 |/...pasc|al ICErr|
|00000970| 6f 72 20 49 43 47 65 74 | 53 65 65 64 28 49 43 49 |or ICGet|Seed(ICI|
|00000980| 6e 73 74 61 6e 63 65 20 | 69 6e 73 74 2c 20 6c 6f |nstance |inst, lo|
|00000990| 6e 67 20 2a 73 65 65 64 | 29 3b 0d 09 2f 2a 20 72 |ng *seed|);../* r|
|000009a0| 65 74 75 72 6e 73 20 63 | 75 72 72 65 6e 74 20 73 |eturns c|urrent s|
|000009b0| 65 65 64 20 66 6f 72 20 | 70 72 65 66 73 20 66 69 |eed for |prefs fi|
|000009c0| 6c 65 20 2a 2f 0d 09 2f | 2a 20 74 68 69 73 20 73 |le */../|* this s|
|000009d0| 65 65 64 20 63 68 61 6e | 67 65 73 20 65 76 65 72 |eed chan|ges ever|
|000009e0| 79 20 74 69 6d 65 20 61 | 20 70 72 65 66 65 72 65 |y time a| prefere|
|000009f0| 6e 63 65 20 69 73 20 6d | 6f 64 69 66 69 65 64 20 |nce is m|odified |
|00000a00| 2a 2f 0d 09 2f 2a 20 70 | 6f 6c 6c 20 74 68 69 73 |*/../* p|oll this|
|00000a10| 20 74 6f 20 64 65 74 65 | 63 74 20 70 72 65 66 65 | to dete|ct prefe|
|00000a20| 72 65 6e 63 65 20 63 68 | 61 6e 67 65 73 20 62 79 |rence ch|anges by|
|00000a30| 20 6f 74 68 65 72 20 61 | 70 70 6c 69 63 61 74 69 | other a|pplicati|
|00000a40| 6f 6e 73 20 2a 2f 0d 0d | 09 70 61 73 63 61 6c 20 |ons */..|.pascal |
|00000a50| 49 43 45 72 72 6f 72 20 | 49 43 47 65 74 50 65 72 |ICError |ICGetPer|
|00000a60| 6d 28 49 43 49 6e 73 74 | 61 6e 63 65 20 69 6e 73 |m(ICInst|ance ins|
|00000a70| 74 2c 20 49 43 50 65 72 | 6d 20 2a 70 65 72 6d 29 |t, ICPer|m *perm)|
|00000a80| 3b 0d 09 2f 2a 20 72 65 | 74 75 72 6e 73 20 74 68 |;../* re|turns th|
|00000a90| 65 20 70 65 72 6d 69 73 | 73 69 6f 6e 73 20 63 75 |e permis|sions cu|
|00000aa0| 72 72 65 6e 74 6c 79 20 | 61 73 73 6f 63 69 61 74 |rrently |associat|
|00000ab0| 65 64 20 77 69 74 68 20 | 74 68 69 73 20 66 69 6c |ed with |this fil|
|00000ac0| 65 20 2a 2f 0d 09 2f 2a | 20 6d 61 69 6e 6c 79 20 |e */../*| mainly |
|00000ad0| 75 73 65 64 20 62 79 20 | 6f 76 65 72 72 69 64 69 |used by |overridi|
|00000ae0| 6e 67 20 63 6f 6d 70 6f | 6e 65 6e 74 73 2c 20 61 |ng compo|nents, a|
|00000af0| 70 70 6c 69 63 61 74 69 | 6f 6e 73 20 6e 6f 72 6d |pplicati|ons norm|
|00000b00| 61 6c 6c 79 20 2a 2f 0d | 09 2f 2a 20 6b 6e 6f 77 |ally */.|./* know|
|00000b10| 20 77 68 61 74 20 70 65 | 72 6d 69 73 73 69 6f 6e | what pe|rmission|
|00000b20| 73 20 74 68 65 79 20 68 | 61 76 65 20 2a 2f 0d 0d |s they h|ave */..|
|00000b30| 09 70 61 73 63 61 6c 20 | 49 43 45 72 72 6f 72 20 |.pascal |ICError |
|00000b40| 49 43 42 65 67 69 6e 28 | 49 43 49 6e 73 74 61 6e |ICBegin(|ICInstan|
|00000b50| 63 65 20 69 6e 73 74 2c | 20 49 43 50 65 72 6d 20 |ce inst,| ICPerm |
|00000b60| 70 65 72 6d 29 3b 0d 09 | 2f 2a 20 73 74 61 72 74 |perm);..|/* start|
|00000b70| 20 72 65 61 64 69 6e 67 | 2f 77 72 69 74 69 6e 67 | reading|/writing|
|00000b80| 20 74 68 65 20 70 72 65 | 66 65 72 65 6e 63 65 73 | the pre|ferences|
|00000b90| 20 2a 2f 0d 09 2f 2a 20 | 6d 75 73 74 20 62 65 20 | */../* |must be |
|00000ba0| 62 61 6c 61 6e 61 63 65 | 64 20 62 79 20 61 20 49 |balanace|d by a I|
|00000bb0| 43 45 6e 64 20 2a 2f 0d | 09 2f 2a 20 64 6f 20 6e |CEnd */.|./* do n|
|00000bc0| 6f 74 20 63 61 6c 6c 20 | 57 61 69 74 4e 65 78 74 |ot call |WaitNext|
|00000bd0| 45 76 65 6e 74 20 62 65 | 74 77 65 65 6e 20 74 68 |Event be|tween th|
|00000be0| 69 73 20 70 61 69 72 20 | 2a 2f 0d 09 2f 2a 20 73 |is pair |*/../* s|
|00000bf0| 70 65 63 69 66 79 20 65 | 69 74 68 65 72 20 69 63 |pecify e|ither ic|
|00000c00| 52 65 61 64 4f 6e 6c 79 | 50 65 72 6d 20 6f 72 20 |ReadOnly|Perm or |
|00000c10| 69 63 52 65 61 64 57 72 | 69 74 65 50 65 72 6d 20 |icReadWr|itePerm |
|00000c20| 2a 2f 0d 09 2f 2a 20 6e | 6f 74 65 20 74 68 61 74 |*/../* n|ote that|
|00000c30| 20 74 68 69 73 20 6d 61 | 79 20 6f 70 65 6e 20 72 | this ma|y open r|
|00000c40| 65 73 6f 75 72 63 65 20 | 66 69 6c 65 73 20 61 6e |esource |files an|
|00000c50| 64 20 6c 65 61 76 65 20 | 74 68 65 6d 20 6f 70 65 |d leave |them ope|
|00000c60| 6e 20 75 6e 74 69 6c 20 | 49 43 45 6e 64 20 2a 2f |n until |ICEnd */|
|00000c70| 0d 0d 09 70 61 73 63 61 | 6c 20 49 43 45 72 72 6f |...pasca|l ICErro|
|00000c80| 72 20 49 43 47 65 74 50 | 72 65 66 28 49 43 49 6e |r ICGetP|ref(ICIn|
|00000c90| 73 74 61 6e 63 65 20 69 | 6e 73 74 2c 20 43 6f 6e |stance i|nst, Con|
|00000ca0| 73 74 53 74 72 32 35 35 | 50 61 72 61 6d 20 6b 65 |stStr255|Param ke|
|00000cb0| 79 2c 20 49 43 41 74 74 | 72 20 2a 61 74 74 72 2c |y, ICAtt|r *attr,|
|00000cc0| 20 50 74 72 20 62 75 66 | 2c 20 6c 6f 6e 67 20 2a | Ptr buf|, long *|
|00000cd0| 73 69 7a 65 29 3b 0d 09 | 2f 2a 20 74 68 69 73 20 |size);..|/* this |
|00000ce0| 72 6f 75 74 69 6e 65 20 | 6d 61 79 20 62 65 20 63 |routine |may be c|
|00000cf0| 61 6c 6c 65 64 20 77 69 | 74 68 6f 75 74 20 61 20 |alled wi|thout a |
|00000d00| 49 43 42 65 67 69 6e 2f | 49 43 45 6e 64 20 70 61 |ICBegin/|ICEnd pa|
|00000d10| 69 72 2c 20 69 6e 20 77 | 68 69 63 68 20 63 61 73 |ir, in w|hich cas|
|00000d20| 65 20 2a 2f 0d 09 2f 2a | 20 69 74 20 69 6d 70 6c |e */../*| it impl|
|00000d30| 69 63 69 74 6c 79 20 63 | 61 6c 6c 73 20 49 43 42 |icitly c|alls ICB|
|00000d40| 65 67 69 6e 28 69 6e 73 | 74 2c 20 69 63 52 65 61 |egin(ins|t, icRea|
|00000d50| 64 4f 6e 6c 79 50 65 72 | 6d 20 2a 2f 0d 09 2f 2a |dOnlyPer|m */../*|
|00000d60| 20 67 69 76 65 6e 20 61 | 20 6b 65 79 20 73 74 72 | given a| key str|
|00000d70| 69 6e 67 2c 20 72 65 74 | 75 72 6e 73 20 74 68 65 |ing, ret|urns the|
|00000d80| 20 61 74 74 72 69 62 75 | 74 65 73 20 61 6e 64 20 | attribu|tes and |
|00000d90| 74 68 65 20 28 6f 70 74 | 69 6f 6e 61 6c 6c 79 29 |the (opt|ionally)|
|00000da0| 20 74 68 65 20 64 61 74 | 61 20 66 6f 72 20 61 20 | the dat|a for a |
|00000db0| 70 72 65 66 65 72 65 6e | 63 65 20 2a 2f 0d 09 2f |preferen|ce */../|
|00000dc0| 2a 20 6b 65 79 20 6d 75 | 73 74 20 6e 6f 74 20 62 |* key mu|st not b|
|00000dd0| 65 20 74 68 65 20 65 6d | 70 74 79 20 73 74 72 69 |e the em|pty stri|
|00000de0| 6e 67 20 2a 2f 0d 09 2f | 2a 20 69 66 20 62 75 66 |ng */../|* if buf|
|00000df0| 20 69 73 20 6e 69 6c 20 | 74 68 65 6e 20 6e 6f 20 | is nil |then no |
|00000e00| 64 61 74 61 20 66 65 74 | 63 68 65 64 20 61 6e 64 |data fet|ched and|
|00000e10| 20 69 6e 63 6f 6d 69 6e | 67 20 73 69 7a 65 20 69 | incomin|g size i|
|00000e20| 73 20 69 67 6e 6f 72 65 | 64 2a 2f 0d 09 2f 2a 20 |s ignore|d*/../* |
|00000e30| 73 69 7a 65 20 6d 75 73 | 74 20 62 65 20 6e 6f 6e |size mus|t be non|
|00000e40| 2d 6e 65 67 61 74 69 76 | 65 2c 20 69 73 20 73 69 |-negativ|e, is si|
|00000e50| 7a 65 20 6f 66 20 61 6c | 6c 6f 63 61 74 65 64 20 |ze of al|located |
|00000e60| 73 70 61 63 65 20 66 6f | 72 20 64 61 74 61 20 61 |space fo|r data a|
|00000e70| 74 20 62 75 66 20 2a 2f | 0d 09 2f 2a 20 61 74 74 |t buf */|../* att|
|00000e80| 72 20 61 6e 64 20 73 69 | 7a 65 20 61 6e 64 20 61 |r and si|ze and a|
|00000e90| 6c 77 61 79 73 20 73 65 | 74 20 6f 6e 20 72 65 74 |lways se|t on ret|
|00000ea0| 75 72 6e 20 2a 2f 0d 09 | 2f 2a 20 73 69 7a 65 20 |urn */..|/* size |
|00000eb0| 69 73 20 61 63 74 75 61 | 6c 20 73 69 7a 65 20 6f |is actua|l size o|
|00000ec0| 66 20 64 61 74 61 20 28 | 69 66 20 6b 65 79 20 70 |f data (|if key p|
|00000ed0| 72 65 73 65 6e 74 29 3b | 20 2a 2f 0d 09 2f 2a 20 |resent);| */../* |
|00000ee0| 61 74 74 72 20 69 73 20 | 70 72 65 66 20 61 74 74 |attr is |pref att|
|00000ef0| 72 69 62 75 74 65 73 20 | 2a 2f 0d 20 09 2f 2a 20 |ributes |*/. ./* |
|00000f00| 69 66 20 69 63 54 72 75 | 6e 63 61 74 65 64 45 72 |if icTru|ncatedEr|
|00000f10| 72 20 74 68 65 6e 20 65 | 76 65 72 79 74 68 69 6e |r then e|verythin|
|00000f20| 67 20 69 73 20 76 61 6c | 69 64 2c 20 65 78 63 65 |g is val|id, exce|
|00000f30| 70 74 20 79 6f 75 20 6c | 6f 73 74 20 73 6f 6d 65 |pt you l|ost some|
|00000f40| 20 64 61 74 61 2c 20 73 | 69 7a 65 20 69 73 20 73 | data, s|ize is s|
|00000f50| 69 7a 65 20 6f 66 20 72 | 65 61 6c 20 64 61 74 61 |ize of r|eal data|
|00000f60| 2a 2f 0d 09 2f 2a 20 6f | 6e 20 6f 74 68 65 72 20 |*/../* o|n other |
|00000f70| 65 72 72 6f 72 73 2c 20 | 61 74 74 72 20 69 73 20 |errors, |attr is |
|00000f80| 49 43 61 74 74 72 5f 6e | 6f 5f 63 68 61 6e 67 65 |ICattr_n|o_change|
|00000f90| 20 61 6e 64 20 73 69 7a | 65 20 69 73 20 30 20 2a | and siz|e is 0 *|
|00000fa0| 2f 0d 0d 09 70 61 73 63 | 61 6c 20 49 43 45 72 72 |/...pasc|al ICErr|
|00000fb0| 6f 72 20 49 43 53 65 74 | 50 72 65 66 28 49 43 49 |or ICSet|Pref(ICI|
|00000fc0| 6e 73 74 61 6e 63 65 20 | 69 6e 73 74 2c 20 43 6f |nstance |inst, Co|
|00000fd0| 6e 73 74 53 74 72 32 35 | 35 50 61 72 61 6d 20 6b |nstStr25|5Param k|
|00000fe0| 65 79 2c 20 49 43 41 74 | 74 72 20 61 74 74 72 2c |ey, ICAt|tr attr,|
|00000ff0| 20 50 74 72 20 62 75 66 | 2c 20 6c 6f 6e 67 20 73 | Ptr buf|, long s|
|00001000| 69 7a 65 29 3b 0d 09 2f | 2a 20 74 68 69 73 20 72 |ize);../|* this r|
|00001010| 6f 75 74 69 6e 65 20 6d | 61 79 20 62 65 20 63 61 |outine m|ay be ca|
|00001020| 6c 6c 65 64 20 77 69 74 | 68 6f 75 74 20 61 20 49 |lled wit|hout a I|
|00001030| 43 42 65 67 69 6e 2f 49 | 43 45 6e 64 20 70 61 69 |CBegin/I|CEnd pai|
|00001040| 72 2c 20 69 6e 20 77 68 | 69 63 68 20 63 61 73 65 |r, in wh|ich case|
|00001050| 20 2a 2f 0d 09 2f 2a 20 | 69 74 20 69 6d 70 6c 69 | */../* |it impli|
|00001060| 63 69 74 6c 79 20 63 61 | 6c 6c 73 20 49 43 42 65 |citly ca|lls ICBe|
|00001070| 67 69 6e 28 69 6e 73 74 | 2c 20 69 63 52 65 61 64 |gin(inst|, icRead|
|00001080| 57 72 69 74 65 50 65 72 | 6d 20 2a 2f 0d 09 2f 2a |WritePer|m */../*|
|00001090| 20 67 69 76 65 6e 20 61 | 20 6b 65 79 20 73 74 72 | given a| key str|
|000010a0| 69 6e 67 2c 20 73 65 74 | 73 20 74 68 65 20 61 74 |ing, set|s the at|
|000010b0| 74 72 69 62 75 74 65 73 | 20 61 6e 64 20 74 68 65 |tributes| and the|
|000010c0| 20 64 61 74 61 20 66 6f | 72 20 61 20 70 72 65 66 | data fo|r a pref|
|000010d0| 65 72 65 6e 63 65 20 28 | 65 69 74 68 65 72 20 69 |erence (|either i|
|000010e0| 73 20 6f 70 74 69 6f 6e | 61 6c 29 3b 20 2a 2f 0d |s option|al); */.|
|000010f0| 09 2f 2a 20 6b 65 79 20 | 6d 75 73 74 20 6e 6f 74 |./* key |must not|
|00001100| 20 62 65 20 74 68 65 20 | 65 6d 70 74 79 20 73 74 | be the |empty st|
|00001110| 72 69 6e 67 20 2a 2f 0d | 09 2f 2a 20 69 66 20 62 |ring */.|./* if b|
|00001120| 75 66 20 69 73 20 6e 69 | 6c 20 74 68 65 6e 20 6e |uf is ni|l then n|
|00001130| 6f 20 64 61 74 61 20 73 | 74 6f 72 65 64 20 61 6e |o data s|tored an|
|00001140| 64 20 73 69 7a 65 20 69 | 73 20 69 67 6e 6f 72 65 |d size i|s ignore|
|00001150| 64 2c 20 75 73 65 64 20 | 66 6f 72 20 73 65 74 74 |d, used |for sett|
|00001160| 69 6e 67 20 61 74 74 72 | 20 2a 2f 0d 09 2f 2a 20 |ing attr| */../* |
|00001170| 73 69 7a 65 20 6d 75 73 | 74 20 62 65 20 6e 6f 6e |size mus|t be non|
|00001180| 2d 6e 65 67 61 74 69 76 | 65 2c 20 69 73 20 73 69 |-negativ|e, is si|
|00001190| 7a 65 20 6f 66 20 74 68 | 65 20 64 61 74 61 20 61 |ze of th|e data a|
|000011a0| 74 20 62 75 66 20 74 6f | 20 73 74 6f 72 65 20 2a |t buf to| store *|
|000011b0| 2f 0d 09 2f 2a 20 69 63 | 50 65 72 6d 45 72 72 20 |/../* ic|PermErr |
|000011c0| 69 66 20 49 43 42 65 67 | 69 6e 20 77 61 73 20 67 |if ICBeg|in was g|
|000011d0| 69 76 65 6e 20 69 63 52 | 65 61 64 4f 6e 6c 79 50 |iven icR|eadOnlyP|
|000011e0| 65 72 6d 20 2a 2f 0d 09 | 2f 2a 20 69 63 50 65 72 |erm */..|/* icPer|
|000011f0| 6d 45 72 72 20 69 66 20 | 63 75 72 72 65 6e 74 20 |mErr if |current |
|00001200| 61 74 74 72 20 69 73 20 | 6c 6f 63 6b 65 64 2c 20 |attr is |locked, |
|00001210| 6e 65 77 20 61 74 74 72 | 20 69 73 20 6c 6f 63 6b |new attr| is lock|
|00001220| 65 64 20 61 6e 64 20 62 | 75 66 20 3c 3e 20 6e 69 |ed and b|uf <> ni|
|00001230| 6c 20 2a 2f 0d 0d 09 70 | 61 73 63 61 6c 20 49 43 |l */...p|ascal IC|
|00001240| 45 72 72 6f 72 20 49 43 | 47 65 74 50 72 65 66 48 |Error IC|GetPrefH|
|00001250| 61 6e 64 6c 65 28 49 43 | 49 6e 73 74 61 6e 63 65 |andle(IC|Instance|
|00001260| 20 69 6e 73 74 2c 20 43 | 6f 6e 73 74 53 74 72 32 | inst, C|onstStr2|
|00001270| 35 35 50 61 72 61 6d 20 | 6b 65 79 2c 20 49 43 41 |55Param |key, ICA|
|00001280| 74 74 72 20 2a 61 74 74 | 72 2c 20 48 61 6e 64 6c |ttr *att|r, Handl|
|00001290| 65 20 2a 70 72 65 66 68 | 29 3b 0d 09 2f 2a 20 73 |e *prefh|);../* s|
|000012a0| 61 6d 65 20 61 73 20 49 | 43 47 65 74 50 72 65 66 |ame as I|CGetPref|
|000012b0| 20 65 78 63 65 70 74 20 | 74 68 61 74 20 69 74 20 | except |that it |
|000012c0| 72 65 74 75 72 6e 73 20 | 74 68 65 20 72 65 73 75 |returns |the resu|
|000012d0| 6c 74 20 69 6e 20 61 20 | 6e 65 77 6c 79 20 63 72 |lt in a |newly cr|
|000012e0| 65 61 74 65 64 20 68 61 | 6e 64 6c 65 20 2a 2f 0d |eated ha|ndle */.|
|000012f0| 09 2f 2a 20 61 74 74 72 | 20 6d 75 73 74 20 6e 6f |./* attr| must no|
|00001300| 74 20 62 65 20 6e 69 6c | 20 2a 2f 0d 09 2f 2a 20 |t be nil| */../* |
|00001310| 70 72 65 66 68 20 69 73 | 20 73 65 74 20 74 6f 20 |prefh is| set to |
|00001320| 61 20 6e 65 77 6c 79 20 | 63 72 65 61 74 65 64 20 |a newly |created |
|00001330| 68 61 6e 64 6c 65 20 2a | 2f 0d 0d 09 70 61 73 63 |handle *|/...pasc|
|00001340| 61 6c 20 49 43 45 72 72 | 6f 72 20 49 43 53 65 74 |al ICErr|or ICSet|
|00001350| 50 72 65 66 48 61 6e 64 | 6c 65 28 49 43 49 6e 73 |PrefHand|le(ICIns|
|00001360| 74 61 6e 63 65 20 69 6e | 73 74 2c 20 43 6f 6e 73 |tance in|st, Cons|
|00001370| 74 53 74 72 32 35 35 50 | 61 72 61 6d 20 6b 65 79 |tStr255P|aram key|
|00001380| 2c 20 49 43 41 74 74 72 | 20 61 74 74 72 2c 20 48 |, ICAttr| attr, H|
|00001390| 61 6e 64 6c 65 20 70 72 | 65 66 68 29 3b 0d 09 2f |andle pr|efh);../|
|000013a0| 2a 20 73 61 6d 65 20 61 | 73 20 49 43 53 65 74 50 |* same a|s ICSetP|
|000013b0| 72 65 66 20 65 78 63 65 | 70 74 20 74 68 61 74 20 |ref exce|pt that |
|000013c0| 69 74 20 73 65 74 73 20 | 74 68 65 20 70 72 65 66 |it sets |the pref|
|000013d0| 65 72 65 6e 63 65 20 62 | 61 73 65 64 20 6f 6e 20 |erence b|ased on |
|000013e0| 61 20 68 61 6e 64 6c 65 | 20 2a 2f 0d 09 2f 2a 20 |a handle| */../* |
|000013f0| 70 72 65 66 68 20 6d 75 | 73 74 20 6e 6f 74 20 62 |prefh mu|st not b|
|00001400| 65 20 6e 69 6c 20 2a 2f | 0d 0d 09 70 61 73 63 61 |e nil */|...pasca|
|00001410| 6c 20 49 43 45 72 72 6f | 72 20 49 43 43 6f 75 6e |l ICErro|r ICCoun|
|00001420| 74 50 72 65 66 28 49 43 | 49 6e 73 74 61 6e 63 65 |tPref(IC|Instance|
|00001430| 20 69 6e 73 74 2c 20 6c | 6f 6e 67 20 2a 63 6f 75 | inst, l|ong *cou|
|00001440| 6e 74 29 3b 0d 09 2f 2a | 20 63 6f 75 6e 74 20 74 |nt);../*| count t|
|00001450| 6f 74 61 6c 20 6e 75 6d | 62 65 72 20 6f 66 20 70 |otal num|ber of p|
|00001460| 72 65 66 65 72 65 6e 63 | 65 73 20 2a 2f 0d 09 2f |referenc|es */../|
|00001470| 2a 20 69 66 20 65 72 72 | 6f 72 20 74 68 65 6e 20 |* if err|or then |
|00001480| 63 6f 75 6e 74 20 69 73 | 20 30 20 2a 2f 0d 0d 09 |count is| 0 */...|
|00001490| 70 61 73 63 61 6c 20 49 | 43 45 72 72 6f 72 20 49 |pascal I|CError I|
|000014a0| 43 47 65 74 49 6e 64 50 | 72 65 66 28 49 43 49 6e |CGetIndP|ref(ICIn|
|000014b0| 73 74 61 6e 63 65 20 69 | 6e 73 74 2c 20 6c 6f 6e |stance i|nst, lon|
|000014c0| 67 20 6e 2c 20 53 74 72 | 32 35 35 20 6b 65 79 29 |g n, Str|255 key)|
|000014d0| 3b 0d 09 2f 2a 20 72 65 | 74 75 72 6e 20 74 68 65 |;../* re|turn the|
|000014e0| 20 6b 65 79 20 6f 66 20 | 74 68 65 20 4e 74 68 20 | key of |the Nth |
|000014f0| 70 72 65 66 65 72 65 6e | 63 65 20 2a 2f 0d 09 2f |preferen|ce */../|
|00001500| 2a 20 6e 20 6d 75 73 74 | 20 62 65 20 70 6f 73 69 |* n must| be posi|
|00001510| 74 69 76 65 20 2a 2f 0d | 09 2f 2a 20 69 63 50 72 |tive */.|./* icPr|
|00001520| 65 66 4e 6f 74 46 6f 75 | 6e 64 45 72 72 20 69 66 |efNotFou|ndErr if|
|00001530| 20 6e 20 69 73 20 62 65 | 79 6f 6e 64 20 74 68 65 | n is be|yond the|
|00001540| 20 6c 61 73 74 20 70 72 | 65 66 65 72 65 6e 63 65 | last pr|eference|
|00001550| 20 2a 2f 0d 0d 09 70 61 | 73 63 61 6c 20 49 43 45 | */...pa|scal ICE|
|00001560| 72 72 6f 72 20 49 43 44 | 65 6c 65 74 65 50 72 65 |rror ICD|eletePre|
|00001570| 66 28 49 43 49 6e 73 74 | 61 6e 63 65 20 69 6e 73 |f(ICInst|ance ins|
|00001580| 74 2c 20 43 6f 6e 73 74 | 53 74 72 32 35 35 50 61 |t, Const|Str255Pa|
|00001590| 72 61 6d 20 6b 65 79 29 | 3b 0d 09 2f 2a 20 64 65 |ram key)|;../* de|
|000015a0| 6c 65 74 65 20 74 68 65 | 20 70 72 65 66 65 72 65 |lete the| prefere|
|000015b0| 6e 63 65 20 73 70 65 63 | 69 66 69 65 64 20 62 79 |nce spec|ified by|
|000015c0| 20 6b 65 79 20 2a 2f 0d | 09 2f 2a 20 6b 65 79 20 | key */.|./* key |
|000015d0| 6d 75 73 74 20 6e 6f 74 | 20 62 65 20 74 68 65 20 |must not| be the |
|000015e0| 65 6d 70 74 79 20 73 74 | 72 69 6e 67 20 2a 2f 0d |empty st|ring */.|
|000015f0| 09 2f 2a 20 70 72 65 66 | 65 72 65 6e 63 65 20 73 |./* pref|erence s|
|00001600| 70 65 63 69 66 69 65 64 | 20 62 79 20 6b 65 79 20 |pecified| by key |
|00001610| 6d 75 73 74 20 62 65 20 | 70 72 65 73 65 6e 74 20 |must be |present |
|00001620| 2a 2f 0d 09 2f 2a 20 69 | 63 50 72 65 66 4e 6f 74 |*/../* i|cPrefNot|
|00001630| 46 6f 75 6e 64 45 72 72 | 20 69 66 20 69 74 20 69 |FoundErr| if it i|
|00001640| 73 6e 27 74 20 2a 2f 0d | 0d 09 70 61 73 63 61 6c |sn't */.|..pascal|
|00001650| 20 49 43 45 72 72 6f 72 | 20 49 43 45 6e 64 28 49 | ICError| ICEnd(I|
|00001660| 43 49 6e 73 74 61 6e 63 | 65 20 69 6e 73 74 29 3b |CInstanc|e inst);|
|00001670| 0d 09 2f 2a 20 73 74 6f | 70 20 72 65 61 64 69 6e |../* sto|p readin|
|00001680| 67 2f 77 72 69 74 69 6e | 67 20 74 68 65 20 70 72 |g/writin|g the pr|
|00001690| 65 66 65 72 65 6e 63 65 | 73 20 2a 2f 0d 0d 09 70 |eference|s */...p|
|000016a0| 61 73 63 61 6c 20 49 43 | 45 72 72 6f 72 20 49 43 |ascal IC|Error IC|
|000016b0| 44 65 66 61 75 6c 74 46 | 69 6c 65 4e 61 6d 65 28 |DefaultF|ileName(|
|000016c0| 49 43 49 6e 73 74 61 6e | 63 65 20 69 6e 73 74 2c |ICInstan|ce inst,|
|000016d0| 20 53 74 72 36 33 20 6e | 61 6d 65 29 3b 0d 09 2f | Str63 n|ame);../|
|000016e0| 2a 20 72 65 74 75 72 6e | 20 74 68 65 20 64 65 66 |* return| the def|
|000016f0| 61 75 6c 74 20 66 69 6c | 65 20 6e 61 6d 65 20 2a |ault fil|e name *|
|00001700| 2f 0d 09 2f 2a 20 74 68 | 65 20 63 6f 6d 70 6f 6e |/../* th|e compon|
|00001710| 65 6e 74 20 63 61 6c 6c | 73 20 74 68 69 73 20 72 |ent call|s this r|
|00001720| 6f 75 74 69 6e 65 20 74 | 6f 20 73 65 74 20 75 70 |outine t|o set up|
|00001730| 20 74 68 65 20 64 65 66 | 61 75 6c 74 20 69 6e 74 | the def|ault int|
|00001740| 65 72 6e 65 74 20 63 6f | 6e 66 69 67 75 72 61 74 |ernet co|nfigurat|
|00001750| 69 6f 6e 20 66 69 6c 65 | 20 6e 61 6d 65 2a 2f 0d |ion file| name*/.|
|00001760| 09 2f 2a 20 74 68 69 73 | 20 61 6c 6c 6f 77 73 20 |./* this| allows |
|00001770| 74 68 69 73 20 6f 70 65 | 72 61 74 69 6f 6e 20 74 |this ope|ration t|
|00001780| 6f 20 62 65 20 69 6e 74 | 65 72 63 65 70 74 65 64 |o be int|ercepted|
|00001790| 20 62 79 20 61 20 63 6f | 6d 70 6f 6e 65 6e 74 20 | by a co|mponent |
|000017a0| 74 68 61 74 20 68 61 73 | 20 63 61 70 74 75 72 65 |that has| capture|
|000017b0| 64 20 75 73 20 2a 2f 0d | 09 2f 2a 20 69 74 20 63 |d us */.|./* it c|
|000017c0| 75 72 72 65 6e 74 6c 79 | 20 67 65 74 73 20 69 74 |urrently| gets it|
|000017d0| 20 66 72 6f 6d 20 74 68 | 65 20 63 6f 6d 70 6f 6e | from th|e compon|
|000017e0| 65 6e 74 20 72 65 73 6f | 75 72 63 65 20 66 69 6c |ent reso|urce fil|
|000017f0| 65 20 2a 2f 0d 09 2f 2a | 20 74 68 65 20 67 6c 75 |e */../*| the glu|
|00001800| 65 20 76 65 72 73 69 6f | 6e 20 69 73 20 68 61 72 |e versio|n is har|
|00001810| 64 77 69 72 65 64 20 2a | 2f 0d 0d 09 70 61 73 63 |dwired *|/...pasc|
|00001820| 61 6c 20 49 43 45 72 72 | 6f 72 20 49 43 47 65 74 |al ICErr|or ICGet|
|00001830| 43 6f 6d 70 6f 6e 65 6e | 74 49 6e 73 74 61 6e 63 |Componen|tInstanc|
|00001840| 65 28 49 43 49 6e 73 74 | 61 6e 63 65 20 69 6e 73 |e(ICInst|ance ins|
|00001850| 74 2c 20 50 74 72 20 2a | 63 6f 6d 70 6f 6e 65 6e |t, Ptr *|componen|
|00001860| 74 5f 69 6e 73 74 29 3b | 0d 09 2f 2a 20 72 65 74 |t_inst);|../* ret|
|00001870| 75 72 6e 73 20 6e 6f 45 | 72 72 20 61 6e 64 20 74 |urns noE|rr and t|
|00001880| 68 65 20 63 6f 6d 70 6f | 6e 65 6e 74 20 69 6e 73 |he compo|nent ins|
|00001890| 74 61 6e 63 65 20 74 68 | 61 74 20 77 65 27 72 65 |tance th|at we're|
|000018a0| 20 74 61 6c 6b 69 6e 67 | 20 74 6f 2c 20 69 66 20 | talking| to, if |
|000018b0| 77 65 27 72 65 20 75 73 | 69 6e 67 20 74 68 65 20 |we're us|ing the |
|000018c0| 63 6f 6d 70 6f 6e 65 6e | 74 20 2a 2f 0d 09 2f 2a |componen|t */../*|
|000018d0| 20 72 65 74 75 72 6e 73 | 20 61 6e 20 65 72 72 6f | returns| an erro|
|000018e0| 72 20 61 6e 64 20 6e 69 | 6c 20 69 66 20 77 65 27 |r and ni|l if we'|
|000018f0| 72 65 20 64 6f 69 6e 67 | 20 69 74 20 77 69 74 68 |re doing| it with|
|00001900| 20 67 6c 75 65 20 2a 2f | 0d 0d 09 70 61 73 63 61 | glue */|...pasca|
|00001910| 6c 20 49 43 45 72 72 6f | 72 20 49 43 45 64 69 74 |l ICErro|r ICEdit|
|00001920| 50 72 65 66 65 72 65 6e | 63 65 73 28 49 43 49 6e |Preferen|ces(ICIn|
|00001930| 73 74 61 6e 63 65 20 69 | 6e 73 74 2c 20 43 6f 6e |stance i|nst, Con|
|00001940| 73 74 53 74 72 32 35 35 | 50 61 72 61 6d 20 6b 65 |stStr255|Param ke|
|00001950| 79 29 3b 0d 09 2f 2a 20 | 72 65 71 75 69 72 65 73 |y);../* |requires|
|00001960| 20 49 43 20 31 2e 31 20 | 2a 2f 0d 09 2f 2a 20 74 | IC 1.1 |*/../* t|
|00001970| 68 69 73 20 72 6f 75 74 | 69 6e 65 20 6d 61 79 20 |his rout|ine may |
|00001980| 62 65 20 63 61 6c 6c 65 | 64 20 77 69 74 68 6f 75 |be calle|d withou|
|00001990| 74 20 61 20 49 43 42 65 | 67 69 6e 2f 49 43 45 6e |t a ICBe|gin/ICEn|
|000019a0| 64 20 70 61 69 72 20 2a | 2f 0d 09 2f 2a 20 6f 70 |d pair *|/../* op|
|000019b0| 65 6e 20 74 68 65 20 49 | 43 20 61 70 70 6c 69 63 |en the I|C applic|
|000019c0| 61 74 69 6f 6e 20 61 6e | 64 20 65 64 69 74 73 20 |ation an|d edits |
|000019d0| 74 68 65 20 70 72 65 66 | 65 72 65 6e 63 65 20 2a |the pref|erence *|
|000019e0| 2f 0d 09 2f 2a 20 79 6f | 75 20 6d 75 73 74 20 68 |/../* yo|u must h|
|000019f0| 61 76 65 20 66 6f 75 6e | 64 20 61 20 63 6f 6e 66 |ave foun|d a conf|
|00001a00| 69 67 20 66 69 6c 65 20 | 62 65 66 6f 72 65 20 63 |ig file |before c|
|00001a10| 61 6c 6c 69 6e 67 20 74 | 68 69 73 20 2a 2f 0d 09 |alling t|his */..|
|00001a20| 2f 2a 20 69 66 20 6b 65 | 79 20 69 73 20 65 6d 70 |/* if ke|y is emp|
|00001a30| 74 79 20 74 68 65 6e 20 | 69 74 20 6a 75 73 74 20 |ty then |it just |
|00001a40| 6f 70 65 6e 73 20 74 68 | 65 20 61 70 70 6c 69 63 |opens th|e applic|
|00001a50| 61 74 69 6f 6e 20 77 69 | 74 68 20 74 68 65 20 66 |ation wi|th the f|
|00001a60| 6f 75 6e 64 20 63 6f 6e | 66 69 67 20 66 69 6c 65 |ound con|fig file|
|00001a70| 20 2a 2f 0d 09 2f 2a 20 | 6f 74 68 65 72 77 69 73 | */../* |otherwis|
|00001a80| 65 20 69 74 20 64 69 73 | 70 6c 61 79 73 20 74 68 |e it dis|plays th|
|00001a90| 65 20 70 72 65 66 65 72 | 65 6e 63 65 20 77 69 74 |e prefer|ence wit|
|00001aa0| 68 20 74 68 65 20 73 70 | 65 63 69 66 69 65 64 20 |h the sp|ecified |
|00001ab0| 6b 65 79 20 2a 2f 0d 09 | 2f 2a 20 6d 61 79 20 68 |key */..|/* may h|
|00001ac0| 61 76 65 20 61 6e 20 69 | 6d 70 6c 65 6d 65 6e 74 |ave an i|mplement|
|00001ad0| 61 74 69 6f 6e 20 74 68 | 61 74 20 69 73 20 72 61 |ation th|at is ra|
|00001ae0| 64 69 63 61 6c 6c 79 20 | 64 69 66 66 65 72 65 6e |dically |differen|
|00001af0| 74 20 69 6e 20 74 68 65 | 20 66 75 74 75 72 65 20 |t in the| future |
|00001b00| 2a 2f 0d 0d 09 70 61 73 | 63 61 6c 20 49 43 45 72 |*/...pas|cal ICEr|
|00001b10| 72 6f 72 20 49 43 50 61 | 72 73 65 55 52 4c 28 49 |ror ICPa|rseURL(I|
|00001b20| 43 49 6e 73 74 61 6e 63 | 65 20 69 6e 73 74 2c 20 |CInstanc|e inst, |
|00001b30| 43 6f 6e 73 74 53 74 72 | 32 35 35 50 61 72 61 6d |ConstStr|255Param|
|00001b40| 20 68 69 6e 74 2c 20 50 | 74 72 20 64 61 74 61 2c | hint, P|tr data,|
|00001b50| 20 6c 6f 6e 67 20 6c 65 | 6e 2c 20 6c 6f 6e 67 20 | long le|n, long |
|00001b60| 2a 73 65 6c 53 74 61 72 | 74 2c 20 6c 6f 6e 67 20 |*selStar|t, long |
|00001b70| 2a 73 65 6c 45 6e 64 2c | 20 48 61 6e 64 6c 65 20 |*selEnd,| Handle |
|00001b80| 75 72 6c 29 3b 0d 09 2f | 2a 20 72 65 71 75 69 72 |url);../|* requir|
|00001b90| 65 73 20 49 43 20 31 2e | 31 20 2a 2f 0d 09 2f 2a |es IC 1.|1 */../*|
|00001ba0| 20 74 68 69 73 20 72 6f | 75 74 69 6e 65 20 6d 61 | this ro|utine ma|
|00001bb0| 79 20 62 65 20 63 61 6c | 6c 65 64 20 77 69 74 68 |y be cal|led with|
|00001bc0| 6f 75 74 20 61 20 49 43 | 42 65 67 69 6e 2f 49 43 |out a IC|Begin/IC|
|00001bd0| 45 6e 64 20 70 61 69 72 | 20 2a 2f 0d 09 2f 2a 20 |End pair| */../* |
|00001be0| 70 61 72 73 65 73 20 61 | 20 55 52 4c 20 6f 75 74 |parses a| URL out|
|00001bf0| 20 6f 66 20 61 20 63 68 | 75 6e 6b 20 6f 66 20 74 | of a ch|unk of t|
|00001c00| 65 78 74 20 61 6e 64 20 | 72 65 74 75 72 6e 73 20 |ext and |returns |
|00001c10| 69 74 20 69 6e 20 61 20 | 63 61 6e 6f 6e 69 63 61 |it in a |canonica|
|00001c20| 6c 20 66 6f 72 6d 20 2a | 2f 0d 09 2f 2a 20 68 69 |l form *|/../* hi|
|00001c30| 6e 74 20 69 73 20 61 6e | 20 69 6e 64 69 63 61 74 |nt is an| indicat|
|00001c40| 69 6f 6e 20 6f 66 20 68 | 6f 77 20 79 6f 75 20 77 |ion of h|ow you w|
|00001c50| 61 6e 74 20 73 6c 61 63 | 6b 20 55 52 4c 73 20 74 |ant slac|k URLs t|
|00001c60| 6f 20 62 65 20 70 61 72 | 73 65 64 20 2a 2f 0d 09 |o be par|sed */..|
|00001c70| 2f 2a 20 64 61 74 61 20 | 70 6f 69 6e 74 73 20 74 |/* data |points t|
|00001c80| 6f 20 74 68 65 20 62 65 | 67 69 6e 6e 69 6e 67 20 |o the be|ginning |
|00001c90| 6f 66 20 74 68 65 20 74 | 65 78 74 20 2a 2f 0d 09 |of the t|ext */..|
|00001ca0| 2f 2a 20 6c 65 6e 20 69 | 73 20 74 68 65 20 6c 65 |/* len i|s the le|
|00001cb0| 6e 67 74 68 20 6f 66 20 | 74 68 65 20 74 65 78 74 |ngth of |the text|
|00001cc0| 20 2a 2f 0d 09 2f 2a 20 | 73 65 6c 53 74 61 72 74 | */../* |selStart|
|00001cd0| 20 69 73 20 74 68 65 20 | 73 74 61 72 74 20 6f 66 | is the |start of|
|00001ce0| 20 74 68 65 20 63 75 72 | 72 65 6e 74 20 73 65 6c | the cur|rent sel|
|00001cf0| 65 63 74 69 6f 6e 20 2a | 2f 0d 09 2f 2a 20 73 65 |ection *|/../* se|
|00001d00| 6c 45 6e 64 20 69 73 20 | 74 68 65 20 65 6e 64 20 |lEnd is |the end |
|00001d10| 6f 66 20 74 68 65 20 63 | 75 72 72 65 6e 74 20 73 |of the c|urrent s|
|00001d20| 65 6c 65 63 74 69 6f 6e | 20 2a 2f 0d 09 2f 2a 20 |election| */../* |
|00001d30| 62 6f 74 68 20 6f 66 20 | 74 68 65 73 65 20 61 72 |both of |these ar|
|00001d40| 65 20 69 6e 74 65 72 70 | 72 65 74 65 64 20 61 73 |e interp|reted as|
|00001d50| 20 70 65 72 20 54 65 78 | 74 45 64 69 74 20 2a 2f | per Tex|tEdit */|
|00001d60| 0d 09 2f 2a 20 62 6f 74 | 68 20 6f 66 20 74 68 65 |../* bot|h of the|
|00001d70| 73 65 20 61 72 65 20 61 | 64 6a 75 73 74 65 64 20 |se are a|djusted |
|00001d80| 74 6f 20 69 6e 64 69 63 | 61 74 65 20 74 68 65 20 |to indic|ate the |
|00001d90| 62 6f 75 6e 64 73 20 6f | 66 20 74 68 65 20 74 65 |bounds o|f the te|
|00001da0| 78 74 20 74 68 61 74 20 | 77 61 73 20 69 6e 74 65 |xt that |was inte|
|00001db0| 72 70 72 65 74 65 64 20 | 61 73 20 61 20 55 52 4c |rpreted |as a URL|
|00001dc0| 20 2a 2f 0d 09 2f 2a 20 | 74 68 65 20 55 52 4c 20 | */../* |the URL |
|00001dd0| 69 73 20 63 6f 70 69 65 | 64 20 69 6e 74 6f 20 74 |is copie|d into t|
|00001de0| 68 65 20 75 72 6c 20 68 | 61 6e 64 6c 65 2c 20 77 |he url h|andle, w|
|00001df0| 68 69 63 68 20 69 73 20 | 72 65 73 69 7a 65 64 20 |hich is |resized |
|00001e00| 74 6f 20 61 63 63 6f 6d | 6f 64 61 74 65 20 74 68 |to accom|odate th|
|00001e10| 65 20 55 52 4c 20 2a 2f | 0d 0d 09 70 61 73 63 61 |e URL */|...pasca|
|00001e20| 6c 20 49 43 45 72 72 6f | 72 20 49 43 4c 61 75 6e |l ICErro|r ICLaun|
|00001e30| 63 68 55 52 4c 28 49 43 | 49 6e 73 74 61 6e 63 65 |chURL(IC|Instance|
|00001e40| 20 69 6e 73 74 2c 20 43 | 6f 6e 73 74 53 74 72 32 | inst, C|onstStr2|
|00001e50| 35 35 50 61 72 61 6d 20 | 68 69 6e 74 2c 20 50 74 |55Param |hint, Pt|
|00001e60| 72 20 64 61 74 61 2c 20 | 6c 6f 6e 67 20 6c 65 6e |r data, |long len|
|00001e70| 2c 20 6c 6f 6e 67 20 2a | 73 65 6c 53 74 61 72 74 |, long *|selStart|
|00001e80| 2c 20 6c 6f 6e 67 20 2a | 73 65 6c 45 6e 64 29 3b |, long *|selEnd);|
|00001e90| 0d 09 2f 2a 20 72 65 71 | 75 69 72 65 73 20 49 43 |../* req|uires IC|
|00001ea0| 20 31 2e 31 20 2a 2f 0d | 09 2f 2a 20 74 68 69 73 | 1.1 */.|./* this|
|00001eb0| 20 72 6f 75 74 69 6e 65 | 20 6d 61 79 20 62 65 20 | routine| may be |
|00001ec0| 63 61 6c 6c 65 64 20 77 | 69 74 68 6f 75 74 20 61 |called w|ithout a|
|00001ed0| 20 49 43 42 65 67 69 6e | 2f 49 43 45 6e 64 20 70 | ICBegin|/ICEnd p|
|00001ee0| 61 69 72 20 2a 2f 0d 09 | 2f 2a 20 69 64 65 6e 74 |air */..|/* ident|
|00001ef0| 69 63 61 6c 20 74 6f 20 | 50 61 72 73 65 55 52 4c |ical to |ParseURL|
|00001f00| 20 62 75 74 20 69 74 20 | 6c 61 75 6e 63 68 65 73 | but it |launches|
|00001f10| 20 74 68 65 20 61 70 70 | 72 6f 70 72 69 61 74 65 | the app|ropriate|
|00001f20| 20 61 70 70 6c 69 63 61 | 74 69 6f 6e 20 28 61 73 | applica|tion (as|
|00001f30| 20 73 70 65 63 69 66 69 | 65 64 20 69 6e 20 74 68 | specifi|ed in th|
|00001f40| 65 20 27 48 65 6c 70 65 | 72 a5 27 20 70 72 65 66 |e 'Helpe|r.' pref|
|00001f50| 65 72 65 6e 63 65 20 2a | 2f 0d 09 2f 2a 20 61 6e |erence *|/../* an|
|00001f60| 64 20 73 65 6e 64 73 20 | 69 74 20 61 20 47 55 52 |d sends |it a GUR|
|00001f70| 4c 20 41 70 70 6c 65 45 | 76 65 6e 74 20 2a 2f 0d |L AppleE|vent */.|
|00001f80| 09 2f 2a 20 79 6f 75 72 | 20 63 6f 64 65 20 6d 75 |./* your| code mu|
|00001f90| 73 74 20 62 65 20 72 75 | 6e 6e 69 6e 67 20 69 6e |st be ru|nning in|
|00001fa0| 20 74 68 65 20 63 6f 6e | 74 65 78 74 20 6f 66 20 | the con|text of |
|00001fb0| 61 20 68 69 67 68 20 6c | 65 76 65 6c 20 65 76 65 |a high l|evel eve|
|00001fc0| 6e 74 20 61 77 61 72 65 | 20 61 70 70 6c 69 63 61 |nt aware| applica|
|00001fd0| 74 69 6f 6e 20 66 6f 72 | 20 74 68 69 73 20 74 6f |tion for| this to|
|00001fe0| 20 77 6f 72 6b 20 2a 2f | 0d 0d 09 2f 2a 20 2d 2d | work */|.../* --|
|00001ff0| 2d 2d 2d 20 4d 61 70 70 | 69 6e 67 73 20 52 6f 75 |--- Mapp|ings Rou|
|00002000| 74 69 6e 65 73 20 2d 2d | 2d 2d 2d 20 2a 2f 0d 0d |tines --|--- */..|
|00002010| 09 2f 2a 20 52 6f 75 74 | 69 6e 65 73 20 66 6f 72 |./* Rout|ines for|
|00002020| 20 69 6e 74 65 72 72 6f | 67 61 74 69 6e 67 20 6d | interro|gating m|
|00002030| 61 70 70 69 6e 67 73 20 | 64 61 74 61 62 61 73 65 |appings |database|
|00002040| 20 2a 2f 0d 09 2f 2a 20 | 41 6c 6c 20 6f 66 20 74 | */../* |All of t|
|00002050| 68 65 73 65 20 72 6f 75 | 74 69 6e 65 73 20 72 65 |hese rou|tines re|
|00002060| 71 75 69 72 65 20 49 43 | 20 31 2e 31 20 2a 2f 0d |quire IC| 1.1 */.|
|00002070| 0d 09 2f 2a 20 48 69 67 | 68 20 4c 65 76 65 6c 20 |../* Hig|h Level |
|00002080| 52 6f 75 74 69 6e 65 73 | 20 2a 2f 0d 0d 09 2f 2a |Routines| */.../*|
|00002090| 20 79 6f 75 20 64 6f 20 | 6e 6f 74 20 6e 65 65 64 | you do |not need|
|000020a0| 20 74 6f 20 63 61 6c 6c | 20 62 65 67 69 6e 2f 65 | to call| begin/e|
|000020b0| 6e 64 20 61 72 6f 75 6e | 64 20 61 6e 79 20 6f 66 |nd aroun|d any of|
|000020c0| 20 74 68 65 73 65 20 68 | 69 67 68 20 6c 65 76 65 | these h|igh leve|
|000020d0| 6c 20 72 6f 75 74 69 6e | 65 73 20 2a 2f 0d 09 2f |l routin|es */../|
|000020e0| 2a 20 62 75 74 20 69 66 | 20 79 6f 75 27 72 65 20 |* but if| you're |
|000020f0| 67 6f 69 6e 67 20 74 6f | 20 63 61 6c 6c 20 74 68 |going to| call th|
|00002100| 65 6d 20 72 65 70 65 61 | 74 65 64 6c 79 2c 20 69 |em repea|tedly, i|
|00002110| 74 20 77 69 6c 6c 20 68 | 65 6c 70 20 2a 2f 0d 0d |t will h|elp */..|
|00002120| 09 70 61 73 63 61 6c 20 | 49 43 45 72 72 6f 72 20 |.pascal |ICError |
|00002130| 49 43 4d 61 70 46 69 6c | 65 6e 61 6d 65 28 49 43 |ICMapFil|ename(IC|
|00002140| 49 6e 73 74 61 6e 63 65 | 20 69 6e 73 74 2c 20 43 |Instance| inst, C|
|00002150| 6f 6e 73 74 53 74 72 32 | 35 35 50 61 72 61 6d 20 |onstStr2|55Param |
|00002160| 66 69 6c 65 6e 61 6d 65 | 2c 20 49 43 4d 61 70 45 |filename|, ICMapE|
|00002170| 6e 74 72 79 20 2a 65 6e | 74 72 79 29 3b 0d 09 2f |ntry *en|try);../|
|00002180| 2a 20 68 69 67 68 20 6c | 65 76 65 6c 20 69 6e 74 |* high l|evel int|
|00002190| 65 72 66 61 63 65 20 74 | 6f 20 74 68 65 20 6d 61 |erface t|o the ma|
|000021a0| 70 70 69 6e 67 73 20 64 | 61 74 61 62 61 73 65 20 |ppings d|atabase |
|000021b0| 2a 2f 0d 09 2f 2a 20 74 | 61 6b 65 73 20 61 20 66 |*/../* t|akes a f|
|000021c0| 69 6c 65 6e 61 6d 65 20 | 61 6e 64 20 72 65 74 75 |ilename |and retu|
|000021d0| 72 6e 73 20 74 68 65 20 | 69 6e 63 6f 6d 69 6e 67 |rns the |incoming|
|000021e0| 20 65 6e 74 72 79 20 61 | 73 73 6f 63 69 61 74 65 | entry a|ssociate|
|000021f0| 64 20 77 69 74 68 20 74 | 68 61 74 20 66 69 6c 65 |d with t|hat file|
|00002200| 27 73 20 65 78 74 65 6e | 73 69 6f 6e 20 2a 2f 0d |'s exten|sion */.|
|00002210| 09 2f 2a 20 6f 72 20 65 | 72 72 6f 72 73 20 77 69 |./* or e|rrors wi|
|00002220| 74 68 20 69 63 50 72 65 | 66 4e 6f 74 46 6f 75 6e |th icPre|fNotFoun|
|00002230| 64 45 72 72 20 2a 2f 0d | 0d 09 70 61 73 63 61 6c |dErr */.|..pascal|
|00002240| 20 49 43 45 72 72 6f 72 | 20 49 43 4d 61 70 54 79 | ICError| ICMapTy|
|00002250| 70 65 43 72 65 61 74 6f | 72 28 49 43 49 6e 73 74 |peCreato|r(ICInst|
|00002260| 61 6e 63 65 20 69 6e 73 | 74 2c 20 4f 53 54 79 70 |ance ins|t, OSTyp|
|00002270| 65 20 66 54 79 70 65 2c | 20 4f 53 54 79 70 65 20 |e fType,| OSType |
|00002280| 66 43 72 65 61 74 6f 72 | 2c 20 43 6f 6e 73 74 53 |fCreator|, ConstS|
|00002290| 74 72 32 35 35 50 61 72 | 61 6d 20 66 69 6c 65 6e |tr255Par|am filen|
|000022a0| 61 6d 65 2c 20 49 43 4d | 61 70 45 6e 74 72 79 20 |ame, ICM|apEntry |
|000022b0| 2a 65 6e 74 72 79 29 3b | 0d 09 2f 2a 20 68 69 67 |*entry);|../* hig|
|000022c0| 68 20 6c 65 76 65 6c 20 | 69 6e 74 65 72 66 61 63 |h level |interfac|
|000022d0| 65 20 74 6f 20 74 68 65 | 20 6d 61 70 70 69 6e 67 |e to the| mapping|
|000022e0| 73 20 64 61 74 61 62 61 | 73 65 20 2a 2f 0d 09 2f |s databa|se */../|
|000022f0| 2a 20 74 61 6b 65 73 20 | 61 20 66 69 6c 65 6e 61 |* takes |a filena|
|00002300| 6d 65 20 61 6e 64 20 72 | 65 74 75 72 6e 73 20 74 |me and r|eturns t|
|00002310| 68 65 20 6f 75 74 67 6f | 69 6e 67 20 65 6e 74 72 |he outgo|ing entr|
|00002320| 79 20 61 73 73 6f 63 69 | 61 74 65 64 20 77 69 74 |y associ|ated wit|
|00002330| 68 20 74 68 61 74 20 74 | 79 70 65 2c 20 63 72 65 |h that t|ype, cre|
|00002340| 61 74 6f 72 20 61 6e 64 | 20 66 69 6c 65 6e 61 6d |ator and| filenam|
|00002350| 65 20 2a 2f 0d 09 2f 2a | 20 6f 72 20 65 72 72 6f |e */../*| or erro|
|00002360| 72 73 20 77 69 74 68 20 | 69 63 50 72 65 66 4e 6f |rs with |icPrefNo|
|00002370| 74 46 6f 75 6e 64 45 72 | 72 20 2a 2f 0d 0d 09 2f |tFoundEr|r */.../|
|00002380| 2a 20 4d 69 64 20 4c 65 | 76 65 6c 20 52 6f 75 74 |* Mid Le|vel Rout|
|00002390| 69 6e 65 73 20 2a 2f 0d | 0d 09 2f 2a 20 79 6f 75 |ines */.|../* you|
|000023a0| 20 64 6f 20 6e 6f 74 20 | 6e 65 65 64 20 74 6f 20 | do not |need to |
|000023b0| 63 61 6c 6c 20 62 65 67 | 69 6e 2f 65 6e 64 20 61 |call beg|in/end a|
|000023c0| 72 6f 75 6e 64 20 61 6e | 79 20 6f 66 20 74 68 65 |round an|y of the|
|000023d0| 73 65 20 6d 69 64 20 6c | 65 76 65 6c 20 72 6f 75 |se mid l|evel rou|
|000023e0| 74 69 6e 65 73 20 2a 2f | 0d 0d 09 70 61 73 63 61 |tines */|...pasca|
|000023f0| 6c 20 49 43 45 72 72 6f | 72 20 49 43 4d 61 70 45 |l ICErro|r ICMapE|
|00002400| 6e 74 72 69 65 73 46 69 | 6c 65 6e 61 6d 65 28 49 |ntriesFi|lename(I|
|00002410| 43 49 6e 73 74 61 6e 63 | 65 20 69 6e 73 74 2c 20 |CInstanc|e inst, |
|00002420| 48 61 6e 64 6c 65 20 65 | 6e 74 72 69 65 73 2c 20 |Handle e|ntries, |
|00002430| 43 6f 6e 73 74 53 74 72 | 32 35 35 50 61 72 61 6d |ConstStr|255Param|
|00002440| 20 66 69 6c 65 6e 61 6d | 65 2c 20 49 43 4d 61 70 | filenam|e, ICMap|
|00002450| 45 6e 74 72 79 20 2a 65 | 6e 74 72 79 29 3b 0d 09 |Entry *e|ntry);..|
|00002460| 2f 2a 20 6d 69 64 20 6c | 65 76 65 6c 20 69 6e 74 |/* mid l|evel int|
|00002470| 65 72 66 61 63 65 20 74 | 6f 20 74 68 65 20 6d 61 |erface t|o the ma|
|00002480| 70 70 69 6e 67 73 20 64 | 61 74 61 62 61 73 65 20 |ppings d|atabase |
|00002490| 2a 2f 0d 09 2f 2a 20 65 | 6e 74 72 69 65 73 20 6d |*/../* e|ntries m|
|000024a0| 75 73 74 20 62 65 20 61 | 20 76 61 6c 69 64 20 49 |ust be a| valid I|
|000024b0| 43 20 6d 61 70 70 69 6e | 67 73 20 64 61 74 61 62 |C mappin|gs datab|
|000024c0| 61 73 65 20 68 61 6e 64 | 6c 65 20 2a 2f 0d 09 2f |ase hand|le */../|
|000024d0| 2a 20 74 61 6b 65 73 20 | 61 20 66 69 6c 65 6e 61 |* takes |a filena|
|000024e0| 6d 65 20 61 6e 64 20 72 | 65 74 75 72 6e 73 20 74 |me and r|eturns t|
|000024f0| 68 65 20 69 6e 63 6f 6d | 69 6e 67 20 65 6e 74 72 |he incom|ing entr|
|00002500| 79 20 61 73 73 6f 63 69 | 61 74 65 64 20 77 69 74 |y associ|ated wit|
|00002510| 68 20 74 68 61 74 20 66 | 69 6c 65 27 73 20 65 78 |h that f|ile's ex|
|00002520| 74 65 6e 73 69 6f 6e 20 | 2a 2f 0d 09 2f 2a 20 6f |tension |*/../* o|
|00002530| 72 20 65 72 72 6f 72 73 | 20 77 69 74 68 20 69 63 |r errors| with ic|
|00002540| 50 72 65 66 4e 6f 74 46 | 6f 75 6e 64 45 72 72 20 |PrefNotF|oundErr |
|00002550| 2a 2f 0d 0d 09 70 61 73 | 63 61 6c 20 49 43 45 72 |*/...pas|cal ICEr|
|00002560| 72 6f 72 20 49 43 4d 61 | 70 45 6e 74 72 69 65 73 |ror ICMa|pEntries|
|00002570| 54 79 70 65 43 72 65 61 | 74 6f 72 28 49 43 49 6e |TypeCrea|tor(ICIn|
|00002580| 73 74 61 6e 63 65 20 69 | 6e 73 74 2c 20 48 61 6e |stance i|nst, Han|
|00002590| 64 6c 65 20 65 6e 74 72 | 69 65 73 2c 20 4f 53 54 |dle entr|ies, OST|
|000025a0| 79 70 65 20 66 54 79 70 | 65 2c 20 4f 53 54 79 70 |ype fTyp|e, OSTyp|
|000025b0| 65 20 66 43 72 65 61 74 | 6f 72 2c 20 43 6f 6e 73 |e fCreat|or, Cons|
|000025c0| 74 53 74 72 32 35 35 50 | 61 72 61 6d 20 66 69 6c |tStr255P|aram fil|
|000025d0| 65 6e 61 6d 65 2c 20 49 | 43 4d 61 70 45 6e 74 72 |ename, I|CMapEntr|
|000025e0| 79 20 2a 65 6e 74 72 79 | 29 3b 0d 09 2f 2a 20 6d |y *entry|);../* m|
|000025f0| 69 64 20 6c 65 76 65 6c | 20 69 6e 74 65 72 66 61 |id level| interfa|
|00002600| 63 65 20 74 6f 20 74 68 | 65 20 6d 61 70 70 69 6e |ce to th|e mappin|
|00002610| 67 73 20 64 61 74 61 62 | 61 73 65 20 2a 2f 0d 09 |gs datab|ase */..|
|00002620| 2f 2a 20 65 6e 74 72 69 | 65 73 20 6d 75 73 74 20 |/* entri|es must |
|00002630| 62 65 20 61 20 76 61 6c | 69 64 20 49 43 20 6d 61 |be a val|id IC ma|
|00002640| 70 70 69 6e 67 73 20 64 | 61 74 61 62 61 73 65 20 |ppings d|atabase |
|00002650| 68 61 6e 64 6c 65 20 2a | 2f 0d 09 2f 2a 20 74 61 |handle *|/../* ta|
|00002660| 6b 65 73 20 61 20 66 69 | 6c 65 6e 61 6d 65 20 61 |kes a fi|lename a|
|00002670| 6e 64 20 72 65 74 75 72 | 6e 73 20 74 68 65 20 6f |nd retur|ns the o|
|00002680| 75 74 67 6f 69 6e 67 20 | 65 6e 74 72 79 20 61 73 |utgoing |entry as|
|00002690| 73 6f 63 69 61 74 65 64 | 20 77 69 74 68 20 74 68 |sociated| with th|
|000026a0| 61 74 20 74 79 70 65 2c | 20 63 72 65 61 74 6f 72 |at type,| creator|
|000026b0| 20 61 6e 64 20 66 69 6c | 65 6e 61 6d 65 20 2a 2f | and fil|ename */|
|000026c0| 0d 09 2f 2a 20 6f 72 20 | 65 72 72 6f 72 73 20 77 |../* or |errors w|
|000026d0| 69 74 68 20 69 63 50 72 | 65 66 4e 6f 74 46 6f 75 |ith icPr|efNotFou|
|000026e0| 6e 64 45 72 72 20 2a 2f | 0d 0d 09 2f 2a 20 4c 6f |ndErr */|.../* Lo|
|000026f0| 77 20 4c 65 76 65 6c 20 | 52 6f 75 74 69 6e 65 73 |w Level |Routines|
|00002700| 20 2a 2f 0d 0d 09 2f 2a | 20 79 6f 75 20 64 6f 20 | */.../*| you do |
|00002710| 6e 6f 74 20 6e 65 65 64 | 20 74 6f 20 63 61 6c 6c |not need| to call|
|00002720| 20 62 65 67 69 6e 2f 65 | 6e 64 20 61 72 6f 75 6e | begin/e|nd aroun|
|00002730| 64 20 61 6e 79 20 6f 66 | 20 74 68 65 73 65 20 6c |d any of| these l|
|00002740| 6f 77 20 6c 65 76 65 6c | 20 72 6f 75 74 69 6e 65 |ow level| routine|
|00002750| 73 20 2a 2f 0d 0d 09 70 | 61 73 63 61 6c 20 49 43 |s */...p|ascal IC|
|00002760| 45 72 72 6f 72 20 49 43 | 43 6f 75 6e 74 4d 61 70 |Error IC|CountMap|
|00002770| 45 6e 74 72 69 65 73 28 | 49 43 49 6e 73 74 61 6e |Entries(|ICInstan|
|00002780| 63 65 20 69 6e 73 74 2c | 20 48 61 6e 64 6c 65 20 |ce inst,| Handle |
|00002790| 65 6e 74 72 69 65 73 2c | 20 6c 6f 6e 67 20 2a 63 |entries,| long *c|
|000027a0| 6f 75 6e 74 29 3b 0d 09 | 2f 2a 20 65 6e 74 72 69 |ount);..|/* entri|
|000027b0| 65 73 20 6d 75 73 74 20 | 62 65 20 61 20 76 61 6c |es must |be a val|
|000027c0| 69 64 20 49 43 20 6d 61 | 70 70 69 6e 67 73 20 64 |id IC ma|ppings d|
|000027d0| 61 74 61 62 61 73 65 20 | 68 61 6e 64 6c 65 20 2a |atabase |handle *|
|000027e0| 2f 0d 09 2f 2a 20 63 6f | 75 6e 74 20 74 68 65 20 |/../* co|unt the |
|000027f0| 6e 75 6d 62 65 72 20 6f | 66 20 65 6e 74 72 69 65 |number o|f entrie|
|00002800| 73 20 69 6e 20 74 68 65 | 20 4d 61 70 70 69 6e 67 |s in the| Mapping|
|00002810| 73 20 64 61 74 61 62 61 | 73 65 20 2a 2f 0d 0d 09 |s databa|se */...|
|00002820| 70 61 73 63 61 6c 20 49 | 43 45 72 72 6f 72 20 49 |pascal I|CError I|
|00002830| 43 47 65 74 49 6e 64 4d | 61 70 45 6e 74 72 79 28 |CGetIndM|apEntry(|
|00002840| 49 43 49 6e 73 74 61 6e | 63 65 20 69 6e 73 74 2c |ICInstan|ce inst,|
|00002850| 20 48 61 6e 64 6c 65 20 | 65 6e 74 72 69 65 73 2c | Handle |entries,|
|00002860| 20 6c 6f 6e 67 20 6e 64 | 78 2c 20 6c 6f 6e 67 20 | long nd|x, long |
|00002870| 2a 70 6f 73 2c 20 49 43 | 4d 61 70 45 6e 74 72 79 |*pos, IC|MapEntry|
|00002880| 20 2a 65 6e 74 72 79 29 | 3b 0d 09 2f 2a 20 65 6e | *entry)|;../* en|
|00002890| 74 72 69 65 73 20 6d 75 | 73 74 20 62 65 20 61 20 |tries mu|st be a |
|000028a0| 76 61 6c 69 64 20 49 43 | 20 6d 61 70 70 69 6e 67 |valid IC| mapping|
|000028b0| 73 20 64 61 74 61 62 61 | 73 65 20 68 61 6e 64 6c |s databa|se handl|
|000028c0| 65 20 2a 2f 0d 09 2f 2a | 20 72 65 74 75 72 6e 20 |e */../*| return |
|000028d0| 74 68 65 20 6e 64 78 27 | 74 68 20 65 6e 74 72 79 |the ndx'|th entry|
|000028e0| 20 69 6e 20 74 68 65 20 | 6d 61 70 70 69 6e 67 73 | in the |mappings|
|000028f0| 20 64 61 74 61 62 61 73 | 65 20 2a 2f 0d 09 2f 2a | databas|e */../*|
|00002900| 20 6e 64 78 20 6d 75 73 | 74 20 62 65 20 66 72 6f | ndx mus|t be fro|
|00002910| 6d 20 31 20 74 6f 20 43 | 6f 75 6e 74 4d 61 70 45 |m 1 to C|ountMapE|
|00002920| 6e 74 72 69 65 73 20 2a | 2f 0d 09 2f 2a 20 70 6f |ntries *|/../* po|
|00002930| 73 20 69 73 20 69 67 6e | 6f 72 65 64 20 6f 6e 20 |s is ign|ored on |
|00002940| 69 6e 70 75 74 20 61 6e | 64 20 63 6f 6d 65 73 20 |input an|d comes |
|00002950| 62 61 63 6b 20 61 73 20 | 74 68 65 20 70 6f 73 69 |back as |the posi|
|00002960| 74 69 6f 6e 20 6f 66 20 | 74 68 65 20 65 6e 74 72 |tion of |the entr|
|00002970| 79 20 69 6e 20 74 68 65 | 20 64 61 74 61 62 61 73 |y in the| databas|
|00002980| 65 20 2a 2f 0d 09 2f 2a | 20 65 6e 74 72 79 20 69 |e */../*| entry i|
|00002990| 73 20 69 67 6e 6f 72 65 | 64 20 6f 6e 20 69 6e 70 |s ignore|d on inp|
|000029a0| 75 74 20 61 6e 64 20 63 | 6f 6d 65 73 20 62 61 63 |ut and c|omes bac|
|000029b0| 6b 20 61 73 20 74 68 65 | 20 64 61 74 61 62 61 73 |k as the| databas|
|000029c0| 65 20 65 6e 74 72 79 20 | 61 74 20 74 68 65 20 6e |e entry |at the n|
|000029d0| 64 78 20 70 6f 73 69 74 | 69 6f 6e 20 2a 2f 0d 0d |dx posit|ion */..|
|000029e0| 09 70 61 73 63 61 6c 20 | 49 43 45 72 72 6f 72 20 |.pascal |ICError |
|000029f0| 49 43 47 65 74 4d 61 70 | 45 6e 74 72 79 28 49 43 |ICGetMap|Entry(IC|
|00002a00| 49 6e 73 74 61 6e 63 65 | 20 69 6e 73 74 2c 20 48 |Instance| inst, H|
|00002a10| 61 6e 64 6c 65 20 65 6e | 74 72 69 65 73 2c 20 6c |andle en|tries, l|
|00002a20| 6f 6e 67 20 70 6f 73 2c | 20 49 43 4d 61 70 45 6e |ong pos,| ICMapEn|
|00002a30| 74 72 79 20 2a 65 6e 74 | 72 79 29 3b 0d 09 2f 2a |try *ent|ry);../*|
|00002a40| 20 65 6e 74 72 69 65 73 | 20 6d 75 73 74 20 62 65 | entries| must be|
|00002a50| 20 61 20 76 61 6c 69 64 | 20 49 43 20 6d 61 70 70 | a valid| IC mapp|
|00002a60| 69 6e 67 73 20 64 61 74 | 61 62 61 73 65 20 68 61 |ings dat|abase ha|
|00002a70| 6e 64 6c 65 20 2a 2f 0d | 09 2f 2a 20 72 65 74 75 |ndle */.|./* retu|
|00002a80| 72 6e 20 74 68 65 20 65 | 6e 74 72 79 20 61 74 20 |rn the e|ntry at |
|00002a90| 70 6f 73 69 74 69 6f 6e | 20 70 6f 73 20 2a 2f 0d |position| pos */.|
|00002aa0| 09 2f 2a 20 70 6f 73 20 | 73 68 6f 75 6c 64 20 62 |./* pos |should b|
|00002ab0| 65 20 61 20 76 61 6c 69 | 64 20 65 6e 74 72 79 20 |e a vali|d entry |
|00002ac0| 73 74 61 72 74 20 70 6f | 73 69 74 69 6f 6e 20 2a |start po|sition *|
|00002ad0| 2f 0d 09 2f 2a 20 73 65 | 74 20 70 6f 73 20 74 6f |/../* se|t pos to|
|00002ae0| 20 30 20 66 6f 72 20 74 | 68 65 20 66 69 72 73 74 | 0 for t|he first|
|00002af0| 20 65 6e 74 72 79 20 2a | 2f 0d 09 2f 2a 20 73 65 | entry *|/../* se|
|00002b00| 74 20 70 6f 73 20 74 6f | 20 70 6f 73 20 2b 20 65 |t pos to| pos + e|
|00002b10| 6e 74 72 79 2e 74 6f 74 | 61 6c 5f 73 69 7a 65 20 |ntry.tot|al_size |
|00002b20| 66 6f 72 20 73 75 62 73 | 65 71 75 65 6e 74 20 65 |for subs|equent e|
|00002b30| 6e 74 72 69 65 73 20 2a | 2f 0d 09 2f 2a 20 65 6e |ntries *|/../* en|
|00002b40| 74 72 79 20 69 73 20 69 | 67 6e 6f 72 65 64 20 6f |try is i|gnored o|
|00002b50| 6e 20 69 6e 70 75 74 20 | 61 6e 64 20 63 6f 6d 65 |n input |and come|
|00002b60| 73 20 62 61 63 6b 20 61 | 73 20 74 68 65 20 64 61 |s back a|s the da|
|00002b70| 74 61 62 61 73 65 20 65 | 6e 74 72 79 20 61 74 20 |tabase e|ntry at |
|00002b80| 70 6f 73 69 74 69 6f 6e | 20 70 6f 73 20 2a 2f 0d |position| pos */.|
|00002b90| 0d 09 70 61 73 63 61 6c | 20 49 43 45 72 72 6f 72 |..pascal| ICError|
|00002ba0| 20 49 43 53 65 74 4d 61 | 70 45 6e 74 72 79 28 49 | ICSetMa|pEntry(I|
|00002bb0| 43 49 6e 73 74 61 6e 63 | 65 20 69 6e 73 74 2c 20 |CInstanc|e inst, |
|00002bc0| 48 61 6e 64 6c 65 20 65 | 6e 74 72 69 65 73 2c 20 |Handle e|ntries, |
|00002bd0| 6c 6f 6e 67 20 70 6f 73 | 2c 20 49 43 4d 61 70 45 |long pos|, ICMapE|
|00002be0| 6e 74 72 79 20 2a 65 6e | 74 72 79 29 3b 0d 09 2f |ntry *en|try);../|
|00002bf0| 2a 20 65 6e 74 72 69 65 | 73 20 6d 75 73 74 20 62 |* entrie|s must b|
|00002c00| 65 20 61 20 76 61 6c 69 | 64 20 49 43 20 6d 61 70 |e a vali|d IC map|
|00002c10| 70 69 6e 67 73 20 64 61 | 74 61 62 61 73 65 20 68 |pings da|tabase h|
|00002c20| 61 6e 64 6c 65 20 2a 2f | 0d 09 2f 2a 20 73 65 74 |andle */|../* set|
|00002c30| 20 74 68 65 20 65 6e 74 | 72 79 20 61 74 20 70 6f | the ent|ry at po|
|00002c40| 73 69 74 69 6f 6e 20 70 | 6f 73 20 2a 2f 0d 09 2f |sition p|os */../|
|00002c50| 2a 20 70 6f 73 20 73 68 | 6f 75 6c 64 20 62 65 20 |* pos sh|ould be |
|00002c60| 61 20 76 61 6c 69 64 20 | 65 6e 74 72 79 20 73 74 |a valid |entry st|
|00002c70| 61 72 74 20 70 6f 73 69 | 74 69 6f 6e 20 2a 2f 0d |art posi|tion */.|
|00002c80| 09 2f 2a 20 61 6e 79 20 | 75 73 65 72 20 64 61 74 |./* any |user dat|
|00002c90| 61 20 61 74 20 74 68 65 | 20 65 6e 64 20 6f 66 20 |a at the| end of |
|00002ca0| 74 68 65 20 65 6e 74 72 | 79 20 69 73 20 70 72 65 |the entr|y is pre|
|00002cb0| 73 65 72 76 65 64 20 2a | 2f 0d 09 2f 2a 20 65 6e |served *|/../* en|
|00002cc0| 74 72 79 20 69 73 20 6e | 6f 74 20 6d 6f 64 69 66 |try is n|ot modif|
|00002cd0| 69 65 64 2c 20 69 74 27 | 73 20 61 20 76 61 72 20 |ied, it'|s a var |
|00002ce0| 70 61 72 61 6d 65 74 65 | 72 20 73 69 6d 70 6c 79 |paramete|r simply|
|00002cf0| 20 74 6f 20 70 72 65 73 | 65 72 76 65 20 73 74 61 | to pres|erve sta|
|00002d00| 63 6b 20 73 70 61 63 65 | 20 2a 2f 0d 0d 09 70 61 |ck space| */...pa|
|00002d10| 73 63 61 6c 20 49 43 45 | 72 72 6f 72 20 49 43 44 |scal ICE|rror ICD|
|00002d20| 65 6c 65 74 65 4d 61 70 | 45 6e 74 72 79 28 49 43 |eleteMap|Entry(IC|
|00002d30| 49 6e 73 74 61 6e 63 65 | 20 69 6e 73 74 2c 20 48 |Instance| inst, H|
|00002d40| 61 6e 64 6c 65 20 65 6e | 74 72 69 65 73 2c 20 6c |andle en|tries, l|
|00002d50| 6f 6e 67 20 70 6f 73 29 | 3b 0d 09 2f 2a 20 65 6e |ong pos)|;../* en|
|00002d60| 74 72 69 65 73 20 6d 75 | 73 74 20 62 65 20 61 20 |tries mu|st be a |
|00002d70| 76 61 6c 69 64 20 49 43 | 20 6d 61 70 70 69 6e 67 |valid IC| mapping|
|00002d80| 73 20 64 61 74 61 62 61 | 73 65 20 68 61 6e 64 6c |s databa|se handl|
|00002d90| 65 20 2a 2f 0d 09 2f 2a | 20 64 65 6c 65 74 65 20 |e */../*| delete |
|00002da0| 74 68 65 20 65 6e 74 72 | 79 20 61 74 20 70 6f 73 |the entr|y at pos|
|00002db0| 69 74 69 6f 6e 20 70 6f | 73 20 2a 2f 0d 09 2f 2a |ition po|s */../*|
|00002dc0| 20 70 6f 73 20 73 68 6f | 75 6c 64 20 62 65 20 61 | pos sho|uld be a|
|00002dd0| 20 76 61 6c 69 64 20 65 | 6e 74 72 79 20 73 74 61 | valid e|ntry sta|
|00002de0| 72 74 20 70 6f 73 69 74 | 69 6f 6e 20 2a 2f 0d 09 |rt posit|ion */..|
|00002df0| 2f 2a 20 61 6c 73 6f 20 | 64 65 6c 65 74 65 73 20 |/* also |deletes |
|00002e00| 74 68 65 20 75 73 65 72 | 20 64 61 74 61 20 61 73 |the user| data as|
|00002e10| 73 6f 63 69 61 74 65 64 | 20 77 69 74 68 20 74 68 |sociated| with th|
|00002e20| 65 20 65 6e 74 72 79 20 | 2a 2f 0d 0d 09 70 61 73 |e entry |*/...pas|
|00002e30| 63 61 6c 20 49 43 45 72 | 72 6f 72 20 49 43 41 64 |cal ICEr|ror ICAd|
|00002e40| 64 4d 61 70 45 6e 74 72 | 79 28 49 43 49 6e 73 74 |dMapEntr|y(ICInst|
|00002e50| 61 6e 63 65 20 69 6e 73 | 74 2c 20 48 61 6e 64 6c |ance ins|t, Handl|
|00002e60| 65 20 65 6e 74 72 69 65 | 73 2c 20 49 43 4d 61 70 |e entrie|s, ICMap|
|00002e70| 45 6e 74 72 79 20 2a 65 | 6e 74 72 79 29 3b 0d 09 |Entry *e|ntry);..|
|00002e80| 2f 2a 20 65 6e 74 72 69 | 65 73 20 6d 75 73 74 20 |/* entri|es must |
|00002e90| 62 65 20 61 20 76 61 6c | 69 64 20 49 43 20 6d 61 |be a val|id IC ma|
|00002ea0| 70 70 69 6e 67 73 20 64 | 61 74 61 62 61 73 65 20 |ppings d|atabase |
|00002eb0| 68 61 6e 64 6c 65 20 2a | 2f 0d 09 2f 2a 20 61 64 |handle *|/../* ad|
|00002ec0| 64 20 65 6e 74 72 79 20 | 74 6f 20 74 68 65 20 6d |d entry |to the m|
|00002ed0| 61 70 70 69 6e 67 73 20 | 64 61 74 61 62 61 73 65 |appings |database|
|00002ee0| 20 2a 2f 0d 09 2f 2a 20 | 65 6e 74 72 79 20 69 73 | */../* |entry is|
|00002ef0| 20 6e 6f 74 20 6d 6f 64 | 69 66 69 65 64 2c 20 69 | not mod|ified, i|
|00002f00| 74 27 73 20 61 20 76 61 | 72 20 70 61 72 61 6d 65 |t's a va|r parame|
|00002f10| 74 65 72 20 73 69 6d 70 | 6c 79 20 74 6f 20 70 72 |ter simp|ly to pr|
|00002f20| 65 73 65 72 76 65 20 73 | 74 61 63 6b 20 73 70 61 |eserve s|tack spa|
|00002f30| 63 65 20 2a 2f 0d 0d 23 | 69 66 64 65 66 20 5f 5f |ce */..#|ifdef __|
|00002f40| 63 70 6c 75 73 70 6c 75 | 73 0d 7d 0d 23 65 6e 64 |cplusplu|s.}.#end|
|00002f50| 69 66 20 5f 5f 63 70 6c | 75 73 70 6c 75 73 0d 0d |if __cpl|usplus..|
|00002f60| 23 65 6e 64 69 66 0d 00 | 00 00 00 00 00 00 00 00 |#endif..|........|
|00002f70| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002f80| 00 00 01 00 00 00 01 6e | 00 00 00 6e 00 00 00 3e |.......n|...n...>|
|00002f90| 20 3d 20 30 2c 09 09 09 | 09 09 2f 2a 20 62 69 74 | = 0,...|../* bit|
|00002fa0| 73 20 69 6e 20 74 68 65 | 20 70 72 65 66 65 72 65 |s in the| prefere|
|00002fb0| 07 49 43 41 50 49 2e 68 | 02 00 00 00 54 45 58 54 |.ICAPI.h|....TEXT|
|00002fc0| 4d 50 53 20 01 00 00 00 | 00 00 00 00 00 00 1c 98 |MPS ....|........|
|00002fd0| 00 00 54 45 58 54 4d 50 | 53 20 01 00 00 00 00 00 |..TEXTMP|S ......|
|00002fe0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002ff0| 00 00 a9 ac 9d 9d 00 00 | 2e e7 00 00 01 ac 0d 0d |........|........|
|00003000| 23 64 65 66 69 6e 65 20 | 49 43 66 69 6c 65 74 79 |#define |ICfilety|
|00003010| 70 65 20 27 49 43 41 70 | 27 0d 23 64 65 66 69 6e |pe 'ICAp|'.#defin|
|00003020| 65 20 49 43 63 72 65 61 | 74 6f 72 20 27 49 43 41 |e ICcrea|tor 'ICA|
|00003030| 70 27 0d 0d 23 64 65 66 | 69 6e 65 20 49 43 64 65 |p'..#def|ine ICde|
|00003040| 66 61 75 6c 74 5f 66 69 | 6c 65 5f 6e 61 6d 65 20 |fault_fi|le_name |
|00003050| 22 5c 70 49 6e 74 65 72 | 6e 65 74 20 50 72 65 66 |"\pInter|net Pref|
|00003060| 65 72 65 6e 63 65 73 22 | 09 2f 2a 20 64 65 66 61 |erences"|./* defa|
|00003070| 75 6c 74 20 66 69 6c 65 | 20 6e 61 6d 65 2c 20 66 |ult file| name, f|
|00003080| 00 00 00 48 00 09 4d 6f | 6e 61 63 6f 00 48 00 00 |...H..Mo|naco.H..|
|00003090| 1f 00 82 00 00 00 00 0c | 05 b2 40 80 dd d8 45 0c |........|..@...E.|
|000030a0| 00 00 00 00 82 00 00 06 | 00 02 00 2a 00 0d 01 d1 |........|...*....|
|000030b0| 02 09 00 2a 00 0d 01 6b | 01 44 ab c0 63 06 00 00 |...*...k|.D..c...|
|000030c0| 04 b8 00 00 04 cb 00 00 | 04 7f 01 00 00 00 00 1e |........|........|
|000030d0| 00 2a 00 0d 01 d1 02 09 | 00 2a 00 0d 01 6b 01 44 |.*......|.*...k.D|
|000030e0| 00 00 04 7f 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000030f0| 01 00 00 00 01 6e 00 00 | 00 6e 00 00 00 3e 00 5f |.....n..|.n...>._|
|00003100| d5 98 0f cc 00 00 00 1c | 00 3e 00 00 4d 50 53 52 |........|.>..MPSR|
|00003110| 00 01 00 0a 03 ed ff ff | 00 00 00 00 00 00 00 00 |........|........|
|00003120| 03 f0 ff ff 00 00 00 4c | 00 62 2f dc 00 00 00 00 |.......L|.b/.....|
|00003130| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003140| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003150| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003160| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003170| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
+--------+-------------------------+-------------------------+--------+--------+