On 24/08/12 17:29, Arie Middelkoop wrote:
In yes_prepare_ocamlcocci.ml is a list of modules that needs to mention the modules in coccilib too, if I understand correctly. Perhaps we can get rid of having to mention the coccilib modules here. I should have a look at it.
Ok, I made some changes that gives ocaml scripts access to more modules of coccinelle. The exact list of modules is given in ocaml/exposed_modules.ml. If you need access to more, it needs to be specified in that list. It's also checked by ocaml for mistakes.
I've also made coccinelle print warnings instead of raising errors when the script depends on modules that it cannot find. The reason is that coccinelle uses ocamldep for determining module dependencies, which is not always correct when submodules are involved. Thus it's better to print a warning and let ocaml figure out if a missing dependency happens to be a real error.
As a side effect, it also makes ocamlfind optional at runtime for all ocaml scripts that only involve system modules and modules of coccinelle (that's probably all of the scripts).
Arie _______________________________________________ Cocci mailing list [email protected] http://lists.diku.dk/mailman/listinfo/cocci (Web access from inside DIKUs LAN only)
