[xml] XPath horribly chatty in latest release



Why is this?

If I turn off debug, with --without-debug, I have to apply the below patch
to get it to compile at all.

--- xpath.c.old Tue Mar 20 03:35:07 2001
+++ xpath.c     Fri Mar 23 14:35:44 2001
@@ -808,6 +808,17 @@
     i = comp->last;
     xmlXPathDebugDumpStepOp(output, comp, &comp->steps[i], depth + 1);
 }
+#else
+void xmlXPathDebugDumpNode(FILE *output, xmlNodePtr cur, int depth) { }
+void xmlXPathDebugDumpNodeList(FILE *output, xmlNodePtr cur, int depth) {
}
+void xmlXPathDebugDumpNodeSet(FILE *output, xmlNodeSetPtr cur, int depth)
{ }
+void xmlXPathDebugDumpValueTree(FILE *output, xmlNodeSetPtr cur, int
depth) { }+void xmlXPathDebugDumpLocationSet(FILE *output,
xmlLocationSetPtr cur, int depth) { }
+void xmlXPathDebugDumpObject(FILE *output, xmlXPathObjectPtr cur, int
depth) { }
+void xmlXPathDebugDumpStepOp(FILE *output, xmlXPathCompExprPtr comp,
+                            xmlXPathStepOpPtr op, int depth) { }
+void xmlXPathDebugDumpCompExpr(FILE *output, xmlXPathCompExprPtr comp,
+                              int depth) { }
 #endif

 /************************************************************************

(sorry for the wrapping, let me know if you need it as an attachment)

-- 
<Matt/>

    /||    ** Founder and CTO  **  **   http://axkit.com/     **
   //||    **  AxKit.com Ltd   **  ** XML Application Serving **
  // ||    ** http://axkit.org **  ** XSLT, XPathScript, XSP  **
 // \\| // ** mod_perl news and resources: http://take23.org  **
     \\//
     //\\
    //  \\





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]