gbranden pushed a commit to branch master
in repository groff.
commit 675816ea39f60a4de1afae6745220f73799602a8
Author: G. Branden Robinson <[email protected]>
AuthorDate: Sun Apr 12 01:11:58 2026 -0500
src/libs/libdriver/printer.cpp: Fix cosmetic nits.
...in code style.
* Set function name on the same line as its return type, consistently
with (almost) all other groff code.
* Wrap overlong function definition argument lists at commas, not
between a type and its identifier.
* Eschew space between function identifier and parenthesized parameter
list in function definition.
---
src/libs/libdriver/printer.cpp | 8 +++-----
1 file changed, 3 insertions(+), 5 deletions(-)
diff --git a/src/libs/libdriver/printer.cpp b/src/libs/libdriver/printer.cpp
index 543ffe664..61ff3683f 100644
--- a/src/libs/libdriver/printer.cpp
+++ b/src/libs/libdriver/printer.cpp
@@ -55,8 +55,7 @@ with this program. If not, see
<http://www.gnu.org/licenses/>.
diagnostics.
*/
- static int
- check_for_output_error (FILE* stream)
+ static int check_for_output_error(FILE* stream)
{
/* First, clean up any prior error context on the output stream */
if (ferror (stream))
@@ -84,7 +83,6 @@ with this program. If not, see
<http://www.gnu.org/licenses/>.
#endif
-
font_pointer_list::font_pointer_list(font *f, font_pointer_list *fp)
: p(f), next(fp)
{
@@ -243,8 +241,8 @@ glyph *printer::set_char_and_width(const char *nm,
return g;
}
-void printer::set_numbered_char(int num, const environment *env, int
- *widthp)
+void printer::set_numbered_char(int num, const environment *env,
+ int *widthp)
{
glyph *g = number_to_glyph(num);
int fn = env->fontno;
_______________________________________________
groff-commit mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/groff-commit