Warning: This file is not a C or C++ file. It does not have highlighting.
| 1 | //===-- Map of converter headers in printf ----------------------*- 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 | // This file exists so that if the user wants to supply a custom atlas they can |
| 10 | // just replace the #include, additionally it keeps the ifdefs out of the |
| 11 | // converter header. |
| 12 | |
| 13 | #ifndef LLVM_LIBC_SRC_STDIO_PRINTF_CORE_CONVERTER_ATLAS_H |
| 14 | #define LLVM_LIBC_SRC_STDIO_PRINTF_CORE_CONVERTER_ATLAS_H |
| 15 | |
| 16 | // defines convert_string |
| 17 | #include "src/stdio/printf_core/string_converter.h" |
| 18 | |
| 19 | // defines convert_char |
| 20 | #include "src/stdio/printf_core/char_converter.h" |
| 21 | |
| 22 | // defines convert_int |
| 23 | #include "src/stdio/printf_core/int_converter.h" |
| 24 | |
| 25 | #ifndef LIBC_COPT_PRINTF_DISABLE_FLOAT |
| 26 | // defines convert_float_decimal |
| 27 | // defines convert_float_dec_exp |
| 28 | // defines convert_float_dec_auto |
| 29 | #ifdef LIBC_COPT_FLOAT_TO_STR_USE_FLOAT320 |
| 30 | #include "src/stdio/printf_core/float_dec_converter_limited.h" |
| 31 | #else |
| 32 | #include "src/stdio/printf_core/float_dec_converter.h" |
| 33 | #endif |
| 34 | // defines convert_float_hex_exp |
| 35 | #include "src/stdio/printf_core/float_hex_converter.h" |
| 36 | #endif // LIBC_COPT_PRINTF_DISABLE_FLOAT |
| 37 | |
| 38 | #ifdef LIBC_INTERNAL_PRINTF_HAS_FIXED_POINT |
| 39 | // defines convert_fixed |
| 40 | #include "src/stdio/printf_core/fixed_converter.h" |
| 41 | #endif // LIBC_INTERNAL_PRINTF_HAS_FIXED_POINT |
| 42 | |
| 43 | #ifndef LIBC_COPT_PRINTF_DISABLE_WRITE_INT |
| 44 | #include "src/stdio/printf_core/write_int_converter.h" |
| 45 | #endif // LIBC_COPT_PRINTF_DISABLE_WRITE_INT |
| 46 | |
| 47 | // defines convert_pointer |
| 48 | #include "src/stdio/printf_core/ptr_converter.h" |
| 49 | |
| 50 | #ifndef LIBC_COPT_PRINTF_DISABLE_STRERROR |
| 51 | // defines convert_strerror |
| 52 | #include "src/stdio/printf_core/strerror_converter.h" |
| 53 | #endif // LIBC_COPT_PRINTF_DISABLE_STRERROR |
| 54 | |
| 55 | #endif // LLVM_LIBC_SRC_STDIO_PRINTF_CORE_CONVERTER_ATLAS_H |
| 56 |
Warning: This file is not a C or C++ file. It does not have highlighting.
