diff options
author | David Gibson <david@gibson.dropbear.id.au> | 2009-12-08 14:24:42 +1100 |
---|---|---|
committer | Jon Loeliger <jdl@jdl.com> | 2010-01-14 07:53:00 -0600 |
commit | c6225f86fd7fe2c46ba30203e0582900e2260f9c (patch) | |
tree | 1f04d566b624a6dab149928cfdbc3d174ca5fe2e /dtc-parser.y | |
parent | e1fee329e2a74141fc6872a5c4307d078c4ba553 (diff) | |
download | device-tree-compiler-c6225f86fd7fe2c46ba30203e0582900e2260f9c.tar.gz |
dtc: Cleanup YYLTYPE and YYLLOC_DEFAULT declarations
This patch makes some small cleanups to the declaration of YYLTYPE,
YYLLOC_DEFAULT and related things.
- We used to use undocumented magic #defines for bison,
YYLTYPE_IS_DECLARED and YYLTYPE_IS_TRIVIAL. This may not be
portable across bison versions. Instead define YYLTYPE as a
macro in terms of struct srcpos, as the info pages suggest.
- Our kernel-derived coding style discourages typedefed
structures. So use 'struct srcpos' instead of 'srcpos'
throughout'.
- Indent the YYLLOC_DEFAULT macro according to our coding
style (it was in GNU indent style, since it was taken from
the example in the bison info).
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Diffstat (limited to 'dtc-parser.y')
0 files changed, 0 insertions, 0 deletions