stdcxx-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Martin Sebor <se...@roguewave.com>
Subject Re: libc_decl.sh (configure.wsf) bug?
Date Mon, 25 Sep 2006 15:21:55 GMT
Farid Zaripov wrote:
>   In etc/config/libc_decl.sh the function wctomb is checked twice: first
> in stdlib.h, second in wchar.h
> 
> libc_decl.sh, line 272:
>     stdlib)
>         c90_funs="abort ... wctomb"
> 
> libc_decl.sh, line 286:
>     wchar)
>         funs="btowc ... wctomb ... wscanf"
> 
>   After that the config.h contains:
> 
> // #define _RWSTD_NO_WCTOMB - the function is found in <cstdlib>
> #define _RWSTD_NO_WCTOMB - the function is not found in <cwchar>
> 
>   It is incorrect.
> 
>   The same concern wcstombs.
> 
>   I didn't found platform where wctomb is declared in <cwchar> header.

You're right, wctomb is only supposed to be declared in stdlib.h.
It got probably confused with wctob.

> 
>   Shall we remove checking of theese functions in wchar.h ?

I think that makes sense.

Martin

Mime
View raw message