From mboxrd@z Thu Jan 1 00:00:00 1970 MIME-Version: 1.0 In-Reply-To: References: <1d5d51400909090803n4c4d5b7ewba9dfe0573d02495@mail.gmail.com> Date: Thu, 10 Sep 2009 00:27:41 +0800 Message-ID: <1d5d51400909090927u2a4e6742k9614b79df841d3b6@mail.gmail.com> From: Fernan Bolando To: 9fans@9fans.net Content-Type: text/plain; charset=ISO-8859-1 Subject: Re: [9fans] porting help please (gcc void pointer handling) Topicbox-Message-UUID: 6bc82e38-ead5-11e9-9d60-3106f5b1d025 On Thu, Sep 10, 2009 at 12:08 AM, Charles Forsyth wrote: > you might consider using a sed script to change the CT_.* style #defines, > and run the sed script from the mkfile/makefile, so although the > porting is (in your sense) `destructive' it's done by changing the > original source file automatically. you could sed (say) from a .h.orig to a .h > using a single rule. > I am trying to port nhc98 the bytecode haskell compiler. I am hoping to avoid changing those definition because I think those are generated by the haskell compiler and then fed to the C compiler. So there are a whole bunch of them. If I change those and assuming everything works. Every time I use the haskell compiler it will generate the same style of codes and the same set of compile issue in C compiler phase. so I guess some sort of wrapper script for the pcc is easiest option. thanks. -- http://www.fernski.com