summaryrefslogtreecommitdiffstats
path: root/bin/grepc
diff options
context:
space:
mode:
Diffstat (limited to 'bin/grepc')
-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";