Skip to content

Commit 44780e5

Browse files
committed
re-add truffle patches and extensions to our stdlib
1 parent 253c095 commit 44780e5

Some content is hidden

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

89 files changed

+2362
-326
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,8 +75,8 @@
7575
#include "unicodeobject.h"
7676
#include "pystate.h"
7777
#include "pyarena.h"
78-
#include "compile.h"
7978
#include "pythonrun.h"
79+
#include "compile.h"
8080
#include "ceval.h"
8181
#include "pyerrors.h"
8282
#include "modsupport.h"

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

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

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

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

38
#ifndef Py_BOOLOBJECT_H

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

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

38
#ifndef Py_BYTEARRAYOBJECT_H

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

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
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+
*/
16

27
/* Bytes (String) object interface */
38

@@ -31,7 +36,8 @@ functions should be applied to nil objects.
3136
typedef struct {
3237
PyObject_VAR_HEAD
3338
Py_hash_t ob_shash;
34-
char ob_sval[1];
39+
// Truffle change: char ob_sval[1] doesn't work for us in Sulong
40+
char* ob_sval;
3541

3642
/* Invariants:
3743
* ob_sval contains space for 'ob_size+1' elements.

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

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

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

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

38
/* Revealing some structures (not for general use) */

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

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

39
#ifndef Py_LIMITED_API

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

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

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
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+
17
#ifndef Py_COMPILE_H
28
#define Py_COMPILE_H
39

0 commit comments

Comments
 (0)