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

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


Vincent Penquerc'h wrote:
> Doing the renaming now, and supplying a compatibility header would, I
> think, have the following consequences:

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

but this macro breaks code like:

[myheader.h]
   typedef struct{
      int key;
   }FOO;

[mycode.c]
   #include "myhead.h"
   #include <allegro.h>
   FOO x;
   x.key=0;

because allegro.h replaces the line `x.key=0;' by `x.al_key=0;', but the
definition of `struct FOO' is untouched by the macro. So I think Peter's
idea of keeping Allegro 4.0 supported but feature-frozen forever is
better than providing a compatibility header.

Sven



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