mirror of
https://github.com/samba-team/samba.git
synced 2025-01-11 05:18:09 +03:00
pidl: Allow location argument to warning() and error() to be undef, in case it is
not known.
This commit is contained in:
parent
2c58c9497c
commit
7ebc7e677d
@ -20,13 +20,19 @@ $VERSION = '0.02';
|
||||
sub warning
|
||||
{
|
||||
my ($l,$m) = @_;
|
||||
print STDERR "$l->{FILE}:$l->{LINE}: warning: $m\n";
|
||||
if ($l) {
|
||||
print STDERR "$l->{FILE}:$l->{LINE}: ";
|
||||
}
|
||||
print STDERR "warning: $m\n";
|
||||
}
|
||||
|
||||
sub error
|
||||
{
|
||||
my ($l,$m) = @_;
|
||||
print STDERR "$l->{FILE}:$l->{LINE}: error: $m\n";
|
||||
if ($l) {
|
||||
print STDERR "$l->{FILE}:$l->{LINE}: ";
|
||||
}
|
||||
print STDERR "error: $m\n";
|
||||
}
|
||||
|
||||
sub fatal($$)
|
||||
|
Loading…
Reference in New Issue
Block a user