diff options
author | Dimitri van Heesch <dimitri@stack.nl> | 2013-11-11 19:41:41 (GMT) |
---|---|---|
committer | Dimitri van Heesch <dimitri@stack.nl> | 2013-11-11 19:41:41 (GMT) |
commit | 27738c55c08a8a5c2fec1f2ec9111900ec1215c2 (patch) | |
tree | 3192abdc3a3b455f154747ce784e7aa51acc14f2 | |
parent | e03fa747158f7d7b8fa04dd4389ee075be1039c9 (diff) | |
download | Doxygen-27738c55c08a8a5c2fec1f2ec9111900ec1215c2.zip Doxygen-27738c55c08a8a5c2fec1f2ec9111900ec1215c2.tar.gz Doxygen-27738c55c08a8a5c2fec1f2ec9111900ec1215c2.tar.bz2 |
Bug 711639 - [PATCH] #include does not work with absolute paths
-rw-r--r-- | src/pre.l | 14 |
1 files changed, 14 insertions, 0 deletions
@@ -510,6 +510,20 @@ static FileState *checkAndOpenFile(const QCString &fileName,bool &alreadyInclude static FileState *findFile(const char *fileName,bool localInclude,bool &alreadyIncluded) { //printf("** findFile(%s,%d) g_yyFileName=%s\n",fileName,localInclude,g_yyFileName.data()); + if (portable_isAbsolutePath(fileName)) + { + FileState *fs = checkAndOpenFile(fileName,alreadyIncluded); + if (fs) + { + setFileName(fileName); + g_yyLineNr=1; + return fs; + } + else if (alreadyIncluded) + { + return 0; + } + } if (localInclude && !g_yyFileName.isEmpty()) { QFileInfo fi(g_yyFileName); |