~ubuntu-branches/ubuntu/utopic/h5py/utopic

« back to all changes in this revision

Viewing changes to h5py/h5fd.c

  • Committer: Bazaar Package Importer
  • Author(s): Soeren Sonnenburg
  • Date: 2011-01-12 14:48:19 UTC
  • mfrom: (1.1.3 upstream)
  • Revision ID: james.westby@ubuntu.com-20110112144819-9kbgh192yngf6o05
Tags: 1.3.1-1
New upstream version.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* Generated by Cython 0.12 on Sun Mar 14 21:50:15 2010 */
 
1
/* Generated by Cython 0.12.1 on Tue Dec 21 22:32:12 2010 */
2
2
 
3
3
#define PY_SSIZE_T_CLEAN
4
4
#include "Python.h"
6
6
#ifndef Py_PYTHON_H
7
7
    #error Python headers needed to compile C extensions, please install development version of Python.
8
8
#else
 
9
 
9
10
#ifndef PY_LONG_LONG
10
11
  #define PY_LONG_LONG LONG_LONG
11
12
#endif
17
18
  #define PyDict_CheckExact(op) (Py_TYPE(op) == &PyDict_Type)
18
19
  #define PyDict_Contains(d,o)   PySequence_Contains(d,o)
19
20
#endif
 
21
 
20
22
#if PY_VERSION_HEX < 0x02050000
21
23
  typedef int Py_ssize_t;
22
24
  #define PY_SSIZE_T_MAX INT_MAX
26
28
  #define PyInt_AsSsize_t(o)   PyInt_AsLong(o)
27
29
  #define PyNumber_Index(o)    PyNumber_Int(o)
28
30
  #define PyIndex_Check(o)     PyNumber_Check(o)
 
31
  #define PyErr_WarnEx(category, message, stacklevel) PyErr_Warn(category, message)
29
32
#endif
 
33
 
30
34
#if PY_VERSION_HEX < 0x02060000
31
35
  #define Py_REFCNT(ob) (((PyObject*)(ob))->ob_refcnt)
32
36
  #define Py_TYPE(ob)   (((PyObject*)(ob))->ob_type)
36
40
  #define PyType_Modified(t)
37
41
 
38
42
  typedef struct {
39
 
       void *buf;
40
 
       PyObject *obj;
41
 
       Py_ssize_t len;
42
 
       Py_ssize_t itemsize;
43
 
       int readonly;
44
 
       int ndim;
45
 
       char *format;
46
 
       Py_ssize_t *shape;
47
 
       Py_ssize_t *strides;
48
 
       Py_ssize_t *suboffsets;
49
 
       void *internal;
 
43
     void *buf;
 
44
     PyObject *obj;
 
45
     Py_ssize_t len;
 
46
     Py_ssize_t itemsize;
 
47
     int readonly;
 
48
     int ndim;
 
49
     char *format;
 
50
     Py_ssize_t *shape;
 
51
     Py_ssize_t *strides;
 
52
     Py_ssize_t *suboffsets;
 
53
     void *internal;
50
54
  } Py_buffer;
51
55
 
52
56
  #define PyBUF_SIMPLE 0
60
64
  #define PyBUF_INDIRECT (0x0100 | PyBUF_STRIDES)
61
65
 
62
66
#endif
 
67
 
63
68
#if PY_MAJOR_VERSION < 3
64
69
  #define __Pyx_BUILTIN_MODULE_NAME "__builtin__"
65
70
#else
66
71
  #define __Pyx_BUILTIN_MODULE_NAME "builtins"
67
72
#endif
 
73
 
68
74
#if PY_MAJOR_VERSION >= 3
69
75
  #define Py_TPFLAGS_CHECKTYPES 0
70
76
  #define Py_TPFLAGS_HAVE_INDEX 0
71
77
#endif
 
78
 
72
79
#if (PY_VERSION_HEX < 0x02060000) || (PY_MAJOR_VERSION >= 3)
73
80
  #define Py_TPFLAGS_HAVE_NEWBUFFER 0
74
81
#endif
 
82
 
75
83
#if PY_MAJOR_VERSION >= 3
76
84
  #define PyBaseString_Type            PyUnicode_Type
77
85
  #define PyString_Type                PyUnicode_Type
80
88
  #define PyBytes_Type                 PyString_Type
81
89
  #define PyBytes_CheckExact           PyString_CheckExact
82
90
#endif
 
91
 
83
92
#if PY_MAJOR_VERSION >= 3
84
93
  #define PyInt_Type                   PyLong_Type
85
94
  #define PyInt_Check(op)              PyLong_Check(op)
99
108
#else
100
109
  #define __Pyx_PyNumber_Divide(x,y)         PyNumber_Divide(x,y)
101
110
  #define __Pyx_PyNumber_InPlaceDivide(x,y)  PyNumber_InPlaceDivide(x,y)
 
111
 
102
112
#endif
 
113
 
103
114
#if PY_MAJOR_VERSION >= 3
104
115
  #define PyMethod_New(func, self, klass) PyInstanceMethod_New(func)
105
116
#endif
 
117
 
106
118
#if !defined(WIN32) && !defined(MS_WINDOWS)
107
119
  #ifndef __stdcall
108
120
    #define __stdcall
116
128
#else
117
129
  #define _USE_MATH_DEFINES
118
130
#endif
 
131
 
119
132
#if PY_VERSION_HEX < 0x02050000
120
133
  #define __Pyx_GetAttrString(o,n)   PyObject_GetAttrString((o),((char *)(n)))
121
134
  #define __Pyx_SetAttrString(o,n,a) PyObject_SetAttrString((o),((char *)(n)),(a))
125
138
  #define __Pyx_SetAttrString(o,n,a) PyObject_SetAttrString((o),(n),(a))
126
139
  #define __Pyx_DelAttrString(o,n)   PyObject_DelAttrString((o),(n))
127
140
#endif
 
141
 
128
142
#if PY_VERSION_HEX < 0x02050000
129
143
  #define __Pyx_NAMESTR(n) ((char *)(n))
130
144
  #define __Pyx_DOCSTR(n)  ((char *)(n))
148
162
#include "lzf_filter.h"
149
163
#include "hdf5.h"
150
164
 
151
 
#ifdef __GNUC__
152
 
#define INLINE __inline__
153
 
#elif _WIN32
154
 
#define INLINE __inline
155
 
#else
156
 
#define INLINE 
 
165
#ifndef CYTHON_INLINE
 
166
  #if defined(__GNUC__)
 
167
    #define CYTHON_INLINE __inline__
 
168
  #elif defined(_MSC_VER)
 
169
    #define CYTHON_INLINE __inline
 
170
  #else
 
171
    #define CYTHON_INLINE 
 
172
  #endif
157
173
#endif
158
174
 
159
175
typedef struct {PyObject **p; char *s; const long n; const char* encoding; const char is_unicode; const char is_str; const char intern; } __Pyx_StringTabEntry; /*proto*/
175
191
#define __Pyx_PyBytes_AsUString(s)        ((unsigned char*) __Pyx_PyBytes_AsString(s))
176
192
 
177
193
#define __Pyx_PyBool_FromLong(b) ((b) ? (Py_INCREF(Py_True), Py_True) : (Py_INCREF(Py_False), Py_False))
178
 
static INLINE int __Pyx_PyObject_IsTrue(PyObject*);
179
 
static INLINE PyObject* __Pyx_PyNumber_Int(PyObject* x);
 
194
static CYTHON_INLINE int __Pyx_PyObject_IsTrue(PyObject*);
 
195
static CYTHON_INLINE PyObject* __Pyx_PyNumber_Int(PyObject* x);
180
196
 
181
197
#if !defined(T_PYSSIZET)
182
198
#if PY_VERSION_HEX < 0x02050000
240
256
#endif
241
257
#endif
242
258
 
243
 
static INLINE Py_ssize_t __Pyx_PyIndex_AsSsize_t(PyObject*);
244
 
static INLINE PyObject * __Pyx_PyInt_FromSize_t(size_t);
245
 
static INLINE size_t __Pyx_PyInt_AsSize_t(PyObject*);
 
259
static CYTHON_INLINE Py_ssize_t __Pyx_PyIndex_AsSsize_t(PyObject*);
 
260
static CYTHON_INLINE PyObject * __Pyx_PyInt_FromSize_t(size_t);
 
261
static CYTHON_INLINE size_t __Pyx_PyInt_AsSize_t(PyObject*);
246
262
 
247
263
#define __pyx_PyFloat_AsDouble(x) (PyFloat_CheckExact(x) ? PyFloat_AS_DOUBLE(x) : PyFloat_AsDouble(x))
248
264
 
274
290
 
275
291
/* Type declarations */
276
292
 
277
 
/* "/home/tachyon/slave/unix-release/build/h5py/h5.pxd":15
 
293
/* "/home/tachyon/h5py/h5py/h5.pxd":15
278
294
 * include "defs.pxd"
279
295
 * 
280
296
 * cdef class H5PYConfig:             # <<<<<<<<<<<<<<
294
310
  PyObject *THREADS;
295
311
};
296
312
 
297
 
/* "/home/tachyon/slave/unix-release/build/h5py/h5.pxd":28
298
 
 * cpdef H5PYConfig get_config()
 
313
/* "/home/tachyon/h5py/h5py/h5.pxd":34
 
314
 *     cdef readonly int locked
299
315
 * 
300
316
 * cdef class ObjectID:             # <<<<<<<<<<<<<<
301
317
 * 
305
321
struct __pyx_obj_4h5py_2h5_ObjectID {
306
322
  PyObject_HEAD
307
323
  PyObject *__weakref__;
308
 
  hid_t id;
309
 
  int _locked;
 
324
  struct __pyx_obj_4h5py_2h5_IDProxy *_proxy;
310
325
  PyObject *_hash;
311
326
};
312
327
 
313
 
/* "/home/tachyon/slave/unix-release/build/h5py/h5.pxd":35
 
328
/* "/home/tachyon/h5py/h5py/h5.pxd":40
314
329
 *     cdef object _hash
315
330
 * 
316
331
 * cdef class SmartStruct:             # <<<<<<<<<<<<<<
324
339
  PyObject *_title;
325
340
};
326
341
 
 
342
/* "/home/tachyon/h5py/h5py/h5.pxd":28
 
343
 * cpdef H5PYConfig get_config()
 
344
 * 
 
345
 * cdef class IDProxy:             # <<<<<<<<<<<<<<
 
346
 * 
 
347
 *     cdef object __weakref__
 
348
 */
 
349
 
 
350
struct __pyx_obj_4h5py_2h5_IDProxy {
 
351
  PyObject_HEAD
 
352
  PyObject *__weakref__;
 
353
  hid_t id;
 
354
  int locked;
 
355
};
 
356
 
327
357
#ifndef CYTHON_REFNANNY
328
358
  #define CYTHON_REFNANNY 0
329
359
#endif
370
400
#define __Pyx_XGIVEREF(r) do { if((r) != NULL) {__Pyx_GIVEREF(r);} } while(0)
371
401
#define __Pyx_XGOTREF(r) do { if((r) != NULL) {__Pyx_GOTREF(r);} } while(0)
372
402
 
373
 
static INLINE PyObject *__Pyx_PyInt_to_py_hid_t(hid_t);
374
 
 
375
 
static INLINE unsigned char __Pyx_PyInt_AsUnsignedChar(PyObject *);
376
 
 
377
 
static INLINE unsigned short __Pyx_PyInt_AsUnsignedShort(PyObject *);
378
 
 
379
 
static INLINE unsigned int __Pyx_PyInt_AsUnsignedInt(PyObject *);
380
 
 
381
 
static INLINE char __Pyx_PyInt_AsChar(PyObject *);
382
 
 
383
 
static INLINE short __Pyx_PyInt_AsShort(PyObject *);
384
 
 
385
 
static INLINE int __Pyx_PyInt_AsInt(PyObject *);
386
 
 
387
 
static INLINE signed char __Pyx_PyInt_AsSignedChar(PyObject *);
388
 
 
389
 
static INLINE signed short __Pyx_PyInt_AsSignedShort(PyObject *);
390
 
 
391
 
static INLINE signed int __Pyx_PyInt_AsSignedInt(PyObject *);
392
 
 
393
 
static INLINE unsigned long __Pyx_PyInt_AsUnsignedLong(PyObject *);
394
 
 
395
 
static INLINE unsigned PY_LONG_LONG __Pyx_PyInt_AsUnsignedLongLong(PyObject *);
396
 
 
397
 
static INLINE long __Pyx_PyInt_AsLong(PyObject *);
398
 
 
399
 
static INLINE PY_LONG_LONG __Pyx_PyInt_AsLongLong(PyObject *);
400
 
 
401
 
static INLINE signed long __Pyx_PyInt_AsSignedLong(PyObject *);
402
 
 
403
 
static INLINE signed PY_LONG_LONG __Pyx_PyInt_AsSignedLongLong(PyObject *);
404
 
 
405
 
static PyTypeObject *__Pyx_ImportType(const char *module_name, const char *class_name, long size);  /*proto*/
 
403
static CYTHON_INLINE PyObject *__Pyx_PyInt_to_py_hid_t(hid_t);
 
404
 
 
405
static CYTHON_INLINE unsigned char __Pyx_PyInt_AsUnsignedChar(PyObject *);
 
406
 
 
407
static CYTHON_INLINE unsigned short __Pyx_PyInt_AsUnsignedShort(PyObject *);
 
408
 
 
409
static CYTHON_INLINE unsigned int __Pyx_PyInt_AsUnsignedInt(PyObject *);
 
410
 
 
411
static CYTHON_INLINE char __Pyx_PyInt_AsChar(PyObject *);
 
412
 
 
413
static CYTHON_INLINE short __Pyx_PyInt_AsShort(PyObject *);
 
414
 
 
415
static CYTHON_INLINE int __Pyx_PyInt_AsInt(PyObject *);
 
416
 
 
417
static CYTHON_INLINE signed char __Pyx_PyInt_AsSignedChar(PyObject *);
 
418
 
 
419
static CYTHON_INLINE signed short __Pyx_PyInt_AsSignedShort(PyObject *);
 
420
 
 
421
static CYTHON_INLINE signed int __Pyx_PyInt_AsSignedInt(PyObject *);
 
422
 
 
423
static CYTHON_INLINE unsigned long __Pyx_PyInt_AsUnsignedLong(PyObject *);
 
424
 
 
425
static CYTHON_INLINE unsigned PY_LONG_LONG __Pyx_PyInt_AsUnsignedLongLong(PyObject *);
 
426
 
 
427
static CYTHON_INLINE long __Pyx_PyInt_AsLong(PyObject *);
 
428
 
 
429
static CYTHON_INLINE PY_LONG_LONG __Pyx_PyInt_AsLongLong(PyObject *);
 
430
 
 
431
static CYTHON_INLINE signed long __Pyx_PyInt_AsSignedLong(PyObject *);
 
432
 
 
433
static CYTHON_INLINE signed PY_LONG_LONG __Pyx_PyInt_AsSignedLongLong(PyObject *);
 
434
 
 
435
static PyTypeObject *__Pyx_ImportType(const char *module_name, const char *class_name, long size, int strict);  /*proto*/
406
436
 
407
437
static PyObject *__Pyx_ImportModule(const char *name); /*proto*/
408
438
 
414
444
/* Module declarations from h5py.h5 */
415
445
 
416
446
static PyTypeObject *__pyx_ptype_4h5py_2h5_H5PYConfig = 0;
 
447
static PyTypeObject *__pyx_ptype_4h5py_2h5_IDProxy = 0;
417
448
static PyTypeObject *__pyx_ptype_4h5py_2h5_ObjectID = 0;
418
449
static PyTypeObject *__pyx_ptype_4h5py_2h5_SmartStruct = 0;
419
450
static struct __pyx_obj_4h5py_2h5_H5PYConfig *(*__pyx_f_4h5py_2h5_get_config)(int __pyx_skip_dispatch); /*proto*/
634
665
  /*--- Function export code ---*/
635
666
  /*--- Type init code ---*/
636
667
  /*--- Type import code ---*/
637
 
  __pyx_ptype_4h5py_2h5_H5PYConfig = __Pyx_ImportType("h5py.h5", "H5PYConfig", sizeof(struct __pyx_obj_4h5py_2h5_H5PYConfig)); if (unlikely(!__pyx_ptype_4h5py_2h5_H5PYConfig)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 15; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
638
 
  __pyx_ptype_4h5py_2h5_ObjectID = __Pyx_ImportType("h5py.h5", "ObjectID", sizeof(struct __pyx_obj_4h5py_2h5_ObjectID)); if (unlikely(!__pyx_ptype_4h5py_2h5_ObjectID)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 28; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
639
 
  __pyx_ptype_4h5py_2h5_SmartStruct = __Pyx_ImportType("h5py.h5", "SmartStruct", sizeof(struct __pyx_obj_4h5py_2h5_SmartStruct)); if (unlikely(!__pyx_ptype_4h5py_2h5_SmartStruct)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 35; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
668
  __pyx_ptype_4h5py_2h5_H5PYConfig = __Pyx_ImportType("h5py.h5", "H5PYConfig", sizeof(struct __pyx_obj_4h5py_2h5_H5PYConfig), 1); if (unlikely(!__pyx_ptype_4h5py_2h5_H5PYConfig)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 15; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
669
  __pyx_ptype_4h5py_2h5_IDProxy = __Pyx_ImportType("h5py.h5", "IDProxy", sizeof(struct __pyx_obj_4h5py_2h5_IDProxy), 1); if (unlikely(!__pyx_ptype_4h5py_2h5_IDProxy)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 28; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
670
  __pyx_ptype_4h5py_2h5_ObjectID = __Pyx_ImportType("h5py.h5", "ObjectID", sizeof(struct __pyx_obj_4h5py_2h5_ObjectID), 1); if (unlikely(!__pyx_ptype_4h5py_2h5_ObjectID)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 34; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
671
  __pyx_ptype_4h5py_2h5_SmartStruct = __Pyx_ImportType("h5py.h5", "SmartStruct", sizeof(struct __pyx_obj_4h5py_2h5_SmartStruct), 1); if (unlikely(!__pyx_ptype_4h5py_2h5_SmartStruct)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 40; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
640
672
  /*--- Function import code ---*/
641
673
  __pyx_t_1 = __Pyx_ImportModule("h5py.h5"); if (!__pyx_t_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
642
674
  if (__Pyx_ImportFunction(__pyx_t_1, "get_config", (void (**)(void))&__pyx_f_4h5py_2h5_get_config, "struct __pyx_obj_4h5py_2h5_H5PYConfig *(int __pyx_skip_dispatch)") < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
644
676
  Py_DECREF(__pyx_t_1); __pyx_t_1 = 0;
645
677
  /*--- Execution code ---*/
646
678
 
647
 
  /* "/home/tachyon/slave/unix-release/build/h5py/h5fd.pyx":23
 
679
  /* "/home/tachyon/h5py/h5py/h5fd.pyx":23
648
680
 * 
649
681
 * from h5 cimport init_hdf5
650
682
 * init_hdf5()             # <<<<<<<<<<<<<<
653
685
 */
654
686
  __pyx_t_2 = __pyx_f_4h5py_2h5_init_hdf5(); if (unlikely(__pyx_t_2 == -1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 23; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
655
687
 
656
 
  /* "/home/tachyon/slave/unix-release/build/h5py/h5fd.pyx":27
 
688
  /* "/home/tachyon/h5py/h5py/h5fd.pyx":27
657
689
 * # === Multi-file driver =======================================================
658
690
 * 
659
691
 * MEM_DEFAULT = H5FD_MEM_DEFAULT             # <<<<<<<<<<<<<<
665
697
  if (PyObject_SetAttr(__pyx_m, __pyx_n_s__MEM_DEFAULT, __pyx_t_3) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 27; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
666
698
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
667
699
 
668
 
  /* "/home/tachyon/slave/unix-release/build/h5py/h5fd.pyx":28
 
700
  /* "/home/tachyon/h5py/h5py/h5fd.pyx":28
669
701
 * 
670
702
 * MEM_DEFAULT = H5FD_MEM_DEFAULT
671
703
 * MEM_SUPER = H5FD_MEM_SUPER             # <<<<<<<<<<<<<<
677
709
  if (PyObject_SetAttr(__pyx_m, __pyx_n_s__MEM_SUPER, __pyx_t_3) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 28; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
678
710
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
679
711
 
680
 
  /* "/home/tachyon/slave/unix-release/build/h5py/h5fd.pyx":29
 
712
  /* "/home/tachyon/h5py/h5py/h5fd.pyx":29
681
713
 * MEM_DEFAULT = H5FD_MEM_DEFAULT
682
714
 * MEM_SUPER = H5FD_MEM_SUPER
683
715
 * MEM_BTREE = H5FD_MEM_BTREE             # <<<<<<<<<<<<<<
689
721
  if (PyObject_SetAttr(__pyx_m, __pyx_n_s__MEM_BTREE, __pyx_t_3) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 29; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
690
722
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
691
723
 
692
 
  /* "/home/tachyon/slave/unix-release/build/h5py/h5fd.pyx":30
 
724
  /* "/home/tachyon/h5py/h5py/h5fd.pyx":30
693
725
 * MEM_SUPER = H5FD_MEM_SUPER
694
726
 * MEM_BTREE = H5FD_MEM_BTREE
695
727
 * MEM_DRAW = H5FD_MEM_DRAW             # <<<<<<<<<<<<<<
701
733
  if (PyObject_SetAttr(__pyx_m, __pyx_n_s__MEM_DRAW, __pyx_t_3) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 30; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
702
734
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
703
735
 
704
 
  /* "/home/tachyon/slave/unix-release/build/h5py/h5fd.pyx":31
 
736
  /* "/home/tachyon/h5py/h5py/h5fd.pyx":31
705
737
 * MEM_BTREE = H5FD_MEM_BTREE
706
738
 * MEM_DRAW = H5FD_MEM_DRAW
707
739
 * MEM_GHEAP = H5FD_MEM_GHEAP             # <<<<<<<<<<<<<<
713
745
  if (PyObject_SetAttr(__pyx_m, __pyx_n_s__MEM_GHEAP, __pyx_t_3) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 31; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
714
746
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
715
747
 
716
 
  /* "/home/tachyon/slave/unix-release/build/h5py/h5fd.pyx":32
 
748
  /* "/home/tachyon/h5py/h5py/h5fd.pyx":32
717
749
 * MEM_DRAW = H5FD_MEM_DRAW
718
750
 * MEM_GHEAP = H5FD_MEM_GHEAP
719
751
 * MEM_LHEAP = H5FD_MEM_LHEAP             # <<<<<<<<<<<<<<
725
757
  if (PyObject_SetAttr(__pyx_m, __pyx_n_s__MEM_LHEAP, __pyx_t_3) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 32; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
726
758
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
727
759
 
728
 
  /* "/home/tachyon/slave/unix-release/build/h5py/h5fd.pyx":33
 
760
  /* "/home/tachyon/h5py/h5py/h5fd.pyx":33
729
761
 * MEM_GHEAP = H5FD_MEM_GHEAP
730
762
 * MEM_LHEAP = H5FD_MEM_LHEAP
731
763
 * MEM_OHDR = H5FD_MEM_OHDR             # <<<<<<<<<<<<<<
737
769
  if (PyObject_SetAttr(__pyx_m, __pyx_n_s__MEM_OHDR, __pyx_t_3) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 33; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
738
770
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
739
771
 
740
 
  /* "/home/tachyon/slave/unix-release/build/h5py/h5fd.pyx":34
 
772
  /* "/home/tachyon/h5py/h5py/h5fd.pyx":34
741
773
 * MEM_LHEAP = H5FD_MEM_LHEAP
742
774
 * MEM_OHDR = H5FD_MEM_OHDR
743
775
 * MEM_NTYPES = H5FD_MEM_NTYPES             # <<<<<<<<<<<<<<
749
781
  if (PyObject_SetAttr(__pyx_m, __pyx_n_s__MEM_NTYPES, __pyx_t_3) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 34; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
750
782
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
751
783
 
752
 
  /* "/home/tachyon/slave/unix-release/build/h5py/h5fd.pyx":38
 
784
  /* "/home/tachyon/h5py/h5py/h5fd.pyx":38
753
785
 * # === Driver types ============================================================
754
786
 * 
755
787
 * CORE = H5FD_CORE             # <<<<<<<<<<<<<<
761
793
  if (PyObject_SetAttr(__pyx_m, __pyx_n_s__CORE, __pyx_t_3) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 38; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
762
794
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
763
795
 
764
 
  /* "/home/tachyon/slave/unix-release/build/h5py/h5fd.pyx":39
 
796
  /* "/home/tachyon/h5py/h5py/h5fd.pyx":39
765
797
 * 
766
798
 * CORE = H5FD_CORE
767
799
 * FAMILY = H5FD_FAMILY             # <<<<<<<<<<<<<<
773
805
  if (PyObject_SetAttr(__pyx_m, __pyx_n_s__FAMILY, __pyx_t_3) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 39; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
774
806
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
775
807
 
776
 
  /* "/home/tachyon/slave/unix-release/build/h5py/h5fd.pyx":40
 
808
  /* "/home/tachyon/h5py/h5py/h5fd.pyx":40
777
809
 * CORE = H5FD_CORE
778
810
 * FAMILY = H5FD_FAMILY
779
811
 * LOG = H5FD_LOG             # <<<<<<<<<<<<<<
785
817
  if (PyObject_SetAttr(__pyx_m, __pyx_n_s__LOG, __pyx_t_3) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 40; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
786
818
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
787
819
 
788
 
  /* "/home/tachyon/slave/unix-release/build/h5py/h5fd.pyx":41
 
820
  /* "/home/tachyon/h5py/h5py/h5fd.pyx":41
789
821
 * FAMILY = H5FD_FAMILY
790
822
 * LOG = H5FD_LOG
791
823
 * MPIO = H5FD_MPIO             # <<<<<<<<<<<<<<
797
829
  if (PyObject_SetAttr(__pyx_m, __pyx_n_s__MPIO, __pyx_t_3) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 41; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
798
830
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
799
831
 
800
 
  /* "/home/tachyon/slave/unix-release/build/h5py/h5fd.pyx":42
 
832
  /* "/home/tachyon/h5py/h5py/h5fd.pyx":42
801
833
 * LOG = H5FD_LOG
802
834
 * MPIO = H5FD_MPIO
803
835
 * MULTI = H5FD_MULTI             # <<<<<<<<<<<<<<
809
841
  if (PyObject_SetAttr(__pyx_m, __pyx_n_s__MULTI, __pyx_t_3) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 42; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
810
842
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
811
843
 
812
 
  /* "/home/tachyon/slave/unix-release/build/h5py/h5fd.pyx":43
 
844
  /* "/home/tachyon/h5py/h5py/h5fd.pyx":43
813
845
 * MPIO = H5FD_MPIO
814
846
 * MULTI = H5FD_MULTI
815
847
 * SEC2 = H5FD_SEC2             # <<<<<<<<<<<<<<
821
853
  if (PyObject_SetAttr(__pyx_m, __pyx_n_s__SEC2, __pyx_t_3) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 43; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
822
854
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
823
855
 
824
 
  /* "/home/tachyon/slave/unix-release/build/h5py/h5fd.pyx":44
 
856
  /* "/home/tachyon/h5py/h5py/h5fd.pyx":44
825
857
 * MULTI = H5FD_MULTI
826
858
 * SEC2 = H5FD_SEC2
827
859
 * STDIO = H5FD_STDIO             # <<<<<<<<<<<<<<
833
865
  if (PyObject_SetAttr(__pyx_m, __pyx_n_s__STDIO, __pyx_t_3) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 44; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
834
866
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
835
867
 
836
 
  /* "/home/tachyon/slave/unix-release/build/h5py/h5fd.pyx":48
 
868
  /* "/home/tachyon/h5py/h5py/h5fd.pyx":48
837
869
 *     WINDOWS = H5FD_WINDOWS
838
870
 * ELSE:
839
871
 *     WINDOWS = -1             # <<<<<<<<<<<<<<
842
874
 */
843
875
  if (PyObject_SetAttr(__pyx_m, __pyx_n_s__WINDOWS, __pyx_int_neg_1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 48; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
844
876
 
845
 
  /* "/home/tachyon/slave/unix-release/build/h5py/h5fd.pyx":52
 
877
  /* "/home/tachyon/h5py/h5py/h5fd.pyx":52
846
878
 * # === Logging driver ==========================================================
847
879
 * 
848
880
 * LOG_LOC_READ  = H5FD_LOG_LOC_READ   # 0x0001             # <<<<<<<<<<<<<<
854
886
  if (PyObject_SetAttr(__pyx_m, __pyx_n_s__LOG_LOC_READ, __pyx_t_3) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 52; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
855
887
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
856
888
 
857
 
  /* "/home/tachyon/slave/unix-release/build/h5py/h5fd.pyx":53
 
889
  /* "/home/tachyon/h5py/h5py/h5fd.pyx":53
858
890
 * 
859
891
 * LOG_LOC_READ  = H5FD_LOG_LOC_READ   # 0x0001
860
892
 * LOG_LOC_WRITE = H5FD_LOG_LOC_WRITE  # 0x0002             # <<<<<<<<<<<<<<
866
898
  if (PyObject_SetAttr(__pyx_m, __pyx_n_s__LOG_LOC_WRITE, __pyx_t_3) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 53; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
867
899
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
868
900
 
869
 
  /* "/home/tachyon/slave/unix-release/build/h5py/h5fd.pyx":54
 
901
  /* "/home/tachyon/h5py/h5py/h5fd.pyx":54
870
902
 * LOG_LOC_READ  = H5FD_LOG_LOC_READ   # 0x0001
871
903
 * LOG_LOC_WRITE = H5FD_LOG_LOC_WRITE  # 0x0002
872
904
 * LOG_LOC_SEEK  = H5FD_LOG_LOC_SEEK   # 0x0004             # <<<<<<<<<<<<<<
878
910
  if (PyObject_SetAttr(__pyx_m, __pyx_n_s__LOG_LOC_SEEK, __pyx_t_3) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 54; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
879
911
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
880
912
 
881
 
  /* "/home/tachyon/slave/unix-release/build/h5py/h5fd.pyx":55
 
913
  /* "/home/tachyon/h5py/h5py/h5fd.pyx":55
882
914
 * LOG_LOC_WRITE = H5FD_LOG_LOC_WRITE  # 0x0002
883
915
 * LOG_LOC_SEEK  = H5FD_LOG_LOC_SEEK   # 0x0004
884
916
 * LOG_LOC_IO    = H5FD_LOG_LOC_IO     # (H5FD_LOG_LOC_READ|H5FD_LOG_LOC_WRITE|H5FD_LOG_LOC_SEEK)             # <<<<<<<<<<<<<<
890
922
  if (PyObject_SetAttr(__pyx_m, __pyx_n_s__LOG_LOC_IO, __pyx_t_3) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 55; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
891
923
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
892
924
 
893
 
  /* "/home/tachyon/slave/unix-release/build/h5py/h5fd.pyx":58
 
925
  /* "/home/tachyon/h5py/h5py/h5fd.pyx":58
894
926
 * 
895
927
 * # Flags for tracking number of times each byte is read/written
896
928
 * LOG_FILE_READ = H5FD_LOG_FILE_READ  # 0x0008             # <<<<<<<<<<<<<<
902
934
  if (PyObject_SetAttr(__pyx_m, __pyx_n_s__LOG_FILE_READ, __pyx_t_3) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 58; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
903
935
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
904
936
 
905
 
  /* "/home/tachyon/slave/unix-release/build/h5py/h5fd.pyx":59
 
937
  /* "/home/tachyon/h5py/h5py/h5fd.pyx":59
906
938
 * # Flags for tracking number of times each byte is read/written
907
939
 * LOG_FILE_READ = H5FD_LOG_FILE_READ  # 0x0008
908
940
 * LOG_FILE_WRITE= H5FD_LOG_FILE_WRITE # 0x0010             # <<<<<<<<<<<<<<
914
946
  if (PyObject_SetAttr(__pyx_m, __pyx_n_s__LOG_FILE_WRITE, __pyx_t_3) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 59; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
915
947
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
916
948
 
917
 
  /* "/home/tachyon/slave/unix-release/build/h5py/h5fd.pyx":60
 
949
  /* "/home/tachyon/h5py/h5py/h5fd.pyx":60
918
950
 * LOG_FILE_READ = H5FD_LOG_FILE_READ  # 0x0008
919
951
 * LOG_FILE_WRITE= H5FD_LOG_FILE_WRITE # 0x0010
920
952
 * LOG_FILE_IO   = H5FD_LOG_FILE_IO    # (H5FD_LOG_FILE_READ|H5FD_LOG_FILE_WRITE)             # <<<<<<<<<<<<<<
926
958
  if (PyObject_SetAttr(__pyx_m, __pyx_n_s__LOG_FILE_IO, __pyx_t_3) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 60; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
927
959
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
928
960
 
929
 
  /* "/home/tachyon/slave/unix-release/build/h5py/h5fd.pyx":63
 
961
  /* "/home/tachyon/h5py/h5py/h5fd.pyx":63
930
962
 * 
931
963
 * # Flag for tracking "flavor" (type) of information stored at each byte
932
964
 * LOG_FLAVOR    = H5FD_LOG_FLAVOR     # 0x0020             # <<<<<<<<<<<<<<
938
970
  if (PyObject_SetAttr(__pyx_m, __pyx_n_s__LOG_FLAVOR, __pyx_t_3) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 63; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
939
971
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
940
972
 
941
 
  /* "/home/tachyon/slave/unix-release/build/h5py/h5fd.pyx":66
 
973
  /* "/home/tachyon/h5py/h5py/h5fd.pyx":66
942
974
 * 
943
975
 * # Flags for tracking total number of reads/writes/seeks
944
976
 * LOG_NUM_READ  = H5FD_LOG_NUM_READ   # 0x0040             # <<<<<<<<<<<<<<
950
982
  if (PyObject_SetAttr(__pyx_m, __pyx_n_s__LOG_NUM_READ, __pyx_t_3) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 66; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
951
983
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
952
984
 
953
 
  /* "/home/tachyon/slave/unix-release/build/h5py/h5fd.pyx":67
 
985
  /* "/home/tachyon/h5py/h5py/h5fd.pyx":67
954
986
 * # Flags for tracking total number of reads/writes/seeks
955
987
 * LOG_NUM_READ  = H5FD_LOG_NUM_READ   # 0x0040
956
988
 * LOG_NUM_WRITE = H5FD_LOG_NUM_WRITE  # 0x0080             # <<<<<<<<<<<<<<
962
994
  if (PyObject_SetAttr(__pyx_m, __pyx_n_s__LOG_NUM_WRITE, __pyx_t_3) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 67; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
963
995
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
964
996
 
965
 
  /* "/home/tachyon/slave/unix-release/build/h5py/h5fd.pyx":68
 
997
  /* "/home/tachyon/h5py/h5py/h5fd.pyx":68
966
998
 * LOG_NUM_READ  = H5FD_LOG_NUM_READ   # 0x0040
967
999
 * LOG_NUM_WRITE = H5FD_LOG_NUM_WRITE  # 0x0080
968
1000
 * LOG_NUM_SEEK  = H5FD_LOG_NUM_SEEK   # 0x0100             # <<<<<<<<<<<<<<
974
1006
  if (PyObject_SetAttr(__pyx_m, __pyx_n_s__LOG_NUM_SEEK, __pyx_t_3) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 68; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
975
1007
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
976
1008
 
977
 
  /* "/home/tachyon/slave/unix-release/build/h5py/h5fd.pyx":69
 
1009
  /* "/home/tachyon/h5py/h5py/h5fd.pyx":69
978
1010
 * LOG_NUM_WRITE = H5FD_LOG_NUM_WRITE  # 0x0080
979
1011
 * LOG_NUM_SEEK  = H5FD_LOG_NUM_SEEK   # 0x0100
980
1012
 * LOG_NUM_IO    = H5FD_LOG_NUM_IO     # (H5FD_LOG_NUM_READ|H5FD_LOG_NUM_WRITE|H5FD_LOG_NUM_SEEK)             # <<<<<<<<<<<<<<
986
1018
  if (PyObject_SetAttr(__pyx_m, __pyx_n_s__LOG_NUM_IO, __pyx_t_3) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 69; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
987
1019
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
988
1020
 
989
 
  /* "/home/tachyon/slave/unix-release/build/h5py/h5fd.pyx":72
 
1021
  /* "/home/tachyon/h5py/h5py/h5fd.pyx":72
990
1022
 * 
991
1023
 * # Flags for tracking time spent in open/read/write/seek/close
992
1024
 * LOG_TIME_OPEN = H5FD_LOG_TIME_OPEN  # 0x0200        # Not implemented yet             # <<<<<<<<<<<<<<
998
1030
  if (PyObject_SetAttr(__pyx_m, __pyx_n_s__LOG_TIME_OPEN, __pyx_t_3) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 72; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
999
1031
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
1000
1032
 
1001
 
  /* "/home/tachyon/slave/unix-release/build/h5py/h5fd.pyx":73
 
1033
  /* "/home/tachyon/h5py/h5py/h5fd.pyx":73
1002
1034
 * # Flags for tracking time spent in open/read/write/seek/close
1003
1035
 * LOG_TIME_OPEN = H5FD_LOG_TIME_OPEN  # 0x0200        # Not implemented yet
1004
1036
 * LOG_TIME_READ = H5FD_LOG_TIME_READ  # 0x0400        # Not implemented yet             # <<<<<<<<<<<<<<
1010
1042
  if (PyObject_SetAttr(__pyx_m, __pyx_n_s__LOG_TIME_READ, __pyx_t_3) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 73; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
1011
1043
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
1012
1044
 
1013
 
  /* "/home/tachyon/slave/unix-release/build/h5py/h5fd.pyx":74
 
1045
  /* "/home/tachyon/h5py/h5py/h5fd.pyx":74
1014
1046
 * LOG_TIME_OPEN = H5FD_LOG_TIME_OPEN  # 0x0200        # Not implemented yet
1015
1047
 * LOG_TIME_READ = H5FD_LOG_TIME_READ  # 0x0400        # Not implemented yet
1016
1048
 * LOG_TIME_WRITE= H5FD_LOG_TIME_WRITE # 0x0800        # Partially implemented (need to track total time)             # <<<<<<<<<<<<<<
1022
1054
  if (PyObject_SetAttr(__pyx_m, __pyx_n_s__LOG_TIME_WRITE, __pyx_t_3) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 74; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
1023
1055
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
1024
1056
 
1025
 
  /* "/home/tachyon/slave/unix-release/build/h5py/h5fd.pyx":75
 
1057
  /* "/home/tachyon/h5py/h5py/h5fd.pyx":75
1026
1058
 * LOG_TIME_READ = H5FD_LOG_TIME_READ  # 0x0400        # Not implemented yet
1027
1059
 * LOG_TIME_WRITE= H5FD_LOG_TIME_WRITE # 0x0800        # Partially implemented (need to track total time)
1028
1060
 * LOG_TIME_SEEK = H5FD_LOG_TIME_SEEK  # 0x1000        # Partially implemented (need to track total time & track time for seeks during reading)             # <<<<<<<<<<<<<<
1034
1066
  if (PyObject_SetAttr(__pyx_m, __pyx_n_s__LOG_TIME_SEEK, __pyx_t_3) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 75; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
1035
1067
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
1036
1068
 
1037
 
  /* "/home/tachyon/slave/unix-release/build/h5py/h5fd.pyx":76
 
1069
  /* "/home/tachyon/h5py/h5py/h5fd.pyx":76
1038
1070
 * LOG_TIME_WRITE= H5FD_LOG_TIME_WRITE # 0x0800        # Partially implemented (need to track total time)
1039
1071
 * LOG_TIME_SEEK = H5FD_LOG_TIME_SEEK  # 0x1000        # Partially implemented (need to track total time & track time for seeks during reading)
1040
1072
 * LOG_TIME_CLOSE= H5FD_LOG_TIME_CLOSE # 0x2000        # Fully implemented             # <<<<<<<<<<<<<<
1046
1078
  if (PyObject_SetAttr(__pyx_m, __pyx_n_s__LOG_TIME_CLOSE, __pyx_t_3) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 76; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
1047
1079
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
1048
1080
 
1049
 
  /* "/home/tachyon/slave/unix-release/build/h5py/h5fd.pyx":77
 
1081
  /* "/home/tachyon/h5py/h5py/h5fd.pyx":77
1050
1082
 * LOG_TIME_SEEK = H5FD_LOG_TIME_SEEK  # 0x1000        # Partially implemented (need to track total time & track time for seeks during reading)
1051
1083
 * LOG_TIME_CLOSE= H5FD_LOG_TIME_CLOSE # 0x2000        # Fully implemented
1052
1084
 * LOG_TIME_IO   = H5FD_LOG_TIME_IO    # (H5FD_LOG_TIME_OPEN|H5FD_LOG_TIME_READ|H5FD_LOG_TIME_WRITE|H5FD_LOG_TIME_SEEK|H5FD_LOG_TIME_CLOSE)             # <<<<<<<<<<<<<<
1058
1090
  if (PyObject_SetAttr(__pyx_m, __pyx_n_s__LOG_TIME_IO, __pyx_t_3) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 77; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
1059
1091
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
1060
1092
 
1061
 
  /* "/home/tachyon/slave/unix-release/build/h5py/h5fd.pyx":80
 
1093
  /* "/home/tachyon/h5py/h5py/h5fd.pyx":80
1062
1094
 * 
1063
1095
 * # Flag for tracking allocation of space in file
1064
1096
 * LOG_ALLOC     = H5FD_LOG_ALLOC      # 0x4000             # <<<<<<<<<<<<<<
1070
1102
  if (PyObject_SetAttr(__pyx_m, __pyx_n_s__LOG_ALLOC, __pyx_t_3) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 80; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
1071
1103
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
1072
1104
 
1073
 
  /* "/home/tachyon/slave/unix-release/build/h5py/h5fd.pyx":81
 
1105
  /* "/home/tachyon/h5py/h5py/h5fd.pyx":81
1074
1106
 * # Flag for tracking allocation of space in file
1075
1107
 * LOG_ALLOC     = H5FD_LOG_ALLOC      # 0x4000
1076
1108
 * LOG_ALL       = H5FD_LOG_ALL        # (H5FD_LOG_ALLOC|H5FD_LOG_TIME_IO|H5FD_LOG_NUM_IO|H5FD_LOG_FLAVOR|H5FD_LOG_FILE_IO|H5FD_LOG_LOC_IO)             # <<<<<<<<<<<<<<
1081
1113
  if (PyObject_SetAttr(__pyx_m, __pyx_n_s__LOG_ALL, __pyx_t_3) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 81; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
1082
1114
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
1083
1115
 
1084
 
  /* "/home/tachyon/slave/unix-release/build/h5py/h5.pxd":1
 
1116
  /* "/home/tachyon/h5py/h5py/h5.pxd":1
1085
1117
 * #+             # <<<<<<<<<<<<<<
1086
1118
 * #
1087
1119
 * # This file is part of h5py, a low-level Python interface to the HDF5 library.
1116
1148
  __pyx_f = __pyx_filenames;
1117
1149
}
1118
1150
 
1119
 
static INLINE PyObject *__Pyx_PyInt_to_py_hid_t(hid_t val) {
 
1151
static CYTHON_INLINE PyObject *__Pyx_PyInt_to_py_hid_t(hid_t val) {
1120
1152
    const hid_t neg_one = (hid_t)-1, const_zero = 0;
1121
1153
    const int is_unsigned = neg_one > const_zero;
1122
1154
    if (sizeof(hid_t) <  sizeof(long)) {
1134
1166
    }
1135
1167
}
1136
1168
 
1137
 
static INLINE unsigned char __Pyx_PyInt_AsUnsignedChar(PyObject* x) {
 
1169
static CYTHON_INLINE unsigned char __Pyx_PyInt_AsUnsignedChar(PyObject* x) {
1138
1170
    const unsigned char neg_one = (unsigned char)-1, const_zero = 0;
1139
1171
    const int is_unsigned = neg_one > const_zero;
1140
1172
    if (sizeof(unsigned char) < sizeof(long)) {
1153
1185
    return (unsigned char)__Pyx_PyInt_AsUnsignedLong(x);
1154
1186
}
1155
1187
 
1156
 
static INLINE unsigned short __Pyx_PyInt_AsUnsignedShort(PyObject* x) {
 
1188
static CYTHON_INLINE unsigned short __Pyx_PyInt_AsUnsignedShort(PyObject* x) {
1157
1189
    const unsigned short neg_one = (unsigned short)-1, const_zero = 0;
1158
1190
    const int is_unsigned = neg_one > const_zero;
1159
1191
    if (sizeof(unsigned short) < sizeof(long)) {
1172
1204
    return (unsigned short)__Pyx_PyInt_AsUnsignedLong(x);
1173
1205
}
1174
1206
 
1175
 
static INLINE unsigned int __Pyx_PyInt_AsUnsignedInt(PyObject* x) {
 
1207
static CYTHON_INLINE unsigned int __Pyx_PyInt_AsUnsignedInt(PyObject* x) {
1176
1208
    const unsigned int neg_one = (unsigned int)-1, const_zero = 0;
1177
1209
    const int is_unsigned = neg_one > const_zero;
1178
1210
    if (sizeof(unsigned int) < sizeof(long)) {
1191
1223
    return (unsigned int)__Pyx_PyInt_AsUnsignedLong(x);
1192
1224
}
1193
1225
 
1194
 
static INLINE char __Pyx_PyInt_AsChar(PyObject* x) {
 
1226
static CYTHON_INLINE char __Pyx_PyInt_AsChar(PyObject* x) {
1195
1227
    const char neg_one = (char)-1, const_zero = 0;
1196
1228
    const int is_unsigned = neg_one > const_zero;
1197
1229
    if (sizeof(char) < sizeof(long)) {
1210
1242
    return (char)__Pyx_PyInt_AsLong(x);
1211
1243
}
1212
1244
 
1213
 
static INLINE short __Pyx_PyInt_AsShort(PyObject* x) {
 
1245
static CYTHON_INLINE short __Pyx_PyInt_AsShort(PyObject* x) {
1214
1246
    const short neg_one = (short)-1, const_zero = 0;
1215
1247
    const int is_unsigned = neg_one > const_zero;
1216
1248
    if (sizeof(short) < sizeof(long)) {
1229
1261
    return (short)__Pyx_PyInt_AsLong(x);
1230
1262
}
1231
1263
 
1232
 
static INLINE int __Pyx_PyInt_AsInt(PyObject* x) {
 
1264
static CYTHON_INLINE int __Pyx_PyInt_AsInt(PyObject* x) {
1233
1265
    const int neg_one = (int)-1, const_zero = 0;
1234
1266
    const int is_unsigned = neg_one > const_zero;
1235
1267
    if (sizeof(int) < sizeof(long)) {
1248
1280
    return (int)__Pyx_PyInt_AsLong(x);
1249
1281
}
1250
1282
 
1251
 
static INLINE signed char __Pyx_PyInt_AsSignedChar(PyObject* x) {
 
1283
static CYTHON_INLINE signed char __Pyx_PyInt_AsSignedChar(PyObject* x) {
1252
1284
    const signed char neg_one = (signed char)-1, const_zero = 0;
1253
1285
    const int is_unsigned = neg_one > const_zero;
1254
1286
    if (sizeof(signed char) < sizeof(long)) {
1267
1299
    return (signed char)__Pyx_PyInt_AsSignedLong(x);
1268
1300
}
1269
1301
 
1270
 
static INLINE signed short __Pyx_PyInt_AsSignedShort(PyObject* x) {
 
1302
static CYTHON_INLINE signed short __Pyx_PyInt_AsSignedShort(PyObject* x) {
1271
1303
    const signed short neg_one = (signed short)-1, const_zero = 0;
1272
1304
    const int is_unsigned = neg_one > const_zero;
1273
1305
    if (sizeof(signed short) < sizeof(long)) {
1286
1318
    return (signed short)__Pyx_PyInt_AsSignedLong(x);
1287
1319
}
1288
1320
 
1289
 
static INLINE signed int __Pyx_PyInt_AsSignedInt(PyObject* x) {
 
1321
static CYTHON_INLINE signed int __Pyx_PyInt_AsSignedInt(PyObject* x) {
1290
1322
    const signed int neg_one = (signed int)-1, const_zero = 0;
1291
1323
    const int is_unsigned = neg_one > const_zero;
1292
1324
    if (sizeof(signed int) < sizeof(long)) {
1305
1337
    return (signed int)__Pyx_PyInt_AsSignedLong(x);
1306
1338
}
1307
1339
 
1308
 
static INLINE unsigned long __Pyx_PyInt_AsUnsignedLong(PyObject* x) {
 
1340
static CYTHON_INLINE unsigned long __Pyx_PyInt_AsUnsignedLong(PyObject* x) {
1309
1341
    const unsigned long neg_one = (unsigned long)-1, const_zero = 0;
1310
1342
    const int is_unsigned = neg_one > const_zero;
1311
1343
#if PY_VERSION_HEX < 0x03000000
1340
1372
    }
1341
1373
}
1342
1374
 
1343
 
static INLINE unsigned PY_LONG_LONG __Pyx_PyInt_AsUnsignedLongLong(PyObject* x) {
 
1375
static CYTHON_INLINE unsigned PY_LONG_LONG __Pyx_PyInt_AsUnsignedLongLong(PyObject* x) {
1344
1376
    const unsigned PY_LONG_LONG neg_one = (unsigned PY_LONG_LONG)-1, const_zero = 0;
1345
1377
    const int is_unsigned = neg_one > const_zero;
1346
1378
#if PY_VERSION_HEX < 0x03000000
1375
1407
    }
1376
1408
}
1377
1409
 
1378
 
static INLINE long __Pyx_PyInt_AsLong(PyObject* x) {
 
1410
static CYTHON_INLINE long __Pyx_PyInt_AsLong(PyObject* x) {
1379
1411
    const long neg_one = (long)-1, const_zero = 0;
1380
1412
    const int is_unsigned = neg_one > const_zero;
1381
1413
#if PY_VERSION_HEX < 0x03000000
1410
1442
    }
1411
1443
}
1412
1444
 
1413
 
static INLINE PY_LONG_LONG __Pyx_PyInt_AsLongLong(PyObject* x) {
 
1445
static CYTHON_INLINE PY_LONG_LONG __Pyx_PyInt_AsLongLong(PyObject* x) {
1414
1446
    const PY_LONG_LONG neg_one = (PY_LONG_LONG)-1, const_zero = 0;
1415
1447
    const int is_unsigned = neg_one > const_zero;
1416
1448
#if PY_VERSION_HEX < 0x03000000
1445
1477
    }
1446
1478
}
1447
1479
 
1448
 
static INLINE signed long __Pyx_PyInt_AsSignedLong(PyObject* x) {
 
1480
static CYTHON_INLINE signed long __Pyx_PyInt_AsSignedLong(PyObject* x) {
1449
1481
    const signed long neg_one = (signed long)-1, const_zero = 0;
1450
1482
    const int is_unsigned = neg_one > const_zero;
1451
1483
#if PY_VERSION_HEX < 0x03000000
1480
1512
    }
1481
1513
}
1482
1514
 
1483
 
static INLINE signed PY_LONG_LONG __Pyx_PyInt_AsSignedLongLong(PyObject* x) {
 
1515
static CYTHON_INLINE signed PY_LONG_LONG __Pyx_PyInt_AsSignedLongLong(PyObject* x) {
1484
1516
    const signed PY_LONG_LONG neg_one = (signed PY_LONG_LONG)-1, const_zero = 0;
1485
1517
    const int is_unsigned = neg_one > const_zero;
1486
1518
#if PY_VERSION_HEX < 0x03000000
1518
1550
#ifndef __PYX_HAVE_RT_ImportType
1519
1551
#define __PYX_HAVE_RT_ImportType
1520
1552
static PyTypeObject *__Pyx_ImportType(const char *module_name, const char *class_name,
1521
 
    long size)
 
1553
    long size, int strict)
1522
1554
{
1523
1555
    PyObject *py_module = 0;
1524
1556
    PyObject *result = 0;
1525
1557
    PyObject *py_name = 0;
 
1558
    char warning[200];
1526
1559
 
1527
1560
    py_module = __Pyx_ImportModule(module_name);
1528
1561
    if (!py_module)
1547
1580
            module_name, class_name);
1548
1581
        goto bad;
1549
1582
    }
1550
 
    if (((PyTypeObject *)result)->tp_basicsize != size) {
 
1583
    if (!strict && ((PyTypeObject *)result)->tp_basicsize > size) {
 
1584
        PyOS_snprintf(warning, sizeof(warning), 
 
1585
            "%s.%s size changed, may indicate binary incompatibility",
 
1586
            module_name, class_name);
 
1587
        PyErr_WarnEx(NULL, warning, 0);
 
1588
    }
 
1589
    else if (((PyTypeObject *)result)->tp_basicsize != size) {
1551
1590
        PyErr_Format(PyExc_ValueError, 
1552
 
            "%s.%s does not appear to be the correct type object",
 
1591
            "%s.%s has the wrong size, try recompiling",
1553
1592
            module_name, class_name);
1554
1593
        goto bad;
1555
1594
    }
1741
1780
 
1742
1781
/* Type Conversion Functions */
1743
1782
 
1744
 
static INLINE int __Pyx_PyObject_IsTrue(PyObject* x) {
 
1783
static CYTHON_INLINE int __Pyx_PyObject_IsTrue(PyObject* x) {
1745
1784
   if (x == Py_True) return 1;
1746
1785
   else if ((x == Py_False) | (x == Py_None)) return 0;
1747
1786
   else return PyObject_IsTrue(x);
1748
1787
}
1749
1788
 
1750
 
static INLINE PyObject* __Pyx_PyNumber_Int(PyObject* x) {
 
1789
static CYTHON_INLINE PyObject* __Pyx_PyNumber_Int(PyObject* x) {
1751
1790
  PyNumberMethods *m;
1752
1791
  const char *name = NULL;
1753
1792
  PyObject *res = NULL;
1793
1832
  return res;
1794
1833
}
1795
1834
 
1796
 
static INLINE Py_ssize_t __Pyx_PyIndex_AsSsize_t(PyObject* b) {
 
1835
static CYTHON_INLINE Py_ssize_t __Pyx_PyIndex_AsSsize_t(PyObject* b) {
1797
1836
  Py_ssize_t ival;
1798
1837
  PyObject* x = PyNumber_Index(b);
1799
1838
  if (!x) return -1;
1802
1841
  return ival;
1803
1842
}
1804
1843
 
1805
 
static INLINE PyObject * __Pyx_PyInt_FromSize_t(size_t ival) {
 
1844
static CYTHON_INLINE PyObject * __Pyx_PyInt_FromSize_t(size_t ival) {
1806
1845
#if PY_VERSION_HEX < 0x02050000
1807
1846
   if (ival <= LONG_MAX)
1808
1847
       return PyInt_FromLong((long)ival);
1816
1855
#endif
1817
1856
}
1818
1857
 
1819
 
static INLINE size_t __Pyx_PyInt_AsSize_t(PyObject* x) {
 
1858
static CYTHON_INLINE size_t __Pyx_PyInt_AsSize_t(PyObject* x) {
1820
1859
   unsigned PY_LONG_LONG val = __Pyx_PyInt_AsUnsignedLongLong(x);
1821
1860
   if (unlikely(val == (unsigned PY_LONG_LONG)-1 && PyErr_Occurred())) {
1822
1861
       return (size_t)-1;