xundump: Permit omitting non-trailing sectors

This involves computing the sector ID from fields xloc, yloc.

Signed-off-by: Markus Armbruster <armbru@pond.sub.org>
This commit is contained in:
Markus Armbruster 2014-02-09 10:01:59 +01:00
parent 708b8d49d0
commit 1c2860c8f6
4 changed files with 63 additions and 1 deletions

View file

@ -45,6 +45,7 @@ tests/empdump/xundump-errors/fld-invid1:3: Expected 0 in field 1
tests/empdump/xundump-errors/fld-invid2:3: Field 1 must be > -1
tests/empdump/xundump-errors/fld-invid3:4: Field 1 must be > 2
tests/empdump/xundump-errors/fld-invid4:3: Field 1 must be <= 98
tests/empdump/xundump-errors/fld-invid5:4: Coordinates in fields 1,2 must be > 2,0
tests/empdump/xundump-errors/fld-junk:2: Junk in field 1
tests/empdump/xundump-errors/fld-junk2:2: Junk in field 19
tests/empdump/xundump-errors/fld-malnum:2: Malformed number in field 1

View file

@ -69,6 +69,7 @@
1
1
1
1
0
1
0

View file

@ -0,0 +1,5 @@
config sect
xloc yloc ...
2 0
0 0
# Coordinates in fields 1,2 must be > 2,0