Generic interface to start preprocessing from various sources/sinks.
Allows preprocessing:
Remarks
Definition at line 80 of file parser.f90.
| subroutine preprocess_file | ( | character(*), intent(in) | filepath, |
| character(*), intent(in), optional | outputfile ) |
Preprocess a file and write result to an optional output file (default: stdout) Opens the input file, determines the base filename for error messages, opens the output file if requested, and delegates to the unit-to-unit routine.
| [in] | filepath | Path to the input source file |
| [in] | outputfile | Optional path to the output file; if absent output goes to stdout |
Remarks
Definition at line 111 of file parser.f90.
| subroutine preprocess_file_to_unit | ( | character(*), intent(in) | ifile, |
| integer, intent(in) | ounit ) |
Preprocess a file and write to an already-open output unit.
| [in] | ifile | Input filename |
| [in] | ounit | Output unit (already open for writing) |
Remarks
Definition at line 179 of file parser.f90.
| subroutine preprocess_unit_to_file | ( | integer, intent(in) | iunit, |
| character(*), intent(in) | ofile ) |
Preprocess from an already-open input unit and write to a file.
| [in] | iunit | Input unit (must already be open for reading) |
| [in] | ofile | Output filename |
Remarks
Definition at line 151 of file parser.f90.
| subroutine preprocess_unit_to_unit | ( | integer, intent(in) | iunit, |
| integer, intent(in) | ounit ) |
Core preprocessing routine: read from iunit, write to ounit Sets up a clean macro environment for the top-level file, resets conditional compilation state, and calls the worker routine.
| [in] | iunit | Input unit |
| [in] | ounit | Output unit |
Remarks
Definition at line 210 of file parser.f90.