diff options
author | Arnold D. Robbins <arnold@skeeve.com> | 2018-12-26 22:14:39 +0200 |
---|---|---|
committer | Arnold D. Robbins <arnold@skeeve.com> | 2018-12-26 22:14:39 +0200 |
commit | 58d5316f589f4ddac1c8a2ecdacc572ea2997f70 (patch) | |
tree | e64aa8f6e0fe2a226d8765db67de1356d21f793a /support/regex_internal.h | |
parent | b6c99e9551a4edd8c5aaf2596970d327970682b6 (diff) | |
parent | 7f2f9cfa86928914fefb28338fcbdfbc36754edd (diff) | |
download | egawk-58d5316f589f4ddac1c8a2ecdacc572ea2997f70.tar.gz egawk-58d5316f589f4ddac1c8a2ecdacc572ea2997f70.tar.bz2 egawk-58d5316f589f4ddac1c8a2ecdacc572ea2997f70.zip |
Merge branch 'gawk-4.2-stable'
Diffstat (limited to 'support/regex_internal.h')
-rw-r--r-- | support/regex_internal.h | 20 |
1 files changed, 1 insertions, 19 deletions
diff --git a/support/regex_internal.h b/support/regex_internal.h index c7880667..f4b27028 100644 --- a/support/regex_internal.h +++ b/support/regex_internal.h @@ -33,23 +33,7 @@ #include <stdbool.h> #include <stdint.h> -/* Properties of integers. Although Gnulib has intprops.h, glibc does - without for now. */ -#ifndef _LIBC -# include "intprops.h" -#else -/* True if the real type T is signed. */ -# define TYPE_SIGNED(t) (! ((t) 0 < (t) -1)) - -/* True if adding the nonnegative Idx values A and B would overflow. - If false, set *R to A + B. A, B, and R may be evaluated more than - once, or zero times. Although this is not a full implementation of - Gnulib INT_ADD_WRAPV, it is good enough for glibc regex code. - FIXME: This implementation is a fragile stopgap, and this file would - be simpler and more robust if intprops.h were migrated into glibc. */ -# define INT_ADD_WRAPV(a, b, r) \ - (IDX_MAX - (a) < (b) ? true : (*(r) = (a) + (b), false)) -#endif +#include <intprops.h> #ifdef _LIBC # include <libc-lock.h> @@ -132,8 +116,6 @@ # define RE_ENABLE_I18N #endif -#define BE(expr, val) __builtin_expect (expr, val) - /* Number of ASCII characters. */ #define ASCII_CHARS 0x80 |