diff options
author | Stefan van der Walt <stefan@sun.ac.za> | 2008-08-26 05:32:57 +0000 |
---|---|---|
committer | Stefan van der Walt <stefan@sun.ac.za> | 2008-08-26 05:32:57 +0000 |
commit | 971f9fa1216bde41f4b4a3cb40eb1024c7a06433 (patch) | |
tree | c19c103a68df3ba97812fabda15dea3dc5e8e813 /numpy/core | |
parent | 96bcaf6272b1045bd766025163837d3083503f1f (diff) | |
download | numpy-971f9fa1216bde41f4b4a3cb40eb1024c7a06433.tar.gz |
Add NPY_FEATURE_VERSION which can be used to mark minor API version
increments.
Diffstat (limited to 'numpy/core')
-rw-r--r-- | numpy/core/include/numpy/ndarrayobject.h | 21 |
1 files changed, 17 insertions, 4 deletions
diff --git a/numpy/core/include/numpy/ndarrayobject.h b/numpy/core/include/numpy/ndarrayobject.h index 58728c94b..5fdd16463 100644 --- a/numpy/core/include/numpy/ndarrayobject.h +++ b/numpy/core/include/numpy/ndarrayobject.h @@ -38,12 +38,25 @@ extern "C" CONFUSE_EMACS #define NPY_FAIL 0 #define NPY_SUCCEED 1 - /* Helpful to distinguish what is installed */ +/* Binary compatibility version number. This number is increased + whenever the C-API is changed such that binary compatibility is + broken, i.e. whenever a recompile of extension modules is + needed. */ #define NPY_VERSION 0x01000009 - /* Some platforms don't define bool, long long, or long double. - Handle that here. - */ +/* Minor API version. This number is increased whenever a change is + made to the C-API -- whether it breaks binary compatibility or not. + Some changes, such as adding a function pointer to the end of the + function table, can be made without breaking binary compatibility. + In this case, only the NPY_FEATURE_VERSION (*not* NPY_VERSION) + would be increased. Whenever binary compatibility is broken, both + NPY_VERSION and NPY_FEATURE_VERSION should be increased. + */ +#define NPY_FEATURE_VERSION 0x00000001 + +/* Some platforms don't define bool, long long, or long double. + Handle that here. +*/ #define NPY_BYTE_FMT "hhd" #define NPY_UBYTE_FMT "hhu" |