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

16 years agoFixed a couple of typos.
Martin Mares [Sun, 20 Jan 2008 23:11:37 +0000 (00:11 +0100)]
Fixed a couple of typos.

16 years agoMake sure that in_to_x and x_to_out are NULL if they are not available.
Martin Mares [Sun, 20 Jan 2008 22:34:59 +0000 (23:34 +0100)]
Make sure that in_to_x and x_to_out are NULL if they are not available.

16 years agoXML: Fixed the help for bin/xml-text.
Pavel Charvat [Sun, 20 Jan 2008 20:20:16 +0000 (21:20 +0100)]
XML: Fixed the help for bin/xml-text.

16 years agoXML: Slighly changed parameters to the xml-test utility.
Pavel Charvat [Sun, 20 Jan 2008 19:40:06 +0000 (20:40 +0100)]
XML: Slighly changed parameters to the xml-test utility.

16 years agoXML: removed some obsolete parameters
Pavel Charvat [Sun, 20 Jan 2008 16:41:49 +0000 (17:41 +0100)]
XML: removed some obsolete parameters

16 years agoSmall changes in XML parser:
Pavel Charvat [Sun, 20 Jan 2008 11:28:39 +0000 (12:28 +0100)]
Small changes in XML parser:
-- UTF-16 should now work
-- support for parameter entities in DTD
-- improved test cases
-- renamed common.h to more intuitive internals.h

16 years ago'make tests' should not display error messages when the tmp dir is empty
Pavel Charvat [Sun, 20 Jan 2008 11:25:36 +0000 (12:25 +0100)]
'make tests' should not display error messages when the tmp dir is empty

16 years agoXML: Several fixes, slightly changed the iface.
Pavel Charvat [Thu, 17 Jan 2008 10:32:37 +0000 (11:32 +0100)]
XML: Several fixes, slightly changed the iface.

16 years agoFixed a recent bug in libcharset.
Pavel Charvat [Wed, 16 Jan 2008 14:50:13 +0000 (15:50 +0100)]
Fixed a recent bug in libcharset.

16 years agoMerge with git+ssh://git.ucw.cz/projects/sherlock/GIT/sherlock.git
Pavel Charvat [Wed, 9 Jan 2008 09:33:24 +0000 (10:33 +0100)]
Merge with git+ssh://git.ucw.cz/projects/sherlock/GIT/sherlock.git

16 years agoSlightly simplified the URL loop detector and fixed one bug.
Pavel Charvat [Tue, 8 Jan 2008 11:22:45 +0000 (12:22 +0100)]
Slightly simplified the URL loop detector and fixed one bug.

16 years agoMerge with git+ssh://git.ucw.cz/projects/sherlock/GIT/sherlock.git
Pavel Charvat [Mon, 7 Jan 2008 12:21:32 +0000 (13:21 +0100)]
Merge with git+ssh://git.ucw.cz/projects/sherlock/GIT/sherlock.git

16 years agoXML & WML: WML parser now uses the new XML library.
Pavel Charvat [Mon, 7 Jan 2008 12:21:09 +0000 (13:21 +0100)]
XML & WML: WML parser now uses the new XML library.

16 years agoBugfix in cycle detector.
Pavel Charvat [Wed, 2 Jan 2008 14:54:58 +0000 (15:54 +0100)]
Bugfix in cycle detector.

16 years agoLibrary: Improved the detector of cycled URLs (Bug #6188).
Pavel Charvat [Wed, 2 Jan 2008 14:48:16 +0000 (15:48 +0100)]
Library: Improved the detector of cycled URLs (Bug #6188).

16 years agoMerge with git+ssh://git.ucw.cz/projects/sherlock/GIT/sherlock.git#v3.12.1
Pavel Charvat [Wed, 2 Jan 2008 11:34:44 +0000 (12:34 +0100)]
Merge with git+ssh://git.ucw.cz/projects/sherlock/GIT/sherlock.git#v3.12.1

16 years agoMerge with git+ssh://git.ucw.cz/projects/sherlock/GIT/sherlock.git#v3.12
Pavel Charvat [Wed, 2 Jan 2008 10:03:55 +0000 (11:03 +0100)]
Merge with git+ssh://git.ucw.cz/projects/sherlock/GIT/sherlock.git#v3.12

16 years agoUse clist_remove_head() where possible.
Martin Mares [Sat, 29 Dec 2007 17:48:52 +0000 (18:48 +0100)]
Use clist_remove_head() where possible.

16 years agoAdded clist_remove_head() and clist_remove_tail().
Martin Mares [Sat, 29 Dec 2007 17:48:41 +0000 (18:48 +0100)]
Added clist_remove_head() and clist_remove_tail().

16 years agoIf no config file is specified, pretend loading an empty configuration
Martin Mares [Sun, 23 Dec 2007 21:08:47 +0000 (22:08 +0100)]
If no config file is specified, pretend loading an empty configuration
(i.e., create an empty transaction and commit it immediately).

Otherwise, programs with NULL cf_def_file crash when given `-S'.

16 years agoMerge with git+ssh://git.ucw.cz/projects/sherlock/GIT/sherlock.git#v3.11
Pavel Charvat [Wed, 19 Dec 2007 18:32:25 +0000 (19:32 +0100)]
Merge with git+ssh://git.ucw.cz/projects/sherlock/GIT/sherlock.git#v3.11

16 years agoMerge with git+ssh://cvs.ucw.cz/projects/sherlock/GIT/sherlock.git#v3.11
Martin Mares [Thu, 13 Dec 2007 10:26:37 +0000 (11:26 +0100)]
Merge with git+ssh://cvs.ucw.cz/projects/sherlock/GIT/sherlock.git#v3.11

16 years agoReverted the unwanted parts of the previous commit.
Martin Mares [Thu, 13 Dec 2007 10:25:54 +0000 (11:25 +0100)]
Reverted the unwanted parts of the previous commit.

16 years agoany is better than i386 :-)
Daniel Fiala [Thu, 13 Dec 2007 10:16:50 +0000 (11:16 +0100)]
any is better than i386 :-)

16 years agoXML: The parser can completely skip the internal subset (nonvalidating, of course).
Pavel Charvat [Thu, 13 Dec 2007 07:30:58 +0000 (08:30 +0100)]
XML: The parser can completely skip the internal subset (nonvalidating, of course).

16 years agoXML: Small simplification in parsing of names.
Pavel Charvat [Wed, 12 Dec 2007 22:35:54 +0000 (23:35 +0100)]
XML: Small simplification in parsing of names.

16 years agoXML: The great reorganization... several improvements in the iface,
Pavel Charvat [Wed, 12 Dec 2007 22:10:30 +0000 (23:10 +0100)]
XML: The great reorganization... several improvements in the iface,
see xml-test.c and xml.h for the details.

16 years agoUCW: Backported small bugfixes in hashtables.
Pavel Charvat [Wed, 12 Dec 2007 11:41:52 +0000 (12:41 +0100)]
UCW: Backported small bugfixes in hashtables.

16 years agoUCW: Undefine forgotten template parameters in hashtable.h.
Pavel Charvat [Wed, 12 Dec 2007 10:09:15 +0000 (11:09 +0100)]
UCW: Undefine forgotten template parameters in hashtable.h.

16 years agoXML: Split to several files, revised part of iface and
Pavel Charvat [Wed, 12 Dec 2007 00:57:04 +0000 (01:57 +0100)]
XML: Split to several files, revised part of iface and
     memory handling, added a testing utility.

16 years agoXML: Updates to the XML parser.
Pavel Charvat [Tue, 11 Dec 2007 11:17:47 +0000 (12:17 +0100)]
XML: Updates to the XML parser.

16 years agoLibCharset: Implemented UTF-16 encoding (not tested yet).
Pavel Charvat [Tue, 11 Dec 2007 11:16:42 +0000 (12:16 +0100)]
LibCharset: Implemented UTF-16 encoding (not tested yet).

16 years agoUCW: Added some ff-unicode test cases.
Pavel Charvat [Mon, 10 Dec 2007 13:40:59 +0000 (14:40 +0100)]
UCW: Added some ff-unicode test cases.

16 years agoUCW: Added UTF-16 test cases.
Pavel Charvat [Mon, 10 Dec 2007 12:50:09 +0000 (13:50 +0100)]
UCW: Added UTF-16 test cases.