home *** CD-ROM | disk | FTP | other *** search
/ MacHack 1997 / MacHack 1997.toast / Hacks / Hacks ’96 / Audio dcmds / Audio CD dcmds.sit / Audio CD dcmds.π / Read me first ! < prev    next >
MacBinary  |  1994-08-31  |  5.4 KB  |  [TEXT/KAHL]

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: Read me first !

ConfidenceProgramDetectionMatch TypeSupport
10% dexvert MacBinary (archive/macBinary) fallback Supported
1% dexvert Text File (text/txt) fallback Supported
100% file MacBinary II, inited, Wed Aug 31 18:58:06 1994, modified Wed Aug 31 18:58:06 1994, creator Think C, type ASCII, 4925 bytes "Read me first !" , at 0x13bd 382 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[KAHL]



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 0f 52 65 61 64 20 6d | 65 20 66 69 72 73 74 20 |..Read m|e first |
|00000010| 21 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |!.......|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 54 45 58 54 4b 41 48 | 4c 01 00 00 00 00 00 00 |.TEXTKAH|L.......|
|00000050| 00 00 00 00 00 13 3d 00 | 00 01 7e aa 8a bb 7e aa |......=.|..~...~.|
|00000060| 8a bb 7e 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 ce 8e 00 00 |........|........|
|00000080| 20 20 20 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a | *****|********|
|00000090| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 0d 20 20 20 2a |********|***. *|
|000000a0| 20 20 54 68 69 6e 6b 20 | 43 20 64 63 6d 64 20 31 | Think |C dcmd 1|
|000000b0| 2e 30 2e 31 20 20 2a 0d | 20 20 20 2a 2a 2a 2a 2a |.0.1 *.| *****|
|000000c0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|000000d0| 2a 2a 2a 0d 0d 20 20 20 | 57 72 69 74 74 65 6e 20 |***.. |Written |
|000000e0| 62 79 20 50 2e 20 53 74 | 61 64 65 6c 6d 61 6e 6e |by P. St|adelmann|
|000000f0| 2c 20 41 75 67 75 73 74 | 20 31 39 39 34 2e 0d 0d |, August| 1994...|
|00000100| a5 a5 20 49 6e 74 72 6f | 64 75 63 74 69 6f 6e 20 |.. Intro|duction |
|00000110| a5 a5 0d 0d 20 20 20 54 | 68 69 73 20 70 61 63 6b |.... T|his pack|
|00000120| 61 67 65 20 61 6c 6c 6f | 77 73 20 79 6f 75 20 74 |age allo|ws you t|
|00000130| 6f 20 77 72 69 74 65 20 | 64 63 6d 64 73 20 69 6e |o write |dcmds in|
|00000140| 20 54 68 69 6e 6b 20 43 | 2e 20 49 74 20 63 6f 6e | Think C|. It con|
|00000150| 74 61 69 6e 73 20 74 68 | 65 20 67 6c 75 65 20 63 |tains th|e glue c|
|00000160| 6f 64 65 0d 20 20 20 6e | 65 63 65 73 73 61 72 79 |ode. n|ecessary|
|00000170| 20 74 6f 20 6c 69 6e 6b | 20 74 68 65 20 22 64 63 | to link| the "dc|
|00000180| 6d 64 2e 6f 22 20 6c 69 | 62 72 61 72 79 2c 20 61 |md.o" li|brary, a|
|00000190| 6e 64 20 54 68 69 6e 6b | 20 50 75 74 2c 20 61 20 |nd Think| Put, a |
|000001a0| 63 6f 6c 6c 65 63 74 69 | 6f 6e 20 6f 66 20 72 6f |collecti|on of ro|
|000001b0| 75 74 69 6e 65 73 0d 20 | 20 20 74 6f 20 63 72 65 |utines. | to cre|
|000001c0| 61 74 65 20 66 6f 72 6d | 61 74 74 65 64 20 6f 75 |ate form|atted ou|
|000001d0| 74 70 75 74 20 69 6e 20 | 64 63 6d 64 73 2e 0d 20 |tput in |dcmds.. |
|000001e0| 20 20 0d 20 20 20 49 4d | 50 4f 52 54 41 4e 54 20 | . IM|PORTANT |
|000001f0| 3a 20 54 68 65 72 65 20 | 69 73 20 6e 6f 20 63 68 |: There |is no ch|
|00000200| 61 6e 67 65 20 69 6e 20 | 74 68 65 20 69 6e 74 65 |ange in |the inte|
|00000210| 72 66 61 63 65 20 62 65 | 74 77 65 65 6e 20 76 65 |rface be|tween ve|
|00000220| 72 73 69 6f 6e 20 31 2e | 30 20 61 6e 64 20 31 2e |rsion 1.|0 and 1.|
|00000230| 30 2e 31 0d 20 20 20 20 | 20 20 20 20 20 20 20 20 |0.1. | |
|00000240| 20 20 20 54 68 75 73 2c | 20 74 68 65 72 65 20 69 | Thus,| there i|
|00000250| 73 20 6e 6f 20 6e 65 65 | 64 20 74 6f 20 6d 6f 64 |s no nee|d to mod|
|00000260| 69 66 69 79 20 79 6f 75 | 72 20 63 6f 64 65 2e 0d |ifiy you|r code..|
|00000270| 0d a5 a5 20 48 6f 77 20 | 74 6f 20 75 73 65 20 28 |... How |to use (|
|00000280| 54 68 69 6e 6b 20 43 20 | 37 2e 30 20 6f 72 20 6c |Think C |7.0 or l|
|00000290| 61 74 65 72 29 20 a5 a5 | 0d 0d 20 20 20 54 68 65 |ater) ..|.. The|
|000002a0| 20 66 6f 6c 6c 6f 77 69 | 6e 67 20 61 70 70 6c 69 | followi|ng appli|
|000002b0| 65 73 20 74 6f 20 54 68 | 69 6e 6b 20 43 20 37 2e |es to Th|ink C 7.|
|000002c0| 30 20 6f 72 20 6c 61 74 | 65 72 2e 20 49 66 20 79 |0 or lat|er. If y|
|000002d0| 6f 75 20 75 73 65 20 61 | 6e 20 65 61 72 6c 69 65 |ou use a|n earlie|
|000002e0| 72 20 76 65 72 73 69 6f | 6e 0d 20 20 20 6f 66 20 |r versio|n. of |
|000002f0| 54 68 69 6e 6b 20 43 2c | 20 70 6c 65 61 73 65 20 |Think C,| please |
|00000300| 72 65 66 65 72 20 74 6f | 20 22 48 6f 77 20 74 6f |refer to| "How to|
|00000310| 20 75 73 65 20 28 54 68 | 69 6e 6b 20 43 20 36 2e | use (Th|ink C 6.|
|00000320| 30 2e 78 20 6f 72 20 65 | 61 72 6c 69 65 72 29 22 |0.x or e|arlier)"|
|00000330| 0d 0d 31 29 20 50 75 74 | 20 74 68 65 20 66 69 6c |..1) Put| the fil|
|00000340| 65 73 20 22 54 68 69 6e | 6b 5f 64 63 6d 64 2e 68 |es "Thin|k_dcmd.h|
|00000350| 22 2c 20 22 54 68 69 6e | 6b 5f 70 75 74 2e 68 22 |", "Thin|k_put.h"|
|00000360| 2c 20 22 54 68 69 6e 6b | 20 64 63 6d 64 20 67 6c |, "Think| dcmd gl|
|00000370| 75 65 22 20 61 6e 64 20 | 22 54 68 69 6e 6b 20 50 |ue" and |"Think P|
|00000380| 75 74 20 4c 69 62 22 0d | 20 20 20 77 68 65 72 65 |ut Lib".| where|
|00000390| 20 74 68 65 20 50 72 6f | 6a 65 63 74 20 4d 61 6e | the Pro|ject Man|
|000003a0| 61 67 65 72 20 63 61 6e | 20 66 69 6e 64 20 74 68 |ager can| find th|
|000003b0| 65 6d 20 28 6c 69 6b 65 | 20 69 6e 20 74 68 65 20 |em (like| in the |
|000003c0| 22 4d 61 63 20 4c 69 62 | 72 61 69 72 69 65 73 22 |"Mac Lib|rairies"|
|000003d0| 20 61 6e 64 0d 20 20 20 | 22 4d 61 63 20 23 69 6e | and. |"Mac #in|
|000003e0| 63 6c 75 64 65 73 22 20 | 66 6f 6c 64 65 72 73 29 |cludes" |folders)|
|000003f0| 2e 0d 0d 32 29 20 44 6f | 20 74 68 65 20 73 61 6d |...2) Do| the sam|
|00000400| 65 20 77 69 74 68 20 74 | 68 65 20 66 69 6c 65 73 |e with t|he files|
|00000410| 20 22 64 63 6d 64 2e 68 | 22 20 61 6e 64 20 22 64 | "dcmd.h|" and "d|
|00000420| 63 6d 64 47 6c 75 65 2e | 61 2e 6f 22 2e 20 54 68 |cmdGlue.|a.o". Th|
|00000430| 65 73 65 20 66 69 6c 65 | 73 20 61 72 65 20 61 76 |ese file|s are av|
|00000440| 61 69 6c 61 62 6c 65 0d | 20 20 20 61 6c 6f 6e 67 |ailable.| along|
|00000450| 20 77 69 74 68 20 4d 61 | 63 73 42 75 67 20 66 72 | with Ma|csBug fr|
|00000460| 6f 6d 20 66 74 70 2e 61 | 70 70 6c 65 2e 63 6f 6d |om ftp.a|pple.com|
|00000470| 20 69 6e 20 74 68 65 20 | 64 74 73 2f 6d 61 63 2f | in the |dts/mac/|
|00000480| 74 6f 6f 6c 73 2f 6d 61 | 63 73 62 75 67 2f 20 64 |tools/ma|csbug/ d|
|00000490| 69 72 65 63 74 6f 72 79 | 2e 0d 20 0d 33 29 20 44 |irectory|.. .3) D|
|000004a0| 72 6f 70 20 74 68 65 20 | 66 6f 6c 64 65 72 20 6e |rop the |folder n|
|000004b0| 61 6d 65 64 20 22 54 68 | 69 6e 6b 20 64 63 6d 64 |amed "Th|ink dcmd|
|000004c0| 22 20 69 6e 74 6f 20 74 | 68 65 20 28 50 72 6f 6a |" into t|he (Proj|
|000004d0| 65 63 74 20 4d 6f 64 65 | 6c 73 29 20 66 6f 6c 64 |ect Mode|ls) fold|
|000004e0| 65 72 2e 0d 20 20 20 0d | 34 29 20 49 6e 20 74 68 |er.. .|4) In th|
|000004f0| 65 20 50 72 6f 6a 65 63 | 74 20 4d 61 6e 61 67 65 |e Projec|t Manage|
|00000500| 72 2c 20 63 72 65 61 74 | 65 20 61 20 6e 65 77 20 |r, creat|e a new |
|00000510| 70 72 6f 6a 65 63 74 2e | 20 43 68 6f 6f 73 65 20 |project.| Choose |
|00000520| 22 54 68 69 6e 6b 20 64 | 63 6d 64 22 20 69 6e 20 |"Think d|cmd" in |
|00000530| 70 72 6f 6a 65 63 74 20 | 6c 69 73 74 2e 0d 20 20 |project |list.. |
|00000540| 20 41 64 64 20 79 6f 75 | 72 20 63 6f 64 65 20 69 | Add you|r code i|
|00000550| 6e 20 74 68 65 20 64 63 | 6d 64 2e 63 20 66 69 6c |n the dc|md.c fil|
|00000560| 65 20 3a 20 77 72 69 74 | 65 20 74 68 65 20 43 6f |e : writ|e the Co|
|00000570| 6d 6d 61 6e 64 45 6e 74 | 72 79 20 63 6f 64 65 20 |mmandEnt|ry code |
|00000580| 61 73 20 64 65 73 63 72 | 69 62 65 64 20 69 6e 20 |as descr|ibed in |
|00000590| 0d 20 20 20 63 68 61 70 | 74 65 72 20 38 20 6f 66 |. chap|ter 8 of|
|000005a0| 20 74 68 65 20 62 6f 6f | 6b 20 22 4d 61 63 73 42 | the boo|k "MacsB|
|000005b0| 75 67 20 52 65 66 65 72 | 65 6e 63 65 20 61 6e 64 |ug Refer|ence and|
|000005c0| 20 44 65 62 75 67 67 69 | 6e 67 20 52 65 66 65 72 | Debuggi|ng Refer|
|000005d0| 65 6e 63 65 22 20 66 72 | 6f 6d 0d 20 20 20 41 70 |ence" fr|om. Ap|
|000005e0| 70 6c 65 20 43 6f 6d 70 | 75 74 65 72 2c 20 49 6e |ple Comp|uter, In|
|000005f0| 63 2e 0d 0d 35 29 20 55 | 73 65 20 74 68 65 20 22 |c...5) U|se the "|
|00000600| 53 65 74 20 50 72 6f 6a | 65 63 74 20 54 79 70 65 |Set Proj|ect Type|
|00000610| 22 20 63 6f 6d 6d 61 6e | 64 20 74 6f 20 63 68 6f |" comman|d to cho|
|00000620| 6f 73 65 20 74 68 65 20 | 6e 61 6d 65 20 61 6e 64 |ose the |name and|
|00000630| 20 69 64 20 6f 66 20 79 | 6f 75 72 20 64 63 6d 64 | id of y|our dcmd|
|00000640| 2e 20 52 65 6d 65 6d 62 | 65 72 0d 20 20 20 74 68 |. Rememb|er. th|
|00000650| 61 74 20 74 68 65 20 64 | 63 6d 64 20 6e 61 6d 65 |at the d|cmd name|
|00000660| 20 28 75 73 65 64 20 74 | 6f 20 72 75 6e 20 74 68 | (used t|o run th|
|00000670| 65 20 64 63 6d 64 20 69 | 6e 20 4d 61 63 73 42 75 |e dcmd i|n MacsBu|
|00000680| 67 29 20 69 73 20 74 68 | 65 20 6e 61 6d 65 20 6f |g) is th|e name o|
|00000690| 66 20 74 68 65 20 64 63 | 6d 64 20 72 65 73 6f 75 |f the dc|md resou|
|000006a0| 72 63 65 2e 0d 0d 36 29 | 20 4f 6e 63 65 20 79 6f |rce...6)| Once yo|
|000006b0| 75 20 68 61 76 65 20 62 | 75 69 6c 74 20 74 68 65 |u have b|uilt the|
|000006c0| 20 64 63 6d 64 2c 20 75 | 73 65 20 61 20 72 65 73 | dcmd, u|se a res|
|000006d0| 6f 75 72 63 65 20 65 64 | 69 74 6f 72 20 74 6f 20 |ource ed|itor to |
|000006e0| 63 6f 70 79 20 74 68 65 | 20 64 63 6d 64 20 69 6e |copy the| dcmd in|
|000006f0| 74 6f 20 74 68 65 0d 20 | 20 20 22 44 65 62 75 67 |to the. | "Debug|
|00000700| 67 65 72 20 50 72 65 66 | 73 22 20 66 69 6c 65 20 |ger Pref|s" file |
|00000710| 69 6e 73 69 64 65 20 79 | 6f 75 72 20 73 79 73 74 |inside y|our syst|
|00000720| 65 6d 20 66 6f 6c 64 65 | 72 2e 0d 20 20 20 0d 0d |em folde|r.. ..|
|00000730| a5 a5 20 48 6f 77 20 74 | 6f 20 75 73 65 20 28 54 |.. How t|o use (T|
|00000740| 68 69 6e 6b 20 43 20 36 | 2e 30 2e 78 20 6f 72 20 |hink C 6|.0.x or |
|00000750| 65 61 72 6c 69 65 72 29 | 20 a5 a5 0d 0d 31 29 20 |earlier)| ....1) |
|00000760| 44 65 6c 65 74 65 20 74 | 68 65 20 22 54 68 69 6e |Delete t|he "Thin|
|00000770| 6b 20 64 63 6d 64 20 67 | 6c 75 65 22 20 61 6e 64 |k dcmd g|lue" and|
|00000780| 20 22 54 68 69 6e 6b 20 | 50 75 74 20 4c 69 62 22 | "Think |Put Lib"|
|00000790| 20 70 72 6f 6a 65 63 74 | 20 66 69 6c 65 73 2c 20 | project| files, |
|000007a0| 62 65 63 61 75 73 65 20 | 74 68 65 79 20 63 61 6e |because |they can|
|000007b0| 0d 20 20 20 6f 6e 6c 79 | 20 62 65 20 75 73 65 64 |. only| be used|
|000007c0| 20 77 69 74 68 20 54 68 | 69 6e 6b 20 43 20 37 2e | with Th|ink C 7.|
|000007d0| 30 20 6f 72 20 6c 61 74 | 65 72 2e 0d 0d 32 29 20 |0 or lat|er...2) |
|000007e0| 43 72 65 61 74 65 20 61 | 6e 20 65 6d 70 74 79 20 |Create a|n empty |
|000007f0| 70 72 6f 6a 65 63 74 20 | 6e 61 6d 65 64 20 22 54 |project |named "T|
|00000800| 68 69 6e 6b 20 64 63 6d | 64 20 67 6c 75 65 22 2e |hink dcm|d glue".|
|00000810| 20 41 64 64 20 74 68 65 | 20 66 69 6c 65 20 22 54 | Add the| file "T|
|00000820| 68 69 6e 6b 20 64 63 6d | 64 20 67 6c 75 65 2e 63 |hink dcm|d glue.c|
|00000830| 22 0d 20 20 20 66 72 6f | 6d 20 74 68 65 20 22 54 |". fro|m the "T|
|00000840| 68 69 6e 6b 20 64 63 6d | 64 20 67 6c 75 65 20 73 |hink dcm|d glue s|
|00000850| 6f 75 72 63 65 22 20 66 | 6f 6c 64 65 72 20 74 6f |ource" f|older to|
|00000860| 20 74 68 65 20 70 72 6f | 6a 65 63 74 2e 20 53 65 | the pro|ject. Se|
|00000870| 74 20 74 68 65 20 70 72 | 6f 6a 65 63 74 20 74 79 |t the pr|oject ty|
|00000880| 70 65 20 74 6f 0d 20 20 | 20 22 43 6f 64 65 20 72 |pe to. | "Code r|
|00000890| 65 73 6f 75 72 63 65 22 | 2e 20 42 72 69 6e 67 20 |esource"|. Bring |
|000008a0| 74 68 65 20 70 72 6f 6a | 65 63 74 20 75 70 20 74 |the proj|ect up t|
|000008b0| 6f 20 64 61 74 65 2e 0d | 0d 33 29 20 43 72 65 61 |o date..|.3) Crea|
|000008c0| 74 65 20 61 6e 20 65 6d | 70 74 79 20 70 72 6f 6a |te an em|pty proj|
|000008d0| 65 63 74 20 6e 61 6d 65 | 64 20 22 54 68 69 6e 6b |ect name|d "Think|
|000008e0| 20 50 75 74 20 4c 69 62 | 22 2e 20 41 64 64 20 61 | Put Lib|". Add a|
|000008f0| 6c 6c 20 74 68 65 20 66 | 69 6c 65 73 20 66 72 6f |ll the f|iles fro|
|00000900| 6d 20 74 68 65 0d 20 20 | 20 22 54 68 69 6e 6b 20 |m the. | "Think |
|00000910| 50 75 74 20 4c 69 62 20 | 73 6f 75 72 63 65 22 20 |Put Lib |source" |
|00000920| 66 6f 6c 64 65 72 20 74 | 6f 20 74 68 65 20 70 72 |folder t|o the pr|
|00000930| 6f 6a 65 63 74 2e 20 53 | 65 74 20 74 68 65 20 70 |oject. S|et the p|
|00000940| 72 6f 6a 65 63 74 20 74 | 79 70 65 20 74 6f 0d 20 |roject t|ype to. |
|00000950| 20 20 22 43 6f 64 65 20 | 72 65 73 6f 75 72 63 65 | "Code |resource|
|00000960| 22 2e 20 42 72 69 6e 67 | 20 74 68 65 20 70 72 6f |". Bring| the pro|
|00000970| 6a 65 63 74 20 75 70 20 | 74 6f 20 64 61 74 65 2e |ject up |to date.|
|00000980| 0d 0d 34 29 20 50 75 74 | 20 74 68 65 20 66 69 6c |..4) Put| the fil|
|00000990| 65 73 20 22 54 68 69 6e | 6b 5f 64 63 6d 64 2e 68 |es "Thin|k_dcmd.h|
|000009a0| 22 2c 20 22 54 68 69 6e | 6b 5f 70 75 74 2e 68 22 |", "Thin|k_put.h"|
|000009b0| 2c 20 22 54 68 69 6e 6b | 20 64 63 6d 64 20 67 6c |, "Think| dcmd gl|
|000009c0| 75 65 22 20 61 6e 64 20 | 22 54 68 69 6e 6b 20 50 |ue" and |"Think P|
|000009d0| 75 74 20 4c 69 62 22 0d | 20 20 20 77 68 65 72 65 |ut Lib".| where|
|000009e0| 20 74 68 65 20 50 72 6f | 6a 65 63 74 20 4d 61 6e | the Pro|ject Man|
|000009f0| 61 67 65 72 20 63 61 6e | 20 66 69 6e 64 20 74 68 |ager can| find th|
|00000a00| 65 6d 20 28 6c 69 6b 65 | 20 69 6e 20 74 68 65 20 |em (like| in the |
|00000a10| 22 4d 61 63 20 4c 69 62 | 72 61 69 72 69 65 73 22 |"Mac Lib|rairies"|
|00000a20| 20 61 6e 64 0d 20 20 20 | 22 4d 61 63 20 23 69 6e | and. |"Mac #in|
|00000a30| 63 6c 75 64 65 73 22 20 | 66 6f 6c 64 65 72 73 29 |cludes" |folders)|
|00000a40| 2e 0d 0d 35 29 20 44 6f | 20 74 68 65 20 73 61 6d |...5) Do| the sam|
|00000a50| 65 20 77 69 74 68 20 74 | 68 65 20 66 69 6c 65 73 |e with t|he files|
|00000a60| 20 22 64 63 6d 64 2e 68 | 22 20 61 6e 64 20 22 64 | "dcmd.h|" and "d|
|00000a70| 63 6d 64 47 6c 75 65 2e | 61 2e 6f 22 2e 20 54 68 |cmdGlue.|a.o". Th|
|00000a80| 65 73 65 20 66 69 6c 65 | 73 20 61 72 65 20 61 76 |ese file|s are av|
|00000a90| 61 69 6c 61 62 6c 65 0d | 20 20 20 61 6c 6f 6e 67 |ailable.| along|
|00000aa0| 20 77 69 74 68 20 4d 61 | 63 73 42 75 67 20 66 72 | with Ma|csBug fr|
|00000ab0| 6f 6d 20 66 74 70 2e 61 | 70 70 6c 65 2e 63 6f 6d |om ftp.a|pple.com|
|00000ac0| 20 69 6e 20 74 68 65 20 | 64 74 73 2f 6d 61 63 2f | in the |dts/mac/|
|00000ad0| 74 6f 6f 6c 73 2f 6d 61 | 63 73 62 75 67 2f 20 64 |tools/ma|csbug/ d|
|00000ae0| 69 72 65 63 74 6f 72 79 | 2e 0d 20 20 20 0d 20 20 |irectory|.. . |
|00000af0| 20 49 66 20 79 6f 75 20 | 68 61 76 65 20 54 68 69 | If you |have Thi|
|00000b00| 6e 6b 20 43 20 35 2e 30 | 2e 78 20 6f 72 20 65 61 |nk C 5.0|.x or ea|
|00000b10| 72 6c 69 65 72 2c 20 63 | 6f 6e 76 65 72 74 20 74 |rlier, c|onvert t|
|00000b20| 68 65 20 22 64 63 6d 64 | 47 6c 75 65 2e 61 2e 6f |he "dcmd|Glue.a.o|
|00000b30| 22 20 6c 69 62 72 61 72 | 79 20 69 6e 74 6f 20 0d |" librar|y into .|
|00000b40| 20 20 20 61 6e 20 41 34 | 2d 62 61 73 65 64 20 70 | an A4|-based p|
|00000b50| 72 6f 6a 65 63 74 20 77 | 69 74 68 20 74 68 65 20 |roject w|ith the |
|00000b60| 22 6f 43 6f 6e 76 22 20 | 61 70 70 6c 69 63 61 74 |"oConv" |applicat|
|00000b70| 69 6f 6e 2e 0d 20 0d 36 | 29 20 43 72 65 61 74 65 |ion.. .6|) Create|
|00000b80| 20 61 20 6e 65 77 20 70 | 72 6f 6a 65 63 74 2e 20 | a new p|roject. |
|00000b90| 41 64 64 20 74 68 65 20 | 22 64 63 6d 64 47 6c 75 |Add the |"dcmdGlu|
|00000ba0| 65 2e 61 2e 6f 22 20 6c | 69 62 72 61 72 79 20 28 |e.a.o" l|ibrary (|
|00000bb0| 6f 72 20 74 68 65 20 63 | 6f 72 72 65 73 70 6f 6e |or the c|orrespon|
|00000bc0| 64 69 6e 67 0d 20 20 20 | 63 6f 6e 76 65 72 74 65 |ding. |converte|
|00000bd0| 64 20 70 72 6f 6a 65 63 | 74 20 66 69 6c 65 29 2c |d projec|t file),|
|00000be0| 20 74 68 65 20 22 54 68 | 69 6e 6b 20 64 63 6d 64 | the "Th|ink dcmd|
|00000bf0| 20 67 6c 75 65 22 20 66 | 69 6c 65 20 61 6e 64 20 | glue" f|ile and |
|00000c00| 61 20 63 6f 70 79 20 6f | 66 20 74 68 65 20 22 64 |a copy o|f the "d|
|00000c10| 63 6d 64 2e 63 22 20 66 | 69 6c 65 0d 20 20 20 74 |cmd.c" f|ile. t|
|00000c20| 6f 20 79 6f 75 72 20 70 | 72 6f 6a 65 63 74 2e 20 |o your p|roject. |
|00000c30| 41 64 64 20 79 6f 75 72 | 20 63 6f 64 65 20 69 6e |Add your| code in|
|00000c40| 20 74 68 65 20 64 63 6d | 64 2e 63 20 66 69 6c 65 | the dcm|d.c file|
|00000c50| 20 3a 20 77 72 69 74 65 | 20 74 68 65 20 43 6f 6d | : write| the Com|
|00000c60| 6d 61 6e 64 45 6e 74 72 | 79 20 63 6f 64 65 20 61 |mandEntr|y code a|
|00000c70| 73 0d 20 20 20 64 65 73 | 63 72 69 62 65 64 20 69 |s. des|cribed i|
|00000c80| 6e 20 63 68 61 70 74 65 | 72 20 38 20 6f 66 20 74 |n chapte|r 8 of t|
|00000c90| 68 65 20 62 6f 6f 6b 20 | 22 4d 61 63 73 42 75 67 |he book |"MacsBug|
|00000ca0| 20 52 65 66 65 72 65 6e | 63 65 20 61 6e 64 20 44 | Referen|ce and D|
|00000cb0| 65 62 75 67 67 69 6e 67 | 20 52 65 66 65 72 65 6e |ebugging| Referen|
|00000cc0| 63 65 22 0d 20 20 20 66 | 72 6f 6d 20 41 70 70 6c |ce". f|rom Appl|
|00000cd0| 65 20 43 6f 6d 70 75 74 | 65 72 2c 20 49 6e 63 2e |e Comput|er, Inc.|
|00000ce0| 0d 0d 37 29 20 55 73 69 | 6e 67 20 74 68 65 20 22 |..7) Usi|ng the "|
|00000cf0| 53 65 74 20 50 72 6f 6a | 65 63 74 20 54 79 70 65 |Set Proj|ect Type|
|00000d00| 22 20 63 6f 6d 6d 61 6e | 64 2c 20 73 65 74 20 74 |" comman|d, set t|
|00000d10| 68 65 20 70 72 6f 6a 65 | 63 74 20 74 79 70 65 20 |he proje|ct type |
|00000d20| 74 6f 20 22 43 6f 64 65 | 20 72 65 73 6f 75 72 63 |to "Code| resourc|
|00000d30| 65 22 2c 20 74 68 65 0d | 20 20 20 74 79 70 65 20 |e", the.| type |
|00000d40| 74 6f 20 27 64 63 6d 64 | 27 2e 20 43 68 6f 6f 73 |to 'dcmd|'. Choos|
|00000d50| 65 20 74 68 65 20 6e 61 | 6d 65 20 61 6e 64 20 69 |e the na|me and i|
|00000d60| 64 20 6f 66 20 79 6f 75 | 72 20 64 63 6d 64 2e 20 |d of you|r dcmd. |
|00000d70| 52 65 6d 65 6d 62 65 72 | 20 74 68 61 74 20 74 68 |Remember| that th|
|00000d80| 65 20 64 63 6d 64 20 6e | 61 6d 65 0d 20 20 20 28 |e dcmd n|ame. (|
|00000d90| 75 73 65 64 20 74 6f 20 | 72 75 6e 20 74 68 65 20 |used to |run the |
|00000da0| 64 63 6d 64 20 69 6e 20 | 4d 61 63 73 42 75 67 29 |dcmd in |MacsBug)|
|00000db0| 20 69 73 20 74 68 65 20 | 6e 61 6d 65 20 6f 66 20 | is the |name of |
|00000dc0| 74 68 65 20 64 63 6d 64 | 20 72 65 73 6f 75 72 63 |the dcmd| resourc|
|00000dd0| 65 2e 20 53 65 74 20 74 | 68 65 20 66 69 6c 65 0d |e. Set t|he file.|
|00000de0| 20 20 20 74 79 70 65 20 | 74 6f 20 27 72 73 72 63 | type |to 'rsrc|
|00000df0| 27 20 61 6e 64 20 74 68 | 65 20 63 72 65 61 74 6f |' and th|e creato|
|00000e00| 72 20 74 6f 20 27 52 53 | 45 44 27 2e 0d 20 20 20 |r to 'RS|ED'.. |
|00000e10| 0d 20 20 20 56 45 52 59 | 20 49 4d 50 4f 52 54 41 |. VERY| IMPORTA|
|00000e20| 4e 54 20 3a 20 43 68 65 | 63 6b 20 74 68 65 20 22 |NT : Che|ck the "|
|00000e30| 43 75 73 74 6f 6d 20 68 | 65 61 64 65 72 22 20 63 |Custom h|eader" c|
|00000e40| 68 65 63 6b 62 6f 78 2e | 20 20 20 0d 0d 38 29 20 |heckbox.| ..8) |
|00000e50| 4f 6e 63 65 20 79 6f 75 | 20 68 61 76 65 20 62 75 |Once you| have bu|
|00000e60| 69 6c 74 20 74 68 65 20 | 64 63 6d 64 2c 20 75 73 |ilt the |dcmd, us|
|00000e70| 65 20 61 20 72 65 73 6f | 75 72 63 65 20 65 64 69 |e a reso|urce edi|
|00000e80| 74 6f 72 20 74 6f 20 63 | 6f 70 79 20 74 68 65 20 |tor to c|opy the |
|00000e90| 64 63 6d 64 20 69 6e 74 | 6f 20 74 68 65 0d 20 20 |dcmd int|o the. |
|00000ea0| 20 22 44 65 62 75 67 67 | 65 72 20 50 72 65 66 73 | "Debugg|er Prefs|
|00000eb0| 22 20 66 69 6c 65 20 69 | 6e 73 69 64 65 20 79 6f |" file i|nside yo|
|00000ec0| 75 72 20 73 79 73 74 65 | 6d 20 66 6f 6c 64 65 72 |ur syste|m folder|
|00000ed0| 2e 0d 0d 0d a5 a5 20 4e | 6f 74 65 73 20 a5 a5 0d |...... N|otes ...|
|00000ee0| 0d 20 d7 20 49 6e 20 54 | 68 69 6e 6b 20 43 20 37 |. . In T|hink C 7|
|00000ef0| 2e 30 20 6f 72 20 6c 61 | 74 65 72 2c 20 65 78 65 |.0 or la|ter, exe|
|00000f00| 63 75 74 65 20 73 74 65 | 70 20 31 2d 33 20 6f 6e |cute ste|p 1-3 on|
|00000f10| 6c 79 20 6f 6e 63 65 2e | 20 46 6f 72 20 65 61 63 |ly once.| For eac|
|00000f20| 68 20 6e 65 77 20 64 63 | 6d 64 20 79 6f 75 20 77 |h new dc|md you w|
|00000f30| 61 6e 74 0d 20 20 20 74 | 6f 20 77 72 69 74 65 2c |ant. t|o write,|
|00000f40| 20 73 74 61 72 74 20 61 | 74 20 73 74 65 70 20 34 | start a|t step 4|
|00000f50| 2e 0d 20 20 20 0d 20 d7 | 20 49 6e 20 54 68 69 6e |.. . .| In Thin|
|00000f60| 6b 20 43 20 36 2e 30 2e | 78 20 6f 72 20 65 61 72 |k C 6.0.|x or ear|
|00000f70| 6c 69 65 72 2c 20 65 78 | 65 63 75 74 65 20 73 74 |lier, ex|ecute st|
|00000f80| 65 70 20 31 2d 35 20 6f | 6e 6c 79 20 6f 6e 63 65 |ep 1-5 o|nly once|
|00000f90| 2e 20 46 6f 72 20 65 61 | 63 68 20 6e 65 77 20 64 |. For ea|ch new d|
|00000fa0| 63 6d 64 20 79 6f 75 20 | 77 61 6e 74 0d 20 20 20 |cmd you |want. |
|00000fb0| 74 6f 20 77 72 69 74 65 | 2c 20 73 74 61 72 74 20 |to write|, start |
|00000fc0| 61 74 20 73 74 65 70 20 | 36 2e 0d 20 20 20 0d 20 |at step |6.. . |
|00000fd0| d7 20 49 66 20 79 6f 75 | 20 77 61 6e 74 20 74 6f |. If you| want to|
|00000fe0| 20 75 73 65 20 67 6c 6f | 62 61 6c 20 76 61 72 69 | use glo|bal vari|
|00000ff0| 61 62 6c 65 73 2c 20 23 | 69 6e 63 6c 75 64 65 20 |ables, #|include |
|00001000| 3c 53 65 74 55 70 41 34 | 2e 68 3e 20 69 6e 20 74 |<SetUpA4|.h> in t|
|00001010| 68 65 20 62 65 67 69 6e | 69 6e 67 20 6f 66 20 74 |he begin|ing of t|
|00001020| 68 65 0d 20 20 20 64 63 | 6d 64 2e 63 20 66 69 6c |he. dc|md.c fil|
|00001030| 65 2e 20 43 61 6c 6c 20 | 52 65 6d 65 6d 6d 62 65 |e. Call |Rememmbe|
|00001040| 72 41 30 28 29 20 61 6e | 64 20 53 65 74 55 70 41 |rA0() an|d SetUpA|
|00001050| 34 28 29 20 69 6e 20 74 | 68 65 20 62 65 67 69 6e |4() in t|he begin|
|00001060| 69 6e 67 20 6f 66 20 74 | 68 65 20 43 6f 6d 6d 61 |ing of t|he Comma|
|00001070| 6e 64 45 6e 74 72 79 0d | 20 20 20 70 72 6f 63 65 |ndEntry.| proce|
|00001080| 64 75 72 65 2c 20 61 6e | 64 20 52 65 73 74 6f 72 |dure, an|d Restor|
|00001090| 65 41 34 28 29 20 69 6e | 20 74 68 65 20 65 6e 64 |eA4() in| the end|
|000010a0| 2e 0d 0d 20 d7 20 54 6f | 20 75 73 65 20 74 68 65 |... . To| use the|
|000010b0| 20 54 68 69 6e 6b 20 50 | 75 74 20 4c 69 62 72 61 | Think P|ut Libra|
|000010c0| 72 79 2c 20 61 64 64 20 | 74 68 65 20 22 54 68 69 |ry, add |the "Thi|
|000010d0| 6e 6b 20 50 75 74 20 4c | 69 62 22 20 66 69 6c 65 |nk Put L|ib" file|
|000010e0| 20 74 6f 20 79 6f 75 72 | 20 70 72 6f 6a 65 63 74 | to your| project|
|000010f0| 20 61 6e 64 0d 20 20 20 | 23 69 6e 63 6c 75 64 65 | and. |#include|
|00001100| 20 3c 54 68 69 6e 6b 5f | 70 75 74 2e 68 3e 20 69 | <Think_|put.h> i|
|00001110| 6e 20 74 68 65 20 62 65 | 67 69 6e 6e 69 6e 67 20 |n the be|ginning |
|00001120| 6f 66 20 74 68 65 20 64 | 63 6d 64 2e 63 20 66 69 |of the d|cmd.c fi|
|00001130| 6c 65 0d 20 0d 20 d7 20 | 54 68 65 20 54 68 69 6e |le. . . |The Thin|
|00001140| 6b 20 50 75 74 20 4c 69 | 62 72 61 72 79 20 69 6e |k Put Li|brary in|
|00001150| 20 74 68 69 73 20 70 61 | 63 6b 61 67 65 20 72 65 | this pa|ckage re|
|00001160| 71 75 69 72 65 73 20 67 | 6c 6f 62 61 6c 73 2e 0d |quires g|lobals..|
|00001170| 0d 0d a5 a5 20 43 68 61 | 6e 67 65 73 20 73 69 6e |.... Cha|nges sin|
|00001180| 63 65 20 76 65 72 73 69 | 6f 6e 20 31 2e 30 20 a5 |ce versi|on 1.0 .|
|00001190| a5 0d 0d 20 d7 20 4e 6f | 77 20 63 6f 6d 70 61 74 |... . No|w compat|
|000011a0| 69 62 6c 65 20 77 69 74 | 68 20 22 54 65 73 74 44 |ible wit|h "TestD|
|000011b0| 63 6d 64 22 2e 20 22 42 | 72 65 61 6b 20 6f 6e 20 |cmd". "B|reak on |
|000011c0| 65 6e 74 72 79 22 20 64 | 69 64 6e 27 74 20 77 6f |entry" d|idn't wo|
|000011d0| 72 6b 20 77 69 74 68 20 | 76 65 72 73 69 6f 6e 20 |rk with |version |
|000011e0| 31 2e 30 0d 20 0d 20 d7 | 20 54 68 65 20 22 40 31 |1.0. . .| The "@1|
|000011f0| 2e b9 22 20 70 72 6f 6a | 65 63 74 20 6e 6f 77 20 |.." proj|ect now |
|00001200| 68 61 73 20 74 68 65 20 | 22 55 73 65 20 4d 61 63 |has the |"Use Mac|
|00001210| 73 42 75 67 20 6e 61 6d | 65 22 20 66 6c 61 67 20 |sBug nam|e" flag |
|00001220| 73 65 74 20 75 6e 64 65 | 72 20 22 44 65 62 75 67 |set unde|r "Debug|
|00001230| 67 69 6e 67 22 0d 20 0d | 20 d7 20 52 65 6e 61 6d |ging". .| . Renam|
|00001240| 65 64 20 67 6c 6f 62 61 | 6c 20 76 61 72 69 61 62 |ed globa|l variab|
|00001250| 6c 65 73 2e 0d 20 0d 20 | d7 20 53 6f 6d 65 20 66 |les.. . |. Some f|
|00001260| 69 78 65 73 20 69 6e 20 | 74 68 65 20 64 6f 63 2e |ixes in |the doc.|
|00001270| 0d 0d a5 a5 20 41 62 6f | 75 74 20 a5 a5 0d 0d 20 |.... Abo|ut .... |
|00001280| 20 20 57 72 69 74 74 65 | 6e 20 62 79 20 50 2e 20 | Writte|n by P. |
|00001290| 53 74 61 64 65 6c 6d 61 | 6e 6e 20 3c 50 61 74 72 |Stadelma|nn <Patr|
|000012a0| 69 63 6b 2e 53 74 61 64 | 65 6c 6d 61 6e 6e 40 65 |ick.Stad|elmann@e|
|000012b0| 74 75 64 69 61 6e 74 73 | 2e 75 6e 69 6e 65 2e 63 |tudiants|.unine.c|
|000012c0| 68 3e 2e 20 20 20 0d 20 | 20 20 46 65 65 6c 20 66 |h>. . | Feel f|
|000012d0| 72 65 65 20 74 6f 20 63 | 6f 6e 74 61 63 74 20 6d |ree to c|ontact m|
|000012e0| 65 20 69 66 20 79 6f 75 | 20 68 61 76 65 20 63 6f |e if you| have co|
|000012f0| 6d 6d 65 6e 74 73 2c 20 | 73 75 67 67 65 73 74 69 |mments, |suggesti|
|00001300| 6f 6e 73 20 6f 72 20 62 | 75 67 73 20 74 6f 20 72 |ons or b|ugs to r|
|00001310| 65 70 6f 72 74 2e 0d 20 | 20 20 0d 20 20 20 54 68 |eport.. | . Th|
|00001320| 61 6e 6b 73 20 74 6f 20 | 52 2e 20 57 65 73 6c 65 |anks to |R. Wesle|
|00001330| 79 2e 0d 20 20 20 0d 20 | 20 20 54 68 69 73 20 70 |y.. . | This p|
|00001340| 61 63 6b 61 67 65 20 69 | 73 20 70 75 62 6c 69 63 |ackage i|s public|
|00001350| 20 64 6f 6d 61 69 6e 2e | 20 48 6f 77 65 76 65 72 | domain.| However|
|00001360| 2c 20 74 68 65 20 22 64 | 63 6d 64 2e 68 22 20 61 |, the "d|cmd.h" a|
|00001370| 6e 64 20 22 64 63 6d 64 | 47 6c 75 65 2e 61 2e 6f |nd "dcmd|Glue.a.o|
|00001380| 22 0d 20 20 20 66 69 6c | 65 73 20 61 72 65 20 63 |". fil|es are c|
|00001390| 6f 70 79 72 69 67 68 74 | 65 64 20 6d 61 74 65 72 |opyright|ed mater|
|000013a0| 69 61 6c 20 66 72 6f 6d | 20 41 70 70 6c 65 20 43 |ial from| Apple C|
|000013b0| 6f 6d 70 75 74 65 72 2c | 20 49 6e 63 2e 00 00 00 |omputer,| Inc....|
|000013c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000013d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000013e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000013f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001400| 00 00 01 00 00 00 01 4c | 00 00 00 4c 00 00 00 32 |.......L|...L...2|
|00001410| 6c 6f 62 61 6c 73 2c 20 | 69 6e 63 6c 75 64 65 20 |lobals, |include |
|00001420| 3c 53 65 74 55 70 41 34 | 2e 68 3e 20 68 65 72 65 |<SetUpA4|.h> here|
|00001430| 0f 52 65 61 64 20 6d 65 | 20 66 69 72 73 74 20 21 |.Read me| first !|
|00001440| 02 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001450| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001460| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001470| 00 00 ad f0 e3 21 00 00 | 13 3d 00 00 01 7e 7b 0d |.....!..|.=...~{.|
|00001480| 09 2f 2a 20 66 69 6c 6c | 20 69 6e 20 77 69 74 68 |./* fill| in with|
|00001490| 20 79 6f 75 72 20 63 6f | 64 65 20 2a 2f 0d 7d 2a | your co|de */.}*|
|000014a0| 2f 0d 7d 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |/.}.....|........|
|000014b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000014c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000014d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000014e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000014f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001500| 00 00 00 48 00 09 4d 6f | 6e 61 63 6f 00 00 00 00 |...H..Mo|naco....|
|00001510| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001520| 00 00 00 00 00 00 00 06 | 00 04 00 2a 00 03 01 dd |........|...*....|
|00001530| 02 7d 00 3e 00 0f 01 c8 | 02 3f aa 88 ea 23 00 00 |.}.>....|.?...#..|
|00001540| 13 1e 00 00 13 1e 00 00 | 00 00 00 00 00 00 01 00 |........|........|
|00001550| 00 00 01 4c 00 00 00 4c | 00 00 00 32 00 7f 69 30 |...L...L|...2..i0|
|00001560| 13 78 00 00 00 1c 00 32 | 00 00 4d 50 53 52 00 00 |.x.....2|..MPSR..|
|00001570| 00 0a 03 ed ff ff 00 00 | 00 00 00 7f 67 fc 00 00 |........|....g...|
+--------+-------------------------+-------------------------+--------+--------+