Fixed post comment behaviour
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/gsoc2008-cherylfoil@10767 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
03fd3d6581
commit
180171ddff
1 changed files with 8 additions and 2 deletions
|
|
@ -105,8 +105,14 @@ static Node *new_node(const String_or_char *tag) {
|
||||||
if(parseComments){
|
if(parseComments){
|
||||||
/* Sets any post comments to the previous node */
|
/* Sets any post comments to the previous node */
|
||||||
if(previousNode != NULL && currentPostComment != 0){
|
if(previousNode != NULL && currentPostComment != 0){
|
||||||
String *copyPostComment = Copy(currentComment);
|
String *copyPostComment = Copy(currentPostComment);
|
||||||
Setattr(previousNode,"DoxygenPostComment",copyPostComment);
|
if (!Getattr(previousNode, "DoxygenComment")){
|
||||||
|
Setattr(previousNode,"DoxygenComment",copyPostComment);}
|
||||||
|
else {
|
||||||
|
Append(copyPostComment, Getattr(previousNode, "DoxygenComment"));
|
||||||
|
Setattr(previousNode,"DoxygenComment",copyPostComment);
|
||||||
|
}
|
||||||
|
|
||||||
currentPostComment = 0;
|
currentPostComment = 0;
|
||||||
}
|
}
|
||||||
/* Sets Doxygen Comment if a Comment is Availible */
|
/* Sets Doxygen Comment if a Comment is Availible */
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue