preprocess_config_t Derived Type

type, public :: preprocess_config_t

Configuration meta data for a preprocessor


Contents

Source Code


Components

Type Visibility Attributes Name Initial
type(string_t), public, allocatable :: directories(:)

Directories to search for files to be preprocessed

type(string_t), public, allocatable :: macros(:)

Macros to be defined for the preprocessor

character(len=:), public, allocatable :: name

Name of the preprocessor

type(string_t), public, allocatable :: suffixes(:)

Suffixes of the files to be preprocessed


Type-Bound Procedures

procedure, public, :: info

Print information on this instance

  • private subroutine info(self, unit, verbosity)

    Write information on this instance

    Arguments

    Type IntentOptional Attributes Name
    class(preprocess_config_t), intent(in) :: self

    Instance of the preprocess configuration

    integer, intent(in) :: unit

    Unit for IO

    integer, intent(in), optional :: verbosity

    Verbosity of the printout

Source Code

   type :: preprocess_config_t

      !> Name of the preprocessor
      character(len=:), allocatable :: name

      !> Suffixes of the files to be preprocessed
      type(string_t), allocatable :: suffixes(:)

      !> Directories to search for files to be preprocessed
      type(string_t), allocatable :: directories(:)

      !> Macros to be defined for the preprocessor
      type(string_t), allocatable :: macros(:)

   contains

      !> Print information on this instance
      procedure :: info

   end type preprocess_config_t