xf86-input-evdev: Changes to 'master'

Peter Hutterer whot at kemper.freedesktop.org
Sun Jan 11 19:29:02 PST 2009


 src/evdev.c |   24 ++++++++++++------------
 src/evdev.h |   32 +++++++++++++++++++++++++-------
 2 files changed, 37 insertions(+), 19 deletions(-)

New commits:
commit 4dfd86b2201b2b19761a1abb3c580cecf0060224
Author: Matt Helsley <matt.helsley at gmail.com>
Date:   Sun Jan 11 18:36:59 2009 -0800

    Fix FOO_MAX off-by-one
    
    In linux/input.h each section's (e.g. ABS) FOO_MAX is the maximum FOO
    value. Recent kernels define FOO_CNT as the maximum number of FOO there
    will ever be. Hence using FOO_MAX to size the bit vectors representing
    the capabilities of an evdev device is off by one.
    
    Define FOO_CNT values for use with Linux kernels which lack them. Use
    FOO_CNT whenever we need to know the number of bits needed -- usually to
    calculate the number of longs needed.
    
    When iterating over the values FOO_MAX still seems appropriate however
    the loop test should include FOO_MAX rather than skip it.
    
    Signed-off-by: Matt Helsley <matt.helsley at gmail.com>
    Signed-off-by: Peter Hutterer <peter.hutterer at who-t.net>

commit d3fd42d8644310abcae23bbf534f8c445296bcb7
Author: Matt Helsley <matt.helsley at gmail.com>
Date:   Sun Jan 11 18:04:40 2009 -0800

    rename NBITS to NLONGS to reflect its actual meaning
    
    NBITS really convers the number of bits passed as its argument
    into a number of longs. This is somewhat atypical of many
    function-like-macro names. Rename it to NLONGS.
    
    Signed-off-by: Matt Helsley <matt.helsley at gmail.com>
    Signed-off-by: Peter Hutterer <peter.hutterer at who-t.net>



More information about the xorg-commit mailing list