diff options
author | David Cournapeau <cournape@gmail.com> | 2009-10-08 13:44:42 +0000 |
---|---|---|
committer | David Cournapeau <cournape@gmail.com> | 2009-10-08 13:44:42 +0000 |
commit | 06c83940878af1b3dbf0d2d14fd382764a29aa27 (patch) | |
tree | 9996f975f85adbb3890335782ce4aca877ddfd07 | |
parent | eee844a61a5067f03f1cdf6c7ece09a72be3bfca (diff) | |
download | numpy-06c83940878af1b3dbf0d2d14fd382764a29aa27.tar.gz |
ENH: separate type list into old and new list.
-rw-r--r-- | numpy/core/code_generators/generate_numpy_api.py | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/numpy/core/code_generators/generate_numpy_api.py b/numpy/core/code_generators/generate_numpy_api.py index 81ff6ea27..3179b0b70 100644 --- a/numpy/core/code_generators/generate_numpy_api.py +++ b/numpy/core/code_generators/generate_numpy_api.py @@ -1,13 +1,19 @@ import os import genapi -types = ['Generic','Number','Integer','SignedInteger','UnsignedInteger', - 'Inexact', 'TimeInteger', +# new_types are types added later on, for which the offset in the API function +# pointer array should be different (to avoid breaking the ABI). +new_types = ['TimeInteger', 'Datetime', 'Timedelta'] + +old_types = ['Generic','Number','Integer','SignedInteger','UnsignedInteger', + 'Inexact', 'Floating', 'ComplexFloating', 'Flexible', 'Character', 'Byte','Short','Int', 'Long', 'LongLong', 'UByte', 'UShort', 'UInt', 'ULong', 'ULongLong', 'Float', 'Double', 'LongDouble', 'CFloat', 'CDouble', 'CLongDouble', 'Object', 'String', 'Unicode', - 'Void', 'Datetime', 'Timedelta'] + 'Void'] + +types = old_types + new_types h_template = r""" #ifdef _MULTIARRAYMODULE |