//===-- Internal Implementation of asprintf ---------------------*- 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/__support/arg_list.h" #include "src/stdio/printf.h" #include "src/stdio/printf_core/core_structs.h" #include "src/stdio/printf_core/printf_main.h" #include "src/stdio/printf_core/writer.h" #include <stdlib.h> // malloc, realloc, free namespace LIBC_NAMESPACE { namespace printf_core { LIBC_INLINE int resize_overflow_hook(cpp::string_view new_str, void *target) { … } constexpr size_t DEFAULT_BUFFER_SIZE = …; LIBC_INLINE int vasprintf_internal(char **ret, const char *format, internal::ArgList args) { … } } // namespace printf_core } // namespace LIBC_NAMESPACE