Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

updated pkpy to v2.0.4 #2730

Draft
wants to merge 3 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -89,3 +89,4 @@
[submodule "vendor/pocketpy"]
path = vendor/pocketpy
url = https://github.com/PrimedErwin/pocketpy.git
shallow = true
1 change: 1 addition & 0 deletions cmake/pocketpy.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ if(BUILD_WITH_PYTHON)

if(NOT WIN32)
option(PK_BUILD_WITH_IPO "" OFF)
option(PK_BUILD_MODULE_LZ4 "" OFF)
endif()

add_subdirectory(${THIRDPARTY_DIR}/pocketpy)
Expand Down
2 changes: 2 additions & 0 deletions src/api/python.c
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,7 @@ static bool py_cls(int argc, py_Ref argv)

color = py_toint(py_arg(0));
core->api.cls(tic, color);
py_assign(py_retval(), py_None());
return true;
}

Expand Down Expand Up @@ -172,6 +173,7 @@ static bool py_spr(int argc, py_Ref argv)
return TypeError("The given argument is not int or list");

core->api.spr(tic, spr_id, x, y, w, h, colors, color_count, scale, flip, rotate);
py_assign(py_retval(), py_None());
return true;
}

Expand Down
2 changes: 1 addition & 1 deletion vendor/pocketpy
Submodule pocketpy updated 92 files
+3 −2 .gitattributes
+11 −0 3rd/lz4/CMakeLists.txt
+2,722 −0 3rd/lz4/lz4libs/lz4.c
+842 −0 3rd/lz4/lz4libs/lz4.h
+11 −0 CMakeLists.txt
+3 −2 README.md
+4 −0 benchmarks/dict_0.py
+24 −0 benchmarks/dumps_loads_json.py
+24 −0 benchmarks/dumps_loads_pkl.py
+1 −8 benchmarks/ldtk_json.py
+3 −0 benchmarks/vec.py
+17 −0 build_g_32.sh
+1 −0 compile_flags.txt
+0 −1 docs/modules/gc.md
+1 −1 docs/modules/linalg.md
+14 −0 docs/modules/lz4.md
+1 −1 docs/retype.yml
+0 −1 include/pocketpy/common/_generated.h
+8 −0 include/pocketpy/common/smallmap.h
+2 −2 include/pocketpy/common/utils.h
+4 −14 include/pocketpy/common/vector.h
+1 −4 include/pocketpy/compiler/lexer.h
+5 −2 include/pocketpy/config.h
+21 −0 include/pocketpy/interpreter/array2d.h
+1 −1 include/pocketpy/interpreter/generator.h
+8 −1 include/pocketpy/interpreter/modules.h
+21 −4 include/pocketpy/pocketpy.h
+4 −0 include/pocketpy/xmacros/magics.h
+34 −19 include/typings/array2d.pyi
+1 −0 include/typings/inspect.pyi
+25 −1 include/typings/linalg.pyi
+11 −0 include/typings/lz4.pyi
+13 −0 include/typings/pkpy.pyi
+158 −26 plugins/flutter/pocketpy/lib/pocketpy_bindings_generated.dart
+1 −1 plugins/flutter/pocketpy/pubspec.yaml
+2 −2 python/collections.py
+4 −4 python/datetime.py
+0 −182 python/pickle.py
+1 −0 python/typing.py
+49 −0 scripts/check_undef.py
+45 −0 scripts/gen_primes.py
+3 −5 src/common/_generated.c
+1 −0 src/common/memorypool.c
+8 −0 src/common/smallmap.c
+21 −9 src/common/sstream.c
+7 −8 src/common/str.c
+19 −40 src/common/vector.c
+98 −49 src/compiler/compiler.c
+4 −97 src/compiler/lexer.c
+104 −23 src/interpreter/ceval.c
+6 −5 src/interpreter/generator.c
+4 −1 src/interpreter/typeinfo.c
+13 −6 src/interpreter/vm.c
+213 −93 src/modules/array2d.c
+2 −1 src/modules/dis.c
+1 −0 src/modules/gc.c
+28 −0 src/modules/inspect.c
+6 −1 src/modules/json.c
+73 −32 src/modules/linalg.c
+50 −0 src/modules/lz4.c
+4 −1 src/modules/math.c
+183 −7 src/modules/os.c
+731 −0 src/modules/pickle.c
+71 −0 src/modules/pkpy.c
+21 −6 src/modules/random.c
+4 −1 src/modules/time.c
+3 −3 src/objects/codeobject.c
+8 −5 src/public/cast.c
+1 −1 src/public/exec.c
+23 −13 src/public/internal.c
+44 −27 src/public/modules.c
+0 −3 src/public/py_array.c
+162 −67 src/public/py_dict.c
+4 −3 src/public/py_list.c
+26 −29 src/public/py_number.c
+8 −3 src/public/py_object.c
+0 −12 src/public/py_ops.c
+18 −5 src/public/py_str.c
+11 −0 src/public/values.c
+15 −6 tests/04_str.py
+10 −0 tests/08_dict.py
+14 −0 tests/41_class_ex.py
+27 −1 tests/43_closure.py
+8 −6 tests/72_collections.py
+1 −0 tests/77_builtin_func.py
+2 −3 tests/79_file.py
+42 −9 tests/80_linalg.py
+94 −31 tests/90_array2d.py
+143 −0 tests/90_pickle.py
+49 −0 tests/97_inspect.py
+31 −0 tests/98_lz4.py
+73 −2 tests/99_extras.py
Loading