Paul Eggert wrote: > > For the others, I would say that '*-0safe' variants are not needed, because > > the allocation is special and therefore the programmer can be assumed to be > > careful there (cf. option (c) in [1]). > > I'd rather not make that assumption, as programmers are too error-prone > and it should be easy for us to not make that assumption. > ... > I don't want the new module to affect just realloc. I want it to affect > all alloc variants. I don't want to worry whether realloc returns > nonnull but reallocarray, aligned_alloc, etc. do not. They should all be > consistent.
I see. So, you're going for a "transversal" module, like 'sigpipe' or 'nonblocking'. We have a piece of documentation about such modules: https://www.gnu.org/software/gnulib/manual/html_node/Modules-that-modify-the-way-other-modules-work.html How would you answer the question “If my module occurs among the modules of gltests, should it have an effect on the modules in gllib?” in this case? Bruno