/Tools/modulator/Templates/object_tail

http://unladen-swallow.googlecode.com/ · #! · 33 lines · 28 code · 5 blank · 0 comment · 0 complexity · 9a684ded75ba720fcb0b14495a738b8e MD5 · raw file

  1. static char $Abbrev$type__doc__[] =
  2. ""
  3. ;
  4. static PyTypeObject $Abbrev$type = {
  5. PyObject_HEAD_INIT(&PyType_Type)
  6. 0, /*ob_size*/
  7. "$name$", /*tp_name*/
  8. sizeof($abbrev$object), /*tp_basicsize*/
  9. 0, /*tp_itemsize*/
  10. /* methods */
  11. (destructor)$tp_dealloc$, /*tp_dealloc*/
  12. (printfunc)$tp_print$, /*tp_print*/
  13. (getattrfunc)$tp_getattr$, /*tp_getattr*/
  14. (setattrfunc)$tp_setattr$, /*tp_setattr*/
  15. (cmpfunc)$tp_compare$, /*tp_compare*/
  16. (reprfunc)$tp_repr$, /*tp_repr*/
  17. $tp_as_number$, /*tp_as_number*/
  18. $tp_as_sequence$, /*tp_as_sequence*/
  19. $tp_as_mapping$, /*tp_as_mapping*/
  20. (hashfunc)$tp_hash$, /*tp_hash*/
  21. (ternaryfunc)$tp_call$, /*tp_call*/
  22. (reprfunc)$tp_str$, /*tp_str*/
  23. /* Space for future expansion */
  24. 0L,0L,0L,0L,
  25. $Abbrev$type__doc__ /* Documentation string */
  26. };
  27. /* End of code for $name$ objects */
  28. /* -------------------------------------------------------- */