1//===-- runtime/edit-input.h ------------------------------------*- C++ -*-===//
2//
3// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4// See https://llvm.org/LICENSE.txt for license information.
5// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6//
7//===----------------------------------------------------------------------===//
8
9#ifndef FORTRAN_RUNTIME_EDIT_INPUT_H_
10#define FORTRAN_RUNTIME_EDIT_INPUT_H_
11
12#include "format.h"
13#include "io-stmt.h"
14#include "flang/Decimal/decimal.h"
15
16namespace Fortran::runtime::io {
17
18bool EditIntegerInput(IoStatementState &, const DataEdit &, void *, int kind);
19
20template <int KIND>
21bool EditRealInput(IoStatementState &, const DataEdit &, void *);
22
23bool EditLogicalInput(IoStatementState &, const DataEdit &, bool &);
24
25template <typename CHAR>
26bool EditCharacterInput(
27 IoStatementState &, const DataEdit &, CHAR *, std::size_t);
28
29extern template bool EditRealInput<2>(
30 IoStatementState &, const DataEdit &, void *);
31extern template bool EditRealInput<3>(
32 IoStatementState &, const DataEdit &, void *);
33extern template bool EditRealInput<4>(
34 IoStatementState &, const DataEdit &, void *);
35extern template bool EditRealInput<8>(
36 IoStatementState &, const DataEdit &, void *);
37extern template bool EditRealInput<10>(
38 IoStatementState &, const DataEdit &, void *);
39// TODO: double/double
40extern template bool EditRealInput<16>(
41 IoStatementState &, const DataEdit &, void *);
42
43extern template bool EditCharacterInput(
44 IoStatementState &, const DataEdit &, char *, std::size_t);
45extern template bool EditCharacterInput(
46 IoStatementState &, const DataEdit &, char16_t *, std::size_t);
47extern template bool EditCharacterInput(
48 IoStatementState &, const DataEdit &, char32_t *, std::size_t);
49
50} // namespace Fortran::runtime::io
51#endif // FORTRAN_RUNTIME_EDIT_INPUT_H_
52

source code of flang/runtime/edit-input.h