Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Preprocessor #ifdef indentation

Status
Not open for further replies.

Irit

Programmer
Aug 21, 2001
9
0
0
US
Hello all,
I looked also in the C programming language book of Kernighan and Ritchie, and could not find information about #ifdef indentation. I saw in some other forums that this is not definded in treditional C. what do you know about this?
Thanks in advance :->
Irit
 
hi,
What is written in K&R book are the fundamentals.
Each implementation of C-Language, has its paricular rules:

many things that works in C-VMS-VAX, don't go in GNU compiler and viceversa.

About preprocessor directive indentation, I have found this differences:

all accept # char in column 1 and 1st letter in col 2
#ifdef


other accept # char in column 1 and 1st letter in col >=2
# ifdef


others are more flexible
# ifdef


see your complier or test it by yourself

bye

 
Thank you victorv, I will immidiatly check with my Tornado compiler references!!!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top