Cosmetic formatting in generated code

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12610 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
William S Fulton 2011-04-05 20:59:24 +00:00
commit 070893434b
3 changed files with 161 additions and 164 deletions

View file

@ -308,55 +308,55 @@ SWIGINTERN PyTypeObject SwigPyStaticVar_Type = {
"swig_static_var_getset_descriptor", "swig_static_var_getset_descriptor",
sizeof(PyGetSetDescrObject), sizeof(PyGetSetDescrObject),
0, 0,
(destructor)SwigPyStaticVar_dealloc, /* tp_dealloc */ (destructor)SwigPyStaticVar_dealloc, /* tp_dealloc */
0, /* tp_print */ 0, /* tp_print */
0, /* tp_getattr */ 0, /* tp_getattr */
0, /* tp_setattr */ 0, /* tp_setattr */
0, /* tp_compare */ 0, /* tp_compare */
(reprfunc)SwigPyStaticVar_repr, /* tp_repr */ (reprfunc)SwigPyStaticVar_repr, /* tp_repr */
0, /* tp_as_number */ 0, /* tp_as_number */
0, /* tp_as_sequence */ 0, /* tp_as_sequence */
0, /* tp_as_mapping */ 0, /* tp_as_mapping */
0, /* tp_hash */ 0, /* tp_hash */
0, /* tp_call */ 0, /* tp_call */
0, /* tp_str */ 0, /* tp_str */
PyObject_GenericGetAttr, /* tp_getattro */ PyObject_GenericGetAttr, /* tp_getattro */
0, /* tp_setattro */ 0, /* tp_setattro */
0, /* tp_as_buffer */ 0, /* tp_as_buffer */
Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_GC|Py_TPFLAGS_HAVE_CLASS, /* tp_flags */ Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_GC|Py_TPFLAGS_HAVE_CLASS, /* tp_flags */
0, /* tp_doc */ 0, /* tp_doc */
SwigPyStaticVar_traverse, /* tp_traverse */ SwigPyStaticVar_traverse, /* tp_traverse */
0, /* tp_clear */ 0, /* tp_clear */
0, /* tp_richcompare */ 0, /* tp_richcompare */
0, /* tp_weaklistoffset */ 0, /* tp_weaklistoffset */
0, /* tp_iter */ 0, /* tp_iter */
0, /* tp_iternext */ 0, /* tp_iternext */
0, /* tp_methods */ 0, /* tp_methods */
0, /* tp_members */ 0, /* tp_members */
0, /* tp_getset */ 0, /* tp_getset */
0, /* tp_base */ 0, /* tp_base */
0, /* tp_dict */ 0, /* tp_dict */
(descrgetfunc)SwigPyStaticVar_get, /* tp_descr_get */ (descrgetfunc)SwigPyStaticVar_get, /* tp_descr_get */
(descrsetfunc)SwigPyStaticVar_set, /* tp_descr_set */ (descrsetfunc)SwigPyStaticVar_set, /* tp_descr_set */
0, /* tp_dictoffset */ 0, /* tp_dictoffset */
0, /* tp_init */ 0, /* tp_init */
0, /* tp_alloc */ 0, /* tp_alloc */
0, /* tp_new */ 0, /* tp_new */
0, /* tp_free */ 0, /* tp_free */
0, /* tp_is_gc */ 0, /* tp_is_gc */
0, /* tp_bases */ 0, /* tp_bases */
0, /* tp_mro */ 0, /* tp_mro */
0, /* tp_cache */ 0, /* tp_cache */
0, /* tp_subclasses */ 0, /* tp_subclasses */
0, /* tp_weaklist */ 0, /* tp_weaklist */
#if PY_VERSION_HEX >= 0x02030000 #if PY_VERSION_HEX >= 0x02030000
0, /* tp_del */ 0, /* tp_del */
#endif #endif
#if PY_VERSION_HEX >= 0x02060000 #if PY_VERSION_HEX >= 0x02060000
0, /* tp_version */ 0, /* tp_version */
#endif #endif
#ifdef COUNT_ALLOCS #ifdef COUNT_ALLOCS
0,0,0,0 /* tp_alloc -> tp_next */ 0,0,0,0 /* tp_alloc -> tp_next */
#endif #endif
}; };

View file

@ -140,22 +140,21 @@ swig_varlink_type(void) {
static PyTypeObject varlink_type; static PyTypeObject varlink_type;
static int type_init = 0; static int type_init = 0;
if (!type_init) { if (!type_init) {
const PyTypeObject tmp const PyTypeObject tmp = {
= {
/* PyObject header changed in Python 3 */ /* PyObject header changed in Python 3 */
#if PY_VERSION_HEX >= 0x03000000 #if PY_VERSION_HEX >= 0x03000000
PyVarObject_HEAD_INIT(&PyType_Type, 0) PyVarObject_HEAD_INIT(&PyType_Type, 0)
#else #else
PyObject_HEAD_INIT(NULL) PyObject_HEAD_INIT(NULL)
0, /* Number of items in variable part (ob_size) */ 0, /* ob_size */
#endif #endif
(char *)"swigvarlink", /* Type name (tp_name) */ (char *)"swigvarlink", /* tp_name */
sizeof(swig_varlinkobject), /* Basic size (tp_basicsize) */ sizeof(swig_varlinkobject), /* tp_basicsize */
0, /* Itemsize (tp_itemsize) */ 0, /* tp_itemsize */
(destructor) swig_varlink_dealloc, /* Deallocator (tp_dealloc) */ (destructor) swig_varlink_dealloc, /* tp_dealloc */
(printfunc) swig_varlink_print, /* Print (tp_print) */ (printfunc) swig_varlink_print, /* tp_print */
(getattrfunc) swig_varlink_getattr, /* get attr (tp_getattr) */ (getattrfunc) swig_varlink_getattr, /* tp_getattr */
(setattrfunc) swig_varlink_setattr, /* Set attr (tp_setattr) */ (setattrfunc) swig_varlink_setattr, /* tp_setattr */
0, /* tp_compare */ 0, /* tp_compare */
(reprfunc) swig_varlink_repr, /* tp_repr */ (reprfunc) swig_varlink_repr, /* tp_repr */
0, /* tp_as_number */ 0, /* tp_as_number */

View file

@ -745,79 +745,78 @@ SwigPyObject_TypeOnce(void) {
static PyTypeObject swigpyobject_type; static PyTypeObject swigpyobject_type;
static int type_init = 0; static int type_init = 0;
if (!type_init) { if (!type_init) {
const PyTypeObject tmp const PyTypeObject tmp = {
= { /* PyObject header changed in Python 3 */
/* PyObject header changed in Python 3 */
#if PY_VERSION_HEX >= 0x03000000 #if PY_VERSION_HEX >= 0x03000000
PyVarObject_HEAD_INIT(&PyType_Type, 0) PyVarObject_HEAD_INIT(&PyType_Type, 0)
#else #else
PyObject_HEAD_INIT(NULL) PyObject_HEAD_INIT(NULL)
0, /* ob_size */ 0, /* ob_size */
#endif #endif
(char *)"SwigPyObject", /* tp_name */ (char *)"SwigPyObject", /* tp_name */
sizeof(SwigPyObject), /* tp_basicsize */ sizeof(SwigPyObject), /* tp_basicsize */
0, /* tp_itemsize */ 0, /* tp_itemsize */
(destructor)SwigPyObject_dealloc, /* tp_dealloc */ (destructor)SwigPyObject_dealloc, /* tp_dealloc */
(printfunc)SwigPyObject_print, /* tp_print */ (printfunc)SwigPyObject_print, /* tp_print */
#if PY_VERSION_HEX < 0x02020000 #if PY_VERSION_HEX < 0x02020000
(getattrfunc)SwigPyObject_getattr, /* tp_getattr */ (getattrfunc)SwigPyObject_getattr, /* tp_getattr */
#else #else
(getattrfunc)0, /* tp_getattr */ (getattrfunc)0, /* tp_getattr */
#endif #endif
(setattrfunc)0, /* tp_setattr */ (setattrfunc)0, /* tp_setattr */
#if PY_VERSION_HEX >= 0x03000000 #if PY_VERSION_HEX >= 0x03000000
0, /* tp_reserved in 3.0.1, tp_compare in 3.0.0 but not used */ 0, /* tp_reserved in 3.0.1, tp_compare in 3.0.0 but not used */
#else #else
(cmpfunc)SwigPyObject_compare, /* tp_compare */ (cmpfunc)SwigPyObject_compare, /* tp_compare */
#endif #endif
(reprfunc)SwigPyObject_repr, /* tp_repr */ (reprfunc)SwigPyObject_repr, /* tp_repr */
&SwigPyObject_as_number, /* tp_as_number */ &SwigPyObject_as_number, /* tp_as_number */
0, /* tp_as_sequence */ 0, /* tp_as_sequence */
0, /* tp_as_mapping */ 0, /* tp_as_mapping */
(hashfunc)0, /* tp_hash */ (hashfunc)0, /* tp_hash */
(ternaryfunc)0, /* tp_call */ (ternaryfunc)0, /* tp_call */
(reprfunc)SwigPyObject_str, /* tp_str */ (reprfunc)SwigPyObject_str, /* tp_str */
PyObject_GenericGetAttr, /* tp_getattro */ PyObject_GenericGetAttr, /* tp_getattro */
0, /* tp_setattro */ 0, /* tp_setattro */
0, /* tp_as_buffer */ 0, /* tp_as_buffer */
Py_TPFLAGS_DEFAULT, /* tp_flags */ Py_TPFLAGS_DEFAULT, /* tp_flags */
swigobject_doc, /* tp_doc */ swigobject_doc, /* tp_doc */
0, /* tp_traverse */ 0, /* tp_traverse */
0, /* tp_clear */ 0, /* tp_clear */
(richcmpfunc)SwigPyObject_richcompare, /* tp_richcompare */ (richcmpfunc)SwigPyObject_richcompare,/* tp_richcompare */
0, /* tp_weaklistoffset */ 0, /* tp_weaklistoffset */
#if PY_VERSION_HEX >= 0x02020000 #if PY_VERSION_HEX >= 0x02020000
0, /* tp_iter */ 0, /* tp_iter */
0, /* tp_iternext */ 0, /* tp_iternext */
swigobject_methods, /* tp_methods */ swigobject_methods, /* tp_methods */
0, /* tp_members */ 0, /* tp_members */
0, /* tp_getset */ 0, /* tp_getset */
0, /* tp_base */ 0, /* tp_base */
0, /* tp_dict */ 0, /* tp_dict */
0, /* tp_descr_get */ 0, /* tp_descr_get */
0, /* tp_descr_set */ 0, /* tp_descr_set */
0, /* tp_dictoffset */ 0, /* tp_dictoffset */
0, /* tp_init */ 0, /* tp_init */
0, /* tp_alloc */ 0, /* tp_alloc */
0, /* tp_new */ 0, /* tp_new */
0, /* tp_free */ 0, /* tp_free */
0, /* tp_is_gc */ 0, /* tp_is_gc */
0, /* tp_bases */ 0, /* tp_bases */
0, /* tp_mro */ 0, /* tp_mro */
0, /* tp_cache */ 0, /* tp_cache */
0, /* tp_subclasses */ 0, /* tp_subclasses */
0, /* tp_weaklist */ 0, /* tp_weaklist */
#endif #endif
#if PY_VERSION_HEX >= 0x02030000 #if PY_VERSION_HEX >= 0x02030000
0, /* tp_del */ 0, /* tp_del */
#endif #endif
#if PY_VERSION_HEX >= 0x02060000 #if PY_VERSION_HEX >= 0x02060000
0, /* tp_version */ 0, /* tp_version */
#endif #endif
#ifdef COUNT_ALLOCS #ifdef COUNT_ALLOCS
0,0,0,0 /* tp_alloc -> tp_next */ 0,0,0,0 /* tp_alloc -> tp_next */
#endif #endif
}; };
swigpyobject_type = tmp; swigpyobject_type = tmp;
/* for Python 3 we already assigned ob_type in PyVarObject_HEAD_INIT() */ /* for Python 3 we already assigned ob_type in PyVarObject_HEAD_INIT() */
#if PY_VERSION_HEX < 0x03000000 #if PY_VERSION_HEX < 0x03000000
@ -927,77 +926,76 @@ SwigPyPacked_TypeOnce(void) {
static PyTypeObject swigpypacked_type; static PyTypeObject swigpypacked_type;
static int type_init = 0; static int type_init = 0;
if (!type_init) { if (!type_init) {
const PyTypeObject tmp const PyTypeObject tmp = {
= { /* PyObject header changed in Python 3 */
/* PyObject header changed in Python 3 */
#if PY_VERSION_HEX>=0x03000000 #if PY_VERSION_HEX>=0x03000000
PyVarObject_HEAD_INIT(&PyType_Type, 0) PyVarObject_HEAD_INIT(&PyType_Type, 0)
#else #else
PyObject_HEAD_INIT(NULL) PyObject_HEAD_INIT(NULL)
0, /* ob_size */ 0, /* ob_size */
#endif #endif
(char *)"SwigPyPacked", /* tp_name */ (char *)"SwigPyPacked", /* tp_name */
sizeof(SwigPyPacked), /* tp_basicsize */ sizeof(SwigPyPacked), /* tp_basicsize */
0, /* tp_itemsize */ 0, /* tp_itemsize */
(destructor)SwigPyPacked_dealloc, /* tp_dealloc */ (destructor)SwigPyPacked_dealloc, /* tp_dealloc */
(printfunc)SwigPyPacked_print, /* tp_print */ (printfunc)SwigPyPacked_print, /* tp_print */
(getattrfunc)0, /* tp_getattr */ (getattrfunc)0, /* tp_getattr */
(setattrfunc)0, /* tp_setattr */ (setattrfunc)0, /* tp_setattr */
#if PY_VERSION_HEX>=0x03000000 #if PY_VERSION_HEX>=0x03000000
0, /* tp_reserved in 3.0.1 */ 0, /* tp_reserved in 3.0.1 */
#else #else
(cmpfunc)SwigPyPacked_compare, /* tp_compare */ (cmpfunc)SwigPyPacked_compare, /* tp_compare */
#endif #endif
(reprfunc)SwigPyPacked_repr, /* tp_repr */ (reprfunc)SwigPyPacked_repr, /* tp_repr */
0, /* tp_as_number */ 0, /* tp_as_number */
0, /* tp_as_sequence */ 0, /* tp_as_sequence */
0, /* tp_as_mapping */ 0, /* tp_as_mapping */
(hashfunc)0, /* tp_hash */ (hashfunc)0, /* tp_hash */
(ternaryfunc)0, /* tp_call */ (ternaryfunc)0, /* tp_call */
(reprfunc)SwigPyPacked_str, /* tp_str */ (reprfunc)SwigPyPacked_str, /* tp_str */
PyObject_GenericGetAttr, /* tp_getattro */ PyObject_GenericGetAttr, /* tp_getattro */
0, /* tp_setattro */ 0, /* tp_setattro */
0, /* tp_as_buffer */ 0, /* tp_as_buffer */
Py_TPFLAGS_DEFAULT, /* tp_flags */ Py_TPFLAGS_DEFAULT, /* tp_flags */
swigpacked_doc, /* tp_doc */ swigpacked_doc, /* tp_doc */
0, /* tp_traverse */ 0, /* tp_traverse */
0, /* tp_clear */ 0, /* tp_clear */
0, /* tp_richcompare */ 0, /* tp_richcompare */
0, /* tp_weaklistoffset */ 0, /* tp_weaklistoffset */
#if PY_VERSION_HEX >= 0x02020000 #if PY_VERSION_HEX >= 0x02020000
0, /* tp_iter */ 0, /* tp_iter */
0, /* tp_iternext */ 0, /* tp_iternext */
0, /* tp_methods */ 0, /* tp_methods */
0, /* tp_members */ 0, /* tp_members */
0, /* tp_getset */ 0, /* tp_getset */
0, /* tp_base */ 0, /* tp_base */
0, /* tp_dict */ 0, /* tp_dict */
0, /* tp_descr_get */ 0, /* tp_descr_get */
0, /* tp_descr_set */ 0, /* tp_descr_set */
0, /* tp_dictoffset */ 0, /* tp_dictoffset */
0, /* tp_init */ 0, /* tp_init */
0, /* tp_alloc */ 0, /* tp_alloc */
0, /* tp_new */ 0, /* tp_new */
0, /* tp_free */ 0, /* tp_free */
0, /* tp_is_gc */ 0, /* tp_is_gc */
0, /* tp_bases */ 0, /* tp_bases */
0, /* tp_mro */ 0, /* tp_mro */
0, /* tp_cache */ 0, /* tp_cache */
0, /* tp_subclasses */ 0, /* tp_subclasses */
0, /* tp_weaklist */ 0, /* tp_weaklist */
#endif #endif
#if PY_VERSION_HEX >= 0x02030000 #if PY_VERSION_HEX >= 0x02030000
0, /* tp_del */ 0, /* tp_del */
#endif #endif
#if PY_VERSION_HEX >= 0x02060000 #if PY_VERSION_HEX >= 0x02060000
0, /* tp_version */ 0, /* tp_version */
#endif #endif
#ifdef COUNT_ALLOCS #ifdef COUNT_ALLOCS
0,0,0,0 /* tp_alloc -> tp_next */ 0,0,0,0 /* tp_alloc -> tp_next */
#endif #endif
}; };
swigpypacked_type = tmp; swigpypacked_type = tmp;
/* for Python 3 the ob_type already assigned in PyVarObject_HEAD_INIT() */ /* for Python 3 we already assigned ob_type in PyVarObject_HEAD_INIT() */
#if PY_VERSION_HEX < 0x03000000 #if PY_VERSION_HEX < 0x03000000
swigpypacked_type.ob_type = &PyType_Type; swigpypacked_type.ob_type = &PyType_Type;
#endif #endif