summaryrefslogtreecommitdiffstats
path: root/src/pre.l
diff options
context:
space:
mode:
authordimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7>2004-07-18 19:47:03 (GMT)
committerdimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7>2004-07-18 19:47:03 (GMT)
commit46361b7017fbbbc5f560eea54aac2be86abaf90e (patch)
tree6409d19be4f75548825a856ab0a7bd9921ad4996 /src/pre.l
parente6e861e83b8a05b894b84775f0fc115614d6f229 (diff)
downloadDoxygen-46361b7017fbbbc5f560eea54aac2be86abaf90e.zip
Doxygen-46361b7017fbbbc5f560eea54aac2be86abaf90e.tar.gz
Doxygen-46361b7017fbbbc5f560eea54aac2be86abaf90e.tar.bz2
Release-1.3.7-20040718
Diffstat (limited to 'src/pre.l')
-rw-r--r--src/pre.l13
1 files changed, 8 insertions, 5 deletions
diff --git a/src/pre.l b/src/pre.l
index 847d8db..a33ffe2 100644
--- a/src/pre.l
+++ b/src/pre.l
@@ -190,9 +190,10 @@ static FILE *checkAndOpenFile(const QCString &absName)
if (alreadyIncluded) return 0;
- if (!Config_getString("INPUT_FILTER").isEmpty())
+ QCString filterName = getFileFilter(absName);
+ if (!filterName.isEmpty())
{
- QCString cmd = Config_getString("INPUT_FILTER")+" "+absName;
+ QCString cmd = filterName+" "+absName;
f=popen(cmd,"r");
if (!f) err("Error: could not execute filter %s\n",cmd.data());
}
@@ -1480,7 +1481,9 @@ CHARLIT (("'"\\[0-7]{1,3}"'")|("'"\\."'")|("'"[^'\\\n]{1,4}"'"))
<Command>.
<UndefName>{ID} {
Define *def;
- if ((def=isDefined(yytext)) && !def->isPredefined)
+ if ((def=isDefined(yytext))
+ /*&& !def->isPredefined*/
+ )
{
//printf("undefining %s\n",yytext);
def->undef=TRUE;
@@ -1955,7 +1958,7 @@ CHARLIT (("'"\\[0-7]{1,3}"'")|("'"\\."'")|("'"[^'\\\n]{1,4}"'"))
{
FileState *fs=g_includeStack.pop();
//fileDefineCache->merge(g_yyFileName,fs->fileName);
- if (Config_getString("INPUT_FILTER").isEmpty())
+ if (getFileFilter(fs->fileName.data()).isEmpty())
fclose(fs->filePtr);
else
pclose(fs->filePtr);
@@ -2203,7 +2206,7 @@ void preprocessFile(const char *fileName,BufStr &output)
}
- QCString &inputFilter = Config_getString("INPUT_FILTER");
+ QCString inputFilter = getFileFilter(fileName);
if (inputFilter.isEmpty())
{
preYYin = fopen(fileName,"r");