From 6aa4fac0c97264a2b1186063c062ae0873582f54 Mon Sep 17 00:00:00 2001 From: Eduardo Julian Date: Fri, 18 Nov 2022 20:56:49 -0400 Subject: Updated the Python compiler to work with the new format for extensions. --- stdlib/source/unsafe/lux/data/binary.lux | 8 ++++---- stdlib/source/unsafe/lux/data/collection/array.lux | 12 ++++++------ 2 files changed, 10 insertions(+), 10 deletions(-) (limited to 'stdlib/source/unsafe') diff --git a/stdlib/source/unsafe/lux/data/binary.lux b/stdlib/source/unsafe/lux/data/binary.lux index 1e79c9480..83a6df975 100644 --- a/stdlib/source/unsafe/lux/data/binary.lux +++ b/stdlib/source/unsafe/lux/data/binary.lux @@ -80,7 +80,7 @@ (,, (.static @.python)) (.|> [] - ("python apply" (.as ffi.Function ("python constant" "bytearray"))) + (.python_apply# (.as ffi.Function (.python_constant# "bytearray"))) (.as ..Binary)) (,, (.static @.scheme)) @@ -107,7 +107,7 @@ (,, (.static @.python)) (.|> (.as (array.Array (.I64 .Any))) - "python array length") + .python_array_length#) (,, (.static @.scheme)) (..bytevector-length []) @@ -145,7 +145,7 @@ (,, (.static @.python)) (.|> (.as (array.Array .I64)) - ("python array read" )) + (.python_array_read# )) (,, (.static @.scheme)) (..bytevector-u8-ref [ ]) @@ -228,7 +228,7 @@ (.|> (.is ..Binary) (.as (array.Array (.I64 .Any))) - ("python array write" (.|> (.i64_and# ) (.is (.I64 .Any)))) + (.python_array_write# (.|> (.i64_and# ) (.is (.I64 .Any)))) (.as ..Binary)) (,, (.static @.scheme)) diff --git a/stdlib/source/unsafe/lux/data/collection/array.lux b/stdlib/source/unsafe/lux/data/collection/array.lux index c8c98508c..8c1d0ce47 100644 --- a/stdlib/source/unsafe/lux/data/collection/array.lux +++ b/stdlib/source/unsafe/lux/data/collection/array.lux @@ -46,7 +46,7 @@ (.is (..Array ))) (,, (.static @.js)) ("js array new" size) - (,, (.static @.python)) ("python array new" size) + (,, (.static @.python)) (.python_array_new# size) (,, (.static @.lua)) ("lua array new" size) (,, (.static @.ruby)) ("ruby array new" size) (,, (.static @.php)) ("php array new" size) @@ -69,7 +69,7 @@ (.as .Nat)) (,, (.static @.js)) ("js array length" array) - (,, (.static @.python)) ("python array length" array) + (,, (.static @.python)) (.python_array_length# array) (,, (.static @.lua)) ("lua array length" array) (,, (.static @.ruby)) ("ruby array length" array) (,, (.static @.php)) ("php array length" array) @@ -96,7 +96,7 @@ .jvm_object_null?#) (,, (.static @.js)) (,, (lacks?' "js array read" "js object undefined?" index array)) - (,, (.static @.python)) (,, (lacks?' "python array read" "python object none?" index array)) + (,, (.static @.python)) (,, (lacks?' .python_array_read# .python_object_none?# index array)) (,, (.static @.lua)) (,, (lacks?' "lua array read" "lua object nil?" index array)) (,, (.static @.ruby)) (,, (lacks?' "ruby array read" "ruby object nil?" index array)) (,, (.static @.php)) (,, (lacks?' "php array read" "php object null?" index array)) @@ -121,7 +121,7 @@ (.jvm_array_read_object# (,, (jvm_int index)) array) (,, (.static @.js)) ("js array read" index array) - (,, (.static @.python)) ("python array read" index array) + (,, (.static @.python)) (.python_array_read# index array) (,, (.static @.lua)) ("lua array read" index array) (,, (.static @.ruby)) ("ruby array read" index array) (,, (.static @.php)) ("php array read" index array) @@ -142,7 +142,7 @@ .as_expected) (,, (.static @.js)) ("js array write" index (.as_expected value) array) - (,, (.static @.python)) ("python array write" index (.as_expected value) array) + (,, (.static @.python)) (.python_array_write# index (.as_expected value) array) (,, (.static @.lua)) ("lua array write" index (.as_expected value) array) (,, (.static @.ruby)) ("ruby array write" index (.as_expected value) array) (,, (.static @.php)) ("php array write" index (.as_expected value) array) @@ -163,7 +163,7 @@ (..has! index (.as_expected (is (.jvm_object_null#))) array) (,, (.static @.js)) ("js array delete" index array) - (,, (.static @.python)) ("python array delete" index array) + (,, (.static @.python)) (.python_array_delete# index array) (,, (.static @.lua)) ("lua array delete" index array) (,, (.static @.ruby)) ("ruby array delete" index array) (,, (.static @.php)) ("php array delete" index array) -- cgit v1.2.3