summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlejandro Colomar <alx@kernel.org>2023-11-02 18:05:45 +0100
committerAlejandro Colomar <alx@kernel.org>2023-11-03 01:07:48 +0100
commitd5254b49985073de97ea3c85eda18e8c9825282e (patch)
tree7301ca60df045661e054a59a835b804465f9049c
parentbcde7bd659524cfd233b38eebdf1f904b4761d9e (diff)
bin/grepc: Simplify (remove grepc_linux_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 876fd37..0eee226 100755
--- a/bin/grepc
+++ b/bin/grepc
@@ -12,7 +12,6 @@ tflag='no';
t_enum='no';
t_func_proto='no';
t_func_def='no';
-t_func_syscall='no';
t_func_syscall_proto='no';
t_func_syscall_def='no';
t_func_glibc='no';
@@ -65,7 +64,8 @@ grepc_parse_cmd()
f)
t_func_proto='yes';
t_func_def='yes';
- t_func_syscall='yes';
+ t_func_syscall_proto='yes';
+ t_func_syscall_def='yes';
t_func_glibc='yes';
;;
fp)
@@ -75,7 +75,8 @@ grepc_parse_cmd()
t_func_def='yes';
;;
fs)
- t_func_syscall='yes';
+ t_func_syscall_proto='yes';
+ t_func_syscall_def='yes';
;;
fsp)
t_func_syscall_proto='yes';
@@ -146,7 +147,8 @@ grepc_parse_cmd()
t_enum='yes';
t_func_proto='yes';
t_func_def='yes';
- t_func_syscall='yes';
+ t_func_syscall_proto='yes';
+ t_func_syscall_def='yes';
t_func_glibc='yes';
t_macro='yes';
t_type='yes';
@@ -287,13 +289,6 @@ grepc_linux_func_syscall_def()
}
-grepc_linux_func()
-{
- grepc_linux_func_syscall_proto "$1";
- grepc_linux_func_syscall_def "$1";
-}
-
-
grepc_macro_func()
{
grepc_helper \
@@ -474,15 +469,11 @@ grepc_search()
if [ "$t_func_def" = 'yes' ]; then
grepc_func_def "$1";
fi;
- if [ "$t_func_syscall" = 'yes' ]; then
- grepc_linux_func "$1";
- else
- if [ "$t_func_syscall_proto" = 'yes' ]; then
- grepc_linux_func_syscall_proto "$1";
- fi;
- if [ "$t_func_syscall_def" = 'yes' ]; then
- grepc_linux_func_syscall_def "$1";
- fi;
+ if [ "$t_func_syscall_proto" = 'yes' ]; then
+ grepc_linux_func_syscall_proto "$1";
+ fi;
+ if [ "$t_func_syscall_def" = 'yes' ]; then
+ grepc_linux_func_syscall_def "$1";
fi;
if [ "$t_func_glibc" = 'yes' ]; then
grepc_glibc_func "$1";