Changeset a35b458 in mainline for uspace/lib/ext4/include


Ignore:
Timestamp:
2018-03-02T20:10:49Z (7 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:
f1380b7
Parents:
3061bc1
git-author:
Jiří Zárevúcky <zarevucky.jiri@…> (2018-02-28 17:38:31)
git-committer:
Jiří Zárevúcky <zarevucky.jiri@…> (2018-03-02 20:10:49)
Message:

style: Remove trailing whitespace on _all_ lines, including empty ones, for particular file types.

Command used: tools/srepl '\s\+$' '' -- *.c *.h *.py *.sh *.s *.S *.ag

Currently, whitespace on empty lines is very inconsistent.
There are two basic choices: Either remove the whitespace, or keep empty lines
indented to the level of surrounding code. The former is AFAICT more common,
and also much easier to do automatically.

Alternatively, we could write script for automatic indentation, and use that
instead. However, if such a script exists, it's possible to use the indented
style locally, by having the editor apply relevant conversions on load/save,
without affecting remote repository. IMO, it makes more sense to adopt
the simpler rule.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/ext4/include/ext4/types.h

    r3061bc1 ra35b458  
    6666        uint16_t def_resuid;                /* Default uid for reserved blocks */
    6767        uint16_t def_resgid;                /* Default gid for reserved blocks */
    68        
     68
    6969        /* Fields for EXT4_DYNAMIC_REV superblocks only. */
    7070        uint32_t first_inode;             /* First non-reserved inode */
     
    7878        char last_mounted[64];            /* Directory where last mounted */
    7979        uint32_t algorithm_usage_bitmap;  /* For compression */
    80        
     80
    8181        /*
    8282         * Performance hints. Directory preallocation should only
     
    8686        uint8_t prealloc_dir_blocks;    /* Number to preallocate for dirs */
    8787        uint16_t reserved_gdt_blocks;   /* Per group desc for online growth */
    88        
     88
    8989        /*
    9090         * Journaling support valid if EXT4_FEATURE_COMPAT_HAS_JOURNAL set.
     
    251251        uint16_t itable_unused_lo;            /* Unused inodes count */
    252252        uint16_t checksum;                    /* crc16(sb_uuid+group+desc) */
    253        
     253
    254254        uint32_t block_bitmap_hi;             /* Blocks bitmap block MSB */
    255255        uint32_t inode_bitmap_hi;             /* I-nodes bitmap block MSB */
     
    307307        uint32_t size_hi;
    308308        uint32_t obso_faddr;                 /* Obsoleted fragment address */
    309        
     309
    310310        union {
    311311                struct {
     
    324324                } hurd2;
    325325        } __attribute__ ((packed)) osd2;
    326        
     326
    327327        uint16_t extra_isize;
    328328        uint16_t pad1;
     
    403403        uint16_t entry_length;  /* Distance to the next directory entry */
    404404        uint8_t name_length;    /* Lower 8 bits of name length */
    405        
     405
    406406        union {
    407407                uint8_t name_length_high;  /* Higher 8 bits of name length */
    408408                uint8_t inode_type;        /* Type of referenced inode (in rev >= 0.5) */
    409409        } __attribute__ ((packed));
    410        
     410
    411411        uint8_t name[EXT4_DIRECTORY_FILENAME_LEN];  /* Entry name */
    412412} __attribute__((packed)) ext4_directory_entry_ll_t;
     
    495495typedef struct ext4_extent_index {
    496496        uint32_t first_block;  /* Index covers logical blocks from 'block' */
    497        
     497
    498498        /**
    499499         * Pointer to the physical block of the next
Note: See TracChangeset for help on using the changeset viewer.