gbranden pushed a commit to branch master
in repository groff.
commit a41248b233b2f1b6c69379de0b270a881d011a5c
Author: G. Branden Robinson <[email protected]>
AuthorDate: Mon Dec 15 18:57:26 2025 -0600
src/roff/troff/env.h: Fix cosmetic code nits.
Fix cosmetic code style nits. Comment member function formal argument
names as a compromise with the Stroustrup-style C++ used in most of
groff. Put spaces around dyadic C++ operators. Wrap long lines.
---
src/roff/troff/env.h | 16 ++++++++++------
1 file changed, 10 insertions(+), 6 deletions(-)
diff --git a/src/roff/troff/env.h b/src/roff/troff/env.h
index 84966cb03..ab4bd8e0e 100644
--- a/src/roff/troff/env.h
+++ b/src/roff/troff/env.h
@@ -35,7 +35,7 @@ public:
int to_units();
int operator==(font_size);
int operator!=(font_size);
- static void init_size_list(int *sizes);
+ static void init_size_list(int * /* sizes */);
static void dump_size_list();
};
@@ -60,7 +60,7 @@ inline int font_size::to_scaled_points()
inline int font_size::to_points()
{
- return p/sizescale;
+ return (p / sizescale);
}
class environment;
@@ -81,14 +81,18 @@ class tab_stops {
tab *repeated_list;
public:
tab_stops();
- tab_stops(hunits distance, tab_type type);
+ tab_stops(hunits /* distance */, tab_type /* type */);
tab_stops(const tab_stops &);
~tab_stops();
void operator=(const tab_stops &);
- tab_type distance_to_next_tab(hunits pos, hunits *distance);
- tab_type distance_to_next_tab(hunits curpos, hunits *distance, hunits
*leftpos);
+ tab_type distance_to_next_tab(hunits /* pos */,
+ hunits * /* distance */);
+ tab_type distance_to_next_tab(hunits /* curpos */,
+ hunits * /* distance */,
+ hunits * /* leftpos */);
void clear();
- void add_tab(hunits pos, tab_type type, bool is_repeated);
+ void add_tab(hunits /* pos */, tab_type /* type */,
+ bool /* is_repeated */);
const char *to_string();
};
_______________________________________________
groff-commit mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/groff-commit