Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 192902
Collapse All | Expand All

(-)vmd-1.8.6/src/py_atomsel.C (-4 / +10 lines)
Lines 25-30 Link Here
25
#include "py_commands.h"
25
#include "py_commands.h"
26
#include "BondSearch.h"
26
#include "BondSearch.h"
27
27
28
#if PY_VERSION_HEX < ((2<<24)|(5<<16))
29
typedef int Py_ssize_t;
30
#endif
31
28
typedef struct {
32
typedef struct {
29
  PyObject_HEAD
33
  PyObject_HEAD
30
  AtomSel *atomSel;
34
  AtomSel *atomSel;
Lines 915-923 Link Here
915
 * Support for mapping protocol 
919
 * Support for mapping protocol 
916
 */
920
 */
917
921
918
static int
922
919
atomselection_length( PyAtomSelObject *a ) {
923
static Py_ssize_t
920
  return a->atomSel->selected;
924
atomselection_length(PyObject *a)
925
{
926
  return ((PyAtomSelObject *)a)->atomSel->selected;
921
}
927
}
922
928
923
// for integer argument, return True or False if index in in selection
929
// for integer argument, return True or False if index in in selection
Lines 935-941 Link Here
935
}
941
}
936
942
937
static PyMappingMethods atomsel_mapping = {
943
static PyMappingMethods atomsel_mapping = {
938
  (inquiry)atomselection_length,
944
  atomselection_length,
939
  (binaryfunc)atomselection_subscript,
945
  (binaryfunc)atomselection_subscript,
940
  0
946
  0
941
};
947
};

Return to bug 192902