3 * Pyke: the Python Kit for Extensions, mLib integration
5 * (c) 2019 Straylight/Edgeware
8 /*----- Licensing notice --------------------------------------------------*
10 * This file is part of Pyke: the Python Kit for Extensions.
12 * Pyke is free software: you can redistribute it and/or modify it under
13 * the terms of the GNU General Public License as published by the Free
14 * Software Foundation; either version 2 of the License, or (at your
15 * option) any later version.
17 * Pyke is distributed in the hope that it will be useful, but WITHOUT
18 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
19 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
22 * You should have received a copy of the GNU General Public License
23 * along with Pyke. If not, write to the Free Software Foundation, Inc.,
24 * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
34 /*----- Header files ------------------------------------------------------*/
41 #include <mLib/bits.h>
45 /*----- Conversions -------------------------------------------------------*/
47 #define DECL_CONVU_(n) extern int convu##n(PyObject *, void *);
49 /* Define an `O&' input conversion `convuN' for each mLib type `uintN'. */
51 extern int convk64(PyObject
*, void *);
52 /* Input conversion for `kludge64'. */
54 extern PyObject
*getk64(kludge64
);
55 /* Output conversion for `kludge64'. */
57 /*----- Mapping support ---------------------------------------------------*/
59 extern Py_ssize_t
gmap_pysize_from_sym(sym_table
*);
60 /* Determine the size of a mapping based on a `sym_table'. */
62 /*----- That's all, folks -------------------------------------------------*/