summaryrefslogtreecommitdiffstats
path: root/lib/tt.c
Commit message (Collapse)AuthorAgeFilesLines
* lib/tt: work more sensitive with large columnsKarel Zak2012-03-201-1/+7
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* lib,tt: don't trim last line charKarel Zak2011-12-221-0/+1
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* lib,tt: fix compiler warning [-Wreturn-type]Karel Zak2011-11-141-1/+1
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* lib,tt: add TT_FL_NOEXTREMESKarel Zak2011-11-101-41/+124
| | | | | | | | | | | | | | | | | | | | | | | | If you mark a column with TT_FL_NOEXTREMES flag then extremely large fields will no have effect to column width. Foe example: without the TT_FL_NOEXTREMES flag for the 'AAA' column: AAA BBB CCC DDD aa bbb ccc ddd aaaaaaaaaaa bb ccc ddd aa bb ccc ddd aa bb ccc ddd with the flags: AAA BBB CCC DDD aa bbb ccc dddddddddd aaaaaaaaaaa bb ccc dddddddd aa bb ccc dddddd aa bb ccc ddddddddd Signed-off-by: Karel Zak <kzak@redhat.com>
* lib: [tt.c] clean up used typesKarel Zak2011-08-011-16/+20
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* include: [strutils.c] add list parsersKarel Zak2011-07-271-41/+0Star
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* include; [tt.c] check for array size in columns parserKarel Zak2011-07-271-7/+11
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* include: [tt.c] always truncate if TT_FL_TRUNCKarel Zak2011-07-151-2/+10
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* lib: [tt.c] Fix mbs_width macro for systems without WIDECHARJosiah Worcester2011-06-141-1/+1
| | | | Signed-off-by: Josiah Worcester <josiahw@gmail.com>
* lib: [tt.c] support key="value" output formatKarel Zak2011-05-101-3/+16
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* lib: [tt.c] support fixed width and multiple tt_print_table() callsKarel Zak2011-04-271-5/+37
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* lib: [tt.c] use mbs_truncate() from mbsalign.cKarel Zak2011-03-111-64/+3Star
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* lib: [tt.c] dereferencing data before a null check [coverity scan]Karel Zak2011-03-111-1/+2
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* build-sys: provide alternatives for err, errx, warn and warnxFabian Groffen2011-02-141-1/+0Star
| | | | | | | | Solaris lacks err, errx, warn and warnx. This also means the err.h header doesn't exist. Removed err.h include from all files, and included err.h from c.h instead if it exists, otherwise alternatives are provided. Signed-off-by: Fabian Groffen <grobian@gentoo.org>
* include: [tt] enlarge output bufferKarel Zak2011-01-251-4/+21
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* findmnt: add --submounts optionKarel Zak2011-01-041-0/+8
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* lib: [tt] fix alignment of the last tree childKarel Zak2010-12-161-1/+1
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* lib: [tt] add TT_FL_RIGHT, add columns list parserKarel Zak2010-11-241-9/+59
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* findmnt: follow HAVE_LANGINFOKarel Zak2010-11-151-4/+1Star
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* lib/tt: fix langinfo build breakDavidlohr Bueso2010-11-151-1/+1
| | | | | | | | | | | | | | When HAVE_LANGINFO_H is not defined we break the compilation in tt.c: CC tt.o tt.c: In function ‘tt_new_table’: tt.c:142: warning: implicit declaration of function ‘nl_langinfo’ tt.c:142: error: ‘CODESET’ undeclared (first use in this function) tt.c:142: error: (Each undeclared identifier is reported only once tt.c:142: error: for each function it appears in.) make: *** [tt.o] Error 1 Signed-off-by: Davidlohr Bueso <dave@gnu.org>
* lib: remove unwanted debug messagesKarel Zak2010-06-031-8/+2Star
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* lib: tt.c - fix minimal width of columnKarel Zak2010-06-031-6/+15
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* lib: tt.c: don't print header for empty tableKarel Zak2010-06-031-1/+1
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* lib: add tt.c (Tree and Table output)Karel Zak2010-06-031-0/+722
Signed-off-by: Karel Zak <kzak@redhat.com>