[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20120203072725.GA6914@polaris.bitmath.org>
Date: Fri, 3 Feb 2012 08:27:25 +0100
From: "Henrik Rydberg" <rydberg@...omail.se>
To: Chase Douglas <chasedouglas@...il.com>
Cc: Dmitry Torokhov <dmitry.torokhov@...il.com>,
linux-input@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH v3] Input: Add EVIOC mechanism for MT slots
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:
>
> http://www.cplusplus.com/forum/beginner/1601/
>
> 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.
Thanks,
Henrik
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists