aboutsummaryrefslogtreecommitdiff
path: root/srcpos.c
diff options
context:
space:
mode:
authorJon Loeliger <jdl@jdl.com>2008-10-03 11:46:43 -0500
committerJon Loeliger <jdl@jdl.com>2008-10-03 11:46:43 -0500
commit83ac55d9c4669397f3f2454d3c72dd34e5de5490 (patch)
treeda01d8d25532e7160650d688895dc9e5f8c47352 /srcpos.c
parent879e4d2590b50d63f82c3c3652bc3c7900591f1c (diff)
downloaddtc-83ac55d9c4669397f3f2454d3c72dd34e5de5490.tar.gz
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.c')
0 files changed, 0 insertions, 0 deletions