Loading...
Searching...
No Matches
preprocess Interface Reference

Definition

Generic interface to start preprocessing from various sources/sinks.

Allows preprocessing:

  • file to stdout
  • file to file
  • unit to file
  • unit to unit (most flexible, used internally for include)

Remarks

Definition at line 80 of file parser.f90.


The documentation for this interface was generated from the following file:

Methods

◆ preprocess_file()

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.

Parameters
[in]filepathPath to the input source file
[in]outputfileOptional path to the output file; if absent output goes to stdout

Remarks

Definition at line 111 of file parser.f90.

◆ preprocess_file_to_unit()

subroutine preprocess_file_to_unit ( character(*), intent(in) ifile,
integer, intent(in) ounit )

Preprocess a file and write to an already-open output unit.

Parameters
[in]ifileInput filename
[in]ounitOutput unit (already open for writing)

Remarks

Definition at line 179 of file parser.f90.

◆ preprocess_unit_to_file()

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.

Parameters
[in]iunitInput unit (must already be open for reading)
[in]ofileOutput filename

Remarks

Definition at line 151 of file parser.f90.

◆ preprocess_unit_to_unit()

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.

Parameters
[in]iunitInput unit
[in]ounitOutput unit

Remarks

Definition at line 210 of file parser.f90.