Changeset a35b458 in mainline for uspace/lib/clui/tinput.h


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/clui/tinput.h

    r3061bc1 ra35b458  
    104104        /** Console */
    105105        console_ctrl_t *console;
    106        
     106
    107107        /** Prompt string */
    108108        char *prompt;
    109        
     109
    110110        /** Completion ops. */
    111111        tinput_compl_ops_t *compl_ops;
    112        
     112
    113113        /** Buffer holding text currently being edited */
    114114        wchar_t buffer[INPUT_MAX_SIZE + 1];
    115        
     115
    116116        /** Linear position on screen where the prompt starts */
    117117        unsigned prompt_coord;
    118118        /** Linear position on screen where the text field starts */
    119119        unsigned text_coord;
    120        
     120
    121121        /** Screen dimensions */
    122122        sysarg_t con_cols;
    123123        sysarg_t con_rows;
    124        
     124
    125125        /** Number of characters in @c buffer */
    126126        size_t nc;
    127        
     127
    128128        /** Caret position within buffer */
    129129        size_t pos;
    130        
     130
    131131        /** Selection mark position within buffer */
    132132        size_t sel_start;
    133        
     133
    134134        /** History (dynamically allocated strings) */
    135135        char *history[HISTORY_LEN + 1];
    136        
     136
    137137        /** Number of entries in @c history, not counting [0] */
    138138        size_t hnum;
    139        
     139
    140140        /** Current position in history */
    141141        size_t hpos;
    142        
     142
    143143        /** @c true if finished with this line (return to caller) */
    144144        bool done;
    145        
     145
    146146        /** @c true if user requested to abort interactive loop */
    147147        bool exit_clui;
Note: See TracChangeset for help on using the changeset viewer.