X-Git-Url: http://git.bitcoin.ninja/index.cgi?p=ldk-java;a=blobdiff_plain;f=typescript_strings.py;fp=typescript_strings.py;h=794f9ce1672a8516ee72b330e3d4eca134c6b9bb;hp=a3c706ecafc98bf22eb893c41eeb8cf53fcd69db;hb=8674ba961988bb6f9604829104f1defa7f386499;hpb=bbc02b4a3cfdb5f32cdd650fdcd4dc4e55ca1517 diff --git a/typescript_strings.py b/typescript_strings.py index a3c706ec..794f9ce1 100644 --- a/typescript_strings.py +++ b/typescript_strings.py @@ -673,7 +673,7 @@ const decodeString = (stringPointer, free = true) => { for idx, fn_line in enumerate(field_function_lines): if fn_line.fn_name != "free" and fn_line.fn_name != "clone": assert fn_line.ret_ty_info.ty_info.get_full_rust_ty()[1] == "" - out_c = out_c + fn_line.ret_ty_info.ty_info.get_full_rust_ty()[0] + " " + fn_line.fn_name + "_jcall(" + out_c = out_c + fn_line.ret_ty_info.ty_info.get_full_rust_ty()[0] + " " + fn_line.fn_name + "_" + struct_name + "_jcall(" if fn_line.self_is_const: out_c = out_c + "const void* this_arg" else: @@ -745,7 +745,7 @@ const decodeString = (stringPointer, free = true) => { out_c = out_c + "\t\t.this_arg = (void*) calls,\n" for fn_line in field_function_lines: if fn_line.fn_name != "free" and fn_line.fn_name != "clone": - out_c = out_c + "\t\t." + fn_line.fn_name + " = " + fn_line.fn_name + "_jcall,\n" + out_c = out_c + "\t\t." + fn_line.fn_name + " = " + fn_line.fn_name + "_" + struct_name + "_jcall,\n" elif fn_line.fn_name == "free": out_c = out_c + "\t\t.free = " + struct_name + "_JCalls_free,\n" else: