Fork us on GitHub Follow us on Facebook Follow us on Twitter

Changeset 4f22731f in mainline


Ignore:
Timestamp:
2009-03-06T08:15:42Z (13 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master
Children:
e5855f2
Parents:
2069690
Message:

cstyle

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/kbd/layout/us_dvorak.c

    r2069690 r4f22731f  
    2828
    2929/** @addtogroup kbd
    30  * @brief       US Dvorak Simplified Keyboard layout.
     30 * @brief US Dvorak Simplified Keyboard layout.
    3131 * @{
    32  */ 
     32 */
    3333
    3434#include <kbd.h>
     
    193193static int translate(unsigned int key, char *map, size_t map_length)
    194194{
    195         if (key >= map_length) return 0;
    196         return map[key];       
     195        if (key >= map_length)
     196                return 0;
     197        return map[key];
    197198}
    198199
     
    206207
    207208        c = translate(ev->key, map_neutral, sizeof(map_neutral) / sizeof(char));
    208         if (c != 0) return c;
     209        if (c != 0)
     210                return c;
    209211
    210212        if (((ev->mods & KM_SHIFT) != 0) ^ ((ev->mods & KM_CAPS_LOCK) != 0))
     
    213215                c = translate(ev->key, map_lcase, sizeof(map_lcase) / sizeof(char));
    214216
    215         if (c != 0) return c;
     217        if (c != 0)
     218                return c;
    216219
    217220        if ((ev->mods & KM_SHIFT) != 0)
     
    220223                c = translate(ev->key, map_not_shifted, sizeof(map_not_shifted) / sizeof(char));
    221224
    222         if (c != 0) return c;
     225        if (c != 0)
     226                return c;
    223227
    224228        if ((ev->mods & KM_NUM_LOCK) != 0)
     
    232236/**
    233237 * @}
    234  */ 
     238 */
Note: See TracChangeset for help on using the changeset viewer.