X-Git-Url: http://git.nguyen.vg/gitweb/?a=blobdiff_plain;f=src%2Fcommon_stub.cpp;h=85be94061cd61c554c207db5a4f3309a10a38522;hb=798507d52a5c11a6d852740056464241538fe76a;hp=dde97fa0e8841c21aa2750e2a4d4cfa0b326b4a2;hpb=813b239795aac1844eb233dab7f8f98d8dba845e;p=SXSI%2Fxpathcomp.git diff --git a/src/common_stub.cpp b/src/common_stub.cpp index dde97fa..85be940 100644 --- a/src/common_stub.cpp +++ b/src/common_stub.cpp @@ -6,6 +6,8 @@ extern "C" { #include #include +#include + } using std::string; @@ -81,11 +83,12 @@ extern "C" value sxsi_cpp_init(value unit) rlim.rlim_cur = RLIM_INFINITY; setrlimit(RLIMIT_STACK, &rlim); }; + // mallopt(M_MMAP_THRESHOLD, 0); return Val_unit; } -void sxsi_raise_msg(char * msg) +void sxsi_raise_msg(const char * msg) { if (cpp_exception == 0) init_error(); caml_raise_with_string(*cpp_exception, msg);