ocaml-bitstring.git
15 years agoUpdate coverage report.
Richard W.M. Jones [Wed, 27 Aug 2008 11:28:42 +0000 (11:28 +0000)]
Update coverage report.

15 years agoAdd tests for compare, load, etc.
Richard W.M. Jones [Wed, 27 Aug 2008 11:28:18 +0000 (11:28 +0000)]
Add tests for compare, load, etc.

15 years agoFix 'make test' rule.
Richard W.M. Jones [Wed, 27 Aug 2008 11:27:47 +0000 (11:27 +0000)]
Fix 'make test' rule.

15 years agoAdded:
Richard W.M. Jones [Wed, 27 Aug 2008 11:26:45 +0000 (11:26 +0000)]
Added:
 - Bitstring.compare, Bitstring.equals
 - Bitstring.t as a synonym for Bitstring.bitstring type
 - get and set functions for mutating individual bits (rarely used)
 - Bitstring.concat

15 years ago'make clean' rules remove more generated files.
Richard W.M. Jones [Tue, 26 Aug 2008 14:18:50 +0000 (14:18 +0000)]
'make clean' rules remove more generated files.

15 years agoVersion 1.9.8 for release.
Richard W.M. Jones [Tue, 26 Aug 2008 09:43:14 +0000 (09:43 +0000)]
Version 1.9.8 for release.

15 years agoUse ocaml-bisect to compute coverage of tests.
Richard W.M. Jones [Tue, 26 Aug 2008 09:42:05 +0000 (09:42 +0000)]
Use ocaml-bisect to compute coverage of tests.

15 years agoAdd byteswap.in.h
Richard W.M. Jones [Tue, 26 Aug 2008 08:26:23 +0000 (08:26 +0000)]
Add byteswap.in.h

15 years agoIgnore *.so files.
Richard W.M. Jones [Tue, 26 Aug 2008 08:25:42 +0000 (08:25 +0000)]
Ignore *.so files.

15 years agoThis patch completes the optimization / fastpaths in C enhancement.
Richard W.M. Jones [Tue, 26 Aug 2008 08:24:31 +0000 (08:24 +0000)]
This patch completes the optimization / fastpaths in C enhancement.

15 years agoThis large, but mostly mechanical, patch removes an unnecessary tuple
Richard W.M. Jones [Tue, 26 Aug 2008 08:22:42 +0000 (08:22 +0000)]
This large, but mostly mechanical, patch removes an unnecessary tuple
allocation from generated code.

15 years agoThis patch improves the string_of_* functions in Bitmatch_persistent
Richard W.M. Jones [Tue, 26 Aug 2008 08:21:43 +0000 (08:21 +0000)]
This patch improves the string_of_* functions in Bitmatch_persistent
so that they can print (many) expressions.  At the moment they can
only print stuff like "bind ([expr])" for most expressions.

15 years agoThis patch adds the framework for including C code in bitstring.
Richard W.M. Jones [Tue, 26 Aug 2008 08:20:41 +0000 (08:20 +0000)]
This patch adds the framework for including C code in bitstring.

15 years agoInclude benchmarks directory.
Richard W.M. Jones [Tue, 26 Aug 2008 08:16:01 +0000 (08:16 +0000)]
Include benchmarks directory.

15 years agoThis adds the outline of a benchmark suite to bitstring.
Richard W.M. Jones [Tue, 26 Aug 2008 08:13:48 +0000 (08:13 +0000)]
This adds the outline of a benchmark suite to bitstring.

15 years agoThe attached patch is necessary to work around a bug in the parsing in
Richard W.M. Jones [Tue, 26 Aug 2008 08:13:07 +0000 (08:13 +0000)]
The attached patch is necessary to work around a bug in the parsing in
OCaml 3.10.0 (fixed in 3.10.2 and later).  It doesn't affect
performance of the generated code.

15 years agoAdded little-endian constructors (thanks to Romain Beauxis and Samuel Mimram).
Richard W.M. Jones [Wed, 20 Aug 2008 16:58:33 +0000 (16:58 +0000)]
Added little-endian constructors (thanks to Romain Beauxis and Samuel Mimram).

15 years agoDocument the bitmatch compatibility library.
Richard W.M. Jones [Thu, 17 Jul 2008 15:58:23 +0000 (15:58 +0000)]
Document the bitmatch compatibility library.

15 years agoRenaming bitmatch -> bitstring.
Richard W.M. Jones [Thu, 17 Jul 2008 15:45:56 +0000 (15:45 +0000)]
Renaming bitmatch -> bitstring.

15 years agoRename files and libraries from bitmatch* to bitstring*
Richard W.M. Jones [Thu, 17 Jul 2008 15:09:05 +0000 (15:09 +0000)]
Rename files and libraries from bitmatch* to bitstring*

15 years agoUpdated TODO file.
Richard W.M. Jones [Thu, 17 Jul 2008 12:10:58 +0000 (12:10 +0000)]
Updated TODO file.

15 years agoVersion 1.9.6 for release.
Richard W.M. Jones [Thu, 17 Jul 2008 12:10:05 +0000 (12:10 +0000)]
Version 1.9.6 for release.
 - Updated MANIFEST.

15 years agoImproved test.
Richard W.M. Jones [Thu, 17 Jul 2008 11:58:14 +0000 (11:58 +0000)]
Improved test.

15 years agoImplement check() and bind() qualifiers.
Richard W.M. Jones [Thu, 17 Jul 2008 11:56:05 +0000 (11:56 +0000)]
Implement check() and bind() qualifiers.
 - Previously check() was called when().

15 years agoImplement save_to_offset() and partially implement when() and bind().
Richard W.M. Jones [Thu, 17 Jul 2008 11:27:13 +0000 (11:27 +0000)]
Implement save_to_offset() and partially implement when() and bind().

15 years agoFix an error message.
Richard W.M. Jones [Thu, 17 Jul 2008 10:33:49 +0000 (10:33 +0000)]
Fix an error message.

15 years agoAdded when(), bind() and save_offset_to() to the TODO list.
Richard W.M. Jones [Thu, 17 Jul 2008 08:55:00 +0000 (08:55 +0000)]
Added when(), bind() and save_offset_to() to the TODO list.

15 years agoSet svn:ignore.
Richard W.M. Jones [Thu, 17 Jul 2008 08:27:01 +0000 (08:27 +0000)]
Set svn:ignore.

15 years agoSet svn:keywords property to Id.
Richard W.M. Jones [Thu, 17 Jul 2008 08:26:23 +0000 (08:26 +0000)]
Set svn:keywords property to Id.

15 years agoAdded offset padding test to test the case when original_off <> 0.
Richard W.M. Jones [Thu, 17 Jul 2008 08:25:15 +0000 (08:25 +0000)]
Added offset padding test to test the case when original_off <> 0.

15 years agoImplement dropbits, takebits, subbitstring.
Richard W.M. Jones [Thu, 17 Jul 2008 08:24:47 +0000 (08:24 +0000)]
Implement dropbits, takebits, subbitstring.

15 years agoFix computed offset calculations when original_off <> 0.
Richard W.M. Jones [Thu, 17 Jul 2008 08:24:20 +0000 (08:24 +0000)]
Fix computed offset calculations when original_off <> 0.

15 years agoVersion 1.9.5 for release.
Richard W.M. Jones [Fri, 11 Jul 2008 11:10:30 +0000 (11:10 +0000)]
Version 1.9.5 for release.

15 years agoClarify licensing for Debian.
Richard W.M. Jones [Fri, 11 Jul 2008 11:07:17 +0000 (11:07 +0000)]
Clarify licensing for Debian.

15 years agoFix documentation for how to compile using camlp4 directly.
Richard W.M. Jones [Fri, 11 Jul 2008 10:56:31 +0000 (10:56 +0000)]
Fix documentation for how to compile using camlp4 directly.

15 years agoVersion 1.9.4 for release.
Richard W.M. Jones [Fri, 4 Jul 2008 13:40:31 +0000 (13:40 +0000)]
Version 1.9.4 for release.

15 years agoSomewhat better attempt at a META file.
Richard W.M. Jones [Fri, 4 Jul 2008 13:40:07 +0000 (13:40 +0000)]
Somewhat better attempt at a META file.

15 years agoDon't allow zero-length patterns to be loaded from a file
Richard W.M. Jones [Fri, 4 Jul 2008 12:35:06 +0000 (12:35 +0000)]
Don't allow zero-length patterns to be loaded from a file

15 years agoUpdate status
Richard W.M. Jones [Fri, 4 Jul 2008 12:03:21 +0000 (12:03 +0000)]
Update status

15 years agoVersion 1.9.3 for release.
Richard W.M. Jones [Fri, 4 Jul 2008 11:03:36 +0000 (11:03 +0000)]
Version 1.9.3 for release.

15 years agoInclude pkg_*
Richard W.M. Jones [Fri, 4 Jul 2008 11:03:17 +0000 (11:03 +0000)]
Include pkg_*

15 years agoextlib is needed for CIL tools subdir
Richard W.M. Jones [Tue, 1 Jul 2008 14:36:25 +0000 (14:36 +0000)]
extlib is needed for CIL tools subdir

15 years agoNote about META file
Richard W.M. Jones [Tue, 1 Jul 2008 14:21:45 +0000 (14:21 +0000)]
Note about META file

15 years agoAllow bitmatch-import-prefix.h to be installed centrally.
Richard W.M. Jones [Tue, 1 Jul 2008 14:15:18 +0000 (14:15 +0000)]
Allow bitmatch-import-prefix.h to be installed centrally.

15 years agoVersion 1.9.2 for release.
Richard W.M. Jones [Tue, 1 Jul 2008 14:02:10 +0000 (14:02 +0000)]
Version 1.9.2 for release.

15 years agoSome fixes for building bmpp file.
Richard W.M. Jones [Tue, 1 Jul 2008 14:01:47 +0000 (14:01 +0000)]
Some fixes for building bmpp file.

15 years agoUpdated MANIFEST
Richard W.M. Jones [Tue, 1 Jul 2008 12:38:11 +0000 (12:38 +0000)]
Updated MANIFEST

15 years agoVersion 1.9.1 for release.
Richard W.M. Jones [Tue, 1 Jul 2008 12:37:03 +0000 (12:37 +0000)]
Version 1.9.1 for release.

15 years agoCIL examples.
Richard W.M. Jones [Tue, 1 Jul 2008 12:35:03 +0000 (12:35 +0000)]
CIL examples.

15 years agoJust warn about unimplemented types - they can be safely skipped.
Richard W.M. Jones [Tue, 1 Jul 2008 12:34:31 +0000 (12:34 +0000)]
Just warn about unimplemented types - they can be safely skipped.

15 years agoRefactor raising of Construct_failure exceptions and make the
Richard W.M. Jones [Tue, 1 Jul 2008 11:38:46 +0000 (11:38 +0000)]
Refactor raising of Construct_failure exceptions and make the
locations more precise (Bluestorm & RWMJ).

15 years agoMake the locations in error messages more specific.
Richard W.M. Jones [Tue, 1 Jul 2008 11:26:12 +0000 (11:26 +0000)]
Make the locations in error messages more specific.

15 years agoRefactor constructor and extractor function name generation (Bluestorm).
Richard W.M. Jones [Tue, 1 Jul 2008 11:19:34 +0000 (11:19 +0000)]
Refactor constructor and extractor function name generation (Bluestorm).

15 years agoRefactor parse_field function (Bluestorm).
Richard W.M. Jones [Tue, 1 Jul 2008 11:16:18 +0000 (11:16 +0000)]
Refactor parse_field function (Bluestorm).

15 years agoRefactor expr_is_constant (Bluestorm).
Richard W.M. Jones [Tue, 1 Jul 2008 11:09:59 +0000 (11:09 +0000)]
Refactor expr_is_constant (Bluestorm).

15 years agoAdded string offset tests.
Richard W.M. Jones [Tue, 1 Jul 2008 10:12:58 +0000 (10:12 +0000)]
Added string offset tests.

15 years agoConvenience function locfail (thanks to Bluestorm).
Richard W.M. Jones [Tue, 1 Jul 2008 09:12:39 +0000 (09:12 +0000)]
Convenience function locfail (thanks to Bluestorm).

15 years agoMap 8-bit int element arrays to strings
Richard W.M. Jones [Tue, 17 Jun 2008 15:33:16 +0000 (15:33 +0000)]
Map 8-bit int element arrays to strings

15 years agoMore items for TODO list
Richard W.M. Jones [Tue, 17 Jun 2008 15:32:27 +0000 (15:32 +0000)]
More items for TODO list

15 years agoChange cil tools to use computed offsets.
Richard W.M. Jones [Mon, 16 Jun 2008 21:37:16 +0000 (21:37 +0000)]
Change cil tools to use computed offsets.

15 years agoAdd string_of_*_field so we can print out fields more accurately.
Richard W.M. Jones [Mon, 16 Jun 2008 21:36:56 +0000 (21:36 +0000)]
Add string_of_*_field so we can print out fields more accurately.

15 years agoFix dependencies
Richard W.M. Jones [Mon, 16 Jun 2008 20:34:11 +0000 (20:34 +0000)]
Fix dependencies

15 years agoTest for offsets
Richard W.M. Jones [Mon, 16 Jun 2008 20:33:39 +0000 (20:33 +0000)]
Test for offsets

15 years agoDocument constructed offsets, zeroes_bitstring, ones_bitstring.
Richard W.M. Jones [Mon, 16 Jun 2008 20:33:21 +0000 (20:33 +0000)]
Document constructed offsets, zeroes_bitstring, ones_bitstring.

15 years agoImplement construct_bitstring, zeroes_bitstring, ones_bitstring functions.
Richard W.M. Jones [Mon, 16 Jun 2008 20:32:45 +0000 (20:32 +0000)]
Implement construct_bitstring, zeroes_bitstring, ones_bitstring functions.

15 years agoSupport for computed offsets in output. Also allow constructed bitstrings of length...
Richard W.M. Jones [Mon, 16 Jun 2008 20:30:24 +0000 (20:30 +0000)]
Support for computed offsets in output.  Also allow constructed bitstrings of length 0 bits.

15 years agoAdded computed offset field
Richard W.M. Jones [Mon, 16 Jun 2008 20:29:24 +0000 (20:29 +0000)]
Added computed offset field

15 years agoDocumentation cleanups
Richard W.M. Jones [Fri, 13 Jun 2008 20:57:35 +0000 (20:57 +0000)]
Documentation cleanups

15 years agoDocumentation cleanups
Richard W.M. Jones [Fri, 13 Jun 2008 20:56:02 +0000 (20:56 +0000)]
Documentation cleanups

15 years agoDocumentation cleanups
Richard W.M. Jones [Fri, 13 Jun 2008 20:52:06 +0000 (20:52 +0000)]
Documentation cleanups

15 years agoDocumentation clarification.
Richard W.M. Jones [Fri, 13 Jun 2008 20:07:43 +0000 (20:07 +0000)]
Documentation clarification.

15 years agoClarify how to write multiple patterns to a file
Richard W.M. Jones [Fri, 13 Jun 2008 20:06:00 +0000 (20:06 +0000)]
Clarify how to write multiple patterns to a file

15 years agoVersion 1.9 for release.
Richard W.M. Jones [Fri, 13 Jun 2008 16:04:51 +0000 (16:04 +0000)]
Version 1.9 for release.

15 years agoUpdate MANIFEST
Richard W.M. Jones [Fri, 13 Jun 2008 15:58:53 +0000 (15:58 +0000)]
Update MANIFEST

15 years agoPersistent patterns, save and load to a file.
Richard W.M. Jones [Fri, 13 Jun 2008 15:56:04 +0000 (15:56 +0000)]
Persistent patterns, save and load to a file.

15 years agoSplit out field handling from pa_bitmatch into a common library, in preparation for...
Richard W.M. Jones [Thu, 12 Jun 2008 15:46:00 +0000 (15:46 +0000)]
Split out field handling from pa_bitmatch into a common library, in preparation for pattern persistence.

15 years agoCommitting NON-WORKING cil tools directory. This code all needs
Richard W.M. Jones [Wed, 11 Jun 2008 15:04:05 +0000 (15:04 +0000)]
Committing NON-WORKING cil tools directory.  This code all needs
to be reworked for when we have reusable bitmatch structures.

15 years agoStarted to copy the import tool from libunbin.
Richard W.M. Jones [Tue, 10 Jun 2008 21:50:48 +0000 (21:50 +0000)]
Started to copy the import tool from libunbin.

15 years agoInclude CHANGES file in tarball.
Richard W.M. Jones [Wed, 21 May 2008 09:59:21 +0000 (09:59 +0000)]
Include CHANGES file in tarball.

15 years agoVersion 1.3, updated MANIFEST.
Richard W.M. Jones [Wed, 21 May 2008 09:46:39 +0000 (09:46 +0000)]
Version 1.3, updated MANIFEST.

15 years agoEndianness expressions.
Richard W.M. Jones [Wed, 21 May 2008 08:59:40 +0000 (08:59 +0000)]
Endianness expressions.

16 years agoUpdated MANIFEST
Richard W.M. Jones [Mon, 19 May 2008 09:20:01 +0000 (09:20 +0000)]
Updated MANIFEST

16 years agoAdded libpcap parsing example.
Richard W.M. Jones [Mon, 19 May 2008 09:19:27 +0000 (09:19 +0000)]
Added libpcap parsing example.

16 years agoWhen flen is a constant, use the constant integer value instead of flen expr.
Richard W.M. Jones [Mon, 19 May 2008 08:16:49 +0000 (08:16 +0000)]
When flen is a constant, use the constant integer value instead of flen expr.

16 years agoVersion 1.2 for release.
Richard W.M. Jones [Sun, 18 May 2008 22:30:19 +0000 (22:30 +0000)]
Version 1.2 for release.

16 years agoUpdated MANIFEST
Richard W.M. Jones [Sun, 18 May 2008 22:29:50 +0000 (22:29 +0000)]
Updated MANIFEST

16 years agoFix string_of_bitstring/add_bits handling of non-multiple-of-8-bit length strings...
Richard W.M. Jones [Sun, 18 May 2008 22:28:41 +0000 (22:28 +0000)]
Fix string_of_bitstring/add_bits handling of non-multiple-of-8-bit length strings, and add a test case.

16 years agoMinor code rearrangement, improve an error message.
Richard W.M. Jones [Sun, 18 May 2008 22:27:25 +0000 (22:27 +0000)]
Minor code rearrangement, improve an error message.

16 years agoAdded integer matching test.
Richard W.M. Jones [Sun, 18 May 2008 21:06:15 +0000 (21:06 +0000)]
Added integer matching test.

16 years agoBit-matching test.
Richard W.M. Jones [Sun, 18 May 2008 20:54:08 +0000 (20:54 +0000)]
Bit-matching test.

16 years agoSeems that the ELF fields are little-endian.
Richard W.M. Jones [Sun, 18 May 2008 20:11:19 +0000 (20:11 +0000)]
Seems that the ELF fields are little-endian.

16 years agoUpdated MANIFEST and removed .cvsignore files.
Richard W.M. Jones [Sun, 18 May 2008 20:00:45 +0000 (20:00 +0000)]
Updated MANIFEST and removed .cvsignore files.

16 years agoVersion 1.1 for release.
Richard W.M. Jones [Sun, 18 May 2008 19:58:56 +0000 (19:58 +0000)]
Version 1.1 for release.

16 years agoAdded GIF parsing example.
Richard W.M. Jones [Sun, 18 May 2008 19:58:17 +0000 (19:58 +0000)]
Added GIF parsing example.

16 years agoEnable svn:keywords Id property on relevant files.
Richard W.M. Jones [Sun, 18 May 2008 19:44:58 +0000 (19:44 +0000)]
Enable svn:keywords Id property on relevant files.

16 years agoELF parsing example.
Richard W.M. Jones [Sun, 18 May 2008 19:29:03 +0000 (19:29 +0000)]
ELF parsing example.

16 years agoMake examples depend upon library.
Richard W.M. Jones [Sun, 18 May 2008 19:28:22 +0000 (19:28 +0000)]
Make examples depend upon library.

16 years agoMore consistent naming of files.
Richard W.M. Jones [Sun, 18 May 2008 19:23:13 +0000 (19:23 +0000)]
More consistent naming of files.

16 years agoRemoved obsolete tests, and moved some tests into examples.
Richard W.M. Jones [Sun, 18 May 2008 19:21:59 +0000 (19:21 +0000)]
Removed obsolete tests, and moved some tests into examples.

16 years agoFix svnignore in the examples subdirectory.
Richard W.M. Jones [Sun, 18 May 2008 19:05:08 +0000 (19:05 +0000)]
Fix svnignore in the examples subdirectory.