gbranden pushed a commit to branch master
in repository groff.
commit be6212a0a7eb5cac923e7ec7047c3800477c3578
Author: G. Branden Robinson <[email protected]>
AuthorDate: Mon May 6 04:14:21 2024 -0500
[troff]: Trivially refactor (is_using_line_tabs).
* src/roff/troff/env.h (class environment): Rename member function.
* src/roff/troff/env.cpp (environment::get_using_line_tabs): Rename
this...
(environment::is_using_line_tabs): ...to this.
(init_env_requests): Update reference.
---
ChangeLog | 9 +++++++++
src/roff/troff/env.cpp | 4 ++--
src/roff/troff/env.h | 2 +-
3 files changed, 12 insertions(+), 3 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index 63a0fb0c4..5a7be7e01 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,12 @@
+2024-05-06 G. Branden Robinson <[email protected]>
+
+ * src/roff/troff/env.h (class environment): Rename member
+ function.
+ * src/roff/troff/env.cpp (environment::get_using_line_tabs):
+ Rename this...
+ (environment::is_using_line_tabs): ...to this.
+ (init_env_requests): Update reference.
+
2024-05-06 G. Branden Robinson <[email protected]>
* src/roff/troff/env.cpp (environment::print_env): Fix typo in
diff --git a/src/roff/troff/env.cpp b/src/roff/troff/env.cpp
index 0e9af19a2..79911dba1 100644
--- a/src/roff/troff/env.cpp
+++ b/src/roff/troff/env.cpp
@@ -2948,7 +2948,7 @@ void line_tabs_request()
skip_line();
}
-int environment::get_using_line_tabs()
+int environment::is_using_line_tabs()
{
return using_line_tabs;
}
@@ -4177,7 +4177,7 @@ void init_env_requests()
init_int_env_reg(".it", get_input_trap_line_count);
init_int_env_reg(".itc", get_input_trap_respects_continuation);
init_string_env_reg(".itm", get_input_trap_macro);
- init_int_env_reg(".linetabs", get_using_line_tabs);
+ init_int_env_reg(".linetabs", is_using_line_tabs);
init_hunits_env_reg(".lt", get_title_length);
init_unsigned_env_reg(".j", get_adjust_mode);
init_hunits_env_reg(".k", get_text_length);
diff --git a/src/roff/troff/env.h b/src/roff/troff/env.h
index 19f81d2c5..68b6a5e7b 100644
--- a/src/roff/troff/env.h
+++ b/src/roff/troff/env.h
@@ -310,7 +310,7 @@ public:
{ return env_half_narrow_space_width(this); }
hunits get_input_line_position();
const char *get_tabs();
- int get_using_line_tabs();
+ int is_using_line_tabs();
unsigned get_hyphenation_mode();
unsigned get_hyphenation_mode_default();
int get_hyphen_line_max();
_______________________________________________
Groff-commit mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/groff-commit