diff options
author | Douglas Bagnall <douglas.bagnall@catalyst.net.nz> | 2019-11-30 16:31:27 +1300 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2019-12-04 05:10:31 +0000 |
commit | 803d9cf8dd7d1767a7d9ac6e846450eb99ba8d5e (patch) | |
tree | 904015dcf9200ac1ae04daae55acbc5d6494012f /pidl | |
parent | 5513558bb422132632da08574d02f3a568622138 (diff) | |
download | samba-803d9cf8dd7d1767a7d9ac6e846450eb99ba8d5e.tar.gz |
pidl s4::Python uses Pidl::Base
Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Diffstat (limited to 'pidl')
-rw-r--r-- | pidl/lib/Parse/Pidl/Samba4/Python.pm | 34 |
1 files changed, 3 insertions, 31 deletions
diff --git a/pidl/lib/Parse/Pidl/Samba4/Python.pm b/pidl/lib/Parse/Pidl/Samba4/Python.pm index 9ef4c6ca493..75d6ccb356e 100644 --- a/pidl/lib/Parse/Pidl/Samba4/Python.pm +++ b/pidl/lib/Parse/Pidl/Samba4/Python.pm @@ -4,9 +4,10 @@ # released under the GNU GPL package Parse::Pidl::Samba4::Python; +use parent Parse::Pidl::Base; use Exporter; -@ISA = qw(Exporter); +push @ISA, 'Exporter'; use strict; use Parse::Pidl qw(warning fatal error); @@ -17,6 +18,7 @@ use Parse::Pidl::CUtil qw(get_value_of get_pointer_to); use Parse::Pidl::Samba4 qw(ArrayDynamicallyAllocated); use Parse::Pidl::Samba4::Header qw(GenerateFunctionInEnv GenerateFunctionOutEnv EnvSubstituteValue GenerateStructEnv); + use vars qw($VERSION); $VERSION = '0.01'; @@ -34,36 +36,6 @@ sub new($) { bless($self, $class); } -sub pidl_hdr ($$) -{ - my $self = shift; - $self->{res_hdr} .= shift . "\n"; -} - -sub pidl($$) -{ - my ($self, $d) = @_; - if ($d) { - if ((!($d =~ /^#/))) { - $self->{res} .= $self->{tabs}; - } - $self->{res} .= $d; - } - $self->{res} .= "\n"; -} - -sub indent($) -{ - my ($self) = @_; - $self->{tabs} .= "\t"; -} - -sub deindent($) -{ - my ($self) = @_; - $self->{tabs} = substr($self->{tabs}, 0, -1); -} - sub PrettifyTypeName($$) { my ($name, $basename) = @_; |