Re: [PATCH] rawmemchr: modernize and simplify

2021-08-21 Thread Bruno Haible
Hi Paul, > * lib/rawmemchr.c (HAVE_RAWMEMCHR): Assume it’s not defined; > otherwise this file would not be compiled. Unfortunately, this assumption does not hold. This file, when used as part of the 'relocatable-prog-wrapper' module, is compiled unconditionally. $ ./gnulib-tool --find

[PATCH] rawmemchr: modernize and simplify

2021-08-20 Thread Paul Eggert
* lib/rawmemchr.c (HAVE_RAWMEMCHR): Assume it’s not defined; otherwise this file would not be compiled. Include limits.h, stdalign.h, stdint.h, verify.h. (rawmemchr): Prefer uintptr_t to unsigned long and to size_t when it’s the better type. Verify that longword lacks padding. Use alignof