diff options
author | Mike Frysinger <vapier@gentoo.org> | 2022-03-01 08:30:46 +0300 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2022-03-09 12:12:46 +0300 |
commit | b1b44f777c740f8b4317c1a8e44286f228e21541 (patch) | |
tree | 99e03337faf6eada7547dbef5dbad6a815419103 /newlib/Makefile.am | |
parent | d7b16b0576e0b1b9915d7b572c60e3e58d3614ea (diff) |
newlib: rename mallocr.c to _mallocr.c
This file is a little confusing: it provides all of the mallocr logic,
but is compiled multiple times to produce a unique symbol each time.
For example, building mallocr.c with -DDEFINE_FREER produces freer.o
that only defines _free_r(). This is fine for most symbols, but it's
a little confusing when defining mallocr itself -- we produce a file
with the same symbol name, but we still need -DDEFINE_MALLOCR. In
order to move the logic from the build rules to source files, using
mallocr.c both as a multiplexer and for defining a single symbol is a
bit tricky. It's possible (if we add a lot of redundant preprocessor
checks to mallocr.c, or we add complicated build flags just for this
one files), but it's easier if we simply rename this to a dedicated
file. So let's do that.
We do this as a dedicated commit because the next one will create a
new mallocr.c file and git's automatic diff algorithms can handle
trivial renames, but it can't handle renames+creates in the same
commit.
Diffstat (limited to 'newlib/Makefile.am')
0 files changed, 0 insertions, 0 deletions