gbranden pushed a commit to branch master in repository groff. commit 19d287f90a1392ebd0eecf0568163efdd375d404 Author: G. Branden Robinson <g.branden.robin...@gmail.com> AuthorDate: Fri Jul 11 06:52:51 2025 -0500
[refer]: Fix code style nit. * src/preproc/refer/label.ypp: Give the anonymous `struct` types used for `dig` and `str` names, so that they can be passed to a template function C++98-conformantly. Lamely, apply an `_s` suffix to the object names to create the type names. --- ChangeLog | 7 +++++++ src/preproc/refer/label.ypp | 10 +++++----- 2 files changed, 12 insertions(+), 5 deletions(-) diff --git a/ChangeLog b/ChangeLog index 9f9fd75cb..bad7f1967 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2025-07-11 G. Branden Robinson <g.branden.robin...@gmail.com> + + * src/preproc/refer/label.ypp: Give the anonymous `struct` types + used for `dig` and `str` names, so that they can be passed to a + template function C++98-conformantly. Lamely, apply an `_s` + suffix to the object names to create the type names. + 2025-07-11 G. Branden Robinson <g.branden.robin...@gmail.com> * src/preproc/preconv/preconv.cpp: Fix code style nits. Spell diff --git a/src/preproc/refer/label.ypp b/src/preproc/refer/label.ypp index 60c8dac22..35fe9cd11 100644 --- a/src/preproc/refer/label.ypp +++ b/src/preproc/refer/label.ypp @@ -209,9 +209,9 @@ public: void evaluate(int, const reference &, string &, substring_position &); }; -static expression *parsed_label = 0; -static expression *parsed_date_label = 0; -static expression *parsed_short_label = 0; +static expression *parsed_label = 0 /* nullptr */; +static expression *parsed_date_label = 0 /* nullptr */; +static expression *parsed_short_label = 0 /* nullptr */; static expression *parse_result; @@ -222,8 +222,8 @@ string literals; %union { int num; expression *expr; - struct { int ndigits; int val; } dig; - struct { int start; int len; } str; + struct dig_s { int ndigits; int val; } dig; + struct str_s { int start; int len; } str; } /* uppercase or lowercase letter */ _______________________________________________ groff-commit mailing list groff-commit@gnu.org https://lists.gnu.org/mailman/listinfo/groff-commit