Created
June 18, 2012 13:49
-
-
Save dagss/2948458 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
PyHeapExtensibleTypeObject MyProvider_Type = | |
{ | |
/* PyHeapTypeObject etp_heaptype */ | |
{ | |
/* PyTypeObject ht_type */ | |
{ | |
PyVarObject_HEAD_INIT(0, 0), | |
"myprovidertype", /*tp_name*/, | |
sizeof(MyProvider_Object), /* tp_basicsize */ | |
0, /* tp_itemsize */ | |
... | |
&MyProvider_Type.etp_heaptype.as_number, /*tp_as_number*/ | |
&MyProvider_Type.etp_heaptype.as_sequence, /*tp_as_sequence*/ | |
&MyProvider_Type.etp_heaptype.as_mapping, /*tp_as_mapping*/ | |
... | |
&MyProvider_Type.etp_heaptype.as_buffer, /*tp_as_buffer*/ | |
... | |
}, | |
/* PyNumberMethods as_number */ | |
{ | |
0, /*nb_add*/ | |
... | |
}, | |
... | |
0, /* ht_name */ | |
0 /* ht_slots */ | |
}, /* end of PyHeapTypeObject */ | |
2, /* etp_custom_slot_count */ | |
my_custom_slots /* etp_custom_slot_table */ | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment