summaryrefslogtreecommitdiffstats
path: root/bin/grepc
diff options
context:
space:
mode:
Diffstat (limited to 'bin/grepc')
-rwxr-xr-xbin/grepc22
1 files changed, 10 insertions, 12 deletions
diff --git a/bin/grepc b/bin/grepc
index c206bac..d0fcbaf 100755
--- a/bin/grepc
+++ b/bin/grepc
@@ -17,7 +17,8 @@ t_func_syscall_def='no';
t_func_glibc_proto='no';
t_func_glibc_libm_def='no';
t_func_glibc_libio_def='no';
-t_macro='no';
+t_macro_func='no';
+t_macro_obj='no';
t_type='no';
t_use_enum='no';
t_use_func='no';
@@ -99,7 +100,8 @@ grepc_parse_cmd()
t_func_glibc_libio_def='yes';
;;
m)
- t_macro='yes';
+ t_macro_func='yes';
+ t_macro_obj='yes';
;;
t)
t_type='yes';
@@ -155,7 +157,8 @@ grepc_parse_cmd()
t_func_glibc_proto='yes';
t_func_glibc_libm_def='yes';
t_func_glibc_libio_def='yes';
- t_macro='yes';
+ t_macro_func='yes';
+ t_macro_obj='yes';
t_type='yes';
fi;
}
@@ -280,13 +283,6 @@ grepc_macro_object()
}
-grepc_macro()
-{
- grepc_macro_func "$1";
- grepc_macro_object "$1";
-}
-
-
grepc_type_struct_union_enum()
{
grepc_helper \
@@ -437,8 +433,10 @@ grepc_search()
&& 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_macro_func" = 'yes' \
+ && grepc_macro_func "$1";
+ test "$t_macro_obj" = 'yes' \
+ && grepc_macro_object "$1";
test "$t_type" = 'yes' \
&& grepc_type "$1";
test "$t_use_enum" = 'yes' \