Changeset a35b458 in mainline for uspace/srv/hid/isdv4_tablet/main.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/srv/hid/isdv4_tablet/main.c

    r3061bc1 ra35b458  
    6666{
    6767        async_answer_0(iid, EOK);
    68        
     68
    6969        async_sess_t *sess =
    7070            async_callback_receive(EXCHANGE_SERIALIZE);
    71        
     71
    7272        fibril_mutex_lock(&client_mutex);
    73        
     73
    7474        if (client_sess == NULL)
    7575                client_sess = sess;
    76        
     76
    7777        fibril_mutex_unlock(&client_mutex);
    7878
     
    8080                ipc_call_t call;
    8181                ipc_callid_t callid = async_get_call(&call);
    82                
     82
    8383                if (!IPC_GET_IMETHOD(call))
    8484                        break;
    85                
     85
    8686                async_answer_0(callid, ENOTSUP);
    8787        }
     
    9393        async_sess_t *sess = client_sess;
    9494        fibril_mutex_unlock(&client_mutex);
    95        
     95
    9696        if (!sess) return;
    97        
     97
    9898        async_exch_t *exch = async_exchange_begin(sess);
    9999        if (exch) {
     
    153153        printf("%s %s %u %u %u %u\n", type, source, event->x, event->y,
    154154            event->pressure, event->button);
    155        
     155
    156156        emit_event(event);
    157157}
     
    307307        printf(" Touch: %ux%u type: %s\n", state.touch_max_x, state.touch_max_y,
    308308                touch_type(state.touch_type));
    309        
     309
    310310        fid_t fibril = fibril_create(read_fibril, NULL);
    311311        /* From this on, state is to be used only by read_fibril */
Note: See TracChangeset for help on using the changeset viewer.