~jfpacker/pyeigen/bugfixes-0.1

« back to all changes in this revision

Viewing changes to source/vector/rowvector3f.cpp

  • Committer: Jussi Lepistö
  • Date: 2010-03-26 06:43:38 UTC
  • mfrom: (17.1.3 pyeigen)
  • Revision ID: jussi.lepisto@iki.fi-20100326064338-030cerxhy7rx0m5c
Merge from py3k branch

Show diffs side-by-side

added added

removed removed

Lines of Context:
126
126
#endif
127
127
};
128
128
 
129
 
#if PY_VERSION_HEX >= 0x03000000
130
 
PyMappingMethods RowVector3f_mappingmethods = {
131
 
        (lenfunc)RowVector3f_map_length,                                // mp_length
132
 
        (binaryfunc)RowVector3f_map_subscript,                  // mp_subscript
133
 
        (objobjargproc)RowVector3f_map_ass_subscript,   // mp_ass_subscript
134
 
};
135
 
#endif
136
 
 
137
129
PySequenceMethods RowVector3f_sequencemethods = {
138
130
        (lenfunc)RowVector3f_length,                                    // sq_length
139
131
        0,                                                                                              // sq_concat
144
136
        (ssizessizeobjargproc)RowVector3f_ass_slice,    // sq_ass_slice
145
137
};
146
138
 
 
139
#if PY_VERSION_HEX >= 0x03000000
 
140
PyMappingMethods RowVector3f_mappingmethods = {
 
141
        (lenfunc)RowVector3f_length,                            // mp_length
 
142
        (binaryfunc)RowVector3f_map_subscript,                  // mp_subscript
 
143
        (objobjargproc)RowVector3f_map_ass_subscript,   // mp_ass_subscript
 
144
};
 
145
#endif
 
146
 
147
147
PyTypeObject RowVector3fType = {
148
148
#if PY_VERSION_HEX < 0x03000000
149
149
        PyObject_HEAD_INIT(NULL)
706
706
 
707
707
// Mapping methods
708
708
#if PY_VERSION_HEX >= 0x03000000
709
 
Py_ssize_t RowVector3f_map_length(RowVector3f* self)
710
 
{
711
 
        return RowVector3f_length(self);
712
 
}
713
 
 
714
709
PyObject* RowVector3f_map_subscript(RowVector3f* self, PyObject* index)
715
710
{
716
711
        if(PyIndex_Check(index))