Changeset f1380b7 in mainline for contrib/tools


Ignore:
Timestamp:
2018-03-02T20:21:57Z (8 years ago)
Author:
Jiří Zárevúcky <zarevucky.jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
34e1206
Parents:
a35b458
git-author:
Jiří Zárevúcky <zarevucky.jiri@…> (2018-02-28 17:51:04)
git-committer:
Jiří Zárevúcky <zarevucky.jiri@…> (2018-03-02 20:21:57)
Message:

style: Remove trailing whitespace on _all_ lines, including empty ones, remaining files.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • contrib/tools/font/bdf2c.pl

    ra35b458 rf1380b7  
    5353        /^FONTBOUNDINGBOX\s/ and do {
    5454                ($skip, $width, $height, $offset_x, $offset_y) = (split);
    55                
     55
    5656                die("Font width is not 8px\n") if ($width != 8);
    5757                die("Font height is not 16px\n") if ($height != 16);
     
    7070                my @glyph = ();
    7171                my $y;
    72                
     72
    7373                # Add empty lines at top
    7474                my $empties = $height + $offset_y - $goffset_y - $gheight;
    75                
     75
    7676                for ($y = 0; $y < $empties; $y++) {
    7777                        $glyph[$y] = 0;
    7878                }
    79                
     79
    8080                # Scan the hex bitmap
    8181                for ($y = $empties; $y < $empties + $gheight; $y++) {
     
    8383                        $glyph[$y] = hex(substr($_, 0, 2)) >> $goffset_x;
    8484                }
    85                
     85
    8686                # Add empty lines at bottom
    8787                my $fill = $height - $gheight - $empties;
     
    8989                        $glyph[$y] = 0;
    9090                }
    91                
     91
    9292                if ($index != 0) {
    9393                        $glyphs[$index] = (\@glyph);
     
    125125                                print "\t\treturn (ch - " . ($start - $start_pos) . ");\n";
    126126                        }
    127                        
     127
    128128                        print "\t\n";
    129129                }
    130                
     130
    131131                $start = $index;
    132132                $start_pos = $pos;
    133133        }
    134        
     134
    135135        $pos++;
    136136        $prev = $index;
     
    145145for $index (@chars) {
    146146        print "\n\t{";
    147        
     147
    148148        my $y;
    149149        for ($y = 0; $y < $height; $y++) {
     
    151151                printf "0x%.2x", $glyphs[$index]->[$y];
    152152        }
    153        
     153
    154154        print "},";
    155155}
Note: See TracChangeset for help on using the changeset viewer.