From f1cfd2fb9e21da7c7fa46e6b7aa7769963bb0a41 Mon Sep 17 00:00:00 2001 From: Alejandro Colomar Date: Thu, 2 Nov 2023 18:08:34 +0100 Subject: bin/grepc: Simplify (remove grepc_glibc_func()) Signed-off-by: Alejandro Colomar --- bin/grepc | 31 +++++++++++-------------------- 1 file changed, 11 insertions(+), 20 deletions(-) diff --git a/bin/grepc b/bin/grepc index 0eee226..294fe7f 100755 --- a/bin/grepc +++ b/bin/grepc @@ -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"; -- cgit v1.2.3