From 7f676f49eaf1552445d2dda2e6effcb4be0b10f6 Mon Sep 17 00:00:00 2001 From: Pascal Rigaux Date: Thu, 14 Oct 2004 04:19:22 +0000 Subject: check if_() with only one parameter --- perl_checker.src/parser_helper.ml | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'perl_checker.src/parser_helper.ml') 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 -- cgit v1.2.1