]>
mj.ucw.cz Git - libucw.git/log
Martin Mares [Fri, 13 Feb 2015 15:13:15 +0000 (16:13 +0100)]
Configure: Experimental CONFIG_LTO
Martin Mares [Fri, 13 Feb 2015 14:54:39 +0000 (15:54 +0100)]
XML: Uninlined
Martin Mares [Fri, 13 Feb 2015 14:36:59 +0000 (15:36 +0100)]
XML: Bug fixes of namespaces
Martin Mares [Thu, 12 Feb 2015 23:48:56 +0000 (00:48 +0100)]
XML: Fix processing of namespace prefixes
Martin Mares [Thu, 12 Feb 2015 23:31:57 +0000 (00:31 +0100)]
XML: ABI cleanup
Martin Mares [Thu, 12 Feb 2015 23:24:26 +0000 (00:24 +0100)]
XML: Changed internal representation of attributes
As most elements have only a couple of attributes, I switched the
main attribute data structure from a hash table to a list. String
comparisons are hopefully avoided in most cases, as we keep a hash
of the lookup key in each entry.
More importantly, the structure is populated in two steps: first,
original (i.e., qualified) names of all attributes are entered;
second, namespaces are resolved and attributes are checked for
uniqueness.
If linear time complexity of attribute lookups turns out to be
too slow, we can add a secondary hash table for elements with
many attributes. This table will be populated from the list
in the 2nd step above.
Martin Mares [Thu, 12 Feb 2015 22:12:03 +0000 (23:12 +0100)]
XML: Implementation of XML namespaces
The basic logic of namespaces and qualified names works,
but unfortunately the attribute data structures are broken.
Martin Mares [Thu, 12 Feb 2015 18:44:04 +0000 (19:44 +0100)]
XML: Directory renamed to ucw-xml
Instead of <xml/something.h>, we now include <ucw-xml/something.h>,
which is less likely to clash with other libraries.
Martin Mares [Thu, 12 Feb 2015 18:31:53 +0000 (19:31 +0100)]
XML: ABI cleanup
Martin Mares [Thu, 12 Feb 2015 18:05:40 +0000 (19:05 +0100)]
Remove obsolete references to Sherlock
Martin Mares [Thu, 12 Feb 2015 17:26:30 +0000 (18:26 +0100)]
XML: Fixed a typo in comment
Martin Mares [Thu, 12 Feb 2015 16:58:06 +0000 (17:58 +0100)]
XML: DEL is not printable
Martin Mares [Thu, 12 Feb 2015 16:16:31 +0000 (17:16 +0100)]
README: Adjusted years
Martin Mares [Thu, 12 Feb 2015 15:50:53 +0000 (16:50 +0100)]
Logging: Resurrected testing of log-conf
Martin Mares [Thu, 12 Feb 2015 15:41:26 +0000 (16:41 +0100)]
Logging: Added log_drop_stderr().
When writing the daemonization module, I assumed that it is not
necessary to close stderr, because it will be replaced by a log
file later. Alas, this is not true for general log streams.
I have added a function, which should be called by the daemon
when it is done with initialization of logging.
Martin Mares [Fri, 16 Jan 2015 15:26:29 +0000 (16:26 +0100)]
Maint: One more note
Martin Mares [Fri, 16 Jan 2015 15:23:47 +0000 (16:23 +0100)]
Xtypes: Documentation cleanup
Many missing bits have been added, many a wording has been polished.
The man page for table options has been moved to section 5, as it
describes a general convention, not a program.
Martin Mares [Fri, 16 Jan 2015 14:23:11 +0000 (15:23 +0100)]
Doc: Man pages are now generated as both HTML and NROFF
Martin Mares [Fri, 16 Jan 2015 14:10:30 +0000 (15:10 +0100)]
Maint: Fix installation of man pages
Martin Mares [Fri, 16 Jan 2015 14:09:55 +0000 (15:09 +0100)]
Xtypes: Documentation
Martin Mares [Fri, 16 Jan 2015 13:31:57 +0000 (14:31 +0100)]
Maint: Added a HOWTO on releasing LibUCW
Martin Mares [Fri, 16 Jan 2015 13:04:10 +0000 (14:04 +0100)]
Merge branch 'dev-xtypes'
Pavel Charvat [Thu, 15 Jan 2015 19:44:24 +0000 (19:44 +0000)]
Build: Attempt to fix problems with access rights to custom INSTALL_LIB_DIR.
Martin Mares [Sun, 9 Nov 2014 13:56:41 +0000 (14:56 +0100)]
Macros: CLAMP now accepts arbitrary types, not only ints
Martin Mares [Sun, 9 Nov 2014 12:32:28 +0000 (13:32 +0100)]
Mainloop: Be benevolent when file_del() is called on a closed fd
I recently wrote a couple of wrappers for connecting other mainloop
interfaces to UCW mainloop. Unfortunately, asking a mainloop to stop
watching a file a moment after close() is a common (mal)practice.
Working around it in the wrapper is hard to do, so I relax the checks
in LibUCW instead.
Pavel Charvat [Fri, 10 Oct 2014 12:56:58 +0000 (12:56 +0000)]
Daemon: Fixed more race conditions.
Pavel Charvat [Fri, 10 Oct 2014 12:20:51 +0000 (12:20 +0000)]
Daemon: Improved comments.
Pavel Charvat [Fri, 10 Oct 2014 11:56:34 +0000 (11:56 +0000)]
Daemon: Use pipe instead of fcntl lock to synchronize child process with master.
Pavel Charvat [Thu, 9 Oct 2014 10:21:01 +0000 (10:21 +0000)]
Daemon: Only fixed a comment.
Pavel Charvat [Thu, 9 Oct 2014 10:13:27 +0000 (10:13 +0000)]
Daemon: Returned original check of written pidfile after start, but don't fail on quick stop.
Pavel Charvat [Thu, 9 Oct 2014 10:08:39 +0000 (10:08 +0000)]
Daemon: Removed unnecessary fcntl lock from daemon-control.
Pavel Charvat [Thu, 9 Oct 2014 09:20:30 +0000 (09:20 +0000)]
Daemon: Fixed races in previous commit.
Pavel Charvat [Thu, 9 Oct 2014 06:30:08 +0000 (06:30 +0000)]
Daemon: Fixed invalid permissions and some races when closing daemons.
Robert Kessl [Fri, 5 Sep 2014 08:55:11 +0000 (10:55 +0200)]
xtypes: fix of tests of xt_timestamp::parse
Pavel Charvat [Thu, 4 Sep 2014 12:14:58 +0000 (12:14 +0000)]
XTypes: Fixed dump of configuration.
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.
Pavel Charvat [Thu, 4 Sep 2014 11:39:06 +0000 (11:39 +0000)]
XTypes: Added support to configuration and option parser.
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.
Pavel Charvat [Sun, 10 Aug 2014 14:20:21 +0000 (14:20 +0000)]
Tables: Fixed few typos in manpage.
Pavel Charvat [Sun, 10 Aug 2014 14:15:03 +0000 (14:15 +0000)]
Doc: Generalized makefile rules for all categories of manpages.
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'.
Pavel Charvat [Sun, 10 Aug 2014 12:20:32 +0000 (12:20 +0000)]
Packages: Updated build dependencies.
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.
Pavel Charvat [Sun, 10 Aug 2014 12:02:01 +0000 (12:02 +0000)]
Doc: Simplified rule for compilation of manpages.
Pavel Charvat [Sat, 9 Aug 2014 18:49:29 +0000 (18:49 +0000)]
Release: Increased version in default.cfg to 6.1.
Pavel Charvat [Sat, 9 Aug 2014 05:37:49 +0000 (05:37 +0000)]
Packages: Fixed bug in debian/tag-release script.
Martin Mares [Fri, 8 Aug 2014 22:54:50 +0000 (00:54 +0200)]
TODO: Do not forget xtype docs
Martin Mares [Fri, 8 Aug 2014 22:54:29 +0000 (00:54 +0200)]
Merge branch 'dev-table'
Martin Mares [Fri, 8 Aug 2014 22:52:32 +0000 (00:52 +0200)]
ucw/doc/Makefile: Do not mix UCW_MANPAGES with MANPAGES
Martin Mares [Fri, 8 Aug 2014 22:50:15 +0000 (00:50 +0200)]
Makefile cosmetics
Robert Kessl [Fri, 8 Aug 2014 10:56:14 +0000 (12:56 +0200)]
Even more updates in build of manpages
Robert Kessl [Fri, 8 Aug 2014 10:49:56 +0000 (12:49 +0200)]
Update build of manpages, contd.
Robert Kessl [Fri, 8 Aug 2014 07:48:48 +0000 (09:48 +0200)]
Update build of manpages
Robert Kessl [Wed, 6 Aug 2014 07:41:52 +0000 (09:41 +0200)]
Added manpages to doc build; update of doc.
Martin Mares [Tue, 5 Aug 2014 15:14:42 +0000 (17:14 +0200)]
Doc: The last line ought to end with a newline
Martin Mares [Tue, 5 Aug 2014 15:14:15 +0000 (17:14 +0200)]
Extended types: Fix constness issues
Robert Kessl [Tue, 5 Aug 2014 07:00:31 +0000 (09:00 +0200)]
tableprinter: manpage is now installed into /usr/share/man/man1
Robert Kessl [Mon, 4 Aug 2014 11:47:40 +0000 (13:47 +0200)]
xtypes: xt_double bugfix in parsing of precision
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
Robert Kessl [Mon, 4 Aug 2014 11:45:12 +0000 (13:45 +0200)]
tableprinter: update of documentation
Martin Mares [Wed, 30 Jul 2014 12:43:38 +0000 (14:43 +0200)]
ABI: Fix function order
Martin Mares [Wed, 30 Jul 2014 12:43:24 +0000 (14:43 +0200)]
ABI tools: Better reporting of missing files
Martin Mares [Wed, 30 Jul 2014 12:34:07 +0000 (14:34 +0200)]
Extended types: Fix comment
Martin Mares [Wed, 30 Jul 2014 12:33:57 +0000 (14:33 +0200)]
Extended types: Fix name of the guard macro
Robert Kessl [Wed, 30 Jul 2014 12:30:30 +0000 (14:30 +0200)]
tableprinter: update of tests and fix of parsing empty col opt
Robert Kessl [Wed, 30 Jul 2014 12:15:09 +0000 (14:15 +0200)]
tableprinter: update of tests of table_set_col_order_by_name
Robert Kessl [Wed, 30 Jul 2014 08:55:59 +0000 (10:55 +0200)]
tableprinter: compile fix
Robert Kessl [Wed, 30 Jul 2014 08:25:13 +0000 (10:25 +0200)]
tableprinter: update of documentation of table_set_col_order_by_name
Robert Kessl [Wed, 30 Jul 2014 08:15:49 +0000 (10:15 +0200)]
tableprinter: code cleanup
Robert Kessl [Wed, 30 Jul 2014 07:42:27 +0000 (09:42 +0200)]
tableprinter: small comment update
Robert Kessl [Wed, 30 Jul 2014 07:35:08 +0000 (09:35 +0200)]
tableprinter: code cleanup
Robert Kessl [Wed, 30 Jul 2014 07:18:14 +0000 (09:18 +0200)]
tableprinter: update of tests of 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
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
Robert Kessl [Tue, 29 Jul 2014 11:55:52 +0000 (13:55 +0200)]
tableprinter: update of comments and code cleanup
Robert Kessl [Tue, 29 Jul 2014 11:45:48 +0000 (13:45 +0200)]
tableprinter: code cleanup
Robert Kessl [Tue, 29 Jul 2014 08:45:56 +0000 (10:45 +0200)]
tableprinter&xtypes: table-types.[ch] moved to xtypes-extra.[ch]
Robert Kessl [Tue, 29 Jul 2014 07:47:42 +0000 (09:47 +0200)]
tableprinter: removed some obsolete FIXME, added some comments
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.
Robert Kessl [Mon, 28 Jul 2014 12:31:08 +0000 (14:31 +0200)]
tableprinter: table_update_ll is now called only in table_start
Robert Kessl [Mon, 28 Jul 2014 12:25:07 +0000 (14:25 +0200)]
tableprinter: tests now use 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
Robert Kessl [Mon, 28 Jul 2014 12:10:56 +0000 (14:10 +0200)]
tableprinter: TBL_COL_ITER_START(END) moved to table.c
Robert Kessl [Mon, 28 Jul 2014 11:54:26 +0000 (13:54 +0200)]
xtypes: overflow detection updated
Robert Kessl [Mon, 28 Jul 2014 11:51:17 +0000 (13:51 +0200)]
xtypes: removal of strtoul from size/timestamp parser
Robert Kessl [Mon, 28 Jul 2014 10:40:25 +0000 (12:40 +0200)]
tableprinter: update of table_set_col_order(and tests)
Robert Kessl [Fri, 25 Jul 2014 15:28:59 +0000 (17:28 +0200)]
tableprinter: added overflow detection
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
Robert Kessl [Fri, 25 Jul 2014 13:16:17 +0000 (15:16 +0200)]
tableprinter: code cleanup
Robert Kessl [Fri, 25 Jul 2014 13:13:27 +0000 (15:13 +0200)]
tableprinter: removal of table_make_instance
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
Robert Kessl [Fri, 25 Jul 2014 12:20:16 +0000 (14:20 +0200)]
Merge remote-tracking branch 'origin/dev-table' into dev-table
Robert Kessl [Fri, 25 Jul 2014 12:20:09 +0000 (14:20 +0200)]
tableprinter: renamed data to formatter_data
Martin Mares [Fri, 25 Jul 2014 12:01:52 +0000 (14:01 +0200)]
Table printer: Review comments
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.
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_...
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
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.
Martin Mares [Fri, 25 Jul 2014 10:52:02 +0000 (12:52 +0200)]
Extended types: Keep includes sorted
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.