1. 26 1月, 2013 1 次提交
  2. 18 1月, 2013 1 次提交
  3. 17 8月, 2012 1 次提交
  4. 14 5月, 2012 1 次提交
  5. 03 2月, 2012 1 次提交
  6. 11 10月, 2011 2 次提交
  7. 21 9月, 2011 2 次提交
  8. 17 9月, 2011 1 次提交
  9. 07 9月, 2011 1 次提交
  10. 30 8月, 2011 2 次提交
  11. 26 8月, 2011 5 次提交
  12. 18 5月, 2011 12 次提交
  13. 26 4月, 2011 1 次提交
    • J
      staging: Remove unnecessary semicolons when switch (foo) {...}; · 95cd17c9
      Joe Perches 提交于
      Done via perl script:
      
      $ cat remove_semi_switch.pl
      my $match_balanced_parentheses = qr/(\((?:[^\(\)]++|(?-1))*\))/;
      my $match_balanced_braces      = qr/(\{(?:[^\{\}]++|(?-1))*\})/;
      
      foreach my $file (@ARGV) {
          my $f;
          my $text;
          my $oldtext;
      
          next if ((-d $file));
      
          open($f, '<', $file)
      	or die "$P: Can't open $file for read\n";
          $oldtext = do { local($/) ; <$f> };
          close($f);
      
          next if ($oldtext eq "");
      
          $text = $oldtext;
      
          my $count = 0;
          do {
      	$count = 0;
      	$count += $text =~ s@\b(switch\s*${match_balanced_parentheses}\s*)${match_balanced_braces}\s*;@"$1$3"@egx;
          } while ($count > 0);
      
          if ($text ne $oldtext) {
      	my $newfile = $file;
      
      	open($f, '>', $newfile)
      	    or die "$P: Can't open $newfile for write\n";
      	print $f $text;
      	close($f);
          }
      }
      
      $
      Signed-off-by: NJoe Perches <joe@perches.com>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
      95cd17c9
  14. 05 4月, 2011 2 次提交
  15. 31 3月, 2011 1 次提交
  16. 19 2月, 2011 1 次提交
  17. 01 2月, 2011 1 次提交
  18. 21 1月, 2011 2 次提交
  19. 17 12月, 2010 1 次提交
  20. 10 11月, 2010 1 次提交