aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorPaul Eggert2012-08-19 16:31:24 -0700
committerPaul Eggert2012-08-19 16:31:24 -0700
commit562d4436bce90adc8535aeb2b9b1517952ee67ad (patch)
tree5f0e3326cb58d26d69af7e30714ecf4c13d88f73 /lib
parentb69a6d228467365b4ed2545dcb1ecc3582d20e2a (diff)
downloademacs-562d4436bce90adc8535aeb2b9b1517952ee67ad.tar.gz
emacs-562d4436bce90adc8535aeb2b9b1517952ee67ad.zip
Merge from gnulib.
2012-08-19 ignore-value, stat-time, timespec: omit AC_C_INLINE 2012-08-19 mktime, sys_select: avoid 'static inline' 2012-08-19 gnulib-tool: Fix indentation.
Diffstat (limited to 'lib')
-rw-r--r--lib/gnulib.mk2
-rw-r--r--lib/mktime.c4
-rw-r--r--lib/sys_select.in.h2
3 files changed, 4 insertions, 4 deletions
diff --git a/lib/gnulib.mk b/lib/gnulib.mk
index 0cc0e68bb7b..a90cc59bbde 100644
--- a/lib/gnulib.mk
+++ b/lib/gnulib.mk
@@ -21,7 +21,7 @@
21# the same distribution terms as the rest of that program. 21# the same distribution terms as the rest of that program.
22# 22#
23# Generated by gnulib-tool. 23# Generated by gnulib-tool.
24# Reproduce by: gnulib-tool --import --dir=. --lib=libgnu --source-base=lib --m4-base=m4 --doc-base=doc --tests-base=tests --aux-dir=build-aux --avoid=errno --avoid=fcntl --avoid=fcntl-h --avoid=fstat --avoid=msvc-inval --avoid=msvc-nothrow --avoid=raise --avoid=select --avoid=sigprocmask --avoid=sys_types --avoid=threadlib --makefile-name=gnulib.mk --conditional-dependencies --no-libtool --macro-prefix=gl --no-vc-files alloca-opt c-strcase careadlinkat crypto/md5 crypto/sha1 crypto/sha256 crypto/sha512 dtoastr dtotimespec dup2 environ filemode getloadavg getopt-gnu gettime gettimeofday ignore-value intprops largefile lstat manywarnings mktime pselect pthread_sigmask readlink socklen stat-time stdalign stdarg stdio strftime strtoimax strtoumax symlink sys_stat sys_time time timespec-add timespec-sub utimens warnings 24# Reproduce by: gnulib-tool --import --dir=. --lib=libgnu --source-base=lib --m4-base=m4 --doc-base=doc --tests-base=tests --aux-dir=build-aux --avoid=errno --avoid=fcntl --avoid=fcntl-h --avoid=fstat --avoid=msvc-inval --avoid=msvc-nothrow --avoid=raise --avoid=select --avoid=sigprocmask --avoid=sys_types --avoid=threadlib --makefile-name=gnulib.mk --conditional-dependencies --no-libtool --macro-prefix=gl --no-vc-files alloca-opt c-ctype c-strcase careadlinkat crypto/md5 crypto/sha1 crypto/sha256 crypto/sha512 dtoastr dtotimespec dup2 environ filemode getloadavg getopt-gnu gettime gettimeofday ignore-value intprops largefile lstat manywarnings mktime pselect pthread_sigmask readlink socklen stat-time stdalign stdarg stdbool stdio strftime strtoimax strtoumax symlink sys_stat sys_time time timespec-add timespec-sub utimens warnings
25 25
26 26
27MOSTLYCLEANFILES += core *.stackdump 27MOSTLYCLEANFILES += core *.stackdump
diff --git a/lib/mktime.c b/lib/mktime.c
index 952c82983bb..74d1b84949b 100644
--- a/lib/mktime.c
+++ b/lib/mktime.c
@@ -142,7 +142,7 @@ verify (twos_complement_arithmetic,
142verify (base_year_is_a_multiple_of_100, TM_YEAR_BASE % 100 == 0); 142verify (base_year_is_a_multiple_of_100, TM_YEAR_BASE % 100 == 0);
143 143
144/* Return 1 if YEAR + TM_YEAR_BASE is a leap year. */ 144/* Return 1 if YEAR + TM_YEAR_BASE is a leap year. */
145static inline int 145static int
146leapyear (long_int year) 146leapyear (long_int year)
147{ 147{
148 /* Don't add YEAR to TM_YEAR_BASE, as that might overflow. 148 /* Don't add YEAR to TM_YEAR_BASE, as that might overflow.
@@ -196,7 +196,7 @@ isdst_differ (int a, int b)
196 The result may overflow. It is the caller's responsibility to 196 The result may overflow. It is the caller's responsibility to
197 detect overflow. */ 197 detect overflow. */
198 198
199static inline time_t 199static time_t
200ydhms_diff (long_int year1, long_int yday1, int hour1, int min1, int sec1, 200ydhms_diff (long_int year1, long_int yday1, int hour1, int min1, int sec1,
201 int year0, int yday0, int hour0, int min0, int sec0) 201 int year0, int yday0, int hour0, int min0, int sec0)
202{ 202{
diff --git a/lib/sys_select.in.h b/lib/sys_select.in.h
index 0aee2a16cbf..ae8f90cae74 100644
--- a/lib/sys_select.in.h
+++ b/lib/sys_select.in.h
@@ -130,7 +130,7 @@
130 130
131/* Re-define FD_ISSET to avoid a WSA call while we are not using 131/* Re-define FD_ISSET to avoid a WSA call while we are not using
132 network sockets. */ 132 network sockets. */
133static inline int 133static int
134rpl_fd_isset (SOCKET fd, fd_set * set) 134rpl_fd_isset (SOCKET fd, fd_set * set)
135{ 135{
136 u_int i; 136 u_int i;