Changeset ab87db5 in mainline for uspace/lib/c/generic/io/console.c


Ignore:
Timestamp:
2019-02-23T17:16:01Z (5 years ago)
Author:
GitHub <noreply@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
8c193d83, ca0e838
Parents:
bc417660 (diff), 95a47b0 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
git-author:
Jiří Zárevúcky <zarevucky.jiri@…> (2019-02-23 17:16:01)
git-committer:
GitHub <noreply@…> (2019-02-23 17:16:01)
Message:

Merge pull request #157

Turn some function-like macros into functions

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/c/generic/io/console.c

    rbc417660 rab87db5  
    156156static errno_t console_ev_decode(ipc_call_t *call, cons_event_t *event)
    157157{
    158         event->type = IPC_GET_ARG1(*call);
     158        event->type = ipc_get_arg1(call);
    159159
    160160        switch (event->type) {
    161161        case CEV_KEY:
    162                 event->ev.key.type = IPC_GET_ARG2(*call);
    163                 event->ev.key.key = IPC_GET_ARG3(*call);
    164                 event->ev.key.mods = IPC_GET_ARG4(*call);
    165                 event->ev.key.c = IPC_GET_ARG5(*call);
     162                event->ev.key.type = ipc_get_arg2(call);
     163                event->ev.key.key = ipc_get_arg3(call);
     164                event->ev.key.mods = ipc_get_arg4(call);
     165                event->ev.key.c = ipc_get_arg5(call);
    166166                break;
    167167        case CEV_POS:
    168                 event->ev.pos.pos_id = IPC_GET_ARG2(*call) >> 16;
    169                 event->ev.pos.type = IPC_GET_ARG2(*call) & 0xffff;
    170                 event->ev.pos.btn_num = IPC_GET_ARG3(*call);
    171                 event->ev.pos.hpos = IPC_GET_ARG4(*call);
    172                 event->ev.pos.vpos = IPC_GET_ARG5(*call);
     168                event->ev.pos.pos_id = ipc_get_arg2(call) >> 16;
     169                event->ev.pos.type = ipc_get_arg2(call) & 0xffff;
     170                event->ev.pos.btn_num = ipc_get_arg3(call);
     171                event->ev.pos.hpos = ipc_get_arg4(call);
     172                event->ev.pos.vpos = ipc_get_arg5(call);
    173173                break;
    174174        default:
Note: See TracChangeset for help on using the changeset viewer.