summaryrefslogtreecommitdiff
path: root/lib/parse-duration.c
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2012-11-20 22:25:09 -0800
committerPaul Eggert <eggert@cs.ucla.edu>2012-11-29 23:38:56 -0800
commitfe23fd49277a18ab080bdc4b1cd3df04c2526123 (patch)
tree73d8d6c4711ac444801f35acce0ff0cec695598b /lib/parse-duration.c
parent6c57163fce3714ebd5ee93d69e3063292b2b69fb (diff)
downloadgnulib-fe23fd49277a18ab080bdc4b1cd3df04c2526123.tar.gz
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.
Diffstat (limited to 'lib/parse-duration.c')
-rw-r--r--lib/parse-duration.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/parse-duration.c b/lib/parse-duration.c
index e49060aec3..8ae2844fcd 100644
--- a/lib/parse-duration.c
+++ b/lib/parse-duration.c
@@ -54,14 +54,14 @@ typedef enum {
#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 @@ str_const_to_l (cch_t * str, cch_t ** ppz, int base)
/* 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)