xalloc: better 'inline'
authorPaul Eggert <eggert@cs.ucla.edu>
Wed, 21 Nov 2012 06:25:07 +0000 (22:25 -0800)
committerPaul Eggert <eggert@cs.ucla.edu>
Fri, 30 Nov 2012 07:38:52 +0000 (23:38 -0800)
commite76d7f2cbc2cd785d0c5dc5085ba9e41ab4720b9
treec3809d4bde42ca1bf4f60e917a7c7c95a25e66e6
parent691d7bd0ad1d0ba169776bc9ab6a983a8201848e
xalloc: better 'inline'

* lib/xmalloc.c, lib/xalloc.h (XALLOC_INLINE):
New macro.  Replace all uses of 'static inline' with it.
(static_inline): Remove.
* lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
Let 'extern inline' do the work automatically, instead of doing
it by hand.
* m4/xalloc.m4 (gl_PREREQ_XALLOC, gl_PREREQ_XMALLOC):
Remove.  All uses removed.
* modules/xalloc (Depends-on): Remove 'inline'.  Add 'extern-inline'.
ChangeLog
lib/xalloc.h
lib/xmalloc.c
m4/xalloc.m4
modules/xalloc