summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArnold D. Robbins <arnold@skeeve.com>2015-06-14 19:08:26 +0300
committerArnold D. Robbins <arnold@skeeve.com>2015-06-14 19:08:26 +0300
commitc281360e41563f20b36645896e01ae9bafd52b52 (patch)
tree018007bb9fae3816742319c7133432c04eafb058
parent367417c47be947ed7d0af7b430af5ff1626bf7c1 (diff)
downloadgawk-c281360e41563f20b36645896e01ae9bafd52b52.tar.gz
Replace __attribute with __attribute__ in regex routines.
-rw-r--r--ChangeLog4
-rw-r--r--regex_internal.c6
-rw-r--r--regexec.c2
3 files changed, 8 insertions, 4 deletions
diff --git a/ChangeLog b/ChangeLog
index 0fadaf16..0c5e3a6c 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -2,6 +2,10 @@
* regcomp.c, regex_internal.h, regexec.c: Sync with GLIBC.
+ Unrelated:
+
+ * regex_internal.c, regexec.c: __attribute --> __attribute__.
+
2015-05-26 Paul Eggert <eggert@Penguin.CS.UCLA.EDU>
* floatcomp.c (count_trailing_zeros): New function.
diff --git a/regex_internal.c b/regex_internal.c
index 5a5b9363..fcfa4ada 100644
--- a/regex_internal.c
+++ b/regex_internal.c
@@ -838,7 +838,7 @@ re_string_reconstruct (re_string_t *pstr, int idx, int eflags)
}
static unsigned char
-internal_function __attribute ((pure))
+internal_function __attribute__ ((pure))
re_string_peek_byte_case (const re_string_t *pstr, int idx)
{
int ch, off;
@@ -1370,7 +1370,7 @@ re_node_set_insert_last (re_node_set *set, int elem)
return 1 if SET1 and SET2 are equivalent, return 0 otherwise. */
static int
-internal_function __attribute ((pure))
+internal_function __attribute__ ((pure))
re_node_set_compare (const re_node_set *set1, const re_node_set *set2)
{
int i;
@@ -1385,7 +1385,7 @@ re_node_set_compare (const re_node_set *set1, const re_node_set *set2)
/* Return (idx + 1) if SET contains the element ELEM, return 0 otherwise. */
static int
-internal_function __attribute ((pure))
+internal_function __attribute__ ((pure))
re_node_set_contains (const re_node_set *set, int elem)
{
unsigned int idx, right, mid;
diff --git a/regexec.c b/regexec.c
index 31bb9e66..cff69bfc 100644
--- a/regexec.c
+++ b/regexec.c
@@ -1059,7 +1059,7 @@ prune_impossible_nodes (mctx)
since initial states may have constraints like "\<", "^", etc.. */
static inline re_dfastate_t *
-__attribute ((always_inline)) internal_function
+__attribute__ ((always_inline)) internal_function
acquire_init_state_context (reg_errcode_t *err, const re_match_context_t *mctx,
int idx)
{