[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    branches/KDE/3.5/kdesdk/scripts
From:       Thorsten Staerk <dev () staerk ! de>
Date:       2006-07-23 11:11:32
Message-ID: 1153653092.818946.10379.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 565397 by tstaerk:

Now gets along with all of kspread

 M  +3 -2      add_trace.pl  


--- branches/KDE/3.5/kdesdk/scripts/add_trace.pl #565396:565397
@@ -37,7 +37,8 @@
       chop;
       $oneline .= $_;
     }
-  elsif ( /^[^\s]+\s*[^\s]+::[^\s]+/ && !/typedef\s/ && !/^\s*class\s/ )
+  elsif ( /^[^\s]+\s*[^\s]+::[^\s]+/ && !/typedef\s/ && !/^\s*class\s/ && \
!/^[^\s]+\s*[^\s]+::[^\s]+.*;/ && !/ *\/\// ) +  # A function declaration starts. A \
function is not a typedef, not a class, not a command and not a comment.  {
       $insignature = 1;
       $statement = $_;
@@ -106,7 +107,7 @@
 	      }
 	    }
 	  $line = $line . " << endl;\n";
-	  print $line;
+	  if ( !m/\}/ ) {print $line;}
 	  #print STDERR "Debug call added : $line\n";
 	}
     }


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic