/* allocate memory for 'event' (edg_wll_Event); use calloc to also clean it */
/* FIXME: what if calloc fails? should be checked somehow -> nomem etc. */
event = (edg_wll_Event *) calloc(1,sizeof(edg_wll_Event));
+ event->type = eventcode;
/* initialize common fields */
@@@{
$indent = "\t";
/* allocate memory for 'this' (edg_wll_Event) */
// XXX: this = (edg_wll_Event *) calloc(1,sizeof(edg_wll_Event));
this = edg_wll_InitEvent(eventcode);
-this->any.type = eventcode;
/* go through all fields and fill in the edg_wll_Event union
* in each step check for key duplicity and key name misuse
/* allocate memory for 'this' (edg_wll_Event) */
this = edg_wll_InitEvent(eventcode);
-this->any.type = eventcode;
/* go through all fields and fill in the edg_wll_Event union
* in each step check for key duplicity and key name misuse
edg_wll_InitContext(&ctx);
e1 = edg_wll_InitEvent(EDG_WLL_EVENT_REGJOB);
- e1->any.type = EDG_WLL_EVENT_REGJOB;
e1->regJob.jdl = strdup("very long job = \"blabla\" \\\\ \n hugh\t;");
e1->regJob.ns = strdup("ns address");
edg_wll_InitContext(&ctx);
e1 = edg_wll_InitEvent(EDG_WLL_EVENT_$u);
- e1->any.type = EDG_WLL_EVENT_$u;
";
selectType $event '_common_';