aboutsummaryrefslogtreecommitdiff
path: root/dtc.h
diff options
context:
space:
mode:
authorJon Loeliger <jdl@freescale.com>2007-03-23 15:18:41 -0500
committerJon Loeliger <jdl@freescale.com>2007-03-26 08:36:07 -0500
commite45e6fd274826991c2b7e01fde4d73110487e0e0 (patch)
tree5770119a61cc0c2767757a507e074ddd4e80e34e /dtc.h
parentb29597d9a343761f768a9d78a63f1c09e71b43d2 (diff)
downloaddtc-e45e6fd274826991c2b7e01fde4d73110487e0e0.zip
dtc-e45e6fd274826991c2b7e01fde4d73110487e0e0.tar.gz
dtc-e45e6fd274826991c2b7e01fde4d73110487e0e0.tar.bz2
DTC: Add support for a C-like #include "file" mechanism.
Keeps track of open files in a stack, and assigns a filenum to source positions for each lexical token. Modified error reporting to show source file as well. No policy on file directory basis has been decided. Still handles stdin. Tested on all arch/powerpc/boot/dts DTS files Signed-off-by: Jon Loeliger <jdl@freescale.com>
Diffstat (limited to 'dtc.h')
-rw-r--r--dtc.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/dtc.h b/dtc.h
index e3e2863..7ed3df2 100644
--- a/dtc.h
+++ b/dtc.h
@@ -223,7 +223,7 @@ struct boot_info *dt_from_blob(FILE *f);
/* Tree source */
void dt_to_source(FILE *f, struct boot_info *bi);
-struct boot_info *dt_from_source(FILE *f);
+struct boot_info *dt_from_source(const char *f);
/* FS trees */