mirror of
https://github.com/samba-team/samba.git
synced 2025-02-04 17:47:26 +03:00
pidl/Samba4.pm: allow an optional prefix passed to DeclLong()
metze
This commit is contained in:
parent
dcdefc17b9
commit
9e4cf82b74
@ -102,10 +102,11 @@ sub ArrayBrackets($)
|
||||
return $res;
|
||||
}
|
||||
|
||||
sub DeclLong($)
|
||||
sub DeclLong($;$)
|
||||
{
|
||||
my ($e) = shift;
|
||||
my ($e, $p) = @_;
|
||||
my $res = "";
|
||||
$p = "" unless defined($p);
|
||||
|
||||
if (has_property($e, "represent_as")) {
|
||||
$res .= mapTypeName($e->{PROPERTIES}->{represent_as})." ";
|
||||
@ -118,7 +119,7 @@ sub DeclLong($)
|
||||
|
||||
$res .= ElementStars($e);
|
||||
}
|
||||
$res .= $e->{NAME};
|
||||
$res .= $p.$e->{NAME};
|
||||
$res .= ArrayBrackets($e);
|
||||
|
||||
return $res;
|
||||
|
Loading…
x
Reference in New Issue
Block a user