Changeset 1583793 in mainline


Ignore:
Timestamp:
2018-07-05T21:41:25Z (6 years ago)
Author:
Dzejrou <dzejrou@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
6f025a8
Parents:
0d2bc9d
git-author:
Dzejrou <dzejrou@…> (2018-06-26 14:13:12)
git-committer:
Dzejrou <dzejrou@…> (2018-07-05 21:41:25)
Message:

c: fixed cstyle and removed leftover testing key combination

Location:
uspace/lib
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/c/generic/str.c

    r0d2bc9d r1583793  
    17261726                *result = unsigned_result;
    17271727
    1728         /* Check whether we are at the end of
    1729            the string in strict mode */
     1728        /*
     1729         * Check whether we are at the end of
     1730         * the string in strict mode
     1731         */
    17301732        if ((strict) && (*lendptr != 0))
    17311733                return EINVAL;
  • uspace/lib/gui/terminal.c

    r0d2bc9d r1583793  
    417417                        cons_event_t *event = list_get_instance(link, cons_event_t, link);
    418418
    419                         /* Ctrl-D inputs end-of-file. */
    420                         if ((event->ev.key.mods & KM_LCTRL) != 0 &&
    421                              event->ev.key.key == KC_D && event->ev.key.type == KEY_PRESS) {
    422                                 term->char_remains[term->char_remains_len] = EOF;
    423                                 term->char_remains_len = str_size(term->char_remains);
    424 
    425419                        /* Accept key presses of printable chars only. */
    426                         } else if (event->type == CEV_KEY && event->ev.key.type == KEY_PRESS &&
    427                                    event->ev.key.c != 0) {
     420                        if (event->type == CEV_KEY && event->ev.key.type == KEY_PRESS &&
     421                            event->ev.key.c != 0) {
    428422                                wchar_t tmp[2] = {
    429423                                        event->ev.key.c,
Note: See TracChangeset for help on using the changeset viewer.