diff options
author | Arnold D. Robbins <arnold@skeeve.com> | 2017-11-26 20:41:52 +0200 |
---|---|---|
committer | Arnold D. Robbins <arnold@skeeve.com> | 2017-11-26 20:41:52 +0200 |
commit | b3388ecca941bbd76ecca9413c78295c97b9013c (patch) | |
tree | a2b878d9e9abfd29d1f9650ff0dac216195d27ab /support/regex_internal.h | |
parent | cedf898bfd8d45a028d087a512fe7c1c789ee6dc (diff) | |
parent | a42eaf5184b2d5e0628bb6afac61745bde138ee4 (diff) | |
download | egawk-b3388ecca941bbd76ecca9413c78295c97b9013c.tar.gz egawk-b3388ecca941bbd76ecca9413c78295c97b9013c.tar.bz2 egawk-b3388ecca941bbd76ecca9413c78295c97b9013c.zip |
Merge branch 'master' into feature/fix-comments
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 |