diff options
author | Jon Loeliger <jdl@jdl.com> | 2008-10-03 11:46:43 -0500 |
---|---|---|
committer | Jon Loeliger <jdl@jdl.com> | 2008-10-03 11:46:43 -0500 |
commit | 83ac55d9c4669397f3f2454d3c72dd34e5de5490 (patch) | |
tree | da01d8d25532e7160650d688895dc9e5f8c47352 /srcpos.h | |
parent | 879e4d2590b50d63f82c3c3652bc3c7900591f1c (diff) | |
download | dtc-83ac55d9c4669397f3f2454d3c72dd34e5de5490.zip dtc-83ac55d9c4669397f3f2454d3c72dd34e5de5490.tar.gz dtc-83ac55d9c4669397f3f2454d3c72dd34e5de5490.tar.bz2 |
Use flex's YY_USER_ACTION feature to avoid code duplication
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@gibson.dropbear.id.au>
Diffstat (limited to 'srcpos.h')
0 files changed, 0 insertions, 0 deletions