Changeset 21506 for trunk/src


Ignore:
Timestamp:
Dec 3, 2010, 6:09:59 PM (15 years ago)
Author:
dmik
Message:

minivcrt: Added a bunch of *wprintf() functions.

Location:
trunk/src/msvcrt
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/msvcrt/file.c

    r21402 r21506  
    24662466}
    24672467
     2468#endif /* !__MINIVCRT__ */
     2469
    24682470/*********************************************************************
    24692471 *              vfwprintf (MSVCRT.@)
     
    24722474 * (then we must test for equality too)?
    24732475 */
    2474 int MSVCRT_vfwprintf(MSVCRT_FILE* file, const MSVCRT_wchar_t *format, va_list valist)
     2476int MSVCRT(vfwprintf)(MSVCRT_FILE* file, const MSVCRT_wchar_t *format, va_list valist)
    24752477{
    24762478  MSVCRT_wchar_t buf[2048], *mem = buf;
     
    24922494}
    24932495
     2496#ifndef __MINIVCRT__
     2497
    24942498/*********************************************************************
    24952499 *              vprintf (MSVCRT.@)
     
    25002504}
    25012505
     2506#endif /* !__MINIVCRT__ */
     2507
    25022508/*********************************************************************
    25032509 *              vwprintf (MSVCRT.@)
    25042510 */
    2505 int MSVCRT_vwprintf(const MSVCRT_wchar_t *format, va_list valist)
    2506 {
    2507   return MSVCRT_vfwprintf(MSVCRT_stdout,format,valist);
    2508 }
     2511int MSVCRT(vwprintf)(const MSVCRT_wchar_t *format, va_list valist)
     2512{
     2513  return MSVCRT(vfwprintf)(MSVCRT_stdout,format,valist);
     2514}
     2515
     2516#ifndef __MINIVCRT__
    25092517
    25102518/*********************************************************************
     
    25212529}
    25222530
     2531#endif /* !__MINIVCRT__ */
     2532
    25232533/*********************************************************************
    25242534 *              fwprintf (MSVCRT.@)
    25252535 */
    2526 int MSVCRT_fwprintf(MSVCRT_FILE* file, const MSVCRT_wchar_t *format, ...)
     2536int MSVCRT(fwprintf)(MSVCRT_FILE* file, const MSVCRT_wchar_t *format, ...)
    25272537{
    25282538    va_list valist;
    25292539    int res;
    25302540    va_start(valist, format);
    2531     res = MSVCRT_vfwprintf(file, format, valist);
     2541    res = MSVCRT(vfwprintf)(file, format, valist);
    25322542    va_end(valist);
    25332543    return res;
    25342544}
     2545
     2546#ifndef __MINIVCRT__
    25352547
    25362548/*********************************************************************
  • trunk/src/msvcrt/minivcrt_internal.h

    r21439 r21506  
    2121#define MSVCRT_wchar_t  WCHAR
    2222#define MSVCRT_size_t   size_t
     23#define MSVCRT_FILE     FILE
     24#define MSVCRT_EOF      EOF
     25#define MSVCRT_stdout   stdout
    2326
    2427#define MSVCRT__errno       _errno
     
    2730#define MSVCRT__fullpath    _fullpath
    2831#endif
     32
    2933#define MSVCRT_malloc       malloc
     34#define MSVCRT_free         free
     35#define MSVCRT_fwrite       fwrite
    3036
    3137#define TRACE 1 ? (void)0 : (void)((int (*)(char *, ...)) NULL)
  • trunk/src/msvcrt/wcs.c

    r21402 r21506  
    146146 *              vswprintf (MSVCRT.@)
    147147 */
    148 int MSVCRT_vswprintf( MSVCRT_wchar_t* str, const MSVCRT_wchar_t* format, va_list args )
     148int MSVCRT(vswprintf)( MSVCRT_wchar_t* str, const MSVCRT_wchar_t* format, va_list args )
    149149{
    150150    return vsnprintfW( str, INT_MAX, format, args );
Note: See TracChangeset for help on using the changeset viewer.