[PATCH] fix windmc typedef bug
authorJoel Anderson <joelanderson333@gmail.com>
Wed, 3 Jun 2020 15:44:37 +0000 (16:44 +0100)
committerNick Clifton <nickc@redhat.com>
Wed, 3 Jun 2020 15:44:37 +0000 (16:44 +0100)
commit913e0fd47321873e1bfecedd73d5882b765fc8e6
tree757a713b5e6bb5d7b396d27cdc2adccd76933ed0
parent5144dfba285d9b467016b7a2f72f0240fda7ce8f
[PATCH] fix windmc typedef bug

While a typedef can be specified in message files for the messages following
with the `MessageIdTypedef` directive, only the last typedef was honored by
windmc. This corrects this behavior, matching mc.exe functionality.

* windmc.h (struct mc_node): Add id_typecast field.
* mcparse.y (message): Initialise the id_typecast field.
* windmc.c (write_dbg): Use the id_typecast field as a parameter
when calling write_dbg_define.
(write_header): Likewise.
binutils/ChangeLog
binutils/mcparse.y
binutils/windmc.c
binutils/windmc.h