move ./lib/README ./README hunk ./OMakefile 10 +index.html: README + pandoc --toc -s README >index.html + hunk ./README 1 -@Ciml +% Ciml + hunk ./README 18 - letext hello (s:string) : unit = << - printf("Hello %s !\n", s); - Return(); - >> +~~~ {.ocaml} +letext hello (s:string) : unit = << + printf("Hello %s !\n", s); + Return(); +>> +~~~ hunk ./README 52 - << - // this is some C code at the statement level - // it is directly copied - #include - >> - letext hello (s:string) : unit = << - printf("Hello %s !\n", s); - Return(); - >> +~~~ {.ocaml} +<< +// this is some C code at the statement level +// it is directly copied +#include +>> +letext hello (s:string) : unit = << + printf("Hello %s !\n", s); + Return(); +>> +~~~ hunk ./README 66 - #include - #include - #include - #include - #include - #include - #include - - - // this is some C code at the statement level - // it is directly copied - #include - - value hello (value s__0) { - CAMLparam1(s__0); - char* s = String_val(s__0); - - #define Return(foo) CAMLreturn(Val_unit) - - printf("Hello %s !\n", s); - Return(); - - #undef Return - } - +~~~ {.c} +#include +#include +#include +#include +#include +#include +#include + + +// this is some C code at the statement level +// it is directly copied +#include + +value hello (value s__0) { + CAMLparam1(s__0); +char* s = String_val(s__0); + +#define Return(foo) CAMLreturn(Val_unit) + + printf("Hello %s !\n", s); + Return(); + +#undef Return +} +~~~ + hunk ./README 112 - letext hello (s:string) : unit = << - printf("Hello %s !\n", s); - Return(); - >> +~~~ {.ocaml} +letext hello (s:string) : unit = << + printf("Hello %s !\n", s); + Return(); +>> +~~~ hunk ./README 123 - // use: - Return(42); - // don't use: - Return(Val_int(42)); +~~~ {.ocaml} +// use: +Return(42); +// don't use: +Return(Val_int(42)); +~~~ hunk ./README 138 - (* add *) - register_fromval "Int_val" "int" : int - register_toval "Val_int" : int +~~~ {.ocaml} +(* add *) +register_fromval "Int_val" "int" : int +register_toval "Val_int" : int + +(* remove *) +unregister_fromval : int +unregister_toval : int +~~~ + +Sources +======= + +The sources are available in a darcs repository: + + darcs get http://chadok.info/darcs/ciml hunk ./README 155 - (* remove *) - unregister_fromval : int - unregister_toval : int