Mercurial > hg > octave-nkf > gnulib-hg
changeset 17095:8a7efc89bf57
utimens-tests: avoid unnecessary 'inline'
* modules/fdutimensat-tests (configure.ac):
* modules/futimens-tests (configure.ac):
* modules/utimens-tests (configure.ac):
* modules/utimensat-tests (configure.ac):
Remove AC_C_INLINE.
* tests/test-utimens-common.h (ctime_compare):
No longer inline. Simplicity and portability trump efficiency here.
author | Paul Eggert <eggert@cs.ucla.edu> |
---|---|
date | Mon, 27 Aug 2012 23:11:45 -0700 |
parents | 67cb7096523b |
children | 14a45e05c23c |
files | ChangeLog modules/fdutimensat-tests modules/futimens-tests modules/utimens-tests modules/utimensat-tests tests/test-utimens-common.h |
diffstat | 6 files changed, 10 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,14 @@ 2012-09-22 Paul Eggert <eggert@cs.ucla.edu> + utimens-tests: avoid unnecessary 'inline' + * modules/fdutimensat-tests (configure.ac): + * modules/futimens-tests (configure.ac): + * modules/utimens-tests (configure.ac): + * modules/utimensat-tests (configure.ac): + Remove AC_C_INLINE. + * tests/test-utimens-common.h (ctime_compare): + No longer inline. Simplicity and portability trump efficiency here. + misc: don't limit commentary to inline functions * lib/binary-io.h, lib/malloca.h, lib/safe-alloc.c: * lib/xalloc-oversized.h, lib/xsize.h:
--- a/modules/fdutimensat-tests +++ b/modules/fdutimensat-tests @@ -17,7 +17,6 @@ utimecmp configure.ac: -AC_REQUIRE([AC_C_INLINE]) Makefile.am: TESTS += test-fdutimensat
--- a/modules/futimens-tests +++ b/modules/futimens-tests @@ -15,7 +15,6 @@ utimecmp configure.ac: -AC_REQUIRE([AC_C_INLINE]) Makefile.am: TESTS += test-futimens
--- a/modules/utimens-tests +++ b/modules/utimens-tests @@ -16,7 +16,6 @@ utimecmp configure.ac: -AC_REQUIRE([AC_C_INLINE]) Makefile.am: TESTS += test-utimens
--- a/modules/utimensat-tests +++ b/modules/utimensat-tests @@ -14,7 +14,6 @@ utimecmp configure.ac: -AC_REQUIRE([AC_C_INLINE]) Makefile.am: TESTS += test-utimensat
--- a/tests/test-utimens-common.h +++ b/tests/test-utimens-common.h @@ -59,7 +59,7 @@ /* Compare two st_ctime values. Return -1, 0 or 1, respectively when A's st_ctime is smaller than, equal to or greater than B's. */ -static inline int +static int ctime_compare (struct stat const *a, struct stat const *b) { if (a->st_ctime < b->st_ctime)