From: Matt Corallo Date: Mon, 16 Oct 2023 02:40:00 +0000 (+0000) Subject: Correct unitary enum C type variable name X-Git-Tag: v0.0.118.0^2~10 X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=commitdiff_plain;h=2f8218ecc6d7c18fb331e5429960e296dd43b943;p=ldk-java Correct unitary enum C type variable name --- diff --git a/csharp_strings.py b/csharp_strings.py index 74830d04..0e533223 100644 --- a/csharp_strings.py +++ b/csharp_strings.py @@ -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, ", ")") diff --git a/genbindings.py b/genbindings.py index 9f5c9545..67de2821 100755 --- a/genbindings.py +++ b/genbindings.py @@ -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() diff --git a/java_strings.py b/java_strings.py index abe038d0..33326cd4 100644 --- a/java_strings.py +++ b/java_strings.py @@ -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, ", ")") diff --git a/python_strings.py b/python_strings.py index 752b3015..d5157bf0 100644 --- a/python_strings.py +++ b/python_strings.py @@ -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") diff --git a/typescript_strings.py b/typescript_strings.py index b66181f3..1f050bad 100644 --- a/typescript_strings.py +++ b/typescript_strings.py @@ -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")