Path: utzoo!attcan!uunet!ndsuvax!nopuklic From: nopuklic@ndsuvax.UUCP (Blayne Puklich) Newsgroups: comp.sys.mac.programmer Subject: Re: RMaker to MPW Rez conversion Message-ID: <1011@ndsuvax.UUCP> Date: 30 Jun 88 15:51:23 GMT References: <2007@uhccux.uhcc.hawaii.edu> Reply-To: nopuklic@ndsuvax.UUCP (Blayne Puklich) Organization: North Dakota State University Fargo, ND Lines: 47 In article <2007@uhccux.uhcc.hawaii.edu> keith@uhccux.UUCP (Keith Kinoshita) writes: > > I'm working on a project that requires me to convert RMaker >syntax source files to a form that Rez will understand. I want >to know if anyone out there has written such a beastie? If so could >you please e-mail me a response? Thanks in advance... >-- >Keith Kinoshita >INTERNET: keith@uhccux.UHCC.HAWAII.EDU ARPA: uhccux!keith@nosc.MIL >BITNET: keith@uhccux UUCP: ...!ucsd!nosc!uhccux!keith >PLATO: keith / uhcc / hawaii Keith, no need to convert the source files, because there is another way. Conversion from one source syntax to another is a very simple task. Since you apparently have MPW (you mention Rez), you can compile the source using the RMaker resource compiler, and then decompile it using MPW's Derez tool. RMaker will create a file having suffix .rsrc as its object file. Derez can then be used on this file in the following manner: Derez SysTypes.r Types.r {Size.r} {MPWTypes.r} inputFile > outputFile This will create an output file having Rez syntax, and if you tell Derez about the "type" declaration files SysTypes.r and Types.r, you'll get source that is fairly easy to understand (minus comments). I doubt that you'll need to inform Derez of the declaration in Size.r (that contains the new MultiFinder SIZE resource type), nor the MPWTypes.r declarations, which contains the resource type for MPW DRVW's (DRVR's). (As a matter of fact, I just looked up what the DRVW type is used for; it just makes writing a desk accessory easier.) I hope this helps you out. Make sure to ask if you can't figure out Derez from what I have sketched out above. Oh, one more thing about Derez before I forget. If you have any resource types that your application uses that are NOT included in SysTypes.r or Types.r, Derez won't understand them. However, Derez will create a Data statement for that resource, so it still will be understood by Rez and will be placed in the resource fork as it was read from the original. In other words, it doesn't make a difference. ||+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++|| || Blayne Puklich nopuklic@plains.NoDak.edu || || NDSU Student ACM use this-> NU087763@NDSUVM1.bitnet || || Chairperson North Dakota State University, Fargo, ND || || || || "Everyone should have a Corvette, I think." || ||-------------------------------------------------------------------------||