summaryrefslogtreecommitdiffstats
path: root/libsmartcols/src
Commit message (Collapse)AuthorAgeFilesLines
* libsmartcols: avoid variable dereference after releaseSami Kerola2014-07-131-1/+1
| | | | Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* textual: fix some typosSami Kerola2014-07-131-1/+1
| | | | | | | Found with misspell-check version 2.0d. Reference: https://github.com/lyda/misspell-check Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* libsmartcols: add note about deallocationsKarel Zak2014-06-303-3/+6
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* build-sys: move libsmartcols.so to /lib if they existsKarel Zak2014-06-161-1/+1
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* libsmartcols: add debug messagesKarel Zak2014-06-066-19/+124
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* libsmartcols: fix docsKarel Zak2014-06-031-1/+1
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* docs: rename libs xml/version.xml to xml/version-utils.xmlKarel Zak2014-06-031-1/+1
| | | | | | | It seems that gtk-docs stuff is confused when we use version.xml (package version) and xml/version.xml (library version functions). Signed-off-by: Karel Zak <kzak@redhat.com>
* libsmartcols: clean up test.c exampleKarel Zak2014-05-301-56/+28Star
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* libsmartcols: add scols_sort_table()Karel Zak2014-05-207-2/+173
| | | | | | | | | | | | | | | | | | | * add pointer to column cmp() function [scols_column_set_cmpfunc()] * allow to store per-cell application private data (to make it possible to sort tables on data independent on cell output data) [scols_cell_set_userdata() ...] * make it possible to access line cell by column [scols_line_get_column_cell()] Sort and cmp() stuff based on patches from Shakur Shams Mullick. Co-Author: Shakur Shams Mullick <shakursmullick@gmail.com> Signed-off-by: Shakur Shams Mullick <shakursmullick@gmail.com> Signed-off-by: Karel Zak <kzak@redhat.com> Signed-off-by: Karel Zak <kzak@redhat.com>
* libsmartcols: use new colors APIKarel Zak2014-05-133-8/+8
| | | | 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-146-9/+121
| | | | 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-077-11/+31
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* libsmartcols: add debug and version functionsKarel Zak2014-04-078-3/+133
| | | | 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-036-143/+132Star
| | | | | | | | | * 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-033-0/+13
| | | | 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-037-51/+574
| | | | 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>