.gitignore added
[dotfiles/.git] / .local / include / python3.9 / pygame / pgarrinter.h
1 /* array structure interface version 3 declarations */
2
3 #if !defined(PG_ARRAYINTER_HEADER)
4 #define PG_ARRAYINTER_HEADER
5
6 static const int PAI_CONTIGUOUS = 0x01;
7 static const int PAI_FORTRAN = 0x02;
8 static const int PAI_ALIGNED = 0x100;
9 static const int PAI_NOTSWAPPED = 0x200;
10 static const int PAI_WRITEABLE = 0x400;
11 static const int PAI_ARR_HAS_DESCR = 0x800;
12
13 typedef struct {
14     int two;              /* contains the integer 2 -- simple sanity check */
15     int nd;               /* number of dimensions */
16     char typekind;        /* kind in array -- character code of typestr */
17     int itemsize;         /* size of each element */
18     int flags;            /* flags indicating how the data should be */
19                           /* interpreted */
20     Py_intptr_t *shape;   /* A length-nd array of shape information */
21     Py_intptr_t *strides; /* A length-nd array of stride information */
22     void *data;           /* A pointer to the first element of the array */
23     PyObject *descr;      /* NULL or a data-description */
24 } PyArrayInterface;
25
26 #endif