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/c/include/device/hw_res_parsed.h

    r3061bc1 ra35b458  
    6464        /** Start address */
    6565        address64_t address;
    66        
     66
    6767        /** Area size */
    6868        size_t size;
     
    8282        /** Irq count */
    8383        size_t count;
    84        
     84
    8585        /** Array of IRQs */
    8686        int *irqs;
     
    100100        /** Areas count */
    101101        size_t count;
    102        
     102
    103103        /** Array of areas */
    104104        addr_range_t *ranges;
     
    115115        /** List of IRQs */
    116116        irq_list_t irqs;
    117        
     117
    118118        /** List of DMA channels */
    119119        dma_list_t dma_channels;
    120        
     120
    121121        /** List of memory areas */
    122122        mem_range_list_t mem_ranges;
    123        
     123
    124124        /** List of IO areas */
    125125        io_range_list_t io_ranges;
     
    136136        if (list == NULL)
    137137                return;
    138        
     138
    139139        free(list->irqs.irqs);
    140140        free(list->io_ranges.ranges);
    141141        free(list->mem_ranges.ranges);
    142142        free(list->dma_channels.channels);
    143        
     143
    144144        memset(list, 0, sizeof(hw_res_list_parsed_t));
    145145}
Note: See TracChangeset for help on using the changeset viewer.