From 189c09161261c76371f6f9cd99c83a79a8247712 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20v=2E=20L=C3=B6wis?= Date: Thu, 6 Jan 2011 19:28:31 +0000 Subject: [PATCH] Drop bf_getbuffer/bf_releasebuffer from stable ABI, see #10181. --- Include/typeslots.h | 6 ++++-- Objects/typeslots.inc | 6 +++--- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/Include/typeslots.h b/Include/typeslots.h index 9ab9850e73d..9be8ecdf449 100644 --- a/Include/typeslots.h +++ b/Include/typeslots.h @@ -1,5 +1,7 @@ -#define Py_bf_getbuffer 1 -#define Py_bf_releasebuffer 2 +/* Do not renumber the file; these numbers are part of the stable ABI. */ +/* Disabled, see #10181 */ +#undef Py_bf_getbuffer +#undef Py_bf_releasebuffer #define Py_mp_ass_subscript 3 #define Py_mp_length 4 #define Py_mp_subscript 5 diff --git a/Objects/typeslots.inc b/Objects/typeslots.inc index bd20c293492..d4872f6aadd 100644 --- a/Objects/typeslots.inc +++ b/Objects/typeslots.inc @@ -1,6 +1,6 @@ -/* Generated by typeslots.py $Revision: 87011 $ */ -offsetof(PyHeapTypeObject, as_buffer.bf_getbuffer), -offsetof(PyHeapTypeObject, as_buffer.bf_releasebuffer), +/* Generated by typeslots.py $Revision: 87806 $ */ +0, +0, offsetof(PyHeapTypeObject, as_mapping.mp_ass_subscript), offsetof(PyHeapTypeObject, as_mapping.mp_length), offsetof(PyHeapTypeObject, as_mapping.mp_subscript),