summaryrefslogtreecommitdiffstats
path: root/text-utils/parse.c
Commit message (Collapse)AuthorAgeFilesLines
* hexdump: add the prefix 'hexdump-' to {conv,display,parse}.cOndrej Oprala2013-12-021-494/+0Star
| | | | Signed-off-by: Ondrej Oprala <ooprala@redhat.com>
* hexdump: catch memory leaksOndrej Oprala2013-11-081-1/+1
| | | | Signed-off-by: Ondrej Oprala <ooprala@redhat.com>
* hexdump: make addfile() variable names more hinting of their purposeOndrej Oprala2013-11-081-6/+6
| | | | Signed-off-by: Ondrej Oprala <ooprala@redhat.com>
* hexdump: use skip_space() in add()Ondrej Oprala2013-11-081-9/+4Star
| | | | Signed-off-by: Ondrej Oprala <ooprala@redhat.com>
* hexdump: rename in() to first_letter()Ondrej Oprala2013-11-081-8/+8
| | | | | Signed-off-by: Ondrej Oprala <ooprala@redhat.com> Signed-off-by: Karel Zak <kzak@redhat.com>
* hexdump: get rid of redundant typecastsOndrej Oprala2013-11-081-8/+8
| | | | Signed-off-by: Ondrej Oprala <ooprala@redhat.com>
* hexdump: rewrite cluttered case statementsOndrej Oprala2013-11-081-133/+104Star
| | | | | | | [kzak@redhat.com: - use strchr() for in() macro] Signed-off-by: Ondrej Oprala <ooprala@redhat.com> Signed-off-by: Karel Zak <kzak@redhat.com>
* hexdump: use GNU case ranges where possibleOndrej Oprala2013-11-081-4/+4
| | | | Signed-off-by: Ondrej Oprala <ooprala@redhat.com>
* hexdump: use xstrncpy in add()Ondrej Oprala2013-11-081-2/+2
| | | | Signed-off-by: Ondrej Oprala <ooprala@redhat.com>
* hexdump: minor formatting improvementsOndrej Oprala2013-11-081-18/+18
| | | | Signed-off-by: Ondrej Oprala <ooprala@redhat.com>
* hexdump: rename next{fs,fu,pr} to {fs,fu,pr}listOndrej Oprala2013-11-081-19/+19
| | | | Signed-off-by: Ondrej Oprala <ooprala@redhat.com>
* hexdump: rewrite addfile() to use getline()Ondrej Oprala2013-11-081-9/+8Star
| | | | Signed-off-by: Ondrej Oprala <ooprala@redhat.com>
* hexdump: formatting and variable name cleanupOndrej Oprala2013-11-081-6/+6
| | | | Signed-off-by: Ondrej Oprala <ooprala@redhat.com>
* hexdump: rewrite() formatting improvementsOndrej Oprala2013-11-081-29/+28Star
| | | | Signed-off-by: Ondrej Oprala <ooprala@redhat.com>
* hexdump: rewrite escape()Ondrej Oprala2013-11-081-1/+3
| | | | Signed-off-by: Ondrej Oprala <ooprala@redhat.com>
* hexdump: rewrite rewrite()Ondrej Oprala2013-11-081-105/+122
| | | | Signed-off-by: Ondrej Oprala <ooprala@redhat.com>
* hexdump:rewrite add()Ondrej Oprala2013-11-081-5/+3Star
| | | | Signed-off-by: Ondrej Oprala <ooprala@redhat.com>
* hexdump: rewrite addfile()Ondrej Oprala2013-11-081-6/+8
| | | | Signed-off-by: Ondrej Oprala <ooprala@redhat.com>
* hexdump: use list.h queues and rewrite redundant for cyclesOndrej Oprala2013-11-081-65/+79
| | | | Signed-off-by: Ondrej Oprala <ooprala@redhat.com>
* textual: spell and encode the name of Arkadiusz Miƛkiewicz correctlyBenno Schulenberg2013-02-061-1/+1
| | | | Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
* hexdump: do not segfault when iterating over an empty format stringOndrej Oprala2013-01-101-7/+9
| | | | Signed-off-by: Ondrej Oprala <ooprala@redhat.com>
* hexdump: fix shadow declarationSami Kerola2012-07-261-1/+1
| | | | | | | | | text-utils/hexdump.h:84:5: warning: shadowed declaration is here [-Wshadow] ./include/xalloc.h:23:28: warning: declaration of 'size' shadows a global declaration [-Wshadow] ./include/xalloc.h:33:40: warning: declaration of 'size' shadows a global declaration [-Wshadow] ./include/xalloc.h:43:49: warning: declaration of 'size' shadows a global declaration [-Wshadow] Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* hexdump: make code more robustKarel Zak2012-02-021-3/+4
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* hexdump: fix segfault due to uninitialized memoryPetr Uzel2011-08-151-3/+3
| | | | | | | | | | | | util-linux commit 85bf44b714ab184907eb448eba389218956d6a51 replaced all calls to emalloc() with xmalloc(), whose semantics is however different - it does not zero allocated memory. This made hexdump segfault if MALLOC_PERTURB_ was set. Reported-by: Kyrill Detinov <lazy.kent@opensuse.org> Addresses: https://bugzilla.novell.com/show_bug.cgi?id=710877 Signed-off-by: Petr Uzel <petr.uzel@suse.cz>
* hexdump: new usage(), xalloc and err.h stuffSami Kerola2011-02-211-26/+16Star
| | | | | | | | | | | New usage help screen and print version switch. Also fixes to exit codes, util linux xmalloc replaced emalloc and every error print is using libc error function. [kzak@redhat.com: - minor changes in formatting and coding style] Signed-off-by: Sami Kerola <kerolasa@iki.fi> Signed-off-by: Karel Zak <kzak@redhat.com>
* replace bcopy,bzero,index and rindexDaniel Mierswa2009-08-171-4/+4
| | | | | | | | | Those 4 functions are marked as LEGACY in POSIX.1-2001 and removed in POSIX.1-2008. Replaced with memmove,memset,strchr and strrchr. Signed-off-by: Daniel Mierswa <impulze@impulze.org>
* Imported from util-linux-2.11o tarball.Karel Zak2006-12-071-97/+90Star
|
* Imported from util-linux-2.11b tarball.Karel Zak2006-12-071-1/+1
|
* Imported from util-linux-2.10m tarball.Karel Zak2006-12-071-2/+2
|
* Imported from util-linux-2.9v tarball.Karel Zak2006-12-071-7/+12
|
* Imported from util-linux-2.8 tarball.Karel Zak2006-12-071-4/+0Star
|
* Imported from util-linux-2.7.1 tarball.Karel Zak2006-12-071-19/+18Star
|
* Imported from util-linux-2.2 tarball.Karel Zak2006-12-071-0/+511