Re: [AD] fixed routines

[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]


Vincent Penquerc'h wrote:

> > > 'The use of fcos is deprecated, please use fixcos instead'.
> > 
> > Does anyone know how to do that with GGC ?
> 
> ELF has the ability to do that, but it's at the linker level,
> so it would work only with non inlined versions, and most of
> the fixed stuff is inlined :/

I was thinking of a preprocessor trick, but it requires 2 passes of
the preprocessor to work if it can be done at all. Something like

#define fsin(n)    #warning fsin is deprecated \
                    fixsin((n))

As that clearly won't work, (just tried it, no luck) you'd either have
to revert to link-level code, or use gcc-3.0+ code, or do what vincent
said: move all those declarations into a allegro/deprecated directory.
It's easy to add a warning in the include files in that directory then.

That last option doesn't sound so bad to me: it's a bit intrusive but
on the other hand, the functions _are_ deprecated so people shouldn't
use them anymore.

Vincent, do you know how to work that linker option?

	 Hein Zelle

>-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-<
 Hein Zelle                     hein@xxxxxxxxxx
	                        http://www.icce.rug.nl/~hein
>-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-<



Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/