Mirror of DTC
Find a file
David Gibson a756c12bea dtc: Improve support for string escapes
dtc supports the use of C-style escapes (\n, \t and so forth) in
string property definitions via the data_copy_escape_string()
function.  However, while it supports the most common escape
characters, it doesn't support the full set that C does, which is a
potential gotcha.

Worse, a bug in the lexer means that while data_copy_escape_string()
can handle the \" escape, a string with such an escape won't lex
correctly.

This patch fixes both problems, extending data_copy_escape_string() to
support the missing escapes, and fixing the regex for strings in the
lexer to handle internal escaped quotes.

This also adds a testcase for string escape functionality.

Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
2007-10-16 08:10:15 -05:00
Documentation dtc: Whitespace cleanup 2007-09-18 09:43:26 -05:00
libfdt libfdt: Add functions for handling the "compatible" property 2007-10-16 07:41:37 -05:00
scripts Add DTC release version information. 2007-07-07 13:52:25 -05:00
tests dtc: Improve support for string escapes 2007-10-16 08:10:15 -05:00
.gitignore Merge libfdt into dtc. 2007-06-14 15:05:55 +10:00
comment-test.dts Initial label support. Also switch to glr-parser mode and get rid of 2005-06-16 14:36:37 +10:00
data.c dtc: Improve support for string escapes 2007-10-16 08:10:15 -05:00
dtc-lexer.l dtc: Improve support for string escapes 2007-10-16 08:10:15 -05:00
dtc-parser.y dtc: Whitespace cleanup 2007-09-18 09:43:26 -05:00
dtc.c dtc: Use libfdt/fdt.h instead of flat_dt.h 2007-09-27 08:21:18 -05:00
dtc.h dtc: Use libfdt/fdt.h instead of flat_dt.h 2007-09-27 08:21:18 -05:00
flattree.c dtc: Use libfdt/fdt.h instead of flat_dt.h 2007-09-27 08:21:18 -05:00
fstree.c dtc: Whitespace cleanup 2007-09-18 09:43:26 -05:00
ftdump.c dtc: Use libfdt/fdt.h instead of flat_dt.h 2007-09-27 08:21:18 -05:00
GPL dtc: Remove redundant copy of the GPL 2007-06-25 21:43:11 -05:00
livetree.c dtc: Whitespace cleanup 2007-09-18 09:43:26 -05:00
Makefile Restore warning message about bison expected output. 2007-10-16 07:36:30 -05:00
Makefile.dtc dtc: Refactor Makefiles 2007-10-15 08:28:07 -05:00
srcpos.c DTC: Add support for a C-like #include "file" mechanism. 2007-03-26 08:36:07 -05:00
srcpos.h dtc: move declaration of yyerror 2007-07-07 10:07:27 -05:00
TODO Update TODO 2005-10-19 16:29:52 +10:00
treesource.c dtc: Whitespace cleanup 2007-09-18 09:43:26 -05:00