-
-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathutils.h
More file actions
51 lines (42 loc) · 1.35 KB
/
utils.h
File metadata and controls
51 lines (42 loc) · 1.35 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
40
41
42
43
44
45
46
47
48
49
50
51
#ifndef UTILS_H
#define UTILS_H
#if defined(__MINGW32__) && defined(__GNUC__)
# pragma GCC diagnostic push
# pragma GCC diagnostic ignored "-Warray-bounds"
#endif
#if defined(__clang__)
# pragma GCC diagnostic push /* XXX: pypy/pypy#5312 */
# pragma GCC diagnostic ignored "-Wnewline-eof"
#endif
#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
#if defined(__clang__)
# pragma GCC diagnostic pop
#endif
#if defined(__MINGW32__) && defined(__GNUC__)
# 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 */