|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| #include <corecrt_internal_stdio_output.h>
|
|
|
|
|
| using namespace __crt_stdio_output;
|
|
|
|
|
|
|
| template <template <typename, typename> class Base, typename Character>
|
| static int __cdecl common_vcprintf(
|
| unsigned __int64 const options,
|
| Character const* const format,
|
| __crt_cached_ptd_host& ptd,
|
| va_list const arglist
|
| )
|
| {
|
| typedef output_processor<
|
| Character,
|
| console_output_adapter<Character>,
|
| Base<Character, console_output_adapter<Character>>
|
| > processor_type;
|
|
|
| processor_type processor(
|
| console_output_adapter<Character>(),
|
| options,
|
| format,
|
| ptd,
|
| arglist);
|
|
|
| return processor.process();
|
| }
|
|
|
| extern "C" int __cdecl __conio_common_vcprintf(
|
| unsigned __int64 const options,
|
| char const* const format,
|
| _locale_t const locale,
|
| va_list const arglist
|
| )
|
| {
|
| __crt_cached_ptd_host ptd{locale};
|
| return common_vcprintf<standard_base>(options, format, ptd, arglist);
|
| }
|
|
|
| extern "C" int __cdecl __conio_common_vcprintf_s(
|
| unsigned __int64 const options,
|
| char const* const format,
|
| _locale_t const locale,
|
| va_list const arglist
|
| )
|
| {
|
| __crt_cached_ptd_host ptd{locale};
|
| return common_vcprintf<format_validation_base>(options, format, ptd, arglist);
|
| }
|
|
|
| extern "C" int __cdecl __conio_common_vcprintf_p(
|
| unsigned __int64 const options,
|
| char const* const format,
|
| _locale_t const locale,
|
| va_list const arglist
|
| )
|
| {
|
| __crt_cached_ptd_host ptd{locale};
|
| return common_vcprintf<positional_parameter_base>(options, format, ptd, arglist);
|
| }
|
|
|
| extern "C" int __cdecl __conio_common_vcwprintf(
|
| unsigned __int64 const options,
|
| wchar_t const* const format,
|
| _locale_t const locale,
|
| va_list const arglist
|
| )
|
| {
|
| __crt_cached_ptd_host ptd{locale};
|
| return common_vcprintf<standard_base>(options, format, ptd, arglist);
|
| }
|
|
|
| extern "C" int __cdecl __conio_common_vcwprintf_s(
|
| unsigned __int64 const options,
|
| wchar_t const* const format,
|
| _locale_t const locale,
|
| va_list const arglist
|
| )
|
| {
|
| __crt_cached_ptd_host ptd{locale};
|
| return common_vcprintf<format_validation_base>(options, format, ptd, arglist);
|
| }
|
|
|
| extern "C" int __cdecl __conio_common_vcwprintf_p(
|
| unsigned __int64 const options,
|
| wchar_t const* const format,
|
| _locale_t const locale,
|
| va_list const arglist
|
| )
|
| {
|
| __crt_cached_ptd_host ptd{locale};
|
| return common_vcprintf<positional_parameter_base>(options, format, ptd, arglist);
|
| }
|
|
|