]> git.ipfire.org Git - thirdparty/man-pages.git/commitdiff
bin/grepc: Compact one-liner definitions
authorAlejandro Colomar <alx@kernel.org>
Thu, 2 Nov 2023 18:15:33 +0000 (19:15 +0100)
committerAlejandro Colomar <alx@kernel.org>
Wed, 29 Oct 2025 20:29:13 +0000 (21:29 +0100)
Signed-off-by: Alejandro Colomar <alx@kernel.org>
bin/grepc

index 785d463044d6b636e2c88997a12b670f6ef98e71..c206bacd33945ab41fc758b57dcef91f30047bbe 100755 (executable)
--- a/bin/grepc
+++ b/bin/grepc
@@ -238,28 +238,10 @@ grepc_func_def()
 }
 
 
-grepc_glibc_func_libm_def()
-{
-       grepc_func_def "M_DECL_FUNC \(__$1\)";
-}
-
-
-grepc_glibc_func_libio_proto()
-{
-       grepc_func_proto "_IO_$1";
-}
-
-
-grepc_glibc_func_libio_def()
-{
-       grepc_func_def "_IO_$1";
-}
-
-
-grepc_glibc_func_proto()
-{
-       grepc_glibc_func_libio_proto "$1";
-}
+grepc_glibc_func_libm_def()    { grepc_func_def "M_DECL_FUNC \(__$1\)"; }
+grepc_glibc_func_libio_proto() { grepc_func_proto "_IO_$1"; }
+grepc_glibc_func_libio_def()   { grepc_func_def "_IO_$1"; }
+grepc_glibc_func_proto()       { grepc_glibc_func_libio_proto "$1"; }
 
 
 grepc_linux_func_syscall_proto()
@@ -383,10 +365,7 @@ grepc_linux_use_func_syscall_def()
 }
 
 
-grepc_linux_use_func()
-{
-       grepc_linux_use_func_syscall_def "$1";
-}
+grepc_linux_use_func() { grepc_linux_use_func_syscall_def "$1"; }
 
 
 grepc_use_func()