For something like this, it'd be better to tell us which gnulib changes should be made, rather than merely supplying a coccinelle recipe. The xalloc.h changes should come first, tho.
- [PATCH 1/2] Add nmalloc, NMALLOC et al. Ondřej Bílka
- [SPATCH 2/2] Rewrite malloc/malloca to one avoidin... Ondřej Bílka
- Re: [SPATCH 2/2] Rewrite malloc/malloca to one... Paul Eggert
- Re: [SPATCH 2/2] Rewrite malloc/malloca to... Ondřej Bílka
- Re: [PATCH 1/2] Add nmalloc, NMALLOC et al. Paul Eggert
- Re: [PATCH 1/2] Add nmalloc, NMALLOC et al. Ondřej Bílka
- Re: [PATCH 1/2] Add nmalloc, NMALLOC et al... Paul Eggert
- Re: [PATCH 1/2] Add nmalloc, NMALLOC et al... Ondřej Bílka
- Re: [PATCH 1/2] Add nmalloc, NMALLOC et al. Richard W.M. Jones
- Re: [PATCH 1/2] Add nmalloc, NMALLOC et al. Ondřej Bílka
- Re: [PATCH 1/2] Add nmalloc, NMALLOC et al. Paul Eggert
- Re: [PATCH 1/2] Add nmalloc, NMALLOC et al... Richard W.M. Jones