gbranden pushed a commit to branch master
in repository groff.
commit 42ca214b00c0eeabfed7d15b3e20dcbe070e2a45
Author: G. Branden Robinson <[email protected]>
AuthorDate: Fri Jul 11 05:52:02 2025 -0500
src/preproc/pic/pic.ypp: Fix code style nit.
* src/preproc/pic/pic.ypp: Give the anonymous `struct` types used for
`pair`, `if_data`, `lstr`, `dv`, and `by` name, 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 | 8 ++++++++
src/preproc/pic/pic.ypp | 12 ++++++------
2 files changed, 14 insertions(+), 6 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index 5391a53fc..5355fce85 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2025-07-11 G. Branden Robinson <[email protected]>
+
+ * src/preproc/pic/pic.ypp: Fix code style nit. Give the
+ anonymous `struct` types used for `pair`, `if_data`, `lstr`,
+ `dv`, and `by` name, 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 <[email protected]>
* src/preproc/eqn/lex.cpp: Fix code style nits. Sort libgroff
diff --git a/src/preproc/pic/pic.ypp b/src/preproc/pic/pic.ypp
index b34749d7a..809c5a2cc 100644
--- a/src/preproc/pic/pic.ypp
+++ b/src/preproc/pic/pic.ypp
@@ -1,4 +1,4 @@
-/* Copyright (C) 1989-2024 Free Software Foundation, Inc.
+/* Copyright (C) 1989-2025 Free Software Foundation, Inc.
Written by James Clark ([email protected])
This file is part of groff.
@@ -102,11 +102,11 @@ char *do_sprintf(const char *fmt, const double *v, int
nv);
char *str;
int n;
double x;
- struct { double x, y; } pair;
- struct { double x; char *body; } if_data;
- struct { char *str; const char *filename; int lineno; } lstr;
- struct { double *v; int nv; int maxv; } dv;
- struct { double val; int is_multiplicative; } by;
+ struct pair_s { double x, y; } pair;
+ struct if_data_s { double x; char *body; } if_data;
+ struct lstr_s { char *str; const char *filename; int lineno; } lstr;
+ struct dv_s { double *v; int nv; int maxv; } dv;
+ struct by_s { double val; int is_multiplicative; } by;
place pl;
object *obj;
corner crn;
_______________________________________________
groff-commit mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/groff-commit