]> mj.ucw.cz Git - libucw.git/log
libucw.git
15 years agoLibucw: wildmatch uses char * instead of byte * for strings.
Michal Vaner [Mon, 14 Jul 2008 11:48:06 +0000 (13:48 +0200)]
Libucw: wildmatch uses char * instead of byte * for strings.

Needs to be typecasted to unsigned char when indexing arrays.
Expects chars to be 8-bit.

15 years agoLibucw: Test for redblack.h
Michal Vaner [Sun, 13 Jul 2008 11:13:27 +0000 (13:13 +0200)]
Libucw: Test for redblack.h

Use existing test.

15 years agoLibucw: Test for binheap.h
Michal Vaner [Sun, 13 Jul 2008 08:58:42 +0000 (10:58 +0200)]
Libucw: Test for binheap.h

Use existing test, just run it with other tests.

15 years agoLibucw: Test for arraysort.h
Michal Vaner [Sun, 13 Jul 2008 07:41:22 +0000 (09:41 +0200)]
Libucw: Test for arraysort.h

Modified existing benchmark to return 1 as return code on failure.
Added a .t file to run from `make tests'.

15 years agoMerge branch 'master' into dev-lib
Martin Mares [Mon, 14 Jul 2008 14:39:04 +0000 (16:39 +0200)]
Merge branch 'master' into dev-lib

Merged the dev-admin changes through mainline. Conflicts solved manually:

filter/filter.h
filter/tries.c
lib/Makefile

15 years agoMerge branch 'dev-admin'
Martin Mares [Mon, 14 Jul 2008 14:32:06 +0000 (16:32 +0200)]
Merge branch 'dev-admin'

16 years agoEnable automatic tests for byte-bases tries.
Pavel Charvat [Tue, 8 Jul 2008 06:27:45 +0000 (08:27 +0200)]
Enable automatic tests for byte-bases tries.

16 years agoImplemented byte-bases trie.
Pavel Charvat [Tue, 8 Jul 2008 06:25:58 +0000 (08:25 +0200)]
Implemented byte-bases trie.

16 years agoImplemented {mp,ep}_total_size().
Pavel Charvat [Tue, 8 Jul 2008 06:23:16 +0000 (08:23 +0200)]
Implemented {mp,ep}_total_size().

16 years agoHidden one possible compilation warning in KMP.
Pavel Charvat [Tue, 8 Jul 2008 06:11:28 +0000 (08:11 +0200)]
Hidden one possible compilation warning in KMP.

16 years agoMerge branch 'master' into dev-admin
Pavel Charvat [Mon, 7 Jul 2008 20:32:10 +0000 (22:32 +0200)]
Merge branch 'master' into dev-admin

16 years agoLibucw: Spelling.
Martin Mares [Thu, 3 Jul 2008 19:37:51 +0000 (21:37 +0200)]
Libucw: Spelling.

16 years agoLibucw: Added an implementation of HMAC-SHA1.
Martin Mares [Tue, 1 Jul 2008 16:35:11 +0000 (18:35 +0200)]
Libucw: Added an implementation of HMAC-SHA1.

16 years agoAdapt to CF_LOOKUP constification.
Martin Mares [Tue, 1 Jul 2008 10:08:41 +0000 (12:08 +0200)]
Adapt to CF_LOOKUP constification.

16 years agoUCW: Constified the lookup table for CF_LOOKUP and CF_BITMAP_LOOKUP.
Martin Mares [Tue, 1 Jul 2008 10:08:29 +0000 (12:08 +0200)]
UCW: Constified the lookup table for CF_LOOKUP and CF_BITMAP_LOOKUP.

16 years agoLibucw: Added sha1.t to the automatic tests.
Martin Mares [Tue, 1 Jul 2008 09:44:08 +0000 (11:44 +0200)]
Libucw: Added sha1.t to the automatic tests.

16 years agoLibucw: Added a SHA-1 module.
Martin Mares [Mon, 30 Jun 2008 22:31:18 +0000 (00:31 +0200)]
Libucw: Added a SHA-1 module.

16 years agoConfigure: Better extraction of settings in PkgConfig() and TrivConfig()
Martin Mares [Fri, 27 Jun 2008 19:11:07 +0000 (21:11 +0200)]
Configure: Better extraction of settings in PkgConfig() and TrivConfig()

TrivConfig() now allows to specify a list of options to ask for.
The naming of the configuration variables has been changed from
CFLAGS_PKG to PKG_CFLAGS to bring everything related to the PKG
together.

16 years agoConfigure: better guard against undef's returned by backticks.
Martin Mares [Thu, 26 Jun 2008 20:44:45 +0000 (22:44 +0200)]
Configure: better guard against undef's returned by backticks.

16 years agoTests for the string module.
Martin Mares [Tue, 1 Jul 2008 09:06:03 +0000 (11:06 +0200)]
Tests for the string module.

16 years agoThe libucw Makefile no longer installs cf/library automatically.
Martin Mares [Wed, 25 Jun 2008 19:52:26 +0000 (21:52 +0200)]
The libucw Makefile no longer installs cf/library automatically.

16 years agoFixed a bug in str_unesc() and added a testsuite.
Martin Mares [Wed, 25 Jun 2008 19:50:08 +0000 (21:50 +0200)]
Fixed a bug in str_unesc() and added a testsuite.

Prior to this fix, the first character after an octal escape
sequence was copied literally.

16 years agoReplaced the md5hex module by the hexdumper.
Martin Mares [Wed, 25 Jun 2008 19:34:35 +0000 (21:34 +0200)]
Replaced the md5hex module by the hexdumper.

It turned out to necessary to teach the hexdumper to produce
uppercase output, so I have changed the separator to general
flags.

16 years agostr_hexdump() now uses the new hexdumper.
Martin Mares [Wed, 25 Jun 2008 19:18:24 +0000 (21:18 +0200)]
str_hexdump() now uses the new hexdumper.

16 years agoHexdumping functions can also use separators.
Martin Mares [Wed, 25 Jun 2008 19:17:08 +0000 (21:17 +0200)]
Hexdumping functions can also use separators.

16 years agoAdded a simple module for making and parsing hexdumps.
Martin Mares [Wed, 25 Jun 2008 19:11:17 +0000 (21:11 +0200)]
Added a simple module for making and parsing hexdumps.

16 years agoRenamed str-test to hashfunc-test, because that's what it is.
Martin Mares [Wed, 25 Jun 2008 19:06:46 +0000 (21:06 +0200)]
Renamed str-test to hashfunc-test, because that's what it is.

16 years agoMove chartype functions to lib/char-*.c.
Martin Mares [Wed, 25 Jun 2008 18:54:07 +0000 (20:54 +0200)]
Move chartype functions to lib/char-*.c.

The names str_*.c were very misleading.

16 years agoMoved matching and splitting functions to lib/str-*.c.
Martin Mares [Wed, 25 Jun 2008 18:42:36 +0000 (20:42 +0200)]
Moved matching and splitting functions to lib/str-*.c.

16 years agoMore moves of string functions out of lib/lib.h.
Martin Mares [Wed, 25 Jun 2008 18:35:24 +0000 (20:35 +0200)]
More moves of string functions out of lib/lib.h.

match_pattern* has been renamed to str_match_pattern*,
(word|sep)split has been renamed to str_(word|sep)split,
all of them have been moved to lib/string.h.

md5_to_hex() and hex_to_md5() have been moved to lib/string.h,
but MD5_SIZE and MD5_HEX_SIZE to lib/md5.h. The conversion
functions will be replaced by a generic hexdumper soon.

16 years agoMoved regex functions to lib/regex.h.
Martin Mares [Wed, 25 Jun 2008 17:49:01 +0000 (19:49 +0200)]
Moved regex functions to lib/regex.h.

16 years agoIntroduced new header "lib/string.h".
Martin Mares [Wed, 25 Jun 2008 17:36:50 +0000 (19:36 +0200)]
Introduced new header "lib/string.h".

Started moving string functions from lib.h there. The first ones
are those from string.c.

Also split off the unescaping functions to str-esc.c.

16 years agoBuild system: Substitute installation paths in .pc files if needed.
Martin Mares [Wed, 25 Jun 2008 15:08:27 +0000 (17:08 +0200)]
Build system: Substitute installation paths in .pc files if needed.

16 years agoRevert "Configure: Set installation paths based on PREFIX."
Martin Mares [Wed, 25 Jun 2008 15:01:00 +0000 (17:01 +0200)]
Revert "Configure: Set installation paths based on PREFIX."

This reverts commit 6c6d5d754582421419bc9e8d5c36036b7cfc1143,
which should have belonged to the dev-lib branch instead.

16 years agoConfigure: Set installation paths based on PREFIX.
Martin Mares [Wed, 25 Jun 2008 15:00:10 +0000 (17:00 +0200)]
Configure: Set installation paths based on PREFIX.

16 years agoConfigure: Set installation paths based on PREFIX.
Martin Mares [Wed, 25 Jun 2008 14:55:10 +0000 (16:55 +0200)]
Configure: Set installation paths based on PREFIX.

16 years agoAllow the name of the config file directory to be overridden.
Martin Mares [Wed, 25 Jun 2008 14:04:28 +0000 (16:04 +0200)]
Allow the name of the config file directory to be overridden.

16 years agoMakefiles: implement a symlink-alias macro.
Martin Mares [Wed, 25 Jun 2008 13:58:32 +0000 (15:58 +0200)]
Makefiles: implement a symlink-alias macro.

16 years agoMakefiles: Allow a prefix and suffix of installed libraries to be specified.
Martin Mares [Wed, 25 Jun 2008 13:58:17 +0000 (15:58 +0200)]
Makefiles: Allow a prefix and suffix of installed libraries to be specified.

16 years agoConfigure: Partial support for CONFIG_LOCAL and PREFIX.
Martin Mares [Wed, 25 Jun 2008 13:57:32 +0000 (15:57 +0200)]
Configure: Partial support for CONFIG_LOCAL and PREFIX.

The configure script sets up INSTALL_PREFIX properly, but it is not
used anywhere yet.

Choose soname embedded in the shared libraries differently for a local
and global installation.

16 years agoConfigure: Remember PKG_CONFIG_PATH used for building.
Martin Mares [Wed, 25 Jun 2008 14:09:09 +0000 (16:09 +0200)]
Configure: Remember PKG_CONFIG_PATH used for building.

16 years agoBuild system hack: set PKG_CONFIG_PATH in shell commands.
Martin Mares [Wed, 25 Jun 2008 09:06:02 +0000 (11:06 +0200)]
Build system hack: set PKG_CONFIG_PATH in shell commands.

Unfortunately, even if we `export PKG_CONFIG_PATH' explicitly in the makefiles,
make still ignores it for $(shell).

16 years agoDefault switches for gcc-4.3.
Martin Mares [Fri, 20 Jun 2008 11:24:33 +0000 (13:24 +0200)]
Default switches for gcc-4.3.

I currently get lots of warnings about functions not inline, I will
fix them later.

16 years agofixed SHERLOCK_VERSION
Pavel Charvat [Thu, 19 Jun 2008 08:44:10 +0000 (10:44 +0200)]
fixed SHERLOCK_VERSION

16 years agoRemoved the lib/ff-utf8.h compatibility stub.
Martin Mares [Wed, 18 Jun 2008 22:01:16 +0000 (00:01 +0200)]
Removed the lib/ff-utf8.h compatibility stub.

Closes Bug #6420.

16 years agoThe mainline heads to v3.13.
Martin Mares [Wed, 18 Jun 2008 21:17:02 +0000 (23:17 +0200)]
The mainline heads to v3.13.

16 years agoAdded the local copy of the regex library back.
Martin Mares [Wed, 18 Jun 2008 21:12:38 +0000 (23:12 +0200)]
Added the local copy of the regex library back.

This reverts commit 1ffba6c2db2074745a50af18d4d89292309cec0c.

I do not want to remove it in a minor release. It was intended to wait
in mainline for v3.13, but we did not plan v3.12.4 at that time.

16 years agoAdded a new fastbuf backend for sockets with timeouts.
Martin Mares [Tue, 17 Jun 2008 20:45:51 +0000 (22:45 +0200)]
Added a new fastbuf backend for sockets with timeouts.

16 years agoWord length: Set the parameters in library examples.
Martin Mares [Mon, 16 Jun 2008 16:43:31 +0000 (18:43 +0200)]
Word length: Set the parameters in library examples.

16 years agoThe Configure mechanism is now able to find packages via pkg-config
Martin Mares [Sat, 7 Jun 2008 21:08:39 +0000 (23:08 +0200)]
The Configure mechanism is now able to find packages via pkg-config
and similar scripts.

16 years agoMerge with git+ssh://git.ucw.cz/projects/sherlock/GIT/sherlock.git#v3.12.3
Pavel Charvat [Fri, 6 Jun 2008 08:28:20 +0000 (10:28 +0200)]
Merge with git+ssh://git.ucw.cz/projects/sherlock/GIT/sherlock.git#v3.12.3

16 years agoCleaned up interface of the logger.
Martin Mares [Wed, 4 Jun 2008 17:23:42 +0000 (19:23 +0200)]
Cleaned up interface of the logger.

Also uninlined log_switch_{en,dis}able().

16 years agoReplaced safe_msg() with a flag L_SIGHANDLER to msg().
Martin Mares [Wed, 4 Jun 2008 17:00:46 +0000 (19:00 +0200)]
Replaced safe_msg() with a flag L_SIGHANDLER to msg().

Updated all callers.

16 years agoRemoved CONFIG_OWN_REGEX and the copy of regex library in lib/regex.
Martin Mares [Wed, 4 Jun 2008 15:30:26 +0000 (17:30 +0200)]
Removed CONFIG_OWN_REGEX and the copy of regex library in lib/regex.

The implementations of libc with bad regex libraries are almost extinct now.
If it ever turns out that it is needed on other systems, it suffices
to revert this commit.

16 years ago3.12.3-dev -> 3.12.3
Pavel Charvat [Mon, 2 Jun 2008 08:33:27 +0000 (10:33 +0200)]
3.12.3-dev -> 3.12.3

16 years agov3.12.3-dev -> v3.12.4-dev
Pavel Charvat [Mon, 2 Jun 2008 07:39:55 +0000 (09:39 +0200)]
v3.12.3-dev -> v3.12.4-dev

16 years agoAllow `configure OPTIONS' without specifying configuration name.
Martin Mares [Sun, 25 May 2008 17:41:56 +0000 (19:41 +0200)]
Allow `configure OPTIONS' without specifying configuration name.

This involves a little bit of dwimmery -- we assume that the options are
all uppercase and the configuration files do not, but that's hopefully
a fair game.

16 years agoAdded a rule for installing config files from sub-directories.
Martin Mares [Sun, 25 May 2008 16:38:00 +0000 (18:38 +0200)]
Added a rule for installing config files from sub-directories.

This will be useful for out-of-tree users of our makefile system.

16 years agoMoved the `custom cf' rule from Makebottom to the top-level Makefile.
Martin Mares [Sun, 25 May 2008 16:36:10 +0000 (18:36 +0200)]
Moved the `custom cf' rule from Makebottom to the top-level Makefile.

(It is too intimately tied to Sherlock.)

16 years agoMerge with git+ssh://git.ucw.cz/projects/sherlock/GIT/sherlock.git
Pavel Charvat [Mon, 19 May 2008 12:00:45 +0000 (14:00 +0200)]
Merge with git+ssh://git.ucw.cz/projects/sherlock/GIT/sherlock.git

16 years agoFixed test cases for the xml parser.
Pavel Charvat [Mon, 19 May 2008 11:43:43 +0000 (13:43 +0200)]
Fixed test cases for the xml parser.

16 years agoMerge with git+ssh://git.ucw.cz/projects/sherlock/GIT/sherlock.git
Pavel Charvat [Mon, 19 May 2008 11:35:32 +0000 (13:35 +0200)]
Merge with git+ssh://git.ucw.cz/projects/sherlock/GIT/sherlock.git

16 years agoAppended '-dev' to the version string of the dev branch.
Pavel Charvat [Thu, 15 May 2008 08:59:41 +0000 (10:59 +0200)]
Appended '-dev' to the version string of the dev branch.

16 years agoQuick fix of possible daedlock when logging from Shepherd's singal handlers.
Pavel Charvat [Mon, 28 Apr 2008 12:37:59 +0000 (14:37 +0200)]
Quick fix of possible daedlock when logging from Shepherd's singal handlers.

16 years agoXML: Small bugfix in xml_merge_chars.
Pavel Charvat [Mon, 28 Apr 2008 12:18:40 +0000 (14:18 +0200)]
XML: Small bugfix in xml_merge_chars.

16 years agoXML: Validate required attributes. Added an option to allocate
Pavel Charvat [Mon, 28 Apr 2008 11:04:28 +0000 (13:04 +0200)]
XML: Validate required attributes. Added an option to allocate
missing attributes with default values.

16 years agoXML: Implemented a merger of element's contents.
Pavel Charvat [Fri, 25 Apr 2008 08:33:13 +0000 (10:33 +0200)]
XML: Implemented a merger of element's contents.

16 years agoXML: Partial support for external DTD subset
Pavel Charvat [Thu, 24 Apr 2008 11:18:09 +0000 (13:18 +0200)]
XML: Partial support for external DTD subset

16 years agoXML: A primitive DTD validation of elements... it is slow and does not
Pavel Charvat [Thu, 24 Apr 2008 08:41:03 +0000 (10:41 +0200)]
XML: A primitive DTD validation of elements... it is slow and does not
check valid numbers/order of subtags.

16 years agoXML: implemented user-friendly function to deal with default attribute values
Pavel Charvat [Thu, 24 Apr 2008 07:32:58 +0000 (09:32 +0200)]
XML: implemented user-friendly function to deal with default attribute values

16 years agoXML: Implemented xml_skip_element().
Pavel Charvat [Thu, 24 Apr 2008 07:17:15 +0000 (09:17 +0200)]
XML: Implemented xml_skip_element().

16 years agoXML: Implemented detection and validation of ignorable whitespace
Pavel Charvat [Thu, 24 Apr 2008 07:07:20 +0000 (09:07 +0200)]
XML: Implemented detection and validation of ignorable whitespace

16 years agoXML: Bugfix in processing of multi-byte newlines.
Pavel Charvat [Wed, 23 Apr 2008 13:40:06 +0000 (15:40 +0200)]
XML: Bugfix in processing of multi-byte newlines.

16 years agoXML: Fixed reporting of characters via the PULL interface.
Pavel Charvat [Tue, 22 Apr 2008 12:06:08 +0000 (14:06 +0200)]
XML: Fixed reporting of characters via the PULL interface.

16 years agoKMP: removed possible compilation warning
Pavel Charvat [Tue, 11 Mar 2008 09:47:56 +0000 (10:47 +0100)]
KMP: removed possible compilation warning

16 years agosmall bugfixes in tries
Pavel Charvat [Wed, 5 Mar 2008 13:50:34 +0000 (14:50 +0100)]
small bugfixes in tries

16 years agoUCW tries:
Pavel Charvat [Sun, 2 Mar 2008 21:38:24 +0000 (22:38 +0100)]
UCW tries:
-- simplified hash tables
-- replaced walk* functions by inlined macros

16 years agoUCW tries: applied MJ's remarks
Pavel Charvat [Fri, 29 Feb 2008 18:22:46 +0000 (19:22 +0100)]
UCW tries: applied MJ's remarks

16 years agoUCW: implemented simple memory statistics for tries
Pavel Charvat [Fri, 29 Feb 2008 18:07:19 +0000 (19:07 +0100)]
UCW: implemented simple memory statistics for tries

16 years agoUCW: implemented ep_total_size (similar to mp_total_size)
Pavel Charvat [Fri, 29 Feb 2008 18:05:51 +0000 (19:05 +0100)]
UCW: implemented ep_total_size (similar to mp_total_size)

16 years agoadmin: the can be more than one site for a single domain
Pavel Charvat [Fri, 29 Feb 2008 17:49:58 +0000 (18:49 +0100)]
admin: the can be more than one site for a single domain

16 years agoUCWLib:
Pavel Charvat [Fri, 29 Feb 2008 16:43:55 +0000 (17:43 +0100)]
UCWLib:
Implemented tries... it seems to work, but I will probably reread
and simplify some parts of the code (it became quite complex because of
several fixed special cases).

16 years agoUCW: implemented shortcut for computing size of a mempool (mp_total_size)
Pavel Charvat [Tue, 19 Feb 2008 11:15:50 +0000 (12:15 +0100)]
UCW: implemented shortcut for computing size of a mempool (mp_total_size)

16 years agoSmall fixes and improvements in bin/installer.
Pavel Charvat [Fri, 1 Feb 2008 10:19:20 +0000 (11:19 +0100)]
Small fixes and improvements in bin/installer.

16 years agoSupport for 'make CONFIRM=y install'
Pavel Charvat [Thu, 31 Jan 2008 20:48:40 +0000 (21:48 +0100)]
Support for 'make CONFIRM=y install'

16 years agoIndexer:
Pavel Charvat [Mon, 28 Jan 2008 20:36:24 +0000 (21:36 +0100)]
Indexer:
Rewritten the support for multiple sources...
Indexer.Source is now a link list.

16 years agoRemoved forgotten useless macro.
Pavel Charvat [Thu, 24 Jan 2008 20:38:52 +0000 (21:38 +0100)]
Removed forgotten useless macro.

16 years agoFixed a compilation warning in libcharset.
Pavel Charvat [Thu, 24 Jan 2008 20:26:54 +0000 (21:26 +0100)]
Fixed a compilation warning in libcharset.

16 years agoIndexer: Implemented support for multiple sources.
Pavel Charvat [Wed, 23 Jan 2008 16:13:48 +0000 (17:13 +0100)]
Indexer: Implemented support for multiple sources.

16 years agoPrepared next Sherlock's version.
Pavel Charvat [Tue, 22 Jan 2008 09:20:34 +0000 (10:20 +0100)]
Prepared next Sherlock's version.

16 years agoUpdated the Sherlock's version to 3.12.2.
Pavel Charvat [Tue, 22 Jan 2008 09:16:01 +0000 (10:16 +0100)]
Updated the Sherlock's version to 3.12.2.

16 years agobgetl() should return uns instead of u32
Pavel Charvat [Mon, 21 Jan 2008 18:30:07 +0000 (19:30 +0100)]
bgetl() should return uns instead of u32

16 years agoAll customization are compilable again.
Pavel Charvat [Mon, 21 Jan 2008 18:25:36 +0000 (19:25 +0100)]
All customization are compilable again.

16 years agoRemoved useless stamp from XML Makefile.
Pavel Charvat [Mon, 21 Jan 2008 16:06:33 +0000 (17:06 +0100)]
Removed useless stamp from XML Makefile.

16 years agoHotfix in XML Makefile. I dont know why but the previous version did not
Pavel Charvat [Mon, 21 Jan 2008 15:58:34 +0000 (16:58 +0100)]
Hotfix in XML Makefile. I dont know why but the previous version did not
work with a parallel compilation.

16 years agoFixed several bugs in UTF-16 encoding/decoding (tested on large files).
Pavel Charvat [Mon, 21 Jan 2008 14:36:49 +0000 (15:36 +0100)]
Fixed several bugs in UTF-16 encoding/decoding (tested on large files).

16 years agoff-utf8.h is back... as an alias to ff-unicode.h
Pavel Charvat [Mon, 21 Jan 2008 10:11:34 +0000 (11:11 +0100)]
ff-utf8.h is back... as an alias to ff-unicode.h

16 years agotypo again :)
Pavel Charvat [Sun, 20 Jan 2008 23:32:22 +0000 (00:32 +0100)]
typo again :)

16 years agoReverted invalid "bugfix", the previous version was correct :)
Pavel Charvat [Sun, 20 Jan 2008 23:30:52 +0000 (00:30 +0100)]
Reverted invalid "bugfix", the previous version was correct :)

16 years agoFixed a typo.
Pavel Charvat [Sun, 20 Jan 2008 23:13:32 +0000 (00:13 +0100)]
Fixed a typo.