git.samba.org
/
kai
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a057c73
)
Set tp_flags for Python types.
author
Jelmer Vernooij
<jelmer@samba.org>
Mon, 7 Apr 2008 22:13:09 +0000
(
00:13
+0200)
committer
Jelmer Vernooij
<jelmer@samba.org>
Mon, 7 Apr 2008 22:13:09 +0000
(
00:13
+0200)
(This used to be commit
f214206a36d8822e485f6f076c9f3f0bfc1e1df4
)
source4/pidl/lib/Parse/Pidl/Samba4/Python.pm
patch
|
blob
|
history
diff --git
a/source4/pidl/lib/Parse/Pidl/Samba4/Python.pm
b/source4/pidl/lib/Parse/Pidl/Samba4/Python.pm
index 26ef6ae0c926f6bb56db578c34533bbc3176c284..2191bc0fbb8f8eaaa9329660c1dc76e03607c2f4 100644
(file)
--- a/
source4/pidl/lib/Parse/Pidl/Samba4/Python.pm
+++ b/
source4/pidl/lib/Parse/Pidl/Samba4/Python.pm
@@
-237,6
+237,7
@@
sub PythonStruct($$$$)
$self->pidl(".tp_setattr = py_$name\_setattr,");
$self->pidl(".tp_repr = py_talloc_default_repr,");
$self->pidl(".tp_doc = $docstring,");
+ $self->pidl(".tp_flags = Py_TPFLAGS_DEFAULT,");
$self->deindent;
$self->pidl("};");
@@
-532,6
+533,7
@@
sub Interface($$$)
$self->pidl(".tp_dealloc = interface_$interface->{NAME}_dealloc,");
$self->pidl(".tp_getattr = interface_$interface->{NAME}_getattr,");
$self->pidl(".tp_doc = $docstring,");
+ $self->pidl(".tp_flags = Py_TPFLAGS_DEFAULT,");
$self->deindent;
$self->pidl("};");