summaryrefslogtreecommitdiffstats
path: root/src/code.l
diff options
context:
space:
mode:
authorDimitri van Heesch <dimitri@stack.nl>2002-06-02 22:07:26 (GMT)
committerDimitri van Heesch <dimitri@stack.nl>2002-06-02 22:07:26 (GMT)
commitc562786745020f7a59d4006537416ed43c2de2ff (patch)
treebd8f2ab65015f145bfdba953a3546c2340641c4a /src/code.l
parent6f9fc044cdf4ac15a489746d5b0167c9fc433f66 (diff)
downloadDoxygen-c562786745020f7a59d4006537416ed43c2de2ff.zip
Doxygen-c562786745020f7a59d4006537416ed43c2de2ff.tar.gz
Doxygen-c562786745020f7a59d4006537416ed43c2de2ff.tar.bz2
Doxygen-1.2.16-20020603
Diffstat (limited to 'src/code.l')
-rw-r--r--src/code.l15
1 files changed, 9 insertions, 6 deletions
diff --git a/src/code.l b/src/code.l
index 533f2dd..42eda81 100644
--- a/src/code.l
+++ b/src/code.l
@@ -1057,13 +1057,16 @@ TYPEKW ("bool"|"char"|"double"|"float"|"int"|"long"|"short"|"signed"|"unsigned"
if (!name.isEmpty() && g_sourceFileDef)
{
FileName *fn = Doxygen::inputNameDict->find(name);
- FileNameIterator fni(*fn);
- // for each include name
- for (fni.toFirst();!found && (fd=fni.current());++fni)
+ if (fn)
{
- // see if this source file actually includes the file
- found = g_sourceFileDef->isIncluded(fd->absFilePath());
- //printf(" include file %s found=%d\n",fd->absFilePath().data(),found);
+ FileNameIterator fni(*fn);
+ // for each include name
+ for (fni.toFirst();!found && (fd=fni.current());++fni)
+ {
+ // see if this source file actually includes the file
+ found = g_sourceFileDef->isIncluded(fd->absFilePath());
+ //printf(" include file %s found=%d\n",fd->absFilePath().data(),found);
+ }
}
}
}