]> git.ipfire.org Git - thirdparty/man-pages.git/commitdiff
bin/grepc: Simplify (remove grepc_glibc_func())
authorAlejandro Colomar <alx@kernel.org>
Thu, 2 Nov 2023 17:08:34 +0000 (18:08 +0100)
committerAlejandro Colomar <alx@kernel.org>
Wed, 29 Oct 2025 20:29:11 +0000 (21:29 +0100)
Signed-off-by: Alejandro Colomar <alx@kernel.org>
bin/grepc

index 0eee226ec8af13c9b582c37e8e4a02fe2e41c85b..294fe7f65e39c04fb2ec58e9bd801811ad843d75 100755 (executable)
--- 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";