[PATCH] Adding wcs* and wmem* in libc/string.
Tue Sep 3 11:28:00 GMT 2002
Kazuhiro Fujieda wrote:
> >>> On Mon, 02 Sep 2002 23:16:18 +0200
> >>> "KJK::Hyperion" <firstname.lastname@example.org> said:
> > I insist for wchar_t's constraints to be configurable
> > parameters
> I had agreed to make wchar_t's limits configurable and said I
> was going to specify them with sys/config.h. We can't specify
> them with configure.host because this file is referred only on
> compile time.
Placing this in sys/config.h is the right thing to do. I was going to recommend this.
I assume you will use the same method used for setting wchar_t in stddef.h
whereby a check is made for a special underscored value and if not set,
a default value is provided. The external value is then set to be
the special underscored value. This allows for compiler support if desired.
If any platform supports multiple values and requires configuring this dynamically,
it is easy to implement the configuration option and add the value to newlib.h.
-- Jeff J.
More information about the Newlib