[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[groff] 02/10: [troff]: Mark unmodified function arg as `const`.
From: |
G. Branden Robinson |
Subject: |
[groff] 02/10: [troff]: Mark unmodified function arg as `const`. |
Date: |
Thu, 17 Oct 2024 20:39:41 -0400 (EDT) |
gbranden pushed a commit to branch master
in repository groff.
commit bbea22a13eb2c46ae3626500e42e9b6c128a1267
Author: G. Branden Robinson <g.branden.robinson@gmail.com>
AuthorDate: Thu Oct 17 10:18:11 2024 -0500
[troff]: Mark unmodified function arg as `const`.
* src/roff/troff/input.cpp (parse_output_page_list): `const`ify function
argument.
---
ChangeLog | 5 +++++
src/roff/troff/input.cpp | 2 +-
2 files changed, 6 insertions(+), 1 deletion(-)
diff --git a/ChangeLog b/ChangeLog
index 840e06e28..5ba8f8732 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2024-10-17 G. Branden Robinson <g.branden.robinson@gmail.com>
+
+ * src/roff/troff/input.cpp (parse_output_page_list): `const`ify
+ function argument.
+
2024-10-16 G. Branden Robinson <g.branden.robinson@gmail.com>
* tmac/s.tmac (DS): Break line unconditionally, ensuring that
diff --git a/src/roff/troff/input.cpp b/src/roff/troff/input.cpp
index fcba09c76..5594c5075 100644
--- a/src/roff/troff/input.cpp
+++ b/src/roff/troff/input.cpp
@@ -8596,7 +8596,7 @@ int in_output_page_list(int n)
return 0;
}
-static void parse_output_page_list(char *p)
+static void parse_output_page_list(const char *p)
{
for (;;) {
int i;
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [groff] 02/10: [troff]: Mark unmodified function arg as `const`.,
G. Branden Robinson <=