[Info-vax] Architecture specific code in VMS Fortran

Steven Schweda sms.antinode at gmail.com
Mon Oct 3 11:10:25 EDT 2011


On Oct 3, 9:02 am, koeh... at eisner.nospam.encompasserve.org (Bob
Koehler) wrote:

>    It's been a great many long years since the C preprocessor required
>    # directives to start in column 1.  For example, the following is
>    valid:
>
>    #ifdef __VMS
>       #include <xyz.h>
> [...]

   Which C preprocessor is "the C preprocessor"?  For
_portable_ (-to-antiquity) code, one leaves the "#" in column
one, and indents the remainder of the directive.  For
example:

#ifdef __VMS
#  include <xyz.h>

(See Info-ZIP code for extensive examples.)

   The SunOS 4.x bundled C compiler/preprocessor and VAX C
(at least some versions, possibly all) had that requirement.



More information about the Info-vax mailing list