diff options
| author | Paul Eggert | 2022-12-17 23:11:55 -0800 |
|---|---|---|
| committer | Paul Eggert | 2022-12-18 00:24:13 -0800 |
| commit | bda755bf92b5fa0dfe25da173b30e1002e95b774 (patch) | |
| tree | a9aa1b5520a48c93a1702b39c1b2f22a32c46805 /lib/string.in.h | |
| parent | 5a344d90c53d681ed98ab03ad3e218a3c6561108 (diff) | |
| download | emacs-bda755bf92b5fa0dfe25da173b30e1002e95b774.tar.gz emacs-bda755bf92b5fa0dfe25da173b30e1002e95b774.zip | |
Update from Gnulib by running admin/merge-gnulib
Diffstat (limited to 'lib/string.in.h')
| -rw-r--r-- | lib/string.in.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/lib/string.in.h b/lib/string.in.h index e56f6db0c9c..21356914e21 100644 --- a/lib/string.in.h +++ b/lib/string.in.h | |||
| @@ -347,6 +347,23 @@ _GL_WARN_ON_USE (memrchr, "memrchr is unportable - " | |||
| 347 | # endif | 347 | # endif |
| 348 | #endif | 348 | #endif |
| 349 | 349 | ||
| 350 | /* Overwrite a block of memory. The compiler will not optimize | ||
| 351 | effects away, even if the block is dead after the call. */ | ||
| 352 | #if @GNULIB_MEMSET_EXPLICIT@ | ||
| 353 | # if ! @HAVE_MEMSET_EXPLICIT@ | ||
| 354 | _GL_FUNCDECL_SYS (memset_explicit, void *, | ||
| 355 | (void *__dest, int __c, size_t __n) _GL_ARG_NONNULL ((1))); | ||
| 356 | # endif | ||
| 357 | _GL_CXXALIAS_SYS (memset_explicit, void *, (void *__dest, int __c, size_t __n)); | ||
| 358 | _GL_CXXALIASWARN (memset_explicit); | ||
| 359 | #elif defined GNULIB_POSIXCHECK | ||
| 360 | # undef memset_explicit | ||
| 361 | # if HAVE_RAW_DECL_MEMSET_EXPLICIT | ||
| 362 | _GL_WARN_ON_USE (memset_explicit, "memset_explicit is unportable - " | ||
| 363 | "use gnulib module memset_explicit for portability"); | ||
| 364 | # endif | ||
| 365 | #endif | ||
| 366 | |||
| 350 | /* Find the first occurrence of C in S. More efficient than | 367 | /* Find the first occurrence of C in S. More efficient than |
| 351 | memchr(S,C,N), at the expense of undefined behavior if C does not | 368 | memchr(S,C,N), at the expense of undefined behavior if C does not |
| 352 | occur within N bytes. */ | 369 | occur within N bytes. */ |