Skip to content

Commit

Permalink
Merge branch 'albert-github-feature/bug_include_pre'
Browse files Browse the repository at this point in the history
  • Loading branch information
doxygen committed Oct 27, 2023
2 parents 492bb7e + ba35469 commit 708920a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/pre.l
Original file line number Diff line number Diff line change
Expand Up @@ -2851,7 +2851,7 @@ static bool expandExpression(yyscan_t yyscanner,QCString &expr,QCString *rest,in

if (replaced) // expand the macro and rescan the expression
{
//printf(" replacing '%s'->'%s'\n",expr.mid(p,qPrint(len)),qPrint(expMacro));
//printf(" replacing '%s'->'%s'\n",qPrint(expr.mid(p,len)),qPrint(expMacro));
QCString resultExpr=expMacro;
QCString restExpr=expr.right(expr.length()-len-p);
processConcatOperators(resultExpr);
Expand Down Expand Up @@ -3439,7 +3439,8 @@ static void readIncludeFile(yyscan_t yyscanner,const QCString &inc)
std::unique_ptr<FileState> fs;
bool alreadyProcessed = FALSE;
//printf("calling findFile(%s)\n",qPrint(incFileName));
if ((fs=findFile(yyscanner,incFileName,localInclude,alreadyProcessed))) // see if the include file can be found
fs=findFile(yyscanner,absIncFileName,localInclude,alreadyProcessed); // see if the absolute include file can be found
if (fs)
{
{
std::lock_guard<std::mutex> lock(g_globalDefineMutex);
Expand Down

0 comments on commit 708920a

Please sign in to comment.