Changeset ab87db5 in mainline for uspace/lib/c/generic/io/input.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/input.c

    rbc417660 rab87db5  
    112112        errno_t rc;
    113113
    114         type = IPC_GET_ARG1(*call);
    115         key = IPC_GET_ARG2(*call);
    116         mods = IPC_GET_ARG3(*call);
    117         c = IPC_GET_ARG4(*call);
     114        type = ipc_get_arg1(call);
     115        key = ipc_get_arg2(call);
     116        mods = ipc_get_arg3(call);
     117        c = ipc_get_arg4(call);
    118118
    119119        rc = input->ev_ops->key(input, type, key, mods, c);
     
    127127        errno_t rc;
    128128
    129         dx = IPC_GET_ARG1(*call);
    130         dy = IPC_GET_ARG2(*call);
     129        dx = ipc_get_arg1(call);
     130        dy = ipc_get_arg2(call);
    131131
    132132        rc = input->ev_ops->move(input, dx, dy);
     
    142142        errno_t rc;
    143143
    144         x = IPC_GET_ARG1(*call);
    145         y = IPC_GET_ARG2(*call);
    146         max_x = IPC_GET_ARG3(*call);
    147         max_y = IPC_GET_ARG4(*call);
     144        x = ipc_get_arg1(call);
     145        y = ipc_get_arg2(call);
     146        max_x = ipc_get_arg3(call);
     147        max_y = ipc_get_arg4(call);
    148148
    149149        rc = input->ev_ops->abs_move(input, x, y, max_x, max_y);
     
    157157        errno_t rc;
    158158
    159         bnum = IPC_GET_ARG1(*call);
    160         press = IPC_GET_ARG2(*call);
     159        bnum = ipc_get_arg1(call);
     160        press = ipc_get_arg2(call);
    161161
    162162        rc = input->ev_ops->button(input, bnum, press);
     
    172172                async_get_call(&call);
    173173
    174                 if (!IPC_GET_IMETHOD(call)) {
     174                if (!ipc_get_imethod(&call)) {
    175175                        async_answer_0(&call, EOK);
    176176                        return;
    177177                }
    178178
    179                 switch (IPC_GET_IMETHOD(call)) {
     179                switch (ipc_get_imethod(&call)) {
    180180                case INPUT_EVENT_ACTIVE:
    181181                        input_ev_active(input, &call);
Note: See TracChangeset for help on using the changeset viewer.