diff options
author | Alejandro Colomar <alx@kernel.org> | 2023-11-02 19:15:33 +0100 |
---|---|---|
committer | Alejandro Colomar <alx@kernel.org> | 2023-11-03 01:08:22 +0100 |
commit | 5ef84fd872f8cd186a14369a7f82b2b99d1b0860 (patch) | |
tree | 66e66027d84dd0cb8e657eda3d2c69385bed89b7 | |
parent | d8b78e356d1dccf95d393e655b5cbfb56e1d65bb (diff) |
bin/grepc: Compact one-liner definitions
Signed-off-by: Alejandro Colomar <alx@kernel.org>
-rwxr-xr-x | bin/grepc | 31 |
1 files changed, 5 insertions, 26 deletions
@@ -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() |