Skip to contentSkip to conversation

DTC: Introduce better DTS literal support

PATCH In review Jon Loeliger 2 participants 2 messages Oct 19, 2007

lore
Share & tools
lore
#0 lore raw

cover DTC: Introduce better DTS literal support

Folks,

This 4 part patch series for the DTC has:

0001-Reformat-grammar-rules-to-not-mix-language-syntax-an.patch 0002-Quiet-a-bogus-May-be-used-uninitialized-warning.patch 0003-Appease-the-printf-format-Gods-with-a-correct-typ.patch 0004-Begin-the-path-to-sane-literals-and-expressions.patch

The first is a pure whitespace formatting cleaning. The second two clean compiler warnings.
The final one introduces a versioned DTS file with
support for C-like literals.

 dtc-lexer.l      |  180 ++++++++++++++++++++++++++++--------
 dtc-parser.y     |  275 ++++++++++++++++++++++++++++++++++++++++--------------
 dtc.c            |   26 +++++
 dtc.h            |   23 ++++-
 flattree.c       |    2 +-
 srcpos.h         |    1 +
 tests/get_name.c |    2 +-
 treesource.c     |   24 ++++-
 8 files changed, 413 insertions(+), 120 deletions(-)

Thanks,
jdl

#1 lore raw
Quoted 9 lines · Jon Loeliger

Folks,

This 4 part patch series for the DTC has:

0001-Reformat-grammar-rules-to-not-mix-language-syntax-an.patch 0002-Quiet-a-bogus-May-be-used-uninitialized-warning.patch 0003-Appease-the-printf-format-Gods-with-a-correct-typ.patch 0004-Begin-the-path-to-sane-literals-and-expressions.patch

Quoted 4 lines

The first is a pure whitespace formatting cleaning. The second two clean compiler warnings.
The final one introduces a versioned DTS file with
support for C-like literals.

I certainly have some comments on these, but I'm busy today and won't be able to comment in detail until Monday or so. Please don't apply them to mainline before then?

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