gbranden pushed a commit to branch master
in repository groff.
commit 0b9582c46fcb6ab9f59b464d86caa2e2ffa423e3
Author: G. Branden Robinson <[email protected]>
AuthorDate: Thu May 15 12:53:46 2025 -0500
[troff]: Annotate future plans.
---
src/roff/troff/charinfo.h | 4 ++++
src/roff/troff/env.cpp | 6 ++++++
2 files changed, 10 insertions(+)
diff --git a/src/roff/troff/charinfo.h b/src/roff/troff/charinfo.h
index b07248c52..97358184b 100644
--- a/src/roff/troff/charinfo.h
+++ b/src/roff/troff/charinfo.h
@@ -48,6 +48,8 @@ public:
//
// Keep these symbol names in sync with the subset used in the `enum`
// `break_char_type`; see "node.cpp".
+ //
+ // C++11: Use `enum : unsigned int`.
enum {
ENDS_SENTENCE = 0x01,
ALLOWS_BREAK_BEFORE = 0x02,
@@ -61,6 +63,8 @@ public:
IS_INTERWORD_SPACE = 0x200,
CFLAGS_MAX = 0x2FF
};
+ //
+ // C++11: Use `enum : unsigned char`.
enum {
TRANSLATE_NONE,
TRANSLATE_SPACE,
diff --git a/src/roff/troff/env.cpp b/src/roff/troff/env.cpp
index 8f951eff5..443e639b3 100644
--- a/src/roff/troff/env.cpp
+++ b/src/roff/troff/env.cpp
@@ -44,6 +44,9 @@ along with this program. If not, see
<http://www.gnu.org/licenses/>. */
symbol default_family("T");
+// C++11: Use `enum : char`.
+// TODO: Can we move this into a (possibly struct/class-implicit)
+// namespace?
enum { ADJUST_LEFT = 0,
ADJUST_BOTH = 1,
ADJUST_CENTER = 3,
@@ -51,6 +54,9 @@ enum { ADJUST_LEFT = 0,
ADJUST_MAX = 5
};
+// C++11: Use `enum : unsigned char`.
+// TODO: Can we move this into a (possibly struct/class-implicit)
+// namespace?
enum {
// Not all combinations are valid; see hyphenate_request() below.
HYPHEN_NONE = 0,
_______________________________________________
groff-commit mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/groff-commit