Diff for /XML/xpathInternals.h between versions 1.2 and 1.3

version 1.2, 2000/10/26 13:05:45 version 1.3, 2000/10/29 18:02:59
Line 38  extern "C" { Line 38  extern "C" {
   
 #define CHECK_TYPE(typeval)                                             \  #define CHECK_TYPE(typeval)                                             \
     if ((ctxt->value == NULL) || (ctxt->value->type != typeval))        \      if ((ctxt->value == NULL) || (ctxt->value->type != typeval))        \
         XP_ERROR(XPATH_INVALID_TYPE)                                    \          XP_ERROR(XPATH_INVALID_TYPE)
   
 #define CHECK_ARITY(x)                                                  \  #define CHECK_ARITY(x)                                                  \
     if (nargs != (x)) {                                                 \      if (nargs != (x))                                                   \
         XP_ERROR(XPATH_INVALID_ARITY);                                  \          XP_ERROR(XPATH_INVALID_ARITY);
     }                                                                   \  
   #define CAST_TO_STRING                                                  \
       if ((ctxt->value != NULL) && (ctxt->value->type != XPATH_STRING))   \
           xmlXPathStringFunction(ctxt, 1);
   
   #define CAST_TO_NUMBER                                                  \
       if ((ctxt->value != NULL) && (ctxt->value->type != XPATH_NUMBER))   \
           xmlXPathNumberFunction(ctxt, 1);
   
   #define CAST_TO_BOOLEAN                                                 \
       if ((ctxt->value != NULL) && (ctxt->value->type != XPATH_BOOLEAN))  \
           xmlXPathBooleanFunction(ctxt, 1);
   
 void            xmlXPatherror   (xmlXPathParserContextPtr ctxt,  void            xmlXPatherror   (xmlXPathParserContextPtr ctxt,
                                  const char *file,                                   const char *file,
Line 60  void  xmlXPathDebugDumpObject (FILE *out Line 71  void  xmlXPathDebugDumpObject (FILE *out
 int                xmlXPathRegisterFunc         (xmlXPathContextPtr ctxt,  int                xmlXPathRegisterFunc         (xmlXPathContextPtr ctxt,
                                                  const xmlChar *name,                                                   const xmlChar *name,
                                                  xmlXPathFunction f);                                                   xmlXPathFunction f);
   int                xmlXPathRegisterFuncNS       (xmlXPathContextPtr ctxt,
                                                    const xmlChar *name,
                                                    const xmlChar *ns_uri,
                                                    xmlXPathFunction f);
 int                xmlXPathRegisterVariable     (xmlXPathContextPtr ctxt,  int                xmlXPathRegisterVariable     (xmlXPathContextPtr ctxt,
                                                  const xmlChar *name,                                                   const xmlChar *name,
                                                  xmlXPathObjectPtr value);                                                   xmlXPathObjectPtr value);
   int                xmlXPathRegisterVariableNS   (xmlXPathContextPtr ctxt,
                                                    const xmlChar *name,
                                                    const xmlChar *ns_uri,
                                                    xmlXPathObjectPtr value);
 xmlXPathFunction   xmlXPathFunctionLookup       (xmlXPathContextPtr ctxt,  xmlXPathFunction   xmlXPathFunctionLookup       (xmlXPathContextPtr ctxt,
                                                  const xmlChar *name);                                                   const xmlChar *name);
   xmlXPathFunction   xmlXPathFunctionLookupNS     (xmlXPathContextPtr ctxt,
                                                    const xmlChar *name,
                                                    const xmlChar *ns_uri);
 void               xmlXPathRegisteredFuncsCleanup(xmlXPathContextPtr ctxt);  void               xmlXPathRegisteredFuncsCleanup(xmlXPathContextPtr ctxt);
 xmlXPathObjectPtr  xmlXPathVariableLookup       (xmlXPathContextPtr ctxt,  xmlXPathObjectPtr  xmlXPathVariableLookup       (xmlXPathContextPtr ctxt,
                                                  const xmlChar *name);                                                   const xmlChar *name);
   xmlXPathObjectPtr  xmlXPathVariableLookupNS     (xmlXPathContextPtr ctxt,
                                                    const xmlChar *name,
                                                    const xmlChar *ns_uri);
 void               xmlXPathRegisteredVariablesCleanup(xmlXPathContextPtr ctxt);  void               xmlXPathRegisteredVariablesCleanup(xmlXPathContextPtr ctxt);
   
 /**  /**

Removed from v.1.2  
changed lines
  Added in v.1.3


Webmaster