diff options
author | Richard W.M. Jones <rjones@redhat.com> | 2011-06-28 08:50:14 +0100 |
---|---|---|
committer | Richard W.M. Jones <rjones@redhat.com> | 2011-06-28 17:03:08 +0100 |
commit | adb5db58d850ce6d15380177a63c68276f863c98 (patch) | |
tree | d0d91d1501049df61c577aba632c83e4cf47bdac /generator/generator_java.ml | |
parent | ea96c7acf7a332c08c2214796add647224a2ede0 (diff) | |
download | libguestfs-adb5db58d850ce6d15380177a63c68276f863c98.tar.gz libguestfs-adb5db58d850ce6d15380177a63c68276f863c98.tar.xz libguestfs-adb5db58d850ce6d15380177a63c68276f863c98.zip |
generator: Fix functions with both RBufferOut and optional args.
No current function returns RBufferOut and has optional args. Such
functions would be generated incorrectly.
RBufferOut implies a silent "size_t *size_r" argument is added after
the regular arguments and before the optional arguments. Various
changes to the code generator need to be made to take this into
account.
Diffstat (limited to 'generator/generator_java.ml')
-rw-r--r-- | generator/generator_java.ml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/generator/generator_java.ml b/generator/generator_java.ml index 767c94cf..97bee841 100644 --- a/generator/generator_java.ml +++ b/generator/generator_java.ml @@ -576,7 +576,7 @@ Java_com_redhat_et_libguestfs_GuestFS__1close let cols = cols_of_struct typ in generate_java_struct_list_return typ jtyp cols | RBufferOut _ -> - pr " jr = (*env)->NewStringUTF (env, r); /* XXX size */\n"; + pr " jr = (*env)->NewStringUTF (env, r); // XXX size\n"; pr " free (r);\n"; pr " return jr;\n" ); |