//===-- Format specifier converter implmentation for printf -----*- C++ -*-===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //===----------------------------------------------------------------------===// #include "src/stdio/printf_core/converter.h" #include "src/__support/macros/config.h" #include "src/stdio/printf_core/core_structs.h" #include "src/stdio/printf_core/printf_config.h" #include "src/stdio/printf_core/strerror_converter.h" #include "src/stdio/printf_core/writer.h" // This option allows for replacing all of the conversion functions with custom // replacements. This allows conversions to be replaced at compile time. #ifndef LIBC_COPT_PRINTF_CONV_ATLAS #include "src/stdio/printf_core/converter_atlas.h" #else #include LIBC_COPT_PRINTF_CONV_ATLAS #endif #include <stddef.h> namespace LIBC_NAMESPACE_DECL { namespace printf_core { int convert(Writer *writer, const FormatSection &to_conv) { … } } // namespace printf_core } // namespace LIBC_NAMESPACE_DECL