LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (http://www.linuxquestions.org/questions/programming-9/)
-   -   number and position of "__ " in code ... question (http://www.linuxquestions.org/questions/programming-9/number-and-position-of-__-in-code-question-197553/)

tuxfood 06-25-2004 08:31 AM

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

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


thnks

tuxfood

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 06:35 AM.