Skip to content

Commit 253c095

Browse files
committed
Merge branch 'python-import' into tim/py-src-import2
2 parents 230452e + e8f5023 commit 253c095

File tree

866 files changed

+22684
-45013
lines changed

Some content is hidden

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

866 files changed

+22684
-45013
lines changed

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

Lines changed: 1014 additions & 754 deletions
Large diffs are not rendered by default.

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

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,3 @@
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-
*/
61
/* Boolean object interface */
72

83
#ifndef Py_BOOLOBJECT_H

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

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,3 @@
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-
*/
61
/* ByteArray object interface */
72

83
#ifndef Py_BYTEARRAYOBJECT_H

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

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,3 @@
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-
*/
61

72
/* Bytes (String) object interface */
83

@@ -36,7 +31,7 @@ functions should be applied to nil objects.
3631
typedef struct {
3732
PyObject_VAR_HEAD
3833
Py_hash_t ob_shash;
39-
char *ob_sval;
34+
char ob_sval[1];
4035

4136
/* Invariants:
4237
* ob_sval contains space for 'ob_size+1' elements.

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

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,3 @@
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-
*/
61
#ifndef Py_CEVAL_H
72
#define Py_CEVAL_H
83
#ifdef __cplusplus

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

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,3 @@
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-
*/
61
/* Former class object interface -- now only bound methods are here */
72

83
/* Revealing some structures (not for general use) */
@@ -35,13 +30,13 @@ PyAPI_FUNC(PyObject *) PyMethod_Self(PyObject *);
3530
#define PyMethod_GET_FUNCTION(meth) \
3631
(((PyMethodObject *)meth) -> im_func)
3732
#define PyMethod_GET_SELF(meth) \
38-
(((PyMethodObject *)meth) -> im_self)
33+
(((PyMethodObject *)meth) -> im_self)
3934

4035
PyAPI_FUNC(int) PyMethod_ClearFreeList(void);
4136

4237
typedef struct {
43-
PyObject_HEAD
44-
PyObject *func;
38+
PyObject_HEAD
39+
PyObject *func;
4540
} PyInstanceMethodObject;
4641

4742
PyAPI_DATA(PyTypeObject) PyInstanceMethod_Type;

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

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,3 @@
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-
71
/* Definitions for bytecode */
82

93
#ifndef Py_LIMITED_API

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

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,3 @@
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-
71
#ifndef Py_CODECREGISTRY_H
82
#define Py_CODECREGISTRY_H
93
#ifdef __cplusplus

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

Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,3 @@
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-
71
#ifndef Py_COMPILE_H
82
#define Py_COMPILE_H
93

@@ -17,23 +11,6 @@ extern "C" {
1711
/* Public interface */
1812
struct _node; /* Declare the existence of this type */
1913
PyAPI_FUNC(PyCodeObject *) PyNode_Compile(struct _node *, const char *);
20-
/* XXX (ncoghlan): Unprefixed type name in a public API! */
21-
22-
#define PyCF_MASK (CO_FUTURE_DIVISION | CO_FUTURE_ABSOLUTE_IMPORT | \
23-
CO_FUTURE_WITH_STATEMENT | CO_FUTURE_PRINT_FUNCTION | \
24-
CO_FUTURE_UNICODE_LITERALS | CO_FUTURE_BARRY_AS_BDFL | \
25-
CO_FUTURE_GENERATOR_STOP)
26-
#define PyCF_MASK_OBSOLETE (CO_NESTED)
27-
#define PyCF_SOURCE_IS_UTF8 0x0100
28-
#define PyCF_DONT_IMPLY_DEDENT 0x0200
29-
#define PyCF_ONLY_AST 0x0400
30-
#define PyCF_IGNORE_COOKIE 0x0800
31-
32-
#ifndef Py_LIMITED_API
33-
typedef struct {
34-
int cf_flags; /* bitmask of CO_xxx flags relevant to future */
35-
} PyCompilerFlags;
36-
#endif
3714

3815
/* Future feature support */
3916

@@ -81,8 +58,6 @@ PyAPI_FUNC(PyObject*) _Py_Mangle(PyObject *p, PyObject *name);
8158
#define PY_INVALID_STACK_EFFECT INT_MAX
8259
PyAPI_FUNC(int) PyCompile_OpcodeStackEffect(int opcode, int oparg);
8360

84-
PyAPI_FUNC(int) _PyAST_Optimize(struct _mod *, PyArena *arena);
85-
8661
#ifdef __cplusplus
8762
}
8863
#endif

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

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,3 @@
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-
*/
61
/* Complex number structure */
72

83
#ifndef Py_COMPLEXOBJECT_H

0 commit comments

Comments
 (0)