RE: [AD] official beta (Re namespace again)

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


Title: RE: [AD] official beta (Re namespace again)

> Such a compatibility header is likely to not work with some
> old programs
> because the header would have to use macros for variables, eg.:
>
> [allegro.h]
>    #define key al_key

Oh yes, I recall this argument.
well, why not:

AL_ARRAY(volatile char, key);

and in, say alcompat.c, if OLD_ALLEGRO_API is defined, have:

volatile char *key = al_key;

We need not use macros for everything.
Would it be possible to cover all (or most) cases with such things ?

--
Vincent Penquerc'h



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