3 #include "preprocess.hh"
6 #include <caml/memory.h>
7 #include <caml/mlvalues.h>
8 #include <caml/alloc.h>
14 extern "C" value preProcess_cpp (value v_str){
18 s = preProcess(String_val(v_str));
19 ml_s = caml_copy_string(s);
24 extern "C" value
preProcess_cpp (value v_str
){
27 string dsp_file
= string(String_val(v_str
));
28 char* dsp_file_c
= (char*)dsp_file
.c_str();
29 char* s
= preProcess(dsp_file_c
);
30 ml_s
= caml_copy_string(s
);