generator: Fix functions with both RBufferOut and optional args.
authorRichard W.M. Jones <rjones@redhat.com>
Tue, 28 Jun 2011 07:50:14 +0000 (08:50 +0100)
committerRichard W.M. Jones <rjones@redhat.com>
Wed, 13 Jul 2011 15:51:18 +0000 (16:51 +0100)
commita3f4c85bd1ebd994c41e58986ddd8fb7f59f5898
treeca5bf2f122337f13338ac8804043acad4010c29d
parentd0c7e1d994f1b6ee64cc131d87cd652a2afba0d6
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.
(cherry picked from commit adb5db58d850ce6d15380177a63c68276f863c98)
generator/generator_c.ml
generator/generator_java.ml