LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices

Reply
 
Search this Thread
Old 06-25-2004, 07:31 AM   #1
tuxfood
Member
 
Registered: Aug 2003
Location: kerala , India
Distribution: RH9 , FC1 ,
Posts: 141

Rep: Reputation: 15
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
 
Old 06-25-2004, 09:11 AM   #2
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris10, Solaris 11, Mint, OL
Posts: 9,502

Rep: Reputation: 357Reputation: 357Reputation: 357Reputation: 357
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
newbie question: whats the difference between "su root", "su" and "su -&quo mojarron Slackware 9 12-07-2009 04:08 PM
pilot-xfer w/ Kyocera 7135 "device lied about number of ports" meznak Linux - Laptop and Netbook 2 11-17-2005 04:33 PM
How to convert Assembly code to "C" source code ssg14j Programming 2 08-01-2005 12:48 PM
"how do I extract a number from a text file using shell command?" sdandeker Linux - Networking 3 02-12-2004 08:54 AM
Number of "connect"-commands limited (Qt/KDE-programming)? schultzm Programming 3 09-06-2003 09:09 AM


All times are GMT -5. The time now is 11:22 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration