Skip to content

Commit 4d9961d

Browse files
committed
Merge branch 'master' into tim/threading
2 parents 1866712 + 6fb7a57 commit 4d9961d

File tree

415 files changed

+22668
-33051
lines changed

Some content is hidden

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

415 files changed

+22668
-33051
lines changed

THIRD_PARTY_LICENSE.txt

Lines changed: 174 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3200,3 +3200,177 @@ AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
32003200
LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
32013201
IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
32023202
OF THE POSSIBILITY OF SUCH DAMAGE.
3203+
3204+
3205+
XY (liblzma)
3206+
3207+
https://git.tukaani.org/?p=xz.git;a=blob;f=COPYING
3208+
1
3209+
2 XZ Utils Licensing
3210+
3 ==================
3211+
4
3212+
5 Different licenses apply to different files in this package. Here
3213+
6 is a rough summary of which licenses apply to which parts of this
3214+
7 package (but check the individual files to be sure!):
3215+
8
3216+
9 - liblzma is in the public domain.
3217+
10
3218+
11 - xz, xzdec, and lzmadec command line tools are in the public
3219+
12 domain unless GNU getopt_long had to be compiled and linked
3220+
13 in from the lib directory. The getopt_long code is under
3221+
14 GNU LGPLv2.1+.
3222+
15
3223+
16 - The scripts to grep, diff, and view compressed files have been
3224+
17 adapted from gzip. These scripts and their documentation are
3225+
18 under GNU GPLv2+.
3226+
19
3227+
20 - All the documentation in the doc directory and most of the
3228+
21 XZ Utils specific documentation files in other directories
3229+
22 are in the public domain.
3230+
23
3231+
24 - Translated messages are in the public domain.
3232+
25
3233+
26 - The build system contains public domain files, and files that
3234+
27 are under GNU GPLv2+ or GNU GPLv3+. None of these files end up
3235+
28 in the binaries being built.
3236+
29
3237+
30 - Test files and test code in the tests directory, and debugging
3238+
31 utilities in the debug directory are in the public domain.
3239+
32
3240+
33 - The extra directory may contain public domain files, and files
3241+
34 that are under various free software licenses.
3242+
35
3243+
36 You can do whatever you want with the files that have been put into
3244+
37 the public domain. If you find public domain legally problematic,
3245+
38 take the previous sentence as a license grant. If you still find
3246+
39 the lack of copyright legally problematic, you have too many
3247+
40 lawyers.
3248+
41
3249+
42 As usual, this software is provided "as is", without any warranty.
3250+
43
3251+
44 If you copy significant amounts of public domain code from XZ Utils
3252+
45 into your project, acknowledging this somewhere in your software is
3253+
46 polite (especially if it is proprietary, non-free software), but
3254+
47 naturally it is not legally required. Here is an example of a good
3255+
48 notice to put into "about box" or into documentation:
3256+
49
3257+
50 This software includes code from XZ Utils <https://tukaani.org/xz/>.
3258+
51
3259+
52 The following license texts are included in the following files:
3260+
53 - COPYING.LGPLv2.1: GNU Lesser General Public License version 2.1
3261+
54 - COPYING.GPLv2: GNU General Public License version 2
3262+
55 - COPYING.GPLv3: GNU General Public License version 3
3263+
56
3264+
57 Note that the toolchain (compiler, linker etc.) may add some code
3265+
58 pieces that are copyrighted. Thus, it is possible that e.g. liblzma
3266+
59 binary wouldn't actually be in the public domain in its entirety
3267+
60 even though it contains no copyrighted code from the XZ Utils source
3268+
61 package.
3269+
62
3270+
63 If you have questions, don't hesitate to ask the author(s) for more
3271+
64 information.
3272+
65
3273+
3274+
=== AUTHORS file ===
3275+
Authors of XZ Utils
3276+
===================
3277+
XZ Utils is developed and maintained by Lasse Collin
3278+
3279+
Major parts of liblzma are based on code written by Igor Pavlov,
3280+
specifically the LZMA SDK <http://7-zip.org/sdk.html>. Without
3281+
this code, XZ Utils wouldn't exist.
3282+
The SHA-256 implementation in liblzma is based on the code found from
3283+
7-Zip <http://7-zip.org/>, which has a modified version of the SHA-256
3284+
code found from Crypto++ <http://www.cryptopp.com/>. The SHA-256 code
3285+
in Crypto++ was written by Kevin Springle and Wei Dai.
3286+
Some scripts have been adapted from gzip. The original versions
3287+
were written by Jean-loup Gailly, Charles Levert, and Paul Eggert.
3288+
Andrew Dudman helped adapting the scripts and their man pages for
3289+
XZ Utils.
3290+
The GNU Autotools-based build system contains files from many authors,
3291+
which I'm not trying to list here.
3292+
Several people have contributed fixes or reported bugs. Most of them
3293+
are mentioned in the file THANKS.
3294+
3295+
======================================================
3296+
Many source files in root have this
3297+
###############################################################################
3298+
#
3299+
# Author: Lasse Collin
3300+
#
3301+
# This file has been put into the public domain.
3302+
# You can do whatever you want with this file.
3303+
#
3304+
###############################################################################
3305+
3306+
=== Files in liblzma have ====
3307+
/**
3308+
2 * \file api/lzma.h
3309+
3 * \brief The public API of liblzma data compression library
3310+
4 *
3311+
5 * liblzma is a public domain general-purpose data compression library with
3312+
6 * a zlib-like API. The native file format is .xz, but also the old .lzma
3313+
7 * format and raw (no headers) streams are supported. Multiple compression
3314+
8 * algorithms (filters) are supported. Currently LZMA2 is the primary filter.
3315+
9 *
3316+
10 * liblzma is part of XZ Utils <http://tukaani.org/xz/>. XZ Utils includes
3317+
11 * a gzip-like command line tool named xz and some other tools. XZ Utils
3318+
12 * is developed and maintained by Lasse Collin.
3319+
13 *
3320+
14 * Major parts of liblzma are based on Igor Pavlov's public domain LZMA SDK
3321+
15 * <http://7-zip.org/sdk.html>.
3322+
16 *
3323+
17 * The SHA-256 implementation is based on the public domain code found from
3324+
18 * 7-Zip <http://7-zip.org/>, which has a modified version of the public
3325+
19 * domain SHA-256 code found from Crypto++ <http://www.cryptopp.com/>.
3326+
20 * The SHA-256 code in Crypto++ was written by Kevin Springle and Wei Dai.
3327+
21 */
3328+
22
3329+
23 /*
3330+
24 * Author: Lasse Collin
3331+
25 *
3332+
26 * This file has been put into the public domain.
3333+
27 * You can do whatever you want with this file.
3334+
28 */
3335+
29
3336+
=======
3337+
3338+
// Authors: Igor Pavlov
3339+
7 // Lasse Collin
3340+
8 //
3341+
9 // This file has been put into the public domain.
3342+
10 // You can do whatever you want with this file.
3343+
3344+
=== lzmainfo, xz, xzdec sources ===
3345+
1 ///////////////////////////////////////////////////////////////////////////////
3346+
2 //
3347+
3 /// \file lzmainfo.c
3348+
4 /// \brief lzmainfo tool for compatibility with LZMA Utils
3349+
5 //
3350+
6 // Author: Lasse Collin
3351+
7 //
3352+
8 // This file has been put into the public domain.
3353+
9 // You can do whatever you want with this file.
3354+
10 //
3355+
11 ///////////////////////////////////////////////////////////////////////////////
3356+
12
3357+
3358+
==== common sources =====
3359+
// Authors: Lasse Collin
3360+
38 // Joachim Henke
3361+
39 //
3362+
40 // This file has been put into the public domain.
3363+
41 // You can do whatever you want with this file.
3364+
42 //
3365+
43 ///////////////////////////////////////////////////////////////////////////////
3366+
==== scripts sources ====
3367+
2 .\" Authors: Andrew Dudman
3368+
3 .\" Lasse Collin
3369+
4 .\"
3370+
5 .\" This file has been put into the public domain.
3371+
6 .\" You can do whatever you want with this file.
3372+
7 .\"
3373+
8 .\" (Note that this file is not based on gzip's zless.1.)
3374+
=
3375+
3376+
Oracle GraalPython uses only the "public domain" source files that belong to liblzma.

ci.jsonnet

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{ "overlay": "d8d57ccfe5a0a2b1ef094be4772d4f01c2dfb2cb" }
1+
{ "overlay": "170e550ee492b57eddde3fbe3e2334bcf3ff5d5f" }

graalpython/com.oracle.graal.python.cext/include/common/autogen_hpyfunc_declare.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,9 @@
2525
/*
2626
DO NOT EDIT THIS FILE!
2727
28-
This file is automatically generated by tools/autogen.py from tools/public_api.h.
28+
This file is automatically generated by hpy.tools.autogen.hpyfunc.autogen_hpyfunc_declare_h
29+
See also hpy.tools.autogen and hpy/tools/public_api.h
30+
2931
Run this to regenerate:
3032
make autogen
3133

graalpython/com.oracle.graal.python.cext/include/common/autogen_hpyslot.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,9 @@
2525
/*
2626
DO NOT EDIT THIS FILE!
2727
28-
This file is automatically generated by tools/autogen.py from tools/public_api.h.
28+
This file is automatically generated by hpy.tools.autogen.hpyslot.autogen_hpyslot_h
29+
See also hpy.tools.autogen and hpy/tools/public_api.h
30+
2931
Run this to regenerate:
3032
make autogen
3133

graalpython/com.oracle.graal.python.cext/include/common/autogen_impl.h

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,9 @@
2525
/*
2626
DO NOT EDIT THIS FILE!
2727
28-
This file is automatically generated by tools/autogen.py from tools/public_api.h.
28+
This file is automatically generated by hpy.tools.autogen.trampolines.autogen_impl_h
29+
See also hpy.tools.autogen and hpy/tools/public_api.h
30+
2931
Run this to regenerate:
3032
make autogen
3133
@@ -291,6 +293,11 @@ HPyAPI_STORAGE HPy _HPy_IMPL_NAME_NOPREFIX(InPlaceOr)(HPyContext ctx, HPy h1, HP
291293
return _py2h(PyNumber_InPlaceOr(_h2py(h1), _h2py(h2)));
292294
}
293295

296+
HPyAPI_STORAGE int _HPy_IMPL_NAME(Callable_Check)(HPyContext ctx, HPy h)
297+
{
298+
return PyCallable_Check(_h2py(h));
299+
}
300+
294301
HPyAPI_STORAGE void _HPy_IMPL_NAME(Err_SetString)(HPyContext ctx, HPy h_type, const char *message)
295302
{
296303
PyErr_SetString(_h2py(h_type), message);
@@ -471,3 +478,8 @@ HPyAPI_STORAGE HPy _HPy_IMPL_NAME(Dict_New)(HPyContext ctx)
471478
return _py2h(PyDict_New());
472479
}
473480

481+
HPyAPI_STORAGE int _HPy_IMPL_NAME(Tuple_Check)(HPyContext ctx, HPy h)
482+
{
483+
return PyTuple_Check(_h2py(h));
484+
}
485+
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
/* MIT License
2+
*
3+
* Copyright (c) 2021, Oracle and/or its affiliates.
4+
* Copyright (c) 2019 pyhandle
5+
*
6+
* Permission is hereby granted, free of charge, to any person obtaining a copy
7+
* of this software and associated documentation files (the "Software"), to deal
8+
* in the Software without restriction, including without limitation the rights
9+
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10+
* copies of the Software, and to permit persons to whom the Software is
11+
* furnished to do so, subject to the following conditions:
12+
*
13+
* The above copyright notice and this permission notice shall be included in all
14+
* copies or substantial portions of the Software.
15+
*
16+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22+
* SOFTWARE.
23+
*/
24+
25+
#ifndef HPY_COMMON_RUNTIME_CALL_H
26+
#define HPY_COMMON_RUNTIME_CALL_H
27+
28+
#include <Python.h>
29+
#include "hpy.h"
30+
31+
_HPy_HIDDEN HPy
32+
ctx_CallTupleDict(HPyContext ctx, HPy callable, HPy args, HPy kw);
33+
34+
#endif /* HPY_COMMON_RUNTIME_CALL_H */

graalpython/com.oracle.graal.python.cext/include/common/version.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,5 +23,5 @@
2323
*/
2424

2525
// automatically generated by setup.py:get_scm_config()
26-
#define HPY_VERSION "0.1.dev875+g7c832a2"
27-
#define HPY_GIT_REVISION "7c832a2"
26+
#define HPY_VERSION "0.1.dev950+g98f448a"
27+
#define HPY_GIT_REVISION "98f448a"

graalpython/com.oracle.graal.python.cext/include/cpython/autogen_hpyfunc_trampolines.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,9 @@
2626
/*
2727
DO NOT EDIT THIS FILE!
2828
29-
This file is automatically generated by tools/autogen.py from tools/public_api.h.
29+
This file is automatically generated by hpy.tools.autogen.hpyfunc.autogen_cpython_hpyfunc_trampoline_h
30+
See also hpy.tools.autogen and hpy/tools/public_api.h
31+
3032
Run this to regenerate:
3133
make autogen
3234

graalpython/com.oracle.graal.python.cext/include/cpython/hpy.h

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -296,6 +296,7 @@ HPy_AsPyObject(HPyContext ctx, HPy h)
296296
#include "../common/hpydef.h"
297297
#include "../common/hpytype.h"
298298
#include "../common/hpymodule.h"
299+
#include "../common/runtime/ctx_call.h"
299300
#include "../common/runtime/ctx_module.h"
300301
#include "../common/runtime/ctx_type.h"
301302
#include "../common/runtime/ctx_listbuilder.h"
@@ -339,6 +340,12 @@ _HPy_Cast(HPyContext ctx, HPy h)
339340
return ctx_Cast(ctx, h);
340341
}
341342

343+
HPyAPI_FUNC(HPy)
344+
HPy_CallTupleDict(HPyContext ctx, HPy callable, HPy args, HPy kw)
345+
{
346+
return ctx_CallTupleDict(ctx, callable, args, kw);
347+
}
348+
342349
HPyAPI_FUNC(HPyListBuilder)
343350
HPyListBuilder_New(HPyContext ctx, HPy_ssize_t initial_size)
344351
{

graalpython/com.oracle.graal.python.cext/include/universal/autogen_ctx.h

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,9 @@
2626
/*
2727
DO NOT EDIT THIS FILE!
2828
29-
This file is automatically generated by tools/autogen.py from tools/public_api.h.
29+
This file is automatically generated by hpy.tools.autogen.ctx.autogen_ctx_h
30+
See also hpy.tools.autogen and hpy/tools/public_api.h
31+
3032
Run this to regenerate:
3133
make autogen
3234
@@ -171,6 +173,9 @@ struct _HPyContext_s {
171173
HPy (*ctx_InPlaceAnd)(HPyContext ctx, HPy h1, HPy h2);
172174
HPy (*ctx_InPlaceXor)(HPyContext ctx, HPy h1, HPy h2);
173175
HPy (*ctx_InPlaceOr)(HPyContext ctx, HPy h1, HPy h2);
176+
int (*ctx_Callable_Check)(HPyContext ctx, HPy h);
177+
HPy (*ctx_CallTupleDict)(HPyContext ctx, HPy callable, HPy args, HPy kw);
178+
void (*ctx_FatalError)(HPyContext ctx, const char *message);
174179
void (*ctx_Err_SetString)(HPyContext ctx, HPy h_type, const char *message);
175180
void (*ctx_Err_SetObject)(HPyContext ctx, HPy h_type, HPy h_value);
176181
int (*ctx_Err_Occurred)(HPyContext ctx);
@@ -216,8 +221,8 @@ struct _HPyContext_s {
216221
int (*ctx_List_Append)(HPyContext ctx, HPy h_list, HPy h_item);
217222
int (*ctx_Dict_Check)(HPyContext ctx, HPy h);
218223
HPy (*ctx_Dict_New)(HPyContext ctx);
219-
void (*ctx_FatalError)(HPyContext ctx, const char *message);
220224
HPy (*ctx_Tuple_FromArray)(HPyContext ctx, _HPyPtr items, HPy_ssize_t n);
225+
int (*ctx_Tuple_Check)(HPyContext ctx, HPy h);
221226
HPy (*ctx_FromPyObject)(HPyContext ctx, cpy_PyObject *obj);
222227
cpy_PyObject *(*ctx_AsPyObject)(HPyContext ctx, HPy h);
223228
void (*ctx_CallRealFunctionFromTrampoline)(HPyContext ctx, HPyFunc_Signature sig, void *func, void *args);

0 commit comments

Comments
 (0)