From 771c61f9f18bc1a8feb74d24ccffa7cd296232ae Mon Sep 17 00:00:00 2001 From: Dmitry Kabak Date: Sat, 11 Aug 2012 14:34:48 +0000 Subject: [PATCH] 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 --- Source/CParse/parser.y | 14 +++++++------- Source/DoxygenTranslator/src/DoxygenTranslator.cpp | 2 +- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/Source/CParse/parser.y b/Source/CParse/parser.y index 27957d9ab..ddcdc5477 100644 --- a/Source/CParse/parser.y +++ b/Source/CParse/parser.y @@ -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; diff --git a/Source/DoxygenTranslator/src/DoxygenTranslator.cpp b/Source/DoxygenTranslator/src/DoxygenTranslator.cpp index 51df52f59..d9bf5f059 100644 --- a/Source/DoxygenTranslator/src/DoxygenTranslator.cpp +++ b/Source/DoxygenTranslator/src/DoxygenTranslator.cpp @@ -25,7 +25,7 @@ bool DoxygenTranslator::hasDocumentation(Node *node) { } String *DoxygenTranslator::getDoxygenComment(Node *node) { - return Getattr(node, "DoxygenComment"); + return Getattr(node, "doxygen"); }