From 3433068d715ab571d388ae42bd3294c47afd9c71 Mon Sep 17 00:00:00 2001 From: Werner Almesberger Date: Mon, 25 Jul 2016 15:04:07 -0300 Subject: [PATCH] sch2fig/sch.c (sch_parse): ignore AR element (what is this ?) --- sch2fig/sch.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sch2fig/sch.c b/sch2fig/sch.c index 32cedc0..669d4fc 100644 --- a/sch2fig/sch.c +++ b/sch2fig/sch.c @@ -328,6 +328,8 @@ bool sch_parse(struct sch_ctx *ctx, const char *line) return 1; if (parse_field(ctx, line)) return 1; + if (sscanf(line, "AR %n", &n) == 0 && n) + return 1; /* @@@ what is "AR" ? */ n = sscanf(line, " %d %d %d %d", m + 1, m + 2, m + 4, m + 5); if (n == 3) return 1;