* Basic manipulations with the internal representation of job state
*/
-static void init_intJobStat(intJobStat *p)
-{
- memset(p, 0, sizeof(intJobStat));
- p->pub.jobtype = EDG_WLL_STAT_SIMPLE;
- p->pub.children_hist = (int*) calloc(1+EDG_WLL_NUMBER_OF_STATCODES, sizeof(int));
- p->pub.children_hist[0] = EDG_WLL_NUMBER_OF_STATCODES;
- p->pub.stateEnterTimes = (int*) calloc(1+EDG_WLL_NUMBER_OF_STATCODES, sizeof(int));
- p->pub.stateEnterTimes[0] = EDG_WLL_NUMBER_OF_STATCODES;
- /* TBD: generate */
-}
-
#if 0
static int eval_expect_update(intJobStat *, int *, char **);
#endif
int add_stringlist(char ***, const char *);
int edg_wll_compare_seq(const char *, const char *);
+void init_intJobStat(intJobStat *p);
for (n=0; e[n].type; n++);
qsort(e,n,sizeof *e,compare_events_by_seq);
}
+
+
+void init_intJobStat(intJobStat *p)
+{
+ memset(p, 0, sizeof(intJobStat));
+ p->pub.jobtype = EDG_WLL_STAT_SIMPLE;
+ p->pub.children_hist = (int*) calloc(1+EDG_WLL_NUMBER_OF_STATCODES, sizeof(int));
+ p->pub.children_hist[0] = EDG_WLL_NUMBER_OF_STATCODES;
+ p->pub.stateEnterTimes = (int*) calloc(1+EDG_WLL_NUMBER_OF_STATCODES, sizeof(int));
+ p->pub.stateEnterTimes[0] = EDG_WLL_NUMBER_OF_STATCODES;
+ /* TBD: generate */
+}
+
char *errstring;
js = calloc(1, sizeof(intJobStat));
+ init_intJobStat(js);
i = 0;
while (events[i])