From: <ka...@us...> - 2012-08-16 11:35:08
|
Revision: 13622 http://swig.svn.sourceforge.net/swig/?rev=13622&view=rev Author: kabbi Date: 2012-08-16 11:35:02 +0000 (Thu, 16 Aug 2012) Log Message: ----------- Made swig strip out all structural comments Modified Paths: -------------- branches/gsoc2012-doxygen/Source/CParse/parser.y Modified: branches/gsoc2012-doxygen/Source/CParse/parser.y =================================================================== --- branches/gsoc2012-doxygen/Source/CParse/parser.y 2012-08-15 23:36:28 UTC (rev 13621) +++ branches/gsoc2012-doxygen/Source/CParse/parser.y 2012-08-16 11:35:02 UTC (rev 13622) @@ -3469,19 +3469,18 @@ DohReplace($1, "//!", "", 0); DohReplace($1, "*/", "", 0); - /* isStructuralDoxygen() is disabled, since no comment - appears in such case. Need to fix. (most commands are - not translatable to javadoc anyway) */ - if(0 && isStructuralDoxygen($1)){ - $$ = new_node("doxycomm"); - set_comment($$, $1); + /* Throw out all structural comments */ + if (isStructuralDoxygen($1)) { + Delete($1); + $1 = 0; } - else { - $$ = $1; - } + $$ = $1; } | doxygen_comment_item doxygen_comment_item { - Append($1, $2); + if ($1) + Append($1, $2); + else + $1 = $2; $$ = $1; } ; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |