]> git.bitcoin.ninja Git - ldk-java/commitdiff
Correct unitary enum C type variable name
authorMatt Corallo <git@bluematt.me>
Mon, 16 Oct 2023 02:40:00 +0000 (02:40 +0000)
committerMatt Corallo <git@bluematt.me>
Mon, 16 Oct 2023 02:40:00 +0000 (02:40 +0000)
csharp_strings.py
genbindings.py
java_strings.py
python_strings.py
typescript_strings.py

index 74830d0458ce2a56bc23a15fd3a5e76b130cf906..0e5332233d784c050ef172ea5f1ef353e41a05f7 100644 (file)
@@ -440,7 +440,7 @@ namespace org { namespace ldk { namespace structs {
         self.usize_c_ty = "int64_t"
         self.usize_native_ty = "long"
         self.native_zero_ptr = "0"
-        self.result_c_ty = "jclass"
+        self.unitary_enum_c_ty = "int32_t"
         self.ptr_arr = "jobjectArray"
         self.is_arr_some_check = ("", " != NULL")
         self.get_native_arr_len_call = ("(*env)->GetArrayLength(env, ", ")")
index 9f5c9545a6305157ffaac04e9af71edd56bc3bdc..67de282141766d5422cc5911e3a2add7e3a6ddd1 100755 (executable)
@@ -384,7 +384,7 @@ def java_c_types(fn_arg, ret_arr_len):
             assert ma.group(1).strip().startswith("LDK")
             java_ty = ma.group(1).strip()[3:]
             java_hu_ty = java_ty
-            c_ty = consts.result_c_ty
+            c_ty = consts.unitary_enum_c_ty
             fn_ty_arg = "Lorg/ldk/enums/" + java_ty + ";"
             fn_arg = ma.group(2).strip()
             rust_obj = ma.group(1).strip()
index abe038d0f403a74bb0ba2735818d087921b3248d..33326cd4332c7273753b292591320436ecff8e23 100644 (file)
@@ -627,7 +627,7 @@ import javax.annotation.Nullable;
         self.usize_c_ty = "int64_t"
         self.usize_native_ty = "long"
         self.native_zero_ptr = "0"
-        self.result_c_ty = "jclass"
+        self.unitary_enum_c_ty = "jclass"
         self.ptr_arr = "jobjectArray"
         self.is_arr_some_check = ("", " != NULL")
         self.get_native_arr_len_call = ("(*env)->GetArrayLength(env, ", ")")
index 752b3015757aabc45bef00cb05b8d4b80d3990d6..d5157bf09ea6cee9c127467628c6a6c41a0592e2 100644 (file)
@@ -679,7 +679,7 @@ import * as bindings from '../bindings.mjs'
         self.usize_c_ty = "uint32_t"
         self.usize_native_ty = "number"
         self.native_zero_ptr = "0n"
-        self.result_c_ty = "uint32_t"
+        self.unitary_enum_c_ty = "uint32_t"
         self.ptr_arr = "ptrArray"
         self.is_arr_some_check = ("", " != 0")
         self.get_native_arr_len_call = ("", "->arr_len")
index b66181f37ddb5a840098680eefbaf27cf015b22b..1f050bada4e7ed0bbd802d0449bd4757e4e0e021 100644 (file)
@@ -752,7 +752,7 @@ import * as bindings from '../bindings.mjs'
         self.usize_c_ty = "uint32_t"
         self.usize_native_ty = "number"
         self.native_zero_ptr = "0n"
-        self.result_c_ty = "uint32_t"
+        self.unitary_enum_c_ty = "uint32_t"
         self.ptr_arr = "ptrArray"
         self.is_arr_some_check = ("", " != 0")
         self.get_native_arr_len_call = ("", "->arr_len")