Skip to content

dtc: srcpos, input handling cleanups

David Gibson linux-devicetree 1 version Applied

Status from this message: Applied.

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest5 patches 11 repliesApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/5dtc: Implement and use an xstrdup() functionconvert-dtsv0-lexer.l dtc-lexer.l dtc-parser.y +7 more+32 -202 replies
2/5dtc: Use flex's YY_USER_ACTION feature to avoid code duplicationdtc-lexer.l+5 -315 replies
3/5dtc: Cleanup yyerrorf() functiondtc-parser.y srcpos.c srcpos.h+25 -262 replies
4/5dtc: Cleanup yylloc type and handlingdtc-lexer.l srcpos.c srcpos.h+37 -482 replies
5/5dtc: Clean up source file managementconvert-dtsv0-lexer.l dtc-lexer.l dtc-parser.y +6 more+133 -2170 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [0/5] dtc: srcpos, input handling cleanups

While working on the expression / macro / function support stuff, my irritation with some uglies I've been meaning to clean up for ages reached critical point.

So, here's a patch series cleaning up the input file handling, and the srcpos / parser location tracking stuff. This is a fusion of some stuff I've had on the back-burner for a while with the srcpos related pieces from jdl's interpreted language series.

I'm pretty happy with patches 1-4, but 5 probably needs a bit more polish, and I'd like to add another patch adding column number tracking and a cleaner way of doing line tracking. But it's late and I'd like to get what I have out for people to look at.

Signature · 4 lines
David Gibson			| I'll have my music baroque, and my code
david AT gibson.dropbear.id.au	| minimalist, thank you.  NOT _the_ _other_
				| _way_ _around_!
http://www.ozlabs.org/~dgibson