summaryrefslogtreecommitdiffstats
path: root/src/pre.l
diff options
context:
space:
mode:
authorDimitri van Heesch <dimitri@stack.nl>2002-06-09 16:56:34 (GMT)
committerDimitri van Heesch <dimitri@stack.nl>2002-06-09 16:56:34 (GMT)
commitf7c4c021594300b449c3991de8c0918ad7f965af (patch)
tree84818288910d8f77f48ecf8e6b5fe3f4291d7a18 /src/pre.l
parentc562786745020f7a59d4006537416ed43c2de2ff (diff)
downloadDoxygen-f7c4c021594300b449c3991de8c0918ad7f965af.zip
Doxygen-f7c4c021594300b449c3991de8c0918ad7f965af.tar.gz
Doxygen-f7c4c021594300b449c3991de8c0918ad7f965af.tar.bz2
Release-1.2.16-20020609
Diffstat (limited to 'src/pre.l')
-rw-r--r--src/pre.l4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/pre.l b/src/pre.l
index 7af3435..5d957ef 100644
--- a/src/pre.l
+++ b/src/pre.l
@@ -105,6 +105,7 @@ static void setFileName(const char *name)
bool ambig;
g_yyFileName=name;
g_yyFileDef=findFileDef(Doxygen::inputNameDict,g_yyFileName,ambig);
+ if (g_yyFileDef && g_yyFileDef->isReference()) g_yyFileDef=0;
}
static void incrLevel()
@@ -164,6 +165,7 @@ static Define *isDefined(const char *name)
static FILE *checkAndOpenFile(const QCString &absName)
{
FILE *f = 0;
+ //printf("checkAndOpenFile(%s)\n",absName.data());
QFileInfo fi(absName);
if (fi.exists() && fi.isFile())
{
@@ -942,6 +944,7 @@ static void readIncludeFile(const QCString &inc)
//printf("Searching for `%s'\n",incFileName.data());
if ((f=findFile(incFileName,localInclude))) // see if the include file can be found
{
+ //printf("Found include file!\n");
if (Debug::isFlagSet(Debug::Preprocessor))
{
for (i=0;i<g_includeStack.count();i++) msg(" ");
@@ -983,6 +986,7 @@ static void readIncludeFile(const QCString &inc)
{
bool ambig;
FileDef *fd = findFileDef(Doxygen::inputNameDict,incFileName,ambig);
+ //printf("findFileDef(%s)=%p\n",incFileName.data(),fd);
// add include dependency to the file in which the #include was found
oldFileDef->addIncludeDependency(fd,incFileName,localInclude);
// add included by dependency