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

index d6126dbc863012bbe2ca8e6d13c276ff5d17279d..785d463044d6b636e2c88997a12b670f6ef98e71 100755 (executable)
--- a/bin/grepc
+++ b/bin/grepc
@@ -15,7 +15,8 @@ t_func_def='no';
 t_func_syscall_proto='no';
 t_func_syscall_def='no';
 t_func_glibc_proto='no';
-t_func_glibc_def='no';
+t_func_glibc_libm_def='no';
+t_func_glibc_libio_def='no';
 t_macro='no';
 t_type='no';
 t_use_enum='no';
@@ -66,7 +67,8 @@ grepc_parse_cmd()
                                t_func_syscall_proto='yes';
                                t_func_syscall_def='yes';
                                t_func_glibc_proto='yes';
-                               t_func_glibc_def='yes';
+                               t_func_glibc_libm_def='yes';
+                               t_func_glibc_libio_def='yes';
                                ;;
                        fp)
                                t_func_proto='yes';
@@ -86,13 +88,15 @@ grepc_parse_cmd()
                                ;;
                        fg)
                                t_func_glibc_proto='yes';
-                               t_func_glibc_def='yes';
+                               t_func_glibc_libm_def='yes';
+                               t_func_glibc_libio_def='yes';
                                ;;
                        fgp)
                                t_func_glibc_proto='yes';
                                ;;
                        fgd)
-                               t_func_glibc_def='yes';
+                               t_func_glibc_libm_def='yes';
+                               t_func_glibc_libio_def='yes';
                                ;;
                        m)
                                t_macro='yes';
@@ -149,7 +153,8 @@ grepc_parse_cmd()
                t_func_syscall_proto='yes';
                t_func_syscall_def='yes';
                t_func_glibc_proto='yes';
-               t_func_glibc_def='yes';
+               t_func_glibc_libm_def='yes';
+               t_func_glibc_libio_def='yes';
                t_macro='yes';
                t_type='yes';
        fi;
@@ -257,13 +262,6 @@ grepc_glibc_func_proto()
 }
 
 
-grepc_glibc_func_def()
-{
-       grepc_glibc_func_libm_def "$1";
-       grepc_glibc_func_libio_def "$1";
-}
-
-
 grepc_linux_func_syscall_proto()
 {
        grepc_helper \
@@ -456,8 +454,10 @@ grepc_search()
                && grepc_linux_func_syscall_def "$1";
        test "$t_func_glibc_proto" = 'yes' \
                && grepc_glibc_func_proto "$1";
-       test "$t_func_glibc_def" = 'yes' \
-               && grepc_glibc_func_def "$1";
+       test "$t_func_glibc_libm_def" = 'yes' \
+               && grepc_glibc_func_libm_def "$1";
+       test "$t_func_glibc_libio_def" = 'yes' \
+               && grepc_glibc_func_libio_def "$1";
        test "$t_macro" = 'yes' \
                && grepc_macro "$1";
        test "$t_type" = 'yes' \