Skip to content

Commit 00d6d82

Browse files
committed
Merge branch 'master' of github.com:doxygen/doxygen
2 parents 9fdeef7 + 1ea163f commit 00d6d82

File tree

9 files changed

+85
-22
lines changed

9 files changed

+85
-22
lines changed

doc/commands.doc

Lines changed: 13 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -445,7 +445,7 @@ Structural indicators
445445
for the corresponding \mbox{\LaTeX} documentation that is generated by doxygen.
446446
\endlatexonly
447447

448-
</p><hr>
448+
<hr>
449449
\section cmddef \\def <name>
450450

451451
\addindex \\def
@@ -463,7 +463,7 @@ Structural indicators
463463
for the corresponding \mbox{\LaTeX} documentation that is generated by doxygen.
464464
\endlatexonly
465465

466-
</p><hr>
466+
<hr>
467467
\section cmddefgroup \\defgroup <name> (group title)
468468

469469
\addindex \\defgroup
@@ -515,7 +515,7 @@ Structural indicators
515515
for the corresponding \mbox{\LaTeX} documentation that is generated by doxygen.
516516
\endlatexonly
517517

518-
</p><hr>
518+
<hr>
519519
\section cmdexample \\example[{lineno}] <file-name>
520520

521521
\addindex \\example
@@ -553,7 +553,7 @@ Structural indicators
553553

554554
\sa section \ref cmdinclude "\\include".
555555

556-
</p><hr>
556+
<hr>
557557
\section cmdendinternal \\endinternal
558558

559559
\addindex \\endinternal
@@ -612,7 +612,7 @@ Structural indicators
612612
\note In the above example \ref cfg_javadoc_autobrief "JAVADOC_AUTOBRIEF"
613613
has been set to \c YES in the configuration file.
614614

615-
</p><hr>
615+
<hr>
616616
\section cmdfn \\fn (function declaration)
617617

618618
\addindex \\fn
@@ -650,7 +650,7 @@ Structural indicators
650650
\sa sections \ref cmdvar "\\var", \ref cmdproperty "\\property", and
651651
\ref cmdtypedef "\\typedef".
652652

653-
</p><hr>
653+
<hr>
654654
\section cmdheaderfile \\headerfile <header-file> [<header-name>]
655655

656656
\addindex \\headerfile
@@ -836,7 +836,7 @@ Structural indicators
836836
\ref cmdpublic "\\public", \ref cmdprotected "\\protected" and
837837
\ref cmdprivate "\\private".
838838

839-
</p><hr>
839+
<hr>
840840
\section cmdname \\name [(header)]
841841

842842
\addindex \\name
@@ -904,7 +904,7 @@ Structural indicators
904904
for the corresponding \mbox{\LaTeX} documentation that is generated by doxygen.
905905
\endlatexonly
906906

907-
</p><hr>
907+
<hr>
908908
\section cmdpackage \\package <name>
909909

910910
\addindex \\package
@@ -945,7 +945,7 @@ Structural indicators
945945
\ref cmdsubsection "\\subsection", and section
946946
\ref cmdref "\\ref".
947947

948-
</p><hr>
948+
<hr>
949949
\section cmdprivate \\private
950950

951951
\addindex \\private
@@ -1092,7 +1092,7 @@ Structural indicators
10921092
for the corresponding \mbox{\LaTeX} documentation that is generated by doxygen.
10931093
\endlatexonly
10941094

1095-
</p><hr>
1095+
<hr>
10961096
\section cmdrelated \\related <name>
10971097

10981098
\addindex \\related
@@ -1255,7 +1255,7 @@ Section indicators
12551255
for the corresponding \mbox{\LaTeX} documentation that is generated by doxygen.
12561256
\endlatexonly
12571257

1258-
</p><hr>
1258+
<hr>
12591259
\section cmdauthors \\authors { list of authors }
12601260

12611261
\addindex \\authors
@@ -1606,7 +1606,7 @@ ALIASES = "english=\if english" \
16061606
for the corresponding \mbox{\LaTeX} documentation that is generated by doxygen.
16071607
\endlatexonly
16081608

1609-
</p><hr>
1609+
<hr>
16101610
\section cmdparam \\param [(dir)] <parameter-name> { parameter description }
16111611

16121612
\addindex \\param
@@ -2226,7 +2226,7 @@ Commands for displaying examples
22262226
\ref cmdskipline "\\skipline", \ref cmduntil "\\until", and
22272227
\ref cmdinclude "\\include".
22282228

2229-
</p><hr>
2229+
<hr>
22302230
\section cmdinclude \\include[{lineno|doc}] <file-name>
22312231

22322232
\addindex \\include
@@ -3524,10 +3524,8 @@ browser generator. Do \e not use these commands in your own documentation.
35243524

35253525

35263526
\htmlonly
3527-
</p>
35283527
Go to the <a href="htmlcmds.html">next</a> section or return to the
35293528
<a href="index.html">index</a>.
3530-
<p>
35313529
\endhtmlonly
35323530

35333531
*/

src/debug.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ static LabelMap s_labels[] =
4949
{ "filteroutput", Debug::FilterOutput },
5050
{ "lex", Debug::Lex },
5151
{ "plantuml", Debug::Plantuml },
52+
{ "fortranfixed2free", Debug::FortranFixed2Free },
5253
{ 0, (Debug::DebugMask)0 }
5354
};
5455

src/debug.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,8 @@ class Debug
3838
Markdown = 0x00000800,
3939
FilterOutput = 0x00001000,
4040
Lex = 0x00002000,
41-
Plantuml = 0x00004000
41+
Plantuml = 0x00004000,
42+
FortranFixed2Free = 0x00008000
4243
};
4344
static void print(DebugMask mask,int prio,const char *fmt,...);
4445
static int setFlag(const char *label);

src/doxygen.cpp

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8705,7 +8705,14 @@ static void computePageRelations(Entry *root)
87058705
for (bii.toFirst();(bi=bii.current());++bii)
87068706
{
87078707
PageDef *subPd = Doxygen::pageSDict->find(bi->name);
8708-
if (subPd)
8708+
if (pd==subPd)
8709+
{
8710+
err("page defined at line %d of file %s with label %s is a direct "
8711+
"subpage of itself! Please remove this cyclic dependency.\n",
8712+
pd->docLine(),pd->docFile().data(),pd->name().data());
8713+
exit(1);
8714+
}
8715+
else if (subPd)
87098716
{
87108717
pd->addInnerCompound(subPd);
87118718
//printf("*** Added subpage relation: %s->%s\n",

src/formula.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ void FormulaList::generateBitmaps(const char *path)
7171
t << "\\documentclass{article}" << endl;
7272
t << "\\usepackage{ifthen}" << endl;
7373
t << "\\usepackage{epsfig}" << endl; // for those who want to include images
74+
t << "\\usepackage[utf8]{inputenc}" << endl; // looks like some older distributions with newunicode package 1.1 need this option.
7475
writeExtraLatexPackages(t);
7576
writeLatexSpecialFormulaChars(t);
7677
t << "\\pagestyle{empty}" << endl;

src/fortranscanner.l

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@
6666
#include "fortrancode.h"
6767
#include "pre.h"
6868
#include "arguments.h"
69+
#include "debug.h"
6970

7071
// Toggle for some debugging info
7172
//#define DBG_CTX(x) fprintf x
@@ -2640,6 +2641,8 @@ static void parseMain(const char *fileName,const char *fileBuf,Entry *rt, Fortra
26402641
//printf("Input fixed form string:\n%s\n", fileBuf);
26412642
//printf("===========================\n");
26422643
inputString = prepassFixedForm(fileBuf, NULL);
2644+
Debug::print(Debug::FortranFixed2Free,0,"======== Fixed to Free format =========\n---- Input fixed form string ------- \n%s\n", fileBuf);
2645+
Debug::print(Debug::FortranFixed2Free,0,"---- Resulting free form string ------- \n%s\n", inputString);
26432646
//printf("Resulting free form string:\n%s\n", inputString);
26442647
//printf("===========================\n");
26452648

src/htmldocvisitor.cpp

Lines changed: 40 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -211,6 +211,34 @@ static bool isInvisibleNode(DocNode *node)
211211
;
212212
}
213213

214+
static void mergeHtmlAttributes(const HtmlAttribList &attribs, HtmlAttribList *mergeInto)
215+
{
216+
HtmlAttribListIterator li(attribs);
217+
HtmlAttrib *att;
218+
for (li.toFirst();(att=li.current());++li)
219+
{
220+
HtmlAttribListIterator ml(*mergeInto);
221+
HtmlAttrib *opt;
222+
bool found = false;
223+
for (ml.toFirst();(opt=ml.current());++ml)
224+
{
225+
if (opt->name == att -> name)
226+
{
227+
found = true;
228+
break;
229+
}
230+
}
231+
if (found)
232+
{
233+
opt->value = opt->value + " " + att->value;
234+
}
235+
else
236+
{
237+
mergeInto->append(att);
238+
}
239+
}
240+
}
241+
214242
static QCString htmlAttribsToString(const HtmlAttribList &attribs, QCString *pAltValue = 0)
215243
{
216244
QCString result;
@@ -1660,8 +1688,18 @@ void HtmlDocVisitor::visitPre(DocImage *img)
16601688
sizeAttribs+=" height=\""+img->height()+"\"";
16611689
}
16621690
// 16 cases: url.isEmpty() | typeSVG | inlineImage | img->hasCaption()
1691+
1692+
HtmlAttribList extraAttribs;
1693+
if (typeSVG)
1694+
{
1695+
HtmlAttrib opt;
1696+
opt.name = "style";
1697+
opt.value = "pointer-events: none;";
1698+
extraAttribs.append(&opt);
1699+
}
16631700
QCString alt;
1664-
QCString attrs = htmlAttribsToString(img->attribs(),&alt);
1701+
mergeHtmlAttributes(img->attribs(),&extraAttribs);
1702+
QCString attrs = htmlAttribsToString(extraAttribs,&alt);
16651703
QCString src;
16661704
if (url.isEmpty())
16671705
{
@@ -1673,7 +1711,7 @@ void HtmlDocVisitor::visitPre(DocImage *img)
16731711
}
16741712
if (typeSVG)
16751713
{
1676-
m_t << "<object type=\"image/svg+xml\" style=\"pointer-events: none;\" data=\"" << src
1714+
m_t << "<object type=\"image/svg+xml\" data=\"" << src
16771715
<< "\"" << sizeAttribs << attrs;
16781716
if (inlineImage)
16791717
{

src/memberdef.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5572,9 +5572,9 @@ void combineDeclarationAndDefinition(MemberDef *mdec,MemberDef *mdef)
55725572
mdec->enableCallerGraph(mdec->hasCallerGraph() || mdef->hasCallerGraph());
55735573

55745574
mdef->enableReferencedByRelation(mdec->hasReferencedByRelation() || mdef->hasReferencedByRelation());
5575-
mdef->enableCallerGraph(mdec->hasReferencesRelation() || mdef->hasReferencesRelation());
5575+
mdef->enableReferencesRelation(mdec->hasReferencesRelation() || mdef->hasReferencesRelation());
55765576
mdec->enableReferencedByRelation(mdec->hasReferencedByRelation() || mdef->hasReferencedByRelation());
5577-
mdec->enableCallerGraph(mdec->hasReferencesRelation() || mdef->hasReferencesRelation());
5577+
mdec->enableReferencesRelation(mdec->hasReferencesRelation() || mdef->hasReferencesRelation());
55785578
}
55795579
}
55805580
}

src/pre.l

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -882,6 +882,21 @@ static bool replaceFunctionMacro(const QCString &expr,QCString *rest,int pos,int
882882
arg+=c;
883883
}
884884
}
885+
else if (c=='/') // possible start of a comment
886+
{
887+
char prevChar = '\0';
888+
arg+=c;
889+
if ((cc=getCurrentChar(expr,rest,j)) == '*') // we have a comment
890+
{
891+
while ((cc=getNextChar(expr,rest,j))!=EOF && cc!=0)
892+
{
893+
c=(char)cc;
894+
arg+=c;
895+
if (c == '/' && prevChar == '*') break; // we have an end of comment
896+
prevChar = c;
897+
}
898+
}
899+
}
885900
else // append other characters
886901
{
887902
arg+=c;
@@ -1110,7 +1125,6 @@ static void expandExpression(QCString &expr,QCString *rest,int pos)
11101125

11111126
if (replaced) // expand the macro and rescan the expression
11121127
{
1113-
11141128
//printf("replacing `%s'->`%s'\n",expr.mid(p,len).data(),expMacro.data());
11151129
QCString resultExpr=expMacro;
11161130
QCString restExpr=expr.right(expr.length()-len-p);

0 commit comments

Comments
 (0)