gbranden pushed a commit to branch master
in repository groff.
commit fd3dddfa7f9d522d904101f348f9643a0ab56a3d
Author: G. Branden Robinson <[email protected]>
AuthorDate: Sun Oct 18 08:21:47 2026 -0500
[troff]: Annotate.
---
src/roff/troff/env.cpp | 7 ++++++-
src/roff/troff/input.cpp | 2 +-
src/roff/troff/node.cpp | 4 ++--
src/roff/troff/node.h | 1 +
4 files changed, 10 insertions(+), 4 deletions(-)
diff --git a/src/roff/troff/env.cpp b/src/roff/troff/env.cpp
index cf268da35..4e4b7b7f6 100644
--- a/src/roff/troff/env.cpp
+++ b/src/roff/troff/env.cpp
@@ -607,9 +607,11 @@ static node *configure_space_underlining(bool b)
return new device_extension_node(m, 1);
}
-// TODO: Kill this off in groff 1.24.0 release + 2 years. See input.cpp.
+// TODO: Kill this off in groff 1.24.0 release + 2 years. See
+// input.cpp.
std::vector<symbol> deprecated_font_identifiers;
extern bool is_device_ps_or_pdf; // See input.cpp.
+// TODO: end kill
static void warn_if_font_name_deprecated(symbol nm)
{
@@ -639,8 +641,10 @@ bool environment::select_font(symbol nm)
prev_fontno = fontno;
int n = mounting_position_of_font(nm);
symbol translated_font_name = get_font_translation(nm);
+ // TODO: Kill the following off in groff 1.24.0 release + 2 years.
if (is_device_ps_or_pdf)
warn_if_font_name_deprecated(translated_font_name);
+ // TODO: end kill
if (n < 0) {
n = next_available_font_mounting_position();
if (!mount_font_at_position(nm, n))
@@ -4757,6 +4761,7 @@ void init_env_requests()
deprecated_font_identifiers.push_back("PX");
deprecated_font_identifiers.push_back("NX");
deprecated_font_identifiers.push_back("ZI");
+ // TODO: end kill
}
// Appendix H of _The TeXbook_ is useful background for the following.
diff --git a/src/roff/troff/input.cpp b/src/roff/troff/input.cpp
index 8ce17d919..b3430159d 100644
--- a/src/roff/troff/input.cpp
+++ b/src/roff/troff/input.cpp
@@ -6584,7 +6584,7 @@ static void do_register() // \R
start_token.description());
return;
}
- // TODO: groff 1.24.0 release + 2 years?
+ // TODO: enable at groff 1.24.0 release + 2 years?
#if 0
if (!start_token.is_usable_as_delimiter(true /* report error */)) {
return;
diff --git a/src/roff/troff/node.cpp b/src/roff/troff/node.cpp
index 818879b50..46b1e5f9a 100644
--- a/src/roff/troff/node.cpp
+++ b/src/roff/troff/node.cpp
@@ -6665,8 +6665,8 @@ static void grow_font_table(int n)
dictionary font_translation_dictionary(17);
-// TODO: Make this static (again) in groff 1.24.0 release + 2 years.
-// See input.cpp.
+// TODO: Make this function static (again) in groff 1.24.0 release + 2
+// years. See input.cpp.
symbol get_font_translation(symbol nm)
{
void *p = font_translation_dictionary.lookup(nm);
diff --git a/src/roff/troff/node.h b/src/roff/troff/node.h
index fdb2ff6d0..9a042ee05 100644
--- a/src/roff/troff/node.h
+++ b/src/roff/troff/node.h
@@ -765,6 +765,7 @@ extern const int FONT_NOT_MOUNTED;
// TODO: Kill off the following in groff 1.24.0 release + 2 years. See
// input.cpp.
symbol get_font_translation(symbol nm);
+// TODO: end kill
// Local Variables:
// fill-column: 72
_______________________________________________
groff-commit mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/groff-commit