gbranden pushed a commit to branch master
in repository groff.
commit bcc90cca1cdc88f519131d9bc6154b25cac0f5ed
Author: G. Branden Robinson <[email protected]>
AuthorDate: Mon Mar 30 18:32:15 2026 -0500
[libgroff]: Annotate similar functions.
There's a site of potential code deduplication here, however return
values and argument types differ.
---
src/libs/libgroff/lf.cpp | 2 ++
src/libs/libgroff/relocate.cpp | 3 +++
2 files changed, 5 insertions(+)
diff --git a/src/libs/libgroff/lf.cpp b/src/libs/libgroff/lf.cpp
index 4c607fb9d..a17c055ce 100644
--- a/src/libs/libgroff/lf.cpp
+++ b/src/libs/libgroff/lf.cpp
@@ -62,6 +62,8 @@ bool interpret_lf_request_arguments(const char *p)
return true;
}
+// XXX: This function is nearly identical to `msw2posixpath()` in
+// "libgroff/relocate.cpp".
#if defined(__MSDOS__) || (defined(_WIN32) && !defined(__CYGWIN__))
void normalize_file_name_for_lf_request(string &fn)
{
diff --git a/src/libs/libgroff/relocate.cpp b/src/libs/libgroff/relocate.cpp
index 3faa33b89..70e32c382 100644
--- a/src/libs/libgroff/relocate.cpp
+++ b/src/libs/libgroff/relocate.cpp
@@ -154,6 +154,9 @@ static char *searchpathext(const char *name, const char
*pathext,
}
#endif
+// XXX: This function is nearly identical to
+// `normalize_file_name_for_lf_request()` in "libgroff/lf.cpp".
+//
// Convert an MS path to a POSIX path.
static char *msw2posixpath(char *path)
{
_______________________________________________
groff-commit mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/groff-commit