X-Git-Url: http://git.nguyen.vg/gitweb/?a=blobdiff_plain;f=src%2Flexindex_stub.cpp;fp=src%2Flexindex_stub.cpp;h=ab595aec2c92096c017a8ac12a0a8f5ed5433130;hb=8907c4fc162a27e946d6b574102dc3c97075c4e1;hp=bf038b2596687c33570410311ea7f861cd131870;hpb=8f5b2f0c7e95245c1b7f4cc18aa137ba8e784166;p=SXSI%2Fxpathcomp.git diff --git a/src/lexindex_stub.cpp b/src/lexindex_stub.cpp index bf038b2..ab595ae 100644 --- a/src/lexindex_stub.cpp +++ b/src/lexindex_stub.cpp @@ -114,12 +114,10 @@ extern "C" value caml_build_lex_index(value vtree, value vtag, value vtag2) tree = XMLTREE(vtree); tag = TAG(vtag); tag2 = TAG(vtag2); - //Uncomment the following and comment the failwith line //LEXINDEX(vindex) = ... return a lex_index* .... if ((tag==-1) || (tag2==-1)) caml_failwith(""); - preorderTraverse(0, tree->first_child(tree->ROOT)); sort(myvector.begin(), myvector.end(), myfunction); sort(myvector2.begin(), myvector2.end(), myfunction); @@ -134,8 +132,6 @@ extern "C" value caml_print_lex_index(value vindex) lex_index* index = LEXINDEX(vindex); //Print the index to the terminal - caml_failwith("print_lex_index not implemented"); - CAMLreturn (Val_unit); }