From 8429418a88e803592f57e1997bfbe0f639f422c0 Mon Sep 17 00:00:00 2001 From: Douglas Bagnall Date: Sat, 30 Nov 2019 16:59:31 +1300 Subject: [PATCH] pidl s4/TDR: use Parse::Pidl::Base Signed-off-by: Douglas Bagnall Reviewed-by: Andrew Bartlett --- pidl/lib/Parse/Pidl/Samba4/TDR.pm | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/pidl/lib/Parse/Pidl/Samba4/TDR.pm b/pidl/lib/Parse/Pidl/Samba4/TDR.pm index 77967414027..aaabe3328e9 100644 --- a/pidl/lib/Parse/Pidl/Samba4/TDR.pm +++ b/pidl/lib/Parse/Pidl/Samba4/TDR.pm @@ -9,8 +9,10 @@ use Parse::Pidl::Util qw(has_property ParseExpr is_constant); use Parse::Pidl::Samba4 qw(is_intree choose_header); use Parse::Pidl::Typelist qw(mapTypeName); +use base Parse::Pidl::Base; + use Exporter; -@ISA = qw(Exporter); +push @ISA, qw(Exporter); @EXPORT_OK = qw(ParserType $res $res_hdr); use vars qw($VERSION); @@ -24,10 +26,6 @@ sub new($) { bless($self, $class); } -sub indent($) { my $self = shift; $self->{tabs}.="\t"; } -sub deindent($) { my $self = shift; $self->{tabs} = substr($self->{tabs}, 1); } -sub pidl($$) { my $self = shift; $self->{res} .= $self->{tabs}.(shift)."\n"; } -sub pidl_hdr($$) { my $self = shift; $self->{res_hdr} .= (shift)."\n"; } sub typearg($) { my $t = shift; return(", const char *name") if ($t eq "print");