Re: [AD] to prefix or not to prefix (sigh)

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


In reply to Martijn Versteegh <m.versteegh@xxxxxxxxxx>:
>The prefixing is a large project, it will take
>some time to iron out all the inconveniences.

A fair point, but (after much discussion and some testing) we did come
up with a fairly good method:

 - a utility to automagically fix source files,

 - a compatibility header, comprising:
   - name "allegro.h" (so old programs work without a single change)
   - for each old function, have a "static inline" function which acts
     as a wrapper for the new function (this solves any API problem)
   - #define old variable names to new variable names

This should allow old source to compile pretty much straight away. An
additional bonus is that this compatibility header can be generated in a
fairly automated way, and doesn't impact on the `current' library.

Bye for now,
-- 
Laurence Withers, lwithers@xxxxxxxxxx
                http://www.lwithers.demon.co.uk/

Attachment: signature.asc
Description: PGP signature



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