aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorPaul Eggert2016-08-21 04:25:24 -0700
committerPaul Eggert2016-08-21 04:26:53 -0700
commit1f7302563ae03e20e0a2f90a950c164f8bc17941 (patch)
tree28806818138913e060af655464eecd7f60d68f75 /lib
parent886b9ed80c88b8f729ea9760f904b8c0ef63664f (diff)
downloademacs-1f7302563ae03e20e0a2f90a950c164f8bc17941.tar.gz
emacs-1f7302563ae03e20e0a2f90a950c164f8bc17941.zip
Update from gnulib
This incorporates: 2016-08-17 maint: preprocessor changes to support z/OS 2016-08-17 string: rename to avoid '__string' * doc/misc/texinfo.tex, lib/alloca.in.h, lib/string.in.h: Copy from gnulib.
Diffstat (limited to 'lib')
-rw-r--r--lib/alloca.in.h2
-rw-r--r--lib/string.in.h16
2 files changed, 10 insertions, 8 deletions
diff --git a/lib/alloca.in.h b/lib/alloca.in.h
index d457ebb4761..6a25ecdb7b7 100644
--- a/lib/alloca.in.h
+++ b/lib/alloca.in.h
@@ -51,6 +51,8 @@ extern "C"
51void *_alloca (unsigned short); 51void *_alloca (unsigned short);
52# pragma intrinsic (_alloca) 52# pragma intrinsic (_alloca)
53# define alloca _alloca 53# define alloca _alloca
54# elif defined __MVS__
55# include <stdlib.h>
54# else 56# else
55# include <stddef.h> 57# include <stddef.h>
56# ifdef __cplusplus 58# ifdef __cplusplus
diff --git a/lib/string.in.h b/lib/string.in.h
index 7fb00c1c539..b3213c4c1ab 100644
--- a/lib/string.in.h
+++ b/lib/string.in.h
@@ -416,15 +416,15 @@ _GL_WARN_ON_USE (strncat, "strncat is unportable - "
416# undef strndup 416# undef strndup
417# define strndup rpl_strndup 417# define strndup rpl_strndup
418# endif 418# endif
419_GL_FUNCDECL_RPL (strndup, char *, (char const *__string, size_t __n) 419_GL_FUNCDECL_RPL (strndup, char *, (char const *__s, size_t __n)
420 _GL_ARG_NONNULL ((1))); 420 _GL_ARG_NONNULL ((1)));
421_GL_CXXALIAS_RPL (strndup, char *, (char const *__string, size_t __n)); 421_GL_CXXALIAS_RPL (strndup, char *, (char const *__s, size_t __n));
422# else 422# else
423# if ! @HAVE_DECL_STRNDUP@ 423# if ! @HAVE_DECL_STRNDUP@
424_GL_FUNCDECL_SYS (strndup, char *, (char const *__string, size_t __n) 424_GL_FUNCDECL_SYS (strndup, char *, (char const *__s, size_t __n)
425 _GL_ARG_NONNULL ((1))); 425 _GL_ARG_NONNULL ((1)));
426# endif 426# endif
427_GL_CXXALIAS_SYS (strndup, char *, (char const *__string, size_t __n)); 427_GL_CXXALIAS_SYS (strndup, char *, (char const *__s, size_t __n));
428# endif 428# endif
429_GL_CXXALIASWARN (strndup); 429_GL_CXXALIASWARN (strndup);
430#elif defined GNULIB_POSIXCHECK 430#elif defined GNULIB_POSIXCHECK
@@ -444,17 +444,17 @@ _GL_WARN_ON_USE (strndup, "strndup is unportable - "
444# undef strnlen 444# undef strnlen
445# define strnlen rpl_strnlen 445# define strnlen rpl_strnlen
446# endif 446# endif
447_GL_FUNCDECL_RPL (strnlen, size_t, (char const *__string, size_t __maxlen) 447_GL_FUNCDECL_RPL (strnlen, size_t, (char const *__s, size_t __maxlen)
448 _GL_ATTRIBUTE_PURE 448 _GL_ATTRIBUTE_PURE
449 _GL_ARG_NONNULL ((1))); 449 _GL_ARG_NONNULL ((1)));
450_GL_CXXALIAS_RPL (strnlen, size_t, (char const *__string, size_t __maxlen)); 450_GL_CXXALIAS_RPL (strnlen, size_t, (char const *__s, size_t __maxlen));
451# else 451# else
452# if ! @HAVE_DECL_STRNLEN@ 452# if ! @HAVE_DECL_STRNLEN@
453_GL_FUNCDECL_SYS (strnlen, size_t, (char const *__string, size_t __maxlen) 453_GL_FUNCDECL_SYS (strnlen, size_t, (char const *__s, size_t __maxlen)
454 _GL_ATTRIBUTE_PURE 454 _GL_ATTRIBUTE_PURE
455 _GL_ARG_NONNULL ((1))); 455 _GL_ARG_NONNULL ((1)));
456# endif 456# endif
457_GL_CXXALIAS_SYS (strnlen, size_t, (char const *__string, size_t __maxlen)); 457_GL_CXXALIAS_SYS (strnlen, size_t, (char const *__s, size_t __maxlen));
458# endif 458# endif
459_GL_CXXALIASWARN (strnlen); 459_GL_CXXALIASWARN (strnlen);
460#elif defined GNULIB_POSIXCHECK 460#elif defined GNULIB_POSIXCHECK