allocate_block Subroutine

private subroutine allocate_block(this)

Arguments

Type IntentOptional AttributesName
type(fson_string), pointer:: this

Contents

Source Code


Source Code

  subroutine allocate_block(this)
    type(fson_string), pointer :: this
    type(fson_string), pointer :: new

    if (.not.associated(this % next)) then
       allocate(new)
       this % next => new
    end if

  end subroutine allocate_block