]> mj.ucw.cz Git - libucw.git/log
libucw.git
9 years agoXTypes: CF_XTYPE requires '&' before xt_*, just like most other parameters in CF_...
Pavel Charvat [Thu, 4 Sep 2014 11:51:12 +0000 (11:51 +0000)]
XTypes: CF_XTYPE requires '&' before xt_*, just like most other parameters in CF_* macros.

9 years agoXTypes: Added support to configuration and option parser.
Pavel Charvat [Thu, 4 Sep 2014 11:39:06 +0000 (11:39 +0000)]
XTypes: Added support to configuration and option parser.

9 years agoBuild: Forced linker to find the currently compiled libraries instead of possibly...
Pavel Charvat [Sun, 10 Aug 2014 14:52:45 +0000 (14:52 +0000)]
Build: Forced linker to find the currently compiled libraries instead of possibly installed ones.

9 years agoTables: Fixed few typos in manpage.
Pavel Charvat [Sun, 10 Aug 2014 14:20:21 +0000 (14:20 +0000)]
Tables: Fixed few typos in manpage.

9 years agoDoc: Generalized makefile rules for all categories of manpages.
Pavel Charvat [Sun, 10 Aug 2014 14:15:03 +0000 (14:15 +0000)]
Doc: Generalized makefile rules for all categories of manpages.

9 years agoDoc: Manpages are installed to rundir so that you can use 'man -M run/doc/man ucw...
Pavel Charvat [Sun, 10 Aug 2014 13:55:25 +0000 (13:55 +0000)]
Doc: Manpages are installed to rundir so that you can use 'man -M run/doc/man ucw-tableprinter'.

9 years agoPackages: Updated build dependencies.
Pavel Charvat [Sun, 10 Aug 2014 12:20:32 +0000 (12:20 +0000)]
Packages: Updated build dependencies.

9 years agoSorter: Noted that we need to fix a bug in radix sort.
Pavel Charvat [Sun, 10 Aug 2014 12:14:17 +0000 (12:14 +0000)]
Sorter: Noted that we need to fix a bug in radix sort.

9 years agoDoc: Simplified rule for compilation of manpages.
Pavel Charvat [Sun, 10 Aug 2014 12:02:01 +0000 (12:02 +0000)]
Doc: Simplified rule for compilation of manpages.

9 years agoRelease: Increased version in default.cfg to 6.1. v6.1
Pavel Charvat [Sat, 9 Aug 2014 18:49:29 +0000 (18:49 +0000)]
Release: Increased version in default.cfg to 6.1.

9 years agoPackages: Fixed bug in debian/tag-release script.
Pavel Charvat [Sat, 9 Aug 2014 05:37:49 +0000 (05:37 +0000)]
Packages: Fixed bug in debian/tag-release script.

9 years agoTODO: Do not forget xtype docs
Martin Mares [Fri, 8 Aug 2014 22:54:50 +0000 (00:54 +0200)]
TODO: Do not forget xtype docs

9 years agoMerge branch 'dev-table'
Martin Mares [Fri, 8 Aug 2014 22:54:29 +0000 (00:54 +0200)]
Merge branch 'dev-table'

9 years agoucw/doc/Makefile: Do not mix UCW_MANPAGES with MANPAGES
Martin Mares [Fri, 8 Aug 2014 22:52:32 +0000 (00:52 +0200)]
ucw/doc/Makefile: Do not mix UCW_MANPAGES with MANPAGES

9 years agoMakefile cosmetics
Martin Mares [Fri, 8 Aug 2014 22:50:15 +0000 (00:50 +0200)]
Makefile cosmetics

9 years agoEven more updates in build of manpages
Robert Kessl [Fri, 8 Aug 2014 10:56:14 +0000 (12:56 +0200)]
Even more updates in build of manpages

9 years agoUpdate build of manpages, contd.
Robert Kessl [Fri, 8 Aug 2014 10:49:56 +0000 (12:49 +0200)]
Update build of manpages, contd.

9 years agoUpdate build of manpages
Robert Kessl [Fri, 8 Aug 2014 07:48:48 +0000 (09:48 +0200)]
Update build of manpages

9 years agoAdded manpages to doc build; update of doc.
Robert Kessl [Wed, 6 Aug 2014 07:41:52 +0000 (09:41 +0200)]
Added manpages to doc build; update of doc.

9 years agoDoc: The last line ought to end with a newline
Martin Mares [Tue, 5 Aug 2014 15:14:42 +0000 (17:14 +0200)]
Doc: The last line ought to end with a newline

9 years agoExtended types: Fix constness issues
Martin Mares [Tue, 5 Aug 2014 15:14:15 +0000 (17:14 +0200)]
Extended types: Fix constness issues

9 years agotableprinter: manpage is now installed into /usr/share/man/man1
Robert Kessl [Tue, 5 Aug 2014 07:00:31 +0000 (09:00 +0200)]
tableprinter: manpage is now installed into /usr/share/man/man1

9 years agoxtypes: xt_double bugfix in parsing of precision
Robert Kessl [Mon, 4 Aug 2014 11:47:40 +0000 (13:47 +0200)]
xtypes: xt_double bugfix in parsing of precision

9 years agotableprinter: table_set_col_opt now uses xtype_parse_fmt instead of hook parse_fmt
Robert Kessl [Mon, 4 Aug 2014 11:47:05 +0000 (13:47 +0200)]
tableprinter: table_set_col_opt now uses xtype_parse_fmt instead of hook parse_fmt

9 years agotableprinter: update of documentation
Robert Kessl [Mon, 4 Aug 2014 11:45:12 +0000 (13:45 +0200)]
tableprinter: update of documentation

9 years agoABI: Fix function order
Martin Mares [Wed, 30 Jul 2014 12:43:38 +0000 (14:43 +0200)]
ABI: Fix function order

9 years agoABI tools: Better reporting of missing files
Martin Mares [Wed, 30 Jul 2014 12:43:24 +0000 (14:43 +0200)]
ABI tools: Better reporting of missing files

9 years agoExtended types: Fix comment
Martin Mares [Wed, 30 Jul 2014 12:34:07 +0000 (14:34 +0200)]
Extended types: Fix comment

9 years agoExtended types: Fix name of the guard macro
Martin Mares [Wed, 30 Jul 2014 12:33:57 +0000 (14:33 +0200)]
Extended types: Fix name of the guard macro

9 years agotableprinter: update of tests and fix of parsing empty col opt
Robert Kessl [Wed, 30 Jul 2014 12:30:30 +0000 (14:30 +0200)]
tableprinter: update of tests and fix of parsing empty col opt

9 years agotableprinter: update of tests of table_set_col_order_by_name
Robert Kessl [Wed, 30 Jul 2014 12:15:09 +0000 (14:15 +0200)]
tableprinter: update of tests of table_set_col_order_by_name

9 years agotableprinter: compile fix
Robert Kessl [Wed, 30 Jul 2014 08:55:59 +0000 (10:55 +0200)]
tableprinter: compile fix

9 years agotableprinter: update of documentation of table_set_col_order_by_name
Robert Kessl [Wed, 30 Jul 2014 08:25:13 +0000 (10:25 +0200)]
tableprinter: update of documentation of table_set_col_order_by_name

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

9 years agotableprinter: small comment update
Robert Kessl [Wed, 30 Jul 2014 07:42:27 +0000 (09:42 +0200)]
tableprinter: small comment update

9 years agotableprinter: code cleanup
Robert Kessl [Wed, 30 Jul 2014 07:35:08 +0000 (09:35 +0200)]
tableprinter: code cleanup

9 years agotableprinter: update of tests of table_set_col_order_by_name
Robert Kessl [Wed, 30 Jul 2014 07:18:14 +0000 (09:18 +0200)]
tableprinter: update of tests of table_set_col_order_by_name

9 years agotableprinter: update of doc for table_set_col_order_by_name
Robert Kessl [Wed, 30 Jul 2014 07:17:52 +0000 (09:17 +0200)]
tableprinter: update of doc for table_set_col_order_by_name

9 years agotableprinter: first shot on parsing multiple options in table_set_col_order_by_name
Robert Kessl [Tue, 29 Jul 2014 16:31:27 +0000 (18:31 +0200)]
tableprinter: first shot on parsing multiple options in table_set_col_order_by_name

9 years agotableprinter: update of comments and code cleanup
Robert Kessl [Tue, 29 Jul 2014 11:55:52 +0000 (13:55 +0200)]
tableprinter: update of comments and code cleanup

9 years agotableprinter: code cleanup
Robert Kessl [Tue, 29 Jul 2014 11:45:48 +0000 (13:45 +0200)]
tableprinter: code cleanup

9 years agotableprinter&xtypes: table-types.[ch] moved to xtypes-extra.[ch]
Robert Kessl [Tue, 29 Jul 2014 08:45:56 +0000 (10:45 +0200)]
tableprinter&xtypes: table-types.[ch] moved to xtypes-extra.[ch]

9 years agotableprinter: removed some obsolete FIXME, added some comments
Robert Kessl [Tue, 29 Jul 2014 07:47:42 +0000 (09:47 +0200)]
tableprinter: removed some obsolete FIXME, added some comments

9 years agotableprinter: update of column order
Robert Kessl [Tue, 29 Jul 2014 07:32:33 +0000 (09:32 +0200)]
tableprinter: update of column order

 - setting column order (table_set_col_order) now does not need length of the array.
   Instead it uses special stop element.
 - table_set_col_opt now uses ASSERT instead of die.

9 years agotableprinter: table_update_ll is now called only in table_start
Robert Kessl [Mon, 28 Jul 2014 12:31:08 +0000 (14:31 +0200)]
tableprinter: table_update_ll is now called only in table_start

9 years agotableprinter: tests now use default xtype format
Robert Kessl [Mon, 28 Jul 2014 12:25:07 +0000 (14:25 +0200)]
tableprinter: tests now use default xtype format

9 years agotableprinter: table_make_default_column_order sets default xtype format
Robert Kessl [Mon, 28 Jul 2014 12:20:08 +0000 (14:20 +0200)]
tableprinter: table_make_default_column_order sets default xtype format

9 years agotableprinter: TBL_COL_ITER_START(END) moved to table.c
Robert Kessl [Mon, 28 Jul 2014 12:10:56 +0000 (14:10 +0200)]
tableprinter: TBL_COL_ITER_START(END) moved to table.c

9 years agoxtypes: overflow detection updated
Robert Kessl [Mon, 28 Jul 2014 11:54:26 +0000 (13:54 +0200)]
xtypes: overflow detection updated

9 years agoxtypes: removal of strtoul from size/timestamp parser
Robert Kessl [Mon, 28 Jul 2014 11:51:17 +0000 (13:51 +0200)]
xtypes: removal of strtoul from size/timestamp parser

9 years agotableprinter: update of table_set_col_order(and tests)
Robert Kessl [Mon, 28 Jul 2014 10:40:25 +0000 (12:40 +0200)]
tableprinter: update of table_set_col_order(and tests)

9 years agotableprinter: added overflow detection
Robert Kessl [Fri, 25 Jul 2014 15:28:59 +0000 (17:28 +0200)]
tableprinter: added overflow detection

9 years agotableprinter: code cleanup, update of usage of table_set_col_opt
Robert Kessl [Fri, 25 Jul 2014 14:27:59 +0000 (16:27 +0200)]
tableprinter: code cleanup, update of usage of table_set_col_opt

 - update of usage of col_idx: now we discriminate between col_def_idx
   for column definition index and col_inst_idx.
 - default value of table_column::set_col_opt is now NULL and the table_set_col_opt should
   be used by user

9 years agotableprinter: code cleanup
Robert Kessl [Fri, 25 Jul 2014 13:16:17 +0000 (15:16 +0200)]
tableprinter: code cleanup

9 years agotableprinter: removal of table_make_instance
Robert Kessl [Fri, 25 Jul 2014 13:13:27 +0000 (15:13 +0200)]
tableprinter: removal of table_make_instance

9 years agotableprinter: code cleanup
Robert Kessl [Fri, 25 Jul 2014 13:07:59 +0000 (15:07 +0200)]
tableprinter: code cleanup

 - removed last_printed_col
 - update of initialization of column orders in table_set_col_order
 - update of table_set_col_opt: called die if table_column::set_col_opt
   is a pointer to table_set_col_opt.
 - update of documentation of table_set_col_opt

9 years agoMerge remote-tracking branch 'origin/dev-table' into dev-table
Robert Kessl [Fri, 25 Jul 2014 12:20:16 +0000 (14:20 +0200)]
Merge remote-tracking branch 'origin/dev-table' into dev-table

9 years agotableprinter: renamed data to formatter_data
Robert Kessl [Fri, 25 Jul 2014 12:20:09 +0000 (14:20 +0200)]
tableprinter: renamed data to formatter_data

9 years agoTable printer: Review comments
Martin Mares [Fri, 25 Jul 2014 12:01:52 +0000 (14:01 +0200)]
Table printer: Review comments

9 years agoExtended types: Review and cleanup of xt_size and xt_timestamp
Martin Mares [Fri, 25 Jul 2014 11:47:12 +0000 (13:47 +0200)]
Extended types: Review and cleanup of xt_size and xt_timestamp

  •  Adapted to naming convention on custom formatting modes.

  •  Use macro to wrap unit in a formatting mode, like we already
     do in XT_DOUBLE_FMT_PREC. Besides, encode such modes as proper
     custom modes with XTYPE_FMT_CUSTOM set.

  •  Do not check for NULL in parsing functions, it makes no sense
     (that is, the program would already have crashed before getting
     there with a NULL argument). If you really want to check for
     NULLs, do it in generic parsing functions, which call these
     callbacks.

  •  Do not mix definitions related to xt_size and xt_timestamp
     in the header file.

  •  Cleaned up selection of units in xt_size_format().

  •  Added a bunch of FIXMEs.

9 years agoExtended types: Introduced naming convention for xtype format macros
Martin Mares [Fri, 25 Jul 2014 11:25:34 +0000 (13:25 +0200)]
Extended types: Introduced naming convention for xtype format macros

For xt_something, let's use XT_SOMETHING_FMT_...

9 years agoExtended types: Moved unit tables to a more logical place in the header
Martin Mares [Fri, 25 Jul 2014 11:11:16 +0000 (13:11 +0200)]
Extended types: Moved unit tables to a more logical place in the header

9 years agoExtended types: Cleaned up unit name parsing
Martin Mares [Fri, 25 Jul 2014 11:04:27 +0000 (13:04 +0200)]
Extended types: Cleaned up unit name parsing

First of all, please show some respect and don't mess up coding
style of existing source files.

Second, when all parsing functions in xtypes.h use a common name
for the input string, just use it, too.

9 years agoExtended types: Keep includes sorted
Martin Mares [Fri, 25 Jul 2014 10:52:02 +0000 (12:52 +0200)]
Extended types: Keep includes sorted

9 years agoExtended types: Let unknown formats behave as XTYPE_FMT_DEFAULT
Martin Mares [Fri, 25 Jul 2014 10:50:28 +0000 (12:50 +0200)]
Extended types: Let unknown formats behave as XTYPE_FMT_DEFAULT

Otherwise, it would be very hard to define new common formats
in the future.

9 years agoExtended types: Cleanup of xt_double
Martin Mares [Fri, 25 Jul 2014 10:49:22 +0000 (12:49 +0200)]
Extended types: Cleanup of xt_double

9 years agoExtended types: Miscellaneous fixes of xt_bool
Martin Mares [Fri, 25 Jul 2014 10:42:29 +0000 (12:42 +0200)]
Extended types: Miscellaneous fixes of xt_bool

  •  Streamlined code and unified coding style.

  •  xt_bool_format() returns static strings, there is no need
     to duplicate them.

  •  xt_bool_parse() returns a more reasonable error message.

  •  Invalid formatting mode is an internal error, which should not
     be triggerable by the user, so ASSERT is enough.

9 years agoExtended types: Parsing of xt_str now copies the string
Martin Mares [Fri, 25 Jul 2014 10:38:18 +0000 (12:38 +0200)]
Extended types: Parsing of xt_str now copies the string

9 years agobuild system: Fixed bug (recursive rule application) in .gitignore
Tomas Valla [Thu, 24 Jul 2014 13:20:29 +0000 (15:20 +0200)]
build system: Fixed bug (recursive rule application) in .gitignore

9 years agotableprinter&xtypes: size now supports auto units
Robert Kessl [Thu, 24 Jul 2014 12:53:50 +0000 (14:53 +0200)]
tableprinter&xtypes: size now supports auto units

9 years agotableprinter&xtypes: update of ABI
Robert Kessl [Thu, 24 Jul 2014 08:26:37 +0000 (10:26 +0200)]
tableprinter&xtypes: update of ABI

9 years agotableprinter: size units are now static
Robert Kessl [Thu, 24 Jul 2014 08:15:35 +0000 (10:15 +0200)]
tableprinter: size units are now static

9 years agoTableprinter: rename of table_set_all_inst_content -> table_set_raw
Robert Kessl [Thu, 24 Jul 2014 07:54:25 +0000 (09:54 +0200)]
Tableprinter: rename of table_set_all_inst_content -> table_set_raw

9 years agotableprinter: TBL_COL_CUSTOM renamed to TBL_COL_XTYPE
Robert Kessl [Thu, 24 Jul 2014 07:32:00 +0000 (09:32 +0200)]
tableprinter: TBL_COL_CUSTOM renamed to TBL_COL_XTYPE

9 years agoxtypes: bool now supports yes/no strings
Robert Kessl [Thu, 24 Jul 2014 06:49:09 +0000 (08:49 +0200)]
xtypes: bool now supports yes/no strings

9 years agotableprinter: code cleanup
Robert Kessl [Thu, 24 Jul 2014 06:47:49 +0000 (08:47 +0200)]
tableprinter: code cleanup

9 years agoxtypes&tableprinter: update of tests
Robert Kessl [Wed, 23 Jul 2014 14:16:30 +0000 (16:16 +0200)]
xtypes&tableprinter: update of tests

9 years agotableprinter: update of tests and size/timestamp parser
Robert Kessl [Wed, 23 Jul 2014 14:11:52 +0000 (16:11 +0200)]
tableprinter: update of tests and size/timestamp parser

 - update of error messages for size/timestamp
 - strtol changed to strtoul (we should are using u64)
 - update of tests

9 years agoxtypes: update of tests, code cleanup
Robert Kessl [Wed, 23 Jul 2014 13:58:18 +0000 (15:58 +0200)]
xtypes: update of tests, code cleanup

9 years agotableprinter&xtypes: assert changed to die in tests, fix of timestamp parsing
Robert Kessl [Wed, 23 Jul 2014 12:52:41 +0000 (14:52 +0200)]
tableprinter&xtypes: assert changed to die in tests, fix of timestamp parsing

9 years agotableprinter: removed UNUSED attribute from timestamp&size parsing
Robert Kessl [Wed, 23 Jul 2014 12:39:45 +0000 (14:39 +0200)]
tableprinter: removed UNUSED attribute from timestamp&size parsing

9 years agoxtypes&tableprinter: fix of tests of parsing
Robert Kessl [Wed, 23 Jul 2014 12:10:14 +0000 (14:10 +0200)]
xtypes&tableprinter: fix of tests of parsing

9 years agoxtypes: first shot on tests of timestamp parsing
Robert Kessl [Wed, 23 Jul 2014 11:49:44 +0000 (13:49 +0200)]
xtypes: first shot on tests of timestamp parsing

9 years agoxtypes: added first shot on unit parser
Robert Kessl [Wed, 23 Jul 2014 10:10:10 +0000 (12:10 +0200)]
xtypes: added first shot on unit parser

9 years agoxtypes: updated tests
Robert Kessl [Tue, 22 Jul 2014 13:15:40 +0000 (15:15 +0200)]
xtypes: updated tests

9 years agoxtypes: fixed error in xt_bool parser
Robert Kessl [Tue, 22 Jul 2014 13:02:23 +0000 (15:02 +0200)]
xtypes: fixed error in xt_bool parser

9 years agoxtypes&tableprinter: added parsing of size and tests
Robert Kessl [Tue, 22 Jul 2014 12:54:17 +0000 (14:54 +0200)]
xtypes&tableprinter: added parsing of size and tests

9 years agotableprinter: header option now parsed by xtypes
Robert Kessl [Tue, 22 Jul 2014 11:08:18 +0000 (13:08 +0200)]
tableprinter: header option now parsed by xtypes

9 years agotableprinter: code cleanup
Robert Kessl [Tue, 22 Jul 2014 10:46:29 +0000 (12:46 +0200)]
tableprinter: code cleanup

9 years agotableprinter: some ints in struct table changed to bool
Robert Kessl [Tue, 22 Jul 2014 10:20:48 +0000 (12:20 +0200)]
tableprinter: some ints in struct table changed to bool

9 years agotableprinter: updated setting of column option
Robert Kessl [Tue, 22 Jul 2014 10:12:19 +0000 (12:12 +0200)]
tableprinter: updated setting of column option

9 years agotableprinter: update of parsing of column options
Robert Kessl [Tue, 22 Jul 2014 08:38:03 +0000 (10:38 +0200)]
tableprinter: update of parsing of column options

9 years agoxtypes: update of default formatting
Robert Kessl [Mon, 21 Jul 2014 12:49:46 +0000 (14:49 +0200)]
xtypes: update of default formatting

9 years agotableprinter: renamed output_type -> fmt, changed bool default format
Robert Kessl [Mon, 21 Jul 2014 12:07:10 +0000 (14:07 +0200)]
tableprinter: renamed output_type -> fmt, changed bool default format

9 years agoMerge branch 'master' into dev-table
Robert Kessl [Mon, 21 Jul 2014 10:40:57 +0000 (12:40 +0200)]
Merge branch 'master' into dev-table

Conflicts:
ucw/table.h

9 years agotableprinter: code cleanup, added options
Robert Kessl [Mon, 21 Jul 2014 10:38:48 +0000 (12:38 +0200)]
tableprinter: code cleanup, added options

 - renamed TBL_OUTPUT_* -> TBL_FMT_*
 - added "raw" and "pretty" table option
 - added "cells" table option

9 years agotableprinter: table_update_ll now uses .idx
Robert Kessl [Mon, 21 Jul 2014 07:39:25 +0000 (09:39 +0200)]
tableprinter: table_update_ll now uses .idx

9 years agotableprinter: code cleanup
Robert Kessl [Mon, 21 Jul 2014 07:28:00 +0000 (09:28 +0200)]
tableprinter: code cleanup

9 years agotableprinter: formatters are now const
Robert Kessl [Mon, 21 Jul 2014 07:23:16 +0000 (09:23 +0200)]
tableprinter: formatters are now const

9 years agotableprinter: table_set_col_order_by_name now calls table_make_default_column_order
Robert Kessl [Mon, 21 Jul 2014 07:06:00 +0000 (09:06 +0200)]
tableprinter: table_set_col_order_by_name now calls table_make_default_column_order