hehehe... using the array form to initialize structs ehehehehe XD
(c/typedef KeywordDef
(struct
name (const char*)
key :int))
(c/declare
(selectionOperators (array (const KeywordDef)))
:static
(array
(array "and" H5S_SELECT_AND)
(array "append" H5S_SELECT_APPEND)))
will get you:
typedef struct {
const char* name;
int key;
} KeywordDef;
static const KeywordDef selectionOperators[] = {
{
"and",
H5S_SELECT_AND
},
{
"append",
H5S_SELECT_APPEND
}
};
and i love it!