summaryrefslogtreecommitdiffstats
path: root/perl_checker.src/parser_helper.ml
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2002-11-28 01:00:24 +0000
committerPascal Rigaux <pixel@mandriva.com>2002-11-28 01:00:24 +0000
commit1d20adfc99c81fd83bf3023c412976a4f389b630 (patch)
treee0778b05fe69ef6f6cea278c11de39a1c549f76f /perl_checker.src/parser_helper.ml
parent88100399efa487df4145f0ed53cc7ee8305e0b3d (diff)
downloadperl-MDK-Common-1d20adfc99c81fd83bf3023c412976a4f389b630.tar
perl-MDK-Common-1d20adfc99c81fd83bf3023c412976a4f389b630.tar.gz
perl-MDK-Common-1d20adfc99c81fd83bf3023c412976a4f389b630.tar.bz2
perl-MDK-Common-1d20adfc99c81fd83bf3023c412976a4f389b630.tar.xz
perl-MDK-Common-1d20adfc99c81fd83bf3023c412976a4f389b630.zip
*** empty log message ***
Diffstat (limited to 'perl_checker.src/parser_helper.ml')
-rw-r--r--perl_checker.src/parser_helper.ml5
1 files changed, 5 insertions, 0 deletions
diff --git a/perl_checker.src/parser_helper.ml b/perl_checker.src/parser_helper.ml
index 62a85f0..d377109 100644
--- a/perl_checker.src/parser_helper.ml
+++ b/perl_checker.src/parser_helper.ml
@@ -437,6 +437,11 @@ let call_func is_a_func (e, para) =
| [ Ident(_, _, pos) as s ] -> Some [ Raw_string(string_of_Ident s, pos) ]
| [ Call(Deref(I_func, (Ident(_, _, pos) as s)), l) ] -> Some(Raw_string(string_of_Ident s, pos) :: l)
| _ -> die_rule "use \"no PACKAGE <para>\"")
+ | "undef" ->
+ (match para with
+ | [ Deref(I_star, ident) ] -> Some [ Deref(I_func, ident) ]
+ | _ -> None)
+
| "N" | "N_" ->
(match para with
| [ List(String([ _s, List [] ], _) :: _) ] -> None