Vignatti Tiago (Nokia-MS/Helsinki) wrote:
>> +#ifndef CLIENT_IDS_H
>> +#define CLIENT_IDS_H
> 
> does anyone knows if these macros on the top of header files are useful for
> some reason? I don't think so.

They prevent errors about redefined types/macros if the file gets included twice
for some reason - they're a very common C idiom, required in many projects for
good reason.  See http://en.wikipedia.org/wiki/Include_guard for a basic
explanation - I'm sure google can find much more to educate you about them.

-- 
        -Alan Coopersmith-        [email protected]
         Oracle Solaris Platform Engineering: X Window System

_______________________________________________
[email protected]: X.Org development
Archives: http://lists.x.org/archives/xorg-devel
Info: http://lists.x.org/mailman/listinfo/xorg-devel

Reply via email to