]>
mj.ucw.cz Git - libucw.git/log
Robert Kessl [Tue, 15 Jul 2014 12:35:33 +0000 (14:35 +0200)]
tableprinter: code cleanup, update of formats of double
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
Robert Kessl [Mon, 14 Jul 2014 09:16:01 +0000 (11:16 +0200)]
xtypes: bugfixes in printf format and incorrect use of errno
Robert Kessl [Mon, 14 Jul 2014 08:36:54 +0000 (10:36 +0200)]
xtypes&tableprinter: basic cleanup
Robert Kessl [Mon, 14 Jul 2014 08:14:43 +0000 (10:14 +0200)]
xtype&tableprinter: first shot on incorporating xtypes to tableprinter
Martin Mares [Thu, 10 Jul 2014 14:04:44 +0000 (16:04 +0200)]
Extended types: First attempt at interface
Robert Kessl [Thu, 10 Jul 2014 08:18:22 +0000 (10:18 +0200)]
tableprinter: added a FIXME comment
Robert Kessl [Thu, 10 Jul 2014 08:17:17 +0000 (10:17 +0200)]
tableprinter: update of size units
Robert Kessl [Thu, 10 Jul 2014 08:16:28 +0000 (10:16 +0200)]
tableprinter: fix of table_make_instance, incorrect initialization of column order
Robert Kessl [Wed, 9 Jul 2014 15:23:46 +0000 (17:23 +0200)]
tableprinter: renamed size units; update of doc
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
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
Robert Kessl [Wed, 9 Jul 2014 10:45:43 +0000 (12:45 +0200)]
tableprinter: update of linked list
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
Robert Kessl [Tue, 8 Jul 2014 11:40:57 +0000 (13:40 +0200)]
tableprinter: allocation of handles now uses xmalloc_zero/xfree
Robert Kessl [Tue, 8 Jul 2014 11:17:38 +0000 (13:17 +0200)]
tableprinter: update of documentation
Robert Kessl [Tue, 8 Jul 2014 08:03:53 +0000 (10:03 +0200)]
tableprinter: definition of the table separated from handle
Robert Kessl [Mon, 7 Jul 2014 13:50:41 +0000 (15:50 +0200)]
tableprinter: update of documentation
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
Robert Kessl [Mon, 7 Jul 2014 08:31:37 +0000 (10:31 +0200)]
tableprinter: update of tests
Robert Kessl [Mon, 7 Jul 2014 07:10:01 +0000 (09:10 +0200)]
tableprinter: update of some FIXME
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
Robert Kessl [Fri, 4 Jul 2014 13:44:29 +0000 (15:44 +0200)]
tableprinter: bugfix in TBL_COL_ITER macro
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
Robert Kessl [Fri, 4 Jul 2014 10:48:42 +0000 (12:48 +0200)]
tableprinter: update of column iterator and table_set_col_opt_size
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
Robert Kessl [Fri, 4 Jul 2014 08:06:49 +0000 (10:06 +0200)]
tableprinter: hidding of column linked list internals
Robert Kessl [Wed, 2 Jul 2014 14:13:47 +0000 (16:13 +0200)]
tableprinter: update of LU -> LLU
Robert Kessl [Wed, 2 Jul 2014 14:01:37 +0000 (16:01 +0200)]
tableprinter: fix of value override
Robert Kessl [Wed, 2 Jul 2014 14:00:17 +0000 (16:00 +0200)]
tableprinter: update of tests
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
Robert Kessl [Wed, 2 Jul 2014 11:52:22 +0000 (13:52 +0200)]
tableprinter: code cleanup
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.
Robert Kessl [Wed, 2 Jul 2014 08:47:05 +0000 (10:47 +0200)]
tableprinter: code cleanup; doc update
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.
Robert Kessl [Tue, 1 Jul 2014 06:18:17 +0000 (08:18 +0200)]
tableprinter: fix of size/timestamp printing
Robert Kessl [Mon, 30 Jun 2014 13:28:53 +0000 (15:28 +0200)]
tableprinter: code cleanup
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.
Robert Kessl [Fri, 27 Jun 2014 12:20:35 +0000 (14:20 +0200)]
tableprinter: now uses struct table_col_info * for column ordering
Robert Kessl [Thu, 26 Jun 2014 18:02:04 +0000 (20:02 +0200)]
tableprinter: table_is_printed now returns bool
Robert Kessl [Thu, 26 Jun 2014 14:51:49 +0000 (16:51 +0200)]
Merge remote-tracking branch 'origin/master'
Robert Kessl [Thu, 26 Jun 2014 14:51:19 +0000 (16:51 +0200)]
tableprinter: added forgotten default fmts for s64 a u64
Martin Mares [Thu, 26 Jun 2014 13:47:10 +0000 (15:47 +0200)]
Logger: Fixed use of unitialized flags
Robert Kessl [Thu, 26 Jun 2014 07:37:04 +0000 (09:37 +0200)]
tableprinter: add of table_col_is_printed
Robert Kessl [Wed, 25 Jun 2014 12:11:01 +0000 (14:11 +0200)]
tableprinter: table_clean_row renamed to table_reset_row
Robert Kessl [Wed, 25 Jun 2014 12:09:42 +0000 (14:09 +0200)]
strtonum: added str_to_[s|u]64
Robert Kessl [Wed, 25 Jun 2014 10:33:06 +0000 (12:33 +0200)]
tableprinter: table_end_row now calls table_clean_row
Robert Kessl [Wed, 25 Jun 2014 10:23:46 +0000 (12:23 +0200)]
Merge remote-tracking branch 'origin/master'
Conflicts:
ucw/table.h
Robert Kessl [Wed, 25 Jun 2014 10:10:20 +0000 (12:10 +0200)]
tableprinter: add of table_clean_row
Pavel Charvat [Sun, 22 Jun 2014 20:23:53 +0000 (22:23 +0200)]
Debian: It's now possible to disable compilation of some packages.
Martin Mares [Sun, 22 Jun 2014 14:51:50 +0000 (16:51 +0200)]
Updated web pages for the new release
Martin Mares [Sun, 22 Jun 2014 14:37:11 +0000 (16:37 +0200)]
Doc: Finishing touches before release
Martin Mares [Sun, 22 Jun 2014 14:32:27 +0000 (16:32 +0200)]
ABI: Adjust to last-minute table printer changes
Martin Mares [Sun, 22 Jun 2014 14:29:03 +0000 (16:29 +0200)]
Docs: Polish 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.
Martin Mares [Fri, 20 Jun 2014 13:14:17 +0000 (15:14 +0200)]
Doc: Release notes are ready
Robert Kessl [Fri, 20 Jun 2014 12:03:26 +0000 (14:03 +0200)]
tableprinter: update of documentation
Robert Kessl [Fri, 20 Jun 2014 11:55:18 +0000 (13:55 +0200)]
tableprinter: added blockline formatter
Robert Kessl [Tue, 17 Jun 2014 14:02:02 +0000 (16:02 +0200)]
Tableprinter: added table documentation
Robert Kessl [Tue, 17 Jun 2014 14:00:47 +0000 (16:00 +0200)]
Tableprinter: TODO notes moved from table.h to TODO file
Robert Kessl [Mon, 16 Jun 2014 06:36:09 +0000 (08:36 +0200)]
Merge remote-tracking branch 'origin/master'
Robert Kessl [Mon, 16 Jun 2014 06:35:49 +0000 (08:35 +0200)]
Tableprinter: corrected INT64 -> S64
Martin Mares [Sun, 15 Jun 2014 20:46:30 +0000 (22:46 +0200)]
ABI cleanup
Robert Kessl [Thu, 12 Jun 2014 13:25:40 +0000 (15:25 +0200)]
Merge remote-tracking branch 'origin/master'
Robert Kessl [Thu, 12 Jun 2014 13:24:12 +0000 (15:24 +0200)]
Tableprinter: added U64, INT64
Martin Mares [Thu, 5 Jun 2014 13:59:25 +0000 (15:59 +0200)]
Removed some remaining "uns" relics
Martin Mares [Thu, 5 Jun 2014 10:37:35 +0000 (12:37 +0200)]
Merge branch 'table'
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.
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]
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
Pavel Charvat [Wed, 4 Jun 2014 00:14:54 +0000 (02:14 +0200)]
Merge branch 'master' into table
Conflicts:
ucw/mempool.c
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
Tomas Valla [Tue, 3 Jun 2014 22:12:56 +0000 (00:12 +0200)]
Merge branch 'dev-uint'
Pavel Charvat [Tue, 3 Jun 2014 12:20:41 +0000 (14:20 +0200)]
Mapping of whole files: Converted to size_t.
Pavel Charvat [Tue, 3 Jun 2014 12:13:51 +0000 (14:13 +0200)]
Careful I/O: Converted to size_t.
Pavel Charvat [Tue, 3 Jun 2014 11:41:35 +0000 (13:41 +0200)]
Build: Just removed redundant parentheses.
Robert Kessl [Tue, 3 Jun 2014 11:41:08 +0000 (13:41 +0200)]
Table: update of column macros and table_start
Pavel Charvat [Tue, 3 Jun 2014 11:36:56 +0000 (13:36 +0200)]
Build: SO_LINK_PATH must be always defined.
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.
Robert Kessl [Tue, 3 Jun 2014 08:22:20 +0000 (10:22 +0200)]
Table: update of column initialization macros
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.
Pavel Charvat [Mon, 2 Jun 2014 17:44:25 +0000 (19:44 +0200)]
UTF-8 strings: Converted to size_t.
Pavel Charvat [Mon, 2 Jun 2014 17:40:08 +0000 (19:40 +0200)]
Strings: Converted to size_t.
Pavel Charvat [Mon, 2 Jun 2014 17:33:10 +0000 (19:33 +0200)]
Growing buffer: Converted to size_t.
Pavel Charvat [Mon, 2 Jun 2014 17:18:04 +0000 (19:18 +0200)]
fbpool: Converted to size_t.
Tomas Valla [Mon, 2 Jun 2014 16:02:31 +0000 (18:02 +0200)]
Returned back 'uns' and related functions for backwards compatibility.
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.
Pavel Charvat [Mon, 2 Jun 2014 12:32:19 +0000 (14:32 +0200)]
Mempool: Converted to size_t.
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.
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().
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.
Martin Mares [Fri, 30 May 2014 12:59:09 +0000 (14:59 +0200)]
Table: Shuffle functions to form thematic blocks
Pavel Charvat [Fri, 30 May 2014 12:26:46 +0000 (14:26 +0200)]
Mempool: Fixed bug in mp_stats().
Martin Mares [Fri, 30 May 2014 12:17:24 +0000 (14:17 +0200)]
Table: Cosmetic cleanups and FIXMEs
Martin Mares [Fri, 30 May 2014 11:54:41 +0000 (13:54 +0200)]
Table: Guard macros now follow LibUCW conventions
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.
Martin Mares [Fri, 30 May 2014 11:52:32 +0000 (13:52 +0200)]
Mempool: Disable harmless failing ASSERT for a moment
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.
Pavel Charvat [Thu, 29 May 2014 09:05:47 +0000 (11:05 +0200)]
Utils: ucw-{config,logger,logoutput} moved from /usr/sbin to /usr/bin.
Pavel Charvat [Wed, 28 May 2014 11:08:22 +0000 (13:08 +0200)]
Mempool: Do not count the struct mempool to its stats.used_size.