diff options
author | Dimitri van Heesch <dimitri@stack.nl> | 2003-09-09 19:57:43 (GMT) |
---|---|---|
committer | Dimitri van Heesch <dimitri@stack.nl> | 2003-09-09 19:57:43 (GMT) |
commit | 79ad8414d813c1126e2807f4321ca4c70d6291fa (patch) | |
tree | c0925e732c4e9f06ccfc3974882096c5f56db513 /src/definition.cpp | |
parent | 12ea1b8460a1484b87ba2a4182a94cace98aedf8 (diff) | |
download | Doxygen-79ad8414d813c1126e2807f4321ca4c70d6291fa.zip Doxygen-79ad8414d813c1126e2807f4321ca4c70d6291fa.tar.gz Doxygen-79ad8414d813c1126e2807f4321ca4c70d6291fa.tar.bz2 |
Release-1.3.3-20030909
Diffstat (limited to 'src/definition.cpp')
-rw-r--r-- | src/definition.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/definition.cpp b/src/definition.cpp index 2733ab3..c94c7c5 100644 --- a/src/definition.cpp +++ b/src/definition.cpp @@ -243,6 +243,7 @@ static bool readCodeFragment(const char *fileName, if (fileName==0 || fileName[0]==0) return FALSE; // not a valid file name QCString cmd=Config_getString("INPUT_FILTER")+" \""+fileName+"\""; FILE *f = Config_getBool("FILTER_SOURCE_FILES") ? popen(cmd,"r") : fopen(fileName,"r"); + bool found=FALSE; if (f) { int c=0; @@ -257,7 +258,6 @@ static bool readCodeFragment(const char *fileName, if (!feof(f)) { // skip until the opening bracket or lonely : is found - bool found=FALSE; char cn=0; while (lineNr<=endLine && !feof(f) && !found) { @@ -324,11 +324,11 @@ static bool readCodeFragment(const char *fileName, result.truncate(braceIndex+1); } endLine=lineNr-1; - return TRUE; } } + if (Config_getBool("FILTER_SOURCE_FILES")) pclose(f); else fclose(f); } - return FALSE; + return found; } /*! Write a reference to the source code defining this definition */ |