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:
Dmitry Kabak 2012-08-11 14:34:48 +00:00
commit 771c61f9f1
2 changed files with 8 additions and 8 deletions

View file

@ -193,15 +193,15 @@ static void set_comment(Node *n, String *comment) {
if (!n || !comment)
return;
if (Getattr(n, "DoxygenComment"))
Append(Getattr(n, "DoxygenComment"), comment);
if (Getattr(n, "doxygen"))
Append(Getattr(n, "doxygen"), comment);
else {
Setattr(n, "DoxygenComment", comment);
Setattr(n, "doxygen", comment);
/* This is the first comment, populate it with @params, if any */
p = Getattr(n, "parms");
while (p) {
if (Getattr(p, "DoxygenComment"))
Printv(comment, "\n@param ", Getattr(p, "name"), Getattr(p, "DoxygenComment"), NIL);
if (Getattr(p, "doxygen"))
Printv(comment, "\n@param ", Getattr(p, "name"), Getattr(p, "doxygen"), NIL);
p=nextSibling(p);
}
}
@ -212,7 +212,7 @@ static void set_comment(Node *n, String *comment) {
return;
n = nextSibling(n);
while (n && Getattr(n, "name") && Strcmp(Getattr(n, "name"), name) == 0) {
Setattr(n, "DoxygenComment", comment);
Setattr(n, "doxygen", comment);
n = nextSibling(n);
}
}
@ -3474,7 +3474,7 @@ doxygen_comment_item : DOXYGENSTRING {
not translatable to javadoc anyway) */
if(0 && isStructuralDoxygen($1)){
$$ = new_node("doxycomm");
Setattr($$,"DoxygenComment",$1);
set_comment($$, $1);
}
else {
$$ = $1;

View file

@ -25,7 +25,7 @@ bool DoxygenTranslator::hasDocumentation(Node *node) {
}
String *DoxygenTranslator::getDoxygenComment(Node *node) {
return Getattr(node, "DoxygenComment");
return Getattr(node, "doxygen");
}