static const struct timeval null_timeval = {0,0};
+@@@{
+ my $sep = "const int EDG_WLL_JOB_TERMINAL_STATE[EDG_WLL_NUMBER_OF_STATCODES] = {0, ";
+ for my $term ($status->getTerminalStatusOrdered) {
+ gen qq{$sep $term};
+ $sep = ", ";
+ }
+ $sep = ", 0};";
+ gen qq{$sep};
+@@@}
+
void edg_wll_FreeStatus(edg_wll_JobStat *stat)
{
$self->{fields} = {}; # typ->{ name->StructField, ... }
$self->{order} = {};
$self->{flesh} = {};
+ $self->{terminal} = "";
bless $self;
}
next;
}
+ if (/^\@terminal\s+(\S+)$/) {
+ $self->{terminal} = $self->{terminal} . " " . $1;
+ next;
+ }
+
s/^\s*//;
my ($ftype,$fname,$comment) = split /\s+/,$_,3;
if ($ftype eq '_code_') {
} @names;
}
+sub getTerminalStatusOrdered {
+ my $self = shift;
+ for my $stat ($self->getTypesOrdered) {
+ if ($self->{terminal} =~ m/\b$stat\b/) {
+ push(@out, 1); }
+ else { push(@out, 0); }
+ }
+ @out;
+}
+
sub getTypeComment {
my $self = shift;
my $type = shift || $self->{type};