gbranden pushed a commit to branch master
in repository groff.
commit aed17bb82360fa9077763a7f120da37f505d20c6
Author: G. Branden Robinson <[email protected]>
AuthorDate: Mon Jul 13 10:06:15 2026 -0500
[troff]: Trivially refactor.
* src/roff/troff/input.cpp (charinfo::set_number): Rename function
parameter from `n` to `idx`, to be more expressive and suggest the
truth--that it relates to indexed characters.
---
ChangeLog | 7 +++++++
src/roff/troff/input.cpp | 6 +++---
2 files changed, 10 insertions(+), 3 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index 4edf36938..389aa2d45 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2026-07-13 G. Branden Robinson <[email protected]>
+
+ * src/roff/troff/input.cpp (charinfo::set_number): Trivially
+ refactor. Rename function parameter from `n` to `idx`, to be
+ more expressive and suggest the truth--that it relates to
+ indexed characters.
+
2026-07-13 G. Branden Robinson <[email protected]>
* src/preproc/eqn/text.cpp: Fix code style nits. Rationalize
diff --git a/src/roff/troff/input.cpp b/src/roff/troff/input.cpp
index 6b1749a0b..3d444662e 100644
--- a/src/roff/troff/input.cpp
+++ b/src/roff/troff/input.cpp
@@ -11163,10 +11163,10 @@ macro *charinfo::set_macro(macro *m, char_mode cm)
return tem;
}
-void charinfo::set_number(int n)
+void charinfo::set_number(int idx)
{
- assert(n >= 0);
- number = n;
+ assert(idx >= 0);
+ number = idx;
}
int charinfo::get_number()
_______________________________________________
groff-commit mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/groff-commit