Mirror of DTC
Find a file
David Gibson ed01ae41e2 dtc: Refactor printing of property values in -Odts mode
Currently the main recursive tree printing function,
write_tree_source_node(), calls guess_type() to apply heuristics to
see how to print a property value, then calls the appropriate
write_propval_*() function to print it.

However, future heuristics for handling internal labels and the like
don't work well this way.  Therefore, this patch refactors things to
have write_tree_source_node() call a new write_propval() function,
which incorporates the heurstic logic from guess_type() and also calls
the right function to do the actual printing.

No behavioural change.

Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
2007-11-08 09:00:36 -06:00
Documentation dtc: Whitespace cleanup 2007-09-18 09:43:26 -05:00
libfdt libfdt: Add more documentation (patch the fourth) 2007-11-05 08:49:28 -06:00
scripts Add DTC release version information. 2007-07-07 13:52:25 -05:00
tests libfdt: Fix sw_tree1 testcase 2007-11-06 12:18:32 -06:00
.gitignore Merge libfdt into dtc. 2007-06-14 15:05:55 +10:00
checks.c dtc: Move tree checking code to checks.c 2007-11-01 08:03:37 -05: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: data.c doesn't need to include dtc-parser.tab.h 2007-10-22 09:54:16 -05:00
dtc-lexer.l dtc: Improve support for string escapes 2007-10-16 08:10:15 -05:00
dtc-parser.y dtc: Don't force alignment of cell list data 2007-11-05 08:42:10 -06:00
dtc.c dtc: Disable semantic checks by default 2007-10-22 09:53:15 -05:00
dtc.h dtc: Move tree checking code to checks.c 2007-11-01 08:03:37 -05:00
flattree.c Quiet a bogus "May be used uninitialized" warning. 2007-10-23 10:13:00 -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: Move tree checking code to checks.c 2007-11-01 08:03:37 -05:00
Makefile dtc: Fix the install target 2007-11-05 08:48:42 -06:00
Makefile.dtc dtc: Move tree checking code to checks.c 2007-11-01 08:03:37 -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: Refactor printing of property values in -Odts mode 2007-11-08 09:00:36 -06:00