diff options
author | Paul Eggert <eggert@cs.ucla.edu> | 2012-11-20 22:25:07 -0800 |
---|---|---|
committer | Paul Eggert <eggert@cs.ucla.edu> | 2012-11-29 23:38:53 -0800 |
commit | 618fd97d05ba9f1411536c887dbeebe3807c055a (patch) | |
tree | 7395f6837f57d17af06fbd4d3aaf64b5abbe61e6 /modules/xlist | |
parent | e76d7f2cbc2cd785d0c5dc5085ba9e41ab4720b9 (diff) | |
download | gnulib-618fd97d05ba9f1411536c887dbeebe3807c055a.tar.gz |
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.
Diffstat (limited to 'modules/xlist')
-rw-r--r-- | modules/xlist | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/modules/xlist b/modules/xlist index ce17e6b66d..37c31af234 100644 --- a/modules/xlist +++ b/modules/xlist @@ -4,16 +4,14 @@ Abstract sequential list data type, with out-of-memory checking. Files: lib/gl_xlist.h lib/gl_xlist.c -m4/gl_list.m4 Depends-on: list -inline +extern-inline stdbool xalloc-die configure.ac: -gl_LIST Makefile.am: lib_SOURCES += gl_xlist.h gl_xlist.c |