diff options
author | albert-github <albert.tests@gmail.com> | 2019-11-25 10:28:45 (GMT) |
---|---|---|
committer | albert-github <albert.tests@gmail.com> | 2019-11-25 10:28:45 (GMT) |
commit | b007be7c1671661f31f056b7b7b5f480279ddbd6 (patch) | |
tree | 36746c5e031a8142a489667eea2b3d962aac7874 /src/pre.l | |
parent | dc20493b3351d79024f2f808d16f47a502346606 (diff) | |
download | Doxygen-b007be7c1671661f31f056b7b7b5f480279ddbd6.zip Doxygen-b007be7c1671661f31f056b7b7b5f480279ddbd6.tar.gz Doxygen-b007be7c1671661f31f056b7b7b5f480279ddbd6.tar.bz2 |
Checking of right usage of configuration list items
In case of a configuration list item has an equal sign in it ('=') some extra restriction are imposed / made more understandable.
Diffstat (limited to 'src/pre.l')
-rw-r--r-- | src/pre.l | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -3250,7 +3250,10 @@ void Preprocessor::processFile(const char *fileName,BufStr &input,BufStr &output int i_cbrace=ds.find(')'); bool nonRecursive = i_equals>0 && ds.at(i_equals-1)==':'; - if (i_obrace==0) continue; // no define name + if ((i_obrace==0) || (i_equals==0) || (i_equals==1 && ds.at(i_equals-1)==':')) + { + continue; // no define name + } if (i_obrace<i_equals && i_cbrace<i_equals && i_obrace!=-1 && i_cbrace!=-1 && |