Changeset a35b458 in mainline for uspace/lib/c/generic/io/output.c


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/generic/io/output.c

    r3061bc1 ra35b458  
    4545        errno_t ret = async_req_0_0(exch, OUTPUT_YIELD);
    4646        async_exchange_end(exch);
    47        
     47
    4848        return ret;
    4949}
     
    5454        errno_t ret = async_req_0_0(exch, OUTPUT_CLAIM);
    5555        async_exchange_end(exch);
    56        
     56
    5757        return ret;
    5858}
     
    6363        errno_t ret = async_req_0_2(exch, OUTPUT_GET_DIMENSIONS, maxx, maxy);
    6464        async_exchange_end(exch);
    65        
     65
    6666        return ret;
    6767}
     
    7070{
    7171        async_exch_t *exch = async_exchange_begin(sess);
    72        
     72
    7373        sysarg_t rv;
    7474        errno_t ret = async_req_0_1(exch, OUTPUT_GET_CAPS, &rv);
    75        
     75
    7676        async_exchange_end(exch);
    77        
     77
    7878        if (ret == EOK)
    7979                *ccaps = (console_caps_t) rv;
    80        
     80
    8181        return ret;
    8282}
     
    8686{
    8787        async_exch_t *exch = async_exchange_begin(sess);
    88        
     88
    8989        ipc_call_t answer;
    9090        aid_t req = async_send_0(exch, OUTPUT_FRONTBUF_CREATE, &answer);
    9191        errno_t rc = async_share_out_start(exch, frontbuf, AS_AREA_READ
    9292            | AS_AREA_WRITE | AS_AREA_CACHEABLE);
    93        
     93
    9494        async_exchange_end(exch);
    95        
     95
    9696        errno_t ret;
    9797        async_wait_for(req, &ret);
    98        
     98
    9999        if ((rc != EOK) || (ret != EOK))
    100100                return 0;
    101        
     101
    102102        return (frontbuf_handle_t) IPC_GET_ARG1(answer);
    103103}
     
    108108        errno_t ret = async_req_1_0(exch, OUTPUT_SET_STYLE, style);
    109109        async_exchange_end(exch);
    110        
     110
    111111        return ret;
    112112}
     
    117117        errno_t ret = async_req_1_0(exch, OUTPUT_CURSOR_UPDATE, frontbuf);
    118118        async_exchange_end(exch);
    119        
     119
    120120        return ret;
    121121}
     
    126126        errno_t ret = async_req_1_0(exch, OUTPUT_UPDATE, frontbuf);
    127127        async_exchange_end(exch);
    128        
     128
    129129        return ret;
    130130}
     
    137137            cols, rows);
    138138        async_exchange_end(exch);
    139        
     139
    140140        return ret;
    141141}
Note: See TracChangeset for help on using the changeset viewer.