chiark / gitweb /
mLib
15 years agosym-gtest: Don't include empty words.
Mark Wooding [Sat, 27 Dec 2008 14:26:02 +0000 (14:26 +0000)]
sym-gtest: Don't include empty words.

An empty word in a command like `set LABEL' provokes a segfault from
sym-test -- not entirely unreasonably considering that sym-test is a
quick lash-up and not intended to be robust against bogus test scripts.
So filter them out in advance.

15 years agoBuild: Overhaul build system.
Mark Wooding [Sat, 27 Dec 2008 00:08:35 +0000 (00:08 +0000)]
Build: Overhaul build system.

This has now moved a lot of the way towards the mLib-3 build system,
using appending and Automake conditionals.  The whole thing looks much
cleaner now.

15 years agodebian: Replace Debian build system with CDBS.
Mark Wooding [Sat, 27 Dec 2008 00:02:57 +0000 (00:02 +0000)]
debian: Replace Debian build system with CDBS.

Somewhat fiddly to get the ADNS build to work, but still simpler than
the one before.

15 years agoBuild: Put build utilities in the config/ subdirectory.
Mark Wooding [Fri, 26 Dec 2008 18:11:57 +0000 (18:11 +0000)]
Build: Put build utilities in the config/ subdirectory.

Leaving AC_CONFIG_AUX_DIR unspecified causes auto* to look for the
various utilities in parent directories, which breaks mdw-build.  I
could explicitly set AC_CONFIG_AUX_DIR to `.', but that misses an
opportunity to tidy up.

15 years agoMakefile: Ship versioncmp.in.
Mark Wooding [Fri, 26 Dec 2008 14:54:09 +0000 (14:54 +0000)]
Makefile: Ship versioncmp.in.

15 years agoversioncmp: Fix for `~' characters. 2.0.5
Mark Wooding [Wed, 14 May 2008 14:13:39 +0000 (15:13 +0100)]
versioncmp: Fix for `~' characters.

In the Debian version number ordering, `~' compares before end-of-
string.  Fix the function to actually cope with this, and introduce test
cases to make sure we actually get it right.

This is release 2.0.5.

16 years agoInfrastructure: Export pkgconfig file. 2.0.4
Mark Wooding [Mon, 17 Mar 2008 18:02:17 +0000 (18:02 +0000)]
Infrastructure: Export pkgconfig file.

This should keep us going while mLib-3 is worked on.

16 years agotestrig: Provide useful interface for more complicated test rigs.
Mark Wooding [Sat, 9 Feb 2008 19:54:08 +0000 (19:54 +0000)]
testrig: Provide useful interface for more complicated test rigs.

Provide a lower-level interface to the test-vector processing machinery,
and introduce `suites' over the top of the existing chunks.

17 years agocleanup: All the whitespace fixes, all at once.
Mark Wooding [Sun, 28 Jan 2007 22:56:52 +0000 (22:56 +0000)]
cleanup: All the whitespace fixes, all at once.

This damages one of the encoding test inputs, so the sample output also
needs to change accordingly.

17 years agodaemonize, versioncmp: Generally useful functions from tripe.
Mark Wooding [Sat, 6 Jan 2007 12:49:56 +0000 (12:49 +0000)]
daemonize, versioncmp: Generally useful functions from tripe.

See the manual for descriptions.

17 years agobuf: Fix two embarassing bugs found while writing Lisp bindings.
Mark Wooding [Mon, 15 May 2006 19:18:32 +0000 (20:18 +0100)]
buf: Fix two embarassing bugs found while writing Lisp bindings.

  * buf_{get,put}memNl never worked.  It always wrote the length
    big-endian.

  * buf_getmemz never worked, because it used the wrong length to find
    the terminator.

18 years agostr: New str_matchx function optionally reports possible prefix.
Mark Wooding [Thu, 13 Apr 2006 20:52:59 +0000 (21:52 +0100)]
str: New str_matchx function optionally reports possible prefix.

It can be useful (trust me) to know whether a string is a possible
prefix of something which matches a glob pattern.  The function
str_matchx is like str_match (which is now a compatibility veneer) and
takes a flags word; the option STRF_PREFIX reports success if it hits
the end of the target string while trying to find a match.

18 years agostr: Various whitespace cleanups.
Mark Wooding [Thu, 13 Apr 2006 20:43:29 +0000 (21:43 +0100)]
str: Various whitespace cleanups.

18 years agodebian: Clean noadns build directory.
Mark Wooding [Fri, 7 Apr 2006 14:05:01 +0000 (15:05 +0100)]
debian: Clean noadns build directory.

18 years agohash: Trivial whitespace cleanups.
Mark Wooding [Fri, 7 Apr 2006 14:03:32 +0000 (15:03 +0100)]
hash: Trivial whitespace cleanups.

18 years agourl: Allow `;' to separate key/value pairs in URL-encoded strings.
Mark Wooding [Wed, 15 Mar 2006 01:31:26 +0000 (01:31 +0000)]
url: Allow `;' to separate key/value pairs in URL-encoded strings.

The RFC recommends this be allowed, because `&' is special in HTML.
It's also used by various CGI scripts.

18 years agourl: Allow various `safe' characters unquoted in URL strings.
Mark Wooding [Tue, 14 Mar 2006 16:41:41 +0000 (16:41 +0000)]
url: Allow various `safe' characters unquoted in URL strings.

Allow `.', `-', `_' and `/', because they're commonly used in filenames,
and it's nice for them to be displayed readably.  The `~' character
isn't actually safe but we allow it anyway.

18 years agourl: Whitespace cleanups.
Mark Wooding [Tue, 14 Mar 2006 16:41:39 +0000 (16:41 +0000)]
url: Whitespace cleanups.

18 years agofwatch: Include <string.h> for declaration of memset(3).
Mark Wooding [Tue, 14 Mar 2006 16:10:08 +0000 (16:10 +0000)]
fwatch: Include <string.h> for declaration of memset(3).

18 years agodebian: Fix package sections.
Mark Wooding [Wed, 15 Feb 2006 12:30:12 +0000 (12:30 +0000)]
debian: Fix package sections.

18 years agoinfra: Clean up project setup
Mark Wooding [Wed, 8 Feb 2006 18:53:06 +0000 (18:53 +0000)]
infra: Clean up project setup

18 years agoExtract Subversion ignore data.
Mark Wooding [Sat, 28 Jan 2006 12:24:44 +0000 (12:24 +0000)]
Extract Subversion ignore data.

18 years agoThe callback function can free the @bres_client@ structure! Make sure we
mdw [Tue, 18 Oct 2005 08:48:34 +0000 (08:48 +0000)]
The callback function can free the @bres_client@ structure!  Make sure we
have freed or know the address of everything we need to free before invoking
the callback: otherwise we mess with freed memory, which is bad.

18 years agoFix maintainer email addr.
mdw [Tue, 18 Oct 2005 08:44:12 +0000 (08:44 +0000)]
Fix maintainer email addr.

18 years agoActually implement the right transformation!
mdw [Tue, 18 Oct 2005 08:44:02 +0000 (08:44 +0000)]
Actually implement the right transformation!

18 years agoVarious manual fixes.
mdw [Tue, 18 Oct 2005 08:43:44 +0000 (08:43 +0000)]
Various manual fixes.

18 years agoDon't include trailing zero in the name of a gensym.
mdw [Tue, 18 Oct 2005 08:42:51 +0000 (08:42 +0000)]
Don't include trailing zero in the name of a gensym.

18 years agoFix name of DOUINTSZ.
mdw [Fri, 23 Sep 2005 16:46:21 +0000 (16:46 +0000)]
Fix name of DOUINTSZ.

18 years agoFix README and mLib.3 a bit.
mdw [Fri, 23 Sep 2005 16:05:58 +0000 (16:05 +0000)]
Fix README and mLib.3 a bit.

18 years agoFix distribution stuff.
mdw [Fri, 23 Sep 2005 15:24:59 +0000 (15:24 +0000)]
Fix distribution stuff.

18 years agoImport buf from Catacomb; split out the dstr bits, and throw away the mp and
mdw [Fri, 23 Sep 2005 15:16:12 +0000 (15:16 +0000)]
Import buf from Catacomb; split out the dstr bits, and throw away the mp and
ec stuff.  Document it.  Fix email addresses.

18 years agoRefugees from Catacomb: low-level buffer primitives.
mdw [Fri, 23 Sep 2005 10:36:36 +0000 (10:36 +0000)]
Refugees from Catacomb: low-level buffer primitives.

18 years agoStupid bug in float formatting.
mdw [Fri, 16 Sep 2005 13:09:29 +0000 (13:09 +0000)]
Stupid bug in float formatting.

18 years agoMissing argument in sel_addtimer docs.
mdw [Fri, 16 Sep 2005 13:09:13 +0000 (13:09 +0000)]
Missing argument in sel_addtimer docs.

18 years agoFixes for Cygwin.
mdw [Thu, 15 Sep 2005 00:49:46 +0000 (00:49 +0000)]
Fixes for Cygwin.

18 years agoFix for Cygwin.
mdw [Wed, 14 Sep 2005 23:07:55 +0000 (23:07 +0000)]
Fix for Cygwin.

18 years agoSizes and maximum values in bits.h, for other macros.
mdw [Wed, 14 Sep 2005 14:12:17 +0000 (14:12 +0000)]
Sizes and maximum values in bits.h, for other macros.

19 years agoFix for new Automake.
mdw [Fri, 22 Apr 2005 21:21:35 +0000 (21:21 +0000)]
Fix for new Automake.

19 years agoAdd a couple more standard macros. Fix the header.
mdw [Fri, 18 Mar 2005 09:58:46 +0000 (09:58 +0000)]
Add a couple more standard macros.  Fix the header.

19 years agoMinor little tweaks.
mdw [Fri, 18 Mar 2005 09:58:20 +0000 (09:58 +0000)]
Minor little tweaks.

19 years agoOnly make necessary system calls.
mdw [Fri, 18 Mar 2005 09:57:58 +0000 (09:57 +0000)]
Only make necessary system calls.

19 years agoArgh! RO[LR]64 broken on 32-bit shifts! Tested and fixed.
mdw [Sat, 5 Mar 2005 13:53:44 +0000 (13:53 +0000)]
Argh!  RO[LR]64 broken on 32-bit shifts!  Tested and fixed.

19 years agoFix free/xfree bug in adns support.
mdw [Thu, 11 Nov 2004 00:54:04 +0000 (00:54 +0000)]
Fix free/xfree bug in adns support.

19 years agoShip unihash test vectors.
mdw [Sun, 17 Oct 2004 13:27:42 +0000 (13:27 +0000)]
Ship unihash test vectors.

19 years agoAdd base32 encoding and decoding.
mdw [Tue, 28 Sep 2004 14:11:09 +0000 (14:11 +0000)]
Add base32 encoding and decoding.

19 years agoExpunge CVS cruft.
mdw [Sun, 12 Sep 2004 10:37:52 +0000 (10:37 +0000)]
Expunge CVS cruft.

20 years agoExpunge revision histories in files.
mdw [Thu, 8 Apr 2004 01:36:29 +0000 (01:36 +0000)]
Expunge revision histories in files.

20 years agoMake ADNS wait for the event loop before collecting replies.
mdw [Sat, 3 Apr 2004 03:28:54 +0000 (03:28 +0000)]
Make ADNS wait for the event loop before collecting replies.

20 years agoIgnore mlib-bin.
mdw [Fri, 19 Dec 2003 00:49:51 +0000 (00:49 +0000)]
Ignore mlib-bin.

20 years agoAdd global unihash table; use universal hashing instead of CRC.
mdw [Mon, 15 Dec 2003 20:54:57 +0000 (20:54 +0000)]
Add global unihash table; use universal hashing instead of CRC.

20 years agoNew program to make fixed tables for universal hashing.
mdw [Mon, 15 Dec 2003 20:53:08 +0000 (20:53 +0000)]
New program to make fixed tables for universal hashing.

20 years agoDistribute unihash manpage.
mdw [Sun, 14 Dec 2003 14:57:35 +0000 (14:57 +0000)]
Distribute unihash manpage.

20 years agoFix distribution.
mdw [Sun, 14 Dec 2003 14:56:57 +0000 (14:56 +0000)]
Fix distribution.

20 years agoQualify name given to @bres_byname@.
mdw [Sun, 14 Dec 2003 14:46:38 +0000 (14:46 +0000)]
Qualify name given to @bres_byname@.

20 years agoUse right test vector file name.
mdw [Sun, 14 Dec 2003 14:46:11 +0000 (14:46 +0000)]
Use right test vector file name.

20 years agoTest universal hashing and fix bugs.
mdw [Sun, 14 Dec 2003 14:45:30 +0000 (14:45 +0000)]
Test universal hashing and fix bugs.

20 years agoAdd adns support in background resolver.
mdw [Sat, 13 Dec 2003 20:37:59 +0000 (20:37 +0000)]
Add adns support in background resolver.

20 years agoDebianization fixes.
mdw [Sat, 29 Nov 2003 20:38:38 +0000 (20:38 +0000)]
Debianization fixes.

20 years agoDeclare and document @conn_fd@.
mdw [Sat, 29 Nov 2003 19:10:53 +0000 (19:10 +0000)]
Declare and document @conn_fd@.

20 years agoVarious stuff. 2.0.3
mdw [Sat, 29 Nov 2003 11:59:17 +0000 (11:59 +0000)]
Various stuff.

20 years agoDocument hex encoding.
mdw [Sat, 29 Nov 2003 11:59:01 +0000 (11:59 +0000)]
Document hex encoding.

20 years agoFile descriptor passing.
mdw [Sat, 29 Nov 2003 11:58:49 +0000 (11:58 +0000)]
File descriptor passing.

20 years agoVarious Debian fixes.
mdw [Mon, 10 Nov 2003 10:01:39 +0000 (10:01 +0000)]
Various Debian fixes.

20 years agoDebianization\!
mdw [Sun, 9 Nov 2003 13:48:43 +0000 (13:48 +0000)]
Debianization\!

20 years agoOoops. Fix distribution.
mdw [Sun, 9 Nov 2003 13:48:32 +0000 (13:48 +0000)]
Ooops.  Fix distribution.

20 years agoDocument crc-mktab a little.
mdw [Sun, 9 Nov 2003 13:13:50 +0000 (13:13 +0000)]
Document crc-mktab a little.

20 years agoVersion bump. 2.0.2
mdw [Sun, 12 Oct 2003 14:54:18 +0000 (14:54 +0000)]
Version bump.

20 years agoFinish the work.
mdw [Sun, 12 Oct 2003 14:54:00 +0000 (14:54 +0000)]
Finish the work.

20 years agoNew interface for messing with preconnected sockets.
mdw [Sun, 12 Oct 2003 14:47:10 +0000 (14:47 +0000)]
New interface for messing with preconnected sockets.

20 years agoVarious fixes.
mdw [Sun, 12 Oct 2003 14:44:46 +0000 (14:44 +0000)]
Various fixes.

20 years agoGeneral alignment assumptions and tweaks.
mdw [Sun, 12 Oct 2003 14:44:26 +0000 (14:44 +0000)]
General alignment assumptions and tweaks.

20 years agoUniversal hashing.
mdw [Sun, 12 Oct 2003 14:43:24 +0000 (14:43 +0000)]
Universal hashing.

20 years agoVersion bump. 2.0.1
mdw [Sun, 18 May 2003 15:17:04 +0000 (15:17 +0000)]
Version bump.

20 years agoRemove memory leak.
mdw [Sun, 18 May 2003 15:10:29 +0000 (15:10 +0000)]
Remove memory leak.

20 years agoAdd debugging mode which just uses the underlying arena.
mdw [Sun, 18 May 2003 15:10:20 +0000 (15:10 +0000)]
Add debugging mode which just uses the underlying arena.

20 years ago Tidying and bugfixing. 2.0.0
mdw [Sat, 17 May 2003 10:34:04 +0000 (10:34 +0000)]
 Tidying and bugfixing.

20 years agoVersion bump.
mdw [Fri, 16 May 2003 00:30:28 +0000 (00:30 +0000)]
Version bump.

20 years agoTest base64 and hex encoding.
mdw [Fri, 16 May 2003 00:24:37 +0000 (00:24 +0000)]
Test base64 and hex encoding.

20 years agomaninst isn't shipped here.
mdw [Fri, 16 May 2003 00:24:05 +0000 (00:24 +0000)]
maninst isn't shipped here.

20 years agoRename for consistency's sake.
mdw [Fri, 16 May 2003 00:23:41 +0000 (00:23 +0000)]
Rename for consistency's sake.

20 years agoDon't whine if you can't make the directory.
mdw [Thu, 15 May 2003 23:42:31 +0000 (23:42 +0000)]
Don't whine if you can't make the directory.

20 years agoVersion bump.
mdw [Thu, 15 May 2003 23:41:36 +0000 (23:41 +0000)]
Version bump.

21 years agoVarious fixes.
mdw [Wed, 23 Apr 2003 12:52:43 +0000 (12:52 +0000)]
Various fixes.

21 years agoNew manpage installer.
mdw [Wed, 23 Apr 2003 12:52:34 +0000 (12:52 +0000)]
New manpage installer.

21 years agoStray link page.
mdw [Wed, 23 Apr 2003 12:48:59 +0000 (12:48 +0000)]
Stray link page.

21 years agoVarious bugfixes.
mdw [Wed, 23 Apr 2003 12:47:44 +0000 (12:47 +0000)]
Various bugfixes.

22 years agoMissing function aliases.
mdw [Wed, 30 Jan 2002 09:29:02 +0000 (09:29 +0000)]
Missing function aliases.

22 years agoTrack @dstr_vputf@ interface change.
mdw [Sun, 13 Jan 2002 13:34:32 +0000 (13:34 +0000)]
Track @dstr_vputf@ interface change.

22 years agoDescribe ancient interface change on immediate failure.
mdw [Sun, 13 Jan 2002 13:34:18 +0000 (13:34 +0000)]
Describe ancient interface change on immediate failure.

22 years agoPacket handler functions now have a @typedef@ name.
mdw [Sun, 13 Jan 2002 13:33:54 +0000 (13:33 +0000)]
Packet handler functions now have a @typedef@ name.

22 years agoTrack interface change for @lbuf@.
mdw [Sun, 13 Jan 2002 13:33:27 +0000 (13:33 +0000)]
Track interface change for @lbuf@.

22 years agoPass line length to line handler function. Provide a @typedef@ for
mdw [Sun, 13 Jan 2002 13:33:01 +0000 (13:33 +0000)]
Pass line length to line handler function.  Provide a @typedef@ for
handler functions.  Allow run-time configuration of line delimiters.

22 years agoChange interface for @dstr_vputf@.
mdw [Sun, 13 Jan 2002 13:30:50 +0000 (13:30 +0000)]
Change interface for @dstr_vputf@.

22 years agoRearrange @conn_init@ to be a bit more comprehensible.
mdw [Sun, 13 Jan 2002 13:28:44 +0000 (13:28 +0000)]
Rearrange @conn_init@ to be a bit more comprehensible.

22 years agoNew hex encoding stuff. Rename test programs.
mdw [Sun, 13 Jan 2002 13:26:59 +0000 (13:26 +0000)]
New hex encoding stuff.  Rename test programs.

22 years agoNew hex encoding stuff.
mdw [Sun, 13 Jan 2002 13:26:30 +0000 (13:26 +0000)]
New hex encoding stuff.

22 years agoChange names for internal tables.
mdw [Sun, 13 Jan 2002 13:26:16 +0000 (13:26 +0000)]
Change names for internal tables.

22 years agoNew @conn_init@ interface.
mdw [Fri, 22 Jun 2001 19:37:00 +0000 (19:37 +0000)]
New @conn_init@ interface.

22 years agoInclude @<ctype.h>@.
mdw [Fri, 22 Jun 2001 19:36:18 +0000 (19:36 +0000)]
Include @<ctype.h>@.

22 years agoFix a large number of bugs.
mdw [Fri, 22 Jun 2001 19:35:58 +0000 (19:35 +0000)]
Fix a large number of bugs.