gbranden pushed a commit to branch master
in repository groff.
commit c45c341bead684c34f36d072d2d69c0878ddad6e
Author: G. Branden Robinson <[email protected]>
AuthorDate: Tue Apr 28 22:33:28 2026 -0500
[troff]: Fix cosmetic code style nit.
* src/roff/troff/reg.h: Drop or comment formal argument names in
function declarations to better align with the Stroustrup-style C++
used in most of groff. Commenting, used when multiple arguments have
the same type, is a compromise with said style.
---
src/roff/troff/reg.h | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/src/roff/troff/reg.h b/src/roff/troff/reg.h
index 26e96cc56..361e40d8c 100644
--- a/src/roff/troff/reg.h
+++ b/src/roff/troff/reg.h
@@ -25,7 +25,7 @@ public:
virtual void decrement();
virtual void set_increment(units);
virtual int get_increment() const;
- virtual void alter_format(char f, int w = 0);
+ virtual void alter_format(char, int = 0);
virtual const char *get_format();
virtual void set_value(units);
virtual bool can_autoincrement() const;
@@ -57,7 +57,7 @@ public:
const char *get_string();
void increment();
void decrement();
- void alter_format(char f, int w = 0);
+ void alter_format(char, int = 0);
void set_increment(units);
int get_increment() const;
bool can_autoincrement() const;
@@ -78,11 +78,11 @@ public:
};
extern object_dictionary register_dictionary;
-extern void set_register(symbol nm, units n);
-extern void check_output_limits(int x, int y);
+extern void set_register(symbol, units);
+extern void check_output_limits(int /* x */, int /* y */);
extern void reset_output_registers();
-extern reg *look_up_register(symbol, bool suppress_creation = false);
+extern reg *look_up_register(symbol, bool = false);
#if 0
void inline_define_register();
#endif
_______________________________________________
groff-commit mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/groff-commit