summaryrefslogtreecommitdiffstats
path: root/src/pre.l
diff options
context:
space:
mode:
authordimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7>2000-03-05 18:16:47 (GMT)
committerdimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7>2000-03-05 18:16:47 (GMT)
commit000241f7603af61328b25cd9a9defc40be43e558 (patch)
treefea55c7f521b9b8d4c7cdecc6579109f17cae89a /src/pre.l
parent75cfc919c930dc2a5c9e6770d6b1e7b09e5e8883 (diff)
downloadDoxygen-000241f7603af61328b25cd9a9defc40be43e558.zip
Doxygen-000241f7603af61328b25cd9a9defc40be43e558.tar.gz
Doxygen-000241f7603af61328b25cd9a9defc40be43e558.tar.bz2
Release_1.1.0-20000305
Diffstat (limited to 'src/pre.l')
-rw-r--r--src/pre.l5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/pre.l b/src/pre.l
index 8252578..4c91dd5 100644
--- a/src/pre.l
+++ b/src/pre.l
@@ -818,6 +818,7 @@ static void readIncludeFile(const QCString &inc)
FILE *f;
QCString oldFileName = g_yyFileName.copy();
FileDef *oldFileDef = g_yyFileDef;
+ //printf("Searching for `%s'\n",incFileName.data());
if ((f=findFile(incFileName))) // see if the include file can be found
{
#if SHOW_INCLUDES
@@ -845,8 +846,10 @@ static void readIncludeFile(const QCString &inc)
{
if (oldFileDef)
{
+ bool ambig;
+ FileDef *fd = findFileDef(&inputNameDict,incFileName,ambig);
// add include dependency to the file in which the #include was found
- oldFileDef->addIncludeDependency(0,incFileName,localInclude);
+ oldFileDef->addIncludeDependency(fd,incFileName,localInclude);
}
#if SHOW_INCLUDES
msg("#include %s: not found! skipping...\n",incFileName.data());