From c62189af44fb7113c1d0430730ee2a433c46c1ca Mon Sep 17 00:00:00 2001 From: Neil Date: Sun, 12 Feb 2023 22:30:04 -0800 Subject: [PATCH] glider remarks unrecognized --- src/flight.re.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/flight.re.c b/src/flight.re.c index 79b9453..0b04ed2 100644 --- a/src/flight.re.c +++ b/src/flight.re.c @@ -80,6 +80,7 @@ static int scan(struct flights *const f, * { why = "pilot unrecognized"; goto catch; } * { why = "dual unrecognized"; goto catch; } * { why = "instr unrecognized"; goto catch; } + * { why = "remarks unrecognized"; goto catch; } * { why = "planned"; goto catch; } ws* @s0 semitext+ @s1 ws* ";" => glider_reg { const union line64 key @@ -130,14 +131,15 @@ static int scan(struct flights *const f, { why = "dual time"; goto catch; } continue; } - ws* ";" => glider_err /* not PIC */ + ws* ";" => glider_remarks { flight->glider.instr_min = 0; continue; } ws* @s0 natural? @s1 ":" @t0 natural @t1 ws* ";" - => glider_err { + => glider_remarks { if(!pair_to_minutes(s0, s1, t0, t1, &flight->glider.instr_min)) { why = "instr time"; goto catch; } continue; } + // ws* @s0 semitext+ ws+ @s1 ws* ??\ "\n"? => */ } assert(0); /* Never gets here. */ catch: