|
From: Ned K. <ne...@bi...> - 2004-04-02 23:24:00
|
On Friday 02 April 2004 10:15 am, Tim Rowledge wrote:
> OK, I've sent another copy with, I hope, things fixed up for you.
OK, I'll take a look.
> It was a switch but now is a function pointer table. The table is made
> by the CCodeGen and it didn't occur to me that it might need
> macroising. Hmm.
>
I'll look at where it's defined; it probably would make sense to make a
corresponding macro for it too.
> > * why couldn't you just define dispatchFunctionPointerOnin as
> >
> > #define dispatchFunctionPointerOnin(index, table) ((table)[index])()
> >
> > since presumably the table is declared as
> > fptr const primTable[] = { func0, func1, func2 /* ... */ };
>
> Err, because I had no idea that phrasing might work. :-) Feel free to
> try it and let me know the results...
>
OK.
> Thanks for the help
No problem... I just spent the last 2 days trying to reconstruct an image that
I'd used in Japan for a presentation and then (apparently) hacked on... guess
I reshaped a class without migrating it very well (and apparently without a
backup first).
In the process I also made Postscript printing a lot nicer and more accurate.
Now I just have to convince the Mac-ists that a point is not the same thing as
a pixel...
--
Ned Konz
http://bike-nomad.com
GPG key ID: BEEA7EFE
|