From 84f6df82f2fbb7e5ce0cd82976b671a180ed3b84 Mon Sep 17 00:00:00 2001 From: mattip Date: Mon, 30 Apr 2018 09:53:41 +0300 Subject: ENH: convert reserved field to version, set new version to 1 So that we can keep track of expansions of the PyUFuncObject. --- numpy/core/include/numpy/ufuncobject.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'numpy/core/include') diff --git a/numpy/core/include/numpy/ufuncobject.h b/numpy/core/include/numpy/ufuncobject.h index a191e5766..7fe5e9f82 100644 --- a/numpy/core/include/numpy/ufuncobject.h +++ b/numpy/core/include/numpy/ufuncobject.h @@ -130,8 +130,8 @@ typedef struct _tagPyUFuncObject { /* The number of elements in 'functions' and 'data' */ int ntypes; - /* Used to be unused field 'check_return' */ - int reserved1; + /* Used to be unused field 'check_return', repurposed in 1.16 */ + int version; /* The name of the ufunc */ const char *name; @@ -210,6 +210,8 @@ typedef struct _tagPyUFuncObject { */ npy_uint32 iter_flags; + /* New in version 1 and above */ + /* * sizes of frozen core dimensions, or -1 if unset */ -- cgit v1.2.1