From 910efac4b49f43cb1b66eef5aa0bbd020920bf2a Mon Sep 17 00:00:00 2001 From: Scott Wood Date: Thu, 3 Jan 2008 17:43:31 -0600 Subject: 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 --- dtc-parser.y | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'dtc-parser.y') 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 : ""; va_list va; va_start(va, s); -- cgit v1.2.1