diff options
author | Petr Viktorin <pviktori@redhat.com> | 2014-12-03 13:59:58 +0100 |
---|---|---|
committer | Andreas Schneider <asn@cryptomilk.org> | 2015-01-22 10:51:07 +0100 |
commit | 02980268e8641a1558c6f475d4669ce4d663504d (patch) | |
tree | 99af8a29bb905e0101d0a1e24bc78f55771571ec /pidl | |
parent | 496b67b27ab9856017a07b2fbcc5ba465f1945b3 (diff) | |
download | samba-02980268e8641a1558c6f475d4669ce4d663504d.tar.gz |
Remove use of the "staticforward" macro
This macro was used for compatibility with broken compilers.
Since Python 2.3, it is always defined as `static`, and only exists
"for source compatibility with old C extensions".
Signed-off-by: Petr Viktorin <pviktori@redhat.com>
Reviewed-by: Jelmer Vernooij <jelmer@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
Diffstat (limited to 'pidl')
-rw-r--r-- | pidl/lib/Parse/Pidl/Samba4/Python.pm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pidl/lib/Parse/Pidl/Samba4/Python.pm b/pidl/lib/Parse/Pidl/Samba4/Python.pm index 31cf63f366e..920d10acadc 100644 --- a/pidl/lib/Parse/Pidl/Samba4/Python.pm +++ b/pidl/lib/Parse/Pidl/Samba4/Python.pm @@ -355,7 +355,7 @@ sub PythonStruct($$$$$$) $self->pidl(""); } - $self->pidl_hdr("staticforward PyTypeObject $name\_Type;\n"); + $self->pidl_hdr("static PyTypeObject $name\_Type;\n"); $self->pidl(""); my $docstring = $self->DocString($d, $name); my $typeobject = "$name\_Type"; @@ -691,7 +691,7 @@ sub Interface($$$) } if (defined $interface->{PROPERTIES}->{uuid}) { - $self->pidl_hdr("staticforward PyTypeObject $interface->{NAME}_InterfaceType;\n"); + $self->pidl_hdr("static PyTypeObject $interface->{NAME}_InterfaceType;\n"); $self->pidl(""); my @fns = (); |