[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: removing stdint's dependency on wchar

From: Paul Eggert
Subject: Re: removing stdint's dependency on wchar
Date: Fri, 18 Feb 2011 12:56:48 -0800
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv: Gecko/20101209 Fedora/3.1.7-0.35.b3pre.fc14 Thunderbird/3.1.7

On 02/18/2011 03:25 AM, Bruno Haible wrote:
Instead I would suggest that you create a new module that provides less
guarantees than the 'stdint' module, and let 'md5' depend on that.

I considered that, but the most logical candidate for a stdint
subset module is "all of stdint except for WINT_MIN, WINT_MAX,
WCHAR_MIN, and WCHAR_MAX".  If we called this module
"stdint-sans-wchar", say, then every
occurrence of "stdint" in gnulib/modules/* should be
replaced by "stdint-sans-wchar".  And I expect this to
be true for nearly every project that uses Gnulib.

This suggests that we should use the name "stdint" for the
common case, and some other name for the rare case of
applications that need WINT_MIN etc.  It'd be easy to
create a module "stdint-with-wchar" to do that, based
on the patch I already sent: simply have a dummy module
that depends on both stdint and wchar.  But the name
"stdint-with-wchar" sounds rather ad hoc.  And really
perhaps it is simpler just to say that if you need the
wchar stuff then use the wchar module too (which you'll
probably be doing anyway, so it's no big deal).  This is
what stdlib already does with random_r.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]