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>
Tue, 28 Jun 2011 16:03:08 +0000 (17:03 +0100)
commitadb5db58d850ce6d15380177a63c68276f863c98
treed0d91d1501049df61c577aba632c83e4cf47bdac
parentea96c7acf7a332c08c2214796add647224a2ede0
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.
generator/generator_c.ml
generator/generator_java.ml