PR c/79022 fix mismatch parameter order in declaratio
commit92cf93d98f0e07294056a472852b3b965c42b72d
authorJonathan Wakely <jwakely@redhat.com>
Thu, 28 Mar 2019 13:42:48 +0000 (28 13:42 +0000)
committerJonathan Wakely <redi@gcc.gnu.org>
Thu, 28 Mar 2019 13:42:48 +0000 (28 13:42 +0000)
tree83adffbb20405d9bfafa985ff16b43d0f8d50c3c
parent684f60085bbeeb65ce5cad0065618f3c3789f0e8
PR c/79022 fix mismatch parameter order in declaratio

The declaration of create_nested_ptr_option in the header has the 'from'
and 'to' parameters in the opposite order from the definition in
gengtype.c:

  /* Return an options structure for a "nested_ptr" option.  */
  options_p
  create_nested_ptr_option (options_p next, type_p t,
                            const char *to, const char *from)

and the only caller in gengtype-parse.c:

  return create_nested_ptr_option (prev, ty, to, from);

This patch swaps the parameter names in the declaration.

PR c/79022
* gengtype.h (create_nested_ptr_option): Fix parameter names to match
definition.

From-SVN: r269990
gcc/ChangeLog
gcc/gengtype.h