Re: namespace collision (was: multithreaded callbacks (was Re: [AD] de fourium pointium ohium)) |
[ Thread Index |
Date Index
| More lists.liballeg.org/allegro-developers Archives
]
- To: conductors@xxxxxxxxxx
- Subject: Re: namespace collision (was: multithreaded callbacks (was Re: [AD] de fourium pointium ohium))
- From: Michael Bukin <M.A.Bukin@xxxxxxxxxx>
- Date: Mon, 6 Aug 2001 21:09:01 +1000
- Date: 06 Aug 2001 17:48:41 +0700
Laurence Withers <lwithers@xxxxxxxxxx> writes:
> In reply to Bob <ohannessian@xxxxxxxxxx>:
> >Perhaps this could be done for the whole API. There would be a a #define =
> =20
> >(#define ALLEGRO_API ?) that would prefix all the Allegro functions and=20
> >variables with allegro_.
> >A note could then be placed in the FAQ about what to do in case there is a=
> =20
> >namespace collision.
>
> We could also provide an "allegro4.h" header file, which would simply
> be:
>
> #define ALLEGRO_NAMESPACE
> #include "allegro.h"
Maybe it would be better to convert all Allegro-defined symbols to
prefixed ones and include compatibility header which can be used with
old projects. Also it is possible to provide script to convert
symbols in a file to the new style. Or maybe keep both styles for
some time and later move compatibility defines to another header
file or remove them altogether.
--
Michael Bukin