commit | 215a6af5f83e7866751f24fc61f709b444e61c1d | [log] [tgz] |
---|---|---|
author | Elliott Hughes <enh@google.com> | Sun Dec 24 00:42:38 2017 -0800 |
committer | Rob Landley <rob@landley.net> | Tue Dec 26 22:28:10 2017 -0600 |
tree | c1365d13267256e6fc1877ab3f238b6f5ac0ea32 | |
parent | 70a6c55499eabf1229dfb0b49f08b366cbaa7896 [diff] |
Add xxd -i (and xxd -ri). The original xxd doesn't support -r with -i. The original also outputs "unsigned char name[] = { ... };" for input other than stdin, but that actually makes it less useful --- many languages support array initializers, but far fewer support that exact declaration syntax. Also fix the -c range checking and defaulting: ><= in the argument string only works for floating point arguments. Bug: http://b/64711851