]> Savannah Git Hosting - gnulib.git/commit
list, oset, xlist, xoset, xsublist: simplify via extern 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:53 +0000 (23:38 -0800)
commit618fd97d05ba9f1411536c887dbeebe3807c055a
tree7395f6837f57d17af06fbd4d3aaf64b5abbe61e6
parente76d7f2cbc2cd785d0c5dc5085ba9e41ab4720b9
list, oset, xlist, xoset, xsublist: simplify via extern inline

* lib/gl_list.h, lib/gl_list.c (GL_LIST_INLINE):
* lib/gl_oset.c, lib/gl_oset.h (GL_OSET_INLINE):
* lib/gl_xlist.c, lib/gl_xlist.h (GL_XLIST_INLINE):
* lib/gl_xoset.c, lib/gl_xoset.h (GL_XOSET_INLINE):
* lib/gl_xsublist.c, lib/gl_xsublist.h (GL_XSUBLIST_INLINE):
New macro.  Replace all uses of 'static inline' with it.
[HAVE_INLINE]: Implement functions as *_INLINE functions,
instead of as macros FOO that are defined to static inline
functions FOO_inline.
* lib/gl_list.c, lib/gl_oset.c, lib/gl_xlist.c, lib/gl_xoset.c:
* lib/gl_xsublist.c:
Reimplement from scratch, by defining the corresponding *_INLINE
macro and including the corresponding .h file.  This is simpler.
* m4/gl_list.m4: Remove.
* modules/list, modules/oset, modules/xlist, modules/xoset:
(Files): Remove m4/gl_list.m4.
(configure.ac): Remove gl_LIST.
* modules/list, modules/oset, modules/xlist, modules/xoset:
* modules/xsublist:
(Depends-on): Depend on extern-inline, not inline.
17 files changed:
ChangeLog
lib/gl_list.c
lib/gl_list.h
lib/gl_oset.c
lib/gl_oset.h
lib/gl_xlist.c
lib/gl_xlist.h
lib/gl_xoset.c
lib/gl_xoset.h
lib/gl_xsublist.c
lib/gl_xsublist.h
m4/gl_list.m4 [deleted file]
modules/list
modules/oset
modules/xlist
modules/xoset
modules/xsublist