Changeset db25906 in mainline for kernel/genarch/src/kbd/key.c


Ignore:
Timestamp:
2007-10-05T05:16:18Z (17 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
c4e75ea
Parents:
f7fad5a
Message:

Remove duplicit implementation of strlen() in kernel, rename is_digit(),
is_white() and co. to their standard names (e.g. isdigit(), isspace()) and
remove duplicit implementation of isdigit(). Fix cstyle in kernel printf()
implementation.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/genarch/src/kbd/key.c

    rf7fad5a rdb25906  
    145145                break;
    146146        default:
    147                 letter = is_lower(ascii);
    148                 capslock = (keyflags & PRESSED_CAPSLOCK) || (lockflags & LOCKED_CAPSLOCK);
     147                letter = islower(ascii);
     148                capslock = (keyflags & PRESSED_CAPSLOCK) ||
     149                    (lockflags & LOCKED_CAPSLOCK);
    149150                shift = keyflags & PRESSED_SHIFT;
    150151                if (letter && capslock)
     
    233234                break;
    234235        default:
    235                 letter = is_lower(ascii);
    236                 capslock = (keyflags & PRESSED_CAPSLOCK) || (lockflags & LOCKED_CAPSLOCK);
     236                letter = islower(ascii);
     237                capslock = (keyflags & PRESSED_CAPSLOCK) ||
     238                    (lockflags & LOCKED_CAPSLOCK);
    237239                shift = keyflags & PRESSED_SHIFT;
    238240                if (letter && capslock)
Note: See TracChangeset for help on using the changeset viewer.