mirror of
https://git.savannah.gnu.org/git/gnulib.git
synced 2025-08-08 17:22:05 +03:00
regex: use limits-h SSIZE_MAX
This commit is contained in:
@@ -3,9 +3,11 @@
|
||||
limits-h: other modules can rely on SSIZE_MAX
|
||||
* lib/areadlink-with-size.c, lib/areadlinkat-with-size.c:
|
||||
* lib/careadlinkat.c, lib/getdelim.c, lib/getndelim2.c:
|
||||
* lib/regex_internal.h:
|
||||
(SSIZE_MAX): Do not define.
|
||||
* modules/areadlink-with-size, modules/areadlinkat-with-size:
|
||||
* modules/careadlinkat, modules/getdelim, modules/getndelim2:
|
||||
* modules/regex:
|
||||
(Depends-on) Add limits-h.
|
||||
|
||||
limits-h: define SSIZE_MAX
|
||||
|
@@ -151,9 +151,6 @@
|
||||
as some non-GCC platforms lack them, an issue when this code is
|
||||
used in Gnulib. */
|
||||
|
||||
#ifndef SSIZE_MAX
|
||||
# define SSIZE_MAX ((ssize_t) (SIZE_MAX / 2))
|
||||
#endif
|
||||
#ifndef ULONG_WIDTH
|
||||
# define ULONG_WIDTH REGEX_UINTEGER_WIDTH (ULONG_MAX)
|
||||
/* The number of usable bits in an unsigned integer type with maximum
|
||||
|
@@ -28,6 +28,7 @@ intprops [test $ac_use_included_regex = yes]
|
||||
iswctype [test $ac_use_included_regex = yes]
|
||||
langinfo [test $ac_use_included_regex = yes]
|
||||
libc-config [test $ac_use_included_regex = yes]
|
||||
limits-h [test $ac_use_included_regex = yes]
|
||||
lock [test $ac_use_included_regex = yes]
|
||||
memcmp [test $ac_use_included_regex = yes]
|
||||
memmove [test $ac_use_included_regex = yes]
|
||||
|
Reference in New Issue
Block a user