From: Douglas Bagnall Date: Sat, 30 Nov 2019 03:25:54 +0000 (+1300) Subject: pidl Samba3::ClientNDR uses Pidl::Base X-Git-Tag: ldb-2.1.0~469 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=4f0fba18867faa0578d63c26054d04afd7f8b019;p=thirdparty%2Fsamba.git pidl Samba3::ClientNDR uses Pidl::Base We need to modify the '@ISA = ' line, because it overwrites the inheritance from Pidl::Base. Signed-off-by: Douglas Bagnall Reviewed-by: Andrew Bartlett --- diff --git a/pidl/lib/Parse/Pidl/Samba3/ClientNDR.pm b/pidl/lib/Parse/Pidl/Samba3/ClientNDR.pm index 6acf1c5af2c..4d125cc799d 100644 --- a/pidl/lib/Parse/Pidl/Samba3/ClientNDR.pm +++ b/pidl/lib/Parse/Pidl/Samba3/ClientNDR.pm @@ -6,9 +6,10 @@ # released under the GNU GPL package Parse::Pidl::Samba3::ClientNDR; +use base Parse::Pidl::Base; use Exporter; -@ISA = qw(Exporter); +push @ISA, qw(Exporter); @EXPORT_OK = qw(ParseFunction $res $res_hdr); use strict; @@ -19,13 +20,10 @@ use Parse::Pidl::Typelist qw(mapTypeName); use Parse::Pidl::Samba4 qw(DeclLong); use Parse::Pidl::Samba4::Header qw(GenerateFunctionInEnv GenerateFunctionOutEnv); + use vars qw($VERSION); $VERSION = '0.01'; -sub indent($) { my ($self) = @_; $self->{tabs}.="\t"; } -sub deindent($) { my ($self) = @_; $self->{tabs} = substr($self->{tabs}, 1); } -sub pidl($$) { my ($self,$txt) = @_; $self->{res} .= $txt ? "$self->{tabs}$txt\n" : "\n"; } -sub pidl_hdr($$) { my ($self, $txt) = @_; $self->{res_hdr} .= "$txt\n"; } sub fn_declare($$) { my ($self,$n) = @_; $self->pidl($n); $self->pidl_hdr("$n;"); } sub new($)