iconv: match SUSv3 prototype
* libc/include/iconv.h (iconv): Match POSIX prototype. * libc/iconv/lib/iconv.c (iconv): Likewise.
This commit is contained in:
parent
c11ba63d52
commit
3584ff9cb2
|
@ -1,3 +1,8 @@
|
|||
2009-08-21 Eric Blake <ebb9@byu.net>
|
||||
|
||||
* libc/include/iconv.h (iconv): Match POSIX prototype.
|
||||
* libc/iconv/lib/iconv.c (iconv): Likewise.
|
||||
|
||||
2009-08-21 Craig Howland <howland@LGSInnovations.com>
|
||||
|
||||
* libm/common/s_remquo.c (remquo): Fix sign of quotient when |x|==|y|.
|
||||
|
|
|
@ -45,7 +45,7 @@ ANSI_SYNOPSIS
|
|||
#include <iconv.h>
|
||||
iconv_t iconv_open (const char *<[to]>, const char *<[from]>);
|
||||
int iconv_close (iconv_t <[cd]>);
|
||||
size_t iconv (iconv_t <[cd]>, const char **<[inbuf]>,
|
||||
size_t iconv (iconv_t <[cd]>, char **<[inbuf]>,
|
||||
size_t *<[inbytesleft]>,
|
||||
char **<[outbuf]>, size_t *<[outbytesleft]>),
|
||||
|
||||
|
@ -61,7 +61,7 @@ TRAD_SYNOPSIS
|
|||
#include <iconv.h>
|
||||
size_t iconv (<[cd]>, <[in]>, <[inleft]>, <[out]>, <[outleft]>)
|
||||
iconv_t <[cd]>;
|
||||
const char **<[in]>;
|
||||
char **<[in]>;
|
||||
size_t *<[inleft]>;
|
||||
char **<[out]>;
|
||||
size_t *<[outleft]>);
|
||||
|
@ -168,12 +168,13 @@ _DEFUN(iconv_open, (to, from),
|
|||
size_t
|
||||
_DEFUN(iconv, (cd, inbuf, inbytesleft, outbuf, outbytesleft),
|
||||
iconv_t cd _AND
|
||||
_CONST char **inbuf _AND
|
||||
char **inbuf _AND
|
||||
size_t *inbytesleft _AND
|
||||
char **outbuf _AND
|
||||
size_t *outbytesleft)
|
||||
{
|
||||
return _iconv_r (_REENT, cd, inbuf, inbytesleft, outbuf, outbytesleft);
|
||||
return _iconv_r (_REENT, cd, (_CONST char **) inbuf, inbytesleft,
|
||||
outbuf, outbytesleft);
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -37,11 +37,11 @@ typedef _iconv_t iconv_t;
|
|||
_BEGIN_STD_C
|
||||
|
||||
#ifndef _REENT_ONLY
|
||||
iconv_t
|
||||
iconv_t
|
||||
_EXFUN(iconv_open, (_CONST char *, _CONST char *));
|
||||
|
||||
size_t
|
||||
_EXFUN(iconv, (iconv_t, _CONST char **, size_t *, char **, size_t *));
|
||||
_EXFUN(iconv, (iconv_t, char **, size_t *, char **, size_t *));
|
||||
|
||||
int
|
||||
_EXFUN(iconv_close, (iconv_t));
|
||||
|
@ -51,7 +51,7 @@ iconv_t
|
|||
_EXFUN(_iconv_open_r, (struct _reent *, _CONST char *, _CONST char *));
|
||||
|
||||
size_t
|
||||
_EXFUN(_iconv_r, (struct _reent *, iconv_t, _CONST char **,
|
||||
_EXFUN(_iconv_r, (struct _reent *, iconv_t, _CONST char **,
|
||||
size_t *, char **, size_t *));
|
||||
|
||||
int
|
||||
|
|
Loading…
Reference in New Issue