]> mj.ucw.cz Git - libucw.git/log
libucw.git
10 years agobinomial heaps: Added missing node order initialization.
Tomas Valla [Tue, 5 Nov 2013 18:40:26 +0000 (19:40 +0100)]
binomial heaps: Added missing node order initialization.

10 years agoLibUCW: Fixed broken DARY_ALLOC() on 64bit architectures.
Pavel Charvat [Thu, 24 Oct 2013 13:47:49 +0000 (15:47 +0200)]
LibUCW: Fixed broken DARY_ALLOC() on 64bit architectures.

10 years agoFastbuf: Fix possible memory leak in new bprintf()
Martin Mares [Fri, 18 Oct 2013 15:25:38 +0000 (17:25 +0200)]
Fastbuf: Fix possible memory leak in new bprintf()

10 years agoFixed note about res_alloc() with no resource pool active
Martin Mares [Fri, 18 Oct 2013 14:39:55 +0000 (16:39 +0200)]
Fixed note about res_alloc() with no resource pool active

10 years agoAdded DBG_SPOT macro
Martin Mares [Thu, 17 Oct 2013 14:10:33 +0000 (16:10 +0200)]
Added DBG_SPOT macro

10 years agoFastbuf: Rewritten bprintf()
Martin Mares [Thu, 17 Oct 2013 14:00:16 +0000 (16:00 +0200)]
Fastbuf: Rewritten bprintf()

The new version prints directly to the stream buffer, avoiding
unnecessary copies in the common case. Also, only small buffers
are allocated on the stack.

10 years agoTester: Compare stderr if requested
Martin Mares [Thu, 17 Oct 2013 13:50:12 +0000 (15:50 +0200)]
Tester: Compare stderr if requested

10 years agoTests: Enable tests of bitops
Martin Mares [Thu, 17 Oct 2013 13:48:01 +0000 (15:48 +0200)]
Tests: Enable tests of bitops

... with the exception of bit-count-t, which does not exist any longer.

10 years agoTester: Support here-documents
Martin Mares [Thu, 17 Oct 2013 13:47:47 +0000 (15:47 +0200)]
Tester: Support here-documents

10 years agoUCW::CGI: Escaping functions silently convert undef to undef
Martin Mares [Tue, 15 Oct 2013 12:41:10 +0000 (14:41 +0200)]
UCW::CGI: Escaping functions silently convert undef to undef

10 years agooption parser: Empty stub of the documentation
Tomas Valla [Fri, 6 Sep 2013 10:41:33 +0000 (12:41 +0200)]
option parser: Empty stub of the documentation

10 years agoMerge branch 'master' into dev-opt
Tomas Valla [Fri, 6 Sep 2013 10:11:27 +0000 (12:11 +0200)]
Merge branch 'master' into dev-opt

10 years agoOpt: Removed my bogus comment
Martin Mares [Tue, 3 Sep 2013 14:18:41 +0000 (16:18 +0200)]
Opt: Removed my bogus comment

10 years agoOpt: Introduced contexts
Martin Mares [Tue, 3 Sep 2013 14:14:33 +0000 (16:14 +0200)]
Opt: Introduced contexts

`struct opt_precomputed' was turning to a option parser context,
so let's admit it. Renamed to `opt_context' and make it passed
as the first argument.

The name of `struct opt_precomputed_option' was a way too unwieldy,
so I renamed it to `struct opt_precomputed'.

Also got rid of several globals variables, but others remain.

10 years agoOpt: Tamed FIELD and LASTFIELD macros
Martin Mares [Tue, 3 Sep 2013 13:48:23 +0000 (15:48 +0200)]
Opt: Tamed FIELD and LASTFIELD macros

They passed incorrect types to printf (ptrdiff_t instead of int)
and evaluated strchrnul() repeatedly.

10 years agoOpt: Deleted extra newlines after failure messages
Martin Mares [Tue, 3 Sep 2013 13:43:07 +0000 (15:43 +0200)]
Opt: Deleted extra newlines after failure messages

10 years agoOpt: Do not be shy of multi-line outputs
Martin Mares [Tue, 3 Sep 2013 13:39:25 +0000 (15:39 +0200)]
Opt: Do not be shy of multi-line outputs

10 years agoOpt: Earl Grey was not an American :)
Martin Mares [Tue, 3 Sep 2013 13:33:33 +0000 (15:33 +0200)]
Opt: Earl Grey was not an American :)

10 years agoOpt: Tests split off to a separate file
Martin Mares [Tue, 3 Sep 2013 13:31:19 +0000 (15:31 +0200)]
Opt: Tests split off to a separate file

10 years agoOpt: Whitespace cleanup
Martin Mares [Tue, 3 Sep 2013 13:24:02 +0000 (15:24 +0200)]
Opt: Whitespace cleanup

10 years agogary.h: Fixed bug in INIT_SPACE_* macros
Tomas Valla [Mon, 22 Jul 2013 09:08:43 +0000 (11:08 +0200)]
gary.h: Fixed bug in INIT_SPACE_* macros

commit 629bd47e7b61b251d055dccfecf124bacad17f76 from MD2

10 years agogary: Added GARY_INIT_SPACE(_ZERO)
Martin Mares [Mon, 22 Jul 2013 08:08:13 +0000 (10:08 +0200)]
gary: Added GARY_INIT_SPACE(_ZERO)

10 years agoff-varints: Fixed really silly bug in handling fastbufs.
Tomas Valla [Sat, 20 Jul 2013 10:00:17 +0000 (12:00 +0200)]
ff-varints: Fixed really silly bug in handling fastbufs.

Commit d7762233d87dfea537c963e813daba8fa72bf2be from MD2.

11 years agoOpt: A couple of review comments
Martin Mares [Thu, 4 Jul 2013 11:06:20 +0000 (13:06 +0200)]
Opt: A couple of review comments

11 years agoOpt: Calling hooks, config opts added
Jan 'Moskyt' Matejka [Tue, 25 Jun 2013 09:34:48 +0000 (11:34 +0200)]
Opt: Calling hooks, config opts added

11 years agoOpt: Config getopt and hooks
Jan 'Moskyt' Matejka [Thu, 20 Jun 2013 15:14:50 +0000 (17:14 +0200)]
Opt: Config getopt and hooks

Not tested yet, unfinished

11 years agoLibUCW: Documented OptionalInclude in configuration files.
Pavel Charvat [Tue, 28 May 2013 10:30:05 +0000 (12:30 +0200)]
LibUCW: Documented OptionalInclude in configuration files.

11 years agoLibUCW: Implemented OptionalInclude to configuration files.
Pavel Charvat [Tue, 28 May 2013 10:08:06 +0000 (12:08 +0200)]
LibUCW: Implemented OptionalInclude to configuration files.

11 years agoOpt: tests for OPT_MULTIPLE
Jan 'Moskyt' Matejka [Mon, 13 May 2013 16:15:27 +0000 (18:15 +0200)]
Opt: tests for OPT_MULTIPLE

11 years agoOpt: OPT_MULTIPLE implemented, no tests yet but seems working
Jan 'Moskyt' Matejka [Mon, 13 May 2013 16:01:46 +0000 (18:01 +0200)]
Opt: OPT_MULTIPLE implemented, no tests yet but seems working

11 years agoOpt: Tests and some minor fixes
Jan 'Moskyt' Matejka [Mon, 13 May 2013 13:58:53 +0000 (15:58 +0200)]
Opt: Tests and some minor fixes

11 years agoOpt: looks well, going to write some tests
Jan 'Moskyt' Matejka [Mon, 13 May 2013 11:07:49 +0000 (13:07 +0200)]
Opt: looks well, going to write some tests

11 years agoOpt: strdup -> xstrdup
Jan 'Moskyt' Matejka [Mon, 13 May 2013 08:00:10 +0000 (10:00 +0200)]
Opt: strdup -> xstrdup

11 years agoOpt: fixed nothing-supplied detection
Jan 'Moskyt' Matejka [Mon, 13 May 2013 07:58:59 +0000 (09:58 +0200)]
Opt: fixed nothing-supplied detection

11 years agoOpt: fixed checking --no args and OPT_SINGLE
Jan 'Moskyt' Matejka [Mon, 6 May 2013 14:06:57 +0000 (16:06 +0200)]
Opt: fixed checking --no args and OPT_SINGLE

11 years agoOpt: help is now displaying correctly
Jan 'Moskyt' Matejka [Mon, 6 May 2013 10:14:59 +0000 (12:14 +0200)]
Opt: help is now displaying correctly

11 years agoOpt: compilable, segfaulting.
Jan 'Moskyt' Matejka [Mon, 29 Apr 2013 15:30:40 +0000 (17:30 +0200)]
Opt: compilable, segfaulting.

11 years agoOpt: Fixed a couple of randomly found typos
Martin Mares [Sun, 28 Apr 2013 21:42:35 +0000 (23:42 +0200)]
Opt: Fixed a couple of randomly found typos

11 years agoOpt: not yet compiling, written part of the parser
Jan 'Moskyt' Matejka [Thu, 25 Apr 2013 15:06:32 +0000 (17:06 +0200)]
Opt: not yet compiling, written part of the parser

11 years agoOpt: docs fixes
Jan 'Moskyt' Matejka [Mon, 22 Apr 2013 15:08:38 +0000 (17:08 +0200)]
Opt: docs fixes

11 years agoOpt: interface ready for review
Jan 'Moskyt' Matejka [Mon, 22 Apr 2013 10:57:11 +0000 (12:57 +0200)]
Opt: interface ready for review

11 years agoOpt: defined user interface
Jan 'Moskyt' Matejka [Thu, 31 Jan 2013 09:14:49 +0000 (10:14 +0100)]
Opt: defined user interface

11 years agoVarints: Added documentation.
Tomas Valla [Thu, 28 Mar 2013 13:12:23 +0000 (14:12 +0100)]
Varints: Added documentation.

11 years agoNew module: variable-length integer encoding
Martin Mares [Mon, 25 Mar 2013 15:43:15 +0000 (16:43 +0100)]
New module: variable-length integer encoding

Written by Tomas Valla.

11 years agoucw/unicode.h: Typo fix
Tomas Valla [Sun, 17 Mar 2013 22:00:37 +0000 (23:00 +0100)]
ucw/unicode.h: Typo fix

11 years agoBitarray: Added bit_array_xrealloc()
Martin Mares [Tue, 19 Mar 2013 16:11:44 +0000 (17:11 +0100)]
Bitarray: Added bit_array_xrealloc()

As suggested by Martina Balintova and inspired by her code.

Also renamed bit-count.c to bit-array.c.

11 years agoDoc: Fixed a typo
Martin Mares [Tue, 26 Feb 2013 12:37:59 +0000 (13:37 +0100)]
Doc: Fixed a typo

Thanks to Martina Balintova who spotted it.

11 years agomainloop.h: Typo fix.
Tomas Valla [Thu, 27 Dec 2012 14:45:25 +0000 (15:45 +0100)]
mainloop.h: Typo fix.

11 years agoUCW::CGI: Documented the changes
Martin Mares [Wed, 26 Dec 2012 19:22:35 +0000 (20:22 +0100)]
UCW::CGI: Documented the changes

11 years agoUCW::CGI error handling split off to separate module UCW::CGI::ErrorHandler
Martin Mares [Wed, 26 Dec 2012 19:13:13 +0000 (20:13 +0100)]
UCW::CGI error handling split off to separate module UCW::CGI::ErrorHandler

I was really fed up with replaced error handling in indirectly related
pieces of code (like modules, which use UCW::CGI, because they might be
called in a context of a CGI script under some circumstances).

Let the people who want custom error handling ask for it directly.

11 years agoBitarray: Counting of bits and other fixes
Pavel Charvat [Sat, 17 Nov 2012 17:40:13 +0000 (18:40 +0100)]
Bitarray: Counting of bits and other fixes

  o  Added bit_array_count_bits().
  o  Padding after the last significant bit is guaranteed to be 0.
  o  BIT_ARRAY_FISH_BITS_... is not destructive any longer.

11 years agoBitops: Implement bit_count()
Pavel Charvat [Sat, 17 Nov 2012 17:38:27 +0000 (18:38 +0100)]
Bitops: Implement bit_count()

11 years agogary: Allow GARY_RESIZE to be used for immediate array indexing
Martin Mares [Fri, 2 Nov 2012 21:36:42 +0000 (22:36 +0100)]
gary: Allow GARY_RESIZE to be used for immediate array indexing

11 years agoMainloop: Fixed position tracking in timer heaps
Martin Mares [Tue, 30 Oct 2012 20:39:43 +0000 (21:39 +0100)]
Mainloop: Fixed position tracking in timer heaps

11 years agoHeap: Documented position tracking
Martin Mares [Tue, 30 Oct 2012 20:38:53 +0000 (21:38 +0100)]
Heap: Documented position tracking

11 years agoSignames: Run tests automatically
Martin Mares [Tue, 30 Oct 2012 20:28:47 +0000 (21:28 +0100)]
Signames: Run tests automatically

11 years agoMD5: The rest of the test suite
Martin Mares [Tue, 30 Oct 2012 20:27:45 +0000 (21:27 +0100)]
MD5: The rest of the test suite

11 years agoMD5: Test suite
Martin Mares [Tue, 30 Oct 2012 20:27:25 +0000 (21:27 +0100)]
MD5: Test suite

11 years agoMD5: Removed a potential pointer aliasing problem
Martin Mares [Tue, 30 Oct 2012 20:26:46 +0000 (21:26 +0100)]
MD5: Removed a potential pointer aliasing problem

Discovered from a warning by GCC 4.7.

11 years agoDebug: Compile with CONFIG_IMAGES_{DUP,SIM}
Martin Mares [Tue, 30 Oct 2012 20:20:31 +0000 (21:20 +0100)]
Debug: Compile with CONFIG_IMAGES_{DUP,SIM}

11 years agoImages: Heap use fixup
Martin Mares [Tue, 30 Oct 2012 20:20:21 +0000 (21:20 +0100)]
Images: Heap use fixup

11 years agoHeap: Revert changes to HEAP_DELETE, which broke position tracking
Martin Mares [Tue, 30 Oct 2012 20:13:39 +0000 (21:13 +0100)]
Heap: Revert changes to HEAP_DELETE, which broke position tracking

11 years agoDo not forget to export eltpool.h to public API
Martin Mares [Sun, 28 Oct 2012 19:03:39 +0000 (20:03 +0100)]
Do not forget to export eltpool.h to public API

11 years agoMainloop: Fixed +1 error in heap usage.
Tomas Valla [Thu, 25 Oct 2012 13:47:30 +0000 (15:47 +0200)]
Mainloop: Fixed +1 error in heap usage.

11 years agoHeap: Adjust callers
Martin Mares [Sun, 21 Oct 2012 15:11:58 +0000 (17:11 +0200)]
Heap: Adjust callers

11 years agoHeap: Interface cleanup
Martin Mares [Sun, 21 Oct 2012 15:10:20 +0000 (17:10 +0200)]
Heap: Interface cleanup

The previous interfaces was mixing macros, which really perform the
operation, with those where the caller performs the operation and the
macro fixes the heap. This has for example lead to non-systematic side
effects on the `num' variable.

The change is backwards incompatible, all old code should hopefully
fail to compile now.

11 years agoHashtable: Fixed some documentation errors
Martin Mares [Sun, 21 Oct 2012 14:42:03 +0000 (16:42 +0200)]
Hashtable: Fixed some documentation errors

However, many still remain -- the docs are full of stray links

11 years agoUCW::CGI: Use "//=" to simplify code
Martin Mares [Tue, 16 Oct 2012 13:20:10 +0000 (15:20 +0200)]
UCW::CGI: Use "//=" to simplify code

This patch and the previous one have been suggested by Tomas Malecek.

11 years agoUCW::CGI: Announce supported methods correctly
Martin Mares [Tue, 16 Oct 2012 13:19:27 +0000 (15:19 +0200)]
UCW::CGI: Announce supported methods correctly

11 years agoHashtable: Added an option for lookup to detect newly created items
Tomas Valla [Wed, 5 Sep 2012 14:52:11 +0000 (16:52 +0200)]
Hashtable: Added an option for lookup to detect newly created items

11 years agoLizard: Fixed a typo ("occured" -> "occurred')
Martin Mares [Fri, 12 Oct 2012 17:53:25 +0000 (19:53 +0200)]
Lizard: Fixed a typo ("occured" -> "occurred')

11 years agoslists: The behaviour of slist_remove_head now mimics clist_remove_head
Tomas Valla [Wed, 5 Sep 2012 09:15:15 +0000 (11:15 +0200)]
slists: The behaviour of slist_remove_head now mimics clist_remove_head

11 years agoFastbufs: Fixed btell() in writeable fbbuf.
Pavel Charvat [Mon, 30 Jul 2012 13:47:55 +0000 (15:47 +0200)]
Fastbufs: Fixed btell() in writeable fbbuf.

11 years agoDaemon: added missing includes
Jan 'Moskyt' Matejka [Wed, 25 Jul 2012 12:29:02 +0000 (14:29 +0200)]
Daemon: added missing includes

11 years agoDoc: Mention fb_multi in the release notes
Martin Mares [Tue, 24 Jul 2012 18:23:48 +0000 (20:23 +0200)]
Doc: Mention fb_multi in the release notes

11 years agoFastbuf: fbmulti: fixes from MJ
Jan 'Moskyt' Matejka [Mon, 23 Jul 2012 09:40:51 +0000 (11:40 +0200)]
Fastbuf: fbmulti: fixes from MJ

11 years agoFastbuf: fbmulti simplification
Jan 'Moskyt' Matejka [Thu, 19 Jul 2012 13:23:02 +0000 (15:23 +0200)]
Fastbuf: fbmulti simplification

11 years agoFastbuf: fbmulti: static clist + FBMULTI() killing
Jan 'Moskyt' Matejka [Thu, 19 Jul 2012 08:03:23 +0000 (10:03 +0200)]
Fastbuf: fbmulti: static clist + FBMULTI() killing

11 years agoFastbuf: fbmulti: O(N^2) multiappend fixed
Jan 'Moskyt' Matejka [Thu, 19 Jul 2012 07:59:52 +0000 (09:59 +0200)]
Fastbuf: fbmulti: O(N^2) multiappend fixed

11 years agoFastbuf: fbmulti: allow_close and flatten removed
Jan 'Moskyt' Matejka [Thu, 19 Jul 2012 07:39:31 +0000 (09:39 +0200)]
Fastbuf: fbmulti: allow_close and flatten removed

11 years agoFastbuf: fbmulti now uses transparently the underlying buffer
Jan 'Moskyt' Matejka [Mon, 16 Jul 2012 15:25:30 +0000 (17:25 +0200)]
Fastbuf: fbmulti now uses transparently the underlying buffer

11 years agoFastbuf: fbmulti_remove
Jan 'Moskyt' Matejka [Mon, 16 Jul 2012 09:27:28 +0000 (11:27 +0200)]
Fastbuf: fbmulti_remove

11 years agoFastbuf: fbmulti: *'s and whitespace
Jan 'Moskyt' Matejka [Wed, 11 Jul 2012 14:46:44 +0000 (16:46 +0200)]
Fastbuf: fbmulti: *'s and whitespace

11 years agoFastbuf: whitespace in fbmulti
Jan 'Moskyt' Matejka [Wed, 11 Jul 2012 14:30:35 +0000 (16:30 +0200)]
Fastbuf: whitespace in fbmulti

11 years agoFastbuf: style fixes in fbmulti
Jan 'Moskyt' Matejka [Wed, 11 Jul 2012 14:10:05 +0000 (16:10 +0200)]
Fastbuf: style fixes in fbmulti

11 years agoFastbuf: fbmulti_flatten + doc
Jan 'Moskyt' Matejka [Wed, 11 Jul 2012 13:01:37 +0000 (15:01 +0200)]
Fastbuf: fbmulti_flatten + doc

11 years agoFastbuf: fbmulti_close
Jan 'Moskyt' Matejka [Mon, 9 Jul 2012 15:15:30 +0000 (17:15 +0200)]
Fastbuf: fbmulti_close

11 years agoFastbuf: fbmulti nested test and apropriate fixes
Jan 'Moskyt' Matejka [Mon, 9 Jul 2012 14:49:21 +0000 (16:49 +0200)]
Fastbuf: fbmulti nested test and apropriate fixes

11 years agoFastbuf: fbmulti allows reading of one subbuf more times
Jan 'Moskyt' Matejka [Mon, 9 Jul 2012 13:42:30 +0000 (15:42 +0200)]
Fastbuf: fbmulti allows reading of one subbuf more times

11 years agoFastbuf: fbmulti backend
Jan 'Moskyt' Matejka [Wed, 4 Jul 2012 14:17:59 +0000 (16:17 +0200)]
Fastbuf: fbmulti backend

11 years agoFastbuf: fbbuf_seek bugfix
Jan 'Moskyt' Matejka [Mon, 9 Jul 2012 13:10:12 +0000 (15:10 +0200)]
Fastbuf: fbbuf_seek bugfix

11 years agoConfig: Allow relative top-level sections
Martin Mares [Wed, 18 Jul 2012 21:32:10 +0000 (23:32 +0200)]
Config: Allow relative top-level sections

11 years agosetproctitle: Copy all arguments in setproctitle_init()
Martin Mares [Wed, 18 Jul 2012 16:46:09 +0000 (18:46 +0200)]
setproctitle: Copy all arguments in setproctitle_init()

Otherwise, values of command-line arguments, which are not explicitly
copied, can be corrupted by setproctitle().

11 years agoDaemon: Added DAEMON_FLAG_SIMULATE
Martin Mares [Wed, 18 Jul 2012 12:23:52 +0000 (14:23 +0200)]
Daemon: Added DAEMON_FLAG_SIMULATE

11 years agoConfigure: Turned off -fgnu89-inline
Martin Mares [Wed, 18 Jul 2012 12:15:47 +0000 (14:15 +0200)]
Configure: Turned off -fgnu89-inline

No current code requires it any longer.

11 years agoConfigure: Turned off -Winline
Martin Mares [Wed, 18 Jul 2012 12:15:26 +0000 (14:15 +0200)]
Configure: Turned off -Winline

Recent versions of GCC perform inlining reasonably well, no need to warn.

11 years agoFastbuf: Removed useless inline
Martin Mares [Wed, 18 Jul 2012 12:14:35 +0000 (14:14 +0200)]
Fastbuf: Removed useless inline

11 years agoDaemon: Added DAEMON_STATUS_STALE
Martin Mares [Wed, 18 Jul 2012 11:41:20 +0000 (13:41 +0200)]
Daemon: Added DAEMON_STATUS_STALE

11 years agoConfig: daemon-helper is not compiled by default any longer
Martin Mares [Wed, 18 Jul 2012 10:56:24 +0000 (12:56 +0200)]
Config: daemon-helper is not compiled by default any longer

11 years agoDoc: Mentioned daemon and signal helpers in release notes
Martin Mares [Wed, 18 Jul 2012 10:20:53 +0000 (12:20 +0200)]
Doc: Mentioned daemon and signal helpers in release notes