24.05.2014 Views

XL Fortran Enterprise Edition for AIX : User's Guide - IBM

XL Fortran Enterprise Edition for AIX : User's Guide - IBM

XL Fortran Enterprise Edition for AIX : User's Guide - IBM

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

In this example, conditional compilation characters ’x’ and ’d’ are mixed, with ’x’<br />

on the initial line:<br />

C2345678901234567890<br />

program p<br />

i=3 ; j=4 ; k=5<br />

X print *,i,<br />

D + j,<br />

X + k<br />

end program p<br />

: 3 4 5 (if both -qxlines and -qdlines are on)<br />

3 5 (if only -qxlines is turned on)<br />

Here, conditional compilation characters ’x’ and ’d’ are mixed, with ’d’ on the<br />

initial line:<br />

C2345678901234567890<br />

program p<br />

i=3 ; j=4 ; k=5<br />

D print *,i,<br />

X + j,<br />

D + k<br />

end program p<br />

: 3 4 5 (if both -qxlines and -qdlines are on)<br />

3 5 (if only -qdlines is turned on)<br />

In this example, the initial line is not a debug line, but the continuation line is<br />

interpreted as such, since it has an ’x’ in column 1:<br />

C2345678901234567890<br />

program p<br />

i=3 ; j=4 ; k=5<br />

print *,i<br />

X + ,j<br />

X + ,k<br />

end program p<br />

: 3 4 5 (if -qxlines is on)<br />

3 (if -qxlines is off)<br />

Related In<strong>for</strong>mation<br />

See “-D Option” on page 105 and Conditional Compilation in the Language Elements<br />

section of the <strong>XL</strong> <strong>Fortran</strong> <strong>Enterprise</strong> <strong>Edition</strong> <strong>for</strong> <strong>AIX</strong> Language Reference.<br />

266 <strong>XL</strong> <strong>Fortran</strong> <strong>Enterprise</strong> <strong>Edition</strong> <strong>for</strong> <strong>AIX</strong> : User’s <strong>Guide</strong>

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!