[OCaml] Fix and re-enable the string_simple, minherit, and unions tests
copy_string() is a macro in the OCaml C API, so rename the function
to copy_str(). Add a runtime test.
The minherit runtime test was fixed by b64d685.
Use the proper syntax for accessing member variables in
unions_runme.ml
This commit is contained in:
parent
b82d3007f3
commit
83df4e8ed6
7 changed files with 26 additions and 20 deletions
|
|
@ -114,7 +114,7 @@ char **c_charptr_array( const std::vector <std::string > &str_v );
|
|||
|
||||
let string_array_to_vector sa =
|
||||
let nv = _new_StringVector C_void in
|
||||
array_to_vector nv (fun x -> C_string x) sa ; nv
|
||||
ignore (array_to_vector nv (fun x -> C_string x) sa) ; nv
|
||||
|
||||
let c_string_array ar =
|
||||
_c_charptr_array (string_array_to_vector ar)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue