search for: set_integer

Displaying 1 result from an estimated 1 matches for "set_integer".

2011 Apr 04
1
[PATCH] com32: Do not use centralized bitops header in vsscanf
...% LONG_BIT); +} + +#undef test_bit +static int test_bit(unsigned long *bitmap, unsigned int bit) +{ + return (int)(bitmap[bit / LONG_BIT] >> (bit % LONG_BIT)) & 1; +} + int vsscanf(const char *buffer, const char *format, va_list ap) { const char *p = format; @@ -298,7 +309,7 @@ set_integer: if (ch == '^' && !(flags & FL_INV)) { matchinv = 1; } else { - set_bit((unsigned char)ch, matchmap); + set_bit(matchmap, (unsigned char)ch); state = st_match; } break; @@ -310,18 +321,18 @@ set_integer: range_start = (unsigned char)ch; stat...