Re: [PATCH] Use !__HAVE_LOCALE_INFO__ define to use _ctype_ directly [v2]
Corinna Vinschen <[email protected]>
| Newsgroups | gmane.comp.lib.newlib |
|---|---|
| Message-ID | <[email protected]> |
On Sep 5 21:39, Keith Packard wrote: > When __HAVE_LOCALE_INFO__ is not selected, directly access the > existing _ctype_ variable from __locale_ctype_ptr() and > __locale_ctype_ptr_l(), eliminating the need for any locale or reent > structure > > Signed-off-by: Keith Packard <[email protected]> > > v2: > locale: fix conflict with __locale_ctype_ptr macro > > If we are building without __HAVE_LOCALE_INFO__, there is a > macro providing __locale_ctype_ptr which in turn fouls up this > declaration. > > Signed-off-by: Michael Lyle <[email protected]> > --- > > This is one of a set of patches designed to reduce the number of > functions which need reent and a locale structures in smaller > configurations. In this case, I want to make the ctype macros directly > access the existing _ctype_ global array instead of jumping through a > function to get a locale structure out of a reent structure. > > However, I'm not sure __HAVE_LOCALE_INFO__ is the right flag to use > for this. If another existing configure flag is appropriate, I'd like > to know. Or perhaps I just need a new flag? > > newlib/libc/include/ctype.h | 9 +++++++++ > newlib/libc/locale/locale.c | 2 ++ > newlib/libc/locale/setlocale.h | 8 ++++++++ > 3 files changed, 19 insertions(+) Pushed. Thanks, Corinna -- Corinna Vinschen Cygwin Maintainer Red Hat
signature.asc
(application/pgp-signature, 833 B)
-----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEoVYPmneWZnwT6kwF9TYGna5ET6AFAluRHA0ACgkQ9TYGna5E T6C4HQ/9FHz4HyGVHhfOHWfElqJqkfBPSYtSjJeD+y77ELSyt0UW2ByBqO0z7wWB PmsR+k37ciWjsYUadeV9Rzg1D7R+SQ4gr1ln78GMNcpf8PNz8trEyK0fDz4cdVHn rNNZFAy0wqak59g3zpv26pl5Yq03q9DRUevNWUwQpn+MjCbuFWw/Srn1kE0uCaUb mmXwSlUothz6s/qvza3YhQfhnTvdjBEFFdCvCcwU2qpYnvza+mMEjM8MqcpBAk1l +SsIwAykC+Z16OjBtDM3e4k3aVrq3wImPV4JcrJ0vxNTDCfZiBhNTx/p1vKb0ipj vxDrbGKkiEvctnxmCEqwuMPKu5v8WliTSaZkwyMmta8NS4JSxR91sWToC21skRXw 9w0xSRzKJWC7PWu8/TdfsVetzJ8M7Wt1+4HhKmQ8JLmAmqVhJlGNf22eMnBGUjqd mtT2hjHxT5CZqk+gudOdynS4WthLb2keT8Jv6WcEDWYuHJOu6aR5DT5FjlRzAAni FHiSxyEqqtLAFJsAHpT2g6dgLDhAIQNBcKS8kpAOgS1ud3qVvy5JDXOCs0ev6kOi m22HD6tEJFiAbWN/qo3F+ISSh5bLkw1ceBPCaVI5QJOZ7gd7UrK5jcwkFhRHJudW 1Gb/sWW9TVMzPEN9OMHUzsJWU7gd64sc/gfAjXqVktEtw6JmNhc= =NjxA -----END PGP SIGNATURE-----