Re: [PATCH v3] Input: Add EVIOC mechanism for MT slots

From: Henrik Rydberg
Date: Fri Feb 03 2012 - 02:26:27 EST

Hi Chase,

> > +#define INPUT_MT_REQUEST(num_slots) \
> > + { \
> > + __u32 code; \
> > + __s32 values[num_slots]; \
> I think this assumes a userspace C compiler that can handle variable
> length arrays. This would require only compiling in C source code at the
> C99 standard or later. It looks like C++ doesn't even allow variable
> length arrays, though gcc handles it. According to:
> it looks like Borland c++ compilers may not be able to compile this :(.

This is resolved on the preprocessor level, so C99 or not does not
enter the problem. Compile-time constant, as you can see in the code
example in the patch summary.

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at
Please read the FAQ at