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
  • kernel/generic/include/console/chardev.h

    r3061bc1 ra35b458  
    5656        /** Read character directly from device, assume interrupts disabled. */
    5757        wchar_t (* poll)(struct indev *);
    58        
     58
    5959        /** Signal out-of-band condition. */
    6060        void (* signal)(struct indev *, indev_signal_t);
     
    6565        const char *name;
    6666        waitq_t wq;
    67        
     67
    6868        /** Protects everything below. */
    6969        IRQ_SPINLOCK_DECLARE(lock);
    7070        wchar_t buffer[INDEV_BUFLEN];
    7171        size_t counter;
    72        
     72
    7373        /** Implementation of indev operations. */
    7474        indev_operations_t *op;
     
    8383        /** Write character to output. */
    8484        void (* write)(struct outdev *, wchar_t);
    85        
     85
    8686        /** Redraw any previously cached characters. */
    8787        void (* redraw)(struct outdev *);
    88        
     88
    8989        /** Scroll up in the device cache. */
    9090        void (* scroll_up)(struct outdev *);
    91        
     91
    9292        /** Scroll down in the device cache. */
    9393        void (* scroll_down)(struct outdev *);
     
    9797typedef struct outdev {
    9898        const char *name;
    99        
     99
    100100        /** Protects everything below. */
    101101        SPINLOCK_DECLARE(lock);
    102        
     102
    103103        /** Fields suitable for multiplexing. */
    104104        link_t link;
    105105        list_t list;
    106        
     106
    107107        /** Implementation of outdev operations. */
    108108        outdev_operations_t *op;
Note: See TracChangeset for help on using the changeset viewer.