SIGNEDP = True
def fmt(me, n): return str(n)
+class UnsignedQfConvert (BaseQfConvert):
+ SIGNEDP = False
+ def fmt(me, n): return '0x%x' % n
+
R_split = RX.compile(r',\s*|\s+')
def spliteval(arg): return map(eval, R_split.split(arg.strip()))
convmap = { 'scaf': ScafConvert,
'unscaf': ScafConvert,
'qf': SignedQfConvert,
- 'unqf': SignedQfConvert }
+ 'unqf': SignedQfConvert,
+ 'uqf': UnsignedQfConvert,
+ 'unuqf': UnsignedQfConvert }
op = getarg()
cvt = convmap[op].parse()
if op.startswith('un'): prepare, conv, format = spliteval, cvt.unhack, str