This is the mail archive of the newlib@sourceware.org mailing list for the newlib project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] Automated the generation of the __NEWLIB__, __NEWLIB_MINOR__ and __NEWLIB_PATCHLEVEL__ macros.



----- Am 29. Jan 2016 um 16:11 schrieb Jeff Johnston jjohnstn@redhat.com:

> ----- Original Message -----
>> On Thu, Jan 28, 2016 at 08:27:06AM -0500, Jeff Johnston wrote:
[...]
>> 2. We generate a newlib_version.h at the same level as newlib.h
>> is, and include newlib_version.h in both newlib.h and
>> libc/include/sys/features.h.
>> 
> 
> This idea could be modified to do something like glibc does for bringing in
> particular macros
> from a header file (e.g. __need_size_t to bring in just size_t from stddef.h).
> Thus, you
> set __need_version_macros and include newlib.h in <sys/features.h> and modify
> newlib.h.in
> accordingly.  This restores the current behaviour.  What do you think?
[...]

Could we please not use magic defines to change the behaviour of headers.  This makes it hard to figure out dependencies.  Its much easier to trace simple #include directives.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]