25 lines · c
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-exception6//7//===----------------------------------------------------------------------===//8 9#ifndef LLVM_LIBC_SRC_STDIO_SCANF_CORE_SCANF_CONFIG_H10#define LLVM_LIBC_SRC_STDIO_SCANF_CORE_SCANF_CONFIG_H11 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. This15// can be useful for embedded systems or other situations where binary size is16// important.17// #define LIBC_COPT_SCANF_DISABLE_FLOAT18 19// This flag disables index mode, a posix extension often used for20// internationalization of format strings. Supporting it takes up additional21// memory and parsing time, so it can be disabled if it's not used.22// #define LIBC_COPT_SCANF_DISABLE_INDEX_MODE23 24#endif // LLVM_LIBC_SRC_STDIO_SCANF_CORE_SCANF_CONFIG_H25