]> mj.ucw.cz Git - libucw.git/log
libucw.git
9 years agotableprinter: updated table_col_<type> funcs, update of mem allocation
Robert Kessl [Wed, 16 Jul 2014 08:58:06 +0000 (10:58 +0200)]
tableprinter: updated table_col_<type> funcs, update of mem allocation

9 years agotableprinter: started fixing of setting cell values
Robert Kessl [Wed, 16 Jul 2014 07:40:19 +0000 (09:40 +0200)]
tableprinter: started fixing of setting cell values

9 years agotableprinter: code cleanup, update of formats of double
Robert Kessl [Tue, 15 Jul 2014 12:35:33 +0000 (14:35 +0200)]
tableprinter: code cleanup, update of formats of double

9 years agotableprinter: update of TABLE_COL_BODIES macro, code cleanup
Robert Kessl [Tue, 15 Jul 2014 11:06:24 +0000 (13:06 +0200)]
tableprinter: update of TABLE_COL_BODIES macro, code cleanup

 - TABLE_COL_BODIES macros moved to table.h
 - removed undef of TABLE_COL_PROTO in table.h
 - code cleanup
 - added xtypes.h to header list in Makefile

9 years agoxtypes: bugfixes in printf format and incorrect use of errno
Robert Kessl [Mon, 14 Jul 2014 09:16:01 +0000 (11:16 +0200)]
xtypes: bugfixes in printf format and incorrect use of errno

9 years agoxtypes&tableprinter: basic cleanup
Robert Kessl [Mon, 14 Jul 2014 08:36:54 +0000 (10:36 +0200)]
xtypes&tableprinter: basic cleanup

9 years agoxtype&tableprinter: first shot on incorporating xtypes to tableprinter
Robert Kessl [Mon, 14 Jul 2014 08:14:43 +0000 (10:14 +0200)]
xtype&tableprinter: first shot on incorporating xtypes to tableprinter

9 years agoExtended types: First attempt at interface
Martin Mares [Thu, 10 Jul 2014 14:04:44 +0000 (16:04 +0200)]
Extended types: First attempt at interface

9 years agotableprinter: added a FIXME comment
Robert Kessl [Thu, 10 Jul 2014 08:18:22 +0000 (10:18 +0200)]
tableprinter: added a FIXME comment

9 years agotableprinter: update of size units
Robert Kessl [Thu, 10 Jul 2014 08:17:17 +0000 (10:17 +0200)]
tableprinter: update of size units

9 years agotableprinter: fix of table_make_instance, incorrect initialization of column order
Robert Kessl [Thu, 10 Jul 2014 08:16:28 +0000 (10:16 +0200)]
tableprinter: fix of table_make_instance, incorrect initialization of column order

9 years agotableprinter: renamed size units; update of doc
Robert Kessl [Wed, 9 Jul 2014 15:23:46 +0000 (17:23 +0200)]
tableprinter: renamed size units; update of doc

9 years agotableprinter: code cleanup contd.
Robert Kessl [Wed, 9 Jul 2014 14:12:23 +0000 (16:12 +0200)]
tableprinter: code cleanup contd.

 - update of cell output types: CELL_OUT_UNINITIALIZED is -1, CELL_OUT_HUMAN_READABLE is now -2 and CELL_OUT_MACHINE_READABLE -3
 - table_col_bool* now uses bool instead of uint
 - other code cleanup

9 years agotableprinter: code cleanup contd.
Robert Kessl [Wed, 9 Jul 2014 11:42:08 +0000 (13:42 +0200)]
tableprinter: code cleanup contd.

 - renamed table_col_info -> table_col_instance
 - table_init now uses const for struct table_template
 - some initialization moved from table_init to table_make_instance

9 years agotableprinter: update of linked list
Robert Kessl [Wed, 9 Jul 2014 10:45:43 +0000 (12:45 +0200)]
tableprinter: update of linked list

9 years agotableprinter: code cleanup
Robert Kessl [Wed, 9 Jul 2014 08:36:02 +0000 (10:36 +0200)]
tableprinter: code cleanup

 - renamed table_set_all_cols_content -> table_set_all_inst_content
 - renamed  all UNIT_*, e.g., UNIT_BYTE -> UNIT_SIZE_BYTE
 - instead of using the word 'copy' for a column, now we use instance
 - removal of unnecessary ucw/config.h

9 years agotableprinter: allocation of handles now uses xmalloc_zero/xfree
Robert Kessl [Tue, 8 Jul 2014 11:40:57 +0000 (13:40 +0200)]
tableprinter: allocation of handles now uses xmalloc_zero/xfree

9 years agotableprinter: update of documentation
Robert Kessl [Tue, 8 Jul 2014 11:17:38 +0000 (13:17 +0200)]
tableprinter: update of documentation

9 years agotableprinter: definition of the table separated from handle
Robert Kessl [Tue, 8 Jul 2014 08:03:53 +0000 (10:03 +0200)]
tableprinter: definition of the table separated from handle

9 years agotableprinter: update of documentation
Robert Kessl [Mon, 7 Jul 2014 13:50:41 +0000 (15:50 +0200)]
tableprinter: update of documentation

9 years agotableprinter: table_init now makes a copy of its argument
Robert Kessl [Mon, 7 Jul 2014 13:18:05 +0000 (15:18 +0200)]
tableprinter: table_init now makes a copy of its argument

 - tableprinter now considers the argument to table_init as a template
   and makes a copy of it. Copy of the template (struct table) is allocated
   on the table template pool.
   - FIXME: documentation must be updated

9 years agotableprinter: update of tests
Robert Kessl [Mon, 7 Jul 2014 08:31:37 +0000 (10:31 +0200)]
tableprinter: update of tests

9 years agotableprinter: update of some FIXME
Robert Kessl [Mon, 7 Jul 2014 07:10:01 +0000 (09:10 +0200)]
tableprinter: update of some FIXME

10 years agotableprinter: bugfix in table_set_col_opt_size, incorrect handling of argument
Robert Kessl [Fri, 4 Jul 2014 14:22:50 +0000 (16:22 +0200)]
tableprinter: bugfix in table_set_col_opt_size, incorrect handling of argument

10 years agotableprinter: bugfix in TBL_COL_ITER macro
Robert Kessl [Fri, 4 Jul 2014 13:44:29 +0000 (15:44 +0200)]
tableprinter: bugfix in TBL_COL_ITER macro

10 years agotableprinter: update of iterator macro; bugfix in table_set_col_opt_size
Robert Kessl [Fri, 4 Jul 2014 13:02:24 +0000 (15:02 +0200)]
tableprinter: update of iterator macro; bugfix in table_set_col_opt_size

10 years agotableprinter: update of column iterator and table_set_col_opt_size
Robert Kessl [Fri, 4 Jul 2014 10:48:42 +0000 (12:48 +0200)]
tableprinter: update of column iterator and table_set_col_opt_size

10 years agotableprinter: bugfix in initialization macros
Robert Kessl [Fri, 4 Jul 2014 10:30:30 +0000 (12:30 +0200)]
tableprinter: bugfix in initialization macros

 - added forgotten type definition to TBL_COL_SIZE_FMT, TBL_COL_TIMESTAMP_FMT

10 years agotableprinter: hidding of column linked list internals
Robert Kessl [Fri, 4 Jul 2014 08:06:49 +0000 (10:06 +0200)]
tableprinter: hidding of column linked list internals

10 years agotableprinter: update of LU -> LLU
Robert Kessl [Wed, 2 Jul 2014 14:13:47 +0000 (16:13 +0200)]
tableprinter: update of LU -> LLU

10 years agotableprinter: fix of value override
Robert Kessl [Wed, 2 Jul 2014 14:01:37 +0000 (16:01 +0200)]
tableprinter: fix of value override

10 years agotableprinter: update of tests
Robert Kessl [Wed, 2 Jul 2014 14:00:17 +0000 (16:00 +0200)]
tableprinter: update of tests

10 years agotableprinter: bugfix in initialization macros
Robert Kessl [Wed, 2 Jul 2014 11:54:44 +0000 (13:54 +0200)]
tableprinter: bugfix in initialization macros

 - added forgotten type definition to TBL_COL_SIZE_FMT, TBL_COL_TIMESTAMP_FMT

10 years agotableprinter: code cleanup
Robert Kessl [Wed, 2 Jul 2014 11:52:22 +0000 (13:52 +0200)]
tableprinter: code cleanup

10 years agotableprinter: update of user-defined column types
Robert Kessl [Wed, 2 Jul 2014 11:51:43 +0000 (13:51 +0200)]
tableprinter: update of user-defined column types

 - added pointer to a definition of column to struct table_column
 - added definition of column with size and timestamp.

10 years agotableprinter: code cleanup; doc update
Robert Kessl [Wed, 2 Jul 2014 08:47:05 +0000 (10:47 +0200)]
tableprinter: code cleanup; doc update

10 years agotableprinter: added parsing of column arg; bugfixes
Robert Kessl [Tue, 1 Jul 2014 14:58:20 +0000 (16:58 +0200)]
tableprinter: added parsing of column arg; bugfixes

- added parsing of column args. Now it is possible to specify column
  using the following format: <col-name>['['<arg>']']
- fix of printing of timestamp and size: single value was set for all
  instances of a column. Now each column instance has value in its
  format.

10 years agotableprinter: fix of size/timestamp printing
Robert Kessl [Tue, 1 Jul 2014 06:18:17 +0000 (08:18 +0200)]
tableprinter: fix of size/timestamp printing

10 years agotableprinter: code cleanup
Robert Kessl [Mon, 30 Jun 2014 13:28:53 +0000 (15:28 +0200)]
tableprinter: code cleanup

10 years agotableprinter: first shot on update of internals
Robert Kessl [Mon, 30 Jun 2014 13:21:47 +0000 (15:21 +0200)]
tableprinter: first shot on update of internals

 - due to changes in the internals appends are no longer support
 - each column type now supports multiple copies in the output with
   potentially different output format. However, some column types
   are kept separated: uint vs. hex (historical reasons).
 - when the API user starts using table_col_printf or
   table_col_fbstart then the different kind of formats are ignored.

10 years agotableprinter: now uses struct table_col_info * for column ordering
Robert Kessl [Fri, 27 Jun 2014 12:20:35 +0000 (14:20 +0200)]
tableprinter: now uses struct table_col_info * for column ordering

10 years agotableprinter: table_is_printed now returns bool
Robert Kessl [Thu, 26 Jun 2014 18:02:04 +0000 (20:02 +0200)]
tableprinter: table_is_printed now returns bool

10 years agoMerge remote-tracking branch 'origin/master'
Robert Kessl [Thu, 26 Jun 2014 14:51:49 +0000 (16:51 +0200)]
Merge remote-tracking branch 'origin/master'

10 years agotableprinter: added forgotten default fmts for s64 a u64
Robert Kessl [Thu, 26 Jun 2014 14:51:19 +0000 (16:51 +0200)]
tableprinter: added forgotten default fmts for s64 a u64

10 years agoLogger: Fixed use of unitialized flags
Martin Mares [Thu, 26 Jun 2014 13:47:10 +0000 (15:47 +0200)]
Logger: Fixed use of unitialized flags

10 years agotableprinter: add of table_col_is_printed
Robert Kessl [Thu, 26 Jun 2014 07:37:04 +0000 (09:37 +0200)]
tableprinter: add of table_col_is_printed

10 years agotableprinter: table_clean_row renamed to table_reset_row
Robert Kessl [Wed, 25 Jun 2014 12:11:01 +0000 (14:11 +0200)]
tableprinter: table_clean_row renamed to table_reset_row

10 years agostrtonum: added str_to_[s|u]64
Robert Kessl [Wed, 25 Jun 2014 12:09:42 +0000 (14:09 +0200)]
strtonum: added str_to_[s|u]64

10 years agotableprinter: table_end_row now calls table_clean_row
Robert Kessl [Wed, 25 Jun 2014 10:33:06 +0000 (12:33 +0200)]
tableprinter: table_end_row now calls table_clean_row

10 years agoMerge remote-tracking branch 'origin/master'
Robert Kessl [Wed, 25 Jun 2014 10:23:46 +0000 (12:23 +0200)]
Merge remote-tracking branch 'origin/master'

Conflicts:
ucw/table.h

10 years agotableprinter: add of table_clean_row
Robert Kessl [Wed, 25 Jun 2014 10:10:20 +0000 (12:10 +0200)]
tableprinter: add of table_clean_row

10 years agoDebian: It's now possible to disable compilation of some packages.
Pavel Charvat [Sun, 22 Jun 2014 20:23:53 +0000 (22:23 +0200)]
Debian: It's now possible to disable compilation of some packages.

10 years agoUpdated web pages for the new release
Martin Mares [Sun, 22 Jun 2014 14:51:50 +0000 (16:51 +0200)]
Updated web pages for the new release

10 years agoDoc: Finishing touches before release v6.0
Martin Mares [Sun, 22 Jun 2014 14:37:11 +0000 (16:37 +0200)]
Doc: Finishing touches before release

10 years agoABI: Adjust to last-minute table printer changes
Martin Mares [Sun, 22 Jun 2014 14:32:27 +0000 (16:32 +0200)]
ABI: Adjust to last-minute table printer changes

10 years agoDocs: Polish table printer documentation
Martin Mares [Sun, 22 Jun 2014 14:29:03 +0000 (16:29 +0200)]
Docs: Polish table printer documentation

10 years agoDocs: Improved table printer documentation
Martin Mares [Fri, 20 Jun 2014 14:56:35 +0000 (16:56 +0200)]
Docs: Improved table printer documentation

First of all, I have added AsciiDoc markup to the whole document
and removed redundant parts.

Second, I tried to re-arrange everything to bring related concepts
together.

Finally, I renamed CELL_ALIGN_MASK to something less confusing :)

This is a rough draft, which desperately needs proof-reading.

10 years agoDoc: Release notes are ready
Martin Mares [Fri, 20 Jun 2014 13:14:17 +0000 (15:14 +0200)]
Doc: Release notes are ready

10 years agotableprinter: update of documentation
Robert Kessl [Fri, 20 Jun 2014 12:03:26 +0000 (14:03 +0200)]
tableprinter: update of documentation

10 years agotableprinter: added blockline formatter
Robert Kessl [Fri, 20 Jun 2014 11:55:18 +0000 (13:55 +0200)]
tableprinter: added blockline formatter

10 years agoTableprinter: added table documentation
Robert Kessl [Tue, 17 Jun 2014 14:02:02 +0000 (16:02 +0200)]
Tableprinter: added table documentation

10 years agoTableprinter: TODO notes moved from table.h to TODO file
Robert Kessl [Tue, 17 Jun 2014 14:00:47 +0000 (16:00 +0200)]
Tableprinter: TODO notes moved from table.h to TODO file

10 years agoMerge remote-tracking branch 'origin/master'
Robert Kessl [Mon, 16 Jun 2014 06:36:09 +0000 (08:36 +0200)]
Merge remote-tracking branch 'origin/master'

10 years agoTableprinter: corrected INT64 -> S64
Robert Kessl [Mon, 16 Jun 2014 06:35:49 +0000 (08:35 +0200)]
Tableprinter: corrected INT64 -> S64

10 years agoABI cleanup
Martin Mares [Sun, 15 Jun 2014 20:46:30 +0000 (22:46 +0200)]
ABI cleanup

10 years agoMerge remote-tracking branch 'origin/master'
Robert Kessl [Thu, 12 Jun 2014 13:25:40 +0000 (15:25 +0200)]
Merge remote-tracking branch 'origin/master'

10 years agoTableprinter: added U64, INT64
Robert Kessl [Thu, 12 Jun 2014 13:24:12 +0000 (15:24 +0200)]
Tableprinter: added U64, INT64

10 years agoRemoved some remaining "uns" relics
Martin Mares [Thu, 5 Jun 2014 13:59:25 +0000 (15:59 +0200)]
Removed some remaining "uns" relics

10 years agoMerge branch 'table'
Martin Mares [Thu, 5 Jun 2014 10:37:35 +0000 (12:37 +0200)]
Merge branch 'table'

10 years agoPackages: Forces dpkg-shlibdeps to add dependency to at least the same version of...
Pavel Charvat [Thu, 5 Jun 2014 10:25:18 +0000 (12:25 +0200)]
Packages: Forces dpkg-shlibdeps to add dependency to at least the same version of libucw as the current one.

10 years agoTable: renamed table_col_order[_by_name] -> table_set_col_order[_by_name]
Robert Kessl [Wed, 4 Jun 2014 11:57:56 +0000 (13:57 +0200)]
Table: renamed table_col_order[_by_name] -> table_set_col_order[_by_name]

10 years agoTable: added left alignment flag
Robert Kessl [Wed, 4 Jun 2014 10:55:08 +0000 (12:55 +0200)]
Table: added left alignment flag

 - added tests of alignment flag (table-test-align)
 - modified cmd line switches in table-test

10 years agoMerge branch 'master' into table
Pavel Charvat [Wed, 4 Jun 2014 00:14:54 +0000 (02:14 +0200)]
Merge branch 'master' into table

Conflicts:
ucw/mempool.c

10 years agoMerge branch 'master' into dev-sizet
Pavel Charvat [Wed, 4 Jun 2014 00:08:15 +0000 (02:08 +0200)]
Merge branch 'master' into dev-sizet

Conflicts:
ucw/bbuf.c
ucw/bbuf.h
ucw/doc/mempool.txt
ucw/fastbuf.h
ucw/fb-pool.c
ucw/gbuf.h
ucw/io-mmap.c
ucw/io.h
ucw/mempool-fmt.c
ucw/mempool-str.c
ucw/mempool.c
ucw/mempool.h
ucw/str-hex.c
ucw/string.c
ucw/string.h
ucw/unicode.c
ucw/unicode.h

10 years agoMerge branch 'dev-uint'
Tomas Valla [Tue, 3 Jun 2014 22:12:56 +0000 (00:12 +0200)]
Merge branch 'dev-uint'

10 years agoMapping of whole files: Converted to size_t.
Pavel Charvat [Tue, 3 Jun 2014 12:20:41 +0000 (14:20 +0200)]
Mapping of whole files: Converted to size_t.

10 years agoCareful I/O: Converted to size_t.
Pavel Charvat [Tue, 3 Jun 2014 12:13:51 +0000 (14:13 +0200)]
Careful I/O: Converted to size_t.

10 years agoBuild: Just removed redundant parentheses.
Pavel Charvat [Tue, 3 Jun 2014 11:41:35 +0000 (13:41 +0200)]
Build: Just removed redundant parentheses.

10 years agoTable: update of column macros and table_start
Robert Kessl [Tue, 3 Jun 2014 11:41:08 +0000 (13:41 +0200)]
Table: update of column macros and table_start

10 years agoBuild: SO_LINK_PATH must be always defined.
Pavel Charvat [Tue, 3 Jun 2014 11:36:56 +0000 (13:36 +0200)]
Build: SO_LINK_PATH must be always defined.

10 years agoBuild: Do not split -rpath in two -Wl options. Pkg-config could incorrectly merge...
Pavel Charvat [Tue, 3 Jun 2014 10:55:16 +0000 (12:55 +0200)]
Build: Do not split -rpath in two -Wl options. Pkg-config could incorrectly merge multiple rpaths.

10 years agoTable: update of column initialization macros
Robert Kessl [Tue, 3 Jun 2014 08:22:20 +0000 (10:22 +0200)]
Table: update of column initialization macros

10 years agoBuild: Improved paths in local builds.
Pavel Charvat [Mon, 2 Jun 2014 22:20:58 +0000 (00:20 +0200)]
Build: Improved paths in local builds.

* CONFIG_LOCAL by default uses absolute paths,
  so you can execute run/bin/* from anywhere or
  directly use resulting *.pc by external commands.
* Define CONFIG_RELATIVE_PATHS for old relative paths.
* Removed SONAME_PREFIX, replaced with -rpath.

10 years agoUTF-8 strings: Converted to size_t.
Pavel Charvat [Mon, 2 Jun 2014 17:44:25 +0000 (19:44 +0200)]
UTF-8 strings: Converted to size_t.

10 years agoStrings: Converted to size_t.
Pavel Charvat [Mon, 2 Jun 2014 17:40:08 +0000 (19:40 +0200)]
Strings: Converted to size_t.

10 years agoGrowing buffer: Converted to size_t.
Pavel Charvat [Mon, 2 Jun 2014 17:33:10 +0000 (19:33 +0200)]
Growing buffer: Converted to size_t.

10 years agofbpool: Converted to size_t.
Pavel Charvat [Mon, 2 Jun 2014 17:18:04 +0000 (19:18 +0200)]
fbpool: Converted to size_t.

10 years agoReturned back 'uns' and related functions for backwards compatibility.
Tomas Valla [Mon, 2 Jun 2014 16:02:31 +0000 (18:02 +0200)]
Returned back 'uns' and related functions for backwards compatibility.

10 years agoRenamed uns -> uint
Tomas Valla [Mon, 2 Jun 2014 13:05:36 +0000 (15:05 +0200)]
Renamed uns -> uint

Currently, the type 'uns' is disabled, together with some other *_UNS
functions. This will be aliased in the future.

10 years agoMempool: Converted to size_t.
Pavel Charvat [Mon, 2 Jun 2014 12:32:19 +0000 (14:32 +0200)]
Mempool: Converted to size_t.

10 years agoTable: Clean up column list parsing
Martin Mares [Fri, 30 May 2014 14:26:31 +0000 (16:26 +0200)]
Table: Clean up column list parsing

First of all, an empty list of columns is a little bit obscure,
but still correct and it should work properly.

table_col_order_by_name() now returns a sensible error message
for non-existent columns.

table_get_col_list() now uses ", " as a separator, which is more
readable. It is documented where the string is allocated from. Also,
it uses the growing string in mempool properly, even in cases when
it is reallocated.

table_start() does not leak memory.

10 years agoTable: Fixed bugs in header printing configuration
Martin Mares [Fri, 30 May 2014 14:04:06 +0000 (16:04 +0200)]
Table: Fixed bugs in header printing configuration

Previously, the user-defined setting of table->print_header
was overwritten at various locations, making multiple uses of
table_start()/table_end() on a single table close to unusable.

Now, table->print_header is not modified by the table printer
itself, except for table_init().

10 years agoTable: Renaming callbacks to a formatter
Martin Mares [Fri, 30 May 2014 14:00:30 +0000 (16:00 +0200)]
Table: Renaming callbacks to a formatter

I wish to demonstrate a clear split between the front-end
and formatter back-end.

10 years agoTable: Shuffle functions to form thematic blocks
Martin Mares [Fri, 30 May 2014 12:59:09 +0000 (14:59 +0200)]
Table: Shuffle functions to form thematic blocks

10 years agoMempool: Fixed bug in mp_stats().
Pavel Charvat [Fri, 30 May 2014 12:26:46 +0000 (14:26 +0200)]
Mempool: Fixed bug in mp_stats().

10 years agoTable: Cosmetic cleanups and FIXMEs
Martin Mares [Fri, 30 May 2014 12:17:24 +0000 (14:17 +0200)]
Table: Cosmetic cleanups and FIXMEs

10 years agoTable: Guard macros now follow LibUCW conventions
Martin Mares [Fri, 30 May 2014 11:54:41 +0000 (13:54 +0200)]
Table: Guard macros now follow LibUCW conventions

10 years agoImported tableprinter module
Martin Mares [Fri, 30 May 2014 11:53:22 +0000 (13:53 +0200)]
Imported tableprinter module

Original version was developed in GigaMail repository by Robert
Kessl, but we agreed that it should be moved to LibUCW and maintained
there.

Further cleanup can be expected.

10 years agoMempool: Disable harmless failing ASSERT for a moment
Martin Mares [Fri, 30 May 2014 11:52:32 +0000 (13:52 +0200)]
Mempool: Disable harmless failing ASSERT for a moment

10 years agoPackages: We no longer need to install the obsolete ucw-daemon-helper.
Pavel Charvat [Thu, 29 May 2014 09:18:55 +0000 (11:18 +0200)]
Packages: We no longer need to install the obsolete ucw-daemon-helper.