Changeset 21927 for trunk/lib/unicode


Ignore:
Timestamp:
Dec 23, 2011, 7:16:58 PM (14 years ago)
Author:
dmik
Message:

Fix build breaks with the newest GCC 4.4.6 from GIT.

In particular, GCC is now strict about matching the calling convention
of the prototype (argument) and the real function used.

Location:
trunk/lib/unicode
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/unicode/cptable.c

    r21916 r21927  
    150150
    151151/* get the table of a given code page */
    152 const union cptable *cp_get_table( unsigned int codepage )
     152_K32CONV const union cptable *cp_get_table( unsigned int codepage )
    153153{
    154154    const union cptable **res;
     
    166166
    167167/* enum valid codepages */
    168 const union cptable *cp_enum_table( unsigned int index )
     168_K32CONV const union cptable *cp_enum_table( unsigned int index )
    169169{
    170170    if (index >= NB_CODEPAGES) return NULL;
  • trunk/lib/unicode/mbtowc.c

    r21916 r21927  
    236236
    237237/* return -1 on dst buffer overflow, -2 on invalid input char */
    238 int cp_mbstowcs( const union cptable *table, int flags,
    239                  const char *src, int srclen,
    240                  WCHAR *dst, int dstlen )
     238_K32CONV int cp_mbstowcs( const union cptable *table, int flags,
     239                          const char *src, int srclen,
     240                          WCHAR *dst, int dstlen )
    241241{
    242242    if (NULL == src) return -2;
  • trunk/lib/unicode/string.c

    r21916 r21927  
    1212#include "wine/unicode.h"
    1313
    14 int strcmpiW( const WCHAR *str1, const WCHAR *str2 )
     14_K32CONV int strcmpiW( const WCHAR *str1, const WCHAR *str2 )
    1515{
    1616    for (;;)
     
    2323}
    2424
    25 int strncmpiW( const WCHAR *str1, const WCHAR *str2, int n )
     25_K32CONV int strncmpiW( const WCHAR *str1, const WCHAR *str2, int n )
    2626{
    2727    int ret = 0;
     
    3131}
    3232
    33 WCHAR *strstrW( const WCHAR *str, const WCHAR *sub )
     33_K32CONV WCHAR *strstrW( const WCHAR *str, const WCHAR *sub )
    3434{
    3535    while (*str)
     
    4646/* Copyright (C) 1991,92,94,95,96,97,98,99,2000,2001 Free Software Foundation, Inc. */
    4747
    48 long int strtolW( const WCHAR *nptr, WCHAR **endptr, int base )
     48_K32CONV long int strtolW( const WCHAR *nptr, WCHAR **endptr, int base )
    4949{
    5050  int negative;
     
    165165}
    166166
    167 unsigned long int strtoulW( const WCHAR *nptr, WCHAR **endptr, int base )
     167_K32CONV unsigned long int strtoulW( const WCHAR *nptr, WCHAR **endptr, int base )
    168168{
    169169  int negative;
     
    276276}
    277277
    278 int vsnprintfW(WCHAR *str, unsigned int len, const WCHAR *format, va_list valist)
     278_K32CONV int vsnprintfW(WCHAR *str, unsigned int len, const WCHAR *format, va_list valist)
    279279{
    280280    unsigned int written = 0;
     
    395395
    396396
    397 int snprintfW(WCHAR *str, unsigned int len, const WCHAR *format, ...)
     397_K32CONV int snprintfW(WCHAR *str, unsigned int len, const WCHAR *format, ...)
    398398{
    399399    int retval;
     
    405405}
    406406
    407 int sprintfW( WCHAR *str, const WCHAR *format, ...)
     407_K32CONV int sprintfW( WCHAR *str, const WCHAR *format, ...)
    408408{
    409409    int retval;
  • trunk/lib/unicode/utf8.c

    r21916 r21927  
    4747/* wide char to UTF-8 string conversion */
    4848/* return -1 on dst buffer overflow */
    49 int utf8_wcstombs( const WCHAR *src, int srclen, char *dst, int dstlen )
     49_K32CONV int utf8_wcstombs( const WCHAR *src, int srclen, char *dst, int dstlen )
    5050{
    5151    int ret = srclen;
     
    127127/* UTF-8 to wide char string conversion */
    128128/* return -1 on dst buffer overflow, -2 on invalid input char */
    129 int utf8_mbstowcs( int flags, const char *src, int srclen, WCHAR *dst, int dstlen )
     129_K32CONV int utf8_mbstowcs( int flags, const char *src, int srclen, WCHAR *dst, int dstlen )
    130130{
    131131    int len, count;
  • trunk/lib/unicode/wctomb.c

    r21916 r21927  
    378378/* wide char to multi byte string conversion */
    379379/* return -1 on dst buffer overflow */
    380 int cp_wcstombs( const union cptable *table, int flags,
     380_K32CONV int cp_wcstombs( const union cptable *table, int flags,
    381381                 const WCHAR *src, int srclen,
    382382                 char *dst, int dstlen, const char *defchar, int *used )
Note: See TracChangeset for help on using the changeset viewer.