Changeset 770b9e7


Ignore:
Timestamp:
Nov 26, 2015, 2:48:03 PM (9 years ago)
Author:
Nils Philippsen <nils@tiptoe.de>
Branches:
feature/autosink, feature/cnn, feature/cnn_org, feature/constantq, feature/crepe, feature/crepe_org, feature/pitchshift, feature/pydocstrings, feature/timestretch, fix/ffmpeg5, master, pitchshift, sampler, timestretch, yinfft+
Children:
ac7e49b
Parents:
8b8a020
git-author:
Nils Philippsen <nils@tiptoe.de> (11/26/15 00:38:48)
git-committer:
Nils Philippsen <nils@tiptoe.de> (11/26/15 14:48:03)
Message:

Python 3: use Py_TYPE() instead of ob_type member

Location:
python/ext
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • python/ext/aubio-types.h

    r8b8a020 r770b9e7  
    4040#endif
    4141
     42// compat with Python < 2.6
     43#ifndef Py_TYPE
     44#define Py_TYPE(ob) (((PyObject*)(ob))->ob_type)
     45#endif
     46
    4247// special python type for cvec
    4348typedef struct
  • python/ext/aubiowraphell.h

    r8b8a020 r770b9e7  
    2626{ \
    2727  del_aubio_ ## NAME (self->o); \
    28   self->ob_type->tp_free ((PyObject *) self); \
     28  Py_TYPE(self)->tp_free ((PyObject *) self); \
    2929}
    3030
  • python/ext/py-cvec.c

    r8b8a020 r770b9e7  
    6060{
    6161  del_cvec (self->o);
    62   self->ob_type->tp_free ((PyObject *) self);
     62  Py_TYPE(self)->tp_free ((PyObject *) self);
    6363}
    6464
  • python/ext/py-filter.c

    r8b8a020 r770b9e7  
    5656{
    5757  del_aubio_filter (self->o);
    58   self->ob_type->tp_free ((PyObject *) self);
     58  Py_TYPE(self)->tp_free ((PyObject *) self);
    5959}
    6060
Note: See TracChangeset for help on using the changeset viewer.