>> > Thanks for the update. I'm not completely sure to understand the=20 >> > solution, though. Could we just use the linux pattern as is, and then=20 >> > call gegrep instead of egrep? >> >> That's possible, though coccinelle would be more portable to >> other OS if it only used POSIX extended regular expressions >> (these should work ok with GNU grep too). > > [[:<:]] and [[:>:]], which work with our (OpenBSD's) regexps doesn't > work with ggrep. (And I didn't find any mention of them in the > standard). > > So we have to patch coccinelle for OpenBSD in either way (use ggrep > or use [[:<:]] and [[:>:]]). Below is the ggrep version (for the > OpenBSD port). > > A *clean* fix would be to drop using grep (or ggrep) at all and use > some regexp-library for ocaml instead of calling system tools. But > I'm not very used to ocaml, so I don't know wether there's a good > regexp-library available.
Hi Julia, Matthias is absolutely right. I was wrong for raising the topic in the first place. I should have checked all combinations before posting. The regexps don't work for ggrep. And I agree with him, if you can please get the substitutions in pure Ocaml, it would be great for portability, maybe even to Windows (holy grail and which platform absolutely needs coccinelle)! searching for regexp bought me to your own INRIA page, http://caml.inria.fr/cgi-bin/hump.en.cgi?contrib=156 further clicks bought me to http://www.oiwa.jp/~yutaka/caml/index-en.html IMHO, diff is used is GNU diff. Stuart also had to patch multiple appearances of diff to GNU diff. GNU diff can also be replaced in pure Ocaml. http://caml.inria.fr/cgi-bin/hump.en.cgi?contrib=534 This way, OpenBSD can closely follow your releases without patching! All the different OS would need is a working Ocaml compiler, supplied by you! Thanks, amit _______________________________________________ Cocci mailing list [email protected] http://lists.diku.dk/mailman/listinfo/cocci (Web access from inside DIKUs LAN only)
