Martin Mares [Sun, 2 Oct 2005 10:56:25 +0000 (10:56 +0000)]
Added a table of prime numbers. (I want to use prime numbers for hash table
sizes, but since the hash tables will be short-lived, I don't want to spend
much time by calculating primes.)
Martin Mares [Tue, 20 Sep 2005 20:29:29 +0000 (20:29 +0000)]
Merged bucket file scaling patches from rel-3-7-pre1:
Report failure if the bucket file grows too large.
Report oversized bucket files as fatal errors during bucket fsck.
Made OBUCK_SHIFT a configurable parameter. Also changed OBUCK_INCOMPLETE_MAGIC,
the original value was an evident typo (fortunately this value should never
appear in valid bucket files, so we are free to change it).
Martin Mares [Tue, 20 Sep 2005 20:11:08 +0000 (20:11 +0000)]
Minor cleanup of KMP:
o Replaced translation macro by input reading macro.
o Moved reading of tagged streams to sherlock/tagged-text.h (it contains
reading functions for completely non-related stream types anyway)
o CONTROL_CHAR renamed to KMP_CONTROL_CHAR.
o Tried to improve comments.
Martin Mares [Wed, 14 Sep 2005 09:19:17 +0000 (09:19 +0000)]
Another thing about the C standard I didn't know: passing a va_list to
a library function (e.g., snprintf()) can destroy it. Need to call va_copy() here.
Martin Mares [Sat, 9 Jul 2005 09:32:45 +0000 (09:32 +0000)]
When we encounter an URL with multiple @'s, the first one should be treated
as the username separator and the subsequent ones automatically escaped.
Therefore, `http://a@b@c.cz/' is normalized as `http://a@b%40c.cz/'.
It's probably an invalid URL (have to check all the possible loopholes
in the spec yet :) ), but it occurs in the wild anyway, so let's try
to treat them with grace.
Robert Spalek [Thu, 30 Jun 2005 17:28:33 +0000 (17:28 +0000)]
added url_enescape_friendly() for cards.c: it prepares a printable version
of the URL (with interpretted spaces and delimiters, hence it cannot be
parsed back), but it does not convert characters above 0x7f so that the
target string is a valid utf-8 string
Robert Spalek [Thu, 30 Jun 2005 15:33:23 +0000 (15:33 +0000)]
second part of fixing URL printing: escape back all characters above 0x7f
note that it may happen that some incorrect words get highlighted after we
cut the escaped URL into words by lexmapper, but this is much better than
producing incorrect UTF-8 stream
Martin Mares [Thu, 16 Jun 2005 21:03:13 +0000 (21:03 +0000)]
Added hash functions for 64-bit integers.
hash_pointer() now uses either 32-bit or 64-bit hash depending on pointer size.
hashtable.h with an atomic key does the same.
Martin Mares [Sat, 28 May 2005 17:51:48 +0000 (17:51 +0000)]
Added switches for gcc-4.0. "-fstrict-aliasing" is now added only for
gcc 3.0 since 3.3 and newer turn in by default with -O2 or higher.
Added CWARNS_OFF, which turns off even the warnings which default to on.
Expect lots of warnings with gcc 4.0.0; some of them are caused by
compiler bugs (e.g., http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21800).
Martin Mares [Tue, 12 Apr 2005 22:13:36 +0000 (22:13 +0000)]
Another Big Move -- moved most files specific for centrum.cz to centrum/cz.
Finally got rid of CONFIG_MORFEO and introduced CONFIG_CENTRUM_DEBUG instead.
Martin Mares [Tue, 12 Apr 2005 18:42:41 +0000 (18:42 +0000)]
Distinguish between CONFIG_DEBUG and CONFIG_DEBUG_TOOLS in config files,
but in the Makefiles yet, because I want to keep the old config system
for a short while.
Martin Mares [Tue, 12 Apr 2005 18:39:10 +0000 (18:39 +0000)]
More progress on the new configurator. All configurations have been converted.
The centrum/cz config decides on configuration according to host name.
Autoconf is able to auto-detect gcc.
Martin Mares [Mon, 11 Apr 2005 22:02:48 +0000 (22:02 +0000)]
Rewritten Makefiles to support separated source and object trees.
The source tree is now strictly read-only, which simplified several
things, but also let me struggle for 4 hours with GNU make bugs and
misfeatures.