* Return true if descr is a builtin type */
| 55 | * Return true if descr is a builtin type |
| 56 | */ |
| 57 | static int _is_array_descr_builtin(PyArray_Descr* descr) |
| 58 | { |
| 59 | if (descr->fields != NULL && descr->fields != Py_None) { |
| 60 | return 0; |
| 61 | } |
| 62 | if (PyDataType_HASSUBARRAY(descr)) { |
| 63 | return 0; |
| 64 | } |
| 65 | return 1; |
| 66 | } |
| 67 | |
| 68 | /* |
| 69 | * Add to l all the items which uniquely define a builtin type |