gbranden pushed a commit to branch master
in repository groff.
commit fb0166006f700c86f7dad4852568d5e1636d75c3
Author: G. Branden Robinson <[email protected]>
AuthorDate: Sun Aug 18 09:13:06 2024 -0500
[troff]: Rename `do_zero_width()`.
* src/roff/troff/input.cpp: Trivially refactor.
(do_zero_width): Rename this...
(do_zero_width_output): ...to this.
(token::next): Update call site.
---
ChangeLog | 7 +++++++
src/roff/troff/input.cpp | 6 +++---
2 files changed, 10 insertions(+), 3 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index 62fc03182..afa048f4f 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2024-08-18 G. Branden Robinson <[email protected]>
+
+ * src/roff/troff/input.cpp: Trivially refactor.
+ (do_zero_width): Rename this...
+ (do_zero_width_output): ...to this.
+ (token::next): Update call site.
+
2024-08-18 G. Branden Robinson <[email protected]>
* src/roff/troff/input.cpp (do_zero_width): Tweak `\Z`
diff --git a/src/roff/troff/input.cpp b/src/roff/troff/input.cpp
index 1ae67986c..580a8932a 100644
--- a/src/roff/troff/input.cpp
+++ b/src/roff/troff/input.cpp
@@ -1719,7 +1719,7 @@ static bool do_expr_test() // \B
}
#if 0
-static node *do_zero_width()
+static node *do_zero_width_output()
{
token start_token;
start_token.next();
@@ -1755,7 +1755,7 @@ static node *do_zero_width()
// It's undesirable for \Z to change environments, because then
// \n(.w won't work as expected.
-static node *do_zero_width() // \Z
+static node *do_zero_width_output() // \Z
{
node *rev = new dummy_node;
node *n = 0 /* nullptr */;
@@ -2448,7 +2448,7 @@ void token::next()
return;
}
case 'Z':
- nd = do_zero_width();
+ nd = do_zero_width_output();
if (0 /* nullptr */ == nd)
break;
type = TOKEN_NODE;
_______________________________________________
Groff-commit mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/groff-commit