summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlejandro Colomar <alx@kernel.org>2023-11-02 18:08:34 +0100
committerAlejandro Colomar <alx@kernel.org>2023-11-03 01:08:01 +0100
commitf1cfd2fb9e21da7c7fa46e6b7aa7769963bb0a41 (patch)
tree92162003777d080625a6529b6003a8d231d1b767
parentd5254b49985073de97ea3c85eda18e8c9825282e (diff)
bin/grepc: Simplify (remove grepc_glibc_func())
Signed-off-by: Alejandro Colomar <alx@kernel.org>
-rwxr-xr-xbin/grepc31
1 files 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";