Changeset a35b458 in mainline for uspace/lib/c/generic/udebug.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/udebug.c

    r3061bc1 ra35b458  
    6161{
    6262        sysarg_t a_copied, a_needed;
    63        
     63
    6464        async_exch_t *exch = async_exchange_begin(sess);
    6565        errno_t rc = async_req_3_3(exch, IPC_M_DEBUG, UDEBUG_M_THREAD_READ,
    6666            (sysarg_t) buffer, n, NULL, &a_copied, &a_needed);
    67        
     67
    6868        *copied = (size_t) a_copied;
    6969        *needed = (size_t) a_needed;
    70        
     70
    7171        return rc;
    7272}
     
    7676{
    7777        sysarg_t a_copied, a_needed;
    78        
     78
    7979        async_exch_t *exch = async_exchange_begin(sess);
    8080        errno_t rc = async_req_3_3(exch, IPC_M_DEBUG, UDEBUG_M_NAME_READ,
    8181            (sysarg_t) buffer, n, NULL, &a_copied, &a_needed);
    82        
     82
    8383        *copied = (size_t) a_copied;
    8484        *needed = (size_t) a_needed;
    85        
     85
    8686        return rc;
    8787}
     
    9191{
    9292        sysarg_t a_copied, a_needed;
    93        
     93
    9494        async_exch_t *exch = async_exchange_begin(sess);
    9595        errno_t rc = async_req_3_3(exch, IPC_M_DEBUG, UDEBUG_M_AREAS_READ,
    9696            (sysarg_t) buffer, n, NULL, &a_copied, &a_needed);
    97        
     97
    9898        *copied = (size_t) a_copied;
    9999        *needed = (size_t) a_needed;
    100        
     100
    101101        return rc;
    102102}
     
    127127{
    128128        sysarg_t a_ev_type;
    129        
     129
    130130        async_exch_t *exch = async_exchange_begin(sess);
    131131        errno_t rc = async_req_2_3(exch, IPC_M_DEBUG, UDEBUG_M_GO,
    132132            tid, &a_ev_type, val0, val1);
    133        
     133
    134134        *ev_type = a_ev_type;
    135135        return rc;
Note: See TracChangeset for help on using the changeset viewer.