Signed-off-by: Alejandro Colomar <alx@kernel.org>
t_func_glibc_def='no';
t_macro='no';
t_type='no';
-t_use='no';
t_use_enum='no';
t_use_func='no';
t_use_macro='no';
t_type='yes';
;;
u)
- t_use='yes';
+ t_use_enum='yes';
+ t_use_func='yes';
+ t_use_macro='yes';
+ t_use_type='yes';
;;
ue)
t_use_enum='yes';
}
-grepc_use()
-{
- grepc_use_enum "$1";
- grepc_use_func "$1";
- grepc_use_macro "$1";
- grepc_use_type "$1";
-}
-
-
grepc_search()
{
if [ "$t_enum" = 'yes' ]; then
if [ "$t_type" = 'yes' ]; then
grepc_type "$1";
fi;
- if [ "$t_use" = 'yes' ]; then
- grepc_use "$1";
- else
- if [ "$t_use_enum" = 'yes' ]; then
- grepc_use_enum "$1";
- fi;
- if [ "$t_use_func" = 'yes' ]; then
- grepc_use_func "$1";
- fi;
- if [ "$t_use_macro" = 'yes' ]; then
- grepc_use_macro "$1";
- fi;
- if [ "$t_use_type" = 'yes' ]; then
- grepc_use_type "$1";
- fi;
+ if [ "$t_use_enum" = 'yes' ]; then
+ grepc_use_enum "$1";
+ fi;
+ if [ "$t_use_func" = 'yes' ]; then
+ grepc_use_func "$1";
+ fi;
+ if [ "$t_use_macro" = 'yes' ]; then
+ grepc_use_macro "$1";
+ fi;
+ if [ "$t_use_type" = 'yes' ]; then
+ grepc_use_type "$1";
fi;
}