[2/5] dtc: Use flex's YY_USER_ACTION feature to avoid code duplication
Jon Loeliger
jdl at jdl.com
Sat Oct 4 03:16:28 EST 2008
> Current, every lexer rule starts with some boiler plate to update the
> yylloc value for use by the parser. One of the rules, even mistakenly
> has a redundant allocation to one of the members.
>
> This patch uses the flex YY_USER_ACTION macro hook, which is executed
> before every rule to avoid this duplication.
>
> Signed-off-by: David Gibson <david at gibson.dropbear.id.au>
Applied.
Thanks,
jdl
More information about the devicetree-discuss
mailing list