diff options
| author | Michael Forney <mforney@mforney.org> | 2019-06-07 11:29:01 -0700 |
|---|---|---|
| committer | Henrik Rydberg <rydberg@bitmath.se> | 2020-01-26 15:00:32 +0100 |
| commit | 5a260fa95a5e7cebdd8f9da947c8d8eb244efae0 (patch) | |
| tree | cb6d4cdee41466c790a4ba93ca480d82f942b4b8 /test | |
| parent | 5f9caa26b81155feede6ff71c9b14fa0e8980fbd (diff) | |
Use a macro for `nlongs` so it can be used in constant expression
This way, it can be used to specify the `absbits` array size (in
`mtdev_configure`) without making it a VLA.
VLAs are an optional feature in C11, and in this case we can determine
the array size statically.
This also matches the macros used in libevdev and libinput.
Signed-off-by: Michael Forney <mforney@mforney.org>
Signed-off-by: Henrik Rydberg <rydberg@bitmath.se>
Diffstat (limited to 'test')
0 files changed, 0 insertions, 0 deletions
