]>
mj.ucw.cz Git - libucw.git/log
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.
Pavel Charvat [Tue, 27 May 2014 10:51:12 +0000 (12:51 +0200)]
Build: With shared LibUCW we no longer need picstatic version of libraries.
Martin Mares [Mon, 26 May 2014 11:08:13 +0000 (13:08 +0200)]
UCW::CGI: When a file is uploaded, its original name can be obtained
Pavel Charvat [Thu, 22 May 2014 09:44:04 +0000 (11:44 +0200)]
Build: Added lib*.so -> lib*.so.0 symlinks to run/lib.
Pavel Charvat [Thu, 22 May 2014 07:18:45 +0000 (09:18 +0200)]
Build: Added link path to libraries installed to non-standard path.
Pavel Charvat [Wed, 21 May 2014 12:57:54 +0000 (14:57 +0200)]
Fastbufs: Fixed uninitialized variables in fbmulti's structure.
Pavel Charvat [Tue, 20 May 2014 13:26:06 +0000 (15:26 +0200)]
Mempool: Fixed broken unit test.
Pavel Charvat [Tue, 20 May 2014 11:36:32 +0000 (13:36 +0200)]
Mempool: Implemented mp_shrink().
Pavel Charvat [Tue, 20 May 2014 09:10:29 +0000 (11:10 +0200)]
Mempool: stats->chain_size[] should be u64, not uns.
Pavel Charvat [Tue, 20 May 2014 09:08:15 +0000 (11:08 +0200)]
Mempool: Implemented statistics about allocated bytes from memory pool to application.
Martin Mares [Sat, 17 May 2014 21:36:04 +0000 (23:36 +0200)]
Sorter: Fixed a documentation comment
Martin Mares [Thu, 15 May 2014 12:18:52 +0000 (14:18 +0200)]
Merge branch 'master' of ssh://git.ucw.cz/projects/libucw/GIT/libucw
Martin Mares [Thu, 15 May 2014 07:20:57 +0000 (09:20 +0200)]
Mempool: Implemented various functions for appending to a growing buffer
Martin Mares [Thu, 15 May 2014 07:20:44 +0000 (09:20 +0200)]
ABI cleanup
Pavel Charvat [Thu, 15 May 2014 07:12:53 +0000 (09:12 +0200)]
Null fastbuf: Don't forget to set a fastbuf's name.
Pavel Charvat [Tue, 13 May 2014 10:58:53 +0000 (12:58 +0200)]
Build: Fixed a bug in our unit tester.
Pavel Charvat [Tue, 13 May 2014 10:54:10 +0000 (12:54 +0200)]
Null fastbuf: Clean ABI.
Martin Mares [Tue, 13 May 2014 10:14:49 +0000 (12:14 +0200)]
Mempools: mp_total_size() is O(1)
Pavel Charvat [Tue, 13 May 2014 07:45:33 +0000 (09:45 +0200)]
Merge branch 'master' of ssh://git.ucw.cz/projects/libucw/GIT/libucw
Pavel Charvat [Tue, 13 May 2014 07:44:38 +0000 (09:44 +0200)]
Null fastbuf: Implemented a new "/dev/null"-like fastbuf.
Martin Mares [Sat, 10 May 2014 21:50:46 +0000 (23:50 +0200)]
XML: "PUSH" in comments should be "PULL"
Pavel Charvat [Wed, 7 May 2014 08:28:18 +0000 (10:28 +0200)]
Packages: Implemented `debian/mk --extra-conf=...'.
Pavel Charvat [Wed, 7 May 2014 07:57:11 +0000 (09:57 +0200)]
Images: Fixed dependencies in `make tests'.
Pavel Charvat [Wed, 7 May 2014 07:50:21 +0000 (09:50 +0200)]
Images: Fixed compilation problems with enabled GraphicsMagick.
Pavel Charvat [Wed, 7 May 2014 07:36:38 +0000 (09:36 +0200)]
Images: Fixed linkage of libpthread.
Pavel Charvat [Wed, 7 May 2014 07:29:58 +0000 (09:29 +0200)]
Build: Fixed few compilation warnings/errors.
Pavel Charvat [Wed, 7 May 2014 07:19:43 +0000 (09:19 +0200)]
Memory pools: Add a reference from each chunk to its memory pool (in debug mode).