home *** CD-ROM | disk | FTP | other *** search
/ Mac Power 1997 January / macpower199701.bin / AMUG / Programming_10 / Videotoolbox 96-08-22-c.sit / VideoToolbox / VideoToolboxSources / Identify.c < prev    next >
MacBinary  |  1996-07-09  |  33.1 KB  |  [TEXT/CWIE]

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: Identify.c

ConfidenceProgramDetectionMatch TypeSupport
66% dexvert Compact Compressed (Unix) (archive/compact) ext Supported
10% dexvert MacBinary (archive/macBinary) fallback Supported
1% dexvert Text File (text/txt) fallback Supported
100% file MacBinary II, inited, Tue Jul 9 02:25:39 1996, modified Tue Jul 9 02:25:39 1996, creator 'CWIE', type ASCII, 33011 bytes "Identify.c" , at 0x8173 734 bytes resource default (weak)
99% file data default
74% TrID Macintosh plain text (MacBinary) default
25% TrID MacBinary 2 default (weak)
100% siegfried fmt/1762 MacBinary (II) default
100% lsar MacBinary default


id metadata
keyvalue
macFileType[TEXT]
macFileCreator[CWIE]



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 0a 49 64 65 6e 74 69 | 66 79 2e 63 00 00 00 00 |..Identi|fy.c....|
|00000010| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 54 45 58 54 43 57 49 | 45 01 00 00 00 00 00 00 |.TEXTCWI|E.......|
|00000050| 00 00 00 00 00 80 f3 00 | 00 02 de ae 07 ab e3 ae |........|........|
|00000060| 07 ab e3 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 7c 11 00 00 |........|....|...|
|00000080| 2f 2a 20 4e 61 6d 65 52 | 65 67 69 73 74 72 79 4c |/* NameR|egistryL|
|00000090| 69 62 20 69 73 20 69 6e | 20 74 68 65 20 56 69 64 |ib is in| the Vid|
|000000a0| 65 6f 54 6f 6f 6c 62 6f | 78 3a 4c 69 62 73 20 66 |eoToolbo|x:Libs f|
|000000b0| 6f 6c 64 65 72 2e 20 2a | 2f 0d 2f 2f 23 64 65 66 |older. *|/.//#def|
|000000c0| 69 6e 65 20 4e 4f 5f 4e | 41 4d 45 5f 52 45 47 49 |ine NO_N|AME_REGI|
|000000d0| 53 54 52 59 5f 4c 49 42 | 20 31 09 2f 2a 20 55 6e |STRY_LIB| 1./* Un|
|000000e0| 63 6f 6d 6d 65 6e 74 20 | 74 68 69 73 20 69 66 20 |comment |this if |
|000000f0| 79 6f 75 27 72 65 20 6d | 69 73 73 69 6e 67 20 41 |you're m|issing A|
|00000100| 70 70 6c 65 27 73 20 4e | 61 6d 65 52 65 67 69 73 |pple's N|ameRegis|
|00000110| 74 72 79 4c 69 62 20 2a | 2f 0d 2f 2a 0d 49 64 65 |tryLib *|/./*.Ide|
|00000120| 6e 74 69 66 79 2e 63 0d | 0d 4e 4f 54 45 3a 20 73 |ntify.c.|.NOTE: s|
|00000130| 65 76 65 72 61 6c 20 72 | 6f 75 74 69 6e 65 73 20 |everal r|outines |
|00000140| 74 68 61 74 20 75 73 65 | 20 41 70 70 6c 65 27 73 |that use| Apple's|
|00000150| 20 4e 61 6d 65 52 65 67 | 69 73 74 72 79 4c 69 62 | NameReg|istryLib|
|00000160| 20 61 70 70 65 61 72 20 | 61 74 20 74 68 65 20 65 | appear |at the e|
|00000170| 6e 64 20 6f 66 20 74 68 | 69 73 20 66 69 6c 65 2e |nd of th|is file.|
|00000180| 0d 49 66 20 79 6f 75 20 | 64 6f 6e 27 74 20 68 61 |.If you |don't ha|
|00000190| 76 65 20 74 68 61 74 20 | 66 69 6c 65 2c 20 74 68 |ve that |file, th|
|000001a0| 65 6e 20 75 6e 2d 63 6f | 6d 6d 65 6e 74 20 74 68 |en un-co|mment th|
|000001b0| 65 20 66 69 72 73 74 20 | 6c 69 6e 65 20 61 62 6f |e first |line abo|
|000001c0| 76 65 2e 0d 0d 45 61 63 | 68 20 72 6f 75 74 69 6e |ve...Eac|h routin|
|000001d0| 65 20 72 65 74 75 72 6e | 73 20 61 6e 20 69 6e 66 |e return|s an inf|
|000001e0| 6f 72 6d 61 74 69 76 65 | 20 43 20 73 74 72 69 6e |ormative| C strin|
|000001f0| 67 2e 20 48 65 72 65 20 | 61 72 65 20 73 61 6d 70 |g. Here |are samp|
|00000200| 6c 65 73 2e 20 28 49 20 | 73 75 67 67 65 73 74 20 |les. (I |suggest |
|00000210| 79 6f 75 0d 75 73 65 20 | 42 72 65 61 6b 4c 69 6e |you.use |BreakLin|
|00000220| 65 73 28 29 20 74 6f 20 | 70 72 69 6e 74 66 20 74 |es() to |printf t|
|00000230| 68 65 20 6c 6f 6e 67 65 | 72 20 6f 6e 65 73 2e 29 |he longe|r ones.)|
|00000240| 0d 0d 49 64 65 6e 74 69 | 66 79 43 6f 6d 70 69 6c |..Identi|fyCompil|
|00000250| 65 72 3a 0d 22 43 6f 6d | 70 69 6c 65 64 20 62 79 |er:."Com|piled by|
|00000260| 20 4d 65 74 72 6f 77 65 | 72 6b 73 20 43 6f 64 65 | Metrowe|rks Code|
|00000270| 57 61 72 72 69 6f 72 20 | 43 20 37 2e 30 30 20 66 |Warrior |C 7.00 f|
|00000280| 6f 72 20 50 6f 77 65 72 | 50 43 2c 20 34 42 20 69 |or Power|PC, 4B i|
|00000290| 6e 74 20 61 6e 64 20 38 | 42 20 64 6f 75 62 6c 65 |nt and 8|B double|
|000002a0| 2e 22 0d 0d 49 64 65 6e | 74 69 66 79 4f 77 6e 65 |."..Iden|tifyOwne|
|000002b0| 72 3a 0d 22 44 65 6e 69 | 73 20 50 65 6c 6c 69 22 |r:."Deni|s Pelli"|
|000002c0| 0d 0d 49 64 65 6e 74 69 | 66 79 4d 6f 64 65 6c 3a |..Identi|fyModel:|
|000002d0| 0d 22 50 6f 77 65 72 42 | 6f 6f 6b 20 31 37 30 22 |."PowerB|ook 170"|
|000002e0| 0d 0d 49 64 65 6e 74 69 | 66 79 4d 61 63 68 69 6e |..Identi|fyMachin|
|000002f0| 65 3a 0d 22 44 65 6e 69 | 73 20 50 65 6c 6c 69 27 |e:."Deni|s Pelli'|
|00000300| 73 20 50 6f 77 65 72 42 | 6f 6f 6b 20 31 37 30 2c |s PowerB|ook 170,|
|00000310| 20 36 38 30 33 30 2c 20 | 36 38 38 38 32 2c 20 53 | 68030, |68882, S|
|00000320| 79 73 74 65 6d 20 37 2e | 31 2e 30 2e 22 0d 22 4d |ystem 7.|1.0."."M|
|00000330| 61 6c 27 73 20 50 6f 77 | 65 72 4d 61 63 20 38 35 |al's Pow|erMac 85|
|00000340| 30 30 2f 31 32 30 2c 20 | 70 70 63 36 30 34 2c 20 |00/120, |ppc604, |
|00000350| 4c 32 20 63 61 63 68 65 | 2c 20 53 79 73 74 65 6d |L2 cache|, System|
|00000360| 20 37 2e 35 2e 32 2e 22 | 0d 0d 49 64 65 6e 74 69 | 7.5.2."|..Identi|
|00000370| 66 79 56 69 64 65 6f 28 | 64 65 76 69 63 65 29 3a |fyVideo(|device):|
|00000380| 0d 22 50 6f 77 65 72 42 | 6f 6f 6b 20 31 37 30 20 |."PowerB|ook 170 |
|00000390| 5c 22 4d 61 63 69 6e 74 | 6f 73 68 20 44 20 42 75 |\"Macint|osh D Bu|
|000003a0| 69 6c 74 2d 49 6e 20 56 | 69 64 65 6f 5c 22 20 28 |ilt-In V|ideo\" (|
|000003b0| 2e 44 69 73 70 6c 61 79 | 5f 56 69 64 65 6f 5f 41 |.Display|_Video_A|
|000003c0| 70 70 6c 65 5f 54 49 4d | 29 20 69 6e 20 73 6c 6f |pple_TIM|) in slo|
|000003d0| 74 20 30 22 0d 22 50 6f | 77 65 72 4d 61 63 20 38 |t 0"."Po|werMac 8|
|000003e0| 35 30 30 2f 31 32 30 20 | 5c 22 42 75 69 6c 74 2d |500/120 |\"Built-|
|000003f0| 69 6e 20 76 69 64 65 6f | 5c 22 20 28 2e 44 69 73 |in video|\" (.Dis|
|00000400| 70 6c 61 79 5f 56 69 64 | 65 6f 5f 41 70 70 6c 65 |play_Vid|eo_Apple|
|00000410| 5f 43 6f 6e 74 72 6f 6c | 29 22 0d 0d 54 68 65 20 |_Control|)"..The |
|00000420| 63 6f 6d 70 75 74 65 72 | 20 6d 6f 64 65 6c 20 61 |computer| model a|
|00000430| 70 70 65 61 72 73 20 6f | 6e 6c 79 20 69 66 20 74 |ppears o|nly if t|
|00000440| 68 65 20 73 6c 6f 74 3d | 3d 30 2c 20 77 68 69 63 |he slot=|=0, whic|
|00000450| 68 20 69 6e 64 69 63 61 | 74 65 73 20 62 75 69 6c |h indica|tes buil|
|00000460| 74 2d 69 6e 20 76 69 64 | 65 6f 2e 20 0d 51 75 6f |t-in vid|eo. .Quo|
|00000470| 74 65 73 20 65 6d 62 72 | 61 63 65 20 74 68 65 20 |tes embr|ace the |
|00000480| 63 61 72 64 20 6e 61 6d | 65 2c 20 61 6e 64 20 70 |card nam|e, and p|
|00000490| 61 72 65 6e 74 68 65 73 | 65 73 20 65 6d 62 72 61 |arenthes|es embra|
|000004a0| 63 65 20 74 68 65 20 64 | 72 69 76 65 72 20 6e 61 |ce the d|river na|
|000004b0| 6d 65 2e 0d 54 68 65 20 | 64 72 69 76 65 72 27 73 |me..The |driver's|
|000004c0| 20 76 65 72 73 69 6f 6e | 20 6e 75 6d 62 65 72 20 | version| number |
|000004d0| 61 70 70 65 61 72 73 20 | 6f 6e 6c 79 20 69 66 20 |appears |only if |
|000004e0| 69 74 27 73 20 6e 6f 6e | 2d 7a 65 72 6f 2e 0d 0d |it's non|-zero...|
|000004f0| 48 49 53 54 4f 52 59 3a | 0d 31 2f 32 39 2f 39 32 |HISTORY:|.1/29/92|
|00000500| 09 64 67 70 20 77 72 6f | 74 65 20 49 64 65 6e 74 |.dgp wro|te Ident|
|00000510| 69 66 79 43 6f 6d 70 69 | 6c 65 72 2e 0d 32 2f 32 |ifyCompi|ler..2/2|
|00000520| 35 2f 39 32 09 64 67 70 | 09 77 72 6f 74 65 20 49 |5/92.dgp|.wrote I|
|00000530| 64 65 6e 74 69 66 79 4d | 61 63 68 69 6e 65 2e 0d |dentifyM|achine..|
|00000540| 38 2f 32 36 2f 39 32 09 | 64 67 70 20 67 65 74 20 |8/26/92.|dgp get |
|00000550| 6f 77 6e 65 72 20 61 6e | 64 20 6d 6f 64 65 6c 20 |owner an|d model |
|00000560| 6e 61 6d 65 20 66 72 6f | 6d 20 74 68 65 20 53 79 |name fro|m the Sy|
|00000570| 73 74 65 6d 20 66 69 6c | 65 0d 32 2f 32 30 2f 39 |stem fil|e.2/20/9|
|00000580| 33 09 64 67 70 09 61 64 | 64 65 64 20 52 4f 4d 20 |3.dgp.ad|ded ROM |
|00000590| 76 65 72 73 69 6f 6e 0d | 32 2f 32 37 2f 39 33 09 |version.|2/27/93.|
|000005a0| 64 67 70 20 6d 65 72 67 | 65 64 20 49 64 65 6e 74 |dgp merg|ed Ident|
|000005b0| 69 66 79 43 6f 6d 70 69 | 6c 65 72 2e 63 20 61 6e |ifyCompi|ler.c an|
|000005c0| 64 20 49 64 65 6e 74 69 | 66 79 4d 61 63 68 69 6e |d Identi|fyMachin|
|000005d0| 65 2e 63 20 69 6e 74 6f | 20 74 68 65 20 6e 65 77 |e.c into| the new|
|000005e0| 20 49 64 65 6e 74 69 66 | 79 2e 63 2c 0d 09 09 09 | Identif|y.c,....|
|000005f0| 61 6e 64 20 61 64 64 65 | 64 20 49 64 65 6e 74 69 |and adde|d Identi|
|00000600| 66 79 56 69 64 65 6f 2e | 0d 34 2f 32 35 2f 39 33 |fyVideo.|.4/25/93|
|00000610| 09 64 67 70 09 49 64 65 | 6e 74 69 66 79 4d 61 63 |.dgp.Ide|ntifyMac|
|00000620| 68 69 6e 65 20 72 65 70 | 6f 72 74 73 20 32 34 2f |hine rep|orts 24/|
|00000630| 33 32 2d 62 69 74 20 61 | 64 64 72 65 73 73 69 6e |32-bit a|ddressin|
|00000640| 67 2e 0d 31 32 2f 31 34 | 2f 39 33 20 64 67 70 20 |g..12/14|/93 dgp |
|00000650| 49 66 20 54 48 49 4e 4b | 20 43 20 63 6f 6d 70 69 |If THINK| C compi|
|00000660| 6c 65 72 20 76 65 72 73 | 69 6f 6e 20 69 73 20 22 |ler vers|ion is "|
|00000670| 35 22 20 49 20 72 65 70 | 6f 72 74 20 22 35 20 6f |5" I rep|ort "5 o|
|00000680| 72 20 36 2e 30 22 20 73 | 69 6e 63 65 20 53 79 6d |r 6.0" s|ince Sym|
|00000690| 61 6e 74 65 63 0d 09 09 | 09 66 6f 72 67 6f 74 20 |antec...|.forgot |
|000006a0| 74 6f 20 69 6e 63 72 65 | 6d 65 6e 74 20 74 68 65 |to incre|ment the|
|000006b0| 20 76 65 72 73 69 6f 6e | 20 6e 75 6d 62 65 72 20 | version| number |
|000006c0| 77 68 65 6e 20 74 68 65 | 79 20 72 65 6c 65 61 73 |when the|y releas|
|000006d0| 65 64 20 36 2e 30 2e 20 | 54 68 65 79 0d 09 09 09 |ed 6.0. |They....|
|000006e0| 66 69 78 65 64 20 74 68 | 69 73 20 69 6e 20 76 65 |fixed th|is in ve|
|000006f0| 72 73 69 6f 6e 20 36 2e | 30 31 2e 0d 33 2f 32 2f |rsion 6.|01..3/2/|
|00000700| 39 34 09 64 67 70 09 45 | 78 74 72 61 63 74 65 64 |94.dgp.E|xtracted|
|00000710| 20 49 64 65 6e 74 69 66 | 79 4f 77 6e 65 72 20 66 | Identif|yOwner f|
|00000720| 72 6f 6d 20 77 69 74 68 | 69 6e 20 49 64 65 6e 74 |rom with|in Ident|
|00000730| 69 66 79 4d 61 63 68 69 | 6e 65 0d 37 2f 32 38 2f |ifyMachi|ne.7/28/|
|00000740| 39 34 20 64 67 70 20 61 | 64 64 65 64 20 73 75 70 |94 dgp a|dded sup|
|00000750| 70 6f 72 74 20 66 6f 72 | 20 4d 65 74 72 6f 77 65 |port for| Metrowe|
|00000760| 72 6b 73 20 43 6f 64 65 | 57 61 72 72 69 6f 72 20 |rks Code|Warrior |
|00000770| 43 20 63 6f 6d 70 69 6c | 65 72 20 61 6e 64 20 50 |C compil|er and P|
|00000780| 6f 77 65 72 50 43 2e 0d | 09 09 09 45 6c 69 6d 69 |owerPC..|...Elimi|
|00000790| 6e 61 74 65 64 20 75 73 | 65 20 6f 66 20 22 23 73 |nated us|e of "#s|
|000007a0| 22 20 70 72 69 6e 74 66 | 20 66 6f 72 6d 61 74 2c |" printf| format,|
|000007b0| 20 73 69 6e 63 65 20 69 | 74 27 73 20 6e 6f 74 20 | since i|t's not |
|000007c0| 73 75 70 70 6f 72 74 65 | 64 20 62 79 0d 09 09 09 |supporte|d by....|
|000007d0| 4d 65 74 72 6f 77 65 72 | 6b 73 20 43 6f 64 65 57 |Metrower|ks CodeW|
|000007e0| 61 72 72 69 6f 72 20 43 | 2e 0d 39 2f 35 2f 39 34 |arrior C|..9/5/94|
|000007f0| 20 64 67 70 20 09 72 65 | 6d 6f 76 65 64 20 61 73 | dgp .re|moved as|
|00000800| 73 75 6d 70 74 69 6f 6e | 20 69 6e 20 70 72 69 6e |sumption| in prin|
|00000810| 74 66 27 73 20 74 68 61 | 74 20 69 6e 74 3d 3d 73 |tf's tha|t int==s|
|00000820| 68 6f 72 74 2e 0d 39 2f | 36 2f 39 34 09 64 67 70 |hort..9/|6/94.dgp|
|00000830| 09 45 6e 68 61 6e 63 65 | 64 20 49 64 65 6e 74 69 |.Enhance|d Identi|
|00000840| 66 79 43 6f 6d 70 69 6c | 65 72 20 74 6f 20 73 70 |fyCompil|er to sp|
|00000850| 65 63 69 66 79 20 74 68 | 65 20 73 69 7a 65 20 6f |ecify th|e size o|
|00000860| 66 20 69 6e 74 2e 0d 39 | 2f 36 2f 39 34 09 64 67 |f int..9|/6/94.dg|
|00000870| 70 09 44 69 73 61 62 6c | 65 20 63 61 63 68 65 20 |p.Disabl|e cache |
|00000880| 63 68 65 63 6b 73 20 6f | 6e 20 50 6f 77 65 72 50 |checks o|n PowerP|
|00000890| 43 2c 20 62 65 63 61 75 | 73 65 20 74 68 6f 73 65 |C, becau|se those|
|000008a0| 20 74 72 61 70 73 20 61 | 72 65 20 75 6e 64 65 66 | traps a|re undef|
|000008b0| 69 6e 65 64 2e 0d 31 30 | 2f 35 2f 39 34 20 64 67 |ined..10|/5/94 dg|
|000008c0| 70 20 52 65 6d 6f 76 65 | 64 20 61 6c 6c 20 66 6c |p Remove|d all fl|
|000008d0| 6f 61 74 69 6e 67 20 70 | 6f 69 6e 74 20 63 6f 64 |oating p|oint cod|
|000008e0| 65 20 66 72 6f 6d 20 49 | 64 65 6e 74 69 66 79 43 |e from I|dentifyC|
|000008f0| 6f 6d 70 69 6c 65 72 28 | 29 2e 0d 31 31 2f 35 2f |ompiler(|)..11/5/|
|00000900| 39 34 20 64 67 70 20 53 | 75 70 70 72 65 73 73 65 |94 dgp S|uppresse|
|00000910| 64 20 52 4f 4d 20 69 6e | 66 6f 20 69 6e 20 49 64 |d ROM in|fo in Id|
|00000920| 65 6e 74 69 66 79 2e 0d | 31 31 2f 39 2f 39 34 20 |entify..|11/9/94 |
|00000930| 64 67 70 20 61 64 64 65 | 64 20 49 64 65 6e 74 69 |dgp adde|d Identi|
|00000940| 66 79 41 70 70 6c 69 63 | 61 74 69 6f 6e 28 29 2e |fyApplic|ation().|
|00000950| 0d 31 2f 31 35 2f 39 35 | 20 64 67 70 20 61 64 64 |.1/15/95| dgp add|
|00000960| 65 64 20 74 65 73 74 20 | 66 6f 72 20 76 65 72 73 |ed test |for vers|
|00000970| 69 6f 6e 20 35 20 6f 66 | 20 43 6f 64 65 57 61 72 |ion 5 of| CodeWar|
|00000980| 72 69 6f 72 0d 35 2f 32 | 34 2f 39 35 20 64 67 70 |rior.5/2|4/95 dgp|
|00000990| 20 61 64 64 65 64 20 74 | 65 73 74 20 66 6f 72 20 | added t|est for |
|000009a0| 76 65 72 73 69 6f 6e 20 | 36 20 6f 66 20 43 6f 64 |version |6 of Cod|
|000009b0| 65 57 61 72 72 69 6f 72 | 0d 36 2f 31 34 2f 39 35 |eWarrior|.6/14/95|
|000009c0| 20 64 67 70 20 61 64 64 | 65 64 20 47 65 74 43 50 | dgp add|ed GetCP|
|000009d0| 55 53 70 65 65 64 28 29 | 20 74 6f 20 49 64 65 6e |USpeed()| to Iden|
|000009e0| 74 69 66 79 4d 61 63 68 | 69 6e 65 28 29 20 61 6e |tifyMach|ine() an|
|000009f0| 64 20 61 62 62 72 65 76 | 69 61 74 65 64 20 74 68 |d abbrev|iated th|
|00000a00| 65 20 72 65 70 6f 72 74 | 2c 20 0d 09 09 6f 6d 69 |e report|, ...omi|
|00000a10| 74 74 69 6e 67 20 61 20 | 6c 6f 74 20 6f 66 20 62 |tting a |lot of b|
|00000a20| 6f 72 69 6e 67 20 73 74 | 75 66 66 2e 0d 36 2f 32 |oring st|uff..6/2|
|00000a30| 37 2f 39 35 20 64 67 70 | 20 61 64 6a 75 73 74 65 |7/95 dgp| adjuste|
|00000a40| 64 20 55 4e 49 56 45 52 | 53 41 4c 5f 48 45 41 44 |d UNIVER|SAL_HEAD|
|00000a50| 45 52 53 20 63 6f 6e 64 | 69 74 69 6f 6e 61 6c 20 |ERS cond|itional |
|00000a60| 66 6f 72 20 47 4d 54 20 | 73 74 72 75 63 74 2c 20 |for GMT |struct, |
|00000a70| 74 6f 20 75 73 65 20 6f | 6c 64 0d 09 09 73 74 72 |to use o|ld...str|
|00000a80| 75 63 74 75 72 65 20 66 | 6f 72 20 76 65 72 73 69 |ucture f|or versi|
|00000a90| 6f 6e 20 31 20 75 6e 69 | 76 65 72 73 61 6c 20 68 |on 1 uni|versal h|
|00000aa0| 65 61 64 65 72 73 2e 0d | 37 2f 32 30 2f 39 35 09 |eaders..|7/20/95.|
|00000ab0| 64 67 70 20 6f 6e 63 65 | 20 61 67 61 69 6e 2c 20 |dgp once| again, |
|00000ac0| 6d 61 64 65 20 63 6f 6d | 70 61 74 69 62 6c 65 20 |made com|patible |
|00000ad0| 77 69 74 68 20 70 72 65 | 2d 75 6e 69 76 65 72 73 |with pre|-univers|
|00000ae0| 61 6c 20 68 65 61 64 65 | 72 73 0d 38 2f 31 30 2f |al heade|rs.8/10/|
|00000af0| 39 35 20 64 67 70 20 75 | 70 64 61 74 65 64 20 49 |95 dgp u|pdated I|
|00000b00| 64 65 6e 74 69 66 79 43 | 6f 6d 70 69 6c 65 72 28 |dentifyC|ompiler(|
|00000b10| 29 20 66 6f 72 20 53 79 | 6d 61 6e 74 65 63 20 43 |) for Sy|mantec C|
|00000b20| 2e 0d 39 2f 32 36 2f 39 | 35 20 64 67 70 20 75 70 |..9/26/9|5 dgp up|
|00000b30| 64 61 74 65 64 20 49 64 | 65 6e 74 69 66 79 43 6f |dated Id|entifyCo|
|00000b40| 6d 70 69 6c 65 72 28 29 | 20 66 6f 72 20 43 57 37 |mpiler()| for CW7|
|00000b50| 2e 0d 31 30 2f 35 2f 39 | 35 20 64 67 70 20 6d 69 |..10/5/9|5 dgp mi|
|00000b60| 6e 6f 72 20 65 64 69 74 | 69 6e 67 20 6f 66 20 49 |nor edit|ing of I|
|00000b70| 64 65 6e 74 69 66 79 56 | 69 64 65 6f 28 29 2e 0d |dentifyV|ideo()..|
|00000b80| 31 30 2f 31 34 2f 39 35 | 20 64 67 70 20 61 64 64 |10/14/95| dgp add|
|00000b90| 65 64 20 73 75 70 70 6f | 72 74 20 66 6f 72 20 50 |ed suppo|rt for P|
|00000ba0| 43 49 20 4d 61 63 73 2c | 20 75 73 69 6e 67 20 74 |CI Macs,| using t|
|00000bb0| 68 65 20 4e 61 6d 65 52 | 65 67 69 73 74 72 79 2e |he NameR|egistry.|
|00000bc0| 20 53 69 6e 63 65 20 53 | 79 73 74 65 6d 20 37 2e | Since S|ystem 7.|
|00000bd0| 35 20 66 61 69 6c 73 20 | 74 6f 0d 09 09 61 64 65 |5 fails |to...ade|
|00000be0| 71 75 61 74 65 6c 79 20 | 6e 61 6d 65 20 6d 6f 73 |quately |name mos|
|00000bf0| 74 20 4d 61 63 73 2c 20 | 49 27 76 65 20 72 65 76 |t Macs, |I've rev|
|00000c00| 65 72 74 65 64 20 74 6f | 20 75 73 69 6e 67 20 61 |erted to| using a|
|00000c10| 20 62 75 69 6c 74 2d 69 | 6e 20 74 61 62 6c 65 20 | built-i|n table |
|00000c20| 6f 66 20 6e 61 6d 65 73 | 20 69 6e 20 0d 09 09 49 |of names| in ...I|
|00000c30| 64 65 6e 74 69 66 79 4d | 6f 64 65 6c 2e 20 49 64 |dentifyM|odel. Id|
|00000c40| 65 6e 74 69 66 79 4d 61 | 63 68 69 6e 65 20 6e 6f |entifyMa|chine no|
|00000c50| 77 20 61 6c 73 6f 20 70 | 72 69 6e 74 73 20 74 68 |w also p|rints th|
|00000c60| 65 20 47 65 73 74 61 6c | 74 20 6d 61 63 68 69 6e |e Gestal|t machin|
|00000c70| 65 20 6e 75 6d 62 65 72 | 20 74 6f 20 0d 09 09 72 |e number| to ...r|
|00000c80| 65 73 6f 6c 76 65 20 61 | 6e 79 20 72 65 73 69 64 |esolve a|ny resid|
|00000c90| 75 61 6c 20 61 6d 62 69 | 67 75 69 74 69 65 73 2e |ual ambi|guities.|
|00000ca0| 0d 09 09 49 64 65 6e 74 | 69 66 79 4d 6f 64 65 6c |...Ident|ifyModel|
|00000cb0| 2c 20 49 64 65 6e 74 69 | 66 79 56 69 64 65 6f 2c |, Identi|fyVideo,|
|00000cc0| 20 61 6e 64 20 49 64 65 | 6e 74 69 66 79 4d 61 63 | and Ide|ntifyMac|
|00000cd0| 68 69 6e 65 20 6e 6f 77 | 20 67 69 76 65 20 63 6f |hine now| give co|
|00000ce0| 6d 70 6c 65 74 65 20 69 | 6e 66 6f 72 6d 61 74 69 |mplete i|nformati|
|00000cf0| 6f 6e 20 6f 6e 20 61 6c | 6c 0d 09 09 4d 61 63 73 |on on al|l...Macs|
|00000d00| 2c 20 70 72 6f 76 69 64 | 65 64 20 74 68 61 74 20 |, provid|ed that |
|00000d10| 77 68 65 6e 20 72 75 6e | 6e 69 6e 67 20 6f 6e 20 |when run|ning on |
|00000d20| 50 43 49 20 4d 61 63 73 | 20 74 68 65 79 20 61 72 |PCI Macs| they ar|
|00000d30| 65 20 63 6f 6d 70 69 6c | 65 64 20 61 73 20 50 50 |e compil|ed as PP|
|00000d40| 43 20 63 6f 64 65 2e 20 | 54 68 69 73 20 0d 09 09 |C code. |This ...|
|00000d50| 6c 69 6d 69 74 61 74 69 | 6f 6e 20 69 73 20 64 75 |limitati|on is du|
|00000d60| 65 20 74 6f 20 74 68 65 | 20 28 65 61 73 79 29 20 |e to the| (easy) |
|00000d70| 77 61 79 20 74 68 61 74 | 20 49 20 69 6d 70 6c 65 |way that| I imple|
|00000d80| 6d 65 6e 74 65 64 20 74 | 68 65 20 63 61 6c 6c 73 |mented t|he calls|
|00000d90| 20 74 6f 20 41 70 70 6c | 65 27 73 20 0d 09 09 4e | to Appl|e's ...N|
|00000da0| 61 6d 65 52 65 67 69 73 | 74 72 79 4c 69 62 2e 20 |ameRegis|tryLib. |
|00000db0| 54 68 65 20 4e 61 6d 65 | 52 65 67 69 73 74 72 79 |The Name|Registry|
|00000dc0| 2d 72 65 6c 61 74 65 64 | 20 72 6f 75 74 69 6e 65 |-related| routine|
|00000dd0| 73 20 61 70 70 65 61 72 | 20 69 6e 20 61 20 6c 6f |s appear| in a lo|
|00000de0| 6e 67 20 73 65 6c 66 2d | 63 6f 6e 74 61 69 6e 65 |ng self-|containe|
|00000df0| 64 0d 09 09 73 65 63 74 | 69 6f 6e 20 61 74 20 74 |d...sect|ion at t|
|00000e00| 68 65 20 65 6e 64 20 6f | 66 20 74 68 69 73 20 66 |he end o|f this f|
|00000e10| 69 6c 65 2e 0d 31 30 2f | 32 34 2f 39 35 20 64 67 |ile..10/|24/95 dg|
|00000e20| 70 20 61 64 64 65 64 20 | 70 63 6c 6b 20 61 6e 64 |p added |pclk and|
|00000e30| 20 62 63 6c 6b 20 47 65 | 73 74 61 6c 74 20 63 61 | bclk Ge|stalt ca|
|00000e40| 6c 6c 73 2c 20 62 61 73 | 65 64 20 6f 6e 20 67 65 |lls, bas|ed on ge|
|00000e50| 73 74 61 6c 74 2d 73 65 | 6c 65 63 74 6f 72 73 2d |stalt-se|lectors-|
|00000e60| 33 31 2e 0d 31 32 2f 34 | 2f 39 35 20 64 67 70 20 |31..12/4|/95 dgp |
|00000e70| 41 73 20 72 65 71 75 65 | 73 74 65 64 20 62 79 20 |As reque|sted by |
|00000e80| 44 61 76 69 64 20 42 72 | 61 69 6e 61 72 64 2c 20 |David Br|ainard, |
|00000e90| 63 68 61 6e 67 65 64 20 | 22 63 68 61 72 20 2a 6d |changed |"char *m|
|00000ea0| 61 63 68 69 6e 65 4e 61 | 6d 65 5b 5d 22 20 74 6f |achineNa|me[]" to|
|00000eb0| 20 0d 09 09 22 63 68 61 | 72 20 6d 61 63 68 69 6e | ..."cha|r machin|
|00000ec0| 65 4e 61 6d 65 5b 5d 5b | 33 32 5d 22 20 73 6f 20 |eName[][|32]" so |
|00000ed0| 74 68 61 74 20 69 74 20 | 77 6f 75 6c 64 20 63 6f |that it |would co|
|00000ee0| 6d 70 69 6c 65 20 61 73 | 20 61 20 63 6f 64 65 20 |mpile as| a code |
|00000ef0| 72 65 73 6f 75 72 63 65 | 2e 0d 33 2f 37 2f 39 36 |resource|..3/7/96|
|00000f00| 20 64 67 70 20 72 65 70 | 6f 72 74 20 73 79 73 74 | dgp rep|ort syst|
|00000f10| 65 6d 20 76 65 72 73 69 | 6f 6e 20 6e 75 6d 62 65 |em versi|on numbe|
|00000f20| 72 20 69 6e 20 73 74 61 | 6e 64 61 72 64 20 20 66 |r in sta|ndard f|
|00000f30| 6f 72 6d 61 74 2c 20 65 | 2e 67 2e 20 22 37 2e 35 |ormat, e|.g. "7.5|
|00000f40| 2e 33 22 2e 0d 33 2f 31 | 38 2f 39 36 20 64 67 70 |.3"..3/1|8/96 dgp|
|00000f50| 20 49 64 65 6e 74 69 66 | 79 4d 6f 64 65 6c 28 29 | Identif|yModel()|
|00000f60| 20 6e 6f 77 20 61 6c 77 | 61 79 73 20 72 65 70 6f | now alw|ays repo|
|00000f70| 72 74 73 20 61 63 74 75 | 61 6c 20 63 6c 6f 63 6b |rts actu|al clock|
|00000f80| 20 73 70 65 65 64 20 69 | 66 20 6b 6e 6f 77 6e 2e | speed i|f known.|
|00000f90| 0d 35 2f 31 34 2f 39 36 | 20 64 67 70 20 41 64 64 |.5/14/96| dgp Add|
|00000fa0| 65 64 20 6d 61 63 68 20 | 63 6f 64 65 73 20 66 6f |ed mach |codes fo|
|00000fb0| 72 20 6e 65 77 20 4d 61 | 63 73 20 66 72 6f 6d 20 |r new Ma|cs from |
|00000fc0| 47 65 73 74 61 6c 74 53 | 65 6c 65 63 74 6f 72 4c |GestaltS|electorL|
|00000fd0| 69 73 74 20 33 2e 33 2e | 35 2e 0d 35 2f 32 38 2f |ist 3.3.|5..5/28/|
|00000fe0| 39 36 20 64 67 70 20 41 | 64 64 65 64 20 63 6f 6e |96 dgp A|dded con|
|00000ff0| 64 69 74 69 6f 6e 61 6c | 20 55 4e 49 56 45 52 53 |ditional| UNIVERS|
|00001000| 41 4c 5f 49 4e 54 45 52 | 46 41 43 45 53 5f 56 45 |AL_INTER|FACES_VE|
|00001010| 52 53 49 4f 4e 3e 3d 30 | 78 30 32 31 32 0d 2a 2f |RSION>=0|x0212.*/|
|00001020| 0d 23 69 6e 63 6c 75 64 | 65 20 22 56 69 64 65 6f |.#includ|e "Video|
|00001030| 54 6f 6f 6c 62 6f 78 2e | 68 22 0d 23 69 66 6e 64 |Toolbox.|h".#ifnd|
|00001040| 65 66 20 5f 5f 54 52 41 | 50 53 5f 5f 0d 09 23 69 |ef __TRA|PS__..#i|
|00001050| 6e 63 6c 75 64 65 20 3c | 54 72 61 70 73 2e 68 3e |nclude <|Traps.h>|
|00001060| 09 09 2f 2f 20 5f 48 57 | 50 72 69 76 0d 23 65 6e |..// _HW|Priv.#en|
|00001070| 64 69 66 0d 23 69 6e 63 | 6c 75 64 65 20 3c 50 6f |dif.#inc|lude <Po|
|00001080| 77 65 72 2e 68 3e 0d 23 | 69 66 20 55 4e 49 56 45 |wer.h>.#|if UNIVE|
|00001090| 52 53 41 4c 5f 48 45 41 | 44 45 52 53 0d 09 23 69 |RSAL_HEA|DERS..#i|
|000010a0| 6e 63 6c 75 64 65 20 3c | 4c 6f 77 4d 65 6d 2e 68 |nclude <|LowMem.h|
|000010b0| 3e 0d 23 65 6c 73 65 0d | 09 23 64 65 66 69 6e 65 |>.#else.|.#define|
|000010c0| 20 4c 4d 47 65 74 43 75 | 72 41 70 4e 61 6d 65 28 | LMGetCu|rApName(|
|000010d0| 29 20 28 28 53 74 72 69 | 6e 67 50 74 72 29 20 30 |) ((Stri|ngPtr) 0|
|000010e0| 78 30 39 31 30 29 0d 09 | 23 64 65 66 69 6e 65 20 |x0910)..|#define |
|000010f0| 67 65 73 74 61 6c 74 4e | 61 74 69 76 65 43 50 55 |gestaltN|ativeCPU|
|00001100| 74 79 70 65 20 27 63 70 | 75 74 27 0d 09 65 6e 75 |type 'cp|ut'..enu|
|00001110| 6d 7b 0d 09 09 67 65 73 | 74 61 6c 74 43 50 55 36 |m{...ges|taltCPU6|
|00001120| 30 31 09 09 09 09 3d 20 | 30 78 31 30 31 2c 0d 09 |01....= |0x101,..|
|00001130| 09 67 65 73 74 61 6c 74 | 43 50 55 36 30 33 09 09 |.gestalt|CPU603..|
|00001140| 09 09 3d 20 30 78 31 30 | 33 2c 0d 09 09 67 65 73 |..= 0x10|3,...ges|
|00001150| 74 61 6c 74 43 50 55 36 | 30 34 09 09 09 09 3d 20 |taltCPU6|04....= |
|00001160| 30 78 31 30 34 0d 09 7d | 3b 0d 09 65 6e 75 6d 20 |0x104..}|;..enum |
|00001170| 7b 0d 09 09 67 65 73 74 | 61 6c 74 53 79 73 41 72 |{...gest|altSysAr|
|00001180| 63 68 69 74 65 63 74 75 | 72 65 09 09 3d 20 27 73 |chitectu|re..= 's|
|00001190| 79 73 61 27 2c 09 2f 2a | 20 4e 61 74 69 76 65 20 |ysa',./*| Native |
|000011a0| 53 79 73 74 65 6d 20 41 | 72 63 68 69 74 65 63 74 |System A|rchitect|
|000011b0| 75 72 65 20 2a 2f 0d 09 | 09 67 65 73 74 61 6c 74 |ure */..|.gestalt|
|000011c0| 36 38 6b 09 09 09 09 09 | 3d 20 31 2c 09 09 2f 2a |68k.....|= 1,../*|
|000011d0| 20 4d 6f 74 6f 72 6f 6c | 61 20 4d 43 36 38 6b 20 | Motorol|a MC68k |
|000011e0| 61 72 63 68 69 74 65 63 | 74 75 72 65 20 2a 2f 0d |architec|ture */.|
|000011f0| 09 09 67 65 73 74 61 6c | 74 50 6f 77 65 72 50 43 |..gestal|tPowerPC|
|00001200| 09 09 09 09 3d 20 32 09 | 09 09 2f 2a 20 49 42 4d |....= 2.|../* IBM|
|00001210| 20 50 6f 77 65 72 50 43 | 20 61 72 63 68 69 74 65 | PowerPC| archite|
|00001220| 63 74 75 72 65 20 2a 2f | 0d 09 7d 3b 0d 09 23 70 |cture */|..};..#p|
|00001230| 72 61 67 6d 61 20 70 61 | 72 61 6d 65 74 65 72 20 |ragma pa|rameter |
|00001240| 5f 5f 44 30 20 4d 61 78 | 69 6d 75 6d 50 72 6f 63 |__D0 Max|imumProc|
|00001250| 65 73 73 6f 72 53 70 65 | 65 64 0d 09 65 78 74 65 |essorSpe|ed..exte|
|00001260| 72 6e 20 70 61 73 63 61 | 6c 20 73 68 6f 72 74 20 |rn pasca|l short |
|00001270| 4d 61 78 69 6d 75 6d 50 | 72 6f 63 65 73 73 6f 72 |MaximumP|rocessor|
|00001280| 53 70 65 65 64 28 76 6f | 69 64 29 3d 7b 30 78 37 |Speed(vo|id)={0x7|
|00001290| 30 31 30 2c 20 30 78 41 | 30 39 45 7d 3b 0d 23 65 |010, 0xA|09E};.#e|
|000012a0| 6e 64 69 66 0d 76 6f 69 | 64 20 47 65 74 43 50 55 |ndif.voi|d GetCPU|
|000012b0| 50 72 6f 70 65 72 74 69 | 65 73 28 63 68 61 72 20 |Properti|es(char |
|000012c0| 2a 63 70 75 4e 61 6d 65 | 2c 6c 6f 6e 67 20 2a 63 |*cpuName|,long *c|
|000012d0| 70 75 48 7a 2c 42 6f 6f | 6c 65 61 6e 20 2a 68 61 |puHz,Boo|lean *ha|
|000012e0| 73 4c 32 43 61 63 68 65 | 29 3b 0d 76 6f 69 64 20 |sL2Cache|);.void |
|000012f0| 47 65 74 56 69 64 65 6f | 50 72 6f 70 65 72 74 69 |GetVideo|Properti|
|00001300| 65 73 28 47 44 48 61 6e | 64 6c 65 20 64 65 76 69 |es(GDHan|dle devi|
|00001310| 63 65 2c 63 68 61 72 20 | 2a 73 6c 6f 74 4e 61 6d |ce,char |*slotNam|
|00001320| 65 2c 63 68 61 72 20 2a | 63 61 72 64 4e 61 6d 65 |e,char *|cardName|
|00001330| 2c 63 68 61 72 20 2a 6d | 6f 64 65 6c 4e 61 6d 65 |,char *m|odelName|
|00001340| 29 3b 0d 63 68 61 72 20 | 2a 47 65 74 44 65 76 69 |);.char |*GetDevi|
|00001350| 63 65 53 6c 6f 74 4e 61 | 6d 65 28 47 44 48 61 6e |ceSlotNa|me(GDHan|
|00001360| 64 6c 65 20 64 65 76 69 | 63 65 29 3b 0d 23 64 65 |dle devi|ce);.#de|
|00001370| 66 69 6e 65 20 67 65 73 | 74 61 6c 74 42 75 73 43 |fine ges|taltBusC|
|00001380| 6c 6f 63 6b 53 70 65 65 | 64 20 27 62 63 6c 6b 27 |lockSpee|d 'bclk'|
|00001390| 09 2f 2a 20 67 65 73 74 | 61 6c 74 2d 73 65 6c 65 |./* gest|alt-sele|
|000013a0| 63 74 6f 72 73 2d 33 31 | 2e 65 74 78 20 2a 2f 0d |ctors-31|.etx */.|
|000013b0| 23 64 65 66 69 6e 65 20 | 67 65 73 74 61 6c 74 43 |#define |gestaltC|
|000013c0| 50 55 43 6c 6f 63 6b 53 | 70 65 65 64 20 27 70 63 |PUClockS|peed 'pc|
|000013d0| 6c 6b 27 09 2f 2a 20 67 | 65 73 74 61 6c 74 2d 73 |lk'./* g|estalt-s|
|000013e0| 65 6c 65 63 74 6f 72 73 | 2d 33 31 2e 65 74 78 20 |electors|-31.etx |
|000013f0| 2a 2f 0d 0d 2f 2f 20 53 | 79 73 74 65 6d 20 37 2e |*/..// S|ystem 7.|
|00001400| 35 20 74 6f 6f 6b 20 61 | 20 73 74 65 70 20 62 61 |5 took a| step ba|
|00001410| 63 6b 77 61 72 64 73 20 | 61 6e 64 20 6c 61 63 6b |ckwards |and lack|
|00001420| 73 0d 2f 2f 20 73 70 65 | 63 69 66 69 63 20 6e 61 |s.// spe|cific na|
|00001430| 6d 65 73 20 66 6f 72 20 | 6d 61 6e 79 20 6d 61 63 |mes for |many mac|
|00001440| 68 69 6e 65 73 2c 20 73 | 6f 20 49 20 75 73 65 64 |hines, s|o I used|
|00001450| 20 52 65 6e 65 20 52 6f | 73 27 73 20 47 65 73 74 | Rene Ro|s's Gest|
|00001460| 61 6c 74 20 53 65 6c 65 | 63 74 6f 72 73 20 4c 69 |alt Sele|ctors Li|
|00001470| 73 74 0d 2f 2f 20 74 6f | 20 6c 69 73 74 20 61 6c |st.// to| list al|
|00001480| 6c 20 63 75 72 72 65 6e | 74 6c 79 20 61 76 61 69 |l curren|tly avai|
|00001490| 6c 61 62 6c 65 20 4d 61 | 63 73 2e 0d 63 68 61 72 |lable Ma|cs..char|
|000014a0| 20 6d 61 63 68 69 6e 65 | 4e 61 6d 65 5b 5d 5b 33 | machine|Name[][3|
|000014b0| 36 5d 3d 7b 0d 09 22 55 | 6e 6b 6e 6f 77 6e 20 4d |6]={.."U|nknown M|
|000014c0| 61 63 22 0d 09 2c 22 4d | 61 63 20 31 32 38 4b 22 |ac"..,"M|ac 128K"|
|000014d0| 0d 09 2c 22 4d 61 63 20 | 58 4c 22 0d 09 2c 22 4d |..,"Mac |XL"..,"M|
|000014e0| 61 63 20 35 31 32 4b 45 | 22 0d 09 2c 22 4d 61 63 |ac 512KE|"..,"Mac|
|000014f0| 20 50 6c 75 73 22 0d 09 | 2c 22 4d 61 63 20 53 45 | Plus"..|,"Mac SE|
|00001500| 22 0d 09 2c 22 4d 61 63 | 20 49 49 22 0d 09 2c 22 |"..,"Mac| II"..,"|
|00001510| 4d 61 63 20 49 49 78 22 | 0d 09 2c 22 4d 61 63 20 |Mac IIx"|..,"Mac |
|00001520| 49 49 63 78 22 0d 09 2c | 22 4d 61 63 20 53 45 2d |IIcx"..,|"Mac SE-|
|00001530| 33 30 22 0d 09 2c 22 4d | 61 63 20 50 6f 72 74 61 |30"..,"M|ac Porta|
|00001540| 62 6c 65 22 0d 09 2c 22 | 4d 61 63 20 49 49 63 69 |ble"..,"|Mac IIci|
|00001550| 22 0d 09 2c 22 55 6e 6b | 6e 6f 77 6e 20 4d 61 63 |"..,"Unk|nown Mac|
|00001560| 22 09 2f 2a 20 31 32 20 | 2a 2f 0d 09 2c 22 4d 61 |"./* 12 |*/..,"Ma|
|00001570| 63 20 49 49 66 78 22 0d | 09 2c 22 55 6e 6b 6e 6f |c IIfx".|.,"Unkno|
|00001580| 77 6e 20 4d 61 63 22 0d | 09 2c 22 55 6e 6b 6e 6f |wn Mac".|.,"Unkno|
|00001590| 77 6e 20 4d 61 63 22 0d | 09 2c 22 55 6e 6b 6e 6f |wn Mac".|.,"Unkno|
|000015a0| 77 6e 20 4d 61 63 22 0d | 09 2c 22 4d 61 63 20 43 |wn Mac".|.,"Mac C|
|000015b0| 6c 61 73 73 69 63 22 2c | 22 4d 61 63 20 49 49 73 |lassic",|"Mac IIs|
|000015c0| 69 22 2c 22 4d 61 63 20 | 4c 43 22 2c 22 4d 61 63 |i","Mac |LC","Mac|
|000015d0| 20 51 75 61 64 72 61 20 | 39 30 30 22 2c 22 50 6f | Quadra |900","Po|
|000015e0| 77 65 72 42 6f 6f 6b 20 | 31 37 30 22 0d 09 2c 22 |werBook |170"..,"|
|000015f0| 4d 61 63 20 51 75 61 64 | 72 61 20 37 30 30 22 2c |Mac Quad|ra 700",|
|00001600| 22 4d 61 63 20 43 6c 61 | 73 73 69 63 20 49 49 22 |"Mac Cla|ssic II"|
|00001610| 2c 22 50 6f 77 65 72 42 | 6f 6f 6b 20 31 30 30 22 |,"PowerB|ook 100"|
|00001620| 2c 22 50 6f 77 65 72 42 | 6f 6f 6b 20 31 34 30 22 |,"PowerB|ook 140"|
|00001630| 2c 22 51 75 61 64 72 61 | 20 39 35 30 22 0d 09 2c |,"Quadra| 950"..,|
|00001640| 22 4d 61 63 20 4c 43 20 | 49 49 49 22 0d 09 2c 22 |"Mac LC |III"..,"|
|00001650| 55 6e 6b 6e 6f 77 6e 20 | 4d 61 63 22 0d 09 2c 22 |Unknown |Mac"..,"|
|00001660| 4d 61 63 20 50 6f 77 65 | 72 42 6f 6f 6b 20 32 31 |Mac Powe|rBook 21|
|00001670| 30 22 0d 09 2c 22 4d 61 | 63 20 43 65 6e 74 72 69 |0"..,"Ma|c Centri|
|00001680| 73 20 36 35 30 22 0d 09 | 2c 22 55 6e 6b 6e 6f 77 |s 650"..|,"Unknow|
|00001690| 6e 20 4d 61 63 22 0d 09 | 2c 22 4d 61 63 20 50 6f |n Mac"..|,"Mac Po|
|000016a0| 77 65 72 42 6f 6f 6b 20 | 32 33 30 22 0d 09 2c 22 |werBook |230"..,"|
|000016b0| 4d 61 63 20 50 6f 77 65 | 72 42 6f 6f 6b 20 31 38 |Mac Powe|rBook 18|
|000016c0| 30 22 0d 09 2c 22 4d 61 | 63 20 50 6f 77 65 72 42 |0"..,"Ma|c PowerB|
|000016d0| 6f 6f 6b 20 31 36 30 22 | 0d 09 2c 22 4d 61 63 20 |ook 160"|..,"Mac |
|000016e0| 51 75 61 64 72 61 20 38 | 30 30 22 09 2f 2a 20 33 |Quadra 8|00"./* 3|
|000016f0| 35 20 2a 2f 0d 09 2c 22 | 4d 61 63 20 51 75 61 64 |5 */..,"|Mac Quad|
|00001700| 72 61 20 36 35 30 22 0d | 09 2c 22 4d 61 63 20 4c |ra 650".|.,"Mac L|
|00001710| 43 20 49 49 22 0d 09 2c | 22 4d 61 63 20 50 6f 77 |C II"..,|"Mac Pow|
|00001720| 65 72 42 6f 6f 6b 20 44 | 75 6f 20 32 35 30 22 0d |erBook D|uo 250".|
|00001730| 09 2c 22 50 6f 77 65 72 | 4d 61 63 20 39 31 35 30 |.,"Power|Mac 9150|
|00001740| 22 0d 09 2c 22 50 6f 77 | 65 72 4d 61 63 20 38 31 |"..,"Pow|erMac 81|
|00001750| 30 30 2f 31 31 30 22 09 | 2f 2a 20 34 30 20 2a 2f |00/110".|/* 40 */|
|00001760| 0d 09 2c 22 50 6f 77 65 | 72 4d 61 63 20 35 32 30 |..,"Powe|rMac 520|
|00001770| 30 22 09 2f 2a 20 34 31 | 20 2a 2f 0d 09 2c 22 55 |0"./* 41| */..,"U|
|00001780| 6e 6b 6e 6f 77 6e 20 4d | 61 63 22 0d 09 2c 22 55 |nknown M|ac"..,"U|
|00001790| 6e 6b 6e 6f 77 6e 20 4d | 61 63 22 0d 09 2c 22 4d |nknown M|ac"..,"M|
|000017a0| 61 63 20 49 49 76 69 22 | 0d 09 2c 22 4d 61 63 20 |ac IIvi"|..,"Mac |
|000017b0| 50 65 72 66 6f 72 6d 61 | 20 36 30 30 22 0d 09 2c |Performa| 600"..,|
|000017c0| 22 55 6e 6b 6e 6f 77 6e | 20 4d 61 63 22 0d 09 2c |"Unknown| Mac"..,|
|000017d0| 22 50 6f 77 65 72 4d 61 | 63 20 37 31 30 30 2f 38 |"PowerMa|c 7100/8|
|000017e0| 30 22 09 2f 2a 20 34 37 | 20 2a 2f 0d 09 2c 22 4d |0"./* 47| */..,"M|
|000017f0| 61 63 20 49 49 76 78 22 | 0d 09 2c 22 4d 61 63 20 |ac IIvx"|..,"Mac |
|00001800| 43 6f 6c 6f 72 20 43 6c | 61 73 73 69 63 22 0d 09 |Color Cl|assic"..|
|00001810| 2c 22 4d 61 63 20 50 6f | 77 65 72 42 6f 6f 6b 20 |,"Mac Po|werBook |
|00001820| 31 36 35 63 22 0d 09 2c | 22 55 6e 6b 6e 6f 77 6e |165c"..,|"Unknown|
|00001830| 20 4d 61 63 22 0d 09 2c | 22 4d 61 63 20 43 65 6e | Mac"..,|"Mac Cen|
|00001840| 74 72 69 73 20 36 31 30 | 22 0d 09 2c 22 4d 61 63 |tris 610|"..,"Mac|
|00001850| 20 51 75 61 64 72 61 20 | 36 31 30 22 0d 09 2c 22 | Quadra |610"..,"|
|00001860| 4d 61 63 20 50 6f 77 65 | 72 42 6f 6f 6b 20 31 34 |Mac Powe|rBook 14|
|00001870| 35 2c 31 34 35 62 22 0d | 09 2c 22 50 6f 77 65 72 |5,145b".|.,"Power|
|00001880| 4d 61 63 20 38 31 30 30 | 2f 31 30 30 22 09 2f 2a |Mac 8100|/100"./*|
|00001890| 20 35 35 20 2a 2f 0d 09 | 2c 22 4d 61 63 20 4c 43 | 55 */..|,"Mac LC|
|000018a0| 20 35 32 30 22 0d 09 2c | 22 55 6e 6b 6e 6f 77 6e | 520"..,|"Unknown|
|000018b0| 20 4d 61 63 22 0d 09 2c | 22 55 6e 6b 6e 6f 77 6e | Mac"..,|"Unknown|
|000018c0| 20 4d 61 63 22 0d 09 2c | 22 55 6e 6b 6e 6f 77 6e | Mac"..,|"Unknown|
|000018d0| 20 4d 61 63 22 0d 09 2c | 22 4d 61 63 20 43 65 6e | Mac"..,|"Mac Cen|
|000018e0| 74 72 69 73 20 36 36 30 | 41 56 22 0d 09 2c 22 55 |tris 660|AV"..,"U|
|000018f0| 6e 6b 6e 6f 77 6e 20 4d | 61 63 22 0d 09 2c 22 4d |nknown M|ac"..,"M|
|00001900| 61 63 20 50 65 72 66 6f | 72 6d 61 20 34 36 78 22 |ac Perfo|rma 46x"|
|00001910| 0d 09 2c 22 55 6e 6b 6e | 6f 77 6e 20 4d 61 63 22 |..,"Unkn|own Mac"|
|00001920| 0d 09 2c 22 55 6e 6b 6e | 6f 77 6e 20 4d 61 63 22 |..,"Unkn|own Mac"|
|00001930| 0d 09 2c 22 50 6f 77 65 | 72 4d 61 63 20 38 31 30 |..,"Powe|rMac 810|
|00001940| 30 2f 38 30 22 09 2f 2a | 20 36 35 20 2a 2f 0d 09 |0/80"./*| 65 */..|
|00001950| 2c 22 55 6e 6b 6e 6f 77 | 6e 20 4d 61 63 22 0d 09 |,"Unknow|n Mac"..|
|00001960| 2c 22 50 6f 77 65 72 4d | 61 63 20 39 35 30 30 22 |,"PowerM|ac 9500"|
|00001970| 09 2f 2a 20 36 37 20 2a | 2f 0d 09 2c 22 50 6f 77 |./* 67 *|/..,"Pow|
|00001980| 65 72 4d 61 63 20 37 35 | 30 30 2c 37 36 30 30 22 |erMac 75|00,7600"|
|00001990| 09 2f 2a 20 36 38 20 2a | 2f 0d 09 2c 22 50 6f 77 |./* 68 *|/..,"Pow|
|000019a0| 65 72 4d 61 63 20 38 35 | 30 30 22 09 2f 2a 20 36 |erMac 85|00"./* 6|
|000019b0| 39 20 2a 2f 0d 09 2c 22 | 55 6e 6b 6e 6f 77 6e 20 |9 */..,"|Unknown |
|000019c0| 4d 61 63 22 0d 09 2c 22 | 4d 61 63 20 50 6f 77 65 |Mac"..,"|Mac Powe|
|000019d0| 72 42 6f 6f 6b 20 31 38 | 30 63 22 0d 09 2c 22 4d |rBook 18|0c"..,"M|
|000019e0| 61 63 20 50 6f 77 65 72 | 42 6f 6f 6b 20 35 30 30 |ac Power|Book 500|
|000019f0| 2c 35 32 30 2c 35 32 30 | 63 2c 35 34 30 2c 35 34 |,520,520|c,540,54|
|00001a00| 30 63 22 20 2f 2a 20 37 | 32 20 2a 2f 0d 09 2c 22 |0c" /* 7|2 */..,"|
|00001a10| 55 6e 6b 6e 6f 77 6e 20 | 4d 61 63 22 0d 09 2c 22 |Unknown |Mac"..,"|
|00001a20| 55 6e 6b 6e 6f 77 6e 20 | 4d 61 63 22 0d 09 2c 22 |Unknown |Mac"..,"|
|00001a30| 50 6f 77 65 72 4d 61 63 | 20 36 31 30 30 2f 36 30 |PowerMac| 6100/60|
|00001a40| 22 09 2f 2a 20 37 35 20 | 2a 2f 0d 09 2c 22 55 6e |"./* 75 |*/..,"Un|
|00001a50| 6b 6e 6f 77 6e 20 4d 61 | 63 22 0d 09 2c 22 4d 61 |known Ma|c"..,"Ma|
|00001a60| 63 20 50 6f 77 65 72 42 | 6f 6f 6b 20 44 75 6f 20 |c PowerB|ook Duo |
|00001a70| 32 37 30 63 22 0d 09 2c | 22 4d 61 63 20 51 75 61 |270c"..,|"Mac Qua|
|00001a80| 64 72 61 20 38 34 30 41 | 56 22 0d 09 2c 22 55 6e |dra 840A|V"..,"Un|
|00001a90| 6b 6e 6f 77 6e 20 4d 61 | 63 22 0d 09 2c 22 4d 61 |known Ma|c"..,"Ma|
|00001aa0| 63 20 4c 43 2f 50 65 72 | 66 6f 72 6d 61 20 35 35 |c LC/Per|forma 55|
|00001ab0| 30 22 0d 09 2c 22 55 6e | 6b 6e 6f 77 6e 20 4d 61 |0"..,"Un|known Ma|
|00001ac0| 63 22 0d 09 2c 22 55 6e | 6b 6e 6f 77 6e 20 4d 61 |c"..,"Un|known Ma|
|00001ad0| 63 22 0d 09 2c 22 55 6e | 6b 6e 6f 77 6e 20 4d 61 |c"..,"Un|known Ma|
|00001ae0| 63 22 0d 09 2c 22 4d 61 | 63 20 50 6f 77 65 72 42 |c"..,"Ma|c PowerB|
|00001af0| 6f 6f 6b 20 31 36 35 22 | 0d 09 2c 22 55 6e 6b 6e |ook 165"|..,"Unkn|
|00001b00| 6f 77 6e 20 4d 61 63 22 | 0d 09 2c 22 55 6e 6b 6e |own Mac"|..,"Unkn|
|00001b10| 6f 77 6e 20 4d 61 63 22 | 0d 09 2c 22 55 6e 6b 6e |own Mac"|..,"Unkn|
|00001b20| 6f 77 6e 20 4d 61 63 22 | 0d 09 2c 22 4d 61 63 20 |own Mac"|..,"Mac |
|00001b30| 54 56 22 0d 09 2c 22 4d | 61 63 20 4c 43 2f 50 65 |TV"..,"M|ac LC/Pe|
|00001b40| 72 66 6f 72 6d 61 20 34 | 37 35 22 0d 09 2c 22 55 |rforma 4|75"..,"U|
|00001b50| 6e 6b 6e 6f 77 6e 20 4d | 61 63 22 0d 09 2c 22 55 |nknown M|ac"..,"U|
|00001b60| 6e 6b 6e 6f 77 6e 20 4d | 61 63 22 0d 09 2c 22 4d |nknown M|ac"..,"M|
|00001b70| 61 63 20 4c 43 20 35 37 | 35 22 0d 09 2c 22 55 6e |ac LC 57|5"..,"Un|
|00001b80| 6b 6e 6f 77 6e 20 4d 61 | 63 22 0d 09 2c 22 4d 61 |known Ma|c"..,"Ma|
|00001b90| 63 20 51 75 61 64 72 61 | 20 36 30 35 22 0d 09 2c |c Quadra| 605"..,|
|00001ba0| 22 55 6e 6b 6e 6f 77 6e | 20 4d 61 63 22 0d 09 2c |"Unknown| Mac"..,|
|00001bb0| 22 55 6e 6b 6e 6f 77 6e | 20 4d 61 63 22 0d 09 2c |"Unknown| Mac"..,|
|00001bc0| 22 55 6e 6b 6e 6f 77 6e | 20 4d 61 63 22 0d 09 2c |"Unknown| Mac"..,|
|00001bd0| 22 4d 61 63 20 4c 43 2f | 51 75 61 64 72 61 20 36 |"Mac LC/|Quadra 6|
|00001be0| 33 30 22 0d 09 2c 22 55 | 6e 6b 6e 6f 77 6e 20 4d |30"..,"U|nknown M|
|00001bf0| 61 63 22 0d 09 2c 22 50 | 6f 77 65 72 4d 61 63 20 |ac"..,"P|owerMac |
|00001c00| 36 31 30 30 2f 36 36 22 | 09 2f 2a 20 31 30 30 20 |6100/66"|./* 100 |
|00001c10| 2a 2f 0d 09 2c 22 50 6f | 77 65 72 4d 61 63 20 36 |*/..,"Po|werMac 6|
|00001c20| 31 30 30 22 09 2f 2a 20 | 38 30 20 4d 48 7a 2c 20 |100"./* |80 MHz, |
|00001c30| 64 69 73 63 6f 76 65 72 | 65 64 20 62 79 20 63 6c |discover|ed by cl|
|00001c40| 6f 63 6b 20 63 68 69 70 | 70 65 72 73 20 2a 2f 0d |ock chip|pers */.|
|00001c50| 09 2c 22 4d 61 63 20 50 | 6f 77 65 72 42 6f 6f 6b |.,"Mac P|owerBook|
|00001c60| 20 44 75 6f 20 32 38 30 | 22 0d 09 2c 22 4d 61 63 | Duo 280|"..,"Mac|
|00001c70| 20 50 6f 77 65 72 42 6f | 6f 6b 20 44 75 6f 20 32 | PowerBo|ok Duo 2|
|00001c80| 38 30 63 22 0d 09 2c 22 | 50 6f 77 65 72 4d 61 63 |80c"..,"|PowerMac|
|00001c90| 20 4c 43 2f 50 65 72 66 | 6f 72 6d 61 20 34 37 35 | LC/Perf|orma 475|
|00001ca0| 22 0d 09 2c 22 50 6f 77 | 65 72 4d 61 63 20 4c 43 |"..,"Pow|erMac LC|
|00001cb0| 2f 50 65 72 66 6f 72 6d | 61 20 35 37 35 22 0d 09 |/Perform|a 575"..|
|00001cc0| 2c 22 50 6f 77 65 72 4d | 61 63 20 4c 43 2f 51 75 |,"PowerM|ac LC/Qu|
|00001cd0| 61 64 72 61 20 36 33 30 | 22 0d 09 2c 22 55 6e 6b |adra 630|"..,"Unk|
|00001ce0| 6e 6f 77 6e 20 4d 61 63 | 22 0d 09 2c 22 50 6f 77 |nown Mac|"..,"Pow|
|00001cf0| 65 72 4d 61 63 20 37 32 | 30 30 22 09 2f 2a 20 31 |erMac 72|00"./* 1|
|00001d00| 30 38 2c 20 61 6c 73 6f | 20 50 6f 77 65 72 4d 61 |08, also| PowerMa|
|00001d10| 63 20 38 32 30 30 2f 31 | 30 30 20 2a 2f 0d 09 2c |c 8200/1|00 */..,|
|00001d20| 22 55 6e 6b 6e 6f 77 6e | 20 4d 61 63 22 0d 09 2c |"Unknown| Mac"..,|
|00001d30| 22 55 6e 6b 6e 6f 77 6e | 20 4d 61 63 22 0d 09 2c |"Unknown| Mac"..,|
|00001d40| 22 55 6e 6b 6e 6f 77 6e | 20 4d 61 63 22 0d 09 2c |"Unknown| Mac"..,|
|00001d50| 22 50 6f 77 65 72 4d 61 | 63 20 37 31 30 30 2f 36 |"PowerMa|c 7100/6|
|00001d60| 36 22 09 2f 2a 20 31 31 | 32 20 2a 2f 0d 09 2c 22 |6"./* 11|2 */..,"|
|00001d70| 50 6f 77 65 72 4d 61 63 | 20 37 31 30 30 22 09 2f |PowerMac| 7100"./|
|00001d80| 2a 20 38 30 20 4d 48 7a | 2c 20 64 69 73 63 6f 76 |* 80 MHz|, discov|
|00001d90| 65 72 65 64 20 62 79 20 | 63 6c 6f 63 6b 20 63 68 |ered by |clock ch|
|00001da0| 69 70 70 65 72 73 20 2a | 2f 0d 09 2c 22 55 6e 6b |ippers *|/..,"Unk|
|00001db0| 6e 6f 77 6e 20 4d 61 63 | 22 0d 09 2c 22 4d 61 63 |nown Mac|"..,"Mac|
|00001dc0| 20 50 6f 77 65 72 42 6f | 6f 6b 20 31 35 30 22 0d | PowerBo|ok 150".|
|00001dd0| 09 2c 22 50 6f 77 65 72 | 4d 61 63 20 51 75 61 64 |.,"Power|Mac Quad|
|00001de0| 72 61 37 30 30 22 0d 09 | 2c 22 50 6f 77 65 72 4d |ra700"..|,"PowerM|
|00001df0| 61 63 20 51 75 61 64 72 | 61 39 30 30 22 0d 09 2c |ac Quadr|a900"..,|
|00001e00| 22 50 6f 77 65 72 4d 61 | 63 20 51 75 61 64 72 61 |"PowerMa|c Quadra|
|00001e10| 39 35 30 22 0d 09 2c 22 | 50 6f 77 65 72 4d 61 63 |950"..,"|PowerMac|
|00001e20| 20 43 65 6e 74 72 69 73 | 36 31 30 22 0d 09 2c 22 | Centris|610"..,"|
|00001e30| 50 6f 77 65 72 4d 61 63 | 20 43 65 6e 74 72 69 73 |PowerMac| Centris|
|00001e40| 36 35 30 22 0d 09 2c 22 | 50 6f 77 65 72 4d 61 63 |650"..,"|PowerMac|
|00001e50| 20 51 75 61 64 72 61 36 | 31 30 22 0d 09 2c 22 50 | Quadra6|10"..,"P|
|00001e60| 6f 77 65 72 4d 61 63 20 | 51 75 61 64 72 61 36 35 |owerMac |Quadra65|
|00001e70| 30 22 0d 09 2c 22 50 6f | 77 65 72 4d 61 63 20 51 |0"..,"Po|werMac Q|
|00001e80| 75 61 64 72 61 38 30 30 | 22 0d 09 2c 22 50 6f 77 |uadra800|"..,"Pow|
|00001e90| 65 72 42 6f 6f 6b 20 32 | 33 30 30 63 22 09 2f 2a |erBook 2|300c"./*|
|00001ea0| 20 31 32 34 20 2a 2f 0d | 09 2c 22 55 6e 6b 6e 6f | 124 */.|.,"Unkno|
|00001eb0| 77 6e 20 4d 61 63 22 0d | 09 2c 22 55 6e 6b 6e 6f |wn Mac".|.,"Unkno|
|00001ec0| 77 6e 20 4d 61 63 22 0d | 09 2c 22 55 6e 6b 6e 6f |wn Mac".|.,"Unkno|
|00001ed0| 77 6e 20 4d 61 63 22 0d | 09 2c 22 50 6f 77 65 72 |wn Mac".|.,"Power|
|00001ee0| 42 6f 6f 6b 20 35 33 30 | 30 22 0d 7d 3b 0d 0d 63 |Book 530|0".};..c|
|00001ef0| 68 61 72 20 66 70 75 4e | 61 6d 65 5b 5d 5b 33 32 |har fpuN|ame[][32|
|00001f00| 5d 3d 7b 0d 09 22 6e 6f | 20 66 6c 6f 61 74 69 6e |]={.."no| floatin|
|00001f10| 67 20 70 6f 69 6e 74 20 | 75 6e 69 74 22 2c 22 36 |g point |unit","6|
|00001f20| 38 38 38 31 22 2c 22 36 | 38 38 38 32 22 2c 22 62 |8881","6|8882","b|
|00001f30| 75 69 6c 74 2d 69 6e 20 | 66 6c 6f 61 74 69 6e 67 |uilt-in |floating|
|00001f40| 20 70 6f 69 6e 74 22 0d | 09 2c 22 75 6e 6b 6e 6f | point".|.,"unkno|
|00001f50| 77 6e 20 66 6c 6f 61 74 | 69 6e 67 20 70 6f 69 6e |wn float|ing poin|
|00001f60| 74 20 75 6e 69 74 22 2c | 22 53 6f 66 74 77 61 72 |t unit",|"Softwar|
|00001f70| 65 20 46 50 55 22 0d 7d | 3b 0d 0d 63 68 61 72 20 |e FPU".}|;..char |
|00001f80| 2a 49 64 65 6e 74 69 66 | 79 43 6f 6d 70 69 6c 65 |*Identif|yCompile|
|00001f90| 72 28 76 6f 69 64 29 0d | 7b 0d 09 73 74 61 74 69 |r(void).|{..stati|
|00001fa0| 63 20 63 68 61 72 20 73 | 74 72 69 6e 67 5b 32 30 |c char s|tring[20|
|00001fb0| 30 5d 3b 0d 09 63 68 61 | 72 20 2a 63 6f 6d 70 69 |0];..cha|r *compi|
|00001fc0| 6c 65 72 2c 2a 6c 6f 6e | 67 73 2c 2a 66 6c 6f 61 |ler,*lon|gs,*floa|
|00001fd0| 74 69 6e 67 2c 76 65 72 | 73 69 6f 6e 5b 34 5d 2c |ting,ver|sion[4],|
|00001fe0| 2a 75 6e 69 76 65 72 73 | 61 6c 3b 0d 09 64 6f 75 |*univers|al;..dou|
|00001ff0| 62 6c 65 20 76 3d 30 3b | 0d 09 42 6f 6f 6c 65 61 |ble v=0;|..Boolea|
|00002000| 6e 20 66 72 61 63 74 69 | 6f 6e 61 6c 56 65 72 73 |n fracti|onalVers|
|00002010| 69 6f 6e 3d 30 3b 0d 09 | 0d 09 73 74 72 69 6e 67 |ion=0;..|..string|
|00002020| 5b 30 5d 3d 30 3b 0d 09 | 63 6f 6d 70 69 6c 65 72 |[0]=0;..|compiler|
|00002030| 3d 22 22 3b 0d 09 23 69 | 66 20 54 48 49 4e 4b 5f |="";..#i|f THINK_|
|00002040| 43 20 26 26 20 21 53 59 | 4d 41 4e 54 45 43 5f 43 |C && !SY|MANTEC_C|
|00002050| 0d 09 09 63 6f 6d 70 69 | 6c 65 72 3d 22 53 79 6d |...compi|ler="Sym|
|00002060| 61 6e 74 65 63 20 54 48 | 49 4e 4b 20 43 22 3b 0d |antec TH|INK C";.|
|00002070| 09 09 69 66 28 54 48 49 | 4e 4b 5f 43 3d 3d 31 29 |..if(THI|NK_C==1)|
|00002080| 76 3d 34 3b 0d 09 09 65 | 6c 73 65 20 76 3d 54 48 |v=4;...e|lse v=TH|
|00002090| 49 4e 4b 5f 43 3b 0d 09 | 23 65 6e 64 69 66 0d 09 |INK_C;..|#endif..|
|000020a0| 23 69 66 20 54 48 49 4e | 4b 5f 43 50 4c 55 53 20 |#if THIN|K_CPLUS |
|000020b0| 7c 7c 20 53 59 4d 41 4e | 54 45 43 5f 43 0d 09 09 ||| SYMAN|TEC_C...|
|000020c0| 23 69 66 20 5f 5f 63 70 | 6c 75 73 70 6c 75 73 20 |#if __cp|lusplus |
|000020d0| 7c 7c 20 54 48 49 4e 4b | 5f 43 50 4c 55 53 0d 09 ||| THINK|_CPLUS..|
|000020e0| 09 09 63 6f 6d 70 69 6c | 65 72 3d 22 53 79 6d 61 |..compil|er="Syma|
|000020f0| 6e 74 65 63 20 43 2b 2b | 22 3b 0d 09 09 23 65 6c |ntec C++|";...#el|
|00002100| 73 65 0d 09 09 09 63 6f | 6d 70 69 6c 65 72 3d 22 |se....co|mpiler="|
|00002110| 53 79 6d 61 6e 74 65 63 | 20 43 22 3b 0d 09 09 23 |Symantec| C";...#|
|00002120| 65 6e 64 69 66 0d 09 09 | 23 69 66 20 54 48 49 4e |endif...|#if THIN|
|00002130| 4b 5f 43 50 4c 55 53 0d | 09 09 09 76 3d 54 48 49 |K_CPLUS.|...v=THI|
|00002140| 4e 4b 5f 43 50 4c 55 53 | 3b 0d 09 09 23 65 6c 73 |NK_CPLUS|;...#els|
|00002150| 65 0d 09 09 09 66 72 61 | 63 74 69 6f 6e 61 6c 56 |e....fra|ctionalV|
|00002160| 65 72 73 69 6f 6e 3d 31 | 3b 0d 09 09 09 76 3d 53 |ersion=1|;....v=S|
|00002170| 59 4d 41 4e 54 45 43 5f | 43 2f 30 78 31 30 30 20 |YMANTEC_|C/0x100 |
|00002180| 2b 20 30 2e 31 2a 28 53 | 59 4d 41 4e 54 45 43 5f |+ 0.1*(S|YMANTEC_|
|00002190| 43 2f 30 78 31 30 25 30 | 78 31 30 29 20 2b 20 30 |C/0x10%0|x10) + 0|
|000021a0| 2e 30 31 2a 28 53 59 4d | 41 4e 54 45 43 5f 43 25 |.01*(SYM|ANTEC_C%|
|000021b0| 30 78 31 30 29 3b 0d 09 | 09 23 65 6e 64 69 66 0d |0x10);..|.#endif.|
|000021c0| 09 23 65 6e 64 69 66 0d | 09 23 69 66 20 61 70 70 |.#endif.|.#if app|
|000021d0| 6c 65 63 0d 09 09 63 6f | 6d 70 69 6c 65 72 3d 22 |lec...co|mpiler="|
|000021e0| 4d 50 57 20 43 22 3b 0d | 09 23 65 6e 64 69 66 0d |MPW C";.|.#endif.|
|000021f0| 09 23 69 66 20 5f 5f 4d | 57 45 52 4b 53 5f 5f 0d |.#if __M|WERKS__.|
|00002200| 09 09 63 6f 6d 70 69 6c | 65 72 3d 22 4d 65 74 72 |..compil|er="Metr|
|00002210| 6f 77 65 72 6b 73 20 43 | 6f 64 65 57 61 72 72 69 |owerks C|odeWarri|
|00002220| 6f 72 20 43 22 3b 0d 09 | 09 23 69 66 20 5f 5f 4d |or C";..|.#if __M|
|00002230| 57 45 52 4b 53 5f 5f 3e | 31 0d 09 09 09 66 72 61 |WERKS__>|1....fra|
|00002240| 63 74 69 6f 6e 61 6c 56 | 65 72 73 69 6f 6e 3d 31 |ctionalV|ersion=1|
|00002250| 3b 0d 09 09 09 76 3d 5f | 5f 4d 57 45 52 4b 53 5f |;....v=_|_MWERKS_|
|00002260| 5f 2f 30 78 31 30 30 20 | 2b 20 30 2e 31 2a 28 5f |_/0x100 |+ 0.1*(_|
|00002270| 5f 4d 57 45 52 4b 53 5f | 5f 2f 30 78 31 30 25 30 |_MWERKS_|_/0x10%0|
|00002280| 78 31 30 29 20 2b 20 30 | 2e 30 31 2a 28 5f 5f 4d |x10) + 0|.01*(__M|
|00002290| 57 45 52 4b 53 5f 5f 25 | 30 78 31 30 29 3b 0d 09 |WERKS__%|0x10);..|
|000022a0| 09 23 65 6c 73 65 0d 09 | 09 09 23 69 66 20 64 65 |.#else..|..#if de|
|000022b0| 66 69 6e 65 64 28 5f 5f | 4d 43 36 38 4b 5f 5f 29 |fined(__|MC68K__)|
|000022c0| 7c 7c 64 65 66 69 6e 65 | 64 28 5f 5f 50 4f 57 45 |||define|d(__POWE|
|000022d0| 52 50 43 5f 5f 29 7c 7c | 64 65 66 69 6e 65 64 28 |RPC__)|||defined(|
|000022e0| 5f 5f 49 4e 54 45 4c 5f | 5f 29 0d 09 09 09 09 76 |__INTEL_|_).....v|
|000022f0| 3d 36 3b 0d 09 09 09 23 | 65 6c 73 65 0d 09 09 09 |=6;....#|else....|
|00002300| 09 69 66 28 21 69 73 63 | 6e 74 72 6c 28 30 29 29 |.if(!isc|ntrl(0))|
|00002310| 76 3d 34 3b 09 2f 2f 20 | 62 75 67 20 69 6e 20 76 |v=4;.// |bug in v|
|00002320| 65 72 73 69 6f 6e 20 34 | 2e 35 20 61 6e 64 20 65 |ersion 4|.5 and e|
|00002330| 61 72 6c 69 65 72 0d 09 | 09 09 09 65 6c 73 65 20 |arlier..|...else |
|00002340| 76 3d 35 3b 0d 09 09 09 | 23 65 6e 64 69 66 0d 09 |v=5;....|#endif..|
|00002350| 09 23 65 6e 64 69 66 0d | 09 23 65 6e 64 69 66 0d |.#endif.|.#endif.|
|00002360| 09 69 66 28 76 3e 30 29 | 7b 0d 09 09 69 66 28 66 |.if(v>0)|{...if(f|
|00002370| 72 61 63 74 69 6f 6e 61 | 6c 56 65 72 73 69 6f 6e |ractiona|lVersion|
|00002380| 29 73 70 72 69 6e 74 66 | 28 76 65 72 73 69 6f 6e |)sprintf|(version|
|00002390| 2c 22 25 2e 32 66 20 22 | 2c 76 29 3b 0d 09 09 65 |,"%.2f "|,v);...e|
|000023a0| 6c 73 65 20 73 70 72 69 | 6e 74 66 28 76 65 72 73 |lse spri|ntf(vers|
|000023b0| 69 6f 6e 2c 22 25 2e 30 | 66 20 22 2c 76 29 3b 0d |ion,"%.0|f ",v);.|
|000023c0| 09 7d 65 6c 73 65 20 73 | 70 72 69 6e 74 66 28 76 |.}else s|printf(v|
|000023d0| 65 72 73 69 6f 6e 2c 22 | 22 29 3b 0d 09 69 66 28 |ersion,"|");..if(|
|000023e0| 47 45 4e 45 52 41 54 49 | 4e 47 36 38 30 32 30 29 |GENERATI|NG68020)|
|000023f0| 6c 6f 6e 67 73 3d 22 36 | 38 30 32 30 22 3b 0d 09 |longs="6|8020";..|
|00002400| 65 6c 73 65 7b 0d 09 09 | 23 69 66 20 47 45 4e 45 |else{...|#if GENE|
|00002410| 52 41 54 49 4e 47 50 4f | 57 45 52 50 43 0d 09 09 |RATINGPO|WERPC...|
|00002420| 09 6c 6f 6e 67 73 3d 22 | 50 6f 77 65 72 50 43 22 |.longs="|PowerPC"|
|00002430| 3b 0d 09 09 23 65 6c 73 | 65 0d 09 09 09 6c 6f 6e |;...#els|e....lon|
|00002440| 67 73 3d 22 36 38 30 30 | 30 22 3b 0d 09 09 23 65 |gs="6800|0";...#e|
|00002450| 6e 64 69 66 0d 09 7d 0d | 09 69 66 28 47 45 4e 45 |ndif..}.|.if(GENE|
|00002460| 52 41 54 49 4e 47 36 38 | 38 38 31 29 66 6c 6f 61 |RATING68|881)floa|
|00002470| 74 69 6e 67 3d 22 20 61 | 6e 64 20 36 38 38 38 31 |ting=" a|nd 68881|
|00002480| 22 3b 0d 09 65 6c 73 65 | 20 66 6c 6f 61 74 69 6e |";..else| floatin|
|00002490| 67 3d 22 22 3b 0d 09 75 | 6e 69 76 65 72 73 61 6c |g="";..u|niversal|
|000024a0| 3d 22 22 3b 0d 09 69 66 | 28 73 69 7a 65 6f 66 28 |="";..if|(sizeof(|
|000024b0| 64 6f 75 62 6c 65 29 3d | 3d 31 32 29 7b 0d 09 09 |double)=|=12){...|
|000024c0| 23 69 66 20 54 48 49 4e | 4b 5f 43 0d 09 09 09 23 |#if THIN|K_C....#|
|000024d0| 69 66 20 21 5f 5f 6f 70 | 74 69 6f 6e 28 6e 61 74 |if !__op|tion(nat|
|000024e0| 69 76 65 5f 66 70 29 0d | 09 09 09 09 75 6e 69 76 |ive_fp).|....univ|
|000024f0| 65 72 73 61 6c 3d 22 5c | 22 75 6e 69 76 65 72 73 |ersal="\|"univers|
|00002500| 61 6c 5c 22 2d 66 6f 72 | 6d 61 74 20 22 3b 0d 09 |al\"-for|mat ";..|
|00002510| 09 09 23 65 6e 64 69 66 | 0d 09 09 23 65 6e 64 69 |..#endif|...#endi|
|00002520| 66 0d 09 7d 0d 09 73 70 | 72 69 6e 74 66 28 73 74 |f..}..sp|rintf(st|
|00002530| 72 69 6e 67 2c 22 43 6f | 6d 70 69 6c 65 64 20 62 |ring,"Co|mpiled b|
|00002540| 79 20 25 73 20 25 73 66 | 6f 72 20 25 73 25 73 2c |y %s %sf|or %s%s,|
|00002550| 20 25 6c 64 42 20 69 6e | 74 20 61 6e 64 20 25 73 | %ldB in|t and %s|
|00002560| 25 6c 64 42 20 64 6f 75 | 62 6c 65 2e 22 0d 09 09 |%ldB dou|ble."...|
|00002570| 2c 63 6f 6d 70 69 6c 65 | 72 2c 76 65 72 73 69 6f |,compile|r,versio|
|00002580| 6e 2c 6c 6f 6e 67 73 2c | 66 6c 6f 61 74 69 6e 67 |n,longs,|floating|
|00002590| 2c 73 69 7a 65 6f 66 28 | 69 6e 74 29 2c 75 6e 69 |,sizeof(|int),uni|
|000025a0| 76 65 72 73 61 6c 2c 73 | 69 7a 65 6f 66 28 64 6f |versal,s|izeof(do|
|000025b0| 75 62 6c 65 29 29 3b 0d | 09 72 65 74 75 72 6e 20 |uble));.|.return |
|000025c0| 73 74 72 69 6e 67 3b 0d | 7d 0d 0d 63 68 61 72 20 |string;.|}..char |
|000025d0| 2a 49 64 65 6e 74 69 66 | 79 4d 6f 64 65 6c 28 76 |*Identif|yModel(v|
|000025e0| 6f 69 64 29 0d 7b 0d 09 | 69 6e 74 20 65 72 72 6f |oid).{..|int erro|
|000025f0| 72 3b 0d 09 6c 6f 6e 67 | 20 6d 61 63 68 69 6e 65 |r;..long| machine|
|00002600| 3d 30 2c 76 61 6c 75 65 | 3b 0d 09 69 6e 74 20 6d |=0,value|;..int m|
|00002610| 61 63 68 69 6e 65 73 3d | 73 69 7a 65 6f 66 28 6d |achines=|sizeof(m|
|00002620| 61 63 68 69 6e 65 4e 61 | 6d 65 29 2f 73 69 7a 65 |achineNa|me)/size|
|00002630| 6f 66 28 6d 61 63 68 69 | 6e 65 4e 61 6d 65 5b 30 |of(machi|neName[0|
|00002640| 5d 29 3b 0d 09 73 74 61 | 74 69 63 20 63 68 61 72 |]);..sta|tic char|
|00002650| 20 73 74 72 69 6e 67 5b | 36 34 5d 3b 0d 09 63 68 | string[|64];..ch|
|00002660| 61 72 20 63 70 75 4e 61 | 6d 65 5b 33 32 5d 3d 22 |ar cpuNa|me[32]="|
|00002670| 22 3b 0d 09 6c 6f 6e 67 | 20 63 70 75 48 7a 3d 30 |";..long| cpuHz=0|
|00002680| 2c 62 75 73 48 7a 3d 30 | 3b 0d 09 42 6f 6f 6c 65 |,busHz=0|;..Boole|
|00002690| 61 6e 20 68 61 73 4c 32 | 43 61 63 68 65 2c 70 6f |an hasL2|Cache,po|
|000026a0| 77 65 72 4d 67 72 45 78 | 69 73 74 73 3b 0d 09 0d |werMgrEx|ists;...|
|000026b0| 09 23 69 66 20 30 0d 09 | 09 2f 2a 20 42 65 66 6f |.#if 0..|./* Befo|
|000026c0| 72 65 20 53 79 73 74 65 | 6d 20 37 2e 35 20 74 68 |re Syste|m 7.5 th|
|000026d0| 65 20 4d 61 63 4f 53 20 | 73 75 70 70 6c 69 65 64 |e MacOS |supplied|
|000026e0| 20 74 68 65 20 6d 6f 64 | 65 6c 20 6e 61 6d 65 2e | the mod|el name.|
|000026f0| 20 4e 6f 77 20 69 74 20 | 6d 65 72 65 6c 79 20 73 | Now it |merely s|
|00002700| 75 70 70 6c 69 65 73 20 | 61 0d 09 09 09 67 65 6e |upplies |a....gen|
|00002710| 65 72 69 63 20 6e 61 6d | 65 2c 20 6c 69 6b 65 20 |eric nam|e, like |
|00002720| 22 50 6f 77 65 72 20 4d | 61 63 69 6e 74 6f 73 68 |"Power M|acintosh|
|00002730| 22 2e 20 2a 2f 0d 09 09 | 69 66 28 21 65 72 72 6f |". */...|if(!erro|
|00002740| 72 29 7b 0d 09 09 09 47 | 65 74 49 6e 64 53 74 72 |r){....G|etIndStr|
|00002750| 69 6e 67 28 28 75 6e 73 | 69 67 6e 65 64 20 63 68 |ing((uns|igned ch|
|00002760| 61 72 20 2a 29 73 74 72 | 69 6e 67 2c 6b 4d 61 63 |ar *)str|ing,kMac|
|00002770| 68 69 6e 65 4e 61 6d 65 | 53 74 72 49 44 2c 6d 61 |hineName|StrID,ma|
|00002780| 63 68 69 6e 65 29 3b 0d | 09 09 09 70 32 63 73 74 |chine);.|...p2cst|
|00002790| 72 28 28 75 6e 73 69 67 | 6e 65 64 20 63 68 61 72 |r((unsig|ned char|
|000027a0| 20 2a 29 73 74 72 69 6e | 67 29 3b 0d 09 09 09 69 | *)strin|g);....i|
|000027b0| 66 28 73 74 72 6c 65 6e | 28 73 74 72 69 6e 67 29 |f(strlen|(string)|
|000027c0| 3d 3d 30 29 7b 0d 09 09 | 09 09 69 66 28 6d 61 63 |==0){...|..if(mac|
|000027d0| 68 69 6e 65 3c 30 20 7c | 7c 20 6d 61 63 68 69 6e |hine<0 ||| machin|
|000027e0| 65 3e 3d 6d 61 63 68 69 | 6e 65 73 29 6d 61 63 68 |e>=machi|nes)mach|
|000027f0| 69 6e 65 3d 30 3b 0d 09 | 09 09 09 73 70 72 69 6e |ine=0;..|...sprin|
|00002800| 74 66 28 73 74 72 69 6e | 67 2c 22 25 73 22 2c 6d |tf(strin|g,"%s",m|
|00002810| 61 63 68 69 6e 65 4e 61 | 6d 65 5b 6d 61 63 68 69 |achineNa|me[machi|
|00002820| 6e 65 5d 29 3b 0d 09 09 | 09 7d 0d 09 09 7d 0d 09 |ne]);...|.}...}..|
|00002830| 23 65 6e 64 69 66 0d 09 | 2f 2a 20 54 68 65 20 6d |#endif..|/* The m|
|00002840| 6f 64 65 6c 20 6e 61 6d | 65 73 20 69 6e 20 74 68 |odel nam|es in th|
|00002850| 65 20 6d 61 63 68 69 6e | 65 4e 61 6d 65 5b 5d 20 |e machin|eName[] |
|00002860| 74 61 62 6c 65 20 69 6e | 63 6c 75 64 65 20 63 6c |table in|clude cl|
|00002870| 6f 63 6b 20 73 70 65 65 | 64 2c 20 77 68 65 72 65 |ock spee|d, where|
|00002880| 20 61 70 70 72 6f 70 72 | 69 61 74 65 2c 0d 09 66 | appropr|iate,..f|
|00002890| 6f 72 20 74 68 65 20 70 | 72 65 2d 50 43 49 20 4d |or the p|re-PCI M|
|000028a0| 61 63 73 2c 20 65 2e 67 | 2e 20 36 31 30 30 2f 36 |acs, e.g|. 6100/6|
|000028b0| 30 2c 20 62 75 74 20 6f | 6d 69 74 20 63 6c 6f 63 |0, but o|mit cloc|
|000028c0| 6b 20 73 70 65 65 64 20 | 66 6f 72 20 74 68 65 20 |k speed |for the |
|000028d0| 50 43 49 20 4d 61 63 73 | 2c 20 73 69 6e 63 65 20 |PCI Macs|, since |
|000028e0| 0d 09 50 43 49 20 4d 61 | 63 73 20 6d 75 73 74 20 |..PCI Ma|cs must |
|000028f0| 72 75 6e 20 53 79 73 74 | 65 6d 20 37 2e 35 2e 32 |run Syst|em 7.5.2|
|00002900| 20 6f 72 20 62 65 74 74 | 65 72 2c 20 77 68 69 63 | or bett|er, whic|
|00002910| 68 20 69 6e 63 6c 75 64 | 65 20 67 65 73 74 61 6c |h includ|e gestal|
|00002920| 74 43 50 55 43 6c 6f 63 | 6b 53 70 65 65 64 2c 20 |tCPUCloc|kSpeed, |
|00002930| 77 68 65 72 65 61 73 0d | 09 70 72 65 2d 50 43 49 |whereas.|.pre-PCI|
|00002940| 20 4d 61 63 73 20 6d 61 | 79 20 62 65 20 72 75 6e | Macs ma|y be run|
|00002950| 6e 69 6e 67 20 37 2e 35 | 2e 31 20 77 68 69 63 68 |ning 7.5|.1 which|
|00002960| 20 64 69 64 20 6e 6f 74 | 20 69 6e 63 6c 75 64 65 | did not| include|
|00002970| 20 67 65 73 74 61 6c 74 | 43 50 55 43 6c 6f 63 6b | gestalt|CPUClock|
|00002980| 53 70 65 65 64 2e 20 0d | 09 49 66 20 74 68 65 20 |Speed. .|.If the |
|00002990| 61 63 74 75 61 6c 20 63 | 6c 6f 63 6b 20 73 70 65 |actual c|lock spe|
|000029a0| 65 64 20 69 73 20 61 76 | 61 69 6c 61 62 6c 65 20 |ed is av|ailable |
|000029b0| 77 65 20 61 6c 77 61 79 | 73 20 75 73 65 20 69 74 |we alway|s use it|
|000029c0| 2c 20 6f 76 65 72 77 72 | 69 74 69 6e 67 20 74 68 |, overwr|iting th|
|000029d0| 65 20 6e 6f 6d 69 6e 61 | 6c 20 73 70 65 65 64 20 |e nomina|l speed |
|000029e0| 69 66 0d 09 6e 65 63 65 | 73 73 61 72 79 2e 20 2a |if..nece|ssary. *|
|000029f0| 2f 0d 09 65 72 72 6f 72 | 3d 47 65 73 74 61 6c 74 |/..error|=Gestalt|
|00002a00| 28 67 65 73 74 61 6c 74 | 4d 61 63 68 69 6e 65 54 |(gestalt|MachineT|
|00002a10| 79 70 65 2c 26 6d 61 63 | 68 69 6e 65 29 3b 0d 09 |ype,&mac|hine);..|
|00002a20| 73 74 72 63 70 79 28 73 | 74 72 69 6e 67 2c 6d 61 |strcpy(s|tring,ma|
|00002a30| 63 68 69 6e 65 4e 61 6d | 65 5b 6d 61 63 68 69 6e |chineNam|e[machin|
|00002a40| 65 5d 29 3b 0d 09 47 65 | 74 43 50 55 50 72 6f 70 |e]);..Ge|tCPUProp|
|00002a50| 65 72 74 69 65 73 28 63 | 70 75 4e 61 6d 65 2c 26 |erties(c|puName,&|
|00002a60| 63 70 75 48 7a 2c 26 68 | 61 73 4c 32 43 61 63 68 |cpuHz,&h|asL2Cach|
|00002a70| 65 29 3b 09 2f 2f 20 75 | 73 65 66 75 6c 20 6f 6e |e);.// u|seful on|
|00002a80| 6c 79 20 6f 6e 20 50 43 | 49 20 4d 61 63 73 0d 09 |ly on PC|I Macs..|
|00002a90| 65 72 72 6f 72 3d 47 65 | 73 74 61 6c 74 28 67 65 |error=Ge|stalt(ge|
|00002aa0| 73 74 61 6c 74 42 75 73 | 43 6c 6f 63 6b 53 70 65 |staltBus|ClockSpe|
|00002ab0| 65 64 2c 26 62 75 73 48 | 7a 29 3b 09 09 2f 2f 20 |ed,&busH|z);..// |
|00002ac0| 72 65 71 75 69 72 65 73 | 20 53 79 73 74 65 6d 20 |requires| System |
|00002ad0| 37 2e 35 2e 32 20 6f 72 | 20 62 65 74 74 65 72 0d |7.5.2 or| better.|
|00002ae0| 09 65 72 72 6f 72 3d 47 | 65 73 74 61 6c 74 28 67 |.error=G|estalt(g|
|00002af0| 65 73 74 61 6c 74 43 50 | 55 43 6c 6f 63 6b 53 70 |estaltCP|UClockSp|
|00002b00| 65 65 64 2c 26 63 70 75 | 48 7a 29 3b 09 09 2f 2f |eed,&cpu|Hz);..//|
|00002b10| 20 72 65 71 75 69 72 65 | 73 20 53 79 73 74 65 6d | require|s System|
|00002b20| 20 37 2e 35 2e 32 20 6f | 72 20 62 65 74 74 65 72 | 7.5.2 o|r better|
|00002b30| 0d 09 69 66 28 63 70 75 | 48 7a 3d 3d 30 29 7b 0d |..if(cpu|Hz==0){.|
|00002b40| 09 09 47 65 73 74 61 6c | 74 28 67 65 73 74 61 6c |..Gestal|t(gestal|
|00002b50| 74 50 6f 77 65 72 4d 67 | 72 41 74 74 72 2c 26 76 |tPowerMg|rAttr,&v|
|00002b60| 61 6c 75 65 29 3b 09 09 | 2f 2f 20 4f 6e 6c 79 20 |alue);..|// Only |
|00002b70| 6f 6e 20 70 6f 77 65 72 | 62 6f 6f 6b 73 20 49 20 |on power|books I |
|00002b80| 74 68 69 6e 6b 2e 0d 09 | 09 70 6f 77 65 72 4d 67 |think...|.powerMg|
|00002b90| 72 45 78 69 73 74 73 3d | 76 61 6c 75 65 26 28 31 |rExists=|value&(1|
|00002ba0| 4c 3c 3c 67 65 73 74 61 | 6c 74 50 4d 67 72 45 78 |L<<gesta|ltPMgrEx|
|00002bb0| 69 73 74 73 29 3b 0d 09 | 09 69 66 28 70 6f 77 65 |ists);..|.if(powe|
|00002bc0| 72 4d 67 72 45 78 69 73 | 74 73 29 63 70 75 48 7a |rMgrExis|ts)cpuHz|
|00002bd0| 3d 31 30 30 30 30 30 30 | 2a 47 65 74 43 50 55 53 |=1000000|*GetCPUS|
|00002be0| 70 65 65 64 28 29 3b 0d | 09 7d 0d 09 69 66 28 63 |peed();.|.}..if(c|
|00002bf0| 70 75 48 7a 3e 30 29 7b | 0d 09 09 69 6e 74 20 69 |puHz>0){|...int i|
|00002c00| 3d 73 74 72 6c 65 6e 28 | 73 74 72 69 6e 67 29 3b |=strlen(|string);|
|00002c10| 0d 09 09 2f 2f 20 72 65 | 6d 6f 76 65 20 74 68 65 |...// re|move the|
|00002c20| 20 6e 6f 6d 69 6e 61 6c | 20 73 70 65 65 64 2c 20 | nominal| speed, |
|00002c30| 69 66 20 70 72 65 73 65 | 6e 74 2c 20 62 65 66 6f |if prese|nt, befo|
|00002c40| 72 65 20 61 70 70 65 6e | 64 69 6e 67 20 74 68 65 |re appen|ding the|
|00002c50| 20 61 63 74 75 61 6c 20 | 73 70 65 65 64 0d 09 09 | actual |speed...|
|00002c60| 69 66 28 69 3e 34 20 26 | 26 20 73 74 72 69 6e 67 |if(i>4 &|& string|
|00002c70| 5b 69 2d 34 5d 3d 3d 27 | 2f 27 20 26 26 20 69 73 |[i-4]=='|/' && is|
|00002c80| 64 69 67 69 74 28 73 74 | 72 69 6e 67 5b 69 2d 33 |digit(st|ring[i-3|
|00002c90| 5d 29 20 26 26 20 69 73 | 64 69 67 69 74 28 73 74 |]) && is|digit(st|
|00002ca0| 72 69 6e 67 5b 69 2d 32 | 5d 29 20 26 26 20 69 73 |ring[i-2|]) && is|
|00002cb0| 64 69 67 69 74 28 73 74 | 72 69 6e 67 5b 69 2d 31 |digit(st|ring[i-1|
|00002cc0| 5d 29 29 0d 09 09 09 73 | 74 72 69 6e 67 5b 69 2d |]))....s|tring[i-|
|00002cd0| 34 5d 3d 30 3b 0d 09 09 | 69 66 28 69 3e 33 20 26 |4]=0;...|if(i>3 &|
|00002ce0| 26 20 73 74 72 69 6e 67 | 5b 69 2d 33 5d 3d 3d 27 |& string|[i-3]=='|
|00002cf0| 2f 27 20 26 26 20 69 73 | 64 69 67 69 74 28 73 74 |/' && is|digit(st|
|00002d00| 72 69 6e 67 5b 69 2d 32 | 5d 29 20 26 26 20 69 73 |ring[i-2|]) && is|
|00002d10| 64 69 67 69 74 28 73 74 | 72 69 6e 67 5b 69 2d 31 |digit(st|ring[i-1|
|00002d20| 5d 29 29 0d 09 09 09 73 | 74 72 69 6e 67 5b 69 2d |]))....s|tring[i-|
|00002d30| 33 5d 3d 30 3b 0d 09 09 | 73 70 72 69 6e 74 66 28 |3]=0;...|sprintf(|
|00002d40| 73 74 72 69 6e 67 2c 22 | 25 73 2f 25 6c 64 22 2c |string,"|%s/%ld",|
|00002d50| 73 74 72 69 6e 67 2c 63 | 70 75 48 7a 2f 31 30 30 |string,c|puHz/100|
|00002d60| 30 30 30 30 29 3b 0d 09 | 7d 0d 09 72 65 74 75 72 |0000);..|}..retur|
|00002d70| 6e 20 73 74 72 69 6e 67 | 3b 0d 7d 0d 0d 63 68 61 |n string|;.}..cha|
|00002d80| 72 20 2a 49 64 65 6e 74 | 69 66 79 56 69 64 65 6f |r *Ident|ifyVideo|
|00002d90| 28 47 44 48 61 6e 64 6c | 65 20 64 65 76 69 63 65 |(GDHandl|e device|
|00002da0| 29 0d 2f 2f 20 45 2e 67 | 2e 20 22 50 6f 77 65 72 |).// E.g|. "Power|
|00002db0| 42 6f 6f 6b 20 31 37 30 | 20 5c 22 4d 61 63 69 6e |Book 170| \"Macin|
|00002dc0| 74 6f 73 68 20 44 20 42 | 75 69 6c 74 2d 49 6e 20 |tosh D B|uilt-In |
|00002dd0| 56 69 64 65 6f 5c 22 20 | 28 2e 44 69 73 70 6c 61 |Video\" |(.Displa|
|00002de0| 79 5f 56 69 64 65 6f 5f | 41 70 70 6c 65 5f 54 49 |y_Video_|Apple_TI|
|00002df0| 4d 29 22 0d 7b 0d 09 73 | 74 61 74 69 63 20 63 68 |M)".{..s|tatic ch|
|00002e00| 61 72 20 73 74 72 69 6e | 67 5b 32 35 36 5d 3b 0d |ar strin|g[256];.|
|00002e10| 09 6c 6f 6e 67 20 71 75 | 69 63 6b 44 72 61 77 3b |.long qu|ickDraw;|
|00002e20| 0d 09 63 68 61 72 20 2a | 73 6c 6f 74 4e 61 6d 65 |..char *|slotName|
|00002e30| 3b 0d 0d 09 73 74 72 69 | 6e 67 5b 30 5d 3d 30 3b |;...stri|ng[0]=0;|
|00002e40| 0d 09 47 65 73 74 61 6c | 74 28 67 65 73 74 61 6c |..Gestal|t(gestal|
|00002e50| 74 51 75 69 63 6b 64 72 | 61 77 56 65 72 73 69 6f |tQuickdr|awVersio|
|00002e60| 6e 2c 26 71 75 69 63 6b | 44 72 61 77 29 3b 0d 09 |n,&quick|Draw);..|
|00002e70| 69 66 28 71 75 69 63 6b | 44 72 61 77 3c 67 65 73 |if(quick|Draw<ges|
|00002e80| 74 61 6c 74 38 42 69 74 | 51 44 29 7b 0d 09 09 73 |talt8Bit|QD){...s|
|00002e90| 70 72 69 6e 74 66 28 73 | 74 72 69 6e 67 2c 22 25 |printf(s|tring,"%|
|00002ea0| 73 20 22 2c 49 64 65 6e | 74 69 66 79 4d 6f 64 65 |s ",Iden|tifyMode|
|00002eb0| 6c 28 29 29 3b 0d 09 09 | 73 70 72 69 6e 74 66 28 |l());...|sprintf(|
|00002ec0| 73 74 72 69 6e 67 2c 22 | 25 73 5c 22 25 73 5c 22 |string,"|%s\"%s\"|
|00002ed0| 22 2c 73 74 72 69 6e 67 | 2c 22 31 2d 62 69 74 20 |",string|,"1-bit |
|00002ee0| 51 75 69 63 6b 44 72 61 | 77 22 29 3b 0d 09 7d 65 |QuickDra|w");..}e|
|00002ef0| 6c 73 65 7b 0d 09 09 73 | 6c 6f 74 4e 61 6d 65 3d |lse{...s|lotName=|
|00002f00| 47 65 74 44 65 76 69 63 | 65 53 6c 6f 74 4e 61 6d |GetDevic|eSlotNam|
|00002f10| 65 28 64 65 76 69 63 65 | 29 3b 0d 09 09 69 66 28 |e(device|);...if(|
|00002f20| 73 74 72 6c 65 6e 28 73 | 6c 6f 74 4e 61 6d 65 29 |strlen(s|lotName)|
|00002f30| 3d 3d 30 20 7c 7c 20 73 | 74 72 63 6d 70 28 73 6c |==0 || s|trcmp(sl|
|00002f40| 6f 74 4e 61 6d 65 2c 22 | 30 22 29 3d 3d 30 29 73 |otName,"|0")==0)s|
|00002f50| 70 72 69 6e 74 66 28 73 | 74 72 69 6e 67 2c 22 25 |printf(s|tring,"%|
|00002f60| 73 20 22 2c 49 64 65 6e | 74 69 66 79 4d 6f 64 65 |s ",Iden|tifyMode|
|00002f70| 6c 28 29 29 3b 0d 09 09 | 73 70 72 69 6e 74 66 28 |l());...|sprintf(|
|00002f80| 73 74 72 69 6e 67 2c 22 | 25 73 5c 22 25 73 5c 22 |string,"|%s\"%s\"|
|00002f90| 22 2c 73 74 72 69 6e 67 | 2c 47 44 43 61 72 64 4e |",string|,GDCardN|
|00002fa0| 61 6d 65 28 64 65 76 69 | 63 65 29 29 3b 0d 09 09 |ame(devi|ce));...|
|00002fb0| 69 66 28 47 44 56 65 72 | 73 69 6f 6e 28 64 65 76 |if(GDVer|sion(dev|
|00002fc0| 69 63 65 29 3d 3d 30 29 | 73 70 72 69 6e 74 66 28 |ice)==0)|sprintf(|
|00002fd0| 73 74 72 69 6e 67 2c 22 | 25 73 20 28 25 73 29 22 |string,"|%s (%s)"|
|00002fe0| 2c 73 74 72 69 6e 67 2c | 47 44 4e 61 6d 65 53 74 |,string,|GDNameSt|
|00002ff0| 72 28 64 65 76 69 63 65 | 29 29 3b 0d 09 09 65 6c |r(device|));...el|
|00003000| 73 65 20 73 70 72 69 6e | 74 66 28 73 74 72 69 6e |se sprin|tf(strin|
|00003010| 67 2c 22 25 73 20 28 25 | 73 20 76 65 72 73 69 6f |g,"%s (%|s versio|
|00003020| 6e 20 25 64 29 22 0d 09 | 09 09 2c 73 74 72 69 6e |n %d)"..|..,strin|
|00003030| 67 2c 47 44 4e 61 6d 65 | 53 74 72 28 64 65 76 69 |g,GDName|Str(devi|
|00003040| 63 65 29 2c 28 69 6e 74 | 29 47 44 56 65 72 73 69 |ce),(int|)GDVersi|
|00003050| 6f 6e 28 64 65 76 69 63 | 65 29 29 3b 0d 09 09 69 |on(devic|e));...i|
|00003060| 66 28 73 74 72 6c 65 6e | 28 73 6c 6f 74 4e 61 6d |f(strlen|(slotNam|
|00003070| 65 29 3e 30 20 26 26 20 | 73 74 72 63 6d 70 28 73 |e)>0 && |strcmp(s|
|00003080| 6c 6f 74 4e 61 6d 65 2c | 22 30 22 29 21 3d 30 29 |lotName,|"0")!=0)|
|00003090| 73 70 72 69 6e 74 66 28 | 73 74 72 69 6e 67 2c 22 |sprintf(|string,"|
|000030a0| 25 73 20 73 6c 6f 74 20 | 25 73 22 2c 73 74 72 69 |%s slot |%s",stri|
|000030b0| 6e 67 2c 73 6c 6f 74 4e | 61 6d 65 29 3b 0d 09 7d |ng,slotN|ame);..}|
|000030c0| 0d 09 72 65 74 75 72 6e | 20 73 74 72 69 6e 67 3b |..return| string;|
|000030d0| 0d 7d 0d 0d 63 68 61 72 | 20 2a 49 64 65 6e 74 69 |.}..char| *Identi|
|000030e0| 66 79 4f 77 6e 65 72 28 | 76 6f 69 64 29 0d 7b 0d |fyOwner(|void).{.|
|000030f0| 09 73 74 61 74 69 63 20 | 63 68 61 72 20 73 74 72 |.static |char str|
|00003100| 69 6e 67 5b 36 34 5d 3b | 0d 09 75 6e 73 69 67 6e |ing[64];|..unsign|
|00003110| 65 64 20 63 68 61 72 20 | 2a 2a 6f 77 6e 65 72 3b |ed char |**owner;|
|00003120| 0d 09 0d 09 73 74 72 69 | 6e 67 5b 30 5d 3d 30 3b |....stri|ng[0]=0;|
|00003130| 0d 09 6f 77 6e 65 72 3d | 47 65 74 53 74 72 69 6e |..owner=|GetStrin|
|00003140| 67 28 2d 31 36 30 39 36 | 29 3b 09 2f 2f 20 47 65 |g(-16096|);.// Ge|
|00003150| 74 20 6f 77 6e 65 72 27 | 73 20 6e 61 6d 65 20 66 |t owner'|s name f|
|00003160| 72 6f 6d 20 53 79 73 74 | 65 6d 20 66 69 6c 65 0d |rom Syst|em file.|
|00003170| 09 69 66 28 6f 77 6e 65 | 72 21 3d 4e 55 4c 4c 20 |.if(owne|r!=NULL |
|00003180| 26 26 20 2a 6f 77 6e 65 | 72 5b 30 5d 3e 30 29 7b |&& *owne|r[0]>0){|
|00003190| 0d 09 09 6d 65 6d 63 70 | 79 28 73 74 72 69 6e 67 |...memcp|y(string|
|000031a0| 2c 2a 6f 77 6e 65 72 2c | 28 2a 6f 77 6e 65 72 29 |,*owner,|(*owner)|
|000031b0| 5b 30 5d 2b 31 29 3b 0d | 09 09 70 32 63 73 74 72 |[0]+1);.|..p2cstr|
|000031c0| 28 28 75 6e 73 69 67 6e | 65 64 20 63 68 61 72 20 |((unsign|ed char |
|000031d0| 2a 29 73 74 72 69 6e 67 | 29 3b 0d 09 7d 0d 09 72 |*)string|);..}..r|
|000031e0| 65 74 75 72 6e 20 73 74 | 72 69 6e 67 3b 0d 7d 0d |eturn st|ring;.}.|
|000031f0| 0d 63 68 61 72 20 2a 49 | 64 65 6e 74 69 66 79 41 |.char *I|dentifyA|
|00003200| 70 70 6c 69 63 61 74 69 | 6f 6e 28 76 6f 69 64 29 |pplicati|on(void)|
|00003210| 09 2f 2f 20 52 65 74 75 | 72 6e 73 20 6e 61 6d 65 |.// Retu|rns name|
|00003220| 20 6f 66 20 61 70 70 6c | 69 63 61 74 69 6f 6e 2e | of appl|ication.|
|00003230| 0d 7b 0d 09 73 74 61 74 | 69 63 20 63 68 61 72 20 |.{..stat|ic char |
|00003240| 73 74 72 69 6e 67 5b 33 | 32 5d 3b 0d 0d 09 6d 65 |string[3|2];...me|
|00003250| 6d 63 70 79 28 73 74 72 | 69 6e 67 2c 4c 4d 47 65 |mcpy(str|ing,LMGe|
|00003260| 74 43 75 72 41 70 4e 61 | 6d 65 28 29 2c 33 32 29 |tCurApNa|me(),32)|
|00003270| 3b 0d 09 70 32 63 73 74 | 72 28 28 75 6e 73 69 67 |;..p2cst|r((unsig|
|00003280| 6e 65 64 20 63 68 61 72 | 20 2a 29 73 74 72 69 6e |ned char| *)strin|
|00003290| 67 29 3b 0d 09 72 65 74 | 75 72 6e 20 73 74 72 69 |g);..ret|urn stri|
|000032a0| 6e 67 3b 0d 7d 0d 0d 63 | 68 61 72 20 2a 49 64 65 |ng;.}..c|har *Ide|
|000032b0| 6e 74 69 66 79 4d 61 63 | 68 69 6e 65 41 6e 64 54 |ntifyMac|hineAndT|
|000032c0| 79 70 65 28 76 6f 69 64 | 29 3b 0d 0d 63 68 61 72 |ype(void|);..char|
|000032d0| 20 2a 49 64 65 6e 74 69 | 66 79 4d 61 63 68 69 6e | *Identi|fyMachin|
|000032e0| 65 41 6e 64 54 79 70 65 | 28 76 6f 69 64 29 0d 7b |eAndType|(void).{|
|000032f0| 0d 09 69 6e 74 20 65 72 | 72 6f 72 3b 0d 09 6c 6f |..int er|ror;..lo|
|00003300| 6e 67 20 6d 61 63 68 69 | 6e 65 3d 30 3b 0d 09 63 |ng machi|ne=0;..c|
|00003310| 68 61 72 20 2a 73 3b 0d | 0d 09 73 3d 49 64 65 6e |har *s;.|..s=Iden|
|00003320| 74 69 66 79 4d 61 63 68 | 69 6e 65 28 29 3b 0d 09 |tifyMach|ine();..|
|00003330| 65 72 72 6f 72 3d 47 65 | 73 74 61 6c 74 28 67 65 |error=Ge|stalt(ge|
|00003340| 73 74 61 6c 74 4d 61 63 | 68 69 6e 65 54 79 70 65 |staltMac|hineType|
|00003350| 2c 26 6d 61 63 68 69 6e | 65 29 3b 0d 09 73 70 72 |,&machin|e);..spr|
|00003360| 69 6e 74 66 28 73 2c 22 | 25 73 20 47 65 73 74 61 |intf(s,"|%s Gesta|
|00003370| 6c 74 4d 61 63 68 69 6e | 65 54 79 70 65 20 25 6c |ltMachin|eType %l|
|00003380| 64 2e 22 2c 73 2c 6d 61 | 63 68 69 6e 65 29 3b 0d |d.",s,ma|chine);.|
|00003390| 09 72 65 74 75 72 6e 20 | 73 3b 0d 7d 0d 0d 63 68 |.return |s;.}..ch|
|000033a0| 61 72 20 2a 49 64 65 6e | 74 69 66 79 4d 61 63 68 |ar *Iden|tifyMach|
|000033b0| 69 6e 65 28 76 6f 69 64 | 29 0d 7b 0d 09 69 6e 74 |ine(void|).{..int|
|000033c0| 20 65 72 72 6f 72 3b 0d | 09 6c 6f 6e 67 20 66 70 | error;.|.long fp|
|000033d0| 75 2c 70 72 6f 63 65 73 | 73 6f 72 3d 2d 31 2c 73 |u,proces|sor=-1,s|
|000033e0| 79 73 74 65 6d 2c 76 61 | 6c 75 65 2c 73 79 73 41 |ystem,va|lue,sysA|
|000033f0| 72 63 68 69 74 65 63 74 | 75 72 65 3b 0d 09 69 6e |rchitect|ure;..in|
|00003400| 74 20 66 70 75 73 3d 73 | 69 7a 65 6f 66 28 66 70 |t fpus=s|izeof(fp|
|00003410| 75 4e 61 6d 65 29 2f 73 | 69 7a 65 6f 66 28 66 70 |uName)/s|izeof(fp|
|00003420| 75 4e 61 6d 65 5b 30 5d | 29 3b 0d 09 73 74 61 74 |uName[0]|);..stat|
|00003430| 69 63 20 63 68 61 72 20 | 73 74 72 69 6e 67 5b 32 |ic char |string[2|
|00003440| 35 36 5d 3b 0d 09 42 6f | 6f 6c 65 61 6e 20 63 61 |56];..Bo|olean ca|
|00003450| 63 68 65 44 61 74 61 3d | 31 2c 63 61 63 68 65 49 |cheData=|1,cacheI|
|00003460| 6e 73 74 72 75 63 74 69 | 6f 6e 73 3d 31 3b 0d 09 |nstructi|ons=1;..|
|00003470| 6c 6f 6e 67 20 72 6f 6d | 53 69 7a 65 2c 72 6f 6d |long rom|Size,rom|
|00003480| 56 65 72 73 69 6f 6e 2c | 71 44 3b 0d 09 63 68 61 |Version,|qD;..cha|
|00003490| 72 20 2a 70 72 6f 63 65 | 73 73 6f 72 4e 61 6d 65 |r *proce|ssorName|
|000034a0| 2c 2a 6f 77 6e 65 72 2c | 66 70 75 53 74 72 69 6e |,*owner,|fpuStrin|
|000034b0| 67 5b 33 32 5d 3b 0d 09 | 63 68 61 72 20 63 70 75 |g[32];..|char cpu|
|000034c0| 4e 61 6d 65 5b 33 32 5d | 3d 22 22 3b 0d 09 6c 6f |Name[32]|="";..lo|
|000034d0| 6e 67 20 63 70 75 48 7a | 3d 30 2c 62 75 73 48 7a |ng cpuHz|=0,busHz|
|000034e0| 3d 30 3b 0d 09 42 6f 6f | 6c 65 61 6e 20 68 61 73 |=0;..Boo|lean has|
|000034f0| 4c 32 43 61 63 68 65 3b | 0d 09 63 68 61 72 20 63 |L2Cache;|..char c|
|00003500| 61 63 68 65 5b 33 32 5d | 3d 22 22 3b 0d 09 0d 09 |ache[32]|="";....|
|00003510| 47 65 74 43 50 55 50 72 | 6f 70 65 72 74 69 65 73 |GetCPUPr|operties|
|00003520| 28 63 70 75 4e 61 6d 65 | 2c 26 63 70 75 48 7a 2c |(cpuName|,&cpuHz,|
|00003530| 26 68 61 73 4c 32 43 61 | 63 68 65 29 3b 09 2f 2a |&hasL2Ca|che);./*|
|00003540| 20 77 6f 72 6b 73 20 6f | 6e 6c 79 20 6f 6e 20 50 | works o|nly on P|
|00003550| 43 49 20 4d 61 63 73 20 | 2a 2f 0d 09 65 72 72 6f |CI Macs |*/..erro|
|00003560| 72 3d 47 65 73 74 61 6c | 74 28 67 65 73 74 61 6c |r=Gestal|t(gestal|
|00003570| 74 42 75 73 43 6c 6f 63 | 6b 53 70 65 65 64 2c 26 |tBusCloc|kSpeed,&|
|00003580| 62 75 73 48 7a 29 3b 09 | 09 2f 2a 20 77 6f 72 6b |busHz);.|./* work|
|00003590| 73 20 6f 6e 6c 79 20 6f | 6e 20 50 43 49 20 4d 61 |s only o|n PCI Ma|
|000035a0| 63 73 20 2a 2f 0d 09 65 | 72 72 6f 72 3d 47 65 73 |cs */..e|rror=Ges|
|000035b0| 74 61 6c 74 28 67 65 73 | 74 61 6c 74 43 50 55 43 |talt(ges|taltCPUC|
|000035c0| 6c 6f 63 6b 53 70 65 65 | 64 2c 26 63 70 75 48 7a |lockSpee|d,&cpuHz|
|000035d0| 29 3b 09 09 2f 2a 20 77 | 6f 72 6b 73 20 6f 6e 6c |);../* w|orks onl|
|000035e0| 79 20 6f 6e 20 50 43 49 | 20 4d 61 63 73 20 2a 2f |y on PCI| Macs */|
|000035f0| 0d 09 73 74 72 69 6e 67 | 5b 30 5d 3d 30 3b 0d 09 |..string|[0]=0;..|
|00003600| 65 72 72 6f 72 3d 47 65 | 73 74 61 6c 74 28 67 65 |error=Ge|stalt(ge|
|00003610| 73 74 61 6c 74 53 79 73 | 74 65 6d 56 65 72 73 69 |staltSys|temVersi|
|00003620| 6f 6e 2c 26 73 79 73 74 | 65 6d 29 3b 0d 09 69 66 |on,&syst|em);..if|
|00003630| 28 65 72 72 6f 72 29 72 | 65 74 75 72 6e 20 73 74 |(error)r|eturn st|
|00003640| 72 69 6e 67 3b 09 09 09 | 09 09 09 2f 2a 20 47 65 |ring;...|.../* Ge|
|00003650| 73 74 61 6c 74 20 6e 6f | 74 20 61 76 61 69 6c 61 |stalt no|t availa|
|00003660| 62 6c 65 20 2a 2f 0d 09 | 73 79 73 41 72 63 68 69 |ble */..|sysArchi|
|00003670| 74 65 63 74 75 72 65 3d | 67 65 73 74 61 6c 74 36 |tecture=|gestalt6|
|00003680| 38 6b 3b 09 09 09 09 09 | 2f 2a 20 64 65 66 61 75 |8k;.....|/* defau|
|00003690| 6c 74 20 2a 2f 0d 09 65 | 72 72 6f 72 3d 47 65 73 |lt */..e|rror=Ges|
|000036a0| 74 61 6c 74 28 67 65 73 | 74 61 6c 74 53 79 73 41 |talt(ges|taltSysA|
|000036b0| 72 63 68 69 74 65 63 74 | 75 72 65 2c 26 73 79 73 |rchitect|ure,&sys|
|000036c0| 41 72 63 68 69 74 65 63 | 74 75 72 65 29 3b 0d 09 |Architec|ture);..|
|000036d0| 73 77 69 74 63 68 28 73 | 79 73 41 72 63 68 69 74 |switch(s|ysArchit|
|000036e0| 65 63 74 75 72 65 29 7b | 0d 09 09 63 61 73 65 20 |ecture){|...case |
|000036f0| 67 65 73 74 61 6c 74 36 | 38 6b 3a 0d 09 09 09 65 |gestalt6|8k:....e|
|00003700| 72 72 6f 72 3d 47 65 73 | 74 61 6c 74 28 67 65 73 |rror=Ges|talt(ges|
|00003710| 74 61 6c 74 50 72 6f 63 | 65 73 73 6f 72 54 79 70 |taltProc|essorTyp|
|00003720| 65 2c 26 70 72 6f 63 65 | 73 73 6f 72 29 3b 0d 09 |e,&proce|ssor);..|
|00003730| 09 09 73 77 69 74 63 68 | 28 70 72 6f 63 65 73 73 |..switch|(process|
|00003740| 6f 72 29 7b 0d 09 09 09 | 09 63 61 73 65 20 31 3a |or){....|.case 1:|
|00003750| 20 70 72 6f 63 65 73 73 | 6f 72 4e 61 6d 65 3d 22 | process|orName="|
|00003760| 36 38 30 30 30 22 3b 62 | 72 65 61 6b 3b 0d 09 09 |68000";b|reak;...|
|00003770| 09 09 63 61 73 65 20 32 | 3a 20 70 72 6f 63 65 73 |..case 2|: proces|
|00003780| 73 6f 72 4e 61 6d 65 3d | 22 36 38 30 31 30 22 3b |sorName=|"68010";|
|00003790| 62 72 65 61 6b 3b 0d 09 | 09 09 09 63 61 73 65 20 |break;..|...case |
|000037a0| 33 3a 20 70 72 6f 63 65 | 73 73 6f 72 4e 61 6d 65 |3: proce|ssorName|
|000037b0| 3d 22 36 38 30 32 30 22 | 3b 62 72 65 61 6b 3b 0d |="68020"|;break;.|
|000037c0| 09 09 09 09 63 61 73 65 | 20 34 3a 20 70 72 6f 63 |....case| 4: proc|
|000037d0| 65 73 73 6f 72 4e 61 6d | 65 3d 22 36 38 30 33 30 |essorNam|e="68030|
|000037e0| 22 3b 62 72 65 61 6b 3b | 0d 09 09 09 09 63 61 73 |";break;|.....cas|
|000037f0| 65 20 35 3a 20 70 72 6f | 63 65 73 73 6f 72 4e 61 |e 5: pro|cessorNa|
|00003800| 6d 65 3d 22 36 38 30 34 | 30 22 3b 62 72 65 61 6b |me="6804|0";break|
|00003810| 3b 0d 09 09 09 09 64 65 | 66 61 75 6c 74 3a 20 70 |;.....de|fault: p|
|00003820| 72 6f 63 65 73 73 6f 72 | 4e 61 6d 65 3d 22 75 6e |rocessor|Name="un|
|00003830| 6b 6e 6f 77 6e 20 70 72 | 6f 63 65 73 73 6f 72 22 |known pr|ocessor"|
|00003840| 3b 62 72 65 61 6b 3b 0d | 09 09 09 7d 0d 09 09 09 |;break;.|...}....|
|00003850| 62 72 65 61 6b 3b 0d 09 | 09 63 61 73 65 20 67 65 |break;..|.case ge|
|00003860| 73 74 61 6c 74 50 6f 77 | 65 72 50 43 3a 0d 09 09 |staltPow|erPC:...|
|00003870| 09 65 72 72 6f 72 3d 47 | 65 73 74 61 6c 74 28 67 |.error=G|estalt(g|
|00003880| 65 73 74 61 6c 74 4e 61 | 74 69 76 65 43 50 55 74 |estaltNa|tiveCPUt|
|00003890| 79 70 65 2c 26 70 72 6f | 63 65 73 73 6f 72 29 3b |ype,&pro|cessor);|
|000038a0| 0d 09 09 09 73 77 69 74 | 63 68 28 70 72 6f 63 65 |....swit|ch(proce|
|000038b0| 73 73 6f 72 29 7b 0d 09 | 09 09 09 63 61 73 65 20 |ssor){..|...case |
|000038c0| 67 65 73 74 61 6c 74 43 | 50 55 36 30 31 3a 20 70 |gestaltC|PU601: p|
|000038d0| 72 6f 63 65 73 73 6f 72 | 4e 61 6d 65 3d 22 70 70 |rocessor|Name="pp|
|000038e0| 63 36 30 31 22 3b 62 72 | 65 61 6b 3b 0d 09 09 09 |c601";br|eak;....|
|000038f0| 09 63 61 73 65 20 67 65 | 73 74 61 6c 74 43 50 55 |.case ge|staltCPU|
|00003900| 36 30 33 3a 20 70 72 6f | 63 65 73 73 6f 72 4e 61 |603: pro|cessorNa|
|00003910| 6d 65 3d 22 70 70 63 36 | 30 33 22 3b 62 72 65 61 |me="ppc6|03";brea|
|00003920| 6b 3b 0d 20 20 20 20 20 | 09 09 09 63 61 73 65 20 |k;. |...case |
|00003930| 30 78 31 30 36 3a 20 09 | 09 70 72 6f 63 65 73 73 |0x106: .|.process|
|00003940| 6f 72 4e 61 6d 65 3d 22 | 70 70 63 36 30 33 65 22 |orName="|ppc603e"|
|00003950| 3b 62 72 65 61 6b 3b 2f | 2a 20 50 6f 77 65 72 42 |;break;/|* PowerB|
|00003960| 6f 6f 6b 20 35 33 30 30 | 20 2a 2f 0d 09 09 09 09 |ook 5300| */.....|
|00003970| 63 61 73 65 20 67 65 73 | 74 61 6c 74 43 50 55 36 |case ges|taltCPU6|
|00003980| 30 34 3a 20 70 72 6f 63 | 65 73 73 6f 72 4e 61 6d |04: proc|essorNam|
|00003990| 65 3d 22 70 70 63 36 30 | 34 22 3b 62 72 65 61 6b |e="ppc60|4";break|
|000039a0| 3b 0d 09 09 09 09 64 65 | 66 61 75 6c 74 3a 20 70 |;.....de|fault: p|
|000039b0| 72 6f 63 65 73 73 6f 72 | 4e 61 6d 65 3d 22 75 6e |rocessor|Name="un|
|000039c0| 6b 6e 6f 77 6e 20 70 72 | 6f 63 65 73 73 6f 72 22 |known pr|ocessor"|
|000039d0| 3b 62 72 65 61 6b 3b 0d | 09 09 09 7d 0d 09 09 09 |;break;.|...}....|
|000039e0| 62 72 65 61 6b 3b 0d 09 | 09 64 65 66 61 75 6c 74 |break;..|.default|
|000039f0| 3a 0d 09 09 09 70 72 6f | 63 65 73 73 6f 72 4e 61 |:....pro|cessorNa|
|00003a00| 6d 65 3d 22 75 6e 6b 6e | 6f 77 6e 20 70 72 6f 63 |me="unkn|own proc|
|00003a10| 65 73 73 6f 72 22 3b 0d | 09 09 09 62 72 65 61 6b |essor";.|...break|
|00003a20| 3b 0d 09 7d 0d 09 47 65 | 73 74 61 6c 74 28 67 65 |;..}..Ge|stalt(ge|
|00003a30| 73 74 61 6c 74 46 50 55 | 54 79 70 65 2c 26 66 70 |staltFPU|Type,&fp|
|00003a40| 75 29 3b 0d 09 69 66 28 | 66 70 75 3c 30 20 7c 7c |u);..if(|fpu<0 |||
|00003a50| 20 66 70 75 3e 3d 66 70 | 75 73 29 66 70 75 3d 66 | fpu>=fp|us)fpu=f|
|00003a60| 70 75 73 2d 32 3b 0d 09 | 69 66 28 66 70 75 3d 3d |pus-2;..|if(fpu==|
|00003a70| 31 20 26 26 20 47 65 73 | 74 61 6c 74 28 27 46 50 |1 && Ges|talt('FP|
|00003a80| 55 45 27 2c 26 76 61 6c | 75 65 29 3d 3d 30 29 66 |UE',&val|ue)==0)f|
|00003a90| 70 75 3d 66 70 75 73 2d | 31 3b 2f 2f 20 53 6f 66 |pu=fpus-|1;// Sof|
|00003aa0| 74 77 61 72 65 20 46 50 | 55 20 62 79 20 4a 6f 68 |tware FP|U by Joh|
|00003ab0| 6e 20 4e 65 69 6c 20 26 | 20 41 73 73 6f 63 2e 0d |n Neil &| Assoc..|
|00003ac0| 09 69 66 28 66 70 75 3e | 30 29 73 70 72 69 6e 74 |.if(fpu>|0)sprint|
|00003ad0| 66 28 66 70 75 53 74 72 | 69 6e 67 2c 22 2c 20 25 |f(fpuStr|ing,", %|
|00003ae0| 73 22 2c 66 70 75 4e 61 | 6d 65 5b 66 70 75 5d 29 |s",fpuNa|me[fpu])|
|00003af0| 3b 0d 09 65 6c 73 65 20 | 66 70 75 53 74 72 69 6e |;..else |fpuStrin|
|00003b00| 67 5b 30 5d 3d 30 3b 0d | 09 6f 77 6e 65 72 3d 49 |g[0]=0;.|.owner=I|
|00003b10| 64 65 6e 74 69 66 79 4f | 77 6e 65 72 28 29 3b 0d |dentifyO|wner();.|
|00003b20| 09 69 66 28 73 74 72 6c | 65 6e 28 6f 77 6e 65 72 |.if(strl|en(owner|
|00003b30| 29 3e 30 29 73 70 72 69 | 6e 74 66 28 73 74 72 69 |)>0)spri|ntf(stri|
|00003b40| 6e 67 2c 22 25 73 27 73 | 20 22 2c 6f 77 6e 65 72 |ng,"%s's| ",owner|
|00003b50| 29 3b 0d 09 73 70 72 69 | 6e 74 66 28 73 74 72 69 |);..spri|ntf(stri|
|00003b60| 6e 67 2c 22 25 73 25 73 | 22 2c 73 74 72 69 6e 67 |ng,"%s%s|",string|
|00003b70| 2c 49 64 65 6e 74 69 66 | 79 4d 6f 64 65 6c 28 29 |,Identif|yModel()|
|00003b80| 29 3b 0d 09 69 66 28 73 | 74 72 6c 65 6e 28 63 70 |);..if(s|trlen(cp|
|00003b90| 75 4e 61 6d 65 29 3e 30 | 29 7b 0d 09 09 69 66 28 |uName)>0|){...if(|
|00003ba0| 68 61 73 4c 32 43 61 63 | 68 65 29 73 74 72 63 70 |hasL2Cac|he)strcp|
|00003bb0| 79 28 63 61 63 68 65 2c | 22 2c 20 4c 32 20 63 61 |y(cache,|", L2 ca|
|00003bc0| 63 68 65 22 29 3b 0d 09 | 09 65 6c 73 65 20 73 74 |che");..|.else st|
|00003bd0| 72 63 70 79 28 63 61 63 | 68 65 2c 22 22 29 3b 0d |rcpy(cac|he,"");.|
|00003be0| 09 7d 0d 09 73 70 72 69 | 6e 74 66 28 73 74 72 69 |.}..spri|ntf(stri|
|00003bf0| 6e 67 2c 22 25 73 2c 20 | 25 73 25 73 25 73 2c 20 |ng,"%s, |%s%s%s, |
|00003c00| 53 79 73 74 65 6d 20 25 | 6c 78 2e 25 6c 78 22 0d |System %|lx.%lx".|
|00003c10| 09 09 2c 73 74 72 69 6e | 67 2c 70 72 6f 63 65 73 |..,strin|g,proces|
|00003c20| 73 6f 72 4e 61 6d 65 2c | 63 61 63 68 65 2c 66 70 |sorName,|cache,fp|
|00003c30| 75 53 74 72 69 6e 67 2c | 73 79 73 74 65 6d 2f 30 |uString,|system/0|
|00003c40| 78 31 30 30 2c 73 79 73 | 74 65 6d 25 30 78 31 30 |x100,sys|tem%0x10|
|00003c50| 30 2f 30 78 31 30 29 3b | 0d 09 73 79 73 74 65 6d |0/0x10);|..system|
|00003c60| 25 3d 30 78 31 30 3b 0d | 09 69 66 28 73 79 73 74 |%=0x10;.|.if(syst|
|00003c70| 65 6d 29 73 70 72 69 6e | 74 66 28 73 74 72 69 6e |em)sprin|tf(strin|
|00003c80| 67 2c 22 25 73 2e 25 6c | 78 22 2c 73 74 72 69 6e |g,"%s.%l|x",strin|
|00003c90| 67 2c 73 79 73 74 65 6d | 29 3b 0d 09 73 70 72 69 |g,system|);..spri|
|00003ca0| 6e 74 66 28 73 74 72 69 | 6e 67 2c 22 25 73 2e 22 |ntf(stri|ng,"%s."|
|00003cb0| 2c 73 74 72 69 6e 67 29 | 3b 0d 09 69 66 28 30 29 |,string)|;..if(0)|
|00003cc0| 7b 09 2f 2f 20 54 68 65 | 20 72 65 73 74 20 69 73 |{.// The| rest is|
|00003cd0| 20 62 6f 72 69 6e 67 2c | 20 73 6f 20 49 27 76 65 | boring,| so I've|
|00003ce0| 20 64 69 73 61 62 6c 65 | 64 20 69 74 2e 0d 09 09 | disable|d it....|
|00003cf0| 47 65 73 74 61 6c 74 28 | 67 65 73 74 61 6c 74 52 |Gestalt(|gestaltR|
|00003d00| 4f 4d 53 69 7a 65 2c 26 | 72 6f 6d 53 69 7a 65 29 |OMSize,&|romSize)|
|00003d10| 3b 0d 09 09 47 65 73 74 | 61 6c 74 28 67 65 73 74 |;...Gest|alt(gest|
|00003d20| 61 6c 74 52 4f 4d 56 65 | 72 73 69 6f 6e 2c 26 72 |altROMVe|rsion,&r|
|00003d30| 6f 6d 56 65 72 73 69 6f | 6e 29 3b 0d 09 09 73 70 |omVersio|n);...sp|
|00003d40| 72 69 6e 74 66 28 73 74 | 72 69 6e 67 2c 22 25 73 |rintf(st|ring,"%s|
|00003d50| 2c 20 25 6c 64 4b 20 52 | 4f 4d 20 76 65 72 73 69 |, %ldK R|OM versi|
|00003d60| 6f 6e 20 25 6c 64 2b 25 | 6c 64 2a 32 35 36 2e 22 |on %ld+%|ld*256."|
|00003d70| 0d 09 09 09 2c 73 74 72 | 69 6e 67 2c 72 6f 6d 53 |....,str|ing,romS|
|00003d80| 69 7a 65 2f 31 30 32 34 | 2c 72 6f 6d 56 65 72 73 |ize/1024|,romVers|
|00003d90| 69 6f 6e 25 32 35 36 2c | 72 6f 6d 56 65 72 73 69 |ion%256,|romVersi|
|00003da0| 6f 6e 2f 32 35 36 29 3b | 0d 09 09 69 66 28 54 72 |on/256);|...if(Tr|
|00003db0| 61 70 41 76 61 69 6c 61 | 62 6c 65 28 5f 48 57 50 |apAvaila|ble(_HWP|
|00003dc0| 72 69 76 29 29 7b 0d 09 | 09 09 23 69 66 20 21 47 |riv)){..|..#if !G|
|00003dd0| 45 4e 45 52 41 54 49 4e | 47 50 4f 57 45 52 50 43 |ENERATIN|GPOWERPC|
|00003de0| 09 2f 2a 20 61 70 70 61 | 72 65 6e 74 6c 79 20 74 |./* appa|rently t|
|00003df0| 68 65 73 65 20 66 75 6e | 63 74 69 6f 6e 73 20 64 |hese fun|ctions d|
|00003e00| 6f 6e 27 74 20 77 6f 72 | 6b 20 6f 6e 20 50 6f 77 |on't wor|k on Pow|
|00003e10| 65 72 50 43 20 2a 2f 0d | 09 09 09 09 63 61 63 68 |erPC */.|....cach|
|00003e20| 65 44 61 74 61 3d 53 77 | 61 70 44 61 74 61 43 61 |eData=Sw|apDataCa|
|00003e30| 63 68 65 28 31 29 3b 0d | 09 09 09 09 53 77 61 70 |che(1);.|....Swap|
|00003e40| 44 61 74 61 43 61 63 68 | 65 28 63 61 63 68 65 44 |DataCach|e(cacheD|
|00003e50| 61 74 61 29 3b 0d 09 09 | 09 09 63 61 63 68 65 49 |ata);...|..cacheI|
|00003e60| 6e 73 74 72 75 63 74 69 | 6f 6e 73 3d 53 77 61 70 |nstructi|ons=Swap|
|00003e70| 49 6e 73 74 72 75 63 74 | 69 6f 6e 43 61 63 68 65 |Instruct|ionCache|
|00003e80| 28 31 29 3b 0d 09 09 09 | 09 53 77 61 70 49 6e 73 |(1);....|.SwapIns|
|00003e90| 74 72 75 63 74 69 6f 6e | 43 61 63 68 65 28 63 61 |truction|Cache(ca|
|00003ea0| 63 68 65 49 6e 73 74 72 | 75 63 74 69 6f 6e 73 29 |cheInstr|uctions)|
|00003eb0| 3b 0d 09 09 09 09 69 66 | 28 63 61 63 68 65 44 61 |;.....if|(cacheDa|
|00003ec0| 74 61 20 7c 7c 20 63 61 | 63 68 65 49 6e 73 74 72 |ta || ca|cheInstr|
|00003ed0| 75 63 74 69 6f 6e 73 29 | 73 70 72 69 6e 74 66 28 |uctions)|sprintf(|
|00003ee0| 73 74 72 69 6e 67 2c 22 | 25 73 20 43 61 63 68 69 |string,"|%s Cachi|
|00003ef0| 6e 67 22 2c 73 74 72 69 | 6e 67 29 3b 0d 09 09 09 |ng",stri|ng);....|
|00003f00| 09 65 6c 73 65 20 73 70 | 72 69 6e 74 66 28 73 74 |.else sp|rintf(st|
|00003f10| 72 69 6e 67 2c 22 25 73 | 20 4e 6f 20 63 61 63 68 |ring,"%s| No cach|
|00003f20| 69 6e 67 22 2c 73 74 72 | 69 6e 67 29 3b 0d 09 09 |ing",str|ing);...|
|00003f30| 09 09 69 66 28 63 61 63 | 68 65 44 61 74 61 29 73 |..if(cac|heData)s|
|00003f40| 70 72 69 6e 74 66 28 73 | 74 72 69 6e 67 2c 22 25 |printf(s|tring,"%|
|00003f50| 73 20 64 61 74 61 22 2c | 73 74 72 69 6e 67 29 3b |s data",|string);|
|00003f60| 0d 09 09 09 09 69 66 28 | 63 61 63 68 65 44 61 74 |.....if(|cacheDat|
|00003f70| 61 20 26 26 20 63 61 63 | 68 65 49 6e 73 74 72 75 |a && cac|heInstru|
|00003f80| 63 74 69 6f 6e 73 29 73 | 70 72 69 6e 74 66 28 73 |ctions)s|printf(s|
|00003f90| 74 72 69 6e 67 2c 22 25 | 73 20 26 22 2c 73 74 72 |tring,"%|s &",str|
|00003fa0| 69 6e 67 29 3b 0d 09 09 | 09 09 69 66 28 63 61 63 |ing);...|..if(cac|
|00003fb0| 68 65 49 6e 73 74 72 75 | 63 74 69 6f 6e 73 29 73 |heInstru|ctions)s|
|00003fc0| 70 72 69 6e 74 66 28 73 | 74 72 69 6e 67 2c 22 25 |printf(s|tring,"%|
|00003fd0| 73 20 69 6e 73 74 72 75 | 63 74 69 6f 6e 73 22 2c |s instru|ctions",|
|00003fe0| 73 74 72 69 6e 67 29 3b | 0d 09 09 09 09 73 70 72 |string);|.....spr|
|00003ff0| 69 6e 74 66 28 73 74 72 | 69 6e 67 2c 22 25 73 2e |intf(str|ing,"%s.|
|00004000| 22 2c 73 74 72 69 6e 67 | 29 3b 0d 09 09 09 23 65 |",string|);....#e|
|00004010| 6e 64 69 66 0d 09 09 7d | 0d 09 09 76 61 6c 75 65 |ndif...}|...value|
|00004020| 3d 30 3b 0d 09 09 47 65 | 73 74 61 6c 74 28 67 65 |=0;...Ge|stalt(ge|
|00004030| 73 74 61 6c 74 41 64 64 | 72 65 73 73 69 6e 67 4d |staltAdd|ressingM|
|00004040| 6f 64 65 41 74 74 72 2c | 26 76 61 6c 75 65 29 3b |odeAttr,|&value);|
|00004050| 0d 09 09 7b 0d 09 09 09 | 69 66 28 76 61 6c 75 65 |...{....|if(value|
|00004060| 26 31 4c 3c 3c 67 65 73 | 74 61 6c 74 33 32 42 69 |&1L<<ges|talt32Bi|
|00004070| 74 41 64 64 72 65 73 73 | 69 6e 67 29 73 70 72 69 |tAddress|ing)spri|
|00004080| 6e 74 66 28 73 74 72 69 | 6e 67 2c 22 25 73 20 33 |ntf(stri|ng,"%s 3|
|00004090| 32 2d 62 69 74 20 61 64 | 64 72 65 73 73 69 6e 67 |2-bit ad|dressing|
|000040a0| 2e 22 2c 73 74 72 69 6e | 67 29 3b 0d 09 09 09 65 |.",strin|g);....e|
|000040b0| 6c 73 65 20 73 70 72 69 | 6e 74 66 28 73 74 72 69 |lse spri|ntf(stri|
|000040c0| 6e 67 2c 22 25 73 20 32 | 34 2d 62 69 74 20 61 64 |ng,"%s 2|4-bit ad|
|000040d0| 64 72 65 73 73 69 6e 67 | 2e 22 2c 73 74 72 69 6e |dressing|.",strin|
|000040e0| 67 29 3b 0d 09 09 7d 0d | 09 09 47 65 73 74 61 6c |g);...}.|..Gestal|
|000040f0| 74 28 67 65 73 74 61 6c | 74 51 75 69 63 6b 64 72 |t(gestal|tQuickdr|
|00004100| 61 77 56 65 72 73 69 6f | 6e 2c 26 71 44 29 3b 0d |awVersio|n,&qD);.|
|00004110| 09 09 73 77 69 74 63 68 | 28 71 44 2f 30 78 31 30 |..switch|(qD/0x10|
|00004120| 30 29 7b 0d 09 09 09 63 | 61 73 65 20 30 3a 0d 09 |0){....c|ase 0:..|
|00004130| 09 09 09 73 70 72 69 6e | 74 66 28 73 74 72 69 6e |...sprin|tf(strin|
|00004140| 67 2c 22 25 73 20 31 2d | 62 69 74 20 51 75 69 63 |g,"%s 1-|bit Quic|
|00004150| 6b 44 72 61 77 2e 22 2c | 73 74 72 69 6e 67 29 3b |kDraw.",|string);|
|00004160| 0d 09 09 09 09 62 72 65 | 61 6b 3b 0d 09 09 09 63 |.....bre|ak;....c|
|00004170| 61 73 65 20 31 3a 0d 09 | 09 09 09 73 70 72 69 6e |ase 1:..|...sprin|
|00004180| 74 66 28 73 74 72 69 6e | 67 2c 22 25 73 20 38 2d |tf(strin|g,"%s 8-|
|00004190| 62 69 74 20 51 75 69 63 | 6b 44 72 61 77 2e 22 2c |bit Quic|kDraw.",|
|000041a0| 73 74 72 69 6e 67 29 3b | 0d 09 09 09 09 62 72 65 |string);|.....bre|
|000041b0| 61 6b 3b 0d 09 09 09 63 | 61 73 65 20 32 3a 0d 09 |ak;....c|ase 2:..|
|000041c0| 09 09 09 73 70 72 69 6e | 74 66 28 73 74 72 69 6e |...sprin|tf(strin|
|000041d0| 67 2c 22 25 73 20 33 32 | 2d 62 69 74 20 51 75 69 |g,"%s 32|-bit Qui|
|000041e0| 63 6b 44 72 61 77 20 31 | 2e 25 30 32 6c 78 2e 22 |ckDraw 1|.%02lx."|
|000041f0| 2c 73 74 72 69 6e 67 2c | 71 44 25 30 78 31 30 30 |,string,|qD%0x100|
|00004200| 29 3b 0d 09 09 09 09 62 | 72 65 61 6b 3b 0d 09 09 |);.....b|reak;...|
|00004210| 09 64 65 66 61 75 6c 74 | 3a 0d 09 09 09 09 73 70 |.default|:.....sp|
|00004220| 72 69 6e 74 66 28 73 74 | 72 69 6e 67 2c 22 25 73 |rintf(st|ring,"%s|
|00004230| 20 51 75 69 63 6b 44 72 | 61 77 20 30 78 25 6c 78 | QuickDr|aw 0x%lx|
|00004240| 2e 22 2c 73 74 72 69 6e | 67 2c 71 44 29 3b 0d 09 |.",strin|g,qD);..|
|00004250| 09 09 09 62 72 65 61 6b | 3b 0d 09 09 7d 0d 09 7d |...break|;...}..}|
|00004260| 0d 09 72 65 74 75 72 6e | 20 73 74 72 69 6e 67 3b |..return| string;|
|00004270| 0d 7d 0d 0d 63 68 61 72 | 20 2a 49 64 65 6e 74 69 |.}..char| *Identi|
|00004280| 66 79 56 4d 28 76 6f 69 | 64 29 0d 7b 0d 09 2f 2f |fyVM(voi|d).{..//|
|00004290| 20 42 61 73 65 64 20 6f | 6e 20 67 65 73 74 61 6c | Based o|n gestal|
|000042a0| 74 2d 73 65 6c 65 63 74 | 6f 72 73 2d 32 39 2e 65 |t-select|ors-29.e|
|000042b0| 74 78 2c 20 61 76 61 69 | 6c 61 62 6c 65 20 66 72 |tx, avai|lable fr|
|000042c0| 6f 6d 20 49 6e 66 6f 2d | 4d 61 63 2e 0d 09 42 6f |om Info-|Mac...Bo|
|000042d0| 6f 6c 65 61 6e 20 76 6d | 3b 09 09 09 2f 2f 20 56 |olean vm|;...// V|
|000042e0| 4d 20 69 73 20 6f 6e 2c | 20 70 6f 73 73 69 62 6c |M is on,| possibl|
|000042f0| 79 20 64 75 65 20 74 6f | 20 52 41 4d 20 44 6f 75 |y due to| RAM Dou|
|00004300| 62 6c 65 72 0d 09 42 6f | 6f 6c 65 61 6e 20 72 61 |bler..Bo|olean ra|
|00004310| 6d 44 6f 75 62 6c 65 72 | 3b 09 2f 2f 20 52 41 4d |mDoubler|;.// RAM|
|00004320| 20 44 6f 75 62 6c 65 72 | 20 69 73 20 6f 6e 2e 0d | Doubler| is on..|
|00004330| 09 6c 6f 6e 67 20 76 61 | 6c 75 65 3b 0d 09 69 6e |.long va|lue;..in|
|00004340| 74 20 65 72 72 6f 72 3b | 0d 09 63 68 61 72 20 2a |t error;|..char *|
|00004350| 73 3d 22 22 3b 0d 09 0d | 09 65 72 72 6f 72 3d 47 |s="";...|.error=G|
|00004360| 65 73 74 61 6c 74 28 67 | 65 73 74 61 6c 74 56 4d |estalt(g|estaltVM|
|00004370| 41 74 74 72 2c 26 76 61 | 6c 75 65 29 3b 0d 09 76 |Attr,&va|lue);..v|
|00004380| 6d 3d 21 65 72 72 6f 72 | 20 26 26 20 76 61 6c 75 |m=!error| && valu|
|00004390| 65 26 28 31 4c 3c 3c 67 | 65 73 74 61 6c 74 56 4d |e&(1L<<g|estaltVM|
|000043a0| 50 72 65 73 65 6e 74 29 | 3b 0d 09 65 72 72 6f 72 |Present)|;..error|
|000043b0| 3d 47 65 73 74 61 6c 74 | 28 27 76 6d 65 6d 27 2c |=Gestalt|('vmem',|
|000043c0| 26 76 61 6c 75 65 29 3b | 0d 09 72 61 6d 44 6f 75 |&value);|..ramDou|
|000043d0| 62 6c 65 72 3d 21 65 72 | 72 6f 72 20 26 26 20 76 |bler=!er|ror && v|
|000043e0| 61 6c 75 65 3d 3d 27 52 | 61 4d 32 27 3b 0d 09 69 |alue=='R|aM2';..i|
|000043f0| 66 28 76 6d 29 7b 0d 09 | 09 69 66 28 21 72 61 6d |f(vm){..|.if(!ram|
|00004400| 44 6f 75 62 6c 65 72 29 | 73 3d 22 55 73 69 6e 67 |Doubler)|s="Using|
|00004410| 20 56 69 72 74 75 61 6c | 20 4d 65 6d 6f 72 79 2e | Virtual| Memory.|
|00004420| 20 22 3b 0d 09 09 65 6c | 73 65 20 73 3d 22 55 73 | ";...el|se s="Us|
|00004430| 69 6e 67 20 52 41 4d 20 | 44 6f 75 62 6c 65 72 2e |ing RAM |Doubler.|
|00004440| 20 22 3b 0d 09 7d 0d 09 | 72 65 74 75 72 6e 20 73 | ";..}..|return s|
|00004450| 3b 0d 7d 0d 0d 63 68 61 | 72 20 2a 49 64 65 6e 74 |;.}..cha|r *Ident|
|00004460| 69 66 79 47 72 65 65 6e | 77 69 63 68 4d 65 61 6e |ifyGreen|wichMean|
|00004470| 54 69 6d 65 28 76 6f 69 | 64 29 0d 7b 0d 09 4d 61 |Time(voi|d).{..Ma|
|00004480| 63 68 69 6e 65 4c 6f 63 | 61 74 69 6f 6e 20 6c 6f |chineLoc|ation lo|
|00004490| 63 61 74 69 6f 6e 3b 0d | 09 6c 6f 6e 67 20 74 3b |cation;.|.long t;|
|000044a0| 0d 09 64 6f 75 62 6c 65 | 20 68 6f 75 72 73 3b 0d |..double| hours;.|
|000044b0| 09 73 74 61 74 69 63 20 | 63 68 61 72 20 73 5b 36 |.static |char s[6|
|000044c0| 34 5d 3b 0d 0d 09 52 65 | 61 64 4c 6f 63 61 74 69 |4];...Re|adLocati|
|000044d0| 6f 6e 28 26 6c 6f 63 61 | 74 69 6f 6e 29 3b 0d 09 |on(&loca|tion);..|
|000044e0| 69 66 28 6c 6f 63 61 74 | 69 6f 6e 2e 6c 61 74 69 |if(locat|ion.lati|
|000044f0| 74 75 64 65 21 3d 30 20 | 7c 7c 20 6c 6f 63 61 74 |tude!=0 ||| locat|
|00004500| 69 6f 6e 2e 6c 6f 6e 67 | 69 74 75 64 65 21 3d 30 |ion.long|itude!=0|
|00004510| 29 7b 0d 09 09 23 69 66 | 20 55 4e 49 56 45 52 53 |){...#if| UNIVERS|
|00004520| 41 4c 5f 48 45 41 44 45 | 52 53 3e 31 0d 09 09 09 |AL_HEADE|RS>1....|
|00004530| 74 3d 6c 6f 63 61 74 69 | 6f 6e 2e 75 2e 67 6d 74 |t=locati|on.u.gmt|
|00004540| 44 65 6c 74 61 20 26 20 | 30 78 30 30 46 46 46 46 |Delta & |0x00FFFF|
|00004550| 46 46 3b 0d 09 09 23 65 | 6c 73 65 0d 09 09 09 74 |FF;...#e|lse....t|
|00004560| 3d 6c 6f 63 61 74 69 6f | 6e 2e 67 6d 74 46 6c 61 |=locatio|n.gmtFla|
|00004570| 67 73 2e 67 6d 74 44 65 | 6c 74 61 20 26 20 30 78 |gs.gmtDe|lta & 0x|
|00004580| 30 30 46 46 46 46 46 46 | 3b 0d 09 09 23 65 6e 64 |00FFFFFF|;...#end|
|00004590| 69 66 0d 09 09 69 66 28 | 74 20 26 20 30 78 38 30 |if...if(|t & 0x80|
|000045a0| 30 30 30 30 29 74 7c 3d | 30 78 46 46 30 30 30 30 |0000)t|=|0xFF0000|
|000045b0| 30 30 3b 0d 09 09 68 6f | 75 72 73 3d 66 61 62 73 |00;...ho|urs=fabs|
|000045c0| 28 74 2f 33 36 30 30 2e | 30 29 3b 0d 09 09 69 66 |(t/3600.|0);...if|
|000045d0| 28 68 6f 75 72 73 3d 3d | 66 6c 6f 6f 72 28 68 6f |(hours==|floor(ho|
|000045e0| 75 72 73 29 29 73 70 72 | 69 6e 74 66 28 73 2c 22 |urs))spr|intf(s,"|
|000045f0| 25 2e 30 66 22 2c 68 6f | 75 72 73 29 3b 0d 09 09 |%.0f",ho|urs);...|
|00004600| 65 6c 73 65 20 73 70 72 | 69 6e 74 66 28 73 2c 22 |else spr|intf(s,"|
|00004610| 25 2e 31 66 22 2c 68 6f | 75 72 73 29 3b 0d 09 09 |%.1f",ho|urs);...|
|00004620| 69 66 28 74 3c 30 29 73 | 70 72 69 6e 74 66 28 73 |if(t<0)s|printf(s|
|00004630| 2c 22 25 73 20 68 6f 75 | 72 73 20 77 65 73 74 20 |,"%s hou|rs west |
|00004640| 6f 66 20 47 72 65 65 6e | 77 69 63 68 20 6d 65 61 |of Green|wich mea|
|00004650| 6e 20 74 69 6d 65 2e 22 | 2c 73 29 3b 0d 09 09 65 |n time."|,s);...e|
|00004660| 6c 73 65 20 73 70 72 69 | 6e 74 66 28 73 2c 22 25 |lse spri|ntf(s,"%|
|00004670| 73 20 68 6f 75 72 73 20 | 65 61 73 74 20 6f 66 20 |s hours |east of |
|00004680| 47 72 65 65 6e 77 69 63 | 68 20 6d 65 61 6e 20 74 |Greenwic|h mean t|
|00004690| 69 6d 65 2e 22 2c 73 29 | 3b 0d 09 7d 65 6c 73 65 |ime.",s)|;..}else|
|000046a0| 20 73 5b 30 5d 3d 30 3b | 0d 09 72 65 74 75 72 6e | s[0]=0;|..return|
|000046b0| 20 73 3b 0d 7d 0d 0d 2f | 2a 2a 2a 2a 2a 2a 2a 2a | s;.}../|********|
|000046c0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|000046d0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|000046e0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|000046f0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00004700| 2f 0d 0d 2f 2a 0d 55 73 | 69 6e 67 20 41 70 70 6c |/../*.Us|ing Appl|
|00004710| 65 27 73 20 4e 61 6d 65 | 52 65 67 69 73 74 72 79 |e's Name|Registry|
|00004720| 0d 0d 76 6f 69 64 20 47 | 65 74 56 69 64 65 6f 50 |..void G|etVideoP|
|00004730| 72 6f 70 65 72 74 69 65 | 73 28 47 44 48 61 6e 64 |ropertie|s(GDHand|
|00004740| 6c 65 20 64 65 76 69 63 | 65 2c 63 68 61 72 20 2a |le devic|e,char *|
|00004750| 73 6c 6f 74 4e 61 6d 65 | 2c 63 68 61 72 20 2a 63 |slotName|,char *c|
|00004760| 61 72 64 4e 61 6d 65 2c | 63 68 61 72 20 2a 63 61 |ardName,|char *ca|
|00004770| 72 64 4d 6f 64 65 6c 29 | 3b 0d 76 6f 69 64 20 47 |rdModel)|;.void G|
|00004780| 65 74 43 50 55 50 72 6f | 70 65 72 74 69 65 73 28 |etCPUPro|perties(|
|00004790| 63 68 61 72 20 2a 63 70 | 75 4e 61 6d 65 2c 6c 6f |char *cp|uName,lo|
|000047a0| 6e 67 20 2a 63 70 75 48 | 7a 2c 42 6f 6f 6c 65 61 |ng *cpuH|z,Boolea|
|000047b0| 6e 20 2a 68 61 73 4c 32 | 43 61 63 68 65 29 3b 0d |n *hasL2|Cache);.|
|000047c0| 0d 54 77 6f 20 72 6f 75 | 74 69 6e 65 73 20 74 68 |.Two rou|tines th|
|000047d0| 61 74 20 75 73 65 20 74 | 68 65 20 6e 65 77 20 4e |at use t|he new N|
|000047e0| 61 6d 65 20 52 65 67 69 | 73 74 72 79 20 28 61 76 |ame Regi|stry (av|
|000047f0| 61 69 6c 61 62 6c 65 20 | 6f 6e 6c 79 20 6f 6e 20 |ailable |only on |
|00004800| 50 43 49 20 50 6f 77 65 | 72 4d 61 63 73 29 20 74 |PCI Powe|rMacs) t|
|00004810| 6f 0d 64 65 74 65 72 6d | 69 6e 65 20 74 68 65 20 |o.determ|ine the |
|00004820| 63 70 75 20 63 6c 6f 63 | 6b 20 72 61 74 65 2c 20 |cpu cloc|k rate, |
|00004830| 70 72 65 73 65 6e 63 65 | 20 6f 66 20 4c 32 20 63 |presence| of L2 c|
|00004840| 61 63 68 65 2c 20 61 6e | 64 20 74 68 65 20 6e 61 |ache, an|d the na|
|00004850| 6d 65 20 6f 66 20 74 68 | 65 20 50 43 49 20 76 69 |me of th|e PCI vi|
|00004860| 64 65 6f 0d 63 61 72 64 | 2e 20 54 68 65 20 72 6f |deo.card|. The ro|
|00004870| 75 74 69 6e 65 73 20 72 | 65 74 75 72 6e 20 7a 65 |utines r|eturn ze|
|00004880| 72 6f 65 73 20 69 66 20 | 74 68 65 20 4e 61 6d 65 |roes if |the Name|
|00004890| 20 52 65 67 69 73 74 72 | 79 20 69 73 20 6e 6f 74 | Registr|y is not|
|000048a0| 20 61 76 61 69 6c 61 62 | 6c 65 20 28 69 2e 65 2e | availab|le (i.e.|
|000048b0| 20 6f 6e 0d 6e 6f 6e 2d | 50 43 49 20 4d 61 63 73 | on.non-|PCI Macs|
|000048c0| 29 2c 20 6f 72 20 69 66 | 20 63 6f 6d 70 69 6c 65 |), or if| compile|
|000048d0| 64 20 61 73 20 36 38 6b | 20 63 6f 64 65 2e 0d 0d |d as 68k| code...|
|000048e0| 57 41 52 4e 49 4e 47 3a | 20 74 6f 20 65 66 66 65 |WARNING:| to effe|
|000048f0| 63 74 69 76 65 6c 79 20 | 75 73 65 20 41 70 70 6c |ctively |use Appl|
|00004900| 65 27 73 20 4e 61 6d 65 | 52 65 67 69 73 74 72 79 |e's Name|Registry|
|00004910| 20 69 6e 20 79 6f 75 72 | 20 70 72 6f 6a 65 63 74 | in your| project|
|00004920| 20 79 6f 75 20 4d 55 53 | 54 20 68 61 76 65 20 41 | you MUS|T have A|
|00004930| 70 70 6c 65 27 73 0d 4e | 61 6d 65 52 65 67 69 73 |pple's.N|ameRegis|
|00004940| 74 72 79 4c 69 62 2c 20 | 77 68 69 63 68 20 63 6f |tryLib, |which co|
|00004950| 6e 74 61 69 6e 73 20 74 | 68 65 20 67 6c 75 65 20 |ntains t|he glue |
|00004960| 63 6f 64 65 20 74 6f 20 | 61 63 63 65 73 73 20 74 |code to |access t|
|00004970| 68 65 20 4d 61 63 4f 53 | 2e 20 4e 61 6d 65 52 65 |he MacOS|. NameRe|
|00004980| 67 69 73 74 72 79 4c 69 | 62 20 0d 69 73 20 69 6e |gistryLi|b .is in|
|00004990| 20 74 68 65 20 56 69 64 | 65 6f 54 6f 6f 6c 62 6f | the Vid|eoToolbo|
|000049a0| 78 20 4c 69 62 73 20 66 | 6f 6c 64 65 72 3b 20 61 |x Libs f|older; a|
|000049b0| 64 64 20 69 74 20 74 6f | 20 79 6f 75 72 20 70 72 |dd it to| your pr|
|000049c0| 6f 6a 65 63 74 20 61 6e | 64 20 75 73 65 20 74 68 |oject an|d use th|
|000049d0| 65 20 70 6f 70 2d 75 70 | 20 0d 6d 65 6e 75 20 74 |e pop-up| .menu t|
|000049e0| 6f 20 73 65 6c 65 63 74 | 20 22 69 6d 70 6f 72 74 |o select| "import|
|000049f0| 20 27 77 65 61 6b 27 22 | 2e 29 20 41 73 20 6f 66 | 'weak'"|.) As of|
|00004a00| 20 31 2f 39 36 2c 20 41 | 70 70 6c 65 20 68 61 73 | 1/96, A|pple has|
|00004a10| 0d 64 69 73 74 72 69 62 | 75 74 65 64 20 4e 61 6d |.distrib|uted Nam|
|00004a20| 65 52 65 67 69 73 74 72 | 79 2e 68 20 61 6e 64 20 |eRegistr|y.h and |
|00004a30| 4e 61 6d 65 52 65 67 69 | 73 74 72 79 4c 69 62 20 |NameRegi|stryLib |
|00004a40| 6f 6e 6c 79 20 61 73 20 | 70 61 72 74 20 6f 66 20 |only as |part of |
|00004a50| 74 68 65 20 41 70 70 6c | 65 0d 44 65 76 65 6c 6f |the Appl|e.Develo|
|00004a60| 70 65 72 20 4d 61 69 6c | 69 6e 67 20 61 6e 64 20 |per Mail|ing and |
|00004a70| 74 68 65 20 53 44 4b 20 | 53 75 62 73 63 72 69 70 |the SDK |Subscrip|
|00004a80| 74 69 6f 6e 20 28 65 69 | 74 68 65 72 20 63 6f 73 |tion (ei|ther cos|
|00004a90| 74 73 20 24 32 35 30 2f | 79 65 61 72 20 66 72 6f |ts $250/|year fro|
|00004aa0| 6d 20 41 50 44 41 29 2e | 20 54 68 65 73 65 20 0d |m APDA).| These .|
|00004ab0| 74 77 6f 20 66 69 6c 65 | 73 20 61 72 65 20 6e 6f |two file|s are no|
|00004ac0| 74 20 69 6e 63 6c 75 64 | 65 64 20 77 69 74 68 20 |t includ|ed with |
|00004ad0| 4d 65 74 72 6f 77 65 72 | 6b 73 20 43 6f 64 65 57 |Metrower|ks CodeW|
|00004ae0| 61 72 72 69 6f 72 20 38 | 2e 20 59 6f 75 20 64 6f |arrior 8|. You do|
|00004af0| 6e 27 74 20 6e 65 65 64 | 0d 4e 61 6d 65 52 65 67 |n't need|.NameReg|
|00004b00| 69 73 74 72 79 2e 68 2c | 20 62 65 63 61 75 73 65 |istry.h,| because|
|00004b10| 20 49 64 65 6e 74 69 66 | 79 2e 63 20 69 6e 63 6c | Identif|y.c incl|
|00004b20| 75 64 65 73 20 74 68 65 | 20 6e 65 65 64 65 64 20 |udes the| needed |
|00004b30| 64 65 66 69 6e 69 74 69 | 6f 6e 73 2c 20 62 75 74 |definiti|ons, but|
|00004b40| 20 79 6f 75 20 64 6f 20 | 6e 65 65 64 0d 4e 61 6d | you do |need.Nam|
|00004b50| 65 52 65 67 69 73 74 72 | 79 4c 69 62 2c 20 77 68 |eRegistr|yLib, wh|
|00004b60| 69 63 68 20 69 73 20 69 | 6e 20 74 68 65 20 56 69 |ich is i|n the Vi|
|00004b70| 64 65 6f 54 6f 6f 6c 62 | 6f 78 20 4c 69 62 73 20 |deoToolb|ox Libs |
|00004b80| 66 6f 6c 64 65 72 2e 20 | 41 6c 74 65 72 6e 61 74 |folder. |Alternat|
|00004b90| 69 76 65 6c 79 2c 0d 79 | 6f 75 20 6d 61 79 20 73 |ively,.y|ou may s|
|00004ba0| 65 74 20 74 68 65 20 66 | 6c 61 67 20 4e 4f 5f 4e |et the f|lag NO_N|
|00004bb0| 41 4d 45 5f 52 45 47 49 | 53 54 52 59 5f 4c 49 42 |AME_REGI|STRY_LIB|
|00004bc0| 20 74 6f 20 74 72 75 65 | 2c 20 77 68 69 63 68 20 | to true|, which |
|00004bd0| 77 69 6c 6c 20 64 69 73 | 61 62 6c 65 20 74 68 65 |will dis|able the|
|00004be0| 20 72 65 73 74 20 6f 66 | 20 0d 74 68 69 73 20 66 | rest of| .this f|
|00004bf0| 69 6c 65 2c 20 62 75 74 | 20 61 6c 6c 6f 77 73 20 |ile, but| allows |
|00004c00| 79 6f 75 20 74 6f 20 6c | 69 6e 6b 20 61 6e 64 20 |you to l|ink and |
|00004c10| 72 75 6e 20 79 6f 75 72 | 20 70 72 6f 67 72 61 6d |run your| program|
|00004c20| 73 2e 0d 0d 4f 6e 63 65 | 20 63 6f 6d 70 69 6c 65 |s...Once| compile|
|00004c30| 64 20 61 6e 64 20 6c 69 | 6e 6b 65 64 20 77 69 74 |d and li|nked wit|
|00004c40| 68 20 74 68 65 20 4e 61 | 6d 65 52 65 67 69 73 74 |h the Na|meRegist|
|00004c50| 72 79 4c 69 62 20 67 6c | 75 65 2c 20 74 68 69 73 |ryLib gl|ue, this|
|00004c60| 20 63 6f 64 65 20 77 69 | 6c 6c 20 72 75 6e 20 6f | code wi|ll run o|
|00004c70| 6e 20 61 6e 79 0d 50 43 | 49 20 50 6f 77 65 72 4d |n any.PC|I PowerM|
|00004c80| 61 63 2e 20 41 20 74 65 | 6d 70 6f 72 61 72 79 20 |ac. A te|mporary |
|00004c90| 23 69 66 20 73 65 63 74 | 69 6f 6e 20 74 61 6b 65 |#if sect|ion take|
|00004ca0| 73 20 63 61 72 65 20 6f | 66 20 74 68 65 20 6d 69 |s care o|f the mi|
|00004cb0| 73 73 69 6e 67 20 68 65 | 61 64 65 72 20 66 69 6c |ssing he|ader fil|
|00004cc0| 65 2c 20 73 6f 0d 79 6f | 75 27 6c 6c 20 62 65 20 |e, so.yo|u'll be |
|00004cd0| 61 62 6c 65 20 74 6f 20 | 63 6f 6d 70 69 6c 65 2c |able to |compile,|
|00004ce0| 20 62 75 74 20 49 20 64 | 6f 6e 27 74 20 74 68 69 | but I d|on't thi|
|00004cf0| 6e 6b 20 79 6f 75 27 6c | 6c 20 62 65 20 61 62 6c |nk you'l|l be abl|
|00004d00| 65 20 74 6f 20 6c 69 6e | 6b 20 74 68 69 73 20 75 |e to lin|k this u|
|00004d10| 6e 6c 65 73 73 0d 79 6f | 75 20 68 61 76 65 20 4e |nless.yo|u have N|
|00004d20| 61 6d 65 52 65 67 69 73 | 74 72 79 4c 69 62 2e 20 |ameRegis|tryLib. |
|00004d30| 49 20 63 6f 6e 66 65 73 | 73 20 74 6f 20 62 65 69 |I confes|s to bei|
|00004d40| 6e 67 20 73 6f 6d 65 77 | 68 61 74 20 75 6e 73 75 |ng somew|hat unsu|
|00004d50| 72 65 20 6f 6e 20 74 68 | 65 20 6c 61 73 74 20 70 |re on th|e last p|
|00004d60| 6f 69 6e 74 0d 73 69 6e | 63 65 20 74 68 65 72 65 |oint.sin|ce there|
|00004d70| 20 61 72 65 20 73 75 67 | 67 65 73 74 69 6f 6e 73 | are sug|gestions|
|00004d80| 20 69 6e 20 74 68 65 20 | 6f 72 69 67 69 6e 61 6c | in the |original|
|00004d90| 20 73 6f 75 72 63 65 20 | 66 69 6c 65 73 20 74 68 | source |files th|
|00004da0| 61 74 20 4e 61 6d 65 52 | 65 67 69 73 74 72 79 4c |at NameR|egistryL|
|00004db0| 69 62 0d 63 6f 75 6c 64 | 20 62 65 20 69 6e 73 74 |ib.could| be inst|
|00004dc0| 61 6c 6c 65 64 20 69 6e | 20 74 68 65 20 53 79 73 |alled in| the Sys|
|00004dd0| 74 65 6d 3a 45 78 74 65 | 6e 73 69 6f 6e 73 20 66 |tem:Exte|nsions f|
|00004de0| 6f 6c 64 65 72 20 6f 66 | 20 74 68 65 20 74 61 72 |older of| the tar|
|00004df0| 67 65 74 20 6d 61 63 68 | 69 6e 65 20 69 6e 73 74 |get mach|ine inst|
|00004e00| 65 61 64 0d 6f 66 20 62 | 65 69 6e 67 20 6c 69 6e |ead.of b|eing lin|
|00004e10| 6b 65 64 20 69 6e 74 6f | 20 74 68 65 20 61 70 70 |ked into| the app|
|00004e20| 6c 69 63 61 74 69 6f 6e | 20 69 74 73 65 6c 66 2e |lication| itself.|
|00004e30| 20 54 68 61 74 20 69 73 | 20 61 70 70 61 72 65 6e | That is| apparen|
|00004e40| 74 6c 79 20 77 68 61 74 | 20 74 68 65 20 63 61 6c |tly what| the cal|
|00004e50| 6c 0d 62 65 6c 6f 77 20 | 74 6f 20 43 6f 64 65 20 |l.below |to Code |
|00004e60| 46 72 61 67 6d 65 6e 74 | 20 4d 61 6e 61 67 65 72 |Fragment| Manager|
|00004e70| 20 69 73 20 66 6f 72 2e | 20 48 6f 77 65 76 65 72 | is for.| However|
|00004e80| 2c 20 49 20 64 6f 6e 27 | 74 20 72 65 61 6c 6c 79 |, I don'|t really|
|00004e90| 20 75 6e 64 65 72 73 74 | 61 6e 64 20 74 68 69 73 | underst|and this|
|00004ea0| 0d 61 72 63 61 6e 65 20 | 73 74 75 66 66 20 28 69 |.arcane |stuff (i|
|00004eb0| 2e 65 2e 20 22 77 65 61 | 6b 20 6c 69 6e 6b 69 6e |.e. "wea|k linkin|
|00004ec0| 67 22 29 2c 20 61 6e 64 | 20 69 74 20 64 69 64 6e |g"), and| it didn|
|00004ed0| 27 74 20 73 65 65 6d 20 | 77 6f 72 74 68 20 6c 65 |'t seem |worth le|
|00004ee0| 61 72 6e 69 6e 67 20 66 | 6f 72 20 74 68 65 0d 72 |arning f|or the.r|
|00004ef0| 6f 75 74 69 6e 65 73 20 | 69 6e 20 74 68 69 73 20 |outines |in this |
|00004f00| 66 69 6c 65 2e 20 4d 65 | 74 72 6f 77 65 72 6b 73 |file. Me|trowerks|
|00004f10| 20 68 61 73 20 61 20 22 | 77 65 61 6b 2d 6c 69 6e | has a "|weak-lin|
|00004f20| 6b 69 6e 67 22 20 6f 70 | 74 69 6f 6e 2c 20 62 75 |king" op|tion, bu|
|00004f30| 74 20 6c 69 6d 69 74 65 | 64 0d 65 78 70 65 72 69 |t limite|d.experi|
|00004f40| 6d 65 6e 74 61 74 69 6f | 6e 20 73 75 67 67 65 73 |mentatio|n sugges|
|00004f50| 74 73 20 74 68 61 74 20 | 79 6f 75 20 68 61 76 65 |ts that |you have|
|00004f60| 20 74 6f 20 68 61 76 65 | 20 74 68 65 20 6c 69 62 | to have| the lib|
|00004f70| 72 61 72 79 20 69 6e 20 | 6f 72 64 65 72 20 74 6f |rary in |order to|
|00004f80| 20 77 65 61 6b 2d 6c 69 | 6e 6b 0d 74 6f 20 69 74 | weak-li|nk.to it|
|00004f90| 2c 20 77 68 69 63 68 20 | 69 73 20 6e 6f 20 68 65 |, which |is no he|
|00004fa0| 6c 70 20 61 74 20 61 6c | 6c 20 66 6f 72 20 73 6f |lp at al|l for so|
|00004fb0| 6d 65 6f 6e 65 20 77 68 | 6f 20 64 6f 65 73 6e 27 |meone wh|o doesn'|
|00004fc0| 74 20 68 61 76 65 20 74 | 68 65 20 6c 69 62 72 61 |t have t|he libra|
|00004fd0| 72 79 2e 0d 0d 48 49 53 | 54 4f 52 59 3a 0d 31 30 |ry...HIS|TORY:.10|
|00004fe0| 2f 31 33 2f 39 35 20 64 | 67 70 20 77 72 6f 74 65 |/13/95 d|gp wrote|
|00004ff0| 20 47 65 74 56 69 64 65 | 6f 50 72 6f 70 65 72 74 | GetVide|oPropert|
|00005000| 69 65 73 28 29 20 61 6e | 64 20 47 65 74 43 50 55 |ies() an|d GetCPU|
|00005010| 50 72 6f 70 65 72 74 69 | 65 73 28 29 2c 20 62 61 |Properti|es(), ba|
|00005020| 73 65 64 20 6f 6e 20 67 | 65 6e 65 72 61 6c 0d 09 |sed on g|eneral..|
|00005030| 09 61 64 76 69 63 65 20 | 66 72 6f 6d 20 41 70 70 |.advice |from App|
|00005040| 6c 65 20 28 62 65 6c 6f | 77 29 20 61 6e 64 20 0d |le (belo|w) and .|
|00005050| 09 09 74 68 65 20 50 43 | 49 53 6c 6f 74 73 55 74 |..the PC|ISlotsUt|
|00005060| 69 6c 73 2e 63 70 20 73 | 6f 75 72 63 65 20 66 69 |ils.cp s|ource fi|
|00005070| 6c 65 20 66 6f 72 20 41 | 70 70 6c 65 27 73 20 22 |le for A|pple's "|
|00005080| 50 43 49 20 53 6c 6f 74 | 20 50 65 65 6b 22 20 64 |PCI Slot| Peek" d|
|00005090| 65 6d 6f 2c 0d 09 09 69 | 6e 20 74 68 65 20 50 43 |emo,...i|n the PC|
|000050a0| 49 20 64 65 76 65 6c 6f | 70 65 72 27 73 20 6b 69 |I develo|per's ki|
|000050b0| 74 20 69 6e 63 6c 75 64 | 65 64 20 6f 6e 20 74 68 |t includ|ed on th|
|000050c0| 65 20 53 65 70 74 65 6d | 62 65 72 20 27 39 35 20 |e Septem|ber '95 |
|000050d0| 44 65 76 65 6c 6f 70 65 | 72 27 73 20 43 44 2e 20 |Develope|r's CD. |
|000050e0| 0d 0d 48 69 20 44 65 6e | 69 73 0d 20 0d 54 68 61 |..Hi Den|is. .Tha|
|000050f0| 6e 6b 20 79 6f 75 20 66 | 6f 72 20 79 6f 75 72 20 |nk you f|or your |
|00005100| 6c 69 6e 6b 20 28 49 44 | 23 20 31 35 31 34 32 36 |link (ID|# 151426|
|00005110| 29 20 63 6f 6e 63 65 72 | 6e 69 6e 67 20 68 6f 77 |) concer|ning how|
|00005120| 20 74 6f 20 64 65 74 65 | 63 74 20 61 20 4c 32 20 | to dete|ct a L2 |
|00005130| 63 61 63 68 65 20 61 6e | 64 0d 67 65 74 20 74 68 |cache an|d.get th|
|00005140| 65 20 70 72 6f 63 65 73 | 73 6f 72 20 73 70 65 65 |e proces|sor spee|
|00005150| 64 2e 0d 20 0d 4c 65 74 | 27 73 20 6c 6f 6f 6b 20 |d.. .Let|'s look |
|00005160| 61 74 20 74 68 65 20 63 | 61 63 68 65 20 66 69 72 |at the c|ache fir|
|00005170| 73 74 2e 20 20 42 65 66 | 6f 72 65 20 74 68 65 20 |st. Bef|ore the |
|00005180| 69 6e 74 72 6f 64 75 63 | 74 69 6f 6e 20 6f 66 20 |introduc|tion of |
|00005190| 74 68 65 20 50 43 49 20 | 50 6f 77 65 72 0d 4d 61 |the PCI |Power.Ma|
|000051a0| 63 69 6e 74 6f 73 68 20 | 63 6f 6d 70 75 74 65 72 |cintosh |computer|
|000051b0| 73 20 74 68 65 72 65 20 | 77 61 73 20 6e 6f 20 41 |s there |was no A|
|000051c0| 50 49 20 74 6f 20 64 65 | 74 65 63 74 20 74 68 65 |PI to de|tect the|
|000051d0| 20 70 72 65 73 65 6e 74 | 73 20 6f 66 20 74 68 69 | present|s of thi|
|000051e0| 73 20 63 61 63 68 65 2e | 20 20 4f 6e 0d 61 20 50 |s cache.| On.a P|
|000051f0| 43 49 20 4d 61 63 69 6e | 74 6f 73 68 20 74 68 65 |CI Macin|tosh the|
|00005200| 72 65 20 69 73 20 74 68 | 65 20 4e 61 6d 65 20 52 |re is th|e Name R|
|00005210| 65 67 69 73 74 72 79 2e | 20 20 54 68 69 73 20 72 |egistry.| This r|
|00005220| 65 67 69 73 74 72 79 20 | 63 6f 6e 74 61 69 6e 73 |egistry |contains|
|00005230| 20 74 68 69 73 0d 69 6e | 66 6f 72 6d 61 74 69 6f | this.in|formatio|
|00005240| 6e 20 69 6e 20 74 68 65 | 20 66 6f 72 6d 20 6f 66 |n in the| form of|
|00005250| 20 61 20 70 72 6f 70 65 | 72 74 79 2e 20 20 54 68 | a prope|rty. Th|
|00005260| 65 20 70 72 6f 70 65 72 | 74 79 20 6e 61 6d 65 20 |e proper|ty name |
|00005270| 69 73 20 22 6e 61 6d 65 | 22 20 61 6e 64 20 69 66 |is "name|" and if|
|00005280| 0d 74 68 65 72 65 20 69 | 73 20 61 20 4c 32 20 63 |.there i|s a L2 c|
|00005290| 61 63 68 65 20 74 68 65 | 20 70 72 6f 70 65 72 74 |ache the| propert|
|000052a0| 79 20 76 61 6c 75 65 20 | 69 73 20 22 6c 32 2d 63 |y value |is "l2-c|
|000052b0| 61 63 68 65 22 2e 20 20 | 4c 6f 6f 6b 20 61 74 20 |ache". |Look at |
|000052c0| 74 68 65 20 44 65 76 65 | 6c 6f 70 65 72 20 43 44 |the Deve|loper CD|
|000052d0| 0d 66 6f 72 20 53 65 70 | 74 20 39 35 2e 20 20 49 |.for Sep|t 95. I|
|000052e0| 6e 20 74 68 65 20 57 68 | 61 74 27 73 20 4e 65 77 |n the Wh|at's New|
|000052f0| 20 66 6f 6c 64 65 72 20 | 74 68 65 72 65 20 69 73 | folder |there is|
|00005300| 20 74 68 65 20 50 43 49 | 20 44 44 4b 2e 20 20 54 | the PCI| DDK. T|
|00005310| 68 65 72 65 20 69 73 20 | 61 0d 70 72 6f 67 72 61 |here is |a.progra|
|00005320| 6d 20 63 61 6c 6c 65 64 | 20 44 69 73 70 6c 61 79 |m called| Display|
|00005330| 20 4e 61 6d 65 20 52 65 | 67 69 73 74 72 79 20 74 | Name Re|gistry t|
|00005340| 68 61 74 20 77 69 6c 6c | 20 73 68 6f 77 20 77 68 |hat will| show wh|
|00005350| 61 74 20 49 20 68 61 76 | 65 20 6a 75 73 74 20 65 |at I hav|e just e|
|00005360| 78 70 6c 61 69 6e 65 64 | 2e 0d 4f 66 20 63 6f 75 |xplained|..Of cou|
|00005370| 72 73 65 20 69 74 20 6d | 75 73 74 20 72 75 6e 20 |rse it m|ust run |
|00005380| 6f 6e 20 61 20 50 43 49 | 20 6d 61 63 68 69 6e 65 |on a PCI| machine|
|00005390| 2e 20 20 54 68 65 72 65 | 20 69 73 20 61 6c 73 6f |. There| is also|
|000053a0| 20 61 20 64 6f 63 75 6d | 65 6e 74 20 63 61 6c 6c | a docum|ent call|
|000053b0| 65 64 0d 22 44 65 73 69 | 67 6e 69 6e 67 20 50 43 |ed."Desi|gning PC|
|000053c0| 49 20 43 61 72 64 73 26 | 44 72 69 76 65 72 73 2e |I Cards&|Drivers.|
|000053d0| 2e 2e 2e 22 20 74 68 61 | 74 20 73 68 6f 77 73 20 |..." tha|t shows |
|000053e0| 65 78 61 6d 70 6c 65 73 | 20 6f 66 20 75 73 69 6e |examples| of usin|
|000053f0| 67 20 74 68 65 20 4e 61 | 6d 65 0d 52 65 67 69 73 |g the Na|me.Regis|
|00005400| 74 72 79 20 74 6f 20 73 | 65 61 72 63 68 20 66 6f |try to s|earch fo|
|00005410| 72 20 73 79 73 74 65 6d | 20 72 65 73 6f 75 72 63 |r system| resourc|
|00005420| 65 73 2e 0d 20 0d 4e 6f | 77 20 74 68 65 20 43 50 |es.. .No|w the CP|
|00005430| 55 20 73 70 65 65 64 2e | 20 20 4c 69 6b 65 20 74 |U speed.| Like t|
|00005440| 68 65 20 6c 61 73 74 20 | 63 61 73 65 2c 20 62 65 |he last |case, be|
|00005450| 66 6f 72 65 20 50 43 49 | 20 4d 61 63 73 20 74 68 |fore PCI| Macs th|
|00005460| 65 72 65 20 77 61 73 20 | 6e 6f 20 64 69 72 65 63 |ere was |no direc|
|00005470| 74 0d 63 61 6c 6c 20 74 | 68 61 74 20 63 6f 75 6c |t.call t|hat coul|
|00005480| 64 20 62 65 20 6d 61 64 | 65 20 74 6f 20 64 65 74 |d be mad|e to det|
|00005490| 65 72 6d 69 6e 65 20 43 | 50 55 20 73 70 65 65 64 |ermine C|PU speed|
|000054a0| 2e 20 20 54 68 65 72 65 | 20 61 72 65 20 47 65 73 |. There| are Ges|
|000054b0| 74 61 6c 74 20 63 61 6c | 6c 73 20 66 6f 72 0d 43 |talt cal|ls for.C|
|000054c0| 50 55 20 74 79 70 65 20 | 69 66 20 74 68 61 74 27 |PU type |if that'|
|000054d0| 73 20 61 6e 79 20 68 65 | 6c 70 2e 20 20 48 6f 77 |s any he|lp. How|
|000054e0| 65 76 65 72 2c 20 74 68 | 65 72 65 20 61 72 65 20 |ever, th|ere are |
|000054f0| 43 50 55 20 61 63 63 65 | 6c 65 72 61 74 6f 72 20 |CPU acce|lerator |
|00005500| 63 61 72 64 73 20 73 6f | 20 74 68 61 74 0d 77 6f |cards so| that.wo|
|00005510| 75 6c 64 20 70 72 65 73 | 65 6e 74 20 61 20 70 72 |uld pres|ent a pr|
|00005520| 6f 62 6c 65 6d 2e 20 20 | 54 68 65 20 74 77 6f 20 |oblem. |The two |
|00005530| 63 61 6c 6c 73 20 79 6f | 75 20 6d 65 6e 74 69 6f |calls yo|u mentio|
|00005540| 6e 65 64 20 28 47 65 74 | 43 50 55 53 50 65 65 64 |ned (Get|CPUSPeed|
|00005550| 20 26 0d 4d 61 78 69 6d | 75 6d 50 72 6f 63 65 73 | &.Maxim|umProces|
|00005560| 73 53 70 65 65 64 29 20 | 61 72 65 20 62 6f 74 68 |sSpeed) |are both|
|00005570| 20 66 6f 72 20 70 6f 72 | 74 61 62 6c 65 20 4d 61 | for por|table Ma|
|00005580| 63 73 20 74 68 61 74 20 | 75 73 65 20 74 68 65 20 |cs that |use the |
|00005590| 50 6f 77 65 72 20 4d 61 | 6e 61 67 65 72 2e 0d 54 |Power Ma|nager..T|
|000055a0| 68 65 20 74 72 61 70 73 | 20 66 6f 72 20 74 68 65 |he traps| for the|
|000055b0| 73 65 20 63 61 6c 6c 73 | 20 61 72 65 20 6e 6f 74 |se calls| are not|
|000055c0| 20 69 6d 70 6c 65 6d 65 | 6e 74 65 64 20 6f 6e 20 | impleme|nted on |
|000055d0| 6f 74 68 65 72 20 4d 61 | 63 73 2e 20 20 41 74 20 |other Ma|cs. At |
|000055e0| 6c 65 61 73 74 20 6e 6f | 74 20 74 68 65 0d 39 35 |least no|t the.95|
|000055f0| 30 30 20 74 68 61 74 20 | 49 20 74 72 69 65 64 2e |00 that |I tried.|
|00005600| 20 20 48 6f 77 65 76 65 | 72 2c 20 50 43 49 20 4d | Howeve|r, PCI M|
|00005610| 61 63 73 20 61 6e 64 20 | 74 68 65 20 4e 61 6d 65 |acs and |the Name|
|00005620| 20 52 65 67 69 73 74 72 | 79 20 63 6f 6e 74 61 69 | Registr|y contai|
|00005630| 6e 20 74 68 69 73 0d 69 | 6e 66 6f 72 6d 61 74 69 |n this.i|nformati|
|00005640| 6f 6e 20 61 6c 73 6f 2e | 20 20 41 67 61 69 6e 20 |on also.| Again |
|00005650| 67 6f 20 74 6f 20 44 69 | 73 70 6c 61 79 20 4e 61 |go to Di|splay Na|
|00005660| 6d 65 20 52 65 67 69 73 | 74 72 79 20 61 6e 64 20 |me Regis|try and |
|00005670| 6c 6f 6f 6b 20 61 74 20 | 74 68 65 0d 44 65 76 69 |look at |the.Devi|
|00005680| 63 65 73 3a 64 65 76 69 | 63 65 2d 74 72 65 65 3b |ces:devi|ce-tree;|
|00005690| 50 6f 77 65 72 50 43 2c | 36 30 34 20 70 72 6f 70 |PowerPC,|604 prop|
|000056a0| 65 72 74 79 2e 20 20 45 | 78 70 61 6e 64 20 69 74 |erty. E|xpand it|
|000056b0| 20 61 6e 64 20 74 68 65 | 72 65 20 69 73 20 61 6e | and the|re is an|
|000056c0| 20 61 64 64 69 74 69 6f | 6e 61 6c 0d 73 75 62 20 | additio|nal.sub |
|000056d0| 70 72 6f 70 65 72 74 79 | 20 63 61 6c 6c 65 64 20 |property| called |
|000056e0| 22 63 6c 6f 63 6b 2d 66 | 72 65 71 75 65 6e 63 79 |"clock-f|requency|
|000056f0| 22 2e 20 20 4d 79 20 39 | 35 30 30 20 73 68 6f 77 |". My 9|500 show|
|00005700| 20 31 33 32 30 30 30 30 | 30 30 2e 0d 20 0d 53 6f | 1320000|00.. .So|
|00005710| 20 79 6f 75 20 68 61 76 | 65 20 77 68 61 74 20 79 | you hav|e what y|
|00005720| 6f 75 20 77 61 6e 74 20 | 62 75 74 20 73 74 61 72 |ou want |but star|
|00005730| 74 69 6e 67 20 77 69 74 | 68 20 50 43 49 20 4d 61 |ting wit|h PCI Ma|
|00005740| 63 73 2e 0d 20 0d 52 65 | 67 61 72 64 73 0d 20 0d |cs.. .Re|gards. .|
|00005750| 57 61 79 6e 65 20 46 6c | 61 6e 73 62 75 72 67 0d |Wayne Fl|ansburg.|
|00005760| 44 65 76 65 6c 6f 70 65 | 72 20 54 65 63 68 6e 69 |Develope|r Techni|
|00005770| 63 61 6c 20 53 75 70 70 | 6f 72 74 0d 41 70 70 6c |cal Supp|ort.Appl|
|00005780| 65 20 43 6f 6d 70 75 74 | 65 72 0d 31 32 20 4f 63 |e Comput|er.12 Oc|
|00005790| 74 6f 62 65 72 20 31 39 | 39 35 0d 2a 2f 0d 0d 23 |tober 19|95.*/..#|
|000057a0| 69 66 20 55 4e 49 56 45 | 52 53 41 4c 5f 48 45 41 |if UNIVE|RSAL_HEA|
|000057b0| 44 45 52 53 3e 31 0d 09 | 23 69 66 6e 64 65 66 20 |DERS>1..|#ifndef |
|000057c0| 5f 5f 43 4f 44 45 46 52 | 41 47 4d 45 4e 54 53 5f |__CODEFR|AGMENTS_|
|000057d0| 5f 0d 09 09 23 69 6e 63 | 6c 75 64 65 20 3c 43 6f |_...#inc|lude <Co|
|000057e0| 64 65 46 72 61 67 6d 65 | 6e 74 73 2e 68 3e 0d 09 |deFragme|nts.h>..|
|000057f0| 23 65 6e 64 69 66 0d 23 | 65 6c 73 65 0d 09 23 75 |#endif.#|else..#u|
|00005800| 6e 64 65 66 20 4e 4f 5f | 4e 41 4d 45 5f 52 45 47 |ndef NO_|NAME_REG|
|00005810| 49 53 54 52 59 5f 4c 49 | 42 0d 09 23 64 65 66 69 |ISTRY_LI|B..#defi|
|00005820| 6e 65 20 4e 4f 5f 4e 41 | 4d 45 5f 52 45 47 49 53 |ne NO_NA|ME_REGIS|
|00005830| 54 52 59 5f 4c 49 42 20 | 31 0d 23 65 6e 64 69 66 |TRY_LIB |1.#endif|
|00005840| 0d 2f 2f 20 54 68 65 20 | 76 65 72 73 69 6f 6e 20 |.// The |version |
|00005850| 6d 61 63 72 6f 20 55 4e | 49 56 45 52 53 41 4c 5f |macro UN|IVERSAL_|
|00005860| 49 4e 54 45 52 46 41 43 | 45 53 5f 56 45 52 53 49 |INTERFAC|ES_VERSI|
|00005870| 4f 4e 20 69 73 20 64 65 | 66 69 6e 65 64 20 69 6e |ON is de|fined in|
|00005880| 20 41 70 70 6c 65 27 73 | 20 43 6f 6e 64 69 74 69 | Apple's| Conditi|
|00005890| 6f 6e 61 6c 4d 61 63 72 | 6f 73 2e 68 2c 0d 2f 2f |onalMacr|os.h,.//|
|000058a0| 20 62 75 74 20 6f 6e 6c | 79 20 73 69 6e 63 65 20 | but onl|y since |
|000058b0| 76 65 72 73 69 6f 6e 20 | 32 2e 31 20 28 77 68 69 |version |2.1 (whi|
|000058c0| 63 68 20 77 61 73 20 64 | 69 73 74 72 69 62 75 74 |ch was d|istribut|
|000058d0| 65 64 20 77 69 74 68 20 | 43 6f 64 65 57 61 72 72 |ed with |CodeWarr|
|000058e0| 69 6f 72 20 38 29 2e 0d | 23 69 66 20 55 4e 49 56 |ior 8)..|#if UNIV|
|000058f0| 45 52 53 41 4c 5f 49 4e | 54 45 52 46 41 43 45 53 |ERSAL_IN|TERFACES|
|00005900| 5f 56 45 52 53 49 4f 4e | 3e 3d 30 78 30 32 31 32 |_VERSION|>=0x0212|
|00005910| 0d 09 23 69 66 6e 64 65 | 66 20 5f 5f 4e 41 4d 45 |..#ifnde|f __NAME|
|00005920| 52 45 47 49 53 54 52 59 | 5f 5f 0d 09 09 23 69 6e |REGISTRY|__...#in|
|00005930| 63 6c 75 64 65 20 3c 4e | 61 6d 65 52 65 67 69 73 |clude <N|ameRegis|
|00005940| 74 72 79 2e 68 3e 0d 09 | 23 65 6e 64 69 66 0d 23 |try.h>..|#endif.#|
|00005950| 65 6c 73 65 0d 09 23 69 | 66 20 21 64 65 66 69 6e |else..#i|f !defin|
|00005960| 65 64 28 4e 4f 5f 4e 41 | 4d 45 5f 52 45 47 49 53 |ed(NO_NA|ME_REGIS|
|00005970| 54 52 59 5f 4c 49 42 29 | 20 26 26 20 21 64 65 66 |TRY_LIB)| && !def|
|00005980| 69 6e 65 64 28 5f 5f 4e | 41 4d 45 52 45 47 49 53 |ined(__N|AMEREGIS|
|00005990| 54 52 59 5f 5f 29 0d 09 | 09 2f 2f 20 41 73 20 6f |TRY__)..|.// As o|
|000059a0| 66 20 31 30 2f 31 33 2f | 39 35 2c 20 41 70 70 6c |f 10/13/|95, Appl|
|000059b0| 65 20 68 61 73 20 64 69 | 73 74 72 69 62 75 74 65 |e has di|stribute|
|000059c0| 64 20 4e 61 6d 65 52 65 | 67 69 73 74 72 79 2e 68 |d NameRe|gistry.h|
|000059d0| 20 61 6e 64 20 4e 61 6d | 65 52 65 67 69 73 74 72 | and Nam|eRegistr|
|000059e0| 79 4c 69 62 20 6f 6e 6c | 79 20 74 6f 20 0d 09 09 |yLib onl|y to ...|
|000059f0| 2f 2f 20 41 70 70 6c 65 | 20 44 65 76 65 6c 6f 70 |// Apple| Develop|
|00005a00| 65 72 73 2e 20 4e 65 69 | 74 68 65 72 20 69 73 20 |ers. Nei|ther is |
|00005a10| 69 6e 63 6c 75 64 65 64 | 20 77 69 74 68 20 4d 65 |included| with Me|
|00005a20| 74 72 6f 77 65 72 6b 73 | 20 43 6f 64 65 57 61 72 |trowerks| CodeWar|
|00005a30| 72 69 6f 72 20 37 2e 0d | 09 09 2f 2f 20 54 68 65 |rior 7..|..// The|
|00005a40| 20 66 6f 6c 6c 6f 77 69 | 6e 67 20 64 65 66 69 6e | followi|ng defin|
|00005a50| 69 74 69 6f 6e 73 20 61 | 6e 64 20 70 72 6f 74 6f |itions a|nd proto|
|00005a60| 74 79 70 65 73 2c 20 63 | 6f 70 69 65 64 20 66 72 |types, c|opied fr|
|00005a70| 6f 6d 20 4e 61 6d 65 52 | 65 67 69 73 74 72 79 2e |om NameR|egistry.|
|00005a80| 68 2c 20 61 72 65 20 6a | 75 73 74 20 0d 09 09 2f |h, are j|ust .../|
|00005a90| 2f 20 65 6e 6f 75 67 68 | 20 74 6f 20 61 6c 6c 6f |/ enough| to allo|
|00005aa0| 77 20 63 6f 6d 70 69 6c | 61 74 69 6f 6e 20 6f 66 |w compil|ation of|
|00005ab0| 20 74 68 69 73 20 66 69 | 6c 65 20 77 69 74 68 6f | this fi|le witho|
|00005ac0| 75 74 20 74 68 65 20 68 | 65 61 64 65 72 20 66 69 |ut the h|eader fi|
|00005ad0| 6c 65 2e 20 48 6f 77 65 | 76 65 72 2c 20 0d 09 09 |le. Howe|ver, ...|
|00005ae0| 2f 2f 20 79 6f 75 27 6c | 6c 20 73 74 69 6c 6c 20 |// you'l|l still |
|00005af0| 6e 65 65 64 20 4e 61 6d | 65 52 65 67 69 73 74 72 |need Nam|eRegistr|
|00005b00| 79 4c 69 62 20 69 6e 20 | 6f 72 64 65 72 20 74 6f |yLib in |order to|
|00005b10| 20 6c 69 6e 6b 2e 20 0d | 09 09 2f 2f 20 49 74 27 | link. .|..// It'|
|00005b20| 73 20 69 6e 20 74 68 65 | 20 56 69 64 65 6f 54 6f |s in the| VideoTo|
|00005b30| 6f 6c 62 6f 78 20 4c 69 | 62 20 66 6f 6c 64 65 72 |olbox Li|b folder|
|00005b40| 2e 0d 09 09 74 79 70 65 | 64 65 66 20 55 49 6e 74 |....type|def UInt|
|00005b50| 33 32 20 52 65 67 49 74 | 65 72 61 74 69 6f 6e 4f |32 RegIt|erationO|
|00005b60| 70 3b 0d 09 09 74 79 70 | 65 64 65 66 20 52 65 67 |p;...typ|edef Reg|
|00005b70| 49 74 65 72 61 74 69 6f | 6e 4f 70 20 52 65 67 45 |Iteratio|nOp RegE|
|00005b80| 6e 74 72 79 49 74 65 72 | 61 74 69 6f 6e 4f 70 3b |ntryIter|ationOp;|
|00005b90| 0d 09 09 73 74 72 75 63 | 74 20 52 65 67 45 6e 74 |...struc|t RegEnt|
|00005ba0| 72 79 49 74 65 72 20 7b | 0d 09 09 09 76 6f 69 64 |ryIter {|....void|
|00005bb0| 20 2a 6f 70 61 71 75 65 | 3b 0d 09 09 7d 3b 0d 09 | *opaque|;...};..|
|00005bc0| 09 74 79 70 65 64 65 66 | 20 73 74 72 75 63 74 20 |.typedef| struct |
|00005bd0| 52 65 67 45 6e 74 72 79 | 49 74 65 72 20 2a 52 65 |RegEntry|Iter *Re|
|00005be0| 67 45 6e 74 72 79 49 74 | 65 72 50 74 72 3b 0d 09 |gEntryIt|erPtr;..|
|00005bf0| 09 74 79 70 65 64 65 66 | 20 73 74 72 75 63 74 20 |.typedef| struct |
|00005c00| 52 65 67 45 6e 74 72 79 | 49 74 65 72 20 52 65 67 |RegEntry|Iter Reg|
|00005c10| 45 6e 74 72 79 49 74 65 | 72 3b 0d 09 09 73 74 72 |EntryIte|r;...str|
|00005c20| 75 63 74 20 52 65 67 45 | 6e 74 72 79 49 44 20 7b |uct RegE|ntryID {|
|00005c30| 0d 09 09 09 55 49 6e 74 | 38 20 6f 70 61 71 75 65 |....UInt|8 opaque|
|00005c40| 5b 31 36 5d 3b 0d 09 09 | 7d 3b 0d 09 09 74 79 70 |[16];...|};...typ|
|00005c50| 65 64 65 66 20 73 74 72 | 75 63 74 20 52 65 67 45 |edef str|uct RegE|
|00005c60| 6e 74 72 79 49 44 20 52 | 65 67 45 6e 74 72 79 49 |ntryID R|egEntryI|
|00005c70| 44 2c 20 2a 52 65 67 45 | 6e 74 72 79 49 44 50 74 |D, *RegE|ntryIDPt|
|00005c80| 72 3b 0d 09 09 74 79 70 | 65 64 65 66 20 63 68 61 |r;...typ|edef cha|
|00005c90| 72 20 52 65 67 43 53 74 | 72 50 61 74 68 4e 61 6d |r RegCSt|rPathNam|
|00005ca0| 65 3b 0d 09 09 74 79 70 | 65 64 65 66 20 55 49 6e |e;...typ|edef UIn|
|00005cb0| 74 33 32 20 52 65 67 50 | 61 74 68 4e 61 6d 65 53 |t32 RegP|athNameS|
|00005cc0| 69 7a 65 3b 0d 09 09 65 | 6e 75 6d 20 7b 0d 09 09 |ize;...e|num {...|
|00005cd0| 09 6b 52 65 67 4d 61 78 | 69 6d 75 6d 50 72 6f 70 |.kRegMax|imumProp|
|00005ce0| 65 72 74 79 4e 61 6d 65 | 4c 65 6e 67 74 68 20 3d |ertyName|Length =|
|00005cf0| 20 33 31 2c 09 09 09 09 | 09 09 09 2f 2a 20 4d 61 | 31,....|.../* Ma|
|00005d00| 78 20 6c 65 6e 67 74 68 | 20 6f 66 20 50 72 6f 70 |x length| of Prop|
|00005d10| 65 72 74 79 20 4e 61 6d | 65 20 2a 2f 0d 09 09 09 |erty Nam|e */....|
|00005d20| 6b 52 65 67 50 72 6f 70 | 65 72 74 79 4e 61 6d 65 |kRegProp|ertyName|
|00005d30| 54 65 72 6d 69 6e 61 74 | 6f 72 09 3d 20 30 78 30 |Terminat|or.= 0x0|
|00005d40| 30 2c 09 09 09 09 09 09 | 09 2f 2a 20 27 5c 30 27 |0,......|./* '\0'|
|00005d50| 20 2a 2f 0d 09 09 09 6b | 52 65 67 49 74 65 72 43 | */....k|RegIterC|
|00005d60| 6f 6e 74 69 6e 75 65 20 | 3d 20 30 78 31 55 4c 0d |ontinue |= 0x1UL.|
|00005d70| 09 09 7d 3b 0d 09 09 74 | 79 70 65 64 65 66 20 63 |..};...t|ypedef c|
|00005d80| 68 61 72 20 52 65 67 50 | 72 6f 70 65 72 74 79 4e |har RegP|ropertyN|
|00005d90| 61 6d 65 2c 20 2a 52 65 | 67 50 72 6f 70 65 72 74 |ame, *Re|gPropert|
|00005da0| 79 4e 61 6d 65 50 74 72 | 2c 20 52 65 67 50 72 6f |yNamePtr|, RegPro|
|00005db0| 70 65 72 74 79 4e 61 6d | 65 42 75 66 5b 6b 52 65 |pertyNam|eBuf[kRe|
|00005dc0| 67 4d 61 78 69 6d 75 6d | 50 72 6f 70 65 72 74 79 |gMaximum|Property|
|00005dd0| 4e 61 6d 65 4c 65 6e 67 | 74 68 20 2b 20 31 5d 3b |NameLeng|th + 1];|
|00005de0| 0d 09 09 74 79 70 65 64 | 65 66 20 55 49 6e 74 33 |...typed|ef UInt3|
|00005df0| 32 20 52 65 67 50 72 6f | 70 65 72 74 79 56 61 6c |2 RegPro|pertyVal|
|00005e00| 75 65 53 69 7a 65 3b 0d | 09 09 65 78 74 65 72 6e |ueSize;.|..extern|
|00005e10| 20 4f 53 53 74 61 74 75 | 73 20 52 65 67 69 73 74 | OSStatu|s Regist|
|00005e20| 72 79 45 6e 74 72 79 49 | 74 65 72 61 74 65 43 72 |ryEntryI|terateCr|
|00005e30| 65 61 74 65 28 52 65 67 | 45 6e 74 72 79 49 74 65 |eate(Reg|EntryIte|
|00005e40| 72 20 2a 63 6f 6f 6b 69 | 65 29 3b 0d 09 09 65 78 |r *cooki|e);...ex|
|00005e50| 74 65 72 6e 20 4f 53 53 | 74 61 74 75 73 20 52 65 |tern OSS|tatus Re|
|00005e60| 67 69 73 74 72 79 45 6e | 74 72 79 49 74 65 72 61 |gistryEn|tryItera|
|00005e70| 74 65 44 69 73 70 6f 73 | 65 28 52 65 67 45 6e 74 |teDispos|e(RegEnt|
|00005e80| 72 79 49 74 65 72 20 2a | 63 6f 6f 6b 69 65 29 3b |ryIter *|cookie);|
|00005e90| 0d 09 09 65 78 74 65 72 | 6e 20 4f 53 53 74 61 74 |...exter|n OSStat|
|00005ea0| 75 73 20 52 65 67 69 73 | 74 72 79 45 6e 74 72 79 |us Regis|tryEntry|
|00005eb0| 49 74 65 72 61 74 65 28 | 52 65 67 45 6e 74 72 79 |Iterate(|RegEntry|
|00005ec0| 49 74 65 72 20 2a 63 6f | 6f 6b 69 65 2c 20 52 65 |Iter *co|okie, Re|
|00005ed0| 67 45 6e 74 72 79 49 74 | 65 72 61 74 69 6f 6e 4f |gEntryIt|erationO|
|00005ee0| 70 20 72 65 6c 61 74 69 | 6f 6e 73 68 69 70 2c 20 |p relati|onship, |
|00005ef0| 52 65 67 45 6e 74 72 79 | 49 44 20 2a 66 6f 75 6e |RegEntry|ID *foun|
|00005f00| 64 45 6e 74 72 79 2c 20 | 42 6f 6f 6c 65 61 6e 20 |dEntry, |Boolean |
|00005f10| 2a 64 6f 6e 65 29 3b 0d | 09 09 65 78 74 65 72 6e |*done);.|..extern|
|00005f20| 20 4f 53 53 74 61 74 75 | 73 20 52 65 67 69 73 74 | OSStatu|s Regist|
|00005f30| 72 79 45 6e 74 72 79 54 | 6f 50 61 74 68 53 69 7a |ryEntryT|oPathSiz|
|00005f40| 65 28 63 6f 6e 73 74 20 | 52 65 67 45 6e 74 72 79 |e(const |RegEntry|
|00005f50| 49 44 20 2a 65 6e 74 72 | 79 49 44 2c 20 52 65 67 |ID *entr|yID, Reg|
|00005f60| 50 61 74 68 4e 61 6d 65 | 53 69 7a 65 20 2a 70 61 |PathName|Size *pa|
|00005f70| 74 68 53 69 7a 65 29 3b | 0d 09 09 65 78 74 65 72 |thSize);|...exter|
|00005f80| 6e 20 4f 53 53 74 61 74 | 75 73 20 52 65 67 69 73 |n OSStat|us Regis|
|00005f90| 74 72 79 43 53 74 72 45 | 6e 74 72 79 54 6f 50 61 |tryCStrE|ntryToPa|
|00005fa0| 74 68 28 63 6f 6e 73 74 | 20 52 65 67 45 6e 74 72 |th(const| RegEntr|
|00005fb0| 79 49 44 20 2a 65 6e 74 | 72 79 49 44 2c 20 52 65 |yID *ent|ryID, Re|
|00005fc0| 67 43 53 74 72 50 61 74 | 68 4e 61 6d 65 20 2a 70 |gCStrPat|hName *p|
|00005fd0| 61 74 68 4e 61 6d 65 2c | 20 52 65 67 50 61 74 68 |athName,| RegPath|
|00005fe0| 4e 61 6d 65 53 69 7a 65 | 20 70 61 74 68 53 69 7a |NameSize| pathSiz|
|00005ff0| 65 29 3b 0d 09 09 65 78 | 74 65 72 6e 20 4f 53 53 |e);...ex|tern OSS|
|00006000| 74 61 74 75 73 20 52 65 | 67 69 73 74 72 79 50 72 |tatus Re|gistryPr|
|00006010| 6f 70 65 72 74 79 47 65 | 74 53 69 7a 65 28 63 6f |opertyGe|tSize(co|
|00006020| 6e 73 74 20 52 65 67 45 | 6e 74 72 79 49 44 20 2a |nst RegE|ntryID *|
|00006030| 65 6e 74 72 79 49 44 2c | 20 63 6f 6e 73 74 20 52 |entryID,| const R|
|00006040| 65 67 50 72 6f 70 65 72 | 74 79 4e 61 6d 65 20 2a |egProper|tyName *|
|00006050| 70 72 6f 70 65 72 74 79 | 4e 61 6d 65 2c 20 52 65 |property|Name, Re|
|00006060| 67 50 72 6f 70 65 72 74 | 79 56 61 6c 75 65 53 69 |gPropert|yValueSi|
|00006070| 7a 65 20 2a 70 72 6f 70 | 65 72 74 79 53 69 7a 65 |ze *prop|ertySize|
|00006080| 29 3b 0d 09 09 65 78 74 | 65 72 6e 20 4f 53 53 74 |);...ext|ern OSSt|
|00006090| 61 74 75 73 20 52 65 67 | 69 73 74 72 79 50 72 6f |atus Reg|istryPro|
|000060a0| 70 65 72 74 79 47 65 74 | 28 63 6f 6e 73 74 20 52 |pertyGet|(const R|
|000060b0| 65 67 45 6e 74 72 79 49 | 44 20 2a 65 6e 74 72 79 |egEntryI|D *entry|
|000060c0| 49 44 2c 20 63 6f 6e 73 | 74 20 52 65 67 50 72 6f |ID, cons|t RegPro|
|000060d0| 70 65 72 74 79 4e 61 6d | 65 20 2a 70 72 6f 70 65 |pertyNam|e *prope|
|000060e0| 72 74 79 4e 61 6d 65 2c | 20 76 6f 69 64 20 2a 70 |rtyName,| void *p|
|000060f0| 72 6f 70 65 72 74 79 56 | 61 6c 75 65 2c 20 52 65 |ropertyV|alue, Re|
|00006100| 67 50 72 6f 70 65 72 74 | 79 56 61 6c 75 65 53 69 |gPropert|yValueSi|
|00006110| 7a 65 20 2a 70 72 6f 70 | 65 72 74 79 53 69 7a 65 |ze *prop|ertySize|
|00006120| 29 3b 0d 09 09 65 78 74 | 65 72 6e 20 4f 53 53 74 |);...ext|ern OSSt|
|00006130| 61 74 75 73 20 52 65 67 | 69 73 74 72 79 45 6e 74 |atus Reg|istryEnt|
|00006140| 72 79 49 44 44 69 73 70 | 6f 73 65 28 52 65 67 45 |ryIDDisp|ose(RegE|
|00006150| 6e 74 72 79 49 44 20 2a | 69 64 29 3b 0d 09 23 65 |ntryID *|id);..#e|
|00006160| 6e 64 69 66 0d 23 65 6e | 64 69 66 0d 23 69 6e 63 |ndif.#en|dif.#inc|
|00006170| 6c 75 64 65 20 3c 73 74 | 64 69 6f 2e 68 3e 0d 23 |lude <st|dio.h>.#|
|00006180| 69 6e 63 6c 75 64 65 20 | 3c 73 74 72 69 6e 67 2e |include |<string.|
|00006190| 68 3e 0d 2f 2a 0d 09 52 | 65 67 50 72 6f 70 65 72 |h>./*..R|egProper|
|000061a0| 74 79 4d 6f 64 69 66 69 | 65 72 73 20 70 72 6f 70 |tyModifi|ers prop|
|000061b0| 65 72 74 79 4d 6f 64 69 | 66 69 65 72 73 3b 0d 09 |ertyModi|fiers;..|
|000061c0| 69 66 28 30 20 26 26 20 | 21 65 72 72 6f 72 29 7b |if(0 && |!error){|
|000061d0| 0d 09 09 65 72 72 6f 72 | 3d 52 65 67 69 73 74 72 |...error|=Registr|
|000061e0| 79 50 72 6f 70 65 72 74 | 79 47 65 74 4d 6f 64 28 |yPropert|yGetMod(|
|000061f0| 26 65 6e 74 72 79 2c 66 | 6f 75 6e 64 50 72 6f 70 |&entry,f|oundProp|
|00006200| 65 72 74 79 2c 26 70 72 | 6f 70 65 72 74 79 4d 6f |erty,&pr|opertyMo|
|00006210| 64 69 66 69 65 72 73 29 | 3b 0d 09 7d 0d 2a 2f 0d |difiers)|;..}.*/.|
|00006220| 0d 76 6f 69 64 20 47 65 | 74 56 69 64 65 6f 50 72 |.void Ge|tVideoPr|
|00006230| 6f 70 65 72 74 69 65 73 | 28 47 44 48 61 6e 64 6c |operties|(GDHandl|
|00006240| 65 20 64 65 76 69 63 65 | 2c 63 68 61 72 20 2a 73 |e device|,char *s|
|00006250| 6c 6f 74 4e 61 6d 65 2c | 63 68 61 72 20 2a 63 61 |lotName,|char *ca|
|00006260| 72 64 4e 61 6d 65 2c 63 | 68 61 72 20 2a 63 61 72 |rdName,c|har *car|
|00006270| 64 4d 6f 64 65 6c 29 3b | 0d 76 6f 69 64 20 47 65 |dModel);|.void Ge|
|00006280| 74 43 50 55 50 72 6f 70 | 65 72 74 69 65 73 28 63 |tCPUProp|erties(c|
|00006290| 68 61 72 20 2a 63 70 75 | 4e 61 6d 65 2c 6c 6f 6e |har *cpu|Name,lon|
|000062a0| 67 20 2a 63 70 75 48 7a | 2c 42 6f 6f 6c 65 61 6e |g *cpuHz|,Boolean|
|000062b0| 20 2a 68 61 73 4c 32 43 | 61 63 68 65 29 3b 0d 0d | *hasL2C|ache);..|
|000062c0| 76 6f 69 64 20 47 65 74 | 56 69 64 65 6f 50 72 6f |void Get|VideoPro|
|000062d0| 70 65 72 74 69 65 73 28 | 47 44 48 61 6e 64 6c 65 |perties(|GDHandle|
|000062e0| 20 64 65 76 69 63 65 2c | 63 68 61 72 20 2a 73 6c | device,|char *sl|
|000062f0| 6f 74 4e 61 6d 65 2c 63 | 68 61 72 20 2a 63 61 72 |otName,c|har *car|
|00006300| 64 4e 61 6d 65 2c 63 68 | 61 72 20 2a 63 61 72 64 |dName,ch|ar *card|
|00006310| 4d 6f 64 65 6c 29 0d 7b | 0d 23 69 66 20 4e 4f 5f |Model).{|.#if NO_|
|00006320| 4e 41 4d 45 5f 52 45 47 | 49 53 54 52 59 5f 4c 49 |NAME_REG|ISTRY_LI|
|00006330| 42 20 7c 7c 20 21 47 45 | 4e 45 52 41 54 49 4e 47 |B || !GE|NERATING|
|00006340| 50 4f 57 45 52 50 43 0d | 09 64 65 76 69 63 65 3b |POWERPC.|.device;|
|00006350| 0d 09 73 6c 6f 74 4e 61 | 6d 65 5b 30 5d 3d 30 3b |..slotNa|me[0]=0;|
|00006360| 0d 09 63 61 72 64 4e 61 | 6d 65 5b 30 5d 3d 30 3b |..cardNa|me[0]=0;|
|00006370| 0d 09 63 61 72 64 4d 6f | 64 65 6c 5b 30 5d 3d 30 |..cardMo|del[0]=0|
|00006380| 3b 0d 09 72 65 74 75 72 | 6e 3b 0d 23 65 6c 73 65 |;..retur|n;.#else|
|00006390| 0d 09 2f 2a 0d 09 41 73 | 73 75 6d 65 20 77 65 27 |../*..As|sume we'|
|000063a0| 72 65 20 72 75 6e 6e 69 | 6e 67 20 6e 61 74 69 76 |re runni|ng nativ|
|000063b0| 65 20 6f 6e 20 70 70 63 | 2e 0d 09 49 66 20 74 68 |e on ppc|...If th|
|000063c0| 69 73 20 77 65 72 65 20 | 63 6f 6d 70 69 6c 65 64 |is were |compiled|
|000063d0| 20 61 73 20 36 38 6b 20 | 63 6f 64 65 2c 20 74 68 | as 68k |code, th|
|000063e0| 65 20 63 61 6c 6c 73 20 | 74 6f 20 74 68 65 20 4e |e calls |to the N|
|000063f0| 61 6d 65 52 65 67 69 73 | 74 72 79 4c 69 62 2c 20 |ameRegis|tryLib, |
+--------+-------------------------+-------------------------+--------+--------+
Only 25.0 KB of data is shown above.