# HG changeset patch # User Paul Eggert # Date 1353479109 28800 # Node ID 6d636e4f04090a45a0d3762c89d8c841bdf081d8 # Parent c802dbdee218ba61c031235685d4441471d2af90 parse-datetime, parse-duration: no 'static inline' * lib/parse-datetime.y (to_uchar): * lib/parse-duration.c (str_const_to_ul, str_const_to_l) (scale_n_add): Now static, not static inline. * m4/parse-datetime.m4 (gl_PARSE_DATETIME): * modules/parse-duration (configure.ac): Do not require AC_C_INLINE. diff -r c802dbdee218 -r 6d636e4f0409 ChangeLog --- a/ChangeLog Tue Nov 20 22:25:09 2012 -0800 +++ b/ChangeLog Tue Nov 20 22:25:09 2012 -0800 @@ -1,5 +1,14 @@ 2012-11-29 Paul Eggert + parse-datetime, parse-duration: no 'static inline' + * lib/parse-datetime.y (to_uchar): + * lib/parse-duration.c (str_const_to_ul, str_const_to_l) + (scale_n_add): + Now static, not static inline. + * m4/parse-datetime.m4 (gl_PARSE_DATETIME): + * modules/parse-duration (configure.ac): + Do not require AC_C_INLINE. + getaddrinfo: no 'static inline' * lib/getaddrinfo.c (validate_family): Now static, not static inline. diff -r c802dbdee218 -r 6d636e4f0409 lib/parse-datetime.y --- a/lib/parse-datetime.y Tue Nov 20 22:25:09 2012 -0800 +++ b/lib/parse-datetime.y Tue Nov 20 22:25:09 2012 -0800 @@ -116,7 +116,7 @@ /* Convert a possibly-signed character to an unsigned character. This is a bit safer than casting to unsigned char, since it catches some type errors that the cast doesn't. */ -static inline unsigned char to_uchar (char ch) { return ch; } +static unsigned char to_uchar (char ch) { return ch; } /* Lots of this code assumes time_t and time_t-like values fit into long_time_t. */ diff -r c802dbdee218 -r 6d636e4f0409 lib/parse-duration.c --- a/lib/parse-duration.c Tue Nov 20 22:25:09 2012 -0800 +++ b/lib/parse-duration.c Tue Nov 20 22:25:09 2012 -0800 @@ -54,14 +54,14 @@ #define TIME_MAX 0x7FFFFFFF /* Wrapper around strtoul that does not require a cast. */ -static unsigned long inline +static unsigned long str_const_to_ul (cch_t * str, cch_t ** ppz, int base) { return strtoul (str, (char **)ppz, base); } /* Wrapper around strtol that does not require a cast. */ -static long inline +static long str_const_to_l (cch_t * str, cch_t ** ppz, int base) { return strtol (str, (char **)ppz, base); @@ -70,7 +70,7 @@ /* Returns BASE + VAL * SCALE, interpreting BASE = BAD_TIME with errno set as an error situation, and returning BAD_TIME with errno set in an error situation. */ -static time_t inline +static time_t scale_n_add (time_t base, time_t val, int scale) { if (base == BAD_TIME) diff -r c802dbdee218 -r 6d636e4f0409 m4/parse-datetime.m4 --- a/m4/parse-datetime.m4 Tue Nov 20 22:25:09 2012 -0800 +++ b/m4/parse-datetime.m4 Tue Nov 20 22:25:09 2012 -0800 @@ -1,4 +1,4 @@ -# parse-datetime.m4 serial 20 +# parse-datetime.m4 serial 21 dnl Copyright (C) 2002-2006, 2008-2012 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, @@ -32,7 +32,6 @@ dnl Prerequisites of lib/parse-datetime.y. AC_REQUIRE([gl_BISON]) - AC_REQUIRE([AC_C_INLINE]) AC_REQUIRE([gl_C_COMPOUND_LITERALS]) AC_STRUCT_TIMEZONE AC_REQUIRE([gl_CLOCK_TIME]) diff -r c802dbdee218 -r 6d636e4f0409 modules/parse-duration --- a/modules/parse-duration Tue Nov 20 22:25:09 2012 -0800 +++ b/modules/parse-duration Tue Nov 20 22:25:09 2012 -0800 @@ -8,7 +8,6 @@ Depends-on: configure.ac: -AC_REQUIRE([AC_C_INLINE]) Makefile.am: lib_SOURCES += parse-duration.c @@ -21,4 +20,3 @@ Maintainer: Bruce Korb -