-
-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathutils.h
More file actions
39 lines (30 loc) · 1.06 KB
/
utils.h
File metadata and controls
39 lines (30 loc) · 1.06 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
#ifndef UTILS_H
#define UTILS_H
/* For GraalVM: unicodeobject.h, implicit conversion changes
signedness: 'enum PyUnicode_Kind' to 'int' */
#if defined(__GNUC__) || defined(__clang__)
# pragma GCC diagnostic push /* XXX: oracle/graalpython#580 */
# pragma GCC diagnostic ignored "-Wsign-conversion"
#endif
#include "pythoncapi_compat.h"
#define PY_SSIZE_T_CLEAN
#include <Python.h>
#if defined(__GNUC__) || defined(__clang__)
# pragma GCC diagnostic pop
#endif
typedef struct gmp_pyargs {
Py_ssize_t maxpos;
Py_ssize_t minargs;
Py_ssize_t maxargs;
const char *fname;
const char *const *keywords;
} gmp_pyargs;
int gmp_parse_pyargs(const gmp_pyargs *fnargs, Py_ssize_t argidx[],
PyObject *const *args, Py_ssize_t nargs,
PyObject *kwnames);
PyObject * gmp_PyUnicode_TransformDecimalAndSpaceToASCII(PyObject *unicode);
#if PY_VERSION_HEX < 0x030D00A0
extern PyObject * _PyType_GetFullyQualifiedName(PyTypeObject *type);
#define PyType_GetFullyQualifiedName _PyType_GetFullyQualifiedName
#endif
#endif /* UTILS_H */