This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc 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] |
On 04/12/2017 05:24 PM, Dennis Wölfing wrote:
The static inline function check_mul_overflow is used in both reallocarray and calloc. So that function would need to be in a file that can be included by both malloc.c and a new reallocarray.c file. Would malloc-internal.h be a good location to put that inline function or should I place it into its own separate file?
Use malloc-internal.h or create a new malloc-private.h header. malloc-internal.h is used for things which are used in other glibc modules (fork handler and ld.so), but we aren't fully consistent yet about the distinction in other areas of the library.
Thanks, Florian
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |