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:
Cheryl Foil 2008-08-16 07:31:05 +00:00
commit 180171ddff

View file

@ -105,8 +105,14 @@ static Node *new_node(const String_or_char *tag) {
if(parseComments){
/* Sets any post comments to the previous node */
if(previousNode != NULL && currentPostComment != 0){
String *copyPostComment = Copy(currentComment);
Setattr(previousNode,"DoxygenPostComment",copyPostComment);
String *copyPostComment = Copy(currentPostComment);
if (!Getattr(previousNode, "DoxygenComment")){
Setattr(previousNode,"DoxygenComment",copyPostComment);}
else {
Append(copyPostComment, Getattr(previousNode, "DoxygenComment"));
Setattr(previousNode,"DoxygenComment",copyPostComment);
}
currentPostComment = 0;
}
/* Sets Doxygen Comment if a Comment is Availible */