gbranden pushed a commit to branch master
in repository groff.
commit bd304efb7b4fc8a9173a7d245623dd1cef435d7d
Author: G. Branden Robinson <[email protected]>
AuthorDate: Mon Sep 9 22:58:36 2024 -0500
src/roff/troff/div.cpp: Continue boolification.
* src/roff/troff/div.cpp (macro_diversion::macro_diversion): Boolify
argument to `macro` object constructor, using Boolean instead of
integer literal. Continues commit 7c5b8e5d4a, 27 August.
---
ChangeLog | 7 +++++++
src/roff/troff/div.cpp | 2 +-
2 files changed, 8 insertions(+), 1 deletion(-)
diff --git a/ChangeLog b/ChangeLog
index aa37398be..616d6b358 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2024-09-09 G. Branden Robinson <[email protected]>
+
+ * src/roff/troff/div.cpp (macro_diversion::macro_diversion):
+ Boolify argument to `macro` object constructor, using Boolean
+ instead of integer literal. Continues commit 7c5b8e5d4a, 27
+ August.
+
2024-09-09 G. Branden Robinson <[email protected]>
* src/roff/troff/node.cpp (macro_diversion::macro_diversion)
diff --git a/src/roff/troff/div.cpp b/src/roff/troff/div.cpp
index 447166e66..04649c2ee 100644
--- a/src/roff/troff/div.cpp
+++ b/src/roff/troff/div.cpp
@@ -217,7 +217,7 @@ macro_diversion::macro_diversion(symbol s, int append)
// We can now catch the situation described above by comparing
// the length of the charlist in the macro_header with the length
// stored in the macro. When we detect this, we copy the contents.
- mac = new macro(1);
+ mac = new macro(true /* is diversion */);
if (append) {
request_or_macro *rm
= static_cast<request_or_macro *>(request_dictionary.lookup(s));
_______________________________________________
Groff-commit mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/groff-commit