gbranden pushed a commit to branch master
in repository groff.
commit 8a03d8c37442244d8b5c8fa248bd576665aca06c
Author: G. Branden Robinson <[email protected]>
AuthorDate: Sat Mar 28 14:23:37 2026 -0500
[troff]: Rename `WARN_INVALID` enum constant.
...to `WARN_DUMMY`. The latter is more descriptive of its purpose.
* src/roff/troff/troff.h (enum warning_category):
* src/roff/troff/input.cpp (debug, error, fatal): Do it.
---
ChangeLog | 8 ++++++++
src/roff/troff/input.cpp | 6 +++---
src/roff/troff/troff.h | 2 +-
3 files changed, 12 insertions(+), 4 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index 12d95cd6a..3295aec05 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2026-03-28 G. Branden Robinson <[email protected]>
+
+ [troff]: Rename `WARN_INVALID` enumeration constant to
+ `WARN_DUMMY`. The latter is more descriptive of its purpose.
+
+ * src/roff/troff/troff.h (enum warning_category):
+ * src/roff/troff/input.cpp (debug, error, fatal): Do it.
+
2026-03-27 G. Branden Robinson <[email protected]>
[libdriver]: Rename `do_file()` to
diff --git a/src/roff/troff/input.cpp b/src/roff/troff/input.cpp
index 391ad4152..3fda7283d 100644
--- a/src/roff/troff/input.cpp
+++ b/src/roff/troff/input.cpp
@@ -10809,7 +10809,7 @@ void debug(const char *format,
const errarg &arg2,
const errarg &arg3)
{
- do_error(DEBUG, WARN_INVALID, format, arg1, arg2, arg3);
+ do_error(DEBUG, WARN_DUMMY, format, arg1, arg2, arg3);
}
void warning(warning_category wc,
@@ -10837,7 +10837,7 @@ void error(const char *format,
const errarg &arg2,
const errarg &arg3)
{
- do_error(ERROR, WARN_INVALID, format, arg1, arg2, arg3);
+ do_error(ERROR, WARN_DUMMY, format, arg1, arg2, arg3);
}
void fatal(const char *format,
@@ -10845,7 +10845,7 @@ void fatal(const char *format,
const errarg &arg2,
const errarg &arg3)
{
- do_error(FATAL, WARN_INVALID, format, arg1, arg2, arg3);
+ do_error(FATAL, WARN_DUMMY, format, arg1, arg2, arg3);
}
void fatal_with_file_and_line(const char *filename, int lineno,
diff --git a/src/roff/troff/troff.h b/src/roff/troff/troff.h
index b91e63fd9..2b3c0e600 100644
--- a/src/roff/troff/troff.h
+++ b/src/roff/troff/troff.h
@@ -40,7 +40,7 @@ extern search_path *mac_path;
enum warning_category {
// This first item is so that diagnostic functions in "input.cpp" can
// have a consistent parameter list. It feels a little clunky...
- WARN_INVALID = 0,
+ WARN_DUMMY = 0,
WARN_CHAR = 01,
//WARN_NUMBER = 02, // withdrawn in groff 1.24
WARN_BREAK = 04,
_______________________________________________
groff-commit mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/groff-commit