1 | //===-- Scanf Configuration Handler ----------------------------*- 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 LLVM_LIBC_SRC_STDIO_SCANF_CORE_SCANF_CONFIG_H |
10 | #define LLVM_LIBC_SRC_STDIO_SCANF_CORE_SCANF_CONFIG_H |
11 | |
12 | // These macros can be set or unset to adjust scanf behavior at compile time. |
13 | |
14 | // This flag disables all functionality relating to floating point numbers. This |
15 | // can be useful for embedded systems or other situations where binary size is |
16 | // important. |
17 | // #define LIBC_COPT_SCANF_DISABLE_FLOAT |
18 | |
19 | // This flag disables index mode, a posix extension often used for |
20 | // internationalization of format strings. Supporting it takes up additional |
21 | // memory and parsing time, so it can be disabled if it's not used. |
22 | // #define LIBC_COPT_SCANF_DISABLE_INDEX_MODE |
23 | |
24 | #endif // LLVM_LIBC_SRC_STDIO_SCANF_CORE_SCANF_CONFIG_H |
25 | |