Skip to content

Commit b4a502f

Browse files
committed
Merge remote-tracking branch 'origin/master' into topic/GR-13042
2 parents 91d4503 + 976c249 commit b4a502f

File tree

109 files changed

+38542
-591
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

109 files changed

+38542
-591
lines changed

graalpython/com.oracle.graal.python.cext/include/Python.h

Lines changed: 0 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -149,35 +149,6 @@
149149
* } while (0)
150150
*/
151151

152-
153-
#undef Py_RETURN_NONE
154-
#define Py_RETURN_NONE return Py_None;
155-
156-
extern int _PyArg_ParseTupleAndKeywords_SizeT(PyObject *argv, PyObject *kwds, const char *format, char** kwdnames, ...);
157-
158-
// we use defines for these so we don't need to call with va_list
159-
#define _PyArg_Parse_SizeT(ARGV, FORMAT, ...) PyArg_ParseTupleAndKeywords(ARGV, PyDict_New(), FORMAT, NULL, ##__VA_ARGS__)
160-
#define _PyArg_ParseTuple_SizeT(ARGV, FORMAT, ...) PyArg_ParseTupleAndKeywords(ARGV, PyDict_New(), FORMAT, NULL, ##__VA_ARGS__)
161-
#define _PyArg_ParseTupleAndKeywordsFast_SizeT(ARGS, KWARGS, PARSER, ...) PyArg_ParseTupleAndKeywords(ARGS, KWARGS, (PARSER)->format, (PARSER)->keywords, ##__VA_ARGS__)
162-
extern PyObject* PyTruffle_Stack2Tuple(PyObject** args, Py_ssize_t nargs);
163-
#define _PyArg_ParseStack_SizeT(ARGS, NARGS, KWNAMES, PARSER, ...) PyArg_ParseTupleAndKeywords(PyTruffle_Stack2Tuple(ARGS, NARGS), KWNAMES, (PARSER)->format, (PARSER)->keywords, ##__VA_ARGS__)
164-
165-
#ifndef PyArg_Parse
166-
#define PyArg_Parse _PyArg_Parse_SizeT
167-
#endif
168-
169-
#ifndef PyArg_ParseTuple
170-
#define PyArg_ParseTuple _PyArg_ParseTuple_SizeT
171-
#endif
172-
173-
#ifndef PyArg_ParseTupleAndKeywords
174-
#define PyArg_ParseTupleAndKeywords _PyArg_ParseTupleAndKeywords_SizeT
175-
#endif
176-
177-
#ifndef _PyArg_ParseStack
178-
#define _PyArg_ParseStack _PyArg_ParseStack_SizeT
179-
#endif
180-
181152
extern PyObject * PyTruffle_Unicode_FromFormat(const char *fmt, int s, void* v0, void* v1, void* v2, void* v3, void* v4, void* v5, void* v6, void* v7, void* v8, void* v9, void* v10, void* v11, void* v12, void* v13, void* v14, void* v15, void* v16, void* v17, void* v18, void* v19);
182153
#define PyTruffle_Unicode_FromFormat_0(F1) PyTruffle_Unicode_FromFormat(F1, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL)
183154
#define PyTruffle_Unicode_FromFormat_1(F1, V1) PyTruffle_Unicode_FromFormat(F1, 1, (void*)(V1), NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL)
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
/* Copyright (c) 2018, Oracle and/or its affiliates.
2+
* Copyright (C) 1996-2017 Python Software Foundation
3+
*
4+
* Licensed under the PYTHON SOFTWARE FOUNDATION LICENSE VERSION 2
5+
*/
6+
7+
/* Unicode name database interface */
8+
#ifndef Py_LIMITED_API
9+
#ifndef Py_UCNHASH_H
10+
#define Py_UCNHASH_H
11+
#ifdef __cplusplus
12+
extern "C" {
13+
#endif
14+
15+
/* revised ucnhash CAPI interface (exported through a "wrapper") */
16+
17+
#define PyUnicodeData_CAPSULE_NAME "unicodedata.ucnhash_CAPI"
18+
19+
typedef struct {
20+
21+
/* Size of this struct */
22+
int size;
23+
24+
/* Get name for a given character code. Returns non-zero if
25+
success, zero if not. Does not set Python exceptions.
26+
If self is NULL, data come from the default version of the database.
27+
If it is not NULL, it should be a unicodedata.ucd_X_Y_Z object */
28+
int (*getname)(PyObject *self, Py_UCS4 code, char* buffer, int buflen,
29+
int with_alias_and_seq);
30+
31+
/* Get character code for a given name. Same error handling
32+
as for getname. */
33+
int (*getcode)(PyObject *self, const char* name, int namelen, Py_UCS4* code,
34+
int with_named_seq);
35+
36+
} _PyUnicode_Name_CAPI;
37+
38+
#ifdef __cplusplus
39+
}
40+
#endif
41+
#endif /* !Py_UCNHASH_H */
42+
#endif /* !Py_LIMITED_API */

0 commit comments

Comments
 (0)