Re: [AD] datafile.c bugfix

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


>Thanks. Applied to trunk and branch.
I don't know what implementation of the macros you had in mind, but I'm
convinced there has to be some:-) What about:
#define READ3BYTES(x) ((x)[0]+((x)[1]<<8)+((x)[2]<<16))
#define WRITE3BYTES(x, y) (x)[0]=y, (x)[1]=(y)>>8, (x)[2]=(y)>>16
/C





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