← Back to team overview

marionnet-dev team mailing list archive

[Branch ~marionnet-drivers/ocamlbricks/trunk] Rev 140: Sources "include_as_string_p4.ml" and "include_type_definitions_p4.ml" moved from marionnet.

 

------------------------------------------------------------
revno: 140
committer: Jean-Vincent Loddo <loddo@xxxxxxxxxxxxxxxxxxxx>
branch nick: ocamlbricks
timestamp: Sun 2010-06-06 23:02:01 +0200
message:
  Sources "include_as_string_p4.ml" and "include_type_definitions_p4.ml" moved from marionnet.
  Also, "include_as_string_p4.ml" as been enriched with the macro:
  
  INCLUDE_AS_STRING_LIST <pattern>
  
  This macro is replaced at compile-time by a (string * string) list containing the couples
  (filename,filecontent) for each filename matching the glob pattern. 
  
  Example:
  
  let put (filename,content) =   
   begin
    Printf.eprintf "The length in word of %s is %d\n" filename (String.length content);
    let ch = open_out ("/tmp/"^Filename.basename filename) in
    Printf.fprintf ch "%s" content;
    close_out ch;
   end;;
  
  (* Note the usage of ../ requested with ocamlbuild (because compilation happens in _build/) *)
  let xs = INCLUDE_AS_STRING_LIST "../share/images/ico.hub.*" in
  List.iter put xs ;;
added:
  CAMLP4/include_as_string_p4.ml
  CAMLP4/include_type_definitions_p4.ml
modified:
  Makefile.local


--
lp:ocamlbricks
https://code.launchpad.net/~marionnet-drivers/ocamlbricks/trunk

Your team marionnet-dev is subscribed to branch lp:ocamlbricks.
To unsubscribe from this branch go to https://code.launchpad.net/~marionnet-drivers/ocamlbricks/trunk/+edit-subscription