about summary refs log tree commit diff
path: root/posix/regex_internal.h
diff options
context:
space:
mode:
authorFlorian Weimer <fweimer@redhat.com>2017-08-31 18:25:55 +0200
committerFlorian Weimer <fweimer@redhat.com>2017-08-31 18:52:00 +0200
commitb41bd5bc83b23f62f6f0815d20ed1e1185c58086 (patch)
tree9c2e9a6a37de9eef8efca447fbd4a87b0d3a0923 /posix/regex_internal.h
parent83b09837ed5c106840d0f069a81eed41a646bff3 (diff)
downloadglibc-b41bd5bc83b23f62f6f0815d20ed1e1185c58086.tar.gz
glibc-b41bd5bc83b23f62f6f0815d20ed1e1185c58086.tar.xz
glibc-b41bd5bc83b23f62f6f0815d20ed1e1185c58086.zip
posix: Remove internal_function attribute
Diffstat (limited to 'posix/regex_internal.h')
-rw-r--r--posix/regex_internal.h29
1 files changed, 9 insertions, 20 deletions
diff --git a/posix/regex_internal.h b/posix/regex_internal.h
index 04317128b7..fef1d35e55 100644
--- a/posix/regex_internal.h
+++ b/posix/regex_internal.h
@@ -373,28 +373,17 @@ typedef struct re_string_t re_string_t;
 struct re_dfa_t;
 typedef struct re_dfa_t re_dfa_t;
 
-#ifndef _LIBC
-# ifdef __i386__
-#  define internal_function   __attribute__ ((regparm (3), stdcall))
-# else
-#  define internal_function
-# endif
-#endif
-
 #if IS_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])
@@ -710,7 +699,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;
@@ -723,7 +712,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)
@@ -737,7 +726,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