Fri Mar 12 19:14:18 2021 UTC ()
indent: make output_string inline

GCC 9.3.0 didn't notice that the argument to this function is always a
string literal, which makes it worthwhile to inline the call.


(rillig)
diff -r1.28 -r1.29 src/usr.bin/indent/io.c

cvs diff -r1.28 -r1.29 src/usr.bin/indent/io.c (expand / switch to context diff)
--- src/usr.bin/indent/io.c 2021/03/12 19:11:29 1.28
+++ src/usr.bin/indent/io.c 2021/03/12 19:14:18 1.29
@@ -1,4 +1,4 @@
-/*	$NetBSD: io.c,v 1.28 2021/03/12 19:11:29 rillig Exp $	*/
+/*	$NetBSD: io.c,v 1.29 2021/03/12 19:14:18 rillig Exp $	*/
 
 /*-
  * SPDX-License-Identifier: BSD-4-Clause
@@ -46,7 +46,7 @@
 #include <sys/cdefs.h>
 #ifndef lint
 #if defined(__NetBSD__)
-__RCSID("$NetBSD: io.c,v 1.28 2021/03/12 19:11:29 rillig Exp $");
+__RCSID("$NetBSD: io.c,v 1.29 2021/03/12 19:14:18 rillig Exp $");
 #elif defined(__FreeBSD__)
 __FBSDID("$FreeBSD: head/usr.bin/indent/io.c 334927 2018-06-10 16:44:18Z pstef $");
 #endif
@@ -77,7 +77,7 @@
     fwrite(s, 1, (size_t)(e - s), output);
 }
 
-static void
+static inline void
 output_string(const char *s)
 {
     output_range(s, s + strlen(s));