diff options
author | Pascal Rigaux <pixel@mandriva.com> | 2002-12-04 13:16:15 +0000 |
---|---|---|
committer | Pascal Rigaux <pixel@mandriva.com> | 2002-12-04 13:16:15 +0000 |
commit | aafa35726b096f3e3b4967c0692a9abaee130ba1 (patch) | |
tree | 18981f3fe185ff36c8db663adf6bd49961b50b1c /perl_checker.src/parser_helper.mli | |
parent | 701155c3ec847cb0cb7ee5ed5a4d56945fe21ab3 (diff) | |
download | perl_checker-aafa35726b096f3e3b4967c0692a9abaee130ba1.tar perl_checker-aafa35726b096f3e3b4967c0692a9abaee130ba1.tar.gz perl_checker-aafa35726b096f3e3b4967c0692a9abaee130ba1.tar.bz2 perl_checker-aafa35726b096f3e3b4967c0692a9abaee130ba1.tar.xz perl_checker-aafa35726b096f3e3b4967c0692a9abaee130ba1.zip |
- warn use of "cond ? list : ()" (use if_(cond, list) instead)
- adapt MDK::Common::* to this (using @{[]} instead of () to avoid the warning)
Diffstat (limited to 'perl_checker.src/parser_helper.mli')
-rw-r--r-- | perl_checker.src/parser_helper.mli | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/perl_checker.src/parser_helper.mli b/perl_checker.src/parser_helper.mli index e617547..d3f5396 100644 --- a/perl_checker.src/parser_helper.mli +++ b/perl_checker.src/parser_helper.mli @@ -8,6 +8,8 @@ val get_pos : 'a * ('b * ('c * 'd)) -> string * 'c * 'd val var_dollar_ : Types.fromparser val var_STDOUT : Types.fromparser val is_var_dollar_ : Types.fromparser -> bool +val is_var_number_match : Types.fromparser -> bool +val is_call : Types.fromparser -> bool val is_parenthesized : Types.fromparser -> bool val un_parenthesize : Types.fromparser -> Types.fromparser val un_parenthesize_full : Types.fromparser -> Types.fromparser @@ -60,12 +62,16 @@ val check_hash_subscript : ('a * Types.fromparser) * ('b * (int * int)) -> unit val check_arrow_needed : ('a * Types.fromparser) * 'b -> 'c * ('d * (int * int)) -> unit +val check_ternary_para : ('a * Types.fromparser) * ('b * (int * int)) -> unit +val check_ternary_paras : + ('a * Types.fromparser) * ('b * (int * int)) -> + ('c * Types.fromparser) * ('d * (int * int)) -> unit val check_unneeded_var_dollar_ : ('a * Types.fromparser) * ('b * (int * int)) -> unit -val check_unneeded_var_dollar_s : - ('a * Types.fromparser) * ('b * (int * int)) -> unit val check_unneeded_var_dollar_not : ('a * Types.fromparser) * ('b * (int * int)) -> unit +val check_unneeded_var_dollar_s : + ('a * Types.fromparser) * ('b * (int * int)) -> unit val check_MULT_is_x : string * 'a -> unit val check_my : string * 'a -> unit val check_foreach : string * ('a * (int * int)) -> unit |