home *** CD-ROM | disk | FTP | other *** search
MacBinary | 1996-07-14 | 29.6 KB | [TEXT/MPCC] |
open in:
MacOS 8.1
|
Win98
|
DOS
view JSON data
|
view as text
This file was processed as: MacBinary
(archive/macBinary).
You can browse this item here: ICGluePPC.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, Sun Jul 14 20:22:34 1996, modified Sun Jul 14 20:22:34 1996, creator 'MPCC', type ASCII, 29604 bytes "ICGluePPC.c" , at 0x7424 456 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 | [MPCC] |
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 0b 49 43 47 6c 75 65 | 50 50 43 2e 63 00 00 00 |..ICGlue|PPC.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 4d 50 43 | 43 01 00 00 00 00 00 00 |.TEXTMPC|C.......|
|00000050| 00 00 00 00 00 73 a4 00 | 00 01 c8 ae 0f 3f ca ae |.....s..|.....?..|
|00000060| 0f 3f ca 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 fc f3 00 00 |........|........|
|00000080| 2f 2a 20 a5 a5 a5 53 74 | 61 72 74 20 48 65 61 64 |/* ...St|art Head|
|00000090| 65 72 a5 a5 a5 20 2a 2f | 0d 0d 2f 2a 20 46 69 6c |er... */|../* Fil|
|000000a0| 65 3a 20 20 20 20 20 20 | 20 20 20 50 50 43 5f 49 |e: | PPC_I|
|000000b0| 43 41 50 49 2e 63 0d 20 | 2a 20 47 65 6e 65 72 61 |CAPI.c. |* Genera|
|000000c0| 74 65 64 20 62 79 3a 20 | 31 2e 30 64 34 0d 20 2a |ted by: |1.0d4. *|
|000000d0| 20 46 6f 72 3a 20 20 20 | 20 20 20 20 20 20 20 49 | For: | I|
|000000e0| 43 20 31 2e 33 0d 20 2a | 20 4f 6e 3a 20 20 20 20 |C 1.3. *| On: |
|000000f0| 20 20 20 20 20 20 20 53 | 75 6e 64 61 79 2c 20 31 | S|unday, 1|
|00000100| 34 20 4a 75 6c 79 20 31 | 39 39 36 2c 20 32 30 3a |4 July 1|996, 20:|
|00000110| 31 39 3a 35 35 0d 20 2a | 20 0d 20 2a 20 54 68 69 |19:55. *| . * Thi|
|00000120| 73 20 66 69 6c 65 20 69 | 73 20 70 61 72 74 20 6f |s file i|s part o|
|00000130| 66 20 74 68 65 20 49 6e | 74 65 72 6e 65 74 20 43 |f the In|ternet C|
|00000140| 6f 6e 66 69 67 75 72 61 | 74 69 6f 6e 20 73 79 73 |onfigura|tion sys|
|00000150| 74 65 6d 20 61 6e 64 0d | 20 2a 20 69 73 20 70 6c |tem and.| * is pl|
|00000160| 61 63 65 64 20 69 6e 20 | 74 68 65 20 70 75 62 6c |aced in |the publ|
|00000170| 69 63 20 64 6f 6d 61 69 | 6e 20 66 6f 72 20 74 68 |ic domai|n for th|
|00000180| 65 20 62 65 6e 65 66 69 | 74 20 6f 66 20 61 6c 6c |e benefi|t of all|
|00000190| 2e 0d 20 2a 2f 0d 0d 2f | 2a 20 a5 a5 a5 45 6e 64 |.. */../|* ...End|
|000001a0| 20 48 65 61 64 65 72 a5 | a5 a5 20 2a 2f 0d 0d 23 | Header.|.. */..#|
|000001b0| 69 6e 63 6c 75 64 65 20 | 3c 54 79 70 65 73 2e 68 |include |<Types.h|
|000001c0| 3e 0d 23 69 6e 63 6c 75 | 64 65 20 3c 4d 69 78 65 |>.#inclu|de <Mixe|
|000001d0| 64 4d 6f 64 65 2e 68 3e | 0d 23 69 6e 63 6c 75 64 |dMode.h>|.#includ|
|000001e0| 65 20 3c 43 6f 6d 70 6f | 6e 65 6e 74 73 2e 68 3e |e <Compo|nents.h>|
|000001f0| 0d 0d 23 69 6e 63 6c 75 | 64 65 20 22 49 43 54 79 |..#inclu|de "ICTy|
|00000200| 70 65 73 2e 68 22 0d 23 | 69 6e 63 6c 75 64 65 20 |pes.h".#|include |
|00000210| 22 49 43 41 50 49 2e 68 | 22 0d 2f 2f 20 23 69 6e |"ICAPI.h|".// #in|
|00000220| 63 6c 75 64 65 20 22 49 | 43 43 41 50 49 2e 68 22 |clude "I|CCAPI.h"|
|00000230| 0d 0d 23 70 72 61 67 6d | 61 20 6f 70 74 69 6f 6e |..#pragm|a option|
|00000240| 73 20 61 6c 69 67 6e 3d | 6d 61 63 36 38 6b 0d 0d |s align=|mac68k..|
|00000250| 65 6e 75 6d 20 7b 0d 09 | 69 6e 74 65 72 6e 65 74 |enum {..|internet|
|00000260| 43 6f 6e 66 69 67 75 72 | 61 74 69 6f 6e 43 6f 6d |Configur|ationCom|
|00000270| 70 6f 6e 65 6e 74 54 79 | 70 65 20 3d 20 27 50 52 |ponentTy|pe = 'PR|
|00000280| 45 46 27 2c 09 09 09 09 | 09 09 09 2f 2a 20 74 68 |EF',....|.../* th|
|00000290| 65 20 63 6f 6d 70 6f 6e | 65 6e 74 20 74 79 70 65 |e compon|ent type|
|000002a0| 20 2a 2f 0d 09 69 6e 74 | 65 72 6e 65 74 43 6f 6e | */..int|ernetCon|
|000002b0| 66 69 67 75 72 61 74 69 | 6f 6e 43 6f 6d 70 6f 6e |figurati|onCompon|
|000002c0| 65 6e 74 53 75 62 54 79 | 70 65 20 3d 20 27 49 43 |entSubTy|pe = 'IC|
|000002d0| 41 70 27 09 09 09 09 09 | 20 20 2f 2a 20 74 68 65 |Ap'.....| /* the|
|000002e0| 20 63 6f 6d 70 6f 6e 65 | 6e 74 20 73 75 62 74 79 | compone|nt subty|
|000002f0| 70 65 20 2a 2f 0d 7d 3b | 0d 0d 65 6e 75 6d 20 7b |pe */.};|..enum {|
|00000300| 0d 20 20 75 70 70 43 61 | 6c 6c 43 6f 6d 70 6f 6e |. uppCa|llCompon|
|00000310| 65 6e 74 50 72 6f 63 49 | 6e 66 6f 20 3d 20 6b 50 |entProcI|nfo = kP|
|00000320| 61 73 63 61 6c 53 74 61 | 63 6b 42 61 73 65 64 0d |ascalSta|ckBased.|
|00000330| 20 20 20 20 7c 20 52 45 | 53 55 4c 54 5f 53 49 5a | | RE|SULT_SIZ|
|00000340| 45 28 6b 46 6f 75 72 42 | 79 74 65 43 6f 64 65 29 |E(kFourB|yteCode)|
|00000350| 0d 20 20 20 20 7c 20 53 | 54 41 43 4b 5f 52 4f 55 |. | S|TACK_ROU|
|00000360| 54 49 4e 45 5f 50 41 52 | 41 4d 45 54 45 52 28 31 |TINE_PAR|AMETER(1|
|00000370| 2c 20 6b 46 6f 75 72 42 | 79 74 65 43 6f 64 65 29 |, kFourB|yteCode)|
|00000380| 0d 7d 3b 0d 0d 70 61 73 | 63 61 6c 20 49 43 45 72 |.};..pas|cal ICEr|
|00000390| 72 6f 72 20 49 43 53 74 | 61 72 74 28 49 43 49 6e |ror ICSt|art(ICIn|
|000003a0| 73 74 61 6e 63 65 20 2a | 69 6e 73 74 2c 20 4f 53 |stance *|inst, OS|
|000003b0| 54 79 70 65 20 63 72 65 | 61 74 6f 72 29 0d 7b 0d |Type cre|ator).{.|
|000003c0| 20 20 49 43 45 72 72 6f | 72 20 6a 75 6e 6b 3b 0d | ICErro|r junk;.|
|000003d0| 20 20 49 43 45 72 72 6f | 72 20 65 72 72 3b 0d 20 | ICErro|r err;. |
|000003e0| 20 6c 6f 6e 67 20 72 65 | 73 70 6f 6e 73 65 3b 0d | long re|sponse;.|
|000003f0| 20 20 73 74 72 75 63 74 | 20 7b 0d 20 20 20 20 63 | struct| {. c|
|00000400| 68 61 72 20 70 61 72 61 | 6d 5f 66 6c 61 67 73 3b |har para|m_flags;|
|00000410| 0d 20 20 20 20 63 68 61 | 72 20 70 61 72 61 6d 5f |. cha|r param_|
|00000420| 73 69 7a 65 3b 0d 20 20 | 20 20 73 68 6f 72 74 20 |size;. | short |
|00000430| 70 61 72 61 6d 5f 77 68 | 61 74 3b 0d 20 20 20 20 |param_wh|at;. |
|00000440| 4f 53 54 79 70 65 20 63 | 72 65 61 74 6f 72 3b 0d |OSType c|reator;.|
|00000450| 20 20 20 20 49 43 49 6e | 73 74 61 6e 63 65 20 69 | ICIn|stance i|
|00000460| 6e 73 74 3b 0d 20 20 7d | 20 70 61 72 61 6d 73 3b |nst;. }| params;|
|00000470| 0d 20 20 0d 20 20 2a 69 | 6e 73 74 20 3d 20 6e 69 |. . *i|nst = ni|
|00000480| 6c 3b 0d 20 20 69 66 20 | 28 47 65 73 74 61 6c 74 |l;. if |(Gestalt|
|00000490| 28 67 65 73 74 61 6c 74 | 43 6f 6d 70 6f 6e 65 6e |(gestalt|Componen|
|000004a0| 74 4d 67 72 2c 20 26 72 | 65 73 70 6f 6e 73 65 29 |tMgr, &r|esponse)|
|000004b0| 20 3d 3d 20 6e 6f 45 72 | 72 29 20 7b 0d 20 20 20 | == noEr|r) {. |
|000004c0| 20 2a 69 6e 73 74 20 3d | 20 28 49 43 49 6e 73 74 | *inst =| (ICInst|
|000004d0| 61 6e 63 65 29 20 4f 70 | 65 6e 44 65 66 61 75 6c |ance) Op|enDefaul|
|000004e0| 74 43 6f 6d 70 6f 6e 65 | 6e 74 28 69 6e 74 65 72 |tCompone|nt(inter|
|000004f0| 6e 65 74 43 6f 6e 66 69 | 67 75 72 61 74 69 6f 6e |netConfi|guration|
|00000500| 43 6f 6d 70 6f 6e 65 6e | 74 54 79 70 65 2c 20 69 |Componen|tType, i|
|00000510| 6e 74 65 72 6e 65 74 43 | 6f 6e 66 69 67 75 72 61 |nternetC|onfigura|
|00000520| 74 69 6f 6e 43 6f 6d 70 | 6f 6e 65 6e 74 53 75 62 |tionComp|onentSub|
|00000530| 54 79 70 65 29 3b 0d 20 | 20 7d 3b 0d 20 20 69 66 |Type);. | };. if|
|00000540| 20 28 2a 69 6e 73 74 20 | 3d 3d 20 6e 69 6c 29 20 | (*inst |== nil) |
|00000550| 7b 0d 20 20 20 20 65 72 | 72 20 3d 20 62 61 64 43 |{. er|r = badC|
|00000560| 6f 6d 70 6f 6e 65 6e 74 | 49 6e 73 74 61 6e 63 65 |omponent|Instance|
|00000570| 3b 0d 20 20 7d 20 65 6c | 73 65 20 7b 0d 20 20 20 |;. } el|se {. |
|00000580| 20 70 61 72 61 6d 73 2e | 70 61 72 61 6d 5f 66 6c | params.|param_fl|
|00000590| 61 67 73 20 3d 20 30 3b | 0d 20 20 20 20 70 61 72 |ags = 0;|. par|
|000005a0| 61 6d 73 2e 70 61 72 61 | 6d 5f 73 69 7a 65 20 3d |ams.para|m_size =|
|000005b0| 20 34 3b 0d 20 20 20 20 | 70 61 72 61 6d 73 2e 70 | 4;. |params.p|
|000005c0| 61 72 61 6d 5f 77 68 61 | 74 20 3d 20 30 78 30 30 |aram_wha|t = 0x00|
|000005d0| 3b 0d 20 20 20 20 70 61 | 72 61 6d 73 2e 63 72 65 |;. pa|rams.cre|
|000005e0| 61 74 6f 72 20 3d 20 63 | 72 65 61 74 6f 72 3b 0d |ator = c|reator;.|
|000005f0| 20 20 20 20 70 61 72 61 | 6d 73 2e 69 6e 73 74 20 | para|ms.inst |
|00000600| 3d 20 2a 69 6e 73 74 3b | 0d 20 20 20 20 65 72 72 |= *inst;|. err|
|00000610| 20 3d 20 43 61 6c 6c 55 | 6e 69 76 65 72 73 61 6c | = CallU|niversal|
|00000620| 50 72 6f 63 28 43 61 6c | 6c 43 6f 6d 70 6f 6e 65 |Proc(Cal|lCompone|
|00000630| 6e 74 55 50 50 2c 20 75 | 70 70 43 61 6c 6c 43 6f |ntUPP, u|ppCallCo|
|00000640| 6d 70 6f 6e 65 6e 74 50 | 72 6f 63 49 6e 66 6f 2c |mponentP|rocInfo,|
|00000650| 20 26 70 61 72 61 6d 73 | 29 3b 0d 20 20 20 20 69 | ¶ms|);. i|
|00000660| 66 20 28 65 72 72 20 21 | 3d 20 6e 6f 45 72 72 29 |f (err !|= noErr)|
|00000670| 20 7b 0d 20 20 20 20 20 | 20 6a 75 6e 6b 20 3d 20 | {. | junk = |
|00000680| 43 6c 6f 73 65 43 6f 6d | 70 6f 6e 65 6e 74 28 28 |CloseCom|ponent((|
|00000690| 43 6f 6d 70 6f 6e 65 6e | 74 49 6e 73 74 61 6e 63 |Componen|tInstanc|
|000006a0| 65 29 20 2a 69 6e 73 74 | 29 3b 0d 20 20 20 20 20 |e) *inst|);. |
|000006b0| 20 2a 69 6e 73 74 20 3d | 20 6e 69 6c 3b 0d 20 20 | *inst =| nil;. |
|000006c0| 20 20 7d 3b 0d 20 20 7d | 3b 0d 20 20 72 65 74 75 | };. }|;. retu|
|000006d0| 72 6e 28 65 72 72 29 3b | 0d 7d 0d 0d 70 61 73 63 |rn(err);|.}..pasc|
|000006e0| 61 6c 20 49 43 45 72 72 | 6f 72 20 49 43 43 53 74 |al ICErr|or ICCSt|
|000006f0| 61 72 74 28 49 43 49 6e | 73 74 61 6e 63 65 20 2a |art(ICIn|stance *|
|00000700| 69 6e 73 74 2c 20 4f 53 | 54 79 70 65 20 63 72 65 |inst, OS|Type cre|
|00000710| 61 74 6f 72 29 0d 7b 0d | 09 72 65 74 75 72 6e 20 |ator).{.|.return |
|00000720| 28 49 43 53 74 61 72 74 | 28 69 6e 73 74 2c 20 63 |(ICStart|(inst, c|
|00000730| 72 65 61 74 6f 72 29 29 | 3b 0d 7d 0d 0d 70 61 73 |reator))|;.}..pas|
|00000740| 63 61 6c 20 49 43 45 72 | 72 6f 72 20 49 43 53 74 |cal ICEr|ror ICSt|
|00000750| 6f 70 28 49 43 49 6e 73 | 74 61 6e 63 65 20 69 6e |op(ICIns|tance in|
|00000760| 73 74 29 0d 7b 0d 20 20 | 49 43 45 72 72 6f 72 20 |st).{. |ICError |
|00000770| 65 72 72 3b 0d 20 20 49 | 43 45 72 72 6f 72 20 65 |err;. I|CError e|
|00000780| 72 72 32 3b 0d 20 20 73 | 74 72 75 63 74 20 7b 0d |rr2;. s|truct {.|
|00000790| 20 20 20 20 63 68 61 72 | 20 70 61 72 61 6d 5f 66 | char| param_f|
|000007a0| 6c 61 67 73 3b 0d 20 20 | 20 20 63 68 61 72 20 70 |lags;. | char p|
|000007b0| 61 72 61 6d 5f 73 69 7a | 65 3b 0d 20 20 20 20 73 |aram_siz|e;. s|
|000007c0| 68 6f 72 74 20 70 61 72 | 61 6d 5f 77 68 61 74 3b |hort par|am_what;|
|000007d0| 0d 20 20 20 20 49 43 49 | 6e 73 74 61 6e 63 65 20 |. ICI|nstance |
|000007e0| 69 6e 73 74 3b 0d 20 20 | 7d 20 70 61 72 61 6d 73 |inst;. |} params|
|000007f0| 3b 0d 20 20 0d 20 20 70 | 61 72 61 6d 73 2e 70 61 |;. . p|arams.pa|
|00000800| 72 61 6d 5f 66 6c 61 67 | 73 20 3d 20 30 3b 0d 20 |ram_flag|s = 0;. |
|00000810| 20 70 61 72 61 6d 73 2e | 70 61 72 61 6d 5f 73 69 | params.|param_si|
|00000820| 7a 65 20 3d 20 30 3b 0d | 20 20 70 61 72 61 6d 73 |ze = 0;.| params|
|00000830| 2e 70 61 72 61 6d 5f 77 | 68 61 74 20 3d 20 30 78 |.param_w|hat = 0x|
|00000840| 30 31 3b 0d 20 20 70 61 | 72 61 6d 73 2e 69 6e 73 |01;. pa|rams.ins|
|00000850| 74 20 3d 20 69 6e 73 74 | 3b 0d 20 20 65 72 72 20 |t = inst|;. err |
|00000860| 3d 20 43 61 6c 6c 55 6e | 69 76 65 72 73 61 6c 50 |= CallUn|iversalP|
|00000870| 72 6f 63 28 43 61 6c 6c | 43 6f 6d 70 6f 6e 65 6e |roc(Call|Componen|
|00000880| 74 55 50 50 2c 20 75 70 | 70 43 61 6c 6c 43 6f 6d |tUPP, up|pCallCom|
|00000890| 70 6f 6e 65 6e 74 50 72 | 6f 63 49 6e 66 6f 2c 20 |ponentPr|ocInfo, |
|000008a0| 26 70 61 72 61 6d 73 29 | 3b 0d 20 20 65 72 72 32 |¶ms)|;. err2|
|000008b0| 20 3d 20 43 6c 6f 73 65 | 43 6f 6d 70 6f 6e 65 6e | = Close|Componen|
|000008c0| 74 28 28 43 6f 6d 70 6f | 6e 65 6e 74 49 6e 73 74 |t((Compo|nentInst|
|000008d0| 61 6e 63 65 29 20 69 6e | 73 74 29 3b 0d 20 20 69 |ance) in|st);. i|
|000008e0| 66 20 28 65 72 72 20 3d | 3d 20 6e 6f 45 72 72 29 |f (err =|= noErr)|
|000008f0| 20 7b 0d 20 20 20 20 65 | 72 72 20 3d 20 65 72 72 | {. e|rr = err|
|00000900| 32 3b 0d 20 20 7d 3b 0d | 20 20 72 65 74 75 72 6e |2;. };.| return|
|00000910| 28 65 72 72 29 3b 0d 7d | 0d 0d 70 61 73 63 61 6c |(err);.}|..pascal|
|00000920| 20 49 43 45 72 72 6f 72 | 20 49 43 43 53 74 6f 70 | ICError| ICCStop|
|00000930| 28 49 43 49 6e 73 74 61 | 6e 63 65 20 69 6e 73 74 |(ICInsta|nce inst|
|00000940| 29 0d 7b 0d 09 72 65 74 | 75 72 6e 20 28 49 43 53 |).{..ret|urn (ICS|
|00000950| 74 6f 70 28 69 6e 73 74 | 29 29 3b 0d 7d 0d 0d 70 |top(inst|));.}..p|
|00000960| 61 73 63 61 6c 20 49 43 | 45 72 72 6f 72 20 49 43 |ascal IC|Error IC|
|00000970| 47 65 74 43 6f 6d 70 6f | 6e 65 6e 74 49 6e 73 74 |GetCompo|nentInst|
|00000980| 61 6e 63 65 28 49 43 49 | 6e 73 74 61 6e 63 65 20 |ance(ICI|nstance |
|00000990| 69 6e 73 74 2c 20 50 74 | 72 20 2a 63 6f 6d 70 6f |inst, Pt|r *compo|
|000009a0| 6e 65 6e 74 5f 69 6e 73 | 74 29 0d 7b 0d 09 2a 63 |nent_ins|t).{..*c|
|000009b0| 6f 6d 70 6f 6e 65 6e 74 | 5f 69 6e 73 74 20 3d 20 |omponent|_inst = |
|000009c0| 69 6e 73 74 3b 0d 09 72 | 65 74 75 72 6e 20 28 6e |inst;..r|eturn (n|
|000009d0| 6f 45 72 72 29 3b 0d 7d | 0d 0d 70 61 73 63 61 6c |oErr);.}|..pascal|
|000009e0| 20 49 43 45 72 72 6f 72 | 20 49 43 43 47 65 74 43 | ICError| ICCGetC|
|000009f0| 6f 6d 70 6f 6e 65 6e 74 | 49 6e 73 74 61 6e 63 65 |omponent|Instance|
|00000a00| 28 49 43 49 6e 73 74 61 | 6e 63 65 20 69 6e 73 74 |(ICInsta|nce inst|
|00000a10| 2c 20 50 74 72 20 2a 63 | 6f 6d 70 6f 6e 65 6e 74 |, Ptr *c|omponent|
|00000a20| 5f 69 6e 73 74 29 0d 7b | 0d 09 72 65 74 75 72 6e |_inst).{|..return|
|00000a30| 20 28 49 43 47 65 74 43 | 6f 6d 70 6f 6e 65 6e 74 | (ICGetC|omponent|
|00000a40| 49 6e 73 74 61 6e 63 65 | 28 69 6e 73 74 2c 20 63 |Instance|(inst, c|
|00000a50| 6f 6d 70 6f 6e 65 6e 74 | 5f 69 6e 73 74 29 29 3b |omponent|_inst));|
|00000a60| 0d 7d 0d 0d 2f 2a 20 a5 | a5 a5 53 74 61 72 74 20 |.}../* .|..Start |
|00000a70| 50 50 43 5f 49 43 41 50 | 49 2e 63 a5 a5 a5 20 2a |PPC_ICAP|I.c... *|
|00000a80| 2f 0d 0d 2f 2a 20 2a 2a | 2a 2a 2a 20 53 74 61 72 |/../* **|*** Star|
|00000a90| 74 69 6e 67 20 55 70 20 | 61 6e 64 20 53 68 75 74 |ting Up |and Shut|
|00000aa0| 74 69 6e 67 20 44 6f 77 | 6e 20 2a 2a 2a 2a 2a 20 |ting Dow|n ***** |
|00000ab0| 2a 2f 0d 0d 2f 2a 20 2a | 2a 2a 2a 2a 20 53 70 65 |*/../* *|**** Spe|
|00000ac0| 63 69 66 79 69 6e 67 20 | 61 20 43 6f 6e 66 69 67 |cifying |a Config|
|00000ad0| 75 72 61 74 69 6f 6e 20 | 2a 2a 2a 2a 2a 20 2a 2f |uration |***** */|
|00000ae0| 0d 0d 70 61 73 63 61 6c | 20 49 43 45 72 72 6f 72 |..pascal| ICError|
|00000af0| 20 49 43 46 69 6e 64 43 | 6f 6e 66 69 67 46 69 6c | ICFindC|onfigFil|
|00000b00| 65 28 49 43 49 6e 73 74 | 61 6e 63 65 20 69 6e 73 |e(ICInst|ance ins|
|00000b10| 74 2c 20 73 68 6f 72 74 | 20 63 6f 75 6e 74 2c 20 |t, short| count, |
|00000b20| 49 43 44 69 72 53 70 65 | 63 41 72 72 61 79 50 74 |ICDirSpe|cArrayPt|
|00000b30| 72 20 66 6f 6c 64 65 72 | 73 29 0d 7b 0d 20 20 73 |r folder|s).{. s|
|00000b40| 74 72 75 63 74 20 7b 0d | 20 20 20 20 63 68 61 72 |truct {.| char|
|00000b50| 20 70 61 72 61 6d 5f 66 | 6c 61 67 73 3b 0d 20 20 | param_f|lags;. |
|00000b60| 20 20 63 68 61 72 20 70 | 61 72 61 6d 5f 73 69 7a | char p|aram_siz|
|00000b70| 65 3b 0d 20 20 20 20 73 | 68 6f 72 74 20 70 61 72 |e;. s|hort par|
|00000b80| 61 6d 5f 77 68 61 74 3b | 0d 20 20 20 20 49 43 44 |am_what;|. ICD|
|00000b90| 69 72 53 70 65 63 41 72 | 72 61 79 50 74 72 20 66 |irSpecAr|rayPtr f|
|00000ba0| 6f 6c 64 65 72 73 3b 0d | 20 20 20 20 73 68 6f 72 |olders;.| shor|
|00000bb0| 74 20 63 6f 75 6e 74 3b | 0d 20 20 20 20 49 43 49 |t count;|. ICI|
|00000bc0| 6e 73 74 61 6e 63 65 20 | 69 6e 73 74 3b 0d 20 20 |nstance |inst;. |
|00000bd0| 7d 20 70 61 72 61 6d 73 | 3b 0d 0d 20 20 2f 2a 20 |} params|;.. /* |
|00000be0| 73 6f 6d 65 20 73 65 74 | 75 70 20 2a 2f 0d 20 20 |some set|up */. |
|00000bf0| 70 61 72 61 6d 73 2e 70 | 61 72 61 6d 5f 66 6c 61 |params.p|aram_fla|
|00000c00| 67 73 20 3d 20 30 3b 0d | 20 20 70 61 72 61 6d 73 |gs = 0;.| params|
|00000c10| 2e 70 61 72 61 6d 5f 73 | 69 7a 65 20 3d 20 36 3b |.param_s|ize = 6;|
|00000c20| 0d 20 20 70 61 72 61 6d | 73 2e 70 61 72 61 6d 5f |. param|s.param_|
|00000c30| 77 68 61 74 20 3d 20 32 | 3b 0d 20 20 2f 2a 20 72 |what = 2|;. /* r|
|00000c40| 6f 75 74 69 6e 65 20 73 | 70 65 63 69 66 69 63 20 |outine s|pecific |
|00000c50| 61 73 73 69 67 6e 6d 65 | 6e 74 73 20 2a 2f 0d 20 |assignme|nts */. |
|00000c60| 20 70 61 72 61 6d 73 2e | 66 6f 6c 64 65 72 73 20 | params.|folders |
|00000c70| 3d 20 66 6f 6c 64 65 72 | 73 3b 0d 20 20 70 61 72 |= folder|s;. par|
|00000c80| 61 6d 73 2e 63 6f 75 6e | 74 20 3d 20 63 6f 75 6e |ams.coun|t = coun|
|00000c90| 74 3b 0d 20 20 2f 2a 20 | 64 6f 20 74 68 65 20 77 |t;. /* |do the w|
|00000ca0| 6f 72 6b 20 2a 2f 0d 20 | 20 70 61 72 61 6d 73 2e |ork */. | params.|
|00000cb0| 69 6e 73 74 20 3d 20 69 | 6e 73 74 3b 0d 20 20 72 |inst = i|nst;. r|
|00000cc0| 65 74 75 72 6e 28 43 61 | 6c 6c 55 6e 69 76 65 72 |eturn(Ca|llUniver|
|00000cd0| 73 61 6c 50 72 6f 63 28 | 43 61 6c 6c 43 6f 6d 70 |salProc(|CallComp|
|00000ce0| 6f 6e 65 6e 74 55 50 50 | 2c 0d 20 20 20 20 75 70 |onentUPP|,. up|
|00000cf0| 70 43 61 6c 6c 43 6f 6d | 70 6f 6e 65 6e 74 50 72 |pCallCom|ponentPr|
|00000d00| 6f 63 49 6e 66 6f 2c 0d | 20 20 20 20 26 70 61 72 |ocInfo,.| &par|
|00000d10| 61 6d 73 29 29 3b 0d 7d | 20 2f 2a 20 49 43 46 69 |ams));.}| /* ICFi|
|00000d20| 6e 64 43 6f 6e 66 69 67 | 46 69 6c 65 20 2a 2f 0d |ndConfig|File */.|
|00000d30| 0d 70 61 73 63 61 6c 20 | 49 43 45 72 72 6f 72 20 |.pascal |ICError |
|00000d40| 49 43 43 46 69 6e 64 43 | 6f 6e 66 69 67 46 69 6c |ICCFindC|onfigFil|
|00000d50| 65 28 49 43 49 6e 73 74 | 61 6e 63 65 20 69 6e 73 |e(ICInst|ance ins|
|00000d60| 74 2c 20 73 68 6f 72 74 | 20 63 6f 75 6e 74 2c 20 |t, short| count, |
|00000d70| 49 43 44 69 72 53 70 65 | 63 41 72 72 61 79 50 74 |ICDirSpe|cArrayPt|
|00000d80| 72 20 66 6f 6c 64 65 72 | 73 29 0d 7b 0d 20 20 72 |r folder|s).{. r|
|00000d90| 65 74 75 72 6e 28 49 43 | 46 69 6e 64 43 6f 6e 66 |eturn(IC|FindConf|
|00000da0| 69 67 46 69 6c 65 28 69 | 6e 73 74 2c 20 63 6f 75 |igFile(i|nst, cou|
|00000db0| 6e 74 2c 20 66 6f 6c 64 | 65 72 73 29 29 3b 0d 7d |nt, fold|ers));.}|
|00000dc0| 20 2f 2a 20 49 43 43 46 | 69 6e 64 43 6f 6e 66 69 | /* ICCF|indConfi|
|00000dd0| 67 46 69 6c 65 20 2a 2f | 0d 0d 70 61 73 63 61 6c |gFile */|..pascal|
|00000de0| 20 49 43 45 72 72 6f 72 | 20 49 43 46 69 6e 64 55 | ICError| ICFindU|
|00000df0| 73 65 72 43 6f 6e 66 69 | 67 46 69 6c 65 28 49 43 |serConfi|gFile(IC|
|00000e00| 49 6e 73 74 61 6e 63 65 | 20 69 6e 73 74 2c 20 49 |Instance| inst, I|
|00000e10| 43 44 69 72 53 70 65 63 | 20 2a 77 68 65 72 65 29 |CDirSpec| *where)|
|00000e20| 0d 7b 0d 20 20 73 74 72 | 75 63 74 20 7b 0d 20 20 |.{. str|uct {. |
|00000e30| 20 20 63 68 61 72 20 70 | 61 72 61 6d 5f 66 6c 61 | char p|aram_fla|
|00000e40| 67 73 3b 0d 20 20 20 20 | 63 68 61 72 20 70 61 72 |gs;. |char par|
|00000e50| 61 6d 5f 73 69 7a 65 3b | 0d 20 20 20 20 73 68 6f |am_size;|. sho|
|00000e60| 72 74 20 70 61 72 61 6d | 5f 77 68 61 74 3b 0d 20 |rt param|_what;. |
|00000e70| 20 20 20 49 43 44 69 72 | 53 70 65 63 20 2a 77 68 | ICDir|Spec *wh|
|00000e80| 65 72 65 3b 0d 20 20 20 | 20 49 43 49 6e 73 74 61 |ere;. | ICInsta|
|00000e90| 6e 63 65 20 69 6e 73 74 | 3b 0d 20 20 7d 20 70 61 |nce inst|;. } pa|
|00000ea0| 72 61 6d 73 3b 0d 0d 20 | 20 2f 2a 20 73 6f 6d 65 |rams;.. | /* some|
|00000eb0| 20 73 65 74 75 70 20 2a | 2f 0d 20 20 70 61 72 61 | setup *|/. para|
|00000ec0| 6d 73 2e 70 61 72 61 6d | 5f 66 6c 61 67 73 20 3d |ms.param|_flags =|
|00000ed0| 20 30 3b 0d 20 20 70 61 | 72 61 6d 73 2e 70 61 72 | 0;. pa|rams.par|
|00000ee0| 61 6d 5f 73 69 7a 65 20 | 3d 20 34 3b 0d 20 20 70 |am_size |= 4;. p|
|00000ef0| 61 72 61 6d 73 2e 70 61 | 72 61 6d 5f 77 68 61 74 |arams.pa|ram_what|
|00000f00| 20 3d 20 31 34 3b 0d 20 | 20 2f 2a 20 72 6f 75 74 | = 14;. | /* rout|
|00000f10| 69 6e 65 20 73 70 65 63 | 69 66 69 63 20 61 73 73 |ine spec|ific ass|
|00000f20| 69 67 6e 6d 65 6e 74 73 | 20 2a 2f 0d 20 20 70 61 |ignments| */. pa|
|00000f30| 72 61 6d 73 2e 77 68 65 | 72 65 20 3d 20 77 68 65 |rams.whe|re = whe|
|00000f40| 72 65 3b 0d 20 20 2f 2a | 20 64 6f 20 74 68 65 20 |re;. /*| do the |
|00000f50| 77 6f 72 6b 20 2a 2f 0d | 20 20 70 61 72 61 6d 73 |work */.| params|
|00000f60| 2e 69 6e 73 74 20 3d 20 | 69 6e 73 74 3b 0d 20 20 |.inst = |inst;. |
|00000f70| 72 65 74 75 72 6e 28 43 | 61 6c 6c 55 6e 69 76 65 |return(C|allUnive|
|00000f80| 72 73 61 6c 50 72 6f 63 | 28 43 61 6c 6c 43 6f 6d |rsalProc|(CallCom|
|00000f90| 70 6f 6e 65 6e 74 55 50 | 50 2c 0d 20 20 20 20 75 |ponentUP|P,. u|
|00000fa0| 70 70 43 61 6c 6c 43 6f | 6d 70 6f 6e 65 6e 74 50 |ppCallCo|mponentP|
|00000fb0| 72 6f 63 49 6e 66 6f 2c | 0d 20 20 20 20 26 70 61 |rocInfo,|. &pa|
|00000fc0| 72 61 6d 73 29 29 3b 0d | 7d 20 2f 2a 20 49 43 46 |rams));.|} /* ICF|
|00000fd0| 69 6e 64 55 73 65 72 43 | 6f 6e 66 69 67 46 69 6c |indUserC|onfigFil|
|00000fe0| 65 20 2a 2f 0d 0d 70 61 | 73 63 61 6c 20 49 43 45 |e */..pa|scal ICE|
|00000ff0| 72 72 6f 72 20 49 43 43 | 46 69 6e 64 55 73 65 72 |rror ICC|FindUser|
|00001000| 43 6f 6e 66 69 67 46 69 | 6c 65 28 49 43 49 6e 73 |ConfigFi|le(ICIns|
|00001010| 74 61 6e 63 65 20 69 6e | 73 74 2c 20 49 43 44 69 |tance in|st, ICDi|
|00001020| 72 53 70 65 63 20 2a 77 | 68 65 72 65 29 0d 7b 0d |rSpec *w|here).{.|
|00001030| 20 20 72 65 74 75 72 6e | 28 49 43 46 69 6e 64 55 | return|(ICFindU|
|00001040| 73 65 72 43 6f 6e 66 69 | 67 46 69 6c 65 28 69 6e |serConfi|gFile(in|
|00001050| 73 74 2c 20 77 68 65 72 | 65 29 29 3b 0d 7d 20 2f |st, wher|e));.} /|
|00001060| 2a 20 49 43 43 46 69 6e | 64 55 73 65 72 43 6f 6e |* ICCFin|dUserCon|
|00001070| 66 69 67 46 69 6c 65 20 | 2a 2f 0d 0d 70 61 73 63 |figFile |*/..pasc|
|00001080| 61 6c 20 49 43 45 72 72 | 6f 72 20 49 43 47 65 6e |al ICErr|or ICGen|
|00001090| 65 72 61 6c 46 69 6e 64 | 43 6f 6e 66 69 67 46 69 |eralFind|ConfigFi|
|000010a0| 6c 65 28 49 43 49 6e 73 | 74 61 6e 63 65 20 69 6e |le(ICIns|tance in|
|000010b0| 73 74 2c 20 42 6f 6f 6c | 65 61 6e 20 73 65 61 72 |st, Bool|ean sear|
|000010c0| 63 68 5f 70 72 65 66 73 | 2c 20 42 6f 6f 6c 65 61 |ch_prefs|, Boolea|
|000010d0| 6e 20 63 61 6e 5f 63 72 | 65 61 74 65 2c 20 73 68 |n can_cr|eate, sh|
|000010e0| 6f 72 74 20 63 6f 75 6e | 74 2c 20 49 43 44 69 72 |ort coun|t, ICDir|
|000010f0| 53 70 65 63 41 72 72 61 | 79 50 74 72 20 66 6f 6c |SpecArra|yPtr fol|
|00001100| 64 65 72 73 29 0d 7b 0d | 20 20 73 74 72 75 63 74 |ders).{.| struct|
|00001110| 20 7b 0d 20 20 20 20 63 | 68 61 72 20 70 61 72 61 | {. c|har para|
|00001120| 6d 5f 66 6c 61 67 73 3b | 0d 20 20 20 20 63 68 61 |m_flags;|. cha|
|00001130| 72 20 70 61 72 61 6d 5f | 73 69 7a 65 3b 0d 20 20 |r param_|size;. |
|00001140| 20 20 73 68 6f 72 74 20 | 70 61 72 61 6d 5f 77 68 | short |param_wh|
|00001150| 61 74 3b 0d 20 20 20 20 | 49 43 44 69 72 53 70 65 |at;. |ICDirSpe|
|00001160| 63 41 72 72 61 79 50 74 | 72 20 66 6f 6c 64 65 72 |cArrayPt|r folder|
|00001170| 73 3b 0d 20 20 20 20 73 | 68 6f 72 74 20 63 6f 75 |s;. s|hort cou|
|00001180| 6e 74 3b 0d 20 20 20 20 | 42 6f 6f 6c 65 61 6e 20 |nt;. |Boolean |
|00001190| 63 61 6e 5f 63 72 65 61 | 74 65 3b 0d 20 20 20 20 |can_crea|te;. |
|000011a0| 63 68 61 72 20 66 69 6c | 6c 65 72 31 3b 0d 20 20 |char fil|ler1;. |
|000011b0| 20 20 42 6f 6f 6c 65 61 | 6e 20 73 65 61 72 63 68 | Boolea|n search|
|000011c0| 5f 70 72 65 66 73 3b 0d | 20 20 20 20 63 68 61 72 |_prefs;.| char|
|000011d0| 20 66 69 6c 6c 65 72 30 | 3b 0d 20 20 20 20 49 43 | filler0|;. IC|
|000011e0| 49 6e 73 74 61 6e 63 65 | 20 69 6e 73 74 3b 0d 20 |Instance| inst;. |
|000011f0| 20 7d 20 70 61 72 61 6d | 73 3b 0d 0d 20 20 2f 2a | } param|s;.. /*|
|00001200| 20 73 6f 6d 65 20 73 65 | 74 75 70 20 2a 2f 0d 20 | some se|tup */. |
|00001210| 20 70 61 72 61 6d 73 2e | 70 61 72 61 6d 5f 66 6c | params.|param_fl|
|00001220| 61 67 73 20 3d 20 30 3b | 0d 20 20 70 61 72 61 6d |ags = 0;|. param|
|00001230| 73 2e 70 61 72 61 6d 5f | 73 69 7a 65 20 3d 20 31 |s.param_|size = 1|
|00001240| 30 3b 0d 20 20 70 61 72 | 61 6d 73 2e 70 61 72 61 |0;. par|ams.para|
|00001250| 6d 5f 77 68 61 74 20 3d | 20 33 30 3b 0d 20 20 2f |m_what =| 30;. /|
|00001260| 2a 20 72 6f 75 74 69 6e | 65 20 73 70 65 63 69 66 |* routin|e specif|
|00001270| 69 63 20 61 73 73 69 67 | 6e 6d 65 6e 74 73 20 2a |ic assig|nments *|
|00001280| 2f 0d 20 20 70 61 72 61 | 6d 73 2e 66 6f 6c 64 65 |/. para|ms.folde|
|00001290| 72 73 20 3d 20 66 6f 6c | 64 65 72 73 3b 0d 20 20 |rs = fol|ders;. |
|000012a0| 70 61 72 61 6d 73 2e 63 | 6f 75 6e 74 20 3d 20 63 |params.c|ount = c|
|000012b0| 6f 75 6e 74 3b 0d 20 20 | 70 61 72 61 6d 73 2e 63 |ount;. |params.c|
|000012c0| 61 6e 5f 63 72 65 61 74 | 65 20 3d 20 63 61 6e 5f |an_creat|e = can_|
|000012d0| 63 72 65 61 74 65 3b 0d | 20 20 70 61 72 61 6d 73 |create;.| params|
|000012e0| 2e 73 65 61 72 63 68 5f | 70 72 65 66 73 20 3d 20 |.search_|prefs = |
|000012f0| 73 65 61 72 63 68 5f 70 | 72 65 66 73 3b 0d 20 20 |search_p|refs;. |
|00001300| 2f 2a 20 64 6f 20 74 68 | 65 20 77 6f 72 6b 20 2a |/* do th|e work *|
|00001310| 2f 0d 20 20 70 61 72 61 | 6d 73 2e 69 6e 73 74 20 |/. para|ms.inst |
|00001320| 3d 20 69 6e 73 74 3b 0d | 20 20 72 65 74 75 72 6e |= inst;.| return|
|00001330| 28 43 61 6c 6c 55 6e 69 | 76 65 72 73 61 6c 50 72 |(CallUni|versalPr|
|00001340| 6f 63 28 43 61 6c 6c 43 | 6f 6d 70 6f 6e 65 6e 74 |oc(CallC|omponent|
|00001350| 55 50 50 2c 0d 20 20 20 | 20 75 70 70 43 61 6c 6c |UPP,. | uppCall|
|00001360| 43 6f 6d 70 6f 6e 65 6e | 74 50 72 6f 63 49 6e 66 |Componen|tProcInf|
|00001370| 6f 2c 0d 20 20 20 20 26 | 70 61 72 61 6d 73 29 29 |o,. &|params))|
|00001380| 3b 0d 7d 20 2f 2a 20 49 | 43 47 65 6e 65 72 61 6c |;.} /* I|CGeneral|
|00001390| 46 69 6e 64 43 6f 6e 66 | 69 67 46 69 6c 65 20 2a |FindConf|igFile *|
|000013a0| 2f 0d 0d 70 61 73 63 61 | 6c 20 49 43 45 72 72 6f |/..pasca|l ICErro|
|000013b0| 72 20 49 43 43 47 65 6e | 65 72 61 6c 46 69 6e 64 |r ICCGen|eralFind|
|000013c0| 43 6f 6e 66 69 67 46 69 | 6c 65 28 49 43 49 6e 73 |ConfigFi|le(ICIns|
|000013d0| 74 61 6e 63 65 20 69 6e | 73 74 2c 20 42 6f 6f 6c |tance in|st, Bool|
|000013e0| 65 61 6e 20 73 65 61 72 | 63 68 5f 70 72 65 66 73 |ean sear|ch_prefs|
|000013f0| 2c 20 42 6f 6f 6c 65 61 | 6e 20 63 61 6e 5f 63 72 |, Boolea|n can_cr|
|00001400| 65 61 74 65 2c 20 73 68 | 6f 72 74 20 63 6f 75 6e |eate, sh|ort coun|
|00001410| 74 2c 20 49 43 44 69 72 | 53 70 65 63 41 72 72 61 |t, ICDir|SpecArra|
|00001420| 79 50 74 72 20 66 6f 6c | 64 65 72 73 29 0d 7b 0d |yPtr fol|ders).{.|
|00001430| 20 20 72 65 74 75 72 6e | 28 49 43 47 65 6e 65 72 | return|(ICGener|
|00001440| 61 6c 46 69 6e 64 43 6f | 6e 66 69 67 46 69 6c 65 |alFindCo|nfigFile|
|00001450| 28 69 6e 73 74 2c 20 73 | 65 61 72 63 68 5f 70 72 |(inst, s|earch_pr|
|00001460| 65 66 73 2c 20 63 61 6e | 5f 63 72 65 61 74 65 2c |efs, can|_create,|
|00001470| 20 63 6f 75 6e 74 2c 20 | 66 6f 6c 64 65 72 73 29 | count, |folders)|
|00001480| 29 3b 0d 7d 20 2f 2a 20 | 49 43 43 47 65 6e 65 72 |);.} /* |ICCGener|
|00001490| 61 6c 46 69 6e 64 43 6f | 6e 66 69 67 46 69 6c 65 |alFindCo|nfigFile|
|000014a0| 20 2a 2f 0d 0d 70 61 73 | 63 61 6c 20 49 43 45 72 | */..pas|cal ICEr|
|000014b0| 72 6f 72 20 49 43 43 68 | 6f 6f 73 65 43 6f 6e 66 |ror ICCh|ooseConf|
|000014c0| 69 67 28 49 43 49 6e 73 | 74 61 6e 63 65 20 69 6e |ig(ICIns|tance in|
|000014d0| 73 74 29 0d 7b 0d 20 20 | 73 74 72 75 63 74 20 7b |st).{. |struct {|
|000014e0| 0d 20 20 20 20 63 68 61 | 72 20 70 61 72 61 6d 5f |. cha|r param_|
|000014f0| 66 6c 61 67 73 3b 0d 20 | 20 20 20 63 68 61 72 20 |flags;. | char |
|00001500| 70 61 72 61 6d 5f 73 69 | 7a 65 3b 0d 20 20 20 20 |param_si|ze;. |
|00001510| 73 68 6f 72 74 20 70 61 | 72 61 6d 5f 77 68 61 74 |short pa|ram_what|
|00001520| 3b 0d 20 20 20 20 2f 2a | 20 6e 6f 74 68 69 6e 67 |;. /*| nothing|
|00001530| 20 74 6f 20 64 65 63 6c | 61 72 65 20 2a 2f 0d 20 | to decl|are */. |
|00001540| 20 20 20 49 43 49 6e 73 | 74 61 6e 63 65 20 69 6e | ICIns|tance in|
|00001550| 73 74 3b 0d 20 20 7d 20 | 70 61 72 61 6d 73 3b 0d |st;. } |params;.|
|00001560| 0d 20 20 2f 2a 20 73 6f | 6d 65 20 73 65 74 75 70 |. /* so|me setup|
|00001570| 20 2a 2f 0d 20 20 70 61 | 72 61 6d 73 2e 70 61 72 | */. pa|rams.par|
|00001580| 61 6d 5f 66 6c 61 67 73 | 20 3d 20 30 3b 0d 20 20 |am_flags| = 0;. |
|00001590| 70 61 72 61 6d 73 2e 70 | 61 72 61 6d 5f 73 69 7a |params.p|aram_siz|
|000015a0| 65 20 3d 20 30 3b 0d 20 | 20 70 61 72 61 6d 73 2e |e = 0;. | params.|
|000015b0| 70 61 72 61 6d 5f 77 68 | 61 74 20 3d 20 33 33 3b |param_wh|at = 33;|
|000015c0| 0d 20 20 2f 2a 20 72 6f | 75 74 69 6e 65 20 73 70 |. /* ro|utine sp|
|000015d0| 65 63 69 66 69 63 20 61 | 73 73 69 67 6e 6d 65 6e |ecific a|ssignmen|
|000015e0| 74 73 20 2a 2f 0d 20 20 | 2f 2a 20 6e 6f 74 68 69 |ts */. |/* nothi|
|000015f0| 6e 67 20 74 6f 20 64 6f | 20 2a 2f 0d 20 20 2f 2a |ng to do| */. /*|
|00001600| 20 64 6f 20 74 68 65 20 | 77 6f 72 6b 20 2a 2f 0d | do the |work */.|
|00001610| 20 20 70 61 72 61 6d 73 | 2e 69 6e 73 74 20 3d 20 | params|.inst = |
|00001620| 69 6e 73 74 3b 0d 20 20 | 72 65 74 75 72 6e 28 43 |inst;. |return(C|
|00001630| 61 6c 6c 55 6e 69 76 65 | 72 73 61 6c 50 72 6f 63 |allUnive|rsalProc|
|00001640| 28 43 61 6c 6c 43 6f 6d | 70 6f 6e 65 6e 74 55 50 |(CallCom|ponentUP|
|00001650| 50 2c 0d 20 20 20 20 75 | 70 70 43 61 6c 6c 43 6f |P,. u|ppCallCo|
|00001660| 6d 70 6f 6e 65 6e 74 50 | 72 6f 63 49 6e 66 6f 2c |mponentP|rocInfo,|
|00001670| 0d 20 20 20 20 26 70 61 | 72 61 6d 73 29 29 3b 0d |. &pa|rams));.|
|00001680| 7d 20 2f 2a 20 49 43 43 | 68 6f 6f 73 65 43 6f 6e |} /* ICC|hooseCon|
|00001690| 66 69 67 20 2a 2f 0d 0d | 70 61 73 63 61 6c 20 49 |fig */..|pascal I|
|000016a0| 43 45 72 72 6f 72 20 49 | 43 43 43 68 6f 6f 73 65 |CError I|CCChoose|
|000016b0| 43 6f 6e 66 69 67 28 49 | 43 49 6e 73 74 61 6e 63 |Config(I|CInstanc|
|000016c0| 65 20 69 6e 73 74 29 0d | 7b 0d 20 20 72 65 74 75 |e inst).|{. retu|
|000016d0| 72 6e 28 49 43 43 68 6f | 6f 73 65 43 6f 6e 66 69 |rn(ICCho|oseConfi|
|000016e0| 67 28 69 6e 73 74 29 29 | 3b 0d 7d 20 2f 2a 20 49 |g(inst))|;.} /* I|
|000016f0| 43 43 43 68 6f 6f 73 65 | 43 6f 6e 66 69 67 20 2a |CCChoose|Config *|
|00001700| 2f 0d 0d 70 61 73 63 61 | 6c 20 49 43 45 72 72 6f |/..pasca|l ICErro|
|00001710| 72 20 49 43 43 68 6f 6f | 73 65 4e 65 77 43 6f 6e |r ICChoo|seNewCon|
|00001720| 66 69 67 28 49 43 49 6e | 73 74 61 6e 63 65 20 69 |fig(ICIn|stance i|
|00001730| 6e 73 74 29 0d 7b 0d 20 | 20 73 74 72 75 63 74 20 |nst).{. | struct |
|00001740| 7b 0d 20 20 20 20 63 68 | 61 72 20 70 61 72 61 6d |{. ch|ar param|
|00001750| 5f 66 6c 61 67 73 3b 0d | 20 20 20 20 63 68 61 72 |_flags;.| char|
|00001760| 20 70 61 72 61 6d 5f 73 | 69 7a 65 3b 0d 20 20 20 | param_s|ize;. |
|00001770| 20 73 68 6f 72 74 20 70 | 61 72 61 6d 5f 77 68 61 | short p|aram_wha|
|00001780| 74 3b 0d 20 20 20 20 2f | 2a 20 6e 6f 74 68 69 6e |t;. /|* nothin|
|00001790| 67 20 74 6f 20 64 65 63 | 6c 61 72 65 20 2a 2f 0d |g to dec|lare */.|
|000017a0| 20 20 20 20 49 43 49 6e | 73 74 61 6e 63 65 20 69 | ICIn|stance i|
|000017b0| 6e 73 74 3b 0d 20 20 7d | 20 70 61 72 61 6d 73 3b |nst;. }| params;|
|000017c0| 0d 0d 20 20 2f 2a 20 73 | 6f 6d 65 20 73 65 74 75 |.. /* s|ome setu|
|000017d0| 70 20 2a 2f 0d 20 20 70 | 61 72 61 6d 73 2e 70 61 |p */. p|arams.pa|
|000017e0| 72 61 6d 5f 66 6c 61 67 | 73 20 3d 20 30 3b 0d 20 |ram_flag|s = 0;. |
|000017f0| 20 70 61 72 61 6d 73 2e | 70 61 72 61 6d 5f 73 69 | params.|param_si|
|00001800| 7a 65 20 3d 20 30 3b 0d | 20 20 70 61 72 61 6d 73 |ze = 0;.| params|
|00001810| 2e 70 61 72 61 6d 5f 77 | 68 61 74 20 3d 20 33 34 |.param_w|hat = 34|
|00001820| 3b 0d 20 20 2f 2a 20 72 | 6f 75 74 69 6e 65 20 73 |;. /* r|outine s|
|00001830| 70 65 63 69 66 69 63 20 | 61 73 73 69 67 6e 6d 65 |pecific |assignme|
|00001840| 6e 74 73 20 2a 2f 0d 20 | 20 2f 2a 20 6e 6f 74 68 |nts */. | /* noth|
|00001850| 69 6e 67 20 74 6f 20 64 | 6f 20 2a 2f 0d 20 20 2f |ing to d|o */. /|
|00001860| 2a 20 64 6f 20 74 68 65 | 20 77 6f 72 6b 20 2a 2f |* do the| work */|
|00001870| 0d 20 20 70 61 72 61 6d | 73 2e 69 6e 73 74 20 3d |. param|s.inst =|
|00001880| 20 69 6e 73 74 3b 0d 20 | 20 72 65 74 75 72 6e 28 | inst;. | return(|
|00001890| 43 61 6c 6c 55 6e 69 76 | 65 72 73 61 6c 50 72 6f |CallUniv|ersalPro|
|000018a0| 63 28 43 61 6c 6c 43 6f | 6d 70 6f 6e 65 6e 74 55 |c(CallCo|mponentU|
|000018b0| 50 50 2c 0d 20 20 20 20 | 75 70 70 43 61 6c 6c 43 |PP,. |uppCallC|
|000018c0| 6f 6d 70 6f 6e 65 6e 74 | 50 72 6f 63 49 6e 66 6f |omponent|ProcInfo|
|000018d0| 2c 0d 20 20 20 20 26 70 | 61 72 61 6d 73 29 29 3b |,. &p|arams));|
|000018e0| 0d 7d 20 2f 2a 20 49 43 | 43 68 6f 6f 73 65 4e 65 |.} /* IC|ChooseNe|
|000018f0| 77 43 6f 6e 66 69 67 20 | 2a 2f 0d 0d 70 61 73 63 |wConfig |*/..pasc|
|00001900| 61 6c 20 49 43 45 72 72 | 6f 72 20 49 43 43 43 68 |al ICErr|or ICCCh|
|00001910| 6f 6f 73 65 4e 65 77 43 | 6f 6e 66 69 67 28 49 43 |ooseNewC|onfig(IC|
|00001920| 49 6e 73 74 61 6e 63 65 | 20 69 6e 73 74 29 0d 7b |Instance| inst).{|
|00001930| 0d 20 20 72 65 74 75 72 | 6e 28 49 43 43 68 6f 6f |. retur|n(ICChoo|
|00001940| 73 65 4e 65 77 43 6f 6e | 66 69 67 28 69 6e 73 74 |seNewCon|fig(inst|
|00001950| 29 29 3b 0d 7d 20 2f 2a | 20 49 43 43 43 68 6f 6f |));.} /*| ICCChoo|
|00001960| 73 65 4e 65 77 43 6f 6e | 66 69 67 20 2a 2f 0d 0d |seNewCon|fig */..|
|00001970| 70 61 73 63 61 6c 20 49 | 43 45 72 72 6f 72 20 49 |pascal I|CError I|
|00001980| 43 47 65 74 43 6f 6e 66 | 69 67 4e 61 6d 65 28 49 |CGetConf|igName(I|
|00001990| 43 49 6e 73 74 61 6e 63 | 65 20 69 6e 73 74 2c 20 |CInstanc|e inst, |
|000019a0| 42 6f 6f 6c 65 61 6e 20 | 6c 6f 6e 67 6e 61 6d 65 |Boolean |longname|
|000019b0| 2c 20 53 74 72 32 35 35 | 20 6e 61 6d 65 29 0d 7b |, Str255| name).{|
|000019c0| 0d 20 20 73 74 72 75 63 | 74 20 7b 0d 20 20 20 20 |. struc|t {. |
|000019d0| 63 68 61 72 20 70 61 72 | 61 6d 5f 66 6c 61 67 73 |char par|am_flags|
|000019e0| 3b 0d 20 20 20 20 63 68 | 61 72 20 70 61 72 61 6d |;. ch|ar param|
|000019f0| 5f 73 69 7a 65 3b 0d 20 | 20 20 20 73 68 6f 72 74 |_size;. | short|
|00001a00| 20 70 61 72 61 6d 5f 77 | 68 61 74 3b 0d 20 20 20 | param_w|hat;. |
|00001a10| 20 53 74 72 69 6e 67 50 | 74 72 20 6e 61 6d 65 3b | StringP|tr name;|
|00001a20| 0d 20 20 20 20 42 6f 6f | 6c 65 61 6e 20 6c 6f 6e |. Boo|lean lon|
|00001a30| 67 6e 61 6d 65 3b 0d 20 | 20 20 20 63 68 61 72 20 |gname;. | char |
|00001a40| 66 69 6c 6c 65 72 30 3b | 0d 20 20 20 20 49 43 49 |filler0;|. ICI|
|00001a50| 6e 73 74 61 6e 63 65 20 | 69 6e 73 74 3b 0d 20 20 |nstance |inst;. |
|00001a60| 7d 20 70 61 72 61 6d 73 | 3b 0d 0d 20 20 2f 2a 20 |} params|;.. /* |
|00001a70| 73 6f 6d 65 20 73 65 74 | 75 70 20 2a 2f 0d 20 20 |some set|up */. |
|00001a80| 70 61 72 61 6d 73 2e 70 | 61 72 61 6d 5f 66 6c 61 |params.p|aram_fla|
|00001a90| 67 73 20 3d 20 30 3b 0d | 20 20 70 61 72 61 6d 73 |gs = 0;.| params|
|00001aa0| 2e 70 61 72 61 6d 5f 73 | 69 7a 65 20 3d 20 36 3b |.param_s|ize = 6;|
|00001ab0| 0d 20 20 70 61 72 61 6d | 73 2e 70 61 72 61 6d 5f |. param|s.param_|
|00001ac0| 77 68 61 74 20 3d 20 33 | 35 3b 0d 20 20 2f 2a 20 |what = 3|5;. /* |
|00001ad0| 72 6f 75 74 69 6e 65 20 | 73 70 65 63 69 66 69 63 |routine |specific|
|00001ae0| 20 61 73 73 69 67 6e 6d | 65 6e 74 73 20 2a 2f 0d | assignm|ents */.|
|00001af0| 20 20 70 61 72 61 6d 73 | 2e 6e 61 6d 65 20 3d 20 | params|.name = |
|00001b00| 6e 61 6d 65 3b 0d 20 20 | 70 61 72 61 6d 73 2e 6c |name;. |params.l|
|00001b10| 6f 6e 67 6e 61 6d 65 20 | 3d 20 6c 6f 6e 67 6e 61 |ongname |= longna|
|00001b20| 6d 65 3b 0d 20 20 2f 2a | 20 64 6f 20 74 68 65 20 |me;. /*| do the |
|00001b30| 77 6f 72 6b 20 2a 2f 0d | 20 20 70 61 72 61 6d 73 |work */.| params|
|00001b40| 2e 69 6e 73 74 20 3d 20 | 69 6e 73 74 3b 0d 20 20 |.inst = |inst;. |
|00001b50| 72 65 74 75 72 6e 28 43 | 61 6c 6c 55 6e 69 76 65 |return(C|allUnive|
|00001b60| 72 73 61 6c 50 72 6f 63 | 28 43 61 6c 6c 43 6f 6d |rsalProc|(CallCom|
|00001b70| 70 6f 6e 65 6e 74 55 50 | 50 2c 0d 20 20 20 20 75 |ponentUP|P,. u|
|00001b80| 70 70 43 61 6c 6c 43 6f | 6d 70 6f 6e 65 6e 74 50 |ppCallCo|mponentP|
|00001b90| 72 6f 63 49 6e 66 6f 2c | 0d 20 20 20 20 26 70 61 |rocInfo,|. &pa|
|00001ba0| 72 61 6d 73 29 29 3b 0d | 7d 20 2f 2a 20 49 43 47 |rams));.|} /* ICG|
|00001bb0| 65 74 43 6f 6e 66 69 67 | 4e 61 6d 65 20 2a 2f 0d |etConfig|Name */.|
|00001bc0| 0d 70 61 73 63 61 6c 20 | 49 43 45 72 72 6f 72 20 |.pascal |ICError |
|00001bd0| 49 43 43 47 65 74 43 6f | 6e 66 69 67 4e 61 6d 65 |ICCGetCo|nfigName|
|00001be0| 28 49 43 49 6e 73 74 61 | 6e 63 65 20 69 6e 73 74 |(ICInsta|nce inst|
|00001bf0| 2c 20 42 6f 6f 6c 65 61 | 6e 20 6c 6f 6e 67 6e 61 |, Boolea|n longna|
|00001c00| 6d 65 2c 20 53 74 72 32 | 35 35 20 6e 61 6d 65 29 |me, Str2|55 name)|
|00001c10| 0d 7b 0d 20 20 72 65 74 | 75 72 6e 28 49 43 47 65 |.{. ret|urn(ICGe|
|00001c20| 74 43 6f 6e 66 69 67 4e | 61 6d 65 28 69 6e 73 74 |tConfigN|ame(inst|
|00001c30| 2c 20 6c 6f 6e 67 6e 61 | 6d 65 2c 20 6e 61 6d 65 |, longna|me, name|
|00001c40| 29 29 3b 0d 7d 20 2f 2a | 20 49 43 43 47 65 74 43 |));.} /*| ICCGetC|
|00001c50| 6f 6e 66 69 67 4e 61 6d | 65 20 2a 2f 0d 0d 70 61 |onfigNam|e */..pa|
|00001c60| 73 63 61 6c 20 49 43 45 | 72 72 6f 72 20 49 43 47 |scal ICE|rror ICG|
|00001c70| 65 74 43 6f 6e 66 69 67 | 52 65 66 65 72 65 6e 63 |etConfig|Referenc|
|00001c80| 65 28 49 43 49 6e 73 74 | 61 6e 63 65 20 69 6e 73 |e(ICInst|ance ins|
|00001c90| 74 2c 20 49 43 43 6f 6e | 66 69 67 52 65 66 48 61 |t, ICCon|figRefHa|
|00001ca0| 6e 64 6c 65 20 72 65 66 | 29 0d 7b 0d 20 20 73 74 |ndle ref|).{. st|
|00001cb0| 72 75 63 74 20 7b 0d 20 | 20 20 20 63 68 61 72 20 |ruct {. | char |
|00001cc0| 70 61 72 61 6d 5f 66 6c | 61 67 73 3b 0d 20 20 20 |param_fl|ags;. |
|00001cd0| 20 63 68 61 72 20 70 61 | 72 61 6d 5f 73 69 7a 65 | char pa|ram_size|
|00001ce0| 3b 0d 20 20 20 20 73 68 | 6f 72 74 20 70 61 72 61 |;. sh|ort para|
|00001cf0| 6d 5f 77 68 61 74 3b 0d | 20 20 20 20 49 43 43 6f |m_what;.| ICCo|
|00001d00| 6e 66 69 67 52 65 66 48 | 61 6e 64 6c 65 20 72 65 |nfigRefH|andle re|
|00001d10| 66 3b 0d 20 20 20 20 49 | 43 49 6e 73 74 61 6e 63 |f;. I|CInstanc|
|00001d20| 65 20 69 6e 73 74 3b 0d | 20 20 7d 20 70 61 72 61 |e inst;.| } para|
|00001d30| 6d 73 3b 0d 0d 20 20 2f | 2a 20 73 6f 6d 65 20 73 |ms;.. /|* some s|
|00001d40| 65 74 75 70 20 2a 2f 0d | 20 20 70 61 72 61 6d 73 |etup */.| params|
|00001d50| 2e 70 61 72 61 6d 5f 66 | 6c 61 67 73 20 3d 20 30 |.param_f|lags = 0|
|00001d60| 3b 0d 20 20 70 61 72 61 | 6d 73 2e 70 61 72 61 6d |;. para|ms.param|
|00001d70| 5f 73 69 7a 65 20 3d 20 | 34 3b 0d 20 20 70 61 72 |_size = |4;. par|
|00001d80| 61 6d 73 2e 70 61 72 61 | 6d 5f 77 68 61 74 20 3d |ams.para|m_what =|
|00001d90| 20 33 31 3b 0d 20 20 2f | 2a 20 72 6f 75 74 69 6e | 31;. /|* routin|
|00001da0| 65 20 73 70 65 63 69 66 | 69 63 20 61 73 73 69 67 |e specif|ic assig|
|00001db0| 6e 6d 65 6e 74 73 20 2a | 2f 0d 20 20 70 61 72 61 |nments *|/. para|
|00001dc0| 6d 73 2e 72 65 66 20 3d | 20 72 65 66 3b 0d 20 20 |ms.ref =| ref;. |
|00001dd0| 2f 2a 20 64 6f 20 74 68 | 65 20 77 6f 72 6b 20 2a |/* do th|e work *|
|00001de0| 2f 0d 20 20 70 61 72 61 | 6d 73 2e 69 6e 73 74 20 |/. para|ms.inst |
|00001df0| 3d 20 69 6e 73 74 3b 0d | 20 20 72 65 74 75 72 6e |= inst;.| return|
|00001e00| 28 43 61 6c 6c 55 6e 69 | 76 65 72 73 61 6c 50 72 |(CallUni|versalPr|
|00001e10| 6f 63 28 43 61 6c 6c 43 | 6f 6d 70 6f 6e 65 6e 74 |oc(CallC|omponent|
|00001e20| 55 50 50 2c 0d 20 20 20 | 20 75 70 70 43 61 6c 6c |UPP,. | uppCall|
|00001e30| 43 6f 6d 70 6f 6e 65 6e | 74 50 72 6f 63 49 6e 66 |Componen|tProcInf|
|00001e40| 6f 2c 0d 20 20 20 20 26 | 70 61 72 61 6d 73 29 29 |o,. &|params))|
|00001e50| 3b 0d 7d 20 2f 2a 20 49 | 43 47 65 74 43 6f 6e 66 |;.} /* I|CGetConf|
|00001e60| 69 67 52 65 66 65 72 65 | 6e 63 65 20 2a 2f 0d 0d |igRefere|nce */..|
|00001e70| 70 61 73 63 61 6c 20 49 | 43 45 72 72 6f 72 20 49 |pascal I|CError I|
|00001e80| 43 43 47 65 74 43 6f 6e | 66 69 67 52 65 66 65 72 |CCGetCon|figRefer|
|00001e90| 65 6e 63 65 28 49 43 49 | 6e 73 74 61 6e 63 65 20 |ence(ICI|nstance |
|00001ea0| 69 6e 73 74 2c 20 49 43 | 43 6f 6e 66 69 67 52 65 |inst, IC|ConfigRe|
|00001eb0| 66 48 61 6e 64 6c 65 20 | 72 65 66 29 0d 7b 0d 20 |fHandle |ref).{. |
|00001ec0| 20 72 65 74 75 72 6e 28 | 49 43 47 65 74 43 6f 6e | return(|ICGetCon|
|00001ed0| 66 69 67 52 65 66 65 72 | 65 6e 63 65 28 69 6e 73 |figRefer|ence(ins|
|00001ee0| 74 2c 20 72 65 66 29 29 | 3b 0d 7d 20 2f 2a 20 49 |t, ref))|;.} /* I|
|00001ef0| 43 43 47 65 74 43 6f 6e | 66 69 67 52 65 66 65 72 |CCGetCon|figRefer|
|00001f00| 65 6e 63 65 20 2a 2f 0d | 0d 70 61 73 63 61 6c 20 |ence */.|.pascal |
|00001f10| 49 43 45 72 72 6f 72 20 | 49 43 53 65 74 43 6f 6e |ICError |ICSetCon|
|00001f20| 66 69 67 52 65 66 65 72 | 65 6e 63 65 28 49 43 49 |figRefer|ence(ICI|
|00001f30| 6e 73 74 61 6e 63 65 20 | 69 6e 73 74 2c 20 49 43 |nstance |inst, IC|
|00001f40| 43 6f 6e 66 69 67 52 65 | 66 48 61 6e 64 6c 65 20 |ConfigRe|fHandle |
|00001f50| 72 65 66 2c 20 6c 6f 6e | 67 20 66 6c 61 67 73 29 |ref, lon|g flags)|
|00001f60| 0d 7b 0d 20 20 73 74 72 | 75 63 74 20 7b 0d 20 20 |.{. str|uct {. |
|00001f70| 20 20 63 68 61 72 20 70 | 61 72 61 6d 5f 66 6c 61 | char p|aram_fla|
|00001f80| 67 73 3b 0d 20 20 20 20 | 63 68 61 72 20 70 61 72 |gs;. |char par|
|00001f90| 61 6d 5f 73 69 7a 65 3b | 0d 20 20 20 20 73 68 6f |am_size;|. sho|
|00001fa0| 72 74 20 70 61 72 61 6d | 5f 77 68 61 74 3b 0d 20 |rt param|_what;. |
|00001fb0| 20 20 20 6c 6f 6e 67 20 | 66 6c 61 67 73 3b 0d 20 | long |flags;. |
|00001fc0| 20 20 20 49 43 43 6f 6e | 66 69 67 52 65 66 48 61 | ICCon|figRefHa|
|00001fd0| 6e 64 6c 65 20 72 65 66 | 3b 0d 20 20 20 20 49 43 |ndle ref|;. IC|
|00001fe0| 49 6e 73 74 61 6e 63 65 | 20 69 6e 73 74 3b 0d 20 |Instance| inst;. |
|00001ff0| 20 7d 20 70 61 72 61 6d | 73 3b 0d 0d 20 20 2f 2a | } param|s;.. /*|
|00002000| 20 73 6f 6d 65 20 73 65 | 74 75 70 20 2a 2f 0d 20 | some se|tup */. |
|00002010| 20 70 61 72 61 6d 73 2e | 70 61 72 61 6d 5f 66 6c | params.|param_fl|
|00002020| 61 67 73 20 3d 20 30 3b | 0d 20 20 70 61 72 61 6d |ags = 0;|. param|
|00002030| 73 2e 70 61 72 61 6d 5f | 73 69 7a 65 20 3d 20 38 |s.param_|size = 8|
|00002040| 3b 0d 20 20 70 61 72 61 | 6d 73 2e 70 61 72 61 6d |;. para|ms.param|
|00002050| 5f 77 68 61 74 20 3d 20 | 33 32 3b 0d 20 20 2f 2a |_what = |32;. /*|
|00002060| 20 72 6f 75 74 69 6e 65 | 20 73 70 65 63 69 66 69 | routine| specifi|
|00002070| 63 20 61 73 73 69 67 6e | 6d 65 6e 74 73 20 2a 2f |c assign|ments */|
|00002080| 0d 20 20 70 61 72 61 6d | 73 2e 66 6c 61 67 73 20 |. param|s.flags |
|00002090| 3d 20 66 6c 61 67 73 3b | 0d 20 20 70 61 72 61 6d |= flags;|. param|
|000020a0| 73 2e 72 65 66 20 3d 20 | 72 65 66 3b 0d 20 20 2f |s.ref = |ref;. /|
|000020b0| 2a 20 64 6f 20 74 68 65 | 20 77 6f 72 6b 20 2a 2f |* do the| work */|
|000020c0| 0d 20 20 70 61 72 61 6d | 73 2e 69 6e 73 74 20 3d |. param|s.inst =|
|000020d0| 20 69 6e 73 74 3b 0d 20 | 20 72 65 74 75 72 6e 28 | inst;. | return(|
|000020e0| 43 61 6c 6c 55 6e 69 76 | 65 72 73 61 6c 50 72 6f |CallUniv|ersalPro|
|000020f0| 63 28 43 61 6c 6c 43 6f | 6d 70 6f 6e 65 6e 74 55 |c(CallCo|mponentU|
|00002100| 50 50 2c 0d 20 20 20 20 | 75 70 70 43 61 6c 6c 43 |PP,. |uppCallC|
|00002110| 6f 6d 70 6f 6e 65 6e 74 | 50 72 6f 63 49 6e 66 6f |omponent|ProcInfo|
|00002120| 2c 0d 20 20 20 20 26 70 | 61 72 61 6d 73 29 29 3b |,. &p|arams));|
|00002130| 0d 7d 20 2f 2a 20 49 43 | 53 65 74 43 6f 6e 66 69 |.} /* IC|SetConfi|
|00002140| 67 52 65 66 65 72 65 6e | 63 65 20 2a 2f 0d 0d 70 |gReferen|ce */..p|
|00002150| 61 73 63 61 6c 20 49 43 | 45 72 72 6f 72 20 49 43 |ascal IC|Error IC|
|00002160| 43 53 65 74 43 6f 6e 66 | 69 67 52 65 66 65 72 65 |CSetConf|igRefere|
|00002170| 6e 63 65 28 49 43 49 6e | 73 74 61 6e 63 65 20 69 |nce(ICIn|stance i|
|00002180| 6e 73 74 2c 20 49 43 43 | 6f 6e 66 69 67 52 65 66 |nst, ICC|onfigRef|
|00002190| 48 61 6e 64 6c 65 20 72 | 65 66 2c 20 6c 6f 6e 67 |Handle r|ef, long|
|000021a0| 20 66 6c 61 67 73 29 0d | 7b 0d 20 20 72 65 74 75 | flags).|{. retu|
|000021b0| 72 6e 28 49 43 53 65 74 | 43 6f 6e 66 69 67 52 65 |rn(ICSet|ConfigRe|
|000021c0| 66 65 72 65 6e 63 65 28 | 69 6e 73 74 2c 20 72 65 |ference(|inst, re|
|000021d0| 66 2c 20 66 6c 61 67 73 | 29 29 3b 0d 7d 20 2f 2a |f, flags|));.} /*|
|000021e0| 20 49 43 43 53 65 74 43 | 6f 6e 66 69 67 52 65 66 | ICCSetC|onfigRef|
|000021f0| 65 72 65 6e 63 65 20 2a | 2f 0d 0d 70 61 73 63 61 |erence *|/..pasca|
|00002200| 6c 20 49 43 45 72 72 6f | 72 20 49 43 53 70 65 63 |l ICErro|r ICSpec|
|00002210| 69 66 79 43 6f 6e 66 69 | 67 46 69 6c 65 28 49 43 |ifyConfi|gFile(IC|
|00002220| 49 6e 73 74 61 6e 63 65 | 20 69 6e 73 74 2c 20 46 |Instance| inst, F|
|00002230| 53 53 70 65 63 20 2a 63 | 6f 6e 66 69 67 29 0d 7b |SSpec *c|onfig).{|
|00002240| 0d 20 20 73 74 72 75 63 | 74 20 7b 0d 20 20 20 20 |. struc|t {. |
|00002250| 63 68 61 72 20 70 61 72 | 61 6d 5f 66 6c 61 67 73 |char par|am_flags|
|00002260| 3b 0d 20 20 20 20 63 68 | 61 72 20 70 61 72 61 6d |;. ch|ar param|
|00002270| 5f 73 69 7a 65 3b 0d 20 | 20 20 20 73 68 6f 72 74 |_size;. | short|
|00002280| 20 70 61 72 61 6d 5f 77 | 68 61 74 3b 0d 20 20 20 | param_w|hat;. |
|00002290| 20 46 53 53 70 65 63 20 | 2a 63 6f 6e 66 69 67 3b | FSSpec |*config;|
|000022a0| 0d 20 20 20 20 49 43 49 | 6e 73 74 61 6e 63 65 20 |. ICI|nstance |
|000022b0| 69 6e 73 74 3b 0d 20 20 | 7d 20 70 61 72 61 6d 73 |inst;. |} params|
|000022c0| 3b 0d 0d 20 20 2f 2a 20 | 73 6f 6d 65 20 73 65 74 |;.. /* |some set|
|000022d0| 75 70 20 2a 2f 0d 20 20 | 70 61 72 61 6d 73 2e 70 |up */. |params.p|
|000022e0| 61 72 61 6d 5f 66 6c 61 | 67 73 20 3d 20 30 3b 0d |aram_fla|gs = 0;.|
|000022f0| 20 20 70 61 72 61 6d 73 | 2e 70 61 72 61 6d 5f 73 | params|.param_s|
|00002300| 69 7a 65 20 3d 20 34 3b | 0d 20 20 70 61 72 61 6d |ize = 4;|. param|
|00002310| 73 2e 70 61 72 61 6d 5f | 77 68 61 74 20 3d 20 33 |s.param_|what = 3|
|00002320| 3b 0d 20 20 2f 2a 20 72 | 6f 75 74 69 6e 65 20 73 |;. /* r|outine s|
|00002330| 70 65 63 69 66 69 63 20 | 61 73 73 69 67 6e 6d 65 |pecific |assignme|
|00002340| 6e 74 73 20 2a 2f 0d 20 | 20 70 61 72 61 6d 73 2e |nts */. | params.|
|00002350| 63 6f 6e 66 69 67 20 3d | 20 63 6f 6e 66 69 67 3b |config =| config;|
|00002360| 0d 20 20 2f 2a 20 64 6f | 20 74 68 65 20 77 6f 72 |. /* do| the wor|
|00002370| 6b 20 2a 2f 0d 20 20 70 | 61 72 61 6d 73 2e 69 6e |k */. p|arams.in|
|00002380| 73 74 20 3d 20 69 6e 73 | 74 3b 0d 20 20 72 65 74 |st = ins|t;. ret|
|00002390| 75 72 6e 28 43 61 6c 6c | 55 6e 69 76 65 72 73 61 |urn(Call|Universa|
|000023a0| 6c 50 72 6f 63 28 43 61 | 6c 6c 43 6f 6d 70 6f 6e |lProc(Ca|llCompon|
|000023b0| 65 6e 74 55 50 50 2c 0d | 20 20 20 20 75 70 70 43 |entUPP,.| uppC|
|000023c0| 61 6c 6c 43 6f 6d 70 6f | 6e 65 6e 74 50 72 6f 63 |allCompo|nentProc|
|000023d0| 49 6e 66 6f 2c 0d 20 20 | 20 20 26 70 61 72 61 6d |Info,. | ¶m|
|000023e0| 73 29 29 3b 0d 7d 20 2f | 2a 20 49 43 53 70 65 63 |s));.} /|* ICSpec|
|000023f0| 69 66 79 43 6f 6e 66 69 | 67 46 69 6c 65 20 2a 2f |ifyConfi|gFile */|
|00002400| 0d 0d 70 61 73 63 61 6c | 20 49 43 45 72 72 6f 72 |..pascal| ICError|
|00002410| 20 49 43 43 53 70 65 63 | 69 66 79 43 6f 6e 66 69 | ICCSpec|ifyConfi|
|00002420| 67 46 69 6c 65 28 49 43 | 49 6e 73 74 61 6e 63 65 |gFile(IC|Instance|
|00002430| 20 69 6e 73 74 2c 20 46 | 53 53 70 65 63 20 2a 63 | inst, F|SSpec *c|
|00002440| 6f 6e 66 69 67 29 0d 7b | 0d 20 20 72 65 74 75 72 |onfig).{|. retur|
|00002450| 6e 28 49 43 53 70 65 63 | 69 66 79 43 6f 6e 66 69 |n(ICSpec|ifyConfi|
|00002460| 67 46 69 6c 65 28 69 6e | 73 74 2c 20 63 6f 6e 66 |gFile(in|st, conf|
|00002470| 69 67 29 29 3b 0d 7d 20 | 2f 2a 20 49 43 43 53 70 |ig));.} |/* ICCSp|
|00002480| 65 63 69 66 79 43 6f 6e | 66 69 67 46 69 6c 65 20 |ecifyCon|figFile |
|00002490| 2a 2f 0d 0d 2f 2a 20 2a | 2a 2a 2a 2a 20 47 65 74 |*/../* *|**** Get|
|000024a0| 74 69 6e 67 20 49 6e 66 | 6f 72 6d 61 74 69 6f 6e |ting Inf|ormation|
|000024b0| 20 2a 2a 2a 2a 2a 20 2a | 2f 0d 0d 70 61 73 63 61 | ***** *|/..pasca|
|000024c0| 6c 20 49 43 45 72 72 6f | 72 20 49 43 47 65 74 53 |l ICErro|r ICGetS|
|000024d0| 65 65 64 28 49 43 49 6e | 73 74 61 6e 63 65 20 69 |eed(ICIn|stance i|
|000024e0| 6e 73 74 2c 20 6c 6f 6e | 67 20 2a 73 65 65 64 29 |nst, lon|g *seed)|
|000024f0| 0d 7b 0d 20 20 73 74 72 | 75 63 74 20 7b 0d 20 20 |.{. str|uct {. |
|00002500| 20 20 63 68 61 72 20 70 | 61 72 61 6d 5f 66 6c 61 | char p|aram_fla|
|00002510| 67 73 3b 0d 20 20 20 20 | 63 68 61 72 20 70 61 72 |gs;. |char par|
|00002520| 61 6d 5f 73 69 7a 65 3b | 0d 20 20 20 20 73 68 6f |am_size;|. sho|
|00002530| 72 74 20 70 61 72 61 6d | 5f 77 68 61 74 3b 0d 20 |rt param|_what;. |
|00002540| 20 20 20 6c 6f 6e 67 20 | 2a 73 65 65 64 3b 0d 20 | long |*seed;. |
|00002550| 20 20 20 49 43 49 6e 73 | 74 61 6e 63 65 20 69 6e | ICIns|tance in|
|00002560| 73 74 3b 0d 20 20 7d 20 | 70 61 72 61 6d 73 3b 0d |st;. } |params;.|
|00002570| 0d 20 20 2f 2a 20 73 6f | 6d 65 20 73 65 74 75 70 |. /* so|me setup|
|00002580| 20 2a 2f 0d 20 20 70 61 | 72 61 6d 73 2e 70 61 72 | */. pa|rams.par|
|00002590| 61 6d 5f 66 6c 61 67 73 | 20 3d 20 30 3b 0d 20 20 |am_flags| = 0;. |
|000025a0| 70 61 72 61 6d 73 2e 70 | 61 72 61 6d 5f 73 69 7a |params.p|aram_siz|
|000025b0| 65 20 3d 20 34 3b 0d 20 | 20 70 61 72 61 6d 73 2e |e = 4;. | params.|
|000025c0| 70 61 72 61 6d 5f 77 68 | 61 74 20 3d 20 34 3b 0d |param_wh|at = 4;.|
|000025d0| 20 20 2f 2a 20 72 6f 75 | 74 69 6e 65 20 73 70 65 | /* rou|tine spe|
|000025e0| 63 69 66 69 63 20 61 73 | 73 69 67 6e 6d 65 6e 74 |cific as|signment|
|000025f0| 73 20 2a 2f 0d 20 20 70 | 61 72 61 6d 73 2e 73 65 |s */. p|arams.se|
|00002600| 65 64 20 3d 20 73 65 65 | 64 3b 0d 20 20 2f 2a 20 |ed = see|d;. /* |
|00002610| 64 6f 20 74 68 65 20 77 | 6f 72 6b 20 2a 2f 0d 20 |do the w|ork */. |
|00002620| 20 70 61 72 61 6d 73 2e | 69 6e 73 74 20 3d 20 69 | params.|inst = i|
|00002630| 6e 73 74 3b 0d 20 20 72 | 65 74 75 72 6e 28 43 61 |nst;. r|eturn(Ca|
|00002640| 6c 6c 55 6e 69 76 65 72 | 73 61 6c 50 72 6f 63 28 |llUniver|salProc(|
|00002650| 43 61 6c 6c 43 6f 6d 70 | 6f 6e 65 6e 74 55 50 50 |CallComp|onentUPP|
|00002660| 2c 0d 20 20 20 20 75 70 | 70 43 61 6c 6c 43 6f 6d |,. up|pCallCom|
|00002670| 70 6f 6e 65 6e 74 50 72 | 6f 63 49 6e 66 6f 2c 0d |ponentPr|ocInfo,.|
|00002680| 20 20 20 20 26 70 61 72 | 61 6d 73 29 29 3b 0d 7d | &par|ams));.}|
|00002690| 20 2f 2a 20 49 43 47 65 | 74 53 65 65 64 20 2a 2f | /* ICGe|tSeed */|
|000026a0| 0d 0d 70 61 73 63 61 6c | 20 49 43 45 72 72 6f 72 |..pascal| ICError|
|000026b0| 20 49 43 43 47 65 74 53 | 65 65 64 28 49 43 49 6e | ICCGetS|eed(ICIn|
|000026c0| 73 74 61 6e 63 65 20 69 | 6e 73 74 2c 20 6c 6f 6e |stance i|nst, lon|
|000026d0| 67 20 2a 73 65 65 64 29 | 0d 7b 0d 20 20 72 65 74 |g *seed)|.{. ret|
|000026e0| 75 72 6e 28 49 43 47 65 | 74 53 65 65 64 28 69 6e |urn(ICGe|tSeed(in|
|000026f0| 73 74 2c 20 73 65 65 64 | 29 29 3b 0d 7d 20 2f 2a |st, seed|));.} /*|
|00002700| 20 49 43 43 47 65 74 53 | 65 65 64 20 2a 2f 0d 0d | ICCGetS|eed */..|
|00002710| 70 61 73 63 61 6c 20 49 | 43 45 72 72 6f 72 20 49 |pascal I|CError I|
|00002720| 43 47 65 74 50 65 72 6d | 28 49 43 49 6e 73 74 61 |CGetPerm|(ICInsta|
|00002730| 6e 63 65 20 69 6e 73 74 | 2c 20 49 43 50 65 72 6d |nce inst|, ICPerm|
|00002740| 20 2a 70 65 72 6d 29 0d | 7b 0d 20 20 73 74 72 75 | *perm).|{. stru|
|00002750| 63 74 20 7b 0d 20 20 20 | 20 63 68 61 72 20 70 61 |ct {. | char pa|
|00002760| 72 61 6d 5f 66 6c 61 67 | 73 3b 0d 20 20 20 20 63 |ram_flag|s;. c|
|00002770| 68 61 72 20 70 61 72 61 | 6d 5f 73 69 7a 65 3b 0d |har para|m_size;.|
|00002780| 20 20 20 20 73 68 6f 72 | 74 20 70 61 72 61 6d 5f | shor|t param_|
|00002790| 77 68 61 74 3b 0d 20 20 | 20 20 49 43 50 65 72 6d |what;. | ICPerm|
|000027a0| 20 2a 70 65 72 6d 3b 0d | 20 20 20 20 49 43 49 6e | *perm;.| ICIn|
|000027b0| 73 74 61 6e 63 65 20 69 | 6e 73 74 3b 0d 20 20 7d |stance i|nst;. }|
|000027c0| 20 70 61 72 61 6d 73 3b | 0d 0d 20 20 2f 2a 20 73 | params;|.. /* s|
|000027d0| 6f 6d 65 20 73 65 74 75 | 70 20 2a 2f 0d 20 20 70 |ome setu|p */. p|
|000027e0| 61 72 61 6d 73 2e 70 61 | 72 61 6d 5f 66 6c 61 67 |arams.pa|ram_flag|
|000027f0| 73 20 3d 20 30 3b 0d 20 | 20 70 61 72 61 6d 73 2e |s = 0;. | params.|
|00002800| 70 61 72 61 6d 5f 73 69 | 7a 65 20 3d 20 34 3b 0d |param_si|ze = 4;.|
|00002810| 20 20 70 61 72 61 6d 73 | 2e 70 61 72 61 6d 5f 77 | params|.param_w|
|00002820| 68 61 74 20 3d 20 31 33 | 3b 0d 20 20 2f 2a 20 72 |hat = 13|;. /* r|
|00002830| 6f 75 74 69 6e 65 20 73 | 70 65 63 69 66 69 63 20 |outine s|pecific |
|00002840| 61 73 73 69 67 6e 6d 65 | 6e 74 73 20 2a 2f 0d 20 |assignme|nts */. |
|00002850| 20 70 61 72 61 6d 73 2e | 70 65 72 6d 20 3d 20 70 | params.|perm = p|
|00002860| 65 72 6d 3b 0d 20 20 2f | 2a 20 64 6f 20 74 68 65 |erm;. /|* do the|
|00002870| 20 77 6f 72 6b 20 2a 2f | 0d 20 20 70 61 72 61 6d | work */|. param|
|00002880| 73 2e 69 6e 73 74 20 3d | 20 69 6e 73 74 3b 0d 20 |s.inst =| inst;. |
|00002890| 20 72 65 74 75 72 6e 28 | 43 61 6c 6c 55 6e 69 76 | return(|CallUniv|
|000028a0| 65 72 73 61 6c 50 72 6f | 63 28 43 61 6c 6c 43 6f |ersalPro|c(CallCo|
|000028b0| 6d 70 6f 6e 65 6e 74 55 | 50 50 2c 0d 20 20 20 20 |mponentU|PP,. |
|000028c0| 75 70 70 43 61 6c 6c 43 | 6f 6d 70 6f 6e 65 6e 74 |uppCallC|omponent|
|000028d0| 50 72 6f 63 49 6e 66 6f | 2c 0d 20 20 20 20 26 70 |ProcInfo|,. &p|
|000028e0| 61 72 61 6d 73 29 29 3b | 0d 7d 20 2f 2a 20 49 43 |arams));|.} /* IC|
|000028f0| 47 65 74 50 65 72 6d 20 | 2a 2f 0d 0d 70 61 73 63 |GetPerm |*/..pasc|
|00002900| 61 6c 20 49 43 45 72 72 | 6f 72 20 49 43 43 47 65 |al ICErr|or ICCGe|
|00002910| 74 50 65 72 6d 28 49 43 | 49 6e 73 74 61 6e 63 65 |tPerm(IC|Instance|
|00002920| 20 69 6e 73 74 2c 20 49 | 43 50 65 72 6d 20 2a 70 | inst, I|CPerm *p|
|00002930| 65 72 6d 29 0d 7b 0d 20 | 20 72 65 74 75 72 6e 28 |erm).{. | return(|
|00002940| 49 43 47 65 74 50 65 72 | 6d 28 69 6e 73 74 2c 20 |ICGetPer|m(inst, |
|00002950| 70 65 72 6d 29 29 3b 0d | 7d 20 2f 2a 20 49 43 43 |perm));.|} /* ICC|
|00002960| 47 65 74 50 65 72 6d 20 | 2a 2f 0d 0d 70 61 73 63 |GetPerm |*/..pasc|
|00002970| 61 6c 20 49 43 45 72 72 | 6f 72 20 49 43 44 65 66 |al ICErr|or ICDef|
|00002980| 61 75 6c 74 46 69 6c 65 | 4e 61 6d 65 28 49 43 49 |aultFile|Name(ICI|
|00002990| 6e 73 74 61 6e 63 65 20 | 69 6e 73 74 2c 20 53 74 |nstance |inst, St|
|000029a0| 72 36 33 20 6e 61 6d 65 | 29 0d 7b 0d 20 20 73 74 |r63 name|).{. st|
|000029b0| 72 75 63 74 20 7b 0d 20 | 20 20 20 63 68 61 72 20 |ruct {. | char |
|000029c0| 70 61 72 61 6d 5f 66 6c | 61 67 73 3b 0d 20 20 20 |param_fl|ags;. |
|000029d0| 20 63 68 61 72 20 70 61 | 72 61 6d 5f 73 69 7a 65 | char pa|ram_size|
|000029e0| 3b 0d 20 20 20 20 73 68 | 6f 72 74 20 70 61 72 61 |;. sh|ort para|
|000029f0| 6d 5f 77 68 61 74 3b 0d | 20 20 20 20 53 74 72 69 |m_what;.| Stri|
|00002a00| 6e 67 50 74 72 20 6e 61 | 6d 65 3b 0d 20 20 20 20 |ngPtr na|me;. |
|00002a10| 49 43 49 6e 73 74 61 6e | 63 65 20 69 6e 73 74 3b |ICInstan|ce inst;|
|00002a20| 0d 20 20 7d 20 70 61 72 | 61 6d 73 3b 0d 0d 20 20 |. } par|ams;.. |
|00002a30| 2f 2a 20 73 6f 6d 65 20 | 73 65 74 75 70 20 2a 2f |/* some |setup */|
|00002a40| 0d 20 20 70 61 72 61 6d | 73 2e 70 61 72 61 6d 5f |. param|s.param_|
|00002a50| 66 6c 61 67 73 20 3d 20 | 30 3b 0d 20 20 70 61 72 |flags = |0;. par|
|00002a60| 61 6d 73 2e 70 61 72 61 | 6d 5f 73 69 7a 65 20 3d |ams.para|m_size =|
|00002a70| 20 34 3b 0d 20 20 70 61 | 72 61 6d 73 2e 70 61 72 | 4;. pa|rams.par|
|00002a80| 61 6d 5f 77 68 61 74 20 | 3d 20 31 31 3b 0d 20 20 |am_what |= 11;. |
|00002a90| 2f 2a 20 72 6f 75 74 69 | 6e 65 20 73 70 65 63 69 |/* routi|ne speci|
|00002aa0| 66 69 63 20 61 73 73 69 | 67 6e 6d 65 6e 74 73 20 |fic assi|gnments |
|00002ab0| 2a 2f 0d 20 20 70 61 72 | 61 6d 73 2e 6e 61 6d 65 |*/. par|ams.name|
|00002ac0| 20 3d 20 6e 61 6d 65 3b | 0d 20 20 2f 2a 20 64 6f | = name;|. /* do|
|00002ad0| 20 74 68 65 20 77 6f 72 | 6b 20 2a 2f 0d 20 20 70 | the wor|k */. p|
|00002ae0| 61 72 61 6d 73 2e 69 6e | 73 74 20 3d 20 69 6e 73 |arams.in|st = ins|
|00002af0| 74 3b 0d 20 20 72 65 74 | 75 72 6e 28 43 61 6c 6c |t;. ret|urn(Call|
|00002b00| 55 6e 69 76 65 72 73 61 | 6c 50 72 6f 63 28 43 61 |Universa|lProc(Ca|
|00002b10| 6c 6c 43 6f 6d 70 6f 6e | 65 6e 74 55 50 50 2c 0d |llCompon|entUPP,.|
|00002b20| 20 20 20 20 75 70 70 43 | 61 6c 6c 43 6f 6d 70 6f | uppC|allCompo|
|00002b30| 6e 65 6e 74 50 72 6f 63 | 49 6e 66 6f 2c 0d 20 20 |nentProc|Info,. |
|00002b40| 20 20 26 70 61 72 61 6d | 73 29 29 3b 0d 7d 20 2f | ¶m|s));.} /|
|00002b50| 2a 20 49 43 44 65 66 61 | 75 6c 74 46 69 6c 65 4e |* ICDefa|ultFileN|
|00002b60| 61 6d 65 20 2a 2f 0d 0d | 70 61 73 63 61 6c 20 49 |ame */..|pascal I|
|00002b70| 43 45 72 72 6f 72 20 49 | 43 43 44 65 66 61 75 6c |CError I|CCDefaul|
|00002b80| 74 46 69 6c 65 4e 61 6d | 65 28 49 43 49 6e 73 74 |tFileNam|e(ICInst|
|00002b90| 61 6e 63 65 20 69 6e 73 | 74 2c 20 53 74 72 36 33 |ance ins|t, Str63|
|00002ba0| 20 6e 61 6d 65 29 0d 7b | 0d 20 20 72 65 74 75 72 | name).{|. retur|
|00002bb0| 6e 28 49 43 44 65 66 61 | 75 6c 74 46 69 6c 65 4e |n(ICDefa|ultFileN|
|00002bc0| 61 6d 65 28 69 6e 73 74 | 2c 20 6e 61 6d 65 29 29 |ame(inst|, name))|
|00002bd0| 3b 0d 7d 20 2f 2a 20 49 | 43 43 44 65 66 61 75 6c |;.} /* I|CCDefaul|
|00002be0| 74 46 69 6c 65 4e 61 6d | 65 20 2a 2f 0d 0d 2f 2a |tFileNam|e */../*|
|00002bf0| 20 2a 2a 2a 2a 2a 20 52 | 65 61 64 69 6e 67 20 61 | ***** R|eading a|
|00002c00| 6e 64 20 57 72 69 74 69 | 6e 67 20 50 72 65 66 65 |nd Writi|ng Prefe|
|00002c10| 72 65 6e 63 65 73 20 2a | 2a 2a 2a 2a 20 2a 2f 0d |rences *|**** */.|
|00002c20| 0d 70 61 73 63 61 6c 20 | 49 43 45 72 72 6f 72 20 |.pascal |ICError |
|00002c30| 49 43 42 65 67 69 6e 28 | 49 43 49 6e 73 74 61 6e |ICBegin(|ICInstan|
|00002c40| 63 65 20 69 6e 73 74 2c | 20 49 43 50 65 72 6d 20 |ce inst,| ICPerm |
|00002c50| 70 65 72 6d 29 0d 7b 0d | 20 20 73 74 72 75 63 74 |perm).{.| struct|
|00002c60| 20 7b 0d 20 20 20 20 63 | 68 61 72 20 70 61 72 61 | {. c|har para|
|00002c70| 6d 5f 66 6c 61 67 73 3b | 0d 20 20 20 20 63 68 61 |m_flags;|. cha|
|00002c80| 72 20 70 61 72 61 6d 5f | 73 69 7a 65 3b 0d 20 20 |r param_|size;. |
|00002c90| 20 20 73 68 6f 72 74 20 | 70 61 72 61 6d 5f 77 68 | short |param_wh|
|00002ca0| 61 74 3b 0d 20 20 20 20 | 49 43 50 65 72 6d 20 70 |at;. |ICPerm p|
|00002cb0| 65 72 6d 3b 0d 20 20 20 | 20 49 43 49 6e 73 74 61 |erm;. | ICInsta|
|00002cc0| 6e 63 65 20 69 6e 73 74 | 3b 0d 20 20 7d 20 70 61 |nce inst|;. } pa|
|00002cd0| 72 61 6d 73 3b 0d 0d 20 | 20 2f 2a 20 73 6f 6d 65 |rams;.. | /* some|
|00002ce0| 20 73 65 74 75 70 20 2a | 2f 0d 20 20 70 61 72 61 | setup *|/. para|
|00002cf0| 6d 73 2e 70 61 72 61 6d | 5f 66 6c 61 67 73 20 3d |ms.param|_flags =|
|00002d00| 20 30 3b 0d 20 20 70 61 | 72 61 6d 73 2e 70 61 72 | 0;. pa|rams.par|
|00002d10| 61 6d 5f 73 69 7a 65 20 | 3d 20 32 3b 0d 20 20 70 |am_size |= 2;. p|
|00002d20| 61 72 61 6d 73 2e 70 61 | 72 61 6d 5f 77 68 61 74 |arams.pa|ram_what|
|00002d30| 20 3d 20 35 3b 0d 20 20 | 2f 2a 20 72 6f 75 74 69 | = 5;. |/* routi|
|00002d40| 6e 65 20 73 70 65 63 69 | 66 69 63 20 61 73 73 69 |ne speci|fic assi|
|00002d50| 67 6e 6d 65 6e 74 73 20 | 2a 2f 0d 20 20 70 61 72 |gnments |*/. par|
|00002d60| 61 6d 73 2e 70 65 72 6d | 20 3d 20 70 65 72 6d 3b |ams.perm| = perm;|
|00002d70| 0d 20 20 2f 2a 20 64 6f | 20 74 68 65 20 77 6f 72 |. /* do| the wor|
|00002d80| 6b 20 2a 2f 0d 20 20 70 | 61 72 61 6d 73 2e 69 6e |k */. p|arams.in|
|00002d90| 73 74 20 3d 20 69 6e 73 | 74 3b 0d 20 20 72 65 74 |st = ins|t;. ret|
|00002da0| 75 72 6e 28 43 61 6c 6c | 55 6e 69 76 65 72 73 61 |urn(Call|Universa|
|00002db0| 6c 50 72 6f 63 28 43 61 | 6c 6c 43 6f 6d 70 6f 6e |lProc(Ca|llCompon|
|00002dc0| 65 6e 74 55 50 50 2c 0d | 20 20 20 20 75 70 70 43 |entUPP,.| uppC|
|00002dd0| 61 6c 6c 43 6f 6d 70 6f | 6e 65 6e 74 50 72 6f 63 |allCompo|nentProc|
|00002de0| 49 6e 66 6f 2c 0d 20 20 | 20 20 26 70 61 72 61 6d |Info,. | ¶m|
|00002df0| 73 29 29 3b 0d 7d 20 2f | 2a 20 49 43 42 65 67 69 |s));.} /|* ICBegi|
|00002e00| 6e 20 2a 2f 0d 0d 70 61 | 73 63 61 6c 20 49 43 45 |n */..pa|scal ICE|
|00002e10| 72 72 6f 72 20 49 43 43 | 42 65 67 69 6e 28 49 43 |rror ICC|Begin(IC|
|00002e20| 49 6e 73 74 61 6e 63 65 | 20 69 6e 73 74 2c 20 49 |Instance| inst, I|
|00002e30| 43 50 65 72 6d 20 70 65 | 72 6d 29 0d 7b 0d 20 20 |CPerm pe|rm).{. |
|00002e40| 72 65 74 75 72 6e 28 49 | 43 42 65 67 69 6e 28 69 |return(I|CBegin(i|
|00002e50| 6e 73 74 2c 20 70 65 72 | 6d 29 29 3b 0d 7d 20 2f |nst, per|m));.} /|
|00002e60| 2a 20 49 43 43 42 65 67 | 69 6e 20 2a 2f 0d 0d 70 |* ICCBeg|in */..p|
|00002e70| 61 73 63 61 6c 20 49 43 | 45 72 72 6f 72 20 49 43 |ascal IC|Error IC|
|00002e80| 47 65 74 50 72 65 66 28 | 49 43 49 6e 73 74 61 6e |GetPref(|ICInstan|
|00002e90| 63 65 20 69 6e 73 74 2c | 20 43 6f 6e 73 74 53 74 |ce inst,| ConstSt|
|00002ea0| 72 32 35 35 50 61 72 61 | 6d 20 6b 65 79 2c 20 49 |r255Para|m key, I|
|00002eb0| 43 41 74 74 72 20 2a 61 | 74 74 72 2c 20 50 74 72 |CAttr *a|ttr, Ptr|
|00002ec0| 20 62 75 66 2c 20 6c 6f | 6e 67 20 2a 73 69 7a 65 | buf, lo|ng *size|
|00002ed0| 29 0d 7b 0d 20 20 73 74 | 72 75 63 74 20 7b 0d 20 |).{. st|ruct {. |
|00002ee0| 20 20 20 63 68 61 72 20 | 70 61 72 61 6d 5f 66 6c | char |param_fl|
|00002ef0| 61 67 73 3b 0d 20 20 20 | 20 63 68 61 72 20 70 61 |ags;. | char pa|
|00002f00| 72 61 6d 5f 73 69 7a 65 | 3b 0d 20 20 20 20 73 68 |ram_size|;. sh|
|00002f10| 6f 72 74 20 70 61 72 61 | 6d 5f 77 68 61 74 3b 0d |ort para|m_what;.|
|00002f20| 20 20 20 20 6c 6f 6e 67 | 20 2a 73 69 7a 65 3b 0d | long| *size;.|
|00002f30| 20 20 20 20 50 74 72 20 | 62 75 66 3b 0d 20 20 20 | Ptr |buf;. |
|00002f40| 20 49 43 41 74 74 72 20 | 2a 61 74 74 72 3b 0d 20 | ICAttr |*attr;. |
|00002f50| 20 20 20 53 74 72 69 6e | 67 50 74 72 20 6b 65 79 | Strin|gPtr key|
|00002f60| 3b 0d 20 20 20 20 49 43 | 49 6e 73 74 61 6e 63 65 |;. IC|Instance|
|00002f70| 20 69 6e 73 74 3b 0d 20 | 20 7d 20 70 61 72 61 6d | inst;. | } param|
|00002f80| 73 3b 0d 0d 20 20 2f 2a | 20 73 6f 6d 65 20 73 65 |s;.. /*| some se|
|00002f90| 74 75 70 20 2a 2f 0d 20 | 20 70 61 72 61 6d 73 2e |tup */. | params.|
|00002fa0| 70 61 72 61 6d 5f 66 6c | 61 67 73 20 3d 20 30 3b |param_fl|ags = 0;|
|00002fb0| 0d 20 20 70 61 72 61 6d | 73 2e 70 61 72 61 6d 5f |. param|s.param_|
|00002fc0| 73 69 7a 65 20 3d 20 31 | 36 3b 0d 20 20 70 61 72 |size = 1|6;. par|
|00002fd0| 61 6d 73 2e 70 61 72 61 | 6d 5f 77 68 61 74 20 3d |ams.para|m_what =|
|00002fe0| 20 36 3b 0d 20 20 2f 2a | 20 72 6f 75 74 69 6e 65 | 6;. /*| routine|
|00002ff0| 20 73 70 65 63 69 66 69 | 63 20 61 73 73 69 67 6e | specifi|c assign|
|00003000| 6d 65 6e 74 73 20 2a 2f | 0d 20 20 70 61 72 61 6d |ments */|. param|
|00003010| 73 2e 73 69 7a 65 20 3d | 20 73 69 7a 65 3b 0d 20 |s.size =| size;. |
|00003020| 20 70 61 72 61 6d 73 2e | 62 75 66 20 3d 20 62 75 | params.|buf = bu|
|00003030| 66 3b 0d 20 20 70 61 72 | 61 6d 73 2e 61 74 74 72 |f;. par|ams.attr|
|00003040| 20 3d 20 61 74 74 72 3b | 0d 20 20 70 61 72 61 6d | = attr;|. param|
|00003050| 73 2e 6b 65 79 20 3d 20 | 28 53 74 72 69 6e 67 50 |s.key = |(StringP|
|00003060| 74 72 29 20 6b 65 79 3b | 0d 20 20 2f 2a 20 64 6f |tr) key;|. /* do|
|00003070| 20 74 68 65 20 77 6f 72 | 6b 20 2a 2f 0d 20 20 70 | the wor|k */. p|
|00003080| 61 72 61 6d 73 2e 69 6e | 73 74 20 3d 20 69 6e 73 |arams.in|st = ins|
|00003090| 74 3b 0d 20 20 72 65 74 | 75 72 6e 28 43 61 6c 6c |t;. ret|urn(Call|
|000030a0| 55 6e 69 76 65 72 73 61 | 6c 50 72 6f 63 28 43 61 |Universa|lProc(Ca|
|000030b0| 6c 6c 43 6f 6d 70 6f 6e | 65 6e 74 55 50 50 2c 0d |llCompon|entUPP,.|
|000030c0| 20 20 20 20 75 70 70 43 | 61 6c 6c 43 6f 6d 70 6f | uppC|allCompo|
|000030d0| 6e 65 6e 74 50 72 6f 63 | 49 6e 66 6f 2c 0d 20 20 |nentProc|Info,. |
|000030e0| 20 20 26 70 61 72 61 6d | 73 29 29 3b 0d 7d 20 2f | ¶m|s));.} /|
|000030f0| 2a 20 49 43 47 65 74 50 | 72 65 66 20 2a 2f 0d 0d |* ICGetP|ref */..|
|00003100| 70 61 73 63 61 6c 20 49 | 43 45 72 72 6f 72 20 49 |pascal I|CError I|
|00003110| 43 43 47 65 74 50 72 65 | 66 28 49 43 49 6e 73 74 |CCGetPre|f(ICInst|
|00003120| 61 6e 63 65 20 69 6e 73 | 74 2c 20 43 6f 6e 73 74 |ance ins|t, Const|
|00003130| 53 74 72 32 35 35 50 61 | 72 61 6d 20 6b 65 79 2c |Str255Pa|ram key,|
|00003140| 20 49 43 41 74 74 72 20 | 2a 61 74 74 72 2c 20 50 | ICAttr |*attr, P|
|00003150| 74 72 20 62 75 66 2c 20 | 6c 6f 6e 67 20 2a 73 69 |tr buf, |long *si|
|00003160| 7a 65 29 0d 7b 0d 20 20 | 72 65 74 75 72 6e 28 49 |ze).{. |return(I|
|00003170| 43 47 65 74 50 72 65 66 | 28 69 6e 73 74 2c 20 6b |CGetPref|(inst, k|
|00003180| 65 79 2c 20 61 74 74 72 | 2c 20 62 75 66 2c 20 73 |ey, attr|, buf, s|
|00003190| 69 7a 65 29 29 3b 0d 7d | 20 2f 2a 20 49 43 43 47 |ize));.}| /* ICCG|
|000031a0| 65 74 50 72 65 66 20 2a | 2f 0d 0d 70 61 73 63 61 |etPref *|/..pasca|
|000031b0| 6c 20 49 43 45 72 72 6f | 72 20 49 43 53 65 74 50 |l ICErro|r ICSetP|
|000031c0| 72 65 66 28 49 43 49 6e | 73 74 61 6e 63 65 20 69 |ref(ICIn|stance i|
|000031d0| 6e 73 74 2c 20 43 6f 6e | 73 74 53 74 72 32 35 35 |nst, Con|stStr255|
|000031e0| 50 61 72 61 6d 20 6b 65 | 79 2c 20 49 43 41 74 74 |Param ke|y, ICAtt|
|000031f0| 72 20 61 74 74 72 2c 20 | 50 74 72 20 62 75 66 2c |r attr, |Ptr buf,|
|00003200| 20 6c 6f 6e 67 20 73 69 | 7a 65 29 0d 7b 0d 20 20 | long si|ze).{. |
|00003210| 73 74 72 75 63 74 20 7b | 0d 20 20 20 20 63 68 61 |struct {|. cha|
|00003220| 72 20 70 61 72 61 6d 5f | 66 6c 61 67 73 3b 0d 20 |r param_|flags;. |
|00003230| 20 20 20 63 68 61 72 20 | 70 61 72 61 6d 5f 73 69 | char |param_si|
|00003240| 7a 65 3b 0d 20 20 20 20 | 73 68 6f 72 74 20 70 61 |ze;. |short pa|
|00003250| 72 61 6d 5f 77 68 61 74 | 3b 0d 20 20 20 20 6c 6f |ram_what|;. lo|
|00003260| 6e 67 20 73 69 7a 65 3b | 0d 20 20 20 20 50 74 72 |ng size;|. Ptr|
|00003270| 20 62 75 66 3b 0d 20 20 | 20 20 49 43 41 74 74 72 | buf;. | ICAttr|
|00003280| 20 61 74 74 72 3b 0d 20 | 20 20 20 53 74 72 69 6e | attr;. | Strin|
|00003290| 67 50 74 72 20 6b 65 79 | 3b 0d 20 20 20 20 49 43 |gPtr key|;. IC|
|000032a0| 49 6e 73 74 61 6e 63 65 | 20 69 6e 73 74 3b 0d 20 |Instance| inst;. |
|000032b0| 20 7d 20 70 61 72 61 6d | 73 3b 0d 0d 20 20 2f 2a | } param|s;.. /*|
|000032c0| 20 73 6f 6d 65 20 73 65 | 74 75 70 20 2a 2f 0d 20 | some se|tup */. |
|000032d0| 20 70 61 72 61 6d 73 2e | 70 61 72 61 6d 5f 66 6c | params.|param_fl|
|000032e0| 61 67 73 20 3d 20 30 3b | 0d 20 20 70 61 72 61 6d |ags = 0;|. param|
|000032f0| 73 2e 70 61 72 61 6d 5f | 73 69 7a 65 20 3d 20 31 |s.param_|size = 1|
|00003300| 36 3b 0d 20 20 70 61 72 | 61 6d 73 2e 70 61 72 61 |6;. par|ams.para|
|00003310| 6d 5f 77 68 61 74 20 3d | 20 37 3b 0d 20 20 2f 2a |m_what =| 7;. /*|
|00003320| 20 72 6f 75 74 69 6e 65 | 20 73 70 65 63 69 66 69 | routine| specifi|
|00003330| 63 20 61 73 73 69 67 6e | 6d 65 6e 74 73 20 2a 2f |c assign|ments */|
|00003340| 0d 20 20 70 61 72 61 6d | 73 2e 73 69 7a 65 20 3d |. param|s.size =|
|00003350| 20 73 69 7a 65 3b 0d 20 | 20 70 61 72 61 6d 73 2e | size;. | params.|
|00003360| 62 75 66 20 3d 20 62 75 | 66 3b 0d 20 20 70 61 72 |buf = bu|f;. par|
|00003370| 61 6d 73 2e 61 74 74 72 | 20 3d 20 61 74 74 72 3b |ams.attr| = attr;|
|00003380| 0d 20 20 70 61 72 61 6d | 73 2e 6b 65 79 20 3d 20 |. param|s.key = |
|00003390| 28 53 74 72 69 6e 67 50 | 74 72 29 20 6b 65 79 3b |(StringP|tr) key;|
|000033a0| 0d 20 20 2f 2a 20 64 6f | 20 74 68 65 20 77 6f 72 |. /* do| the wor|
|000033b0| 6b 20 2a 2f 0d 20 20 70 | 61 72 61 6d 73 2e 69 6e |k */. p|arams.in|
|000033c0| 73 74 20 3d 20 69 6e 73 | 74 3b 0d 20 20 72 65 74 |st = ins|t;. ret|
|000033d0| 75 72 6e 28 43 61 6c 6c | 55 6e 69 76 65 72 73 61 |urn(Call|Universa|
|000033e0| 6c 50 72 6f 63 28 43 61 | 6c 6c 43 6f 6d 70 6f 6e |lProc(Ca|llCompon|
|000033f0| 65 6e 74 55 50 50 2c 0d | 20 20 20 20 75 70 70 43 |entUPP,.| uppC|
|00003400| 61 6c 6c 43 6f 6d 70 6f | 6e 65 6e 74 50 72 6f 63 |allCompo|nentProc|
|00003410| 49 6e 66 6f 2c 0d 20 20 | 20 20 26 70 61 72 61 6d |Info,. | ¶m|
|00003420| 73 29 29 3b 0d 7d 20 2f | 2a 20 49 43 53 65 74 50 |s));.} /|* ICSetP|
|00003430| 72 65 66 20 2a 2f 0d 0d | 70 61 73 63 61 6c 20 49 |ref */..|pascal I|
|00003440| 43 45 72 72 6f 72 20 49 | 43 43 53 65 74 50 72 65 |CError I|CCSetPre|
|00003450| 66 28 49 43 49 6e 73 74 | 61 6e 63 65 20 69 6e 73 |f(ICInst|ance ins|
|00003460| 74 2c 20 43 6f 6e 73 74 | 53 74 72 32 35 35 50 61 |t, Const|Str255Pa|
|00003470| 72 61 6d 20 6b 65 79 2c | 20 49 43 41 74 74 72 20 |ram key,| ICAttr |
|00003480| 61 74 74 72 2c 20 50 74 | 72 20 62 75 66 2c 20 6c |attr, Pt|r buf, l|
|00003490| 6f 6e 67 20 73 69 7a 65 | 29 0d 7b 0d 20 20 72 65 |ong size|).{. re|
|000034a0| 74 75 72 6e 28 49 43 53 | 65 74 50 72 65 66 28 69 |turn(ICS|etPref(i|
|000034b0| 6e 73 74 2c 20 6b 65 79 | 2c 20 61 74 74 72 2c 20 |nst, key|, attr, |
|000034c0| 62 75 66 2c 20 73 69 7a | 65 29 29 3b 0d 7d 20 2f |buf, siz|e));.} /|
|000034d0| 2a 20 49 43 43 53 65 74 | 50 72 65 66 20 2a 2f 0d |* ICCSet|Pref */.|
|000034e0| 0d 70 61 73 63 61 6c 20 | 49 43 45 72 72 6f 72 20 |.pascal |ICError |
|000034f0| 49 43 46 69 6e 64 50 72 | 65 66 48 61 6e 64 6c 65 |ICFindPr|efHandle|
|00003500| 28 49 43 49 6e 73 74 61 | 6e 63 65 20 69 6e 73 74 |(ICInsta|nce inst|
|00003510| 2c 20 43 6f 6e 73 74 53 | 74 72 32 35 35 50 61 72 |, ConstS|tr255Par|
|00003520| 61 6d 20 6b 65 79 2c 20 | 49 43 41 74 74 72 20 2a |am key, |ICAttr *|
|00003530| 61 74 74 72 2c 20 48 61 | 6e 64 6c 65 20 70 72 65 |attr, Ha|ndle pre|
|00003540| 66 68 29 0d 7b 0d 20 20 | 73 74 72 75 63 74 20 7b |fh).{. |struct {|
|00003550| 0d 20 20 20 20 63 68 61 | 72 20 70 61 72 61 6d 5f |. cha|r param_|
|00003560| 66 6c 61 67 73 3b 0d 20 | 20 20 20 63 68 61 72 20 |flags;. | char |
|00003570| 70 61 72 61 6d 5f 73 69 | 7a 65 3b 0d 20 20 20 20 |param_si|ze;. |
|00003580| 73 68 6f 72 74 20 70 61 | 72 61 6d 5f 77 68 61 74 |short pa|ram_what|
|00003590| 3b 0d 20 20 20 20 48 61 | 6e 64 6c 65 20 70 72 65 |;. Ha|ndle pre|
|000035a0| 66 68 3b 0d 20 20 20 20 | 49 43 41 74 74 72 20 2a |fh;. |ICAttr *|
|000035b0| 61 74 74 72 3b 0d 20 20 | 20 20 53 74 72 69 6e 67 |attr;. | String|
|000035c0| 50 74 72 20 6b 65 79 3b | 0d 20 20 20 20 49 43 49 |Ptr key;|. ICI|
|000035d0| 6e 73 74 61 6e 63 65 20 | 69 6e 73 74 3b 0d 20 20 |nstance |inst;. |
|000035e0| 7d 20 70 61 72 61 6d 73 | 3b 0d 0d 20 20 2f 2a 20 |} params|;.. /* |
|000035f0| 73 6f 6d 65 20 73 65 74 | 75 70 20 2a 2f 0d 20 20 |some set|up */. |
|00003600| 70 61 72 61 6d 73 2e 70 | 61 72 61 6d 5f 66 6c 61 |params.p|aram_fla|
|00003610| 67 73 20 3d 20 30 3b 0d | 20 20 70 61 72 61 6d 73 |gs = 0;.| params|
|00003620| 2e 70 61 72 61 6d 5f 73 | 69 7a 65 20 3d 20 31 32 |.param_s|ize = 12|
|00003630| 3b 0d 20 20 70 61 72 61 | 6d 73 2e 70 61 72 61 6d |;. para|ms.param|
|00003640| 5f 77 68 61 74 20 3d 20 | 33 36 3b 0d 20 20 2f 2a |_what = |36;. /*|
|00003650| 20 72 6f 75 74 69 6e 65 | 20 73 70 65 63 69 66 69 | routine| specifi|
|00003660| 63 20 61 73 73 69 67 6e | 6d 65 6e 74 73 20 2a 2f |c assign|ments */|
|00003670| 0d 20 20 70 61 72 61 6d | 73 2e 70 72 65 66 68 20 |. param|s.prefh |
|00003680| 3d 20 70 72 65 66 68 3b | 0d 20 20 70 61 72 61 6d |= prefh;|. param|
|00003690| 73 2e 61 74 74 72 20 3d | 20 61 74 74 72 3b 0d 20 |s.attr =| attr;. |
|000036a0| 20 70 61 72 61 6d 73 2e | 6b 65 79 20 3d 20 28 53 | params.|key = (S|
|000036b0| 74 72 69 6e 67 50 74 72 | 29 20 6b 65 79 3b 0d 20 |tringPtr|) key;. |
|000036c0| 20 2f 2a 20 64 6f 20 74 | 68 65 20 77 6f 72 6b 20 | /* do t|he work |
|000036d0| 2a 2f 0d 20 20 70 61 72 | 61 6d 73 2e 69 6e 73 74 |*/. par|ams.inst|
|000036e0| 20 3d 20 69 6e 73 74 3b | 0d 20 20 72 65 74 75 72 | = inst;|. retur|
|000036f0| 6e 28 43 61 6c 6c 55 6e | 69 76 65 72 73 61 6c 50 |n(CallUn|iversalP|
|00003700| 72 6f 63 28 43 61 6c 6c | 43 6f 6d 70 6f 6e 65 6e |roc(Call|Componen|
|00003710| 74 55 50 50 2c 0d 20 20 | 20 20 75 70 70 43 61 6c |tUPP,. | uppCal|
|00003720| 6c 43 6f 6d 70 6f 6e 65 | 6e 74 50 72 6f 63 49 6e |lCompone|ntProcIn|
|00003730| 66 6f 2c 0d 20 20 20 20 | 26 70 61 72 61 6d 73 29 |fo,. |¶ms)|
|00003740| 29 3b 0d 7d 20 2f 2a 20 | 49 43 46 69 6e 64 50 72 |);.} /* |ICFindPr|
|00003750| 65 66 48 61 6e 64 6c 65 | 20 2a 2f 0d 0d 70 61 73 |efHandle| */..pas|
|00003760| 63 61 6c 20 49 43 45 72 | 72 6f 72 20 49 43 43 46 |cal ICEr|ror ICCF|
|00003770| 69 6e 64 50 72 65 66 48 | 61 6e 64 6c 65 28 49 43 |indPrefH|andle(IC|
|00003780| 49 6e 73 74 61 6e 63 65 | 20 69 6e 73 74 2c 20 43 |Instance| inst, C|
|00003790| 6f 6e 73 74 53 74 72 32 | 35 35 50 61 72 61 6d 20 |onstStr2|55Param |
|000037a0| 6b 65 79 2c 20 49 43 41 | 74 74 72 20 2a 61 74 74 |key, ICA|ttr *att|
|000037b0| 72 2c 20 48 61 6e 64 6c | 65 20 70 72 65 66 68 29 |r, Handl|e prefh)|
|000037c0| 0d 7b 0d 20 20 72 65 74 | 75 72 6e 28 49 43 46 69 |.{. ret|urn(ICFi|
|000037d0| 6e 64 50 72 65 66 48 61 | 6e 64 6c 65 28 69 6e 73 |ndPrefHa|ndle(ins|
|000037e0| 74 2c 20 6b 65 79 2c 20 | 61 74 74 72 2c 20 70 72 |t, key, |attr, pr|
|000037f0| 65 66 68 29 29 3b 0d 7d | 20 2f 2a 20 49 43 43 46 |efh));.}| /* ICCF|
|00003800| 69 6e 64 50 72 65 66 48 | 61 6e 64 6c 65 20 2a 2f |indPrefH|andle */|
|00003810| 0d 0d 70 61 73 63 61 6c | 20 49 43 45 72 72 6f 72 |..pascal| ICError|
|00003820| 20 49 43 47 65 74 50 72 | 65 66 48 61 6e 64 6c 65 | ICGetPr|efHandle|
|00003830| 28 49 43 49 6e 73 74 61 | 6e 63 65 20 69 6e 73 74 |(ICInsta|nce inst|
|00003840| 2c 20 43 6f 6e 73 74 53 | 74 72 32 35 35 50 61 72 |, ConstS|tr255Par|
|00003850| 61 6d 20 6b 65 79 2c 20 | 49 43 41 74 74 72 20 2a |am key, |ICAttr *|
|00003860| 61 74 74 72 2c 20 48 61 | 6e 64 6c 65 20 2a 70 72 |attr, Ha|ndle *pr|
|00003870| 65 66 68 29 0d 7b 0d 20 | 20 73 74 72 75 63 74 20 |efh).{. | struct |
|00003880| 7b 0d 20 20 20 20 63 68 | 61 72 20 70 61 72 61 6d |{. ch|ar param|
|00003890| 5f 66 6c 61 67 73 3b 0d | 20 20 20 20 63 68 61 72 |_flags;.| char|
|000038a0| 20 70 61 72 61 6d 5f 73 | 69 7a 65 3b 0d 20 20 20 | param_s|ize;. |
|000038b0| 20 73 68 6f 72 74 20 70 | 61 72 61 6d 5f 77 68 61 | short p|aram_wha|
|000038c0| 74 3b 0d 20 20 20 20 48 | 61 6e 64 6c 65 20 2a 70 |t;. H|andle *p|
|000038d0| 72 65 66 68 3b 0d 20 20 | 20 20 49 43 41 74 74 72 |refh;. | ICAttr|
|000038e0| 20 2a 61 74 74 72 3b 0d | 20 20 20 20 53 74 72 69 | *attr;.| Stri|
|000038f0| 6e 67 50 74 72 20 6b 65 | 79 3b 0d 20 20 20 20 49 |ngPtr ke|y;. I|
|00003900| 43 49 6e 73 74 61 6e 63 | 65 20 69 6e 73 74 3b 0d |CInstanc|e inst;.|
|00003910| 20 20 7d 20 70 61 72 61 | 6d 73 3b 0d 0d 20 20 2f | } para|ms;.. /|
|00003920| 2a 20 73 6f 6d 65 20 73 | 65 74 75 70 20 2a 2f 0d |* some s|etup */.|
|00003930| 20 20 70 61 72 61 6d 73 | 2e 70 61 72 61 6d 5f 66 | params|.param_f|
|00003940| 6c 61 67 73 20 3d 20 30 | 3b 0d 20 20 70 61 72 61 |lags = 0|;. para|
|00003950| 6d 73 2e 70 61 72 61 6d | 5f 73 69 7a 65 20 3d 20 |ms.param|_size = |
|00003960| 31 32 3b 0d 20 20 70 61 | 72 61 6d 73 2e 70 61 72 |12;. pa|rams.par|
|00003970| 61 6d 5f 77 68 61 74 20 | 3d 20 32 36 3b 0d 20 20 |am_what |= 26;. |
|00003980| 2f 2a 20 72 6f 75 74 69 | 6e 65 20 73 70 65 63 69 |/* routi|ne speci|
|00003990| 66 69 63 20 61 73 73 69 | 67 6e 6d 65 6e 74 73 20 |fic assi|gnments |
|000039a0| 2a 2f 0d 20 20 70 61 72 | 61 6d 73 2e 70 72 65 66 |*/. par|ams.pref|
|000039b0| 68 20 3d 20 70 72 65 66 | 68 3b 0d 20 20 70 61 72 |h = pref|h;. par|
|000039c0| 61 6d 73 2e 61 74 74 72 | 20 3d 20 61 74 74 72 3b |ams.attr| = attr;|
|000039d0| 0d 20 20 70 61 72 61 6d | 73 2e 6b 65 79 20 3d 20 |. param|s.key = |
|000039e0| 28 53 74 72 69 6e 67 50 | 74 72 29 20 6b 65 79 3b |(StringP|tr) key;|
|000039f0| 0d 20 20 2f 2a 20 64 6f | 20 74 68 65 20 77 6f 72 |. /* do| the wor|
|00003a00| 6b 20 2a 2f 0d 20 20 70 | 61 72 61 6d 73 2e 69 6e |k */. p|arams.in|
|00003a10| 73 74 20 3d 20 69 6e 73 | 74 3b 0d 20 20 72 65 74 |st = ins|t;. ret|
|00003a20| 75 72 6e 28 43 61 6c 6c | 55 6e 69 76 65 72 73 61 |urn(Call|Universa|
|00003a30| 6c 50 72 6f 63 28 43 61 | 6c 6c 43 6f 6d 70 6f 6e |lProc(Ca|llCompon|
|00003a40| 65 6e 74 55 50 50 2c 0d | 20 20 20 20 75 70 70 43 |entUPP,.| uppC|
|00003a50| 61 6c 6c 43 6f 6d 70 6f | 6e 65 6e 74 50 72 6f 63 |allCompo|nentProc|
|00003a60| 49 6e 66 6f 2c 0d 20 20 | 20 20 26 70 61 72 61 6d |Info,. | ¶m|
|00003a70| 73 29 29 3b 0d 7d 20 2f | 2a 20 49 43 47 65 74 50 |s));.} /|* ICGetP|
|00003a80| 72 65 66 48 61 6e 64 6c | 65 20 2a 2f 0d 0d 70 61 |refHandl|e */..pa|
|00003a90| 73 63 61 6c 20 49 43 45 | 72 72 6f 72 20 49 43 43 |scal ICE|rror ICC|
|00003aa0| 47 65 74 50 72 65 66 48 | 61 6e 64 6c 65 28 49 43 |GetPrefH|andle(IC|
|00003ab0| 49 6e 73 74 61 6e 63 65 | 20 69 6e 73 74 2c 20 43 |Instance| inst, C|
|00003ac0| 6f 6e 73 74 53 74 72 32 | 35 35 50 61 72 61 6d 20 |onstStr2|55Param |
|00003ad0| 6b 65 79 2c 20 49 43 41 | 74 74 72 20 2a 61 74 74 |key, ICA|ttr *att|
|00003ae0| 72 2c 20 48 61 6e 64 6c | 65 20 2a 70 72 65 66 68 |r, Handl|e *prefh|
|00003af0| 29 0d 7b 0d 20 20 72 65 | 74 75 72 6e 28 49 43 47 |).{. re|turn(ICG|
|00003b00| 65 74 50 72 65 66 48 61 | 6e 64 6c 65 28 69 6e 73 |etPrefHa|ndle(ins|
|00003b10| 74 2c 20 6b 65 79 2c 20 | 61 74 74 72 2c 20 70 72 |t, key, |attr, pr|
|00003b20| 65 66 68 29 29 3b 0d 7d | 20 2f 2a 20 49 43 43 47 |efh));.}| /* ICCG|
|00003b30| 65 74 50 72 65 66 48 61 | 6e 64 6c 65 20 2a 2f 0d |etPrefHa|ndle */.|
|00003b40| 0d 70 61 73 63 61 6c 20 | 49 43 45 72 72 6f 72 20 |.pascal |ICError |
|00003b50| 49 43 53 65 74 50 72 65 | 66 48 61 6e 64 6c 65 28 |ICSetPre|fHandle(|
|00003b60| 49 43 49 6e 73 74 61 6e | 63 65 20 69 6e 73 74 2c |ICInstan|ce inst,|
|00003b70| 20 43 6f 6e 73 74 53 74 | 72 32 35 35 50 61 72 61 | ConstSt|r255Para|
|00003b80| 6d 20 6b 65 79 2c 20 49 | 43 41 74 74 72 20 61 74 |m key, I|CAttr at|
|00003b90| 74 72 2c 20 48 61 6e 64 | 6c 65 20 70 72 65 66 68 |tr, Hand|le prefh|
|00003ba0| 29 0d 7b 0d 20 20 73 74 | 72 75 63 74 20 7b 0d 20 |).{. st|ruct {. |
|00003bb0| 20 20 20 63 68 61 72 20 | 70 61 72 61 6d 5f 66 6c | char |param_fl|
|00003bc0| 61 67 73 3b 0d 20 20 20 | 20 63 68 61 72 20 70 61 |ags;. | char pa|
|00003bd0| 72 61 6d 5f 73 69 7a 65 | 3b 0d 20 20 20 20 73 68 |ram_size|;. sh|
|00003be0| 6f 72 74 20 70 61 72 61 | 6d 5f 77 68 61 74 3b 0d |ort para|m_what;.|
|00003bf0| 20 20 20 20 48 61 6e 64 | 6c 65 20 70 72 65 66 68 | Hand|le prefh|
|00003c00| 3b 0d 20 20 20 20 49 43 | 41 74 74 72 20 61 74 74 |;. IC|Attr att|
|00003c10| 72 3b 0d 20 20 20 20 53 | 74 72 69 6e 67 50 74 72 |r;. S|tringPtr|
|00003c20| 20 6b 65 79 3b 0d 20 20 | 20 20 49 43 49 6e 73 74 | key;. | ICInst|
|00003c30| 61 6e 63 65 20 69 6e 73 | 74 3b 0d 20 20 7d 20 70 |ance ins|t;. } p|
|00003c40| 61 72 61 6d 73 3b 0d 0d | 20 20 2f 2a 20 73 6f 6d |arams;..| /* som|
|00003c50| 65 20 73 65 74 75 70 20 | 2a 2f 0d 20 20 70 61 72 |e setup |*/. par|
|00003c60| 61 6d 73 2e 70 61 72 61 | 6d 5f 66 6c 61 67 73 20 |ams.para|m_flags |
|00003c70| 3d 20 30 3b 0d 20 20 70 | 61 72 61 6d 73 2e 70 61 |= 0;. p|arams.pa|
|00003c80| 72 61 6d 5f 73 69 7a 65 | 20 3d 20 31 32 3b 0d 20 |ram_size| = 12;. |
|00003c90| 20 70 61 72 61 6d 73 2e | 70 61 72 61 6d 5f 77 68 | params.|param_wh|
|00003ca0| 61 74 20 3d 20 32 37 3b | 0d 20 20 2f 2a 20 72 6f |at = 27;|. /* ro|
|00003cb0| 75 74 69 6e 65 20 73 70 | 65 63 69 66 69 63 20 61 |utine sp|ecific a|
|00003cc0| 73 73 69 67 6e 6d 65 6e | 74 73 20 2a 2f 0d 20 20 |ssignmen|ts */. |
|00003cd0| 70 61 72 61 6d 73 2e 70 | 72 65 66 68 20 3d 20 70 |params.p|refh = p|
|00003ce0| 72 65 66 68 3b 0d 20 20 | 70 61 72 61 6d 73 2e 61 |refh;. |params.a|
|00003cf0| 74 74 72 20 3d 20 61 74 | 74 72 3b 0d 20 20 70 61 |ttr = at|tr;. pa|
|00003d00| 72 61 6d 73 2e 6b 65 79 | 20 3d 20 28 53 74 72 69 |rams.key| = (Stri|
|00003d10| 6e 67 50 74 72 29 20 6b | 65 79 3b 0d 20 20 2f 2a |ngPtr) k|ey;. /*|
|00003d20| 20 64 6f 20 74 68 65 20 | 77 6f 72 6b 20 2a 2f 0d | do the |work */.|
|00003d30| 20 20 70 61 72 61 6d 73 | 2e 69 6e 73 74 20 3d 20 | params|.inst = |
|00003d40| 69 6e 73 74 3b 0d 20 20 | 72 65 74 75 72 6e 28 43 |inst;. |return(C|
|00003d50| 61 6c 6c 55 6e 69 76 65 | 72 73 61 6c 50 72 6f 63 |allUnive|rsalProc|
|00003d60| 28 43 61 6c 6c 43 6f 6d | 70 6f 6e 65 6e 74 55 50 |(CallCom|ponentUP|
|00003d70| 50 2c 0d 20 20 20 20 75 | 70 70 43 61 6c 6c 43 6f |P,. u|ppCallCo|
|00003d80| 6d 70 6f 6e 65 6e 74 50 | 72 6f 63 49 6e 66 6f 2c |mponentP|rocInfo,|
|00003d90| 0d 20 20 20 20 26 70 61 | 72 61 6d 73 29 29 3b 0d |. &pa|rams));.|
|00003da0| 7d 20 2f 2a 20 49 43 53 | 65 74 50 72 65 66 48 61 |} /* ICS|etPrefHa|
|00003db0| 6e 64 6c 65 20 2a 2f 0d | 0d 70 61 73 63 61 6c 20 |ndle */.|.pascal |
|00003dc0| 49 43 45 72 72 6f 72 20 | 49 43 43 53 65 74 50 72 |ICError |ICCSetPr|
|00003dd0| 65 66 48 61 6e 64 6c 65 | 28 49 43 49 6e 73 74 61 |efHandle|(ICInsta|
|00003de0| 6e 63 65 20 69 6e 73 74 | 2c 20 43 6f 6e 73 74 53 |nce inst|, ConstS|
|00003df0| 74 72 32 35 35 50 61 72 | 61 6d 20 6b 65 79 2c 20 |tr255Par|am key, |
|00003e00| 49 43 41 74 74 72 20 61 | 74 74 72 2c 20 48 61 6e |ICAttr a|ttr, Han|
|00003e10| 64 6c 65 20 70 72 65 66 | 68 29 0d 7b 0d 20 20 72 |dle pref|h).{. r|
|00003e20| 65 74 75 72 6e 28 49 43 | 53 65 74 50 72 65 66 48 |eturn(IC|SetPrefH|
|00003e30| 61 6e 64 6c 65 28 69 6e | 73 74 2c 20 6b 65 79 2c |andle(in|st, key,|
|00003e40| 20 61 74 74 72 2c 20 70 | 72 65 66 68 29 29 3b 0d | attr, p|refh));.|
|00003e50| 7d 20 2f 2a 20 49 43 43 | 53 65 74 50 72 65 66 48 |} /* ICC|SetPrefH|
|00003e60| 61 6e 64 6c 65 20 2a 2f | 0d 0d 70 61 73 63 61 6c |andle */|..pascal|
|00003e70| 20 49 43 45 72 72 6f 72 | 20 49 43 43 6f 75 6e 74 | ICError| ICCount|
|00003e80| 50 72 65 66 28 49 43 49 | 6e 73 74 61 6e 63 65 20 |Pref(ICI|nstance |
|00003e90| 69 6e 73 74 2c 20 6c 6f | 6e 67 20 2a 63 6f 75 6e |inst, lo|ng *coun|
|00003ea0| 74 29 0d 7b 0d 20 20 73 | 74 72 75 63 74 20 7b 0d |t).{. s|truct {.|
|00003eb0| 20 20 20 20 63 68 61 72 | 20 70 61 72 61 6d 5f 66 | char| param_f|
|00003ec0| 6c 61 67 73 3b 0d 20 20 | 20 20 63 68 61 72 20 70 |lags;. | char p|
|00003ed0| 61 72 61 6d 5f 73 69 7a | 65 3b 0d 20 20 20 20 73 |aram_siz|e;. s|
|00003ee0| 68 6f 72 74 20 70 61 72 | 61 6d 5f 77 68 61 74 3b |hort par|am_what;|
|00003ef0| 0d 20 20 20 20 6c 6f 6e | 67 20 2a 63 6f 75 6e 74 |. lon|g *count|
|00003f00| 3b 0d 20 20 20 20 49 43 | 49 6e 73 74 61 6e 63 65 |;. IC|Instance|
|00003f10| 20 69 6e 73 74 3b 0d 20 | 20 7d 20 70 61 72 61 6d | inst;. | } param|
|00003f20| 73 3b 0d 0d 20 20 2f 2a | 20 73 6f 6d 65 20 73 65 |s;.. /*| some se|
|00003f30| 74 75 70 20 2a 2f 0d 20 | 20 70 61 72 61 6d 73 2e |tup */. | params.|
|00003f40| 70 61 72 61 6d 5f 66 6c | 61 67 73 20 3d 20 30 3b |param_fl|ags = 0;|
|00003f50| 0d 20 20 70 61 72 61 6d | 73 2e 70 61 72 61 6d 5f |. param|s.param_|
|00003f60| 73 69 7a 65 20 3d 20 34 | 3b 0d 20 20 70 61 72 61 |size = 4|;. para|
|00003f70| 6d 73 2e 70 61 72 61 6d | 5f 77 68 61 74 20 3d 20 |ms.param|_what = |
|00003f80| 38 3b 0d 20 20 2f 2a 20 | 72 6f 75 74 69 6e 65 20 |8;. /* |routine |
|00003f90| 73 70 65 63 69 66 69 63 | 20 61 73 73 69 67 6e 6d |specific| assignm|
|00003fa0| 65 6e 74 73 20 2a 2f 0d | 20 20 70 61 72 61 6d 73 |ents */.| params|
|00003fb0| 2e 63 6f 75 6e 74 20 3d | 20 63 6f 75 6e 74 3b 0d |.count =| count;.|
|00003fc0| 20 20 2f 2a 20 64 6f 20 | 74 68 65 20 77 6f 72 6b | /* do |the work|
|00003fd0| 20 2a 2f 0d 20 20 70 61 | 72 61 6d 73 2e 69 6e 73 | */. pa|rams.ins|
|00003fe0| 74 20 3d 20 69 6e 73 74 | 3b 0d 20 20 72 65 74 75 |t = inst|;. retu|
|00003ff0| 72 6e 28 43 61 6c 6c 55 | 6e 69 76 65 72 73 61 6c |rn(CallU|niversal|
|00004000| 50 72 6f 63 28 43 61 6c | 6c 43 6f 6d 70 6f 6e 65 |Proc(Cal|lCompone|
|00004010| 6e 74 55 50 50 2c 0d 20 | 20 20 20 75 70 70 43 61 |ntUPP,. | uppCa|
|00004020| 6c 6c 43 6f 6d 70 6f 6e | 65 6e 74 50 72 6f 63 49 |llCompon|entProcI|
|00004030| 6e 66 6f 2c 0d 20 20 20 | 20 26 70 61 72 61 6d 73 |nfo,. | ¶ms|
|00004040| 29 29 3b 0d 7d 20 2f 2a | 20 49 43 43 6f 75 6e 74 |));.} /*| ICCount|
|00004050| 50 72 65 66 20 2a 2f 0d | 0d 70 61 73 63 61 6c 20 |Pref */.|.pascal |
|00004060| 49 43 45 72 72 6f 72 20 | 49 43 43 43 6f 75 6e 74 |ICError |ICCCount|
|00004070| 50 72 65 66 28 49 43 49 | 6e 73 74 61 6e 63 65 20 |Pref(ICI|nstance |
|00004080| 69 6e 73 74 2c 20 6c 6f | 6e 67 20 2a 63 6f 75 6e |inst, lo|ng *coun|
|00004090| 74 29 0d 7b 0d 20 20 72 | 65 74 75 72 6e 28 49 43 |t).{. r|eturn(IC|
|000040a0| 43 6f 75 6e 74 50 72 65 | 66 28 69 6e 73 74 2c 20 |CountPre|f(inst, |
|000040b0| 63 6f 75 6e 74 29 29 3b | 0d 7d 20 2f 2a 20 49 43 |count));|.} /* IC|
|000040c0| 43 43 6f 75 6e 74 50 72 | 65 66 20 2a 2f 0d 0d 70 |CCountPr|ef */..p|
|000040d0| 61 73 63 61 6c 20 49 43 | 45 72 72 6f 72 20 49 43 |ascal IC|Error IC|
|000040e0| 47 65 74 49 6e 64 50 72 | 65 66 28 49 43 49 6e 73 |GetIndPr|ef(ICIns|
|000040f0| 74 61 6e 63 65 20 69 6e | 73 74 2c 20 6c 6f 6e 67 |tance in|st, long|
|00004100| 20 6e 2c 20 53 74 72 32 | 35 35 20 6b 65 79 29 0d | n, Str2|55 key).|
|00004110| 7b 0d 20 20 73 74 72 75 | 63 74 20 7b 0d 20 20 20 |{. stru|ct {. |
|00004120| 20 63 68 61 72 20 70 61 | 72 61 6d 5f 66 6c 61 67 | char pa|ram_flag|
|00004130| 73 3b 0d 20 20 20 20 63 | 68 61 72 20 70 61 72 61 |s;. c|har para|
|00004140| 6d 5f 73 69 7a 65 3b 0d | 20 20 20 20 73 68 6f 72 |m_size;.| shor|
|00004150| 74 20 70 61 72 61 6d 5f | 77 68 61 74 3b 0d 20 20 |t param_|what;. |
|00004160| 20 20 53 74 72 69 6e 67 | 50 74 72 20 6b 65 79 3b | String|Ptr key;|
|00004170| 0d 20 20 20 20 6c 6f 6e | 67 20 6e 3b 0d 20 20 20 |. lon|g n;. |
|00004180| 20 49 43 49 6e 73 74 61 | 6e 63 65 20 69 6e 73 74 | ICInsta|nce inst|
|00004190| 3b 0d 20 20 7d 20 70 61 | 72 61 6d 73 3b 0d 0d 20 |;. } pa|rams;.. |
|000041a0| 20 2f 2a 20 73 6f 6d 65 | 20 73 65 74 75 70 20 2a | /* some| setup *|
|000041b0| 2f 0d 20 20 70 61 72 61 | 6d 73 2e 70 61 72 61 6d |/. para|ms.param|
|000041c0| 5f 66 6c 61 67 73 20 3d | 20 30 3b 0d 20 20 70 61 |_flags =| 0;. pa|
|000041d0| 72 61 6d 73 2e 70 61 72 | 61 6d 5f 73 69 7a 65 20 |rams.par|am_size |
|000041e0| 3d 20 38 3b 0d 20 20 70 | 61 72 61 6d 73 2e 70 61 |= 8;. p|arams.pa|
|000041f0| 72 61 6d 5f 77 68 61 74 | 20 3d 20 39 3b 0d 20 20 |ram_what| = 9;. |
|00004200| 2f 2a 20 72 6f 75 74 69 | 6e 65 20 73 70 65 63 69 |/* routi|ne speci|
|00004210| 66 69 63 20 61 73 73 69 | 67 6e 6d 65 6e 74 73 20 |fic assi|gnments |
|00004220| 2a 2f 0d 20 20 70 61 72 | 61 6d 73 2e 6b 65 79 20 |*/. par|ams.key |
|00004230| 3d 20 6b 65 79 3b 0d 20 | 20 70 61 72 61 6d 73 2e |= key;. | params.|
|00004240| 6e 20 3d 20 6e 3b 0d 20 | 20 2f 2a 20 64 6f 20 74 |n = n;. | /* do t|
|00004250| 68 65 20 77 6f 72 6b 20 | 2a 2f 0d 20 20 70 61 72 |he work |*/. par|
|00004260| 61 6d 73 2e 69 6e 73 74 | 20 3d 20 69 6e 73 74 3b |ams.inst| = inst;|
|00004270| 0d 20 20 72 65 74 75 72 | 6e 28 43 61 6c 6c 55 6e |. retur|n(CallUn|
|00004280| 69 76 65 72 73 61 6c 50 | 72 6f 63 28 43 61 6c 6c |iversalP|roc(Call|
|00004290| 43 6f 6d 70 6f 6e 65 6e | 74 55 50 50 2c 0d 20 20 |Componen|tUPP,. |
|000042a0| 20 20 75 70 70 43 61 6c | 6c 43 6f 6d 70 6f 6e 65 | uppCal|lCompone|
|000042b0| 6e 74 50 72 6f 63 49 6e | 66 6f 2c 0d 20 20 20 20 |ntProcIn|fo,. |
|000042c0| 26 70 61 72 61 6d 73 29 | 29 3b 0d 7d 20 2f 2a 20 |¶ms)|);.} /* |
|000042d0| 49 43 47 65 74 49 6e 64 | 50 72 65 66 20 2a 2f 0d |ICGetInd|Pref */.|
|000042e0| 0d 70 61 73 63 61 6c 20 | 49 43 45 72 72 6f 72 20 |.pascal |ICError |
|000042f0| 49 43 43 47 65 74 49 6e | 64 50 72 65 66 28 49 43 |ICCGetIn|dPref(IC|
|00004300| 49 6e 73 74 61 6e 63 65 | 20 69 6e 73 74 2c 20 6c |Instance| inst, l|
|00004310| 6f 6e 67 20 6e 2c 20 53 | 74 72 32 35 35 20 6b 65 |ong n, S|tr255 ke|
|00004320| 79 29 0d 7b 0d 20 20 72 | 65 74 75 72 6e 28 49 43 |y).{. r|eturn(IC|
|00004330| 47 65 74 49 6e 64 50 72 | 65 66 28 69 6e 73 74 2c |GetIndPr|ef(inst,|
|00004340| 20 6e 2c 20 6b 65 79 29 | 29 3b 0d 7d 20 2f 2a 20 | n, key)|);.} /* |
|00004350| 49 43 43 47 65 74 49 6e | 64 50 72 65 66 20 2a 2f |ICCGetIn|dPref */|
|00004360| 0d 0d 70 61 73 63 61 6c | 20 49 43 45 72 72 6f 72 |..pascal| ICError|
|00004370| 20 49 43 44 65 6c 65 74 | 65 50 72 65 66 28 49 43 | ICDelet|ePref(IC|
|00004380| 49 6e 73 74 61 6e 63 65 | 20 69 6e 73 74 2c 20 43 |Instance| inst, C|
|00004390| 6f 6e 73 74 53 74 72 32 | 35 35 50 61 72 61 6d 20 |onstStr2|55Param |
|000043a0| 6b 65 79 29 0d 7b 0d 20 | 20 73 74 72 75 63 74 20 |key).{. | struct |
|000043b0| 7b 0d 20 20 20 20 63 68 | 61 72 20 70 61 72 61 6d |{. ch|ar param|
|000043c0| 5f 66 6c 61 67 73 3b 0d | 20 20 20 20 63 68 61 72 |_flags;.| char|
|000043d0| 20 70 61 72 61 6d 5f 73 | 69 7a 65 3b 0d 20 20 20 | param_s|ize;. |
|000043e0| 20 73 68 6f 72 74 20 70 | 61 72 61 6d 5f 77 68 61 | short p|aram_wha|
|000043f0| 74 3b 0d 20 20 20 20 53 | 74 72 69 6e 67 50 74 72 |t;. S|tringPtr|
|00004400| 20 6b 65 79 3b 0d 20 20 | 20 20 49 43 49 6e 73 74 | key;. | ICInst|
|00004410| 61 6e 63 65 20 69 6e 73 | 74 3b 0d 20 20 7d 20 70 |ance ins|t;. } p|
|00004420| 61 72 61 6d 73 3b 0d 0d | 20 20 2f 2a 20 73 6f 6d |arams;..| /* som|
|00004430| 65 20 73 65 74 75 70 20 | 2a 2f 0d 20 20 70 61 72 |e setup |*/. par|
|00004440| 61 6d 73 2e 70 61 72 61 | 6d 5f 66 6c 61 67 73 20 |ams.para|m_flags |
|00004450| 3d 20 30 3b 0d 20 20 70 | 61 72 61 6d 73 2e 70 61 |= 0;. p|arams.pa|
|00004460| 72 61 6d 5f 73 69 7a 65 | 20 3d 20 34 3b 0d 20 20 |ram_size| = 4;. |
|00004470| 70 61 72 61 6d 73 2e 70 | 61 72 61 6d 5f 77 68 61 |params.p|aram_wha|
|00004480| 74 20 3d 20 31 32 3b 0d | 20 20 2f 2a 20 72 6f 75 |t = 12;.| /* rou|
|00004490| 74 69 6e 65 20 73 70 65 | 63 69 66 69 63 20 61 73 |tine spe|cific as|
|000044a0| 73 69 67 6e 6d 65 6e 74 | 73 20 2a 2f 0d 20 20 70 |signment|s */. p|
|000044b0| 61 72 61 6d 73 2e 6b 65 | 79 20 3d 20 28 53 74 72 |arams.ke|y = (Str|
|000044c0| 69 6e 67 50 74 72 29 20 | 6b 65 79 3b 0d 20 20 2f |ingPtr) |key;. /|
|000044d0| 2a 20 64 6f 20 74 68 65 | 20 77 6f 72 6b 20 2a 2f |* do the| work */|
|000044e0| 0d 20 20 70 61 72 61 6d | 73 2e 69 6e 73 74 20 3d |. param|s.inst =|
|000044f0| 20 69 6e 73 74 3b 0d 20 | 20 72 65 74 75 72 6e 28 | inst;. | return(|
|00004500| 43 61 6c 6c 55 6e 69 76 | 65 72 73 61 6c 50 72 6f |CallUniv|ersalPro|
|00004510| 63 28 43 61 6c 6c 43 6f | 6d 70 6f 6e 65 6e 74 55 |c(CallCo|mponentU|
|00004520| 50 50 2c 0d 20 20 20 20 | 75 70 70 43 61 6c 6c 43 |PP,. |uppCallC|
|00004530| 6f 6d 70 6f 6e 65 6e 74 | 50 72 6f 63 49 6e 66 6f |omponent|ProcInfo|
|00004540| 2c 0d 20 20 20 20 26 70 | 61 72 61 6d 73 29 29 3b |,. &p|arams));|
|00004550| 0d 7d 20 2f 2a 20 49 43 | 44 65 6c 65 74 65 50 72 |.} /* IC|DeletePr|
|00004560| 65 66 20 2a 2f 0d 0d 70 | 61 73 63 61 6c 20 49 43 |ef */..p|ascal IC|
|00004570| 45 72 72 6f 72 20 49 43 | 43 44 65 6c 65 74 65 50 |Error IC|CDeleteP|
|00004580| 72 65 66 28 49 43 49 6e | 73 74 61 6e 63 65 20 69 |ref(ICIn|stance i|
|00004590| 6e 73 74 2c 20 43 6f 6e | 73 74 53 74 72 32 35 35 |nst, Con|stStr255|
|000045a0| 50 61 72 61 6d 20 6b 65 | 79 29 0d 7b 0d 20 20 72 |Param ke|y).{. r|
|000045b0| 65 74 75 72 6e 28 49 43 | 44 65 6c 65 74 65 50 72 |eturn(IC|DeletePr|
|000045c0| 65 66 28 69 6e 73 74 2c | 20 6b 65 79 29 29 3b 0d |ef(inst,| key));.|
|000045d0| 7d 20 2f 2a 20 49 43 43 | 44 65 6c 65 74 65 50 72 |} /* ICC|DeletePr|
|000045e0| 65 66 20 2a 2f 0d 0d 70 | 61 73 63 61 6c 20 49 43 |ef */..p|ascal IC|
|000045f0| 45 72 72 6f 72 20 49 43 | 45 6e 64 28 49 43 49 6e |Error IC|End(ICIn|
|00004600| 73 74 61 6e 63 65 20 69 | 6e 73 74 29 0d 7b 0d 20 |stance i|nst).{. |
|00004610| 20 73 74 72 75 63 74 20 | 7b 0d 20 20 20 20 63 68 | struct |{. ch|
|00004620| 61 72 20 70 61 72 61 6d | 5f 66 6c 61 67 73 3b 0d |ar param|_flags;.|
|00004630| 20 20 20 20 63 68 61 72 | 20 70 61 72 61 6d 5f 73 | char| param_s|
|00004640| 69 7a 65 3b 0d 20 20 20 | 20 73 68 6f 72 74 20 70 |ize;. | short p|
|00004650| 61 72 61 6d 5f 77 68 61 | 74 3b 0d 20 20 20 20 2f |aram_wha|t;. /|
|00004660| 2a 20 6e 6f 74 68 69 6e | 67 20 74 6f 20 64 65 63 |* nothin|g to dec|
|00004670| 6c 61 72 65 20 2a 2f 0d | 20 20 20 20 49 43 49 6e |lare */.| ICIn|
|00004680| 73 74 61 6e 63 65 20 69 | 6e 73 74 3b 0d 20 20 7d |stance i|nst;. }|
|00004690| 20 70 61 72 61 6d 73 3b | 0d 0d 20 20 2f 2a 20 73 | params;|.. /* s|
|000046a0| 6f 6d 65 20 73 65 74 75 | 70 20 2a 2f 0d 20 20 70 |ome setu|p */. p|
|000046b0| 61 72 61 6d 73 2e 70 61 | 72 61 6d 5f 66 6c 61 67 |arams.pa|ram_flag|
|000046c0| 73 20 3d 20 30 3b 0d 20 | 20 70 61 72 61 6d 73 2e |s = 0;. | params.|
|000046d0| 70 61 72 61 6d 5f 73 69 | 7a 65 20 3d 20 30 3b 0d |param_si|ze = 0;.|
|000046e0| 20 20 70 61 72 61 6d 73 | 2e 70 61 72 61 6d 5f 77 | params|.param_w|
|000046f0| 68 61 74 20 3d 20 31 30 | 3b 0d 20 20 2f 2a 20 72 |hat = 10|;. /* r|
|00004700| 6f 75 74 69 6e 65 20 73 | 70 65 63 69 66 69 63 20 |outine s|pecific |
|00004710| 61 73 73 69 67 6e 6d 65 | 6e 74 73 20 2a 2f 0d 20 |assignme|nts */. |
|00004720| 20 2f 2a 20 6e 6f 74 68 | 69 6e 67 20 74 6f 20 64 | /* noth|ing to d|
|00004730| 6f 20 2a 2f 0d 20 20 2f | 2a 20 64 6f 20 74 68 65 |o */. /|* do the|
|00004740| 20 77 6f 72 6b 20 2a 2f | 0d 20 20 70 61 72 61 6d | work */|. param|
|00004750| 73 2e 69 6e 73 74 20 3d | 20 69 6e 73 74 3b 0d 20 |s.inst =| inst;. |
|00004760| 20 72 65 74 75 72 6e 28 | 43 61 6c 6c 55 6e 69 76 | return(|CallUniv|
|00004770| 65 72 73 61 6c 50 72 6f | 63 28 43 61 6c 6c 43 6f |ersalPro|c(CallCo|
|00004780| 6d 70 6f 6e 65 6e 74 55 | 50 50 2c 0d 20 20 20 20 |mponentU|PP,. |
|00004790| 75 70 70 43 61 6c 6c 43 | 6f 6d 70 6f 6e 65 6e 74 |uppCallC|omponent|
|000047a0| 50 72 6f 63 49 6e 66 6f | 2c 0d 20 20 20 20 26 70 |ProcInfo|,. &p|
|000047b0| 61 72 61 6d 73 29 29 3b | 0d 7d 20 2f 2a 20 49 43 |arams));|.} /* IC|
|000047c0| 45 6e 64 20 2a 2f 0d 0d | 70 61 73 63 61 6c 20 49 |End */..|pascal I|
|000047d0| 43 45 72 72 6f 72 20 49 | 43 43 45 6e 64 28 49 43 |CError I|CCEnd(IC|
|000047e0| 49 6e 73 74 61 6e 63 65 | 20 69 6e 73 74 29 0d 7b |Instance| inst).{|
|000047f0| 0d 20 20 72 65 74 75 72 | 6e 28 49 43 45 6e 64 28 |. retur|n(ICEnd(|
|00004800| 69 6e 73 74 29 29 3b 0d | 7d 20 2f 2a 20 49 43 43 |inst));.|} /* ICC|
|00004810| 45 6e 64 20 2a 2f 0d 0d | 2f 2a 20 2a 2a 2a 2a 2a |End */..|/* *****|
|00004820| 20 55 73 65 72 20 49 6e | 74 65 72 66 61 63 65 20 | User In|terface |
|00004830| 53 74 75 66 66 20 2a 2a | 2a 2a 2a 20 2a 2f 0d 0d |Stuff **|*** */..|
|00004840| 70 61 73 63 61 6c 20 49 | 43 45 72 72 6f 72 20 49 |pascal I|CError I|
|00004850| 43 45 64 69 74 50 72 65 | 66 65 72 65 6e 63 65 73 |CEditPre|ferences|
|00004860| 28 49 43 49 6e 73 74 61 | 6e 63 65 20 69 6e 73 74 |(ICInsta|nce inst|
|00004870| 2c 20 43 6f 6e 73 74 53 | 74 72 32 35 35 50 61 72 |, ConstS|tr255Par|
|00004880| 61 6d 20 6b 65 79 29 0d | 7b 0d 20 20 73 74 72 75 |am key).|{. stru|
|00004890| 63 74 20 7b 0d 20 20 20 | 20 63 68 61 72 20 70 61 |ct {. | char pa|
|000048a0| 72 61 6d 5f 66 6c 61 67 | 73 3b 0d 20 20 20 20 63 |ram_flag|s;. c|
|000048b0| 68 61 72 20 70 61 72 61 | 6d 5f 73 69 7a 65 3b 0d |har para|m_size;.|
|000048c0| 20 20 20 20 73 68 6f 72 | 74 20 70 61 72 61 6d 5f | shor|t param_|
|000048d0| 77 68 61 74 3b 0d 20 20 | 20 20 53 74 72 69 6e 67 |what;. | String|
|000048e0| 50 74 72 20 6b 65 79 3b | 0d 20 20 20 20 49 43 49 |Ptr key;|. ICI|
|000048f0| 6e 73 74 61 6e 63 65 20 | 69 6e 73 74 3b 0d 20 20 |nstance |inst;. |
|00004900| 7d 20 70 61 72 61 6d 73 | 3b 0d 0d 20 20 2f 2a 20 |} params|;.. /* |
|00004910| 73 6f 6d 65 20 73 65 74 | 75 70 20 2a 2f 0d 20 20 |some set|up */. |
|00004920| 70 61 72 61 6d 73 2e 70 | 61 72 61 6d 5f 66 6c 61 |params.p|aram_fla|
|00004930| 67 73 20 3d 20 30 3b 0d | 20 20 70 61 72 61 6d 73 |gs = 0;.| params|
|00004940| 2e 70 61 72 61 6d 5f 73 | 69 7a 65 20 3d 20 34 3b |.param_s|ize = 4;|
|00004950| 0d 20 20 70 61 72 61 6d | 73 2e 70 61 72 61 6d 5f |. param|s.param_|
|00004960| 77 68 61 74 20 3d 20 31 | 35 3b 0d 20 20 2f 2a 20 |what = 1|5;. /* |
|00004970| 72 6f 75 74 69 6e 65 20 | 73 70 65 63 69 66 69 63 |routine |specific|
|00004980| 20 61 73 73 69 67 6e 6d | 65 6e 74 73 20 2a 2f 0d | assignm|ents */.|
|00004990| 20 20 70 61 72 61 6d 73 | 2e 6b 65 79 20 3d 20 28 | params|.key = (|
|000049a0| 53 74 72 69 6e 67 50 74 | 72 29 20 6b 65 79 3b 0d |StringPt|r) key;.|
|000049b0| 20 20 2f 2a 20 64 6f 20 | 74 68 65 20 77 6f 72 6b | /* do |the work|
|000049c0| 20 2a 2f 0d 20 20 70 61 | 72 61 6d 73 2e 69 6e 73 | */. pa|rams.ins|
|000049d0| 74 20 3d 20 69 6e 73 74 | 3b 0d 20 20 72 65 74 75 |t = inst|;. retu|
|000049e0| 72 6e 28 43 61 6c 6c 55 | 6e 69 76 65 72 73 61 6c |rn(CallU|niversal|
|000049f0| 50 72 6f 63 28 43 61 6c | 6c 43 6f 6d 70 6f 6e 65 |Proc(Cal|lCompone|
|00004a00| 6e 74 55 50 50 2c 0d 20 | 20 20 20 75 70 70 43 61 |ntUPP,. | uppCa|
|00004a10| 6c 6c 43 6f 6d 70 6f 6e | 65 6e 74 50 72 6f 63 49 |llCompon|entProcI|
|00004a20| 6e 66 6f 2c 0d 20 20 20 | 20 26 70 61 72 61 6d 73 |nfo,. | ¶ms|
|00004a30| 29 29 3b 0d 7d 20 2f 2a | 20 49 43 45 64 69 74 50 |));.} /*| ICEditP|
|00004a40| 72 65 66 65 72 65 6e 63 | 65 73 20 2a 2f 0d 0d 70 |referenc|es */..p|
|00004a50| 61 73 63 61 6c 20 49 43 | 45 72 72 6f 72 20 49 43 |ascal IC|Error IC|
|00004a60| 43 45 64 69 74 50 72 65 | 66 65 72 65 6e 63 65 73 |CEditPre|ferences|
|00004a70| 28 49 43 49 6e 73 74 61 | 6e 63 65 20 69 6e 73 74 |(ICInsta|nce inst|
|00004a80| 2c 20 43 6f 6e 73 74 53 | 74 72 32 35 35 50 61 72 |, ConstS|tr255Par|
|00004a90| 61 6d 20 6b 65 79 29 0d | 7b 0d 20 20 72 65 74 75 |am key).|{. retu|
|00004aa0| 72 6e 28 49 43 45 64 69 | 74 50 72 65 66 65 72 65 |rn(ICEdi|tPrefere|
|00004ab0| 6e 63 65 73 28 69 6e 73 | 74 2c 20 6b 65 79 29 29 |nces(ins|t, key))|
|00004ac0| 3b 0d 7d 20 2f 2a 20 49 | 43 43 45 64 69 74 50 72 |;.} /* I|CCEditPr|
|00004ad0| 65 66 65 72 65 6e 63 65 | 73 20 2a 2f 0d 0d 2f 2a |eference|s */../*|
|00004ae0| 20 2a 2a 2a 2a 2a 20 55 | 52 4c 20 48 61 6e 64 6c | ***** U|RL Handl|
|00004af0| 69 6e 67 20 2a 2a 2a 2a | 2a 20 2a 2f 0d 0d 70 61 |ing ****|* */..pa|
|00004b00| 73 63 61 6c 20 49 43 45 | 72 72 6f 72 20 49 43 50 |scal ICE|rror ICP|
|00004b10| 61 72 73 65 55 52 4c 28 | 49 43 49 6e 73 74 61 6e |arseURL(|ICInstan|
|00004b20| 63 65 20 69 6e 73 74 2c | 20 43 6f 6e 73 74 53 74 |ce inst,| ConstSt|
|00004b30| 72 32 35 35 50 61 72 61 | 6d 20 68 69 6e 74 2c 20 |r255Para|m hint, |
|00004b40| 50 74 72 20 64 61 74 61 | 2c 20 6c 6f 6e 67 20 6c |Ptr data|, long l|
|00004b50| 65 6e 2c 20 6c 6f 6e 67 | 20 2a 73 65 6c 53 74 61 |en, long| *selSta|
|00004b60| 72 74 2c 20 6c 6f 6e 67 | 20 2a 73 65 6c 45 6e 64 |rt, long| *selEnd|
|00004b70| 2c 20 48 61 6e 64 6c 65 | 20 75 72 6c 29 0d 7b 0d |, Handle| url).{.|
|00004b80| 20 20 73 74 72 75 63 74 | 20 7b 0d 20 20 20 20 63 | struct| {. c|
|00004b90| 68 61 72 20 70 61 72 61 | 6d 5f 66 6c 61 67 73 3b |har para|m_flags;|
|00004ba0| 0d 20 20 20 20 63 68 61 | 72 20 70 61 72 61 6d 5f |. cha|r param_|
|00004bb0| 73 69 7a 65 3b 0d 20 20 | 20 20 73 68 6f 72 74 20 |size;. | short |
|00004bc0| 70 61 72 61 6d 5f 77 68 | 61 74 3b 0d 20 20 20 20 |param_wh|at;. |
|00004bd0| 48 61 6e 64 6c 65 20 75 | 72 6c 3b 0d 20 20 20 20 |Handle u|rl;. |
|00004be0| 6c 6f 6e 67 20 2a 73 65 | 6c 45 6e 64 3b 0d 20 20 |long *se|lEnd;. |
|00004bf0| 20 20 6c 6f 6e 67 20 2a | 73 65 6c 53 74 61 72 74 | long *|selStart|
|00004c00| 3b 0d 20 20 20 20 6c 6f | 6e 67 20 6c 65 6e 3b 0d |;. lo|ng len;.|
|00004c10| 20 20 20 20 50 74 72 20 | 64 61 74 61 3b 0d 20 20 | Ptr |data;. |
|00004c20| 20 20 53 74 72 69 6e 67 | 50 74 72 20 68 69 6e 74 | String|Ptr hint|
|00004c30| 3b 0d 20 20 20 20 49 43 | 49 6e 73 74 61 6e 63 65 |;. IC|Instance|
|00004c40| 20 69 6e 73 74 3b 0d 20 | 20 7d 20 70 61 72 61 6d | inst;. | } param|
|00004c50| 73 3b 0d 0d 20 20 2f 2a | 20 73 6f 6d 65 20 73 65 |s;.. /*| some se|
|00004c60| 74 75 70 20 2a 2f 0d 20 | 20 70 61 72 61 6d 73 2e |tup */. | params.|
|00004c70| 70 61 72 61 6d 5f 66 6c | 61 67 73 20 3d 20 30 3b |param_fl|ags = 0;|
|00004c80| 0d 20 20 70 61 72 61 6d | 73 2e 70 61 72 61 6d 5f |. param|s.param_|
|00004c90| 73 69 7a 65 20 3d 20 32 | 34 3b 0d 20 20 70 61 72 |size = 2|4;. par|
|00004ca0| 61 6d 73 2e 70 61 72 61 | 6d 5f 77 68 61 74 20 3d |ams.para|m_what =|
|00004cb0| 20 31 36 3b 0d 20 20 2f | 2a 20 72 6f 75 74 69 6e | 16;. /|* routin|
|00004cc0| 65 20 73 70 65 63 69 66 | 69 63 20 61 73 73 69 67 |e specif|ic assig|
|00004cd0| 6e 6d 65 6e 74 73 20 2a | 2f 0d 20 20 70 61 72 61 |nments *|/. para|
|00004ce0| 6d 73 2e 75 72 6c 20 3d | 20 75 72 6c 3b 0d 20 20 |ms.url =| url;. |
|00004cf0| 70 61 72 61 6d 73 2e 73 | 65 6c 45 6e 64 20 3d 20 |params.s|elEnd = |
|00004d00| 73 65 6c 45 6e 64 3b 0d | 20 20 70 61 72 61 6d 73 |selEnd;.| params|
|00004d10| 2e 73 65 6c 53 74 61 72 | 74 20 3d 20 73 65 6c 53 |.selStar|t = selS|
|00004d20| 74 61 72 74 3b 0d 20 20 | 70 61 72 61 6d 73 2e 6c |tart;. |params.l|
|00004d30| 65 6e 20 3d 20 6c 65 6e | 3b 0d 20 20 70 61 72 61 |en = len|;. para|
|00004d40| 6d 73 2e 64 61 74 61 20 | 3d 20 64 61 74 61 3b 0d |ms.data |= data;.|
|00004d50| 20 20 70 61 72 61 6d 73 | 2e 68 69 6e 74 20 3d 20 | params|.hint = |
|00004d60| 28 53 74 72 69 6e 67 50 | 74 72 29 20 68 69 6e 74 |(StringP|tr) hint|
|00004d70| 3b 0d 20 20 2f 2a 20 64 | 6f 20 74 68 65 20 77 6f |;. /* d|o the wo|
|00004d80| 72 6b 20 2a 2f 0d 20 20 | 70 61 72 61 6d 73 2e 69 |rk */. |params.i|
|00004d90| 6e 73 74 20 3d 20 69 6e | 73 74 3b 0d 20 20 72 65 |nst = in|st;. re|
|00004da0| 74 75 72 6e 28 43 61 6c | 6c 55 6e 69 76 65 72 73 |turn(Cal|lUnivers|
|00004db0| 61 6c 50 72 6f 63 28 43 | 61 6c 6c 43 6f 6d 70 6f |alProc(C|allCompo|
|00004dc0| 6e 65 6e 74 55 50 50 2c | 0d 20 20 20 20 75 70 70 |nentUPP,|. upp|
|00004dd0| 43 61 6c 6c 43 6f 6d 70 | 6f 6e 65 6e 74 50 72 6f |CallComp|onentPro|
|00004de0| 63 49 6e 66 6f 2c 0d 20 | 20 20 20 26 70 61 72 61 |cInfo,. | ¶|
|00004df0| 6d 73 29 29 3b 0d 7d 20 | 2f 2a 20 49 43 50 61 72 |ms));.} |/* ICPar|
|00004e00| 73 65 55 52 4c 20 2a 2f | 0d 0d 70 61 73 63 61 6c |seURL */|..pascal|
|00004e10| 20 49 43 45 72 72 6f 72 | 20 49 43 43 50 61 72 73 | ICError| ICCPars|
|00004e20| 65 55 52 4c 28 49 43 49 | 6e 73 74 61 6e 63 65 20 |eURL(ICI|nstance |
|00004e30| 69 6e 73 74 2c 20 43 6f | 6e 73 74 53 74 72 32 35 |inst, Co|nstStr25|
|00004e40| 35 50 61 72 61 6d 20 68 | 69 6e 74 2c 20 50 74 72 |5Param h|int, Ptr|
|00004e50| 20 64 61 74 61 2c 20 6c | 6f 6e 67 20 6c 65 6e 2c | data, l|ong len,|
|00004e60| 20 6c 6f 6e 67 20 2a 73 | 65 6c 53 74 61 72 74 2c | long *s|elStart,|
|00004e70| 20 6c 6f 6e 67 20 2a 73 | 65 6c 45 6e 64 2c 20 48 | long *s|elEnd, H|
|00004e80| 61 6e 64 6c 65 20 75 72 | 6c 29 0d 7b 0d 20 20 72 |andle ur|l).{. r|
|00004e90| 65 74 75 72 6e 28 49 43 | 50 61 72 73 65 55 52 4c |eturn(IC|ParseURL|
|00004ea0| 28 69 6e 73 74 2c 20 68 | 69 6e 74 2c 20 64 61 74 |(inst, h|int, dat|
|00004eb0| 61 2c 20 6c 65 6e 2c 20 | 73 65 6c 53 74 61 72 74 |a, len, |selStart|
|00004ec0| 2c 20 73 65 6c 45 6e 64 | 2c 20 75 72 6c 29 29 3b |, selEnd|, url));|
|00004ed0| 0d 7d 20 2f 2a 20 49 43 | 43 50 61 72 73 65 55 52 |.} /* IC|CParseUR|
|00004ee0| 4c 20 2a 2f 0d 0d 70 61 | 73 63 61 6c 20 49 43 45 |L */..pa|scal ICE|
|00004ef0| 72 72 6f 72 20 49 43 4c | 61 75 6e 63 68 55 52 4c |rror ICL|aunchURL|
|00004f00| 28 49 43 49 6e 73 74 61 | 6e 63 65 20 69 6e 73 74 |(ICInsta|nce inst|
|00004f10| 2c 20 43 6f 6e 73 74 53 | 74 72 32 35 35 50 61 72 |, ConstS|tr255Par|
|00004f20| 61 6d 20 68 69 6e 74 2c | 20 50 74 72 20 64 61 74 |am hint,| Ptr dat|
|00004f30| 61 2c 20 6c 6f 6e 67 20 | 6c 65 6e 2c 20 6c 6f 6e |a, long |len, lon|
|00004f40| 67 20 2a 73 65 6c 53 74 | 61 72 74 2c 20 6c 6f 6e |g *selSt|art, lon|
|00004f50| 67 20 2a 73 65 6c 45 6e | 64 29 0d 7b 0d 20 20 73 |g *selEn|d).{. s|
|00004f60| 74 72 75 63 74 20 7b 0d | 20 20 20 20 63 68 61 72 |truct {.| char|
|00004f70| 20 70 61 72 61 6d 5f 66 | 6c 61 67 73 3b 0d 20 20 | param_f|lags;. |
|00004f80| 20 20 63 68 61 72 20 70 | 61 72 61 6d 5f 73 69 7a | char p|aram_siz|
|00004f90| 65 3b 0d 20 20 20 20 73 | 68 6f 72 74 20 70 61 72 |e;. s|hort par|
|00004fa0| 61 6d 5f 77 68 61 74 3b | 0d 20 20 20 20 6c 6f 6e |am_what;|. lon|
|00004fb0| 67 20 2a 73 65 6c 45 6e | 64 3b 0d 20 20 20 20 6c |g *selEn|d;. l|
|00004fc0| 6f 6e 67 20 2a 73 65 6c | 53 74 61 72 74 3b 0d 20 |ong *sel|Start;. |
|00004fd0| 20 20 20 6c 6f 6e 67 20 | 6c 65 6e 3b 0d 20 20 20 | long |len;. |
|00004fe0| 20 50 74 72 20 64 61 74 | 61 3b 0d 20 20 20 20 53 | Ptr dat|a;. S|
|00004ff0| 74 72 69 6e 67 50 74 72 | 20 68 69 6e 74 3b 0d 20 |tringPtr| hint;. |
|00005000| 20 20 20 49 43 49 6e 73 | 74 61 6e 63 65 20 69 6e | ICIns|tance in|
|00005010| 73 74 3b 0d 20 20 7d 20 | 70 61 72 61 6d 73 3b 0d |st;. } |params;.|
|00005020| 0d 20 20 2f 2a 20 73 6f | 6d 65 20 73 65 74 75 70 |. /* so|me setup|
|00005030| 20 2a 2f 0d 20 20 70 61 | 72 61 6d 73 2e 70 61 72 | */. pa|rams.par|
|00005040| 61 6d 5f 66 6c 61 67 73 | 20 3d 20 30 3b 0d 20 20 |am_flags| = 0;. |
|00005050| 70 61 72 61 6d 73 2e 70 | 61 72 61 6d 5f 73 69 7a |params.p|aram_siz|
|00005060| 65 20 3d 20 32 30 3b 0d | 20 20 70 61 72 61 6d 73 |e = 20;.| params|
|00005070| 2e 70 61 72 61 6d 5f 77 | 68 61 74 20 3d 20 31 37 |.param_w|hat = 17|
|00005080| 3b 0d 20 20 2f 2a 20 72 | 6f 75 74 69 6e 65 20 73 |;. /* r|outine s|
|00005090| 70 65 63 69 66 69 63 20 | 61 73 73 69 67 6e 6d 65 |pecific |assignme|
|000050a0| 6e 74 73 20 2a 2f 0d 20 | 20 70 61 72 61 6d 73 2e |nts */. | params.|
|000050b0| 73 65 6c 45 6e 64 20 3d | 20 73 65 6c 45 6e 64 3b |selEnd =| selEnd;|
|000050c0| 0d 20 20 70 61 72 61 6d | 73 2e 73 65 6c 53 74 61 |. param|s.selSta|
|000050d0| 72 74 20 3d 20 73 65 6c | 53 74 61 72 74 3b 0d 20 |rt = sel|Start;. |
|000050e0| 20 70 61 72 61 6d 73 2e | 6c 65 6e 20 3d 20 6c 65 | params.|len = le|
|000050f0| 6e 3b 0d 20 20 70 61 72 | 61 6d 73 2e 64 61 74 61 |n;. par|ams.data|
|00005100| 20 3d 20 64 61 74 61 3b | 0d 20 20 70 61 72 61 6d | = data;|. param|
|00005110| 73 2e 68 69 6e 74 20 3d | 20 28 53 74 72 69 6e 67 |s.hint =| (String|
|00005120| 50 74 72 29 20 68 69 6e | 74 3b 0d 20 20 2f 2a 20 |Ptr) hin|t;. /* |
|00005130| 64 6f 20 74 68 65 20 77 | 6f 72 6b 20 2a 2f 0d 20 |do the w|ork */. |
|00005140| 20 70 61 72 61 6d 73 2e | 69 6e 73 74 20 3d 20 69 | params.|inst = i|
|00005150| 6e 73 74 3b 0d 20 20 72 | 65 74 75 72 6e 28 43 61 |nst;. r|eturn(Ca|
|00005160| 6c 6c 55 6e 69 76 65 72 | 73 61 6c 50 72 6f 63 28 |llUniver|salProc(|
|00005170| 43 61 6c 6c 43 6f 6d 70 | 6f 6e 65 6e 74 55 50 50 |CallComp|onentUPP|
|00005180| 2c 0d 20 20 20 20 75 70 | 70 43 61 6c 6c 43 6f 6d |,. up|pCallCom|
|00005190| 70 6f 6e 65 6e 74 50 72 | 6f 63 49 6e 66 6f 2c 0d |ponentPr|ocInfo,.|
|000051a0| 20 20 20 20 26 70 61 72 | 61 6d 73 29 29 3b 0d 7d | &par|ams));.}|
|000051b0| 20 2f 2a 20 49 43 4c 61 | 75 6e 63 68 55 52 4c 20 | /* ICLa|unchURL |
|000051c0| 2a 2f 0d 0d 70 61 73 63 | 61 6c 20 49 43 45 72 72 |*/..pasc|al ICErr|
|000051d0| 6f 72 20 49 43 43 4c 61 | 75 6e 63 68 55 52 4c 28 |or ICCLa|unchURL(|
|000051e0| 49 43 49 6e 73 74 61 6e | 63 65 20 69 6e 73 74 2c |ICInstan|ce inst,|
|000051f0| 20 43 6f 6e 73 74 53 74 | 72 32 35 35 50 61 72 61 | ConstSt|r255Para|
|00005200| 6d 20 68 69 6e 74 2c 20 | 50 74 72 20 64 61 74 61 |m hint, |Ptr data|
|00005210| 2c 20 6c 6f 6e 67 20 6c | 65 6e 2c 20 6c 6f 6e 67 |, long l|en, long|
|00005220| 20 2a 73 65 6c 53 74 61 | 72 74 2c 20 6c 6f 6e 67 | *selSta|rt, long|
|00005230| 20 2a 73 65 6c 45 6e 64 | 29 0d 7b 0d 20 20 72 65 | *selEnd|).{. re|
|00005240| 74 75 72 6e 28 49 43 4c | 61 75 6e 63 68 55 52 4c |turn(ICL|aunchURL|
|00005250| 28 69 6e 73 74 2c 20 68 | 69 6e 74 2c 20 64 61 74 |(inst, h|int, dat|
|00005260| 61 2c 20 6c 65 6e 2c 20 | 73 65 6c 53 74 61 72 74 |a, len, |selStart|
|00005270| 2c 20 73 65 6c 45 6e 64 | 29 29 3b 0d 7d 20 2f 2a |, selEnd|));.} /*|
|00005280| 20 49 43 43 4c 61 75 6e | 63 68 55 52 4c 20 2a 2f | ICCLaun|chURL */|
|00005290| 0d 0d 2f 2a 20 2a 2a 2a | 2a 2a 20 4d 61 70 70 69 |../* ***|** Mappi|
|000052a0| 6e 67 73 20 52 6f 75 74 | 69 6e 65 73 20 2a 2a 2a |ngs Rout|ines ***|
|000052b0| 2a 2a 0d 20 2a 20 0d 20 | 2a 20 52 6f 75 74 69 6e |**. * . |* Routin|
|000052c0| 65 73 20 66 6f 72 20 69 | 6e 74 65 72 72 6f 67 61 |es for i|nterroga|
|000052d0| 74 69 6e 67 20 6d 61 70 | 70 69 6e 67 73 20 64 61 |ting map|pings da|
|000052e0| 74 61 62 61 73 65 2e 0d | 20 2a 20 0d 20 2a 20 2d |tabase..| * . * -|
|000052f0| 2d 2d 2d 2d 20 48 69 67 | 68 20 4c 65 76 65 6c 20 |---- Hig|h Level |
|00005300| 52 6f 75 74 69 6e 65 73 | 20 2d 2d 2d 2d 2d 0d 20 |Routines| -----. |
|00005310| 2a 2f 0d 0d 70 61 73 63 | 61 6c 20 49 43 45 72 72 |*/..pasc|al ICErr|
|00005320| 6f 72 20 49 43 4d 61 70 | 46 69 6c 65 6e 61 6d 65 |or ICMap|Filename|
|00005330| 28 49 43 49 6e 73 74 61 | 6e 63 65 20 69 6e 73 74 |(ICInsta|nce inst|
|00005340| 2c 20 43 6f 6e 73 74 53 | 74 72 32 35 35 50 61 72 |, ConstS|tr255Par|
|00005350| 61 6d 20 66 69 6c 65 6e | 61 6d 65 2c 20 49 43 4d |am filen|ame, ICM|
|00005360| 61 70 45 6e 74 72 79 20 | 2a 65 6e 74 72 79 29 0d |apEntry |*entry).|
|00005370| 7b 0d 20 20 73 74 72 75 | 63 74 20 7b 0d 20 20 20 |{. stru|ct {. |
|00005380| 20 63 68 61 72 20 70 61 | 72 61 6d 5f 66 6c 61 67 | char pa|ram_flag|
|00005390| 73 3b 0d 20 20 20 20 63 | 68 61 72 20 70 61 72 61 |s;. c|har para|
|000053a0| 6d 5f 73 69 7a 65 3b 0d | 20 20 20 20 73 68 6f 72 |m_size;.| shor|
|000053b0| 74 20 70 61 72 61 6d 5f | 77 68 61 74 3b 0d 20 20 |t param_|what;. |
|000053c0| 20 20 49 43 4d 61 70 45 | 6e 74 72 79 20 2a 65 6e | ICMapE|ntry *en|
|000053d0| 74 72 79 3b 0d 20 20 20 | 20 53 74 72 69 6e 67 50 |try;. | StringP|
|000053e0| 74 72 20 66 69 6c 65 6e | 61 6d 65 3b 0d 20 20 20 |tr filen|ame;. |
|000053f0| 20 49 43 49 6e 73 74 61 | 6e 63 65 20 69 6e 73 74 | ICInsta|nce inst|
|00005400| 3b 0d 20 20 7d 20 70 61 | 72 61 6d 73 3b 0d 0d 20 |;. } pa|rams;.. |
|00005410| 20 2f 2a 20 73 6f 6d 65 | 20 73 65 74 75 70 20 2a | /* some| setup *|
|00005420| 2f 0d 20 20 70 61 72 61 | 6d 73 2e 70 61 72 61 6d |/. para|ms.param|
|00005430| 5f 66 6c 61 67 73 20 3d | 20 30 3b 0d 20 20 70 61 |_flags =| 0;. pa|
|00005440| 72 61 6d 73 2e 70 61 72 | 61 6d 5f 73 69 7a 65 20 |rams.par|am_size |
|00005450| 3d 20 38 3b 0d 20 20 70 | 61 72 61 6d 73 2e 70 61 |= 8;. p|arams.pa|
|00005460| 72 61 6d 5f 77 68 61 74 | 20 3d 20 32 34 3b 0d 20 |ram_what| = 24;. |
|00005470| 20 2f 2a 20 72 6f 75 74 | 69 6e 65 20 73 70 65 63 | /* rout|ine spec|
|00005480| 69 66 69 63 20 61 73 73 | 69 67 6e 6d 65 6e 74 73 |ific ass|ignments|
|00005490| 20 2a 2f 0d 20 20 70 61 | 72 61 6d 73 2e 65 6e 74 | */. pa|rams.ent|
|000054a0| 72 79 20 3d 20 65 6e 74 | 72 79 3b 0d 20 20 70 61 |ry = ent|ry;. pa|
|000054b0| 72 61 6d 73 2e 66 69 6c | 65 6e 61 6d 65 20 3d 20 |rams.fil|ename = |
|000054c0| 28 53 74 72 69 6e 67 50 | 74 72 29 20 66 69 6c 65 |(StringP|tr) file|
|000054d0| 6e 61 6d 65 3b 0d 20 20 | 2f 2a 20 64 6f 20 74 68 |name;. |/* do th|
|000054e0| 65 20 77 6f 72 6b 20 2a | 2f 0d 20 20 70 61 72 61 |e work *|/. para|
|000054f0| 6d 73 2e 69 6e 73 74 20 | 3d 20 69 6e 73 74 3b 0d |ms.inst |= inst;.|
|00005500| 20 20 72 65 74 75 72 6e | 28 43 61 6c 6c 55 6e 69 | return|(CallUni|
|00005510| 76 65 72 73 61 6c 50 72 | 6f 63 28 43 61 6c 6c 43 |versalPr|oc(CallC|
|00005520| 6f 6d 70 6f 6e 65 6e 74 | 55 50 50 2c 0d 20 20 20 |omponent|UPP,. |
|00005530| 20 75 70 70 43 61 6c 6c | 43 6f 6d 70 6f 6e 65 6e | uppCall|Componen|
|00005540| 74 50 72 6f 63 49 6e 66 | 6f 2c 0d 20 20 20 20 26 |tProcInf|o,. &|
|00005550| 70 61 72 61 6d 73 29 29 | 3b 0d 7d 20 2f 2a 20 49 |params))|;.} /* I|
|00005560| 43 4d 61 70 46 69 6c 65 | 6e 61 6d 65 20 2a 2f 0d |CMapFile|name */.|
|00005570| 0d 70 61 73 63 61 6c 20 | 49 43 45 72 72 6f 72 20 |.pascal |ICError |
|00005580| 49 43 43 4d 61 70 46 69 | 6c 65 6e 61 6d 65 28 49 |ICCMapFi|lename(I|
|00005590| 43 49 6e 73 74 61 6e 63 | 65 20 69 6e 73 74 2c 20 |CInstanc|e inst, |
|000055a0| 43 6f 6e 73 74 53 74 72 | 32 35 35 50 61 72 61 6d |ConstStr|255Param|
|000055b0| 20 66 69 6c 65 6e 61 6d | 65 2c 20 49 43 4d 61 70 | filenam|e, ICMap|
|000055c0| 45 6e 74 72 79 20 2a 65 | 6e 74 72 79 29 0d 7b 0d |Entry *e|ntry).{.|
|000055d0| 20 20 72 65 74 75 72 6e | 28 49 43 4d 61 70 46 69 | return|(ICMapFi|
|000055e0| 6c 65 6e 61 6d 65 28 69 | 6e 73 74 2c 20 66 69 6c |lename(i|nst, fil|
|000055f0| 65 6e 61 6d 65 2c 20 65 | 6e 74 72 79 29 29 3b 0d |ename, e|ntry));.|
|00005600| 7d 20 2f 2a 20 49 43 43 | 4d 61 70 46 69 6c 65 6e |} /* ICC|MapFilen|
|00005610| 61 6d 65 20 2a 2f 0d 0d | 70 61 73 63 61 6c 20 49 |ame */..|pascal I|
|00005620| 43 45 72 72 6f 72 20 49 | 43 4d 61 70 54 79 70 65 |CError I|CMapType|
|00005630| 43 72 65 61 74 6f 72 28 | 49 43 49 6e 73 74 61 6e |Creator(|ICInstan|
|00005640| 63 65 20 69 6e 73 74 2c | 20 4f 53 54 79 70 65 20 |ce inst,| OSType |
|00005650| 66 54 79 70 65 2c 20 4f | 53 54 79 70 65 20 66 43 |fType, O|SType fC|
|00005660| 72 65 61 74 6f 72 2c 20 | 43 6f 6e 73 74 53 74 72 |reator, |ConstStr|
|00005670| 32 35 35 50 61 72 61 6d | 20 66 69 6c 65 6e 61 6d |255Param| filenam|
|00005680| 65 2c 20 49 43 4d 61 70 | 45 6e 74 72 79 20 2a 65 |e, ICMap|Entry *e|
|00005690| 6e 74 72 79 29 0d 7b 0d | 20 20 73 74 72 75 63 74 |ntry).{.| struct|
|000056a0| 20 7b 0d 20 20 20 20 63 | 68 61 72 20 70 61 72 61 | {. c|har para|
|000056b0| 6d 5f 66 6c 61 67 73 3b | 0d 20 20 20 20 63 68 61 |m_flags;|. cha|
|000056c0| 72 20 70 61 72 61 6d 5f | 73 69 7a 65 3b 0d 20 20 |r param_|size;. |
|000056d0| 20 20 73 68 6f 72 74 20 | 70 61 72 61 6d 5f 77 68 | short |param_wh|
|000056e0| 61 74 3b 0d 20 20 20 20 | 49 43 4d 61 70 45 6e 74 |at;. |ICMapEnt|
|000056f0| 72 79 20 2a 65 6e 74 72 | 79 3b 0d 20 20 20 20 53 |ry *entr|y;. S|
|00005700| 74 72 69 6e 67 50 74 72 | 20 66 69 6c 65 6e 61 6d |tringPtr| filenam|
|00005710| 65 3b 0d 20 20 20 20 4f | 53 54 79 70 65 20 66 43 |e;. O|SType fC|
|00005720| 72 65 61 74 6f 72 3b 0d | 20 20 20 20 4f 53 54 79 |reator;.| OSTy|
|00005730| 70 65 20 66 54 79 70 65 | 3b 0d 20 20 20 20 49 43 |pe fType|;. IC|
|00005740| 49 6e 73 74 61 6e 63 65 | 20 69 6e 73 74 3b 0d 20 |Instance| inst;. |
|00005750| 20 7d 20 70 61 72 61 6d | 73 3b 0d 0d 20 20 2f 2a | } param|s;.. /*|
|00005760| 20 73 6f 6d 65 20 73 65 | 74 75 70 20 2a 2f 0d 20 | some se|tup */. |
|00005770| 20 70 61 72 61 6d 73 2e | 70 61 72 61 6d 5f 66 6c | params.|param_fl|
|00005780| 61 67 73 20 3d 20 30 3b | 0d 20 20 70 61 72 61 6d |ags = 0;|. param|
|00005790| 73 2e 70 61 72 61 6d 5f | 73 69 7a 65 20 3d 20 31 |s.param_|size = 1|
|000057a0| 36 3b 0d 20 20 70 61 72 | 61 6d 73 2e 70 61 72 61 |6;. par|ams.para|
|000057b0| 6d 5f 77 68 61 74 20 3d | 20 32 35 3b 0d 20 20 2f |m_what =| 25;. /|
|000057c0| 2a 20 72 6f 75 74 69 6e | 65 20 73 70 65 63 69 66 |* routin|e specif|
|000057d0| 69 63 20 61 73 73 69 67 | 6e 6d 65 6e 74 73 20 2a |ic assig|nments *|
|000057e0| 2f 0d 20 20 70 61 72 61 | 6d 73 2e 65 6e 74 72 79 |/. para|ms.entry|
|000057f0| 20 3d 20 65 6e 74 72 79 | 3b 0d 20 20 70 61 72 61 | = entry|;. para|
|00005800| 6d 73 2e 66 69 6c 65 6e | 61 6d 65 20 3d 20 28 53 |ms.filen|ame = (S|
|00005810| 74 72 69 6e 67 50 74 72 | 29 20 66 69 6c 65 6e 61 |tringPtr|) filena|
|00005820| 6d 65 3b 0d 20 20 70 61 | 72 61 6d 73 2e 66 43 72 |me;. pa|rams.fCr|
|00005830| 65 61 74 6f 72 20 3d 20 | 66 43 72 65 61 74 6f 72 |eator = |fCreator|
|00005840| 3b 0d 20 20 70 61 72 61 | 6d 73 2e 66 54 79 70 65 |;. para|ms.fType|
|00005850| 20 3d 20 66 54 79 70 65 | 3b 0d 20 20 2f 2a 20 64 | = fType|;. /* d|
|00005860| 6f 20 74 68 65 20 77 6f | 72 6b 20 2a 2f 0d 20 20 |o the wo|rk */. |
|00005870| 70 61 72 61 6d 73 2e 69 | 6e 73 74 20 3d 20 69 6e |params.i|nst = in|
|00005880| 73 74 3b 0d 20 20 72 65 | 74 75 72 6e 28 43 61 6c |st;. re|turn(Cal|
|00005890| 6c 55 6e 69 76 65 72 73 | 61 6c 50 72 6f 63 28 43 |lUnivers|alProc(C|
|000058a0| 61 6c 6c 43 6f 6d 70 6f | 6e 65 6e 74 55 50 50 2c |allCompo|nentUPP,|
|000058b0| 0d 20 20 20 20 75 70 70 | 43 61 6c 6c 43 6f 6d 70 |. upp|CallComp|
|000058c0| 6f 6e 65 6e 74 50 72 6f | 63 49 6e 66 6f 2c 0d 20 |onentPro|cInfo,. |
|000058d0| 20 20 20 26 70 61 72 61 | 6d 73 29 29 3b 0d 7d 20 | ¶|ms));.} |
|000058e0| 2f 2a 20 49 43 4d 61 70 | 54 79 70 65 43 72 65 61 |/* ICMap|TypeCrea|
|000058f0| 74 6f 72 20 2a 2f 0d 0d | 70 61 73 63 61 6c 20 49 |tor */..|pascal I|
|00005900| 43 45 72 72 6f 72 20 49 | 43 43 4d 61 70 54 79 70 |CError I|CCMapTyp|
|00005910| 65 43 72 65 61 74 6f 72 | 28 49 43 49 6e 73 74 61 |eCreator|(ICInsta|
|00005920| 6e 63 65 20 69 6e 73 74 | 2c 20 4f 53 54 79 70 65 |nce inst|, OSType|
|00005930| 20 66 54 79 70 65 2c 20 | 4f 53 54 79 70 65 20 66 | fType, |OSType f|
|00005940| 43 72 65 61 74 6f 72 2c | 20 43 6f 6e 73 74 53 74 |Creator,| ConstSt|
|00005950| 72 32 35 35 50 61 72 61 | 6d 20 66 69 6c 65 6e 61 |r255Para|m filena|
|00005960| 6d 65 2c 20 49 43 4d 61 | 70 45 6e 74 72 79 20 2a |me, ICMa|pEntry *|
|00005970| 65 6e 74 72 79 29 0d 7b | 0d 20 20 72 65 74 75 72 |entry).{|. retur|
|00005980| 6e 28 49 43 4d 61 70 54 | 79 70 65 43 72 65 61 74 |n(ICMapT|ypeCreat|
|00005990| 6f 72 28 69 6e 73 74 2c | 20 66 54 79 70 65 2c 20 |or(inst,| fType, |
|000059a0| 66 43 72 65 61 74 6f 72 | 2c 20 66 69 6c 65 6e 61 |fCreator|, filena|
|000059b0| 6d 65 2c 20 65 6e 74 72 | 79 29 29 3b 0d 7d 20 2f |me, entr|y));.} /|
|000059c0| 2a 20 49 43 43 4d 61 70 | 54 79 70 65 43 72 65 61 |* ICCMap|TypeCrea|
|000059d0| 74 6f 72 20 2a 2f 0d 0d | 2f 2a 20 2d 2d 2d 2d 2d |tor */..|/* -----|
|000059e0| 20 4d 69 64 20 4c 65 76 | 65 6c 20 52 6f 75 74 69 | Mid Lev|el Routi|
|000059f0| 6e 65 73 20 2d 2d 2d 2d | 2d 20 2a 2f 0d 0d 70 61 |nes ----|- */..pa|
|00005a00| 73 63 61 6c 20 49 43 45 | 72 72 6f 72 20 49 43 4d |scal ICE|rror ICM|
|00005a10| 61 70 45 6e 74 72 69 65 | 73 46 69 6c 65 6e 61 6d |apEntrie|sFilenam|
|00005a20| 65 28 49 43 49 6e 73 74 | 61 6e 63 65 20 69 6e 73 |e(ICInst|ance ins|
|00005a30| 74 2c 20 48 61 6e 64 6c | 65 20 65 6e 74 72 69 65 |t, Handl|e entrie|
|00005a40| 73 2c 20 43 6f 6e 73 74 | 53 74 72 32 35 35 50 61 |s, Const|Str255Pa|
|00005a50| 72 61 6d 20 66 69 6c 65 | 6e 61 6d 65 2c 20 49 43 |ram file|name, IC|
|00005a60| 4d 61 70 45 6e 74 72 79 | 20 2a 65 6e 74 72 79 29 |MapEntry| *entry)|
|00005a70| 0d 7b 0d 20 20 73 74 72 | 75 63 74 20 7b 0d 20 20 |.{. str|uct {. |
|00005a80| 20 20 63 68 61 72 20 70 | 61 72 61 6d 5f 66 6c 61 | char p|aram_fla|
|00005a90| 67 73 3b 0d 20 20 20 20 | 63 68 61 72 20 70 61 72 |gs;. |char par|
|00005aa0| 61 6d 5f 73 69 7a 65 3b | 0d 20 20 20 20 73 68 6f |am_size;|. sho|
|00005ab0| 72 74 20 70 61 72 61 6d | 5f 77 68 61 74 3b 0d 20 |rt param|_what;. |
|00005ac0| 20 20 20 49 43 4d 61 70 | 45 6e 74 72 79 20 2a 65 | ICMap|Entry *e|
|00005ad0| 6e 74 72 79 3b 0d 20 20 | 20 20 53 74 72 69 6e 67 |ntry;. | String|
|00005ae0| 50 74 72 20 66 69 6c 65 | 6e 61 6d 65 3b 0d 20 20 |Ptr file|name;. |
|00005af0| 20 20 48 61 6e 64 6c 65 | 20 65 6e 74 72 69 65 73 | Handle| entries|
|00005b00| 3b 0d 20 20 20 20 49 43 | 49 6e 73 74 61 6e 63 65 |;. IC|Instance|
|00005b10| 20 69 6e 73 74 3b 0d 20 | 20 7d 20 70 61 72 61 6d | inst;. | } param|
|00005b20| 73 3b 0d 0d 20 20 2f 2a | 20 73 6f 6d 65 20 73 65 |s;.. /*| some se|
|00005b30| 74 75 70 20 2a 2f 0d 20 | 20 70 61 72 61 6d 73 2e |tup */. | params.|
|00005b40| 70 61 72 61 6d 5f 66 6c | 61 67 73 20 3d 20 30 3b |param_fl|ags = 0;|
|00005b50| 0d 20 20 70 61 72 61 6d | 73 2e 70 61 72 61 6d 5f |. param|s.param_|
|00005b60| 73 69 7a 65 20 3d 20 31 | 32 3b 0d 20 20 70 61 72 |size = 1|2;. par|
|00005b70| 61 6d 73 2e 70 61 72 61 | 6d 5f 77 68 61 74 20 3d |ams.para|m_what =|
|00005b80| 20 32 38 3b 0d 20 20 2f | 2a 20 72 6f 75 74 69 6e | 28;. /|* routin|
|00005b90| 65 20 73 70 65 63 69 66 | 69 63 20 61 73 73 69 67 |e specif|ic assig|
|00005ba0| 6e 6d 65 6e 74 73 20 2a | 2f 0d 20 20 70 61 72 61 |nments *|/. para|
|00005bb0| 6d 73 2e 65 6e 74 72 79 | 20 3d 20 65 6e 74 72 79 |ms.entry| = entry|
|00005bc0| 3b 0d 20 20 70 61 72 61 | 6d 73 2e 66 69 6c 65 6e |;. para|ms.filen|
|00005bd0| 61 6d 65 20 3d 20 28 53 | 74 72 69 6e 67 50 74 72 |ame = (S|tringPtr|
|00005be0| 29 20 66 69 6c 65 6e 61 | 6d 65 3b 0d 20 20 70 61 |) filena|me;. pa|
|00005bf0| 72 61 6d 73 2e 65 6e 74 | 72 69 65 73 20 3d 20 65 |rams.ent|ries = e|
|00005c00| 6e 74 72 69 65 73 3b 0d | 20 20 2f 2a 20 64 6f 20 |ntries;.| /* do |
|00005c10| 74 68 65 20 77 6f 72 6b | 20 2a 2f 0d 20 20 70 61 |the work| */. pa|
|00005c20| 72 61 6d 73 2e 69 6e 73 | 74 20 3d 20 69 6e 73 74 |rams.ins|t = inst|
|00005c30| 3b 0d 20 20 72 65 74 75 | 72 6e 28 43 61 6c 6c 55 |;. retu|rn(CallU|
|00005c40| 6e 69 76 65 72 73 61 6c | 50 72 6f 63 28 43 61 6c |niversal|Proc(Cal|
|00005c50| 6c 43 6f 6d 70 6f 6e 65 | 6e 74 55 50 50 2c 0d 20 |lCompone|ntUPP,. |
|00005c60| 20 20 20 75 70 70 43 61 | 6c 6c 43 6f 6d 70 6f 6e | uppCa|llCompon|
|00005c70| 65 6e 74 50 72 6f 63 49 | 6e 66 6f 2c 0d 20 20 20 |entProcI|nfo,. |
|00005c80| 20 26 70 61 72 61 6d 73 | 29 29 3b 0d 7d 20 2f 2a | ¶ms|));.} /*|
|00005c90| 20 49 43 4d 61 70 45 6e | 74 72 69 65 73 46 69 6c | ICMapEn|triesFil|
|00005ca0| 65 6e 61 6d 65 20 2a 2f | 0d 0d 70 61 73 63 61 6c |ename */|..pascal|
|00005cb0| 20 49 43 45 72 72 6f 72 | 20 49 43 43 4d 61 70 45 | ICError| ICCMapE|
|00005cc0| 6e 74 72 69 65 73 46 69 | 6c 65 6e 61 6d 65 28 49 |ntriesFi|lename(I|
|00005cd0| 43 49 6e 73 74 61 6e 63 | 65 20 69 6e 73 74 2c 20 |CInstanc|e inst, |
|00005ce0| 48 61 6e 64 6c 65 20 65 | 6e 74 72 69 65 73 2c 20 |Handle e|ntries, |
|00005cf0| 43 6f 6e 73 74 53 74 72 | 32 35 35 50 61 72 61 6d |ConstStr|255Param|
|00005d00| 20 66 69 6c 65 6e 61 6d | 65 2c 20 49 43 4d 61 70 | filenam|e, ICMap|
|00005d10| 45 6e 74 72 79 20 2a 65 | 6e 74 72 79 29 0d 7b 0d |Entry *e|ntry).{.|
|00005d20| 20 20 72 65 74 75 72 6e | 28 49 43 4d 61 70 45 6e | return|(ICMapEn|
|00005d30| 74 72 69 65 73 46 69 6c | 65 6e 61 6d 65 28 69 6e |triesFil|ename(in|
|00005d40| 73 74 2c 20 65 6e 74 72 | 69 65 73 2c 20 66 69 6c |st, entr|ies, fil|
|00005d50| 65 6e 61 6d 65 2c 20 65 | 6e 74 72 79 29 29 3b 0d |ename, e|ntry));.|
|00005d60| 7d 20 2f 2a 20 49 43 43 | 4d 61 70 45 6e 74 72 69 |} /* ICC|MapEntri|
|00005d70| 65 73 46 69 6c 65 6e 61 | 6d 65 20 2a 2f 0d 0d 70 |esFilena|me */..p|
|00005d80| 61 73 63 61 6c 20 49 43 | 45 72 72 6f 72 20 49 43 |ascal IC|Error IC|
|00005d90| 4d 61 70 45 6e 74 72 69 | 65 73 54 79 70 65 43 72 |MapEntri|esTypeCr|
|00005da0| 65 61 74 6f 72 28 49 43 | 49 6e 73 74 61 6e 63 65 |eator(IC|Instance|
|00005db0| 20 69 6e 73 74 2c 20 48 | 61 6e 64 6c 65 20 65 6e | inst, H|andle en|
|00005dc0| 74 72 69 65 73 2c 20 4f | 53 54 79 70 65 20 66 54 |tries, O|SType fT|
|00005dd0| 79 70 65 2c 20 4f 53 54 | 79 70 65 20 66 43 72 65 |ype, OST|ype fCre|
|00005de0| 61 74 6f 72 2c 20 43 6f | 6e 73 74 53 74 72 32 35 |ator, Co|nstStr25|
|00005df0| 35 50 61 72 61 6d 20 66 | 69 6c 65 6e 61 6d 65 2c |5Param f|ilename,|
|00005e00| 20 49 43 4d 61 70 45 6e | 74 72 79 20 2a 65 6e 74 | ICMapEn|try *ent|
|00005e10| 72 79 29 0d 7b 0d 20 20 | 73 74 72 75 63 74 20 7b |ry).{. |struct {|
|00005e20| 0d 20 20 20 20 63 68 61 | 72 20 70 61 72 61 6d 5f |. cha|r param_|
|00005e30| 66 6c 61 67 73 3b 0d 20 | 20 20 20 63 68 61 72 20 |flags;. | char |
|00005e40| 70 61 72 61 6d 5f 73 69 | 7a 65 3b 0d 20 20 20 20 |param_si|ze;. |
|00005e50| 73 68 6f 72 74 20 70 61 | 72 61 6d 5f 77 68 61 74 |short pa|ram_what|
|00005e60| 3b 0d 20 20 20 20 49 43 | 4d 61 70 45 6e 74 72 79 |;. IC|MapEntry|
|00005e70| 20 2a 65 6e 74 72 79 3b | 0d 20 20 20 20 53 74 72 | *entry;|. Str|
|00005e80| 69 6e 67 50 74 72 20 66 | 69 6c 65 6e 61 6d 65 3b |ingPtr f|ilename;|
|00005e90| 0d 20 20 20 20 4f 53 54 | 79 70 65 20 66 43 72 65 |. OST|ype fCre|
|00005ea0| 61 74 6f 72 3b 0d 20 20 | 20 20 4f 53 54 79 70 65 |ator;. | OSType|
|00005eb0| 20 66 54 79 70 65 3b 0d | 20 20 20 20 48 61 6e 64 | fType;.| Hand|
|00005ec0| 6c 65 20 65 6e 74 72 69 | 65 73 3b 0d 20 20 20 20 |le entri|es;. |
|00005ed0| 49 43 49 6e 73 74 61 6e | 63 65 20 69 6e 73 74 3b |ICInstan|ce inst;|
|00005ee0| 0d 20 20 7d 20 70 61 72 | 61 6d 73 3b 0d 0d 20 20 |. } par|ams;.. |
|00005ef0| 2f 2a 20 73 6f 6d 65 20 | 73 65 74 75 70 20 2a 2f |/* some |setup */|
|00005f00| 0d 20 20 70 61 72 61 6d | 73 2e 70 61 72 61 6d 5f |. param|s.param_|
|00005f10| 66 6c 61 67 73 20 3d 20 | 30 3b 0d 20 20 70 61 72 |flags = |0;. par|
|00005f20| 61 6d 73 2e 70 61 72 61 | 6d 5f 73 69 7a 65 20 3d |ams.para|m_size =|
|00005f30| 20 32 30 3b 0d 20 20 70 | 61 72 61 6d 73 2e 70 61 | 20;. p|arams.pa|
|00005f40| 72 61 6d 5f 77 68 61 74 | 20 3d 20 32 39 3b 0d 20 |ram_what| = 29;. |
|00005f50| 20 2f 2a 20 72 6f 75 74 | 69 6e 65 20 73 70 65 63 | /* rout|ine spec|
|00005f60| 69 66 69 63 20 61 73 73 | 69 67 6e 6d 65 6e 74 73 |ific ass|ignments|
|00005f70| 20 2a 2f 0d 20 20 70 61 | 72 61 6d 73 2e 65 6e 74 | */. pa|rams.ent|
|00005f80| 72 79 20 3d 20 65 6e 74 | 72 79 3b 0d 20 20 70 61 |ry = ent|ry;. pa|
|00005f90| 72 61 6d 73 2e 66 69 6c | 65 6e 61 6d 65 20 3d 20 |rams.fil|ename = |
|00005fa0| 28 53 74 72 69 6e 67 50 | 74 72 29 20 66 69 6c 65 |(StringP|tr) file|
|00005fb0| 6e 61 6d 65 3b 0d 20 20 | 70 61 72 61 6d 73 2e 66 |name;. |params.f|
|00005fc0| 43 72 65 61 74 6f 72 20 | 3d 20 66 43 72 65 61 74 |Creator |= fCreat|
|00005fd0| 6f 72 3b 0d 20 20 70 61 | 72 61 6d 73 2e 66 54 79 |or;. pa|rams.fTy|
|00005fe0| 70 65 20 3d 20 66 54 79 | 70 65 3b 0d 20 20 70 61 |pe = fTy|pe;. pa|
|00005ff0| 72 61 6d 73 2e 65 6e 74 | 72 69 65 73 20 3d 20 65 |rams.ent|ries = e|
|00006000| 6e 74 72 69 65 73 3b 0d | 20 20 2f 2a 20 64 6f 20 |ntries;.| /* do |
|00006010| 74 68 65 20 77 6f 72 6b | 20 2a 2f 0d 20 20 70 61 |the work| */. pa|
|00006020| 72 61 6d 73 2e 69 6e 73 | 74 20 3d 20 69 6e 73 74 |rams.ins|t = inst|
|00006030| 3b 0d 20 20 72 65 74 75 | 72 6e 28 43 61 6c 6c 55 |;. retu|rn(CallU|
|00006040| 6e 69 76 65 72 73 61 6c | 50 72 6f 63 28 43 61 6c |niversal|Proc(Cal|
|00006050| 6c 43 6f 6d 70 6f 6e 65 | 6e 74 55 50 50 2c 0d 20 |lCompone|ntUPP,. |
|00006060| 20 20 20 75 70 70 43 61 | 6c 6c 43 6f 6d 70 6f 6e | uppCa|llCompon|
|00006070| 65 6e 74 50 72 6f 63 49 | 6e 66 6f 2c 0d 20 20 20 |entProcI|nfo,. |
|00006080| 20 26 70 61 72 61 6d 73 | 29 29 3b 0d 7d 20 2f 2a | ¶ms|));.} /*|
|00006090| 20 49 43 4d 61 70 45 6e | 74 72 69 65 73 54 79 70 | ICMapEn|triesTyp|
|000060a0| 65 43 72 65 61 74 6f 72 | 20 2a 2f 0d 0d 70 61 73 |eCreator| */..pas|
|000060b0| 63 61 6c 20 49 43 45 72 | 72 6f 72 20 49 43 43 4d |cal ICEr|ror ICCM|
|000060c0| 61 70 45 6e 74 72 69 65 | 73 54 79 70 65 43 72 65 |apEntrie|sTypeCre|
|000060d0| 61 74 6f 72 28 49 43 49 | 6e 73 74 61 6e 63 65 20 |ator(ICI|nstance |
|000060e0| 69 6e 73 74 2c 20 48 61 | 6e 64 6c 65 20 65 6e 74 |inst, Ha|ndle ent|
|000060f0| 72 69 65 73 2c 20 4f 53 | 54 79 70 65 20 66 54 79 |ries, OS|Type fTy|
|00006100| 70 65 2c 20 4f 53 54 79 | 70 65 20 66 43 72 65 61 |pe, OSTy|pe fCrea|
|00006110| 74 6f 72 2c 20 43 6f 6e | 73 74 53 74 72 32 35 35 |tor, Con|stStr255|
|00006120| 50 61 72 61 6d 20 66 69 | 6c 65 6e 61 6d 65 2c 20 |Param fi|lename, |
|00006130| 49 43 4d 61 70 45 6e 74 | 72 79 20 2a 65 6e 74 72 |ICMapEnt|ry *entr|
|00006140| 79 29 0d 7b 0d 20 20 72 | 65 74 75 72 6e 28 49 43 |y).{. r|eturn(IC|
|00006150| 4d 61 70 45 6e 74 72 69 | 65 73 54 79 70 65 43 72 |MapEntri|esTypeCr|
|00006160| 65 61 74 6f 72 28 69 6e | 73 74 2c 20 65 6e 74 72 |eator(in|st, entr|
|00006170| 69 65 73 2c 20 66 54 79 | 70 65 2c 20 66 43 72 65 |ies, fTy|pe, fCre|
|00006180| 61 74 6f 72 2c 20 66 69 | 6c 65 6e 61 6d 65 2c 20 |ator, fi|lename, |
|00006190| 65 6e 74 72 79 29 29 3b | 0d 7d 20 2f 2a 20 49 43 |entry));|.} /* IC|
|000061a0| 43 4d 61 70 45 6e 74 72 | 69 65 73 54 79 70 65 43 |CMapEntr|iesTypeC|
|000061b0| 72 65 61 74 6f 72 20 2a | 2f 0d 0d 2f 2a 20 2d 2d |reator *|/../* --|
|000061c0| 2d 2d 2d 20 4c 6f 77 20 | 4c 65 76 65 6c 20 52 6f |--- Low |Level Ro|
|000061d0| 75 74 69 6e 65 73 20 2d | 2d 2d 2d 2d 20 2a 2f 0d |utines -|---- */.|
|000061e0| 0d 70 61 73 63 61 6c 20 | 49 43 45 72 72 6f 72 20 |.pascal |ICError |
|000061f0| 49 43 43 6f 75 6e 74 4d | 61 70 45 6e 74 72 69 65 |ICCountM|apEntrie|
|00006200| 73 28 49 43 49 6e 73 74 | 61 6e 63 65 20 69 6e 73 |s(ICInst|ance ins|
|00006210| 74 2c 20 48 61 6e 64 6c | 65 20 65 6e 74 72 69 65 |t, Handl|e entrie|
|00006220| 73 2c 20 6c 6f 6e 67 20 | 2a 63 6f 75 6e 74 29 0d |s, long |*count).|
|00006230| 7b 0d 20 20 73 74 72 75 | 63 74 20 7b 0d 20 20 20 |{. stru|ct {. |
|00006240| 20 63 68 61 72 20 70 61 | 72 61 6d 5f 66 6c 61 67 | char pa|ram_flag|
|00006250| 73 3b 0d 20 20 20 20 63 | 68 61 72 20 70 61 72 61 |s;. c|har para|
|00006260| 6d 5f 73 69 7a 65 3b 0d | 20 20 20 20 73 68 6f 72 |m_size;.| shor|
|00006270| 74 20 70 61 72 61 6d 5f | 77 68 61 74 3b 0d 20 20 |t param_|what;. |
|00006280| 20 20 6c 6f 6e 67 20 2a | 63 6f 75 6e 74 3b 0d 20 | long *|count;. |
|00006290| 20 20 20 48 61 6e 64 6c | 65 20 65 6e 74 72 69 65 | Handl|e entrie|
|000062a0| 73 3b 0d 20 20 20 20 49 | 43 49 6e 73 74 61 6e 63 |s;. I|CInstanc|
|000062b0| 65 20 69 6e 73 74 3b 0d | 20 20 7d 20 70 61 72 61 |e inst;.| } para|
|000062c0| 6d 73 3b 0d 0d 20 20 2f | 2a 20 73 6f 6d 65 20 73 |ms;.. /|* some s|
|000062d0| 65 74 75 70 20 2a 2f 0d | 20 20 70 61 72 61 6d 73 |etup */.| params|
|000062e0| 2e 70 61 72 61 6d 5f 66 | 6c 61 67 73 20 3d 20 30 |.param_f|lags = 0|
|000062f0| 3b 0d 20 20 70 61 72 61 | 6d 73 2e 70 61 72 61 6d |;. para|ms.param|
|00006300| 5f 73 69 7a 65 20 3d 20 | 38 3b 0d 20 20 70 61 72 |_size = |8;. par|
|00006310| 61 6d 73 2e 70 61 72 61 | 6d 5f 77 68 61 74 20 3d |ams.para|m_what =|
|00006320| 20 31 38 3b 0d 20 20 2f | 2a 20 72 6f 75 74 69 6e | 18;. /|* routin|
|00006330| 65 20 73 70 65 63 69 66 | 69 63 20 61 73 73 69 67 |e specif|ic assig|
|00006340| 6e 6d 65 6e 74 73 20 2a | 2f 0d 20 20 70 61 72 61 |nments *|/. para|
|00006350| 6d 73 2e 63 6f 75 6e 74 | 20 3d 20 63 6f 75 6e 74 |ms.count| = count|
|00006360| 3b 0d 20 20 70 61 72 61 | 6d 73 2e 65 6e 74 72 69 |;. para|ms.entri|
|00006370| 65 73 20 3d 20 65 6e 74 | 72 69 65 73 3b 0d 20 20 |es = ent|ries;. |
|00006380| 2f 2a 20 64 6f 20 74 68 | 65 20 77 6f 72 6b 20 2a |/* do th|e work *|
|00006390| 2f 0d 20 20 70 61 72 61 | 6d 73 2e 69 6e 73 74 20 |/. para|ms.inst |
|000063a0| 3d 20 69 6e 73 74 3b 0d | 20 20 72 65 74 75 72 6e |= inst;.| return|
|000063b0| 28 43 61 6c 6c 55 6e 69 | 76 65 72 73 61 6c 50 72 |(CallUni|versalPr|
|000063c0| 6f 63 28 43 61 6c 6c 43 | 6f 6d 70 6f 6e 65 6e 74 |oc(CallC|omponent|
|000063d0| 55 50 50 2c 0d 20 20 20 | 20 75 70 70 43 61 6c 6c |UPP,. | uppCall|
|000063e0| 43 6f 6d 70 6f 6e 65 6e | 74 50 72 6f 63 49 6e 66 |Componen|tProcInf|
|000063f0| 6f 2c 0d 20 20 20 20 26 | 70 61 72 61 6d 73 29 29 |o,. &|params))|
+--------+-------------------------+-------------------------+--------+--------+
Only 25.0 KB of data is shown above.