samba-tool: Fix enum values in dns.py
[Samba.git] / pidl / lib / Parse / Pidl.pm
blob40e3673908e0c54d680ec3667a6cec5083b0c93e
1 ###################################################
2 # package to parse IDL files and generate code for
3 # rpc functions in Samba
4 # Copyright tridge@samba.org 2000-2003
5 # Copyright jelmer@samba.org 2005
6 # released under the GNU GPL
8 package Parse::Pidl;
10 require Exporter;
11 @ISA = qw(Exporter);
12 @EXPORT_OK = qw(warning error fatal $VERSION);
14 use strict;
16 use vars qw ( $VERSION );
18 $VERSION = '0.02';
20 sub warning
22 my ($l,$m) = @_;
23 if ($l) {
24 print STDERR "$l->{FILE}:$l->{LINE}: ";
26 print STDERR "warning: $m\n";
29 sub error
31 my ($l,$m) = @_;
32 if ($l) {
33 print STDERR "$l->{FILE}:$l->{LINE}: ";
35 print STDERR "error: $m\n";
38 sub fatal($$)
40 my ($e,$s) = @_;
41 die("$e->{FILE}:$e->{LINE}: $s\n");