diff options
author | Pascal Rigaux <pixel@mandriva.com> | 2004-10-14 04:19:22 +0000 |
---|---|---|
committer | Pascal Rigaux <pixel@mandriva.com> | 2004-10-14 04:19:22 +0000 |
commit | a682c270da6fe24ed0bf290cb64c1e198ee94a97 (patch) | |
tree | 785bcad577a7a4182b52e89c653af482fd6e74f8 /perl_checker.src/parser_helper.ml | |
parent | e4ae18a13b9e78d21ee0c214182efd646ac257bb (diff) | |
download | perl_checker-a682c270da6fe24ed0bf290cb64c1e198ee94a97.tar perl_checker-a682c270da6fe24ed0bf290cb64c1e198ee94a97.tar.gz perl_checker-a682c270da6fe24ed0bf290cb64c1e198ee94a97.tar.bz2 perl_checker-a682c270da6fe24ed0bf290cb64c1e198ee94a97.tar.xz perl_checker-a682c270da6fe24ed0bf290cb64c1e198ee94a97.zip |
check if_() with only one parameter
Diffstat (limited to 'perl_checker.src/parser_helper.ml')
-rw-r--r-- | perl_checker.src/parser_helper.ml | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/perl_checker.src/parser_helper.ml b/perl_checker.src/parser_helper.ml index cd5a7f1..230daf8 100644 --- a/perl_checker.src/parser_helper.ml +++ b/perl_checker.src/parser_helper.ml @@ -889,6 +889,11 @@ let call_raw force_non_builtin_func (e, para) = | [ List(String _ :: _) ] -> die_rule "don't use interpolated translated string, use %s or %d instead" | _ -> die_rule (sprintf "%s() must be used with a string" f)) + | "if_" -> + (match para with + | [ List [ _ ] ] -> warn_rule "not enough parameters"; + | _ -> ()) + | "map" -> (match para with |