Source

ocaml-pkgbuild / pbcollect.ml

Full commit


module Pbcollect =
  struct
    (** The type of data we can collect on a PKGBUILD. *)
    let pb_collection : pbdata list ref = ref []

    let reset unit =
      pb_collection := [] ; ()

    let add newrec =
      pb_collection := newrec :: !pb_collection ; ()

    let results unit =
      List.rev !pb_collection
  end