summaryrefslogtreecommitdiffstats
path: root/libsmartcols
Commit message (Collapse)AuthorAgeFilesLines
* libsmartcols: (docs) reorder functions in version sectionKarel Zak2014-05-071-1/+1
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* libsmartcols: check recount_widths() return valueKarel Zak2014-05-061-1/+5
| | | | | Reported-by: Sami Kerola <kerolasa@iki.fi> Signed-off-by: Karel Zak <kzak@redhat.com>
* libsmartcols: fix buffer usageKarel Zak2014-04-181-2/+2
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* libsmartcols: don't colorize tree ascii artKarel Zak2014-04-151-8/+40
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* libsmartcols: don't mix width (in cells) and size (in bytes)Karel Zak2014-04-151-7/+9
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* libsmartcols: resuse buffer for encoded dataKarel Zak2014-04-151-9/+30
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* libsmartcols: fix paddingKarel Zak2014-04-141-1/+1
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* libsmartcols: use buffer struct in table_print.cKarel Zak2014-04-141-110/+208
| | | | | | | | * consolidate code in table_print.c * make the code easy to extend * use return codes everywhere Signed-off-by: Karel Zak <kzak@redhat.com>
* libsmartcols: improve line and cell separatorsKarel Zak2014-04-143-17/+22
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* libsmartcols: add separator getters/settersOndrej Oprala2014-04-147-9/+125
| | | | Signed-off-by: Ondrej Oprala <ooprala@redhat.com>
* libsmartcols: rewrite test code to tree(1)-like utilKarel Zak2014-04-081-114/+190
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* libsmartcols: improve docsKarel Zak2014-04-078-11/+33
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* libsmartcols: add debug and version functionsKarel Zak2014-04-079-4/+146
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* libsmartcols: add missing COPYING fileKarel Zak2014-04-041-0/+8
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* libsmartcols: fix testKarel Zak2014-04-041-9/+9
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* build-sys: small fixes to libsmartcolsKarel Zak2014-04-041-0/+1
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* libsmartcols: clean up flags usageKarel Zak2014-04-037-151/+139Star
| | | | | | | | | * rename flags functions to scols_table_enable_* * rename *_no_foo() functions to _nofoo() * output formats are mutually exclusive, so don't use flags there * don't assume symbols in scols_new_table(), use scols_table_set_symbols() Signed-off-by: Karel Zak <kzak@redhat.com>
* libsmartcols: init symbols when necessaryKarel Zak2014-04-032-2/+7
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* libsmartcols: clean up flagsKarel Zak2014-04-031-5/+5
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* libsmartcols: always deallocate in scols_reset_cell()Karel Zak2014-04-032-14/+8Star
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* libsmartcols: include stdioOndrej Oprala2014-04-039-8/+9
| | | | Signed-off-by: Ondrej Oprala <ooprala@redhat.com>
* libsmartcols: add scols_table_is_empty()Ondrej Oprala2014-04-034-0/+14
| | | | Signed-off-by: Ondrej Oprala <ooprala@redhat.com>
* libsmartcols: fix a usage exampleOndrej Oprala2014-04-031-2/+2
| | | | Signed-off-by: Ondrej Oprala <ooprala@redhat.com>
* libsmartcols: documentationOndrej Oprala2014-04-0313-54/+863
| | | | Signed-off-by: Ondrej Oprala <ooprala@redhat.com>
* libsmartcols: move some code aroundOndrej Oprala2014-04-032-7/+7
| | | | Signed-off-by: Ondrej Oprala <ooprala@redhat.com>
* libsmartcols: revert the column flags APIOndrej Oprala2014-04-036-120/+51Star
| | | | Signed-off-by: Ondrej Oprala <ooprala@redhat.com>
* libsmartcols: colors may now be specified as human-readable stringsOndrej Oprala2014-04-034-1/+22
| | | | Signed-off-by: Ondrej Oprala <ooprala@redhat.com>
* libsmartcols: separate flags, add getters/settersOndrej Oprala2014-04-037-108/+498
| | | | Signed-off-by: Ondrej Oprala <ooprala@redhat.com>
* libsmartcols: add missing copyright notificationsOndrej Oprala2014-04-034-0/+11
| | | | Signed-off-by: Ondrej Oprala <ooprala@redhat.com>
* libsmartcols: fill the symbol version fileOndrej Oprala2014-04-031-1/+73
| | | | Signed-off-by: Ondrej Oprala <ooprala@redhat.com>
* libsmartcols: allow to read lines as treeKarel Zak2014-04-032-0/+29
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* libsmartcols: add function to convert table to stringKarel Zak2014-04-032-0/+26
| | | | | | | Note that open_memstream() is POSIX-1.2008, so it's possible than not all libc have already implemented this function. Signed-off-by: Karel Zak <kzak@redhat.com>
* libsmartcols: remove unnecessary codeKarel Zak2014-04-033-16/+7Star
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* libsmartcols: add reduce term width functionalityKarel Zak2014-04-034-0/+13
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* libsmartcols: add SCOLS_FL_MAXKarel Zak2014-04-033-9/+25
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* libsmartcols: support alternative streamsKarel Zak2014-04-034-18/+39
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* libsmartcols: add testOndrej Oprala2014-04-032-0/+167
| | | | | | [kzak@redhat.com: - refresh according to previous API changes] Signed-off-by: Karel Zak <kzak@redhat.com>
* libsmartcols: add table codeKarel Zak2014-04-034-2/+1157
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* libsmartcols: add table struct, cleanup refcountingKarel Zak2014-04-034-46/+205
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* libsmartcols: add linesKarel Zak2014-04-035-9/+207
| | | | | Co-Author: Ondrej Oprala <ooprala@redhat.com> Signed-off-by: Karel Zak <kzak@redhat.com>
* libsmartcols: add columnsKarel Zak2014-04-035-0/+206
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* libsmartcols: add cellsOndrej Oprala2014-04-034-0/+86
| | | | | | [kzak@redhat.com: - remove copy, free -- all have to be handled by lines] Signed-off-by: Karel Zak <kzak@redhat.com>
* libsmartcols: add symbolsOndrej Oprala2014-04-034-0/+122
| | | | | | [kzak@redhat.com: - split scols_new_symbols() to regular getters functions] Signed-off-by: Karel Zak <kzak@redhat.com>
* libsmartcols: add iteratorOndrej Oprala2014-04-034-0/+97
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* libsmartcols: add basic filesOndrej Oprala2014-04-037-0/+141
Signed-off-by: Ondrej Oprala <ooprala@redhat.com> Signed-off-by: Karel Zak <kzak@redhat.com>