-
Committer:
Scott James Remnant
-
Date:
2005-09-30 02:16:16 UTC
-
Revision ID:
scott@netsplit.com-20050930021616-13ab3d78f29682c0
* configure.ac: Include a check for the size of the long type,
we'll use this to detect I?LP64 platforms and adjust inputmap
sizes appropriately.
* src/grepmap.h: Define LONG_ARRAYS if we're on a platform with
at least 64 bits in unsigned long; define BitArray to be the
right type on either.
* src/inputmap.c (InputDevice): Define array lengths depending
whether arrays are long or not, change types to BitArray.
* src/util.c (parse_array): Change parameter type to BitArray,
when arrays are long use %lx as the scanf parameter(). Change
array_len parameter to a plain int.
(parse_line): Use different variables for integer and array
pointers, change array pointer type to BitArray *. Change array_len
parameter to a plain int.
(match_array): Change parameter types to BitArray, and array_len
parameter to a plain int.