mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-16 15:53:03 +00:00
* data/c++.m4 (b4_namespace_close): Simplify slightly.
(cherry picked from commit e7bfa8b721)
This commit is contained in:
@@ -1,3 +1,7 @@
|
|||||||
|
2009-05-20 Joel E. Denny <jdenny@ces.clemson.edu>
|
||||||
|
|
||||||
|
* data/c++.m4 (b4_namespace_close): Simplify slightly.
|
||||||
|
|
||||||
2009-05-19 Joel E. Denny <jdenny@ces.clemson.edu>
|
2009-05-19 Joel E. Denny <jdenny@ces.clemson.edu>
|
||||||
|
|
||||||
Handle a trailing `:' in a user-supplied C++ namespace better.
|
Handle a trailing `:' in a user-supplied C++ namespace better.
|
||||||
|
|||||||
@@ -75,9 +75,9 @@ m4_define([b4_namespace_open],
|
|||||||
m4_define([b4_namespace_close],
|
m4_define([b4_namespace_close],
|
||||||
[b4_user_code([b4_percent_define_get_syncline([[namespace]])
|
[b4_user_code([b4_percent_define_get_syncline([[namespace]])
|
||||||
m4_bpatsubst(m4_dquote(m4_bpatsubst(m4_dquote(b4_namespace_ref[ ]),
|
m4_bpatsubst(m4_dquote(m4_bpatsubst(m4_dquote(b4_namespace_ref[ ]),
|
||||||
[^\(.\)[ ]*\(::\)?\([^][:]\|:[^][:]\)*],
|
[^\(.\)[ ]*\(::\)?\([^][:]\|:[^:]\)*],
|
||||||
[\1])),
|
[\1])),
|
||||||
[::\([^][:]\|:[^][:]\)*], [} ])[} // ]b4_namespace_ref])])
|
[::\([^][:]\|:[^:]\)*], [} ])[} // ]b4_namespace_ref])])
|
||||||
|
|
||||||
|
|
||||||
# b4_token_enums(LIST-OF-PAIRS-TOKEN-NAME-TOKEN-NUMBER)
|
# b4_token_enums(LIST-OF-PAIRS-TOKEN-NAME-TOKEN-NUMBER)
|
||||||
|
|||||||
Reference in New Issue
Block a user