[h5py] 39/455: First try at automatic exceptions
Ghislain Vaillant
ghisvail-guest at moszumanska.debian.org
Thu Jul 2 18:19:15 UTC 2015
This is an automated email from the git hooks/post-receive script.
ghisvail-guest pushed a commit to annotated tag 1.3.0
in repository h5py.
commit 6c25bbcb0ae28e969362452672be6230e47c828d
Author: andrewcollette <andrew.collette at gmail.com>
Date: Fri Jun 6 04:06:12 2008 +0000
First try at automatic exceptions
---
h5py/h5e.pxd | 38 ++++++++++++++++++++++++++++++++++++--
h5py/python.pxd | 2 ++
setup.py | 2 +-
3 files changed, 39 insertions(+), 3 deletions(-)
diff --git a/h5py/h5e.pxd b/h5py/h5e.pxd
index 591bf85..47f9d4b 100644
--- a/h5py/h5e.pxd
+++ b/h5py/h5e.pxd
@@ -32,8 +32,42 @@ cdef extern from "hdf5.h":
char *desc # /*optional supplied description */
# --- Error handling --------------------------------------------------------
- herr_t H5Eset_auto(void* opt1, void* opt2)
+
+
+ ctypedef enum H5E_major_t:
+ H5E_NONE_MAJOR = 0,
+ H5E_ARGS,
+ H5E_RESOURCE,
+ H5E_INTERNAL,
+ H5E_FILE,
+ H5E_IO,
+ H5E_FUNC,
+ H5E_ATOM,
+ H5E_CACHE,
+ H5E_BTREE,
+ H5E_SYM,
+ H5E_HEAP,
+ H5E_OHDR,
+ H5E_DATATYPE,
+ H5E_DATASPACE,
+ H5E_DATASET,
+ H5E_STORAGE,
+ H5E_PLIST,
+ H5E_ATTR,
+ H5E_PLINE,
+ H5E_EFL,
+ H5E_REFERENCE,
+ H5E_VFL,
+ H5E_TBBT,
+ H5E_TST,
+ H5E_RS,
+ H5E_ERROR,
+ H5E_SLIST
+
+ char *H5Eget_major(H5E_major_t n)
+ ctypedef herr_t (*H5E_auto_t)(void *client_data)
+ herr_t H5Eset_auto(H5E_auto_t func, void *client_data )
+
ctypedef herr_t (*H5E_walk_t)(int n, H5E_error_t *err_desc, client_data)
herr_t H5Ewalk(H5E_direction_t direction, H5E_walk_t func, client_data )
-
diff --git a/h5py/python.pxd b/h5py/python.pxd
index 2185722..3515e10 100644
--- a/h5py/python.pxd
+++ b/h5py/python.pxd
@@ -66,3 +66,5 @@ cdef extern from "Python.h":
+
+
diff --git a/setup.py b/setup.py
index a5d9152..838b4c3 100644
--- a/setup.py
+++ b/setup.py
@@ -177,7 +177,7 @@ except ImportError:
ext_exten = '.pyx'
# Pyrex extension modules
-pyx_modules = ['h5' , 'h5f', 'h5g', 'h5s', 'h5t',
+pyx_modules = ['h5e', 'h5' , 'h5f', 'h5g', 'h5s', 'h5t',
'h5d', 'h5a', 'h5p', 'h5z', 'h5i', 'h5r']
pyx_src_path = 'h5py'
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/h5py.git
More information about the debian-science-commits
mailing list