]> mj.ucw.cz Git - libucw.git/log
libucw.git
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.

10 years agoUtils: ucw-{config,logger,logoutput} moved from /usr/sbin to /usr/bin.
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.

10 years agoMempool: Do not count the struct mempool to its stats.used_size.
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.

10 years agoBuild: With shared LibUCW we no longer need picstatic version of libraries.
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.

10 years agoUCW::CGI: When a file is uploaded, its original name can be obtained
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

10 years agoBuild: Added lib*.so -> lib*.so.0 symlinks to run/lib.
Pavel Charvat [Thu, 22 May 2014 09:44:04 +0000 (11:44 +0200)]
Build: Added lib*.so -> lib*.so.0 symlinks to run/lib.

10 years agoBuild: Added link path to libraries installed to non-standard path.
Pavel Charvat [Thu, 22 May 2014 07:18:45 +0000 (09:18 +0200)]
Build: Added link path to libraries installed to non-standard path.

10 years agoFastbufs: Fixed uninitialized variables in fbmulti's structure.
Pavel Charvat [Wed, 21 May 2014 12:57:54 +0000 (14:57 +0200)]
Fastbufs: Fixed uninitialized variables in fbmulti's structure.

10 years agoMempool: Fixed broken unit test.
Pavel Charvat [Tue, 20 May 2014 13:26:06 +0000 (15:26 +0200)]
Mempool: Fixed broken unit test.

10 years agoMempool: Implemented mp_shrink().
Pavel Charvat [Tue, 20 May 2014 11:36:32 +0000 (13:36 +0200)]
Mempool: Implemented mp_shrink().

10 years agoMempool: stats->chain_size[] should be u64, not uns.
Pavel Charvat [Tue, 20 May 2014 09:10:29 +0000 (11:10 +0200)]
Mempool: stats->chain_size[] should be u64, not uns.

10 years agoMempool: Implemented statistics about allocated bytes from memory pool to application.
Pavel Charvat [Tue, 20 May 2014 09:08:15 +0000 (11:08 +0200)]
Mempool: Implemented statistics about allocated bytes from memory pool to application.

10 years agoSorter: Fixed a documentation comment
Martin Mares [Sat, 17 May 2014 21:36:04 +0000 (23:36 +0200)]
Sorter: Fixed a documentation comment

10 years agoMerge branch 'master' of ssh://git.ucw.cz/projects/libucw/GIT/libucw
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

10 years agoMempool: Implemented various functions for appending to a growing buffer
Martin Mares [Thu, 15 May 2014 07:20:57 +0000 (09:20 +0200)]
Mempool: Implemented various functions for appending to a growing buffer

10 years agoABI cleanup
Martin Mares [Thu, 15 May 2014 07:20:44 +0000 (09:20 +0200)]
ABI cleanup

10 years agoNull fastbuf: Don't forget to set a fastbuf's name.
Pavel Charvat [Thu, 15 May 2014 07:12:53 +0000 (09:12 +0200)]
Null fastbuf: Don't forget to set a fastbuf's name.

10 years agoBuild: Fixed a bug in our unit tester.
Pavel Charvat [Tue, 13 May 2014 10:58:53 +0000 (12:58 +0200)]
Build: Fixed a bug in our unit tester.

10 years agoNull fastbuf: Clean ABI.
Pavel Charvat [Tue, 13 May 2014 10:54:10 +0000 (12:54 +0200)]
Null fastbuf: Clean ABI.

10 years agoMempools: mp_total_size() is O(1)
Martin Mares [Tue, 13 May 2014 10:14:49 +0000 (12:14 +0200)]
Mempools: mp_total_size() is O(1)

10 years agoMerge branch 'master' of ssh://git.ucw.cz/projects/libucw/GIT/libucw
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

10 years agoNull fastbuf: Implemented a new "/dev/null"-like fastbuf.
Pavel Charvat [Tue, 13 May 2014 07:44:38 +0000 (09:44 +0200)]
Null fastbuf: Implemented a new "/dev/null"-like fastbuf.

10 years agoXML: "PUSH" in comments should be "PULL"
Martin Mares [Sat, 10 May 2014 21:50:46 +0000 (23:50 +0200)]
XML: "PUSH" in comments should be "PULL"

10 years agoPackages: Implemented `debian/mk --extra-conf=...'.
Pavel Charvat [Wed, 7 May 2014 08:28:18 +0000 (10:28 +0200)]
Packages: Implemented `debian/mk --extra-conf=...'.

10 years agoImages: Fixed dependencies in `make tests'.
Pavel Charvat [Wed, 7 May 2014 07:57:11 +0000 (09:57 +0200)]
Images: Fixed dependencies in `make tests'.

10 years agoImages: Fixed compilation problems with enabled GraphicsMagick.
Pavel Charvat [Wed, 7 May 2014 07:50:21 +0000 (09:50 +0200)]
Images: Fixed compilation problems with enabled GraphicsMagick.

10 years agoImages: Fixed linkage of libpthread.
Pavel Charvat [Wed, 7 May 2014 07:36:38 +0000 (09:36 +0200)]
Images: Fixed linkage of libpthread.

10 years agoBuild: Fixed few compilation warnings/errors.
Pavel Charvat [Wed, 7 May 2014 07:29:58 +0000 (09:29 +0200)]
Build: Fixed few compilation warnings/errors.

10 years agoMemory pools: Add a reference from each chunk to its memory pool (in debug mode).
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).

10 years agoBuild: Silenced several compilation warnings on some versions of gcc.
Pavel Charvat [Wed, 7 May 2014 07:05:12 +0000 (09:05 +0200)]
Build: Silenced several compilation warnings on some versions of gcc.

10 years agoasserts: Added ASSERT_MSG to print a debug msg together with assertion fail.
Tomas Valla [Mon, 28 Apr 2014 09:13:48 +0000 (11:13 +0200)]
asserts: Added ASSERT_MSG to print a debug msg together with assertion fail.

10 years agoUCW::CGI: Let url_param_escape() encode non-ASCII characters
Martin Mares [Fri, 18 Apr 2014 10:44:53 +0000 (12:44 +0200)]
UCW::CGI: Let url_param_escape() encode non-ASCII characters

RFC 3986 (generic URI syntax) explicitly says this must be done
and some URI parsers choke on them.

Anyway, I am keeping bare url_escape() as is for the time being,
because it's used for production of user-friendly URLs, too. Needs
cleanup later.

10 years agoBuild: LibUCW should depend on -lm.
Pavel Charvat [Fri, 4 Apr 2014 09:52:00 +0000 (11:52 +0200)]
Build: LibUCW should depend on -lm.

10 years agoDaemon: Make user/group switching available separately
Martin Mares [Mon, 10 Mar 2014 22:00:32 +0000 (23:00 +0100)]
Daemon: Make user/group switching available separately

10 years agoOpt: Fixed confused macros
Martin Mares [Mon, 24 Feb 2014 11:55:04 +0000 (12:55 +0100)]
Opt: Fixed confused macros

10 years agoOpt: "--help" can stand both before and after config options
Martin Mares [Mon, 17 Feb 2014 17:49:48 +0000 (18:49 +0100)]
Opt: "--help" can stand both before and after config options

The OPT_BEFORE_CONFIG flag was incorrectly interpreted as "this is
a config option", so "--help" after all options did not work as
expected.

Now, OPT_BEFORE_CONFIG means "the option can stand anywhere and the
config check logic should not touch it".

10 years agoOpt: Improved parsing of negative boolean options
Martin Mares [Mon, 17 Feb 2014 17:41:33 +0000 (18:41 +0100)]
Opt: Improved parsing of negative boolean options

Boolean options with the OPT_NEGATIVE flag, which are named "no-X",
are also recognized as bare "X" with positive meaning.

Include tests for processing of both positive and negative bools.

10 years agoOpt: OPT_NO_HELP is gone
Martin Mares [Mon, 17 Feb 2014 17:12:58 +0000 (18:12 +0100)]
Opt: OPT_NO_HELP is gone

10 years agoOpt: Fixed a typo in OPT_UINT.
Pavel Charvat [Mon, 17 Feb 2014 12:14:14 +0000 (13:14 +0100)]
Opt: Fixed a typo in OPT_UINT.

10 years agoOpt: Implemented OPT_UINT.
Pavel Charvat [Mon, 17 Feb 2014 12:07:03 +0000 (13:07 +0100)]
Opt: Implemented OPT_UINT.

10 years agoTypes: Defined `uint' as a replacement for `uns'.
Pavel Charvat [Mon, 17 Feb 2014 12:05:42 +0000 (13:05 +0100)]
Types: Defined `uint' as a replacement for `uns'.

10 years agoFastbufs: Fixed an off-by-one error in bprintf().
Pavel Charvat [Wed, 12 Feb 2014 15:07:06 +0000 (16:07 +0100)]
Fastbufs: Fixed an off-by-one error in bprintf().

10 years agoPackages: Small fix in `debian/mk --gen-script'.
Pavel Charvat [Fri, 7 Feb 2014 11:27:50 +0000 (12:27 +0100)]
Packages: Small fix in `debian/mk --gen-script'.

10 years agoPackages: Implemented `debian/mk --no-source'.
Pavel Charvat [Fri, 7 Feb 2014 11:25:27 +0000 (12:25 +0100)]
Packages: Implemented `debian/mk --no-source'.

10 years agoLibUCW: debian/mk can postprocess debian/control with a custom script.
Pavel Charvat [Fri, 7 Feb 2014 08:54:31 +0000 (09:54 +0100)]
LibUCW: debian/mk can postprocess debian/control with a custom script.

10 years agoOpt: Fixed a bug in positional arguments.
Pavel Charvat [Thu, 6 Feb 2014 11:17:34 +0000 (12:17 +0100)]
Opt: Fixed a bug in positional arguments.

10 years agoOpt: Avoid fixed constants, use OPT_POSITIONAL_TAIL
Martin Mares [Thu, 6 Feb 2014 09:52:26 +0000 (10:52 +0100)]
Opt: Avoid fixed constants, use OPT_POSITIONAL_TAIL

10 years agoPackages: Removed the "-dev" suffix from UCW_ABI_SUFFIX.
Pavel Charvat [Tue, 4 Feb 2014 12:32:49 +0000 (13:32 +0100)]
Packages: Removed the "-dev" suffix from UCW_ABI_SUFFIX.

10 years agoMerge branch 'master' of ssh://jabberwock.ucw.cz/projects/libucw/GIT/libucw
Pavel Charvat [Tue, 4 Feb 2014 12:31:34 +0000 (13:31 +0100)]
Merge branch 'master' of ssh://jabberwock.ucw.cz/projects/libucw/GIT/libucw

10 years agoLogging: Stream filters are permitted to modify log messages
Martin Mares [Tue, 4 Feb 2014 12:55:23 +0000 (13:55 +0100)]
Logging: Stream filters are permitted to modify log messages

10 years agoPackages: The version number appended to names of libraries is detected from ucw...
Pavel Charvat [Tue, 4 Feb 2014 12:29:25 +0000 (13:29 +0100)]
Packages: The version number appended to names of libraries is detected from ucw/default.cfg instead of the tag.

10 years agoDoc: Moskyto has a homepage
Jan 'Moskyt' Matejka [Thu, 30 Jan 2014 23:50:54 +0000 (00:50 +0100)]
Doc: Moskyto has a homepage

10 years agowebpage: Updated for v6.0, author list and feature list.
Tomas Valla [Thu, 30 Jan 2014 22:28:54 +0000 (23:28 +0100)]
webpage: Updated for v6.0, author list and feature list.

10 years agoDebian: Let git describe use unsigned tags, too
Martin Mares [Tue, 28 Jan 2014 23:52:40 +0000 (00:52 +0100)]
Debian: Let git describe use unsigned tags, too

10 years agoAPI: Include tbf.h and trie.h
Martin Mares [Tue, 28 Jan 2014 23:52:12 +0000 (00:52 +0100)]
API: Include tbf.h and trie.h

10 years agoDoc: Fixed function references v5.99
Martin Mares [Tue, 28 Jan 2014 23:40:15 +0000 (00:40 +0100)]
Doc: Fixed function references