[Xcb] Using C99 types instead of custom integral types

Bernardo Innocenti bernie at develer.com
Wed Sep 6 10:00:52 PDT 2006


Peter "Firefly" Lund wrote:

>> This does raise the question of whether we might want to use these types
>> in our protocol headers rather than the typedefs.
> 
> I say it's about time to enter the nineties ;)

Since it's a no-brainer, I'd be glad to come up with a patch
for this.  On second though, maybe a line of sed or perl would
waste less bandwith:

 find . -name '*.[ch]' | xargs perl -p -i -e 'unless (/#ifndef XMD_H/ .. /#endif/) { s/\b(BYTE|CARD8)\b/uint8_t/g; s/\bCARD(16|32)\b/uint$1_t/g; s/\bINT(8|16|32)\b/int$1_t/g }'

(corrupts vertical alignment in some structure definitions).

-- 
  // Bernardo Innocenti - Develer S.r.l., R&D dept.
\X/  http://www.develer.com/



More information about the Xcb mailing list