diff options
author | David Gibson <david@gibson.dropbear.id.au> | 2008-03-17 17:03:47 +1100 |
---|---|---|
committer | Jon Loeliger <jdl@loeliger.com> | 2008-03-23 08:00:33 -0500 |
commit | 2192d46dfdbb05cea13c853f7579b1386cdc4380 (patch) | |
tree | a762d64bccd85c6af0633b9aaa6de6087a95e50d /dtc.c | |
parent | 3bdd393965aa1f35c293074e6701b9c550aeae54 (diff) | |
download | device-tree-compiler-2192d46dfdbb05cea13c853f7579b1386cdc4380.tar.gz |
dtc: Cleanup \nnn and \xNN string escape handling
Several small cleanups to the handling of octal and hex string
escapes:
- Use strncmp() instead dof what were essentially open-coded
versions of the same, with short fixed lengths.
- The call path to get_oct_char() means an empty escape is not
possible. So replace the error message in this case with an
assert.
- Use die() instead of a non-fatal error message if
get_hex_char() is given an empty escape. Change error
message to close match gcc's in the same circumstance.
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Diffstat (limited to 'dtc.c')
0 files changed, 0 insertions, 0 deletions