-   Programming (
-   -   number and position of "__ " in code ... question (

tuxfood 06-25-2004 08:31 AM

number and position of "__ " in code ... question

if you read through some kernel code or somethig simillar..u will find they have seperated the different spaces with different number of "_" and at different positions...

eg : __KERNEL__DATA_

DOES this have any significance?

just enquiring



jlliagre 06-25-2004 10:11 AM

Most (if not all?) C predefined macros have all this form (double underscore as prefix and suffix).
for example ___LINE___ and __FILE__

__KERNEL__ is not predefined by the compiler, but set in the linux kernel makefile.

It follows the same syntaxic rule and objective: prevent any clash with custom code macros.

Not sure about the __KERNEL__DATA_ though, didn't find it anywhere.

All times are GMT -5. The time now is 02:05 AM.