Mercurial > vim
comparison src/if_python3.c @ 19595:1de842e3c329 v8.2.0354
patch 8.2.0354: Python 3.9 does not define _Py_DEC_REFTOTAL
Commit: https://github.com/vim/vim/commit/a65bb53514a1af1ec0dc5c4831dfaef69f139a48
Author: Bram Moolenaar <Bram@vim.org>
Date: Wed Mar 4 22:06:07 2020 +0100
patch 8.2.0354: Python 3.9 does not define _Py_DEC_REFTOTAL
Problem: Python 3.9 does not define _Py_DEC_REFTOTAL. (Zdenek Dohnal)
Solution: Remove it, it was only for debugging.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Wed, 04 Mar 2020 22:15:03 +0100 |
parents | 4a6a412e4565 |
children | 4acb165ed0bc |
comparison
equal
deleted
inserted
replaced
19594:c46c0edd7859 | 19595:1de842e3c329 |
---|---|
601 | 601 |
602 # if PY_VERSION_HEX >= 0x030800f0 | 602 # if PY_VERSION_HEX >= 0x030800f0 |
603 static inline void | 603 static inline void |
604 py3__Py_DECREF(const char *filename UNUSED, int lineno UNUSED, PyObject *op) | 604 py3__Py_DECREF(const char *filename UNUSED, int lineno UNUSED, PyObject *op) |
605 { | 605 { |
606 _Py_DEC_REFTOTAL; | |
607 if (--op->ob_refcnt != 0) | 606 if (--op->ob_refcnt != 0) |
608 { | 607 { |
609 # ifdef Py_REF_DEBUG | 608 # ifdef Py_REF_DEBUG |
610 if (op->ob_refcnt < 0) | 609 if (op->ob_refcnt < 0) |
611 { | 610 { |