diff options
author | Alejandro Colomar <alx@kernel.org> | 2023-11-02 18:08:34 +0100 |
---|---|---|
committer | Alejandro Colomar <alx@kernel.org> | 2023-11-03 01:08:01 +0100 |
commit | f1cfd2fb9e21da7c7fa46e6b7aa7769963bb0a41 (patch) | |
tree | 92162003777d080625a6529b6003a8d231d1b767 | |
parent | d5254b49985073de97ea3c85eda18e8c9825282e (diff) |
bin/grepc: Simplify (remove grepc_glibc_func())
Signed-off-by: Alejandro Colomar <alx@kernel.org>
-rwxr-xr-x | bin/grepc | 31 |
1 files changed, 11 insertions, 20 deletions
@@ -14,7 +14,6 @@ t_func_proto='no'; t_func_def='no'; t_func_syscall_proto='no'; t_func_syscall_def='no'; -t_func_glibc='no'; t_func_glibc_proto='no'; t_func_glibc_def='no'; t_macro='no'; @@ -66,7 +65,8 @@ grepc_parse_cmd() t_func_def='yes'; t_func_syscall_proto='yes'; t_func_syscall_def='yes'; - t_func_glibc='yes'; + t_func_glibc_proto='yes'; + t_func_glibc_def='yes'; ;; fp) t_func_proto='yes'; @@ -85,7 +85,8 @@ grepc_parse_cmd() t_func_syscall_def='yes'; ;; fg) - t_func_glibc='yes'; + t_func_glibc_proto='yes'; + t_func_glibc_def='yes'; ;; fgp) t_func_glibc_proto='yes'; @@ -149,7 +150,8 @@ grepc_parse_cmd() t_func_def='yes'; t_func_syscall_proto='yes'; t_func_syscall_def='yes'; - t_func_glibc='yes'; + t_func_glibc_proto='yes'; + t_func_glibc_def='yes'; t_macro='yes'; t_type='yes'; fi; @@ -264,13 +266,6 @@ grepc_glibc_func_def() } -grepc_glibc_func() -{ - grepc_glibc_func_proto "$1"; - grepc_glibc_func_def "$1"; -} - - grepc_linux_func_syscall_proto() { grepc_helper \ @@ -475,15 +470,11 @@ grepc_search() if [ "$t_func_syscall_def" = 'yes' ]; then grepc_linux_func_syscall_def "$1"; fi; - if [ "$t_func_glibc" = 'yes' ]; then - grepc_glibc_func "$1"; - else - if [ "$t_func_glibc_proto" = 'yes' ]; then - grepc_glibc_func_proto "$1"; - fi; - if [ "$t_func_glibc_def" = 'yes' ]; then - grepc_glibc_func_def "$1"; - fi; + if [ "$t_func_glibc_proto" = 'yes' ]; then + grepc_glibc_func_proto "$1"; + fi; + if [ "$t_func_glibc_def" = 'yes' ]; then + grepc_glibc_func_def "$1"; fi; if [ "$t_macro" = 'yes' ]; then grepc_macro "$1"; |