Renamed DoxygenComment to doxygen to better comply swig's attribute namings
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/gsoc2012-doxygen@13597 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
9600bb310f
commit
771c61f9f1
2 changed files with 8 additions and 8 deletions
|
|
@ -193,15 +193,15 @@ static void set_comment(Node *n, String *comment) {
|
||||||
if (!n || !comment)
|
if (!n || !comment)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
if (Getattr(n, "DoxygenComment"))
|
if (Getattr(n, "doxygen"))
|
||||||
Append(Getattr(n, "DoxygenComment"), comment);
|
Append(Getattr(n, "doxygen"), comment);
|
||||||
else {
|
else {
|
||||||
Setattr(n, "DoxygenComment", comment);
|
Setattr(n, "doxygen", comment);
|
||||||
/* This is the first comment, populate it with @params, if any */
|
/* This is the first comment, populate it with @params, if any */
|
||||||
p = Getattr(n, "parms");
|
p = Getattr(n, "parms");
|
||||||
while (p) {
|
while (p) {
|
||||||
if (Getattr(p, "DoxygenComment"))
|
if (Getattr(p, "doxygen"))
|
||||||
Printv(comment, "\n@param ", Getattr(p, "name"), Getattr(p, "DoxygenComment"), NIL);
|
Printv(comment, "\n@param ", Getattr(p, "name"), Getattr(p, "doxygen"), NIL);
|
||||||
p=nextSibling(p);
|
p=nextSibling(p);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -212,7 +212,7 @@ static void set_comment(Node *n, String *comment) {
|
||||||
return;
|
return;
|
||||||
n = nextSibling(n);
|
n = nextSibling(n);
|
||||||
while (n && Getattr(n, "name") && Strcmp(Getattr(n, "name"), name) == 0) {
|
while (n && Getattr(n, "name") && Strcmp(Getattr(n, "name"), name) == 0) {
|
||||||
Setattr(n, "DoxygenComment", comment);
|
Setattr(n, "doxygen", comment);
|
||||||
n = nextSibling(n);
|
n = nextSibling(n);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -3474,7 +3474,7 @@ doxygen_comment_item : DOXYGENSTRING {
|
||||||
not translatable to javadoc anyway) */
|
not translatable to javadoc anyway) */
|
||||||
if(0 && isStructuralDoxygen($1)){
|
if(0 && isStructuralDoxygen($1)){
|
||||||
$$ = new_node("doxycomm");
|
$$ = new_node("doxycomm");
|
||||||
Setattr($$,"DoxygenComment",$1);
|
set_comment($$, $1);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
$$ = $1;
|
$$ = $1;
|
||||||
|
|
|
||||||
|
|
@ -25,7 +25,7 @@ bool DoxygenTranslator::hasDocumentation(Node *node) {
|
||||||
}
|
}
|
||||||
|
|
||||||
String *DoxygenTranslator::getDoxygenComment(Node *node) {
|
String *DoxygenTranslator::getDoxygenComment(Node *node) {
|
||||||
return Getattr(node, "DoxygenComment");
|
return Getattr(node, "doxygen");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue