summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlejandro Colomar <alx@kernel.org>2023-11-02 19:52:57 +0100
committerAlejandro Colomar <alx@kernel.org>2023-11-03 01:08:35 +0100
commit486361da756f0e64b329af06b50e65932095865b (patch)
tree02ff0d87e73a4cb360f662172f6c0176cddb99e8
parent9afd98d11b1cdf3501ef927b8b9a7efb78fa6f19 (diff)
bin/grepc: Simplify (remove grepc_use_func())
Signed-off-by: Alejandro Colomar <alx@kernel.org>
-rwxr-xr-xbin/grepc24
1 files changed, 11 insertions, 13 deletions
diff --git a/bin/grepc b/bin/grepc
index 2c83624..dd82839 100755
--- a/bin/grepc
+++ b/bin/grepc
@@ -24,7 +24,8 @@ t_type_td_simple='no';
t_type_td_braced='no';
t_type_td_func='no';
t_use_enum='no';
-t_use_func='no';
+t_use_func_def='no';
+t_use_func_linux_def='no';
t_use_macro='no';
t_use_type_su='no';
t_use_type_td_simple='no';
@@ -116,7 +117,8 @@ grepc_parse_cmd()
;;
u)
t_use_enum='yes';
- t_use_func='yes';
+ t_use_func_def='yes';
+ t_use_func_linux_def='yes';
t_use_macro='yes';
t_use_type_su='yes';
t_use_type_td_simple='yes';
@@ -126,7 +128,8 @@ grepc_parse_cmd()
t_use_enum='yes';
;;
uf)
- t_use_func='yes';
+ t_use_func_def='yes';
+ t_use_func_linux_def='yes';
;;
um)
t_use_macro='yes';
@@ -361,14 +364,7 @@ grepc_linux_use_func_syscall_def()
}
-grepc_linux_use_func() { grepc_linux_use_func_syscall_def "$1"; }
-
-
-grepc_use_func()
-{
- grepc_use_func_def "$1";
- grepc_linux_use_func "$1";
-}
+grepc_use_func_linux_def() { grepc_linux_use_func_syscall_def "$1"; }
grepc_use_macro()
@@ -439,8 +435,10 @@ grepc_search()
&& grepc_type_td_func "$1";
test "$t_use_enum" = 'yes' \
&& grepc_use_enum "$1";
- test "$t_use_func" = 'yes' \
- && grepc_use_func "$1";
+ test "$t_use_func_def" = 'yes' \
+ && grepc_use_func_def "$1";
+ test "$t_use_func_linux_def" = 'yes' \
+ && grepc_use_func_linux_def "$1";
test "$t_use_macro" = 'yes' \
&& grepc_use_macro "$1";
test "$t_use_type_su" = 'yes' \