Ignore:
Timestamp:
Mar 31, 2003, 1:53:30 PM (23 years ago)
Author:
sandervl
Message:

PF: Added vsnprintfW/snprintfW funcs for syncing with latest wine NTDLL

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/win/wine/unicode.h

    r9367 r9962  
    1010#ifndef RC_INVOKED
    1111
     12#include <stdarg.h>
    1213#if !defined(OS2_INCLUDED) && !defined(__WIN32TYPE_H__)
    1314#include <windef.h>
    1415#endif
    1516#include <winnls.h>
     17
    1618
    1719#ifndef strncasecmp
     
    6567#endif
    6668
    67 extern const union cptable *cp_get_table( unsigned int codepage );
    68 extern const union cptable *cp_enum_table( unsigned int index );
    69 
    70 extern int cp_mbstowcs( const union cptable *table, int flags,
     69#ifdef __EMX__
     70#define _K32CONV _optlink
     71#else
     72#define _K32CONV
     73#endif
     74
     75extern _K32CONV const union cptable *cp_get_table( unsigned int codepage );
     76extern _K32CONV const union cptable *cp_enum_table( unsigned int index );
     77
     78extern _K32CONV int cp_mbstowcs( const union cptable *table, int flags,
    7179                        const char *src, int srclen,
    7280                        WCHAR *dst, int dstlen );
    73 extern int cp_wcstombs( const union cptable *table, int flags,
     81extern _K32CONV int cp_wcstombs( const union cptable *table, int flags,
    7482                        const WCHAR *src, int srclen,
    7583                        char *dst, int dstlen, const char *defchar, int *used );
    76 extern int utf8_wcstombs( const WCHAR *src, int srclen, char *dst, int dstlen );
    77 extern int utf8_mbstowcs( int flags, const char *src, int srclen, WCHAR *dst, int dstlen );
    78 
    79 extern int strcmpiW( const WCHAR *str1, const WCHAR *str2 );
    80 extern int strncmpiW( const WCHAR *str1, const WCHAR *str2, int n );
    81 extern WCHAR *strstrW( const WCHAR *str, const WCHAR *sub );
    82 extern long int strtolW( const WCHAR *nptr, WCHAR **endptr, int base );
    83 extern unsigned long int strtoulW( const WCHAR *nptr, WCHAR **endptr, int base );
     84extern _K32CONV int utf8_wcstombs( const WCHAR *src, int srclen, char *dst, int dstlen );
     85extern _K32CONV int utf8_mbstowcs( int flags, const char *src, int srclen, WCHAR *dst, int dstlen );
     86
     87extern _K32CONV int strcmpiW( const WCHAR *str1, const WCHAR *str2 );
     88extern _K32CONV int strncmpiW( const WCHAR *str1, const WCHAR *str2, int n );
     89extern _K32CONV WCHAR *strstrW( const WCHAR *str, const WCHAR *sub );
     90extern _K32CONV long int strtolW( const WCHAR *nptr, WCHAR **endptr, int base );
     91extern _K32CONV unsigned long int strtoulW( const WCHAR *nptr, WCHAR **endptr, int base );
     92extern _K32CONV int snprintfW( WCHAR *str, unsigned int len, const WCHAR *format, ... );
     93extern _K32CONV int vsnprintfW( WCHAR *str, unsigned int len, const WCHAR *format, va_list valist );
    8494
    8595static inline int is_dbcs_leadbyte( const union cptable *table, unsigned char ch )
Note: See TracChangeset for help on using the changeset viewer.