summaryrefslogtreecommitdiffstats
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
commit8ae8834a1c162de398cd7bd5b0628d77e1fcf973 (patch)
treee64682f2fe014864b015fc11f579ac073c9e9b34
parent4dca310579e9ba67f7a06591edabede5bbe13be6 (diff)
downloadperl_checker-8ae8834a1c162de398cd7bd5b0628d77e1fcf973.tar
perl_checker-8ae8834a1c162de398cd7bd5b0628d77e1fcf973.tar.gz
perl_checker-8ae8834a1c162de398cd7bd5b0628d77e1fcf973.tar.bz2
perl_checker-8ae8834a1c162de398cd7bd5b0628d77e1fcf973.tar.xz
perl_checker-8ae8834a1c162de398cd7bd5b0628d77e1fcf973.zip
*** empty log message ***
-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