On Thu, Jan 24, 2008 at 05:10:54PM -0500, Mathieu Desnoyers wrote: > Array initializers in the body of a function causes unbalanced brackets which > syntax highlighting editors such as vim have problems with. Fix this by > creating > the INIT_ARRAY() macro. > > It is used to declare arguments passed as function parameters such as: > text_poke(addr, INIT_ARRAY(unsigned char, 0xf0, len), len);
> +#define INIT_ARRAY(type, val, len) ((type[]) {[0 ... (len)-1] = (val)}) While we are at useless macro territory, let's name it MAKE_ARRAY because it's exactly what it does. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/