X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ian/git?a=blobdiff_plain;f=hbytes%2Fhbytes.h;fp=hbytes%2Fhbytes.h;h=4b4f4e8210ecacf106d8a8671f5dc5a9ada13380;hb=d6fd8ff47e228354088d5be383a55d1d24099c36;hp=17a05942b84a6b69b887fc015309c55f944993cb;hpb=0bcca45f296b613b1f1449d232f43eb0ada0014b;p=chiark-tcl.git diff --git a/hbytes/hbytes.h b/hbytes/hbytes.h index 17a0594..4b4f4e8 100644 --- a/hbytes/hbytes.h +++ b/hbytes/hbytes.h @@ -66,7 +66,7 @@ * ulong VARNAME/VALUE VALUE if bitfields2ul) * * hbytes mask-map lookup MAP-VAR ADDRESS [DEFAULT] => DATA - * error on missing default or if address too short + * error on missing default or if any prefix longer than address * hbytes mask-map amend MAP-VAR PREFIX PREFIX-LENGTH DATA * a maskmap MAP is [list [list PREFIX PREFIX-LENGTH DATA]] sorted * first by descending PREFIX-LENGTH and then by ascending PREFIX @@ -86,6 +86,8 @@ * HBYTES LENGTH MISMATCH when blocks must be exactly same length * HBYTES SYNTAX supposed hex block had wrong syntax * HBYTES VALUE OVERFLOW value to be conv'd to hex too big/long + * HBYTES MASKMAP NOMATCH no addr/mask matches address for lookup + * HBYTES MASKMAP UNDERRUN addr value for lookup is too short * HBYTES MASKMAP SYNTAX LLENGTH value for mask-map entry not llength==3 * HBYTES MASKMAP SYNTAX UNDERRUN value for mask-map entry hex too short * HBYTES MASKMAP SYNTAX OVERRUN actual mask-map entry hex too short