Chapter 8. Preprocessing with gnatprep

Table of Contents
8.1. Using gnatprep
8.2. Switches for gnatprep
8.3. Form of definitions file
8.4. Form of input text for gnatprep

The gnatprep utility provides a simple preprocessing capability for Ada programs. It is designed for use with XGC Ada, but is not dependent on any special features of XGC Ada.

8.1. Using gnatprep

To call gnatprep use


$ prefix-gnatprep infile outfile deffile switches

where

infile

is the full name of the input file, which is an Ada source file containing preprocessor directives.

outfile

is the full name of the output file, which is an Ada source in standard Ada form. When used with XGC Ada, this file name will normally have an ads or adb suffix.

deffile

is the full name of a text file containing definitions of symbols to be referenced by the preprocessor.

switches

is an optional sequence of switches as described in the next section