On Tue, May 25, 2010 at 6:08 PM, Randi Botse <nightdecoder@xxxxxxxxx> wrote: > Hi All, > > Im looking at lscpu.c shipped by util-linux-ng-2.17, can you explain > me how the *vir_types[] declared, is this valid C declaration? > N_(blah) must be defined in some include files > /* virtualization types */ > enum { > VIRT_NONE = 0, > VIRT_PARA, > VIRT_FULL > }; > const char *virt_types[] = { > [VIRT_NONE] = N_("none"), > [VIRT_PARA] = N_("para"), > [VIRT_FULL] = N_("full") > }; > -- > To unsubscribe from this list: send the line "unsubscribe linux-c-programming" in > the body of a message to majordomo@xxxxxxxxxxxxxxx > More majordomo info at http://vger.kernel.org/majordomo-info.html > -- To unsubscribe from this list: send the line "unsubscribe linux-c-programming" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html