Fix C++/OCaml wrappers.
authorkim <kim@3cdefd35-fc62-479d-8e8d-bae585ffb9ca>
Sat, 3 Dec 2011 21:52:20 +0000 (21:52 +0000)
committerkim <kim@3cdefd35-fc62-479d-8e8d-bae585ffb9ca>
Sat, 3 Dec 2011 21:52:20 +0000 (21:52 +0000)
commit813b239795aac1844eb233dab7f8f98d8dba845e
treec5586b1bddbbf4389f023423a259c942bec57726
parentba65a1b770d860132fbb04be4ca931b983dcb915
Fix C++/OCaml wrappers.
- sxsi_alloc_custom<X>() Allocate an OCaml_custom block holding a
    C++ value of type X
 Values of type X where X is a pointer type
 *must* be allocated with new. delete will be
 called when the custom_block is finalized by
 the garbage collector

- Obj_val<X>(value v)    Extract a C++ value of type X from a custom
    Block v

git-svn-id: svn+ssh://idea.nguyen.vg/svn/sxsi/trunk/xpathcomp@1181 3cdefd35-fc62-479d-8e8d-bae585ffb9ca
myocamlbuild.ml
src/OCamlDriver.cpp
src/common_stub.cpp
src/common_stub.hpp
src/main.ml
src/tree.ml