hexdump: add basic tests

Signed-off-by: Ondrej Oprala <ooprala@redhat.com>
Signed-off-by: Karel Zak <kzak@redhat.com>
hexdump: use list.h queues and rewrite redundant for cycles

Signed-off-by: Ondrej Oprala <ooprala@redhat.com>
hexdump: cleanup of redundant symbols/repeating literals

Signed-off-by: Ondrej Oprala <ooprala@redhat.com>
hexdump: rewrite addfile()

Signed-off-by: Ondrej Oprala <ooprala@redhat.com>
hexdump: rewrite get()

Signed-off-by: Ondrej Oprala <ooprala@redhat.com>
hexdump: rewrite next()

Signed-off-by: Ondrej Oprala <ooprala@redhat.com>
hexdump:rewrite add()

Signed-off-by: Ondrej Oprala <ooprala@redhat.com>
hexdump: rewrite rewrite()

Signed-off-by: Ondrej Oprala <ooprala@redhat.com>
hexdump: rewrite escape()

Signed-off-by: Ondrej Oprala <ooprala@redhat.com>
hexdump: rewrite() formatting improvements

Signed-off-by: Ondrej Oprala <ooprala@redhat.com>
hexdump: formatting and variable name cleanup

Signed-off-by: Ondrej Oprala <ooprala@redhat.com>
hexdump: rewrite addfile() to use getline()

Signed-off-by: Ondrej Oprala <ooprala@redhat.com>
hexdump: rename next{fs,fu,pr} to {fs,fu,pr}list

Signed-off-by: Ondrej Oprala <ooprala@redhat.com>
hexdump: minor formatting improvements

Signed-off-by: Ondrej Oprala <ooprala@redhat.com>
hexdump: simplify newsyntax arguments

Signed-off-by: Ondrej Oprala <ooprala@redhat.com>
hexdump: use xstrncpy in add()

Signed-off-by: Ondrej Oprala <ooprala@redhat.com>
hexdump: use GNU case ranges where possible

Signed-off-by: Ondrej Oprala <ooprala@redhat.com>
hexdump: delete redundant typecasts

Signed-off-by: Ondrej Oprala <ooprala@redhat.com>
hexdump: use xasprintf in conv_c()

Signed-off-by: Ondrej Oprala <ooprala@redhat.com>
hexdump: rewrite cluttered case statements

[kzak@redhat.com: - use strchr() for in() macro]

Signed-off-by: Ondrej Oprala <ooprala@redhat.com>
Signed-off-by: Karel Zak <kzak@redhat.com>