Date: Sat, 14 Mar 2015 19:08:35 +0000 (UTC) From: Christian Weisgerber <naddy@mips.inka.de> To: freebsd-ports@freebsd.org Subject: Re: converters/iconv versioning Message-ID: <slrnmg91pj.2n6s.naddy@lorvorc.mips.inka.de> References: <54FF75A2.4020803@gmail.com> <CAOc73CAGxtx%2B2P-c4aX3E_PidZ7ThW85zni1_cvgutqhzfYQrw@mail.gmail.com> <54FF8A19.3090700@gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On 2015-03-11, Scott Furry <scott.wl.furry@gmail.com> wrote: > Okay...different iconv. But what's the reason for change? > And does this one function call really need to be const? Is the > __restrict in the type not used on FreeBSD? > > Seems strange to differ on a gnu-based. POSIX says: size_t iconv(iconv_t cd, char **restrict inbuf, size_t *restrict inbytesleft, char **restrict outbuf, size_t *restrict outbytesleft); For GNU iconv, whether you have a const in the prototype or not is configurable. I think by default it tries to match the prototype of an existing iconv on the machine. The FreeBSD port specifically asks for the const, presumably for consistency with earlier versions. -- Christian "naddy" Weisgerber naddy@mips.inka.de
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?slrnmg91pj.2n6s.naddy>