[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.
This commit is contained in:
Joel Anderson
2020-06-03 16:44:37 +01:00
committed by Nick Clifton
parent 5144dfba28
commit 913e0fd473
4 changed files with 12 additions and 2 deletions

View File

@@ -66,6 +66,7 @@ typedef struct mc_node
unichar *symbol;
rc_uint_type id;
rc_uint_type vid;
unichar *id_typecast;
mc_node_lang *sub;
} mc_node;