| 1 | /* |
| 2 | * Copyright (C) 2018 Kovid Goyal <kovid at kovidgoyal.net> |
| 3 | * |
| 4 | * Distributed under terms of the GPL3 license. |
| 5 | */ |
| 6 | |
| 7 | #pragma once |
| 8 | #define PY_SSIZE_T_CLEAN |
| 9 | |
| 10 | #include <Python.h> |
| 11 | #include <stdint.h> |
| 12 | typedef uint32_t char_type; |
| 13 | typedef int bool; |
| 14 | #define false 0 |
| 15 | #define true 1 |
| 16 | #define EXPORTED CALIBRE_MODINIT_FUNC |
| 17 | #define START_ALLOW_CASE_RANGE |
| 18 | #define END_ALLOW_CASE_RANGE |
| 19 | #define UNUSED |
| 20 | #define PYNOARG PyObject *__a1 UNUSED, PyObject *__a2 UNUSED |
| 21 | #define arraysz(x) (sizeof(x) / sizeof(x[0])) |