annotate src/pgarrinter.h @ 3172:d1b367fc08bc tests-returncode

Use a return code of 1 when the tests fail.
author Thomas Kluyver <takowl@gmail.com>
date Wed, 09 Jan 2013 10:13:57 +0000
parents 841b902f3d15
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1452
bb0a85996462 new _arraysurfarray module. blit_array bug 24 fix.
Lenard Lindstrom <len-l@telus.net>
parents:
diff changeset
1 /* array structure interface version 3 declarations */
bb0a85996462 new _arraysurfarray module. blit_array bug 24 fix.
Lenard Lindstrom <len-l@telus.net>
parents:
diff changeset
2
3014
841b902f3d15 Centralize common array struct interface operations in the _view module
Lenard Lindstrom <len-l@telus.net>
parents: 2131
diff changeset
3 #if !defined(PG_ARRAYINTER_HEADER)
841b902f3d15 Centralize common array struct interface operations in the _view module
Lenard Lindstrom <len-l@telus.net>
parents: 2131
diff changeset
4 #define PG_ARRAYINTER_HEADER
841b902f3d15 Centralize common array struct interface operations in the _view module
Lenard Lindstrom <len-l@telus.net>
parents: 2131
diff changeset
5
841b902f3d15 Centralize common array struct interface operations in the _view module
Lenard Lindstrom <len-l@telus.net>
parents: 2131
diff changeset
6 static const int PAI_CONTIGUOUS = 0x01;
841b902f3d15 Centralize common array struct interface operations in the _view module
Lenard Lindstrom <len-l@telus.net>
parents: 2131
diff changeset
7 static const int PAI_FORTRAN = 0x02;
841b902f3d15 Centralize common array struct interface operations in the _view module
Lenard Lindstrom <len-l@telus.net>
parents: 2131
diff changeset
8 static const int PAI_ALIGNED = 0x100;
841b902f3d15 Centralize common array struct interface operations in the _view module
Lenard Lindstrom <len-l@telus.net>
parents: 2131
diff changeset
9 static const int PAI_NOTSWAPPED = 0x200;
841b902f3d15 Centralize common array struct interface operations in the _view module
Lenard Lindstrom <len-l@telus.net>
parents: 2131
diff changeset
10 static const int PAI_WRITEABLE = 0x400;
841b902f3d15 Centralize common array struct interface operations in the _view module
Lenard Lindstrom <len-l@telus.net>
parents: 2131
diff changeset
11 static const int PAI_ARR_HAS_DESCR = 0x800;
1452
bb0a85996462 new _arraysurfarray module. blit_array bug 24 fix.
Lenard Lindstrom <len-l@telus.net>
parents:
diff changeset
12
bb0a85996462 new _arraysurfarray module. blit_array bug 24 fix.
Lenard Lindstrom <len-l@telus.net>
parents:
diff changeset
13 typedef struct {
bb0a85996462 new _arraysurfarray module. blit_array bug 24 fix.
Lenard Lindstrom <len-l@telus.net>
parents:
diff changeset
14 int two; /* contains the integer 2 -- simple sanity check */
bb0a85996462 new _arraysurfarray module. blit_array bug 24 fix.
Lenard Lindstrom <len-l@telus.net>
parents:
diff changeset
15 int nd; /* number of dimensions */
bb0a85996462 new _arraysurfarray module. blit_array bug 24 fix.
Lenard Lindstrom <len-l@telus.net>
parents:
diff changeset
16 char typekind; /* kind in array -- character code of typestr */
bb0a85996462 new _arraysurfarray module. blit_array bug 24 fix.
Lenard Lindstrom <len-l@telus.net>
parents:
diff changeset
17 int itemsize; /* size of each element */
bb0a85996462 new _arraysurfarray module. blit_array bug 24 fix.
Lenard Lindstrom <len-l@telus.net>
parents:
diff changeset
18 int flags; /* flags indicating how the data should be */
bb0a85996462 new _arraysurfarray module. blit_array bug 24 fix.
Lenard Lindstrom <len-l@telus.net>
parents:
diff changeset
19 /* interpreted */
bb0a85996462 new _arraysurfarray module. blit_array bug 24 fix.
Lenard Lindstrom <len-l@telus.net>
parents:
diff changeset
20 Py_intptr_t *shape; /* A length-nd array of shape information */
bb0a85996462 new _arraysurfarray module. blit_array bug 24 fix.
Lenard Lindstrom <len-l@telus.net>
parents:
diff changeset
21 Py_intptr_t *strides; /* A length-nd array of stride information */
bb0a85996462 new _arraysurfarray module. blit_array bug 24 fix.
Lenard Lindstrom <len-l@telus.net>
parents:
diff changeset
22 void *data; /* A pointer to the first element of the array */
bb0a85996462 new _arraysurfarray module. blit_array bug 24 fix.
Lenard Lindstrom <len-l@telus.net>
parents:
diff changeset
23 PyObject *descr; /* NULL or a data-description */
bb0a85996462 new _arraysurfarray module. blit_array bug 24 fix.
Lenard Lindstrom <len-l@telus.net>
parents:
diff changeset
24 } PyArrayInterface;
3014
841b902f3d15 Centralize common array struct interface operations in the _view module
Lenard Lindstrom <len-l@telus.net>
parents: 2131
diff changeset
25
841b902f3d15 Centralize common array struct interface operations in the _view module
Lenard Lindstrom <len-l@telus.net>
parents: 2131
diff changeset
26 #endif