Structinitialisierung - seltsame Schreibweise
-
Ich bin über eine seltsame Schreibweise gestolpert die ich noch nicht gesehen hab und ich frag mich ob das irgend eine Erweiterung ist oder durchaus ansi C
static struct acpi_driver eeepc_hotk_driver = { .name = EEEPC_HOTK_NAME, .class = EEEPC_HOTK_CLASS, .ids = eeepc_device_ids, .flags = ACPI_DRIVER_ALL_NOTIFY_EVENTS, .ops = { .add = eeepc_hotk_add, .remove = eeepc_hotk_remove, .notify = eeepc_hotk_notify, }, };
Hab ich in der Form noch nicht gesehen. Was ist das und wie wirds verwendet, was sind Vor- und/oder Nachteile?
Oder einfach nur ein Stichwort wonach man suchen könnte?
-
-
vielen dank volkard
vs unterstützt das leider nicht - ist wohl doch weiter von ansi c entfernt als ich dachte
-
VS benutzt den C89 Compiler.
Lade dir CodeBlocks runter mit Mingw(C99).