%token <number> NUMBER
%type <string> qstring string
-%type <number> number timespec
+%type <number> number timespec unittimespec
%type <conf_parm> oneitem single itemlist
%start conf
{
add_cur_list(CF_INT, 0, i);
}
+
+ rb_free($1);
+ rb_free($3);
}
}
;
string: STRING { strcpy($$, $1); } ;
number: NUMBER { $$ = $1; } ;
-timespec: number string
+unittimespec: number string
{
time_t t;
$$ = $1 * t;
}
- | timespec timespec
+ ;
+
+timespec: unittimespec
+ {
+ $$ = $1;
+ }
+ | timespec unittimespec
{
$$ = $1 + $2;
}