# License along with this library; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
#
-# $Id: Makefile.in,v 1.2 2008-04-02 08:03:26 rjones Exp $
+# $Id: Makefile.in,v 1.3 2008-04-02 08:14:40 rjones Exp $
PACKAGE = @PACKAGE_NAME@
VERSION = @PACKAGE_VERSION@
OCAMLOPTFLAGS =
OCAMLOPTPACKAGES =
+OCAMLDOCFLAGS = -html -sort
+
EXAMPLES = $(wildcard examples/*.ml)
TESTS = $(patsubst %.ml,%,$(wildcard tests/*.ml))
rm -f tests/*~ tests/*.cmi tests/*.cmo $(TESTS)
rm -f examples/*~
+# Documentation.
+
+ifneq ($(OCAMLDOC),)
+doc:
+ rm -rf html
+ mkdir html
+ $(OCAMLDOC) $(OCAMLDOCFLAGS) -d html bitmatch.mli bitmatch.ml
+endif
+
+# Install.
+
install:
+ ocamlfind install bitmatch META *.mli *.cmi *.cmx *.cma *.cmxa *.a
# Standard rules.
ocaml-bitmatch copyright (C) 2008 Red Hat Inc.
License: LGPLv2+ with OCaml linking exception.
-Please see the doc/ subdirectory for developer documentation.
+Please see the html subdirectory for developer documentation.
-The only dependencies are OCaml >= 3.10.0, camlp4, and findlib.
+The only dependencies are OCaml >= 3.10.0, camlp4, ocamldoc, and findlib.
To build:
-(* Bitmatch library.
- * Copyright (C) 2008 Red Hat Inc., Richard W.M. Jones
+(** Bitmatch library. *)
+(* Copyright (C) 2008 Red Hat Inc., Richard W.M. Jones
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*
- * $Id: bitmatch.mli,v 1.7 2008-04-02 08:05:58 rjones Exp $
+ * $Id: bitmatch.mli,v 1.8 2008-04-02 08:14:40 rjones Exp $
*)
-exception Construct_failure of string * string * int * int
+(**
+ {2 Introduction and examples}
+
+
+ {2 Reference}
+
+ {3 Types}
+*)
type bitstring = string * int * int
+(** {3 Exceptions} *)
+
+exception Construct_failure of string * string * int * int
+
+(** {3 Bitstrings} *)
+
val empty_bitstring : bitstring
val create_bitstring : int -> bitstring
val bitstring_length : bitstring -> int
+(** {3 Bitstring buffer} *)
+
module Buffer : sig
type t
val create : unit -> t
val add_byte : t -> int -> unit
end
+(** {3 Miscellaneous} *)
+
val debug : bool ref
(**/**)