summaryrefslogtreecommitdiff
path: root/dtc-parser.y
diff options
context:
space:
mode:
authorScott Wood <scottwood@freescale.com>2008-01-03 17:43:31 -0600
committerJon Loeliger <jdl@freescale.com>2008-01-04 08:20:10 -0600
commit910efac4b49f43cb1b66eef5aa0bbd020920bf2a (patch)
tree0e6c49941be4b2003d0bc1dae80849a236abc9ad /dtc-parser.y
parentf77fe6a20e75a2289faf86f9b6b529044a07b072 (diff)
downloaddtc-910efac4b49f43cb1b66eef5aa0bbd020920bf2a.tar.gz
Look for include files in the directory of the including file.
Looking in the diretory dtc is invoked from is not very useful behavior. As part of the code reorganization to implement this, I removed the uniquifying of name storage -- it seemed a rather dubious optimization given likely usage, and some aspects of it would have been mildly awkward to integrate with the new code. Signed-off-by: Scott Wood <scottwood@freescale.com>
Diffstat (limited to 'dtc-parser.y')
-rw-r--r--dtc-parser.y2
1 files changed, 1 insertions, 1 deletions
diff --git a/dtc-parser.y b/dtc-parser.y
index ddb7f27..8ed58e8 100644
--- a/dtc-parser.y
+++ b/dtc-parser.y
@@ -309,7 +309,7 @@ label:
void yyerrorf(char const *s, ...)
{
- const char *fname = srcpos_filename_for_num(yylloc.filenum);
+ const char *fname = srcpos_file ? srcpos_file->name : "<no-file>";
va_list va;
va_start(va, s);