LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   Preprocessor adding new line (https://www.linuxquestions.org/questions/programming-9/preprocessor-adding-new-line-717422/)

BJesty 04-07-2009 08:43 AM

Preprocessor adding new line
 
Dear all,
does anyone know how I can make the c preprocessor to add a new line in the code? I would be great to have something like

#define foo bar XXXX

so that

print *, foo
print *, "something"

looks like

print *, bar

print *, "something"


That's critical because I have to use fortran with 77 characters per line!

All the best,

B

Sergei Steshenko 04-07-2009 09:13 AM

And why do you want to use "C" preprocessor and not a scripting language like Perl ?

charlitos 04-07-2009 11:05 AM

off topic
 
Quote:

Originally Posted by BJesty (Post 3501141)

That's critical because I have to use fortran with 77 characters per line!

I thought no one was using Fortran anymore...what is this language good at exactly?

Sergei Steshenko 04-07-2009 11:26 AM

Quote:

Originally Posted by charlitos (Post 3501344)
I thought no one was using Fortran anymore...what is this language good at exactly?

Numeric computations.


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