[OCaml] Rename example_prog.ml to runme.ml in the OCaml examples
Name the output executable "runme" in the examples. Replace use of "foolib" in the string_from_ptr example. Fix a warning in the std_vector example. Add strings_test to Examples/ocaml/check.list. Disable two tests that were causing the OCaml test suite to fail.
This commit is contained in:
parent
1be9f5fec3
commit
8f7bc4cc10
18 changed files with 27 additions and 26 deletions
16
Examples/ocaml/string_from_ptr/example.i
Normal file
16
Examples/ocaml/string_from_ptr/example.i
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
%module example
|
||||
%{
|
||||
static int foo( char **buf ) {
|
||||
*buf = "string from c";
|
||||
return 0;
|
||||
}
|
||||
%}
|
||||
|
||||
%typemap(in,numinputs=0) char **buf (char *temp) {
|
||||
$1 = &temp;
|
||||
}
|
||||
%typemap(argout) char **buf {
|
||||
swig_result = caml_list_append(swig_result,caml_val_string((char *)*$1));
|
||||
}
|
||||
|
||||
int foo( char **buf );
|
||||
Loading…
Add table
Add a link
Reference in a new issue