Mercurial > gnulib
comparison lib/regexec.c @ 17346:cd38818bce4e
regex: rename remaining __attribute calls to __attribute__.
Commit 930b85b changed definition of __attribute, but left some uses
unchanged, preventing compilation of regex module on most non-gcc
environments:
* lib/regcomp.c (re_set_fastmap, seek_collating_symbol_entry)
(lookup_collation_sequence_value, build_range_exp)
(build_collating_symbol): Set attributes with newly renamed
__attribute__ decorator.
* lib/regex_internal.c (re_string_peek_byte_case)
(re_node_set_compare, re_node_set_contains): Likewise.
* lib/regexec.c (acquire_init_state_context): Likewise.
Signed-off-by: Gary V. Vaughan <gary@gnu.org>
author | Gary V. Vaughan <gary@gnu.org> |
---|---|
date | Fri, 08 Mar 2013 19:50:10 +0700 |
parents | d08258969ee9 |
children | 020c917cba9d |
comparison
equal
deleted
inserted
replaced
17345:41cddf8f3b4d | 17346:cd38818bce4e |
---|---|
1062 /* Acquire an initial state and return it. | 1062 /* Acquire an initial state and return it. |
1063 We must select appropriate initial state depending on the context, | 1063 We must select appropriate initial state depending on the context, |
1064 since initial states may have constraints like "\<", "^", etc.. */ | 1064 since initial states may have constraints like "\<", "^", etc.. */ |
1065 | 1065 |
1066 static inline re_dfastate_t * | 1066 static inline re_dfastate_t * |
1067 __attribute ((always_inline)) internal_function | 1067 __attribute__ ((always_inline)) internal_function |
1068 acquire_init_state_context (reg_errcode_t *err, const re_match_context_t *mctx, | 1068 acquire_init_state_context (reg_errcode_t *err, const re_match_context_t *mctx, |
1069 Idx idx) | 1069 Idx idx) |
1070 { | 1070 { |
1071 const re_dfa_t *const dfa = mctx->dfa; | 1071 const re_dfa_t *const dfa = mctx->dfa; |
1072 if (dfa->init_state->has_constraint) | 1072 if (dfa->init_state->has_constraint) |