diff options
author | Uwe Hermann <uwe@hermann-uwe.de> | 2011-01-27 22:53:29 +0100 |
---|---|---|
committer | Uwe Hermann <uwe@hermann-uwe.de> | 2011-01-27 22:53:29 +0100 |
commit | 2557ad9d2de490cab14ae0b3a197de2b1c7f9f21 (patch) | |
tree | fd24ca98cb0cf22b63ecd3bb59ba73f466d7b885 /decoders/i2c.py | |
parent | 036e6f672169c63fb304f3842667e3a09879b512 (diff) | |
download | libsigrokdecode-2557ad9d2de490cab14ae0b3a197de2b1c7f9f21.tar.gz libsigrokdecode-2557ad9d2de490cab14ae0b3a197de2b1c7f9f21.zip |
Use Py_XINCREF/Py_XDECREF, not Py_INCREF/Py_DECREF.
They're defined like this in Python.h:
/* Macros to use in case the object pointer may be NULL: */
#define Py_XINCREF(op) if ((op) == NULL) ; else Py_INCREF(op)
#define Py_XDECREF(op) if ((op) == NULL) ; else Py_DECREF(op)
I.e., the performance penalty we take by using Py_XINCREF/Py_XDECREF is
pretty much non-existant.
Diffstat (limited to 'decoders/i2c.py')
0 files changed, 0 insertions, 0 deletions