diff options
author | Anton Staaf <robotboy@chromium.org> | 2011-09-09 12:16:30 -0700 |
---|---|---|
committer | Jon Loeliger <jdl@jdl.com> | 2011-09-22 09:24:31 -0500 |
commit | a4ea2fa9518ff0f4d7f4a08647599a727faac2e0 (patch) | |
tree | 1d51fe9f5d39c2beb168a20efb90cc51e6f46d52 /tests/testdata.h | |
parent | 83df28bd39979b32a75656cac291c36dbd4e5497 (diff) | |
download | dtc-a4ea2fa9518ff0f4d7f4a08647599a727faac2e0.zip dtc-a4ea2fa9518ff0f4d7f4a08647599a727faac2e0.tar.gz dtc-a4ea2fa9518ff0f4d7f4a08647599a727faac2e0.tar.bz2 |
dtc: Support character literals in cell lists
With this patch the following property assignment:
property = <0x12345678 'a' '\r' 100>;
is equivalent to:
property = <0x12345678 0x00000061 0x0000000D 0x00000064>
Signed-off-by: Anton Staaf <robotboy@chromium.org>
Acked-by: David Gibson <david@gibson.dropbear.id.au>
Diffstat (limited to 'tests/testdata.h')
-rw-r--r-- | tests/testdata.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/testdata.h b/tests/testdata.h index 5b5a9a3..d4c6759 100644 --- a/tests/testdata.h +++ b/tests/testdata.h @@ -19,6 +19,12 @@ #define TEST_STRING_2 "nastystring: \a\b\t\n\v\f\r\\\"" #define TEST_STRING_3 "\xde\xad\xbe\xef" +#define TEST_CHAR1 '\r' +#define TEST_CHAR2 'b' +#define TEST_CHAR3 '\0' +#define TEST_CHAR4 '\'' +#define TEST_CHAR5 '\xff' + #ifndef __ASSEMBLY__ extern struct fdt_header _test_tree1; extern struct fdt_header _truncated_property; |