mirror of
https://salsa.debian.org/dskoll/remind.git
synced 2026-04-16 06:18:47 +02:00
Don't permit repeated DELTA or REPEATs either.
This commit is contained in:
@@ -453,11 +453,13 @@ static int ParseTimeTrig(ParsePtr s, TimeTrig *tim, int save_in_globals)
|
||||
|
||||
case T_Delta:
|
||||
DBufFree(&buf);
|
||||
if (tim->delta != NO_DELTA) return E_DELTA_TWICE;
|
||||
tim->delta = (tok.val > 0) ? tok.val : -tok.val;
|
||||
break;
|
||||
|
||||
case T_Rep:
|
||||
DBufFree(&buf);
|
||||
if (tim->rep != NO_REP) return E_REP_TWICE;
|
||||
tim->rep = tok.val;
|
||||
break;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user