diff options
author | Arnold D. Robbins <arnold@skeeve.com> | 2017-11-26 20:40:33 +0200 |
---|---|---|
committer | Arnold D. Robbins <arnold@skeeve.com> | 2017-11-26 20:40:33 +0200 |
commit | ac018ace5fc53299a91d7dcc3e442ef017f4c3af (patch) | |
tree | 1e9e819f9a11b86a3afb29d0b6c8ab5e0b0b2c12 /support/regex_internal.h | |
parent | 6f3e075b3ad1e6cd5b3268fce65c768340b00a5b (diff) | |
download | egawk-ac018ace5fc53299a91d7dcc3e442ef017f4c3af.tar.gz egawk-ac018ace5fc53299a91d7dcc3e442ef017f4c3af.tar.bz2 egawk-ac018ace5fc53299a91d7dcc3e442ef017f4c3af.zip |
Sync support with GLIBC and GNULIB.
Diffstat (limited to 'support/regex_internal.h')
-rw-r--r-- | support/regex_internal.h | 29 |
1 files changed, 9 insertions, 20 deletions
diff --git a/support/regex_internal.h b/support/regex_internal.h index d4fde40f..dbcf9a32 100644 --- a/support/regex_internal.h +++ b/support/regex_internal.h @@ -404,28 +404,17 @@ typedef struct re_string_t re_string_t; struct re_dfa_t; typedef struct re_dfa_t re_dfa_t; -#ifndef _LIBC -# if defined( __i386__ ) && !defined(__EMX__) -# define internal_function __attribute__ ((regparm (3), stdcall)) -# else -# define internal_function -# endif -#endif - #ifndef NOT_IN_libc static reg_errcode_t re_string_realloc_buffers (re_string_t *pstr, - int new_buf_len) - internal_function; + int new_buf_len); # ifdef RE_ENABLE_I18N -static void build_wcs_buffer (re_string_t *pstr) internal_function; -static reg_errcode_t build_wcs_upper_buffer (re_string_t *pstr) - internal_function; +static void build_wcs_buffer (re_string_t *pstr); +static reg_errcode_t build_wcs_upper_buffer (re_string_t *pstr); # endif /* RE_ENABLE_I18N */ -static void build_upper_buffer (re_string_t *pstr) internal_function; -static void re_string_translate_buffer (re_string_t *pstr) internal_function; +static void build_upper_buffer (re_string_t *pstr); +static void re_string_translate_buffer (re_string_t *pstr); static unsigned int re_string_context_at (const re_string_t *input, int idx, - int eflags) - internal_function __attribute__ ((pure)); + int eflags) __attribute__ ((pure)); #endif #define re_string_peek_byte(pstr, offset) \ ((pstr)->mbs[(pstr)->cur_idx + offset]) @@ -772,7 +761,7 @@ bitset_mask (bitset_t dest, const bitset_t src) #ifdef RE_ENABLE_I18N /* Inline functions for re_string. */ static int -internal_function __attribute__ ((pure, unused)) +__attribute__ ((pure, unused)) re_string_char_size_at (const re_string_t *pstr, int idx) { int byte_idx; @@ -785,7 +774,7 @@ re_string_char_size_at (const re_string_t *pstr, int idx) } static wint_t -internal_function __attribute__ ((pure, unused)) +__attribute__ ((pure, unused)) re_string_wchar_at (const re_string_t *pstr, int idx) { if (pstr->mb_cur_max == 1) @@ -799,7 +788,7 @@ re_string_wchar_at (const re_string_t *pstr, int idx) # endif static int -internal_function __attribute__ ((pure, unused)) +__attribute__ ((pure, unused)) re_string_elem_size_at (const re_string_t *pstr, int idx) { # ifdef _LIBC |