⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 parser_chdl_spec.c

📁 图片显示,电脑光于望技术湖连望键往,网络
💻 C
📖 第 1 页 / 共 5 页
字号:
         entityDecl_chdl_funptr = sax->entityDecl;
         sax_tmp.entityDecl = entityDecl_chdl_funarg;
      }else
         sax_tmp.entityDecl = NULL;
      if(sax->notationDecl){
         notationDecl_chdl_funptr = sax->notationDecl;
         sax_tmp.notationDecl = notationDecl_chdl_funarg;
      }else
         sax_tmp.notationDecl = NULL;
      if(sax->attributeDecl){
         attributeDecl_chdl_funptr = sax->attributeDecl;
         sax_tmp.attributeDecl = attributeDecl_chdl_funarg;
      }else
         sax_tmp.attributeDecl = NULL;
      if(sax->elementDecl){
         elementDecl_chdl_funptr = sax->elementDecl;
         sax_tmp.elementDecl = elementDecl_chdl_funarg;
      }else
         sax_tmp.elementDecl = NULL;
      if(sax->unparsedEntityDecl){
         unparsedEntityDecl_chdl_funptr = sax->unparsedEntityDecl;
         sax_tmp.unparsedEntityDecl = unparsedEntityDecl_chdl_funarg;
      }else
         sax_tmp.unparsedEntityDecl = NULL;
      if(sax->setDocumentLocator){
         setDocumentLocator_chdl_funptr = sax->setDocumentLocator;
         sax_tmp.setDocumentLocator = setDocumentLocator_chdl_funarg;
      }else
         sax_tmp.setDocumentLocator = NULL;
      if(sax->startDocument){
         startDocument_chdl_funptr = sax->startDocument;
         sax_tmp.startDocument = startDocument_chdl_funarg;
      }else
         sax_tmp.startDocument = NULL;
      if(sax->endDocument){
         endDocument_chdl_funptr = sax->endDocument;
         sax_tmp.endDocument = endDocument_chdl_funarg;
      }
         sax_tmp.endDocument = NULL;
      if(sax->startElement){
         startElement_chdl_funptr = sax->startElement;
         sax_tmp.startElement = startElement_chdl_funarg;
      }else
         sax_tmp.startElement = NULL;
      if(sax->endElement){
         endElement_chdl_funptr = sax->endElement;
         sax_tmp.endElement = endElement_chdl_funarg;
      }else
         sax_tmp.endElement = NULL;
      if(sax->reference){
         reference_chdl_funptr = sax->reference;
         sax_tmp.reference = reference_chdl_funarg;
      }else
         sax_tmp.reference = NULL;
      if(sax->characters){
         characters_chdl_funptr = sax->characters;
         sax_tmp.characters = characters_chdl_funarg;
      }else
         sax_tmp.characters = NULL;
      if(sax->ignorableWhitespace){
         ignorableWhitespace_chdl_funptr = sax->ignorableWhitespace;
         sax_tmp.ignorableWhitespace = ignorableWhitespace_chdl_funarg;
      }else
         sax_tmp.ignorableWhitespace = NULL;
      if(sax->processingInstruction){
         processingInstruction_chdl_funptr = sax->processingInstruction;
         sax_tmp.processingInstruction = processingInstruction_chdl_funarg;
      }else
         sax_tmp.processingInstruction = NULL;
      if(sax->comment){
         comment_chdl_funptr = sax->comment;
         sax_tmp.comment = comment_chdl_funarg;
      }else
         sax_tmp.comment = NULL;
      if(sax->warning){
         warning_chdl_funptr = sax->warning;
         sax_tmp.warning = warning_chdl_funarg;
      }else
         sax_tmp.warning = NULL;
      if(sax->error){
         error_chdl_funptr = sax->error;
         sax_tmp.error = error_chdl_funarg;
      }else
         sax_tmp.error = NULL;
      if(sax->fatalError){
         /* unused error() get all the errors */
         fatalError_chdl_funptr = sax->fatalError; 
         sax_tmp.fatalError = fatalError_chdl_funarg; 
      }else
         sax_tmp.fatalError = NULL;
      if(sax->getParameterEntity){
         getParameterEntity_chdl_funptr = sax->getParameterEntity;
         sax_tmp.getParameterEntity = getParameterEntity_chdl_funarg;
      }else
         sax_tmp.getParameterEntity = NULL;
      if(sax->cdataBlock){
         cdataBlock_chdl_funptr = sax->cdataBlock;
         sax_tmp.cdataBlock = cdataBlock_chdl_funarg;
      }else
         sax_tmp.cdataBlock = NULL;
      if(sax->externalSubset){
         externalSubset_chdl_funptr= sax->externalSubset;
         sax_tmp.externalSubset= externalSubset_chdl_funarg;
      }else
         sax_tmp.externalSubset= NULL;
      sax_tmp.initialized = sax->initialized; /*int*/
      sax_tmp._private = sax->_private;
      if(sax->startElementNs){
         startElementNs_chdl_funptr = sax->startElementNs;
         sax_tmp.startElementNs = startElementNs_chdl_funarg;
      }else
         sax_tmp.startElementNs = NULL;
      if(sax->endElementNs){
         endElementNs_chdl_funptr = sax->endElementNs;
         sax_tmp.endElementNs = endElementNs_chdl_funarg;
      }else
         sax_tmp.endElementNs = NULL;
      if(sax->serror){
         serror_chdl_funptr = sax->serror;
         sax_tmp.serror = serror_chdl_funarg;
      }
         sax_tmp.serror = NULL;
      sax_tmp_ptr = &sax_tmp;

	}else
      sax_tmp_ptr = NULL;
	
    filename = Ch_VaArg(interp, ap, char *);
    recovery = Ch_VaArg(interp, ap, int);
    retval = xmlSAXParseFile(sax_tmp_ptr, filename, recovery);
    Ch_VaEnd(interp, ap);
    return retval;
}

EXPORTCH xmlDocPtr xmlSAXParseFileWithData_chdl(void *varg) {
    va_list ap;
    xmlSAXHandlerPtr sax;
    xmlSAXHandler sax_tmp, *sax_tmp_ptr;
    char *filename;
    int recovery;
    void *data;
    xmlDocPtr retval;

    Ch_VaStart(interp, ap, varg);
    sax = Ch_VaArg(interp, ap, xmlSAXHandlerPtr);
    if(sax){
      sax_tmp = *sax;
      if(sax->internalSubset){
         internalSubset_chdl_funptr = sax->internalSubset;
         sax_tmp.internalSubset = internalSubset_chdl_funarg;
      }else
         sax_tmp.internalSubset = NULL;
      if(sax->isStandalone){
         isStandalone_chdl_funptr = sax->isStandalone;
         sax_tmp.isStandalone = isStandalone_chdl_funarg;
      }else
         sax_tmp.isStandalone = NULL; 
      if(sax->hasInternalSubset){
         hasInternalSubset_chdl_funptr = sax->hasInternalSubset;
         sax_tmp.hasInternalSubset = hasInternalSubset_chdl_funarg;
      }else
         sax_tmp.hasInternalSubset = NULL;
      if(sax->hasExternalSubset){
         hasExternalSubset_chdl_funptr = sax->hasExternalSubset;
         sax_tmp.hasExternalSubset = hasExternalSubset_chdl_funarg;
      }else
         sax_tmp.hasExternalSubset = NULL;
      if(sax->resolveEntity){
         resolveEntity_chdl_funptr = sax->resolveEntity;
         sax_tmp.resolveEntity = resolveEntity_chdl_funarg;
      }else
         sax_tmp.resolveEntity = NULL;
      if(sax->getEntity){
         getEntity_chdl_funptr = sax->getEntity;
         sax_tmp.getEntity = getEntity_chdl_funarg;
      }else
         sax_tmp.getEntity = NULL;
      if(sax->entityDecl){
         entityDecl_chdl_funptr = sax->entityDecl;
         sax_tmp.entityDecl = entityDecl_chdl_funarg;
      }else
         sax_tmp.entityDecl = NULL;
      if(sax->notationDecl){
         notationDecl_chdl_funptr = sax->notationDecl;
         sax_tmp.notationDecl = notationDecl_chdl_funarg;
      }else
         sax_tmp.notationDecl = NULL;
      if(sax->attributeDecl){
         attributeDecl_chdl_funptr = sax->attributeDecl;
         sax_tmp.attributeDecl = attributeDecl_chdl_funarg;
      }else
         sax_tmp.attributeDecl = NULL;
      if(sax->elementDecl){
         elementDecl_chdl_funptr = sax->elementDecl;
         sax_tmp.elementDecl = elementDecl_chdl_funarg;
      }else
         sax_tmp.elementDecl = NULL;
      if(sax->unparsedEntityDecl){
         unparsedEntityDecl_chdl_funptr = sax->unparsedEntityDecl;
         sax_tmp.unparsedEntityDecl = unparsedEntityDecl_chdl_funarg;
      }else
         sax_tmp.unparsedEntityDecl = NULL;
      if(sax->setDocumentLocator){
         setDocumentLocator_chdl_funptr = sax->setDocumentLocator;
         sax_tmp.setDocumentLocator = setDocumentLocator_chdl_funarg;
      }else
         sax_tmp.setDocumentLocator = NULL;
      if(sax->startDocument){
         startDocument_chdl_funptr = sax->startDocument;
         sax_tmp.startDocument = startDocument_chdl_funarg;
      }else
         sax_tmp.startDocument = NULL;
      if(sax->endDocument){
         endDocument_chdl_funptr = sax->endDocument;
         sax_tmp.endDocument = endDocument_chdl_funarg;
      }
         sax_tmp.endDocument = NULL;
      if(sax->startElement){
         startElement_chdl_funptr = sax->startElement;
         sax_tmp.startElement = startElement_chdl_funarg;
      }else
         sax_tmp.startElement = NULL;
      if(sax->endElement){
         endElement_chdl_funptr = sax->endElement;
         sax_tmp.endElement = endElement_chdl_funarg;
      }else
         sax_tmp.endElement = NULL;
      if(sax->reference){
         reference_chdl_funptr = sax->reference;
         sax_tmp.reference = reference_chdl_funarg;
      }else
         sax_tmp.reference = NULL;
      if(sax->characters){
         characters_chdl_funptr = sax->characters;
         sax_tmp.characters = characters_chdl_funarg;
      }else
         sax_tmp.characters = NULL;
      if(sax->ignorableWhitespace){
         ignorableWhitespace_chdl_funptr = sax->ignorableWhitespace;
         sax_tmp.ignorableWhitespace = ignorableWhitespace_chdl_funarg;
      }else
         sax_tmp.ignorableWhitespace = NULL;
      if(sax->processingInstruction){
         processingInstruction_chdl_funptr = sax->processingInstruction;
         sax_tmp.processingInstruction = processingInstruction_chdl_funarg;
      }else
         sax_tmp.processingInstruction = NULL;
      if(sax->comment){
         comment_chdl_funptr = sax->comment;
         sax_tmp.comment = comment_chdl_funarg;
      }else
         sax_tmp.comment = NULL;
      if(sax->warning){
         warning_chdl_funptr = sax->warning;
         sax_tmp.warning = warning_chdl_funarg;
      }else
         sax_tmp.warning = NULL;
      if(sax->error){
         error_chdl_funptr = sax->error;
         sax_tmp.error = error_chdl_funarg;
      }else
         sax_tmp.error = NULL;
      if(sax->fatalError){
         /* unused error() get all the errors */
         fatalError_chdl_funptr = sax->fatalError; 
         sax_tmp.fatalError = fatalError_chdl_funarg; 
      }else
         sax_tmp.fatalError = NULL;
      if(sax->getParameterEntity){
         getParameterEntity_chdl_funptr = sax->getParameterEntity;
         sax_tmp.getParameterEntity = getParameterEntity_chdl_funarg;
      }else
         sax_tmp.getParameterEntity = NULL;
      if(sax->cdataBlock){
         cdataBlock_chdl_funptr = sax->cdataBlock;
         sax_tmp.cdataBlock = cdataBlock_chdl_funarg;
      }else
         sax_tmp.cdataBlock = NULL;
      if(sax->externalSubset){
         externalSubset_chdl_funptr= sax->externalSubset;
         sax_tmp.externalSubset= externalSubset_chdl_funarg;
      }else
         sax_tmp.externalSubset= NULL;
      sax_tmp.initialized = sax->initialized; /*int*/
      sax_tmp._private = sax->_private;
      if(sax->startElementNs){
         startElementNs_chdl_funptr = sax->startElementNs;
         sax_tmp.startElementNs = startElementNs_chdl_funarg;
      }else
         sax_tmp.startElementNs = NULL;
      if(sax->endElementNs){
         endElementNs_chdl_funptr = sax->endElementNs;
         sax_tmp.endElementNs = endElementNs_chdl_funarg;
      }else
         sax_tmp.endElementNs = NULL;
      if(sax->serror){
         serror_chdl_funptr = sax->serror;
         sax_tmp.serror = serror_chdl_funarg;
      }
         sax_tmp.serror = NULL;
      sax_tmp_ptr = &sax_tmp;

	}else
      sax_tmp_ptr = NULL;
	
    filename = Ch_VaArg(interp, ap, char *);
    recovery = Ch_VaArg(interp, ap, int);
    data = Ch_VaArg(interp, ap, void *);
    retval = xmlSAXParseFileWithData(sax_tmp_ptr, filename, recovery, data);
    Ch_VaEnd(interp, ap);
    return retval;
}

EXPORTCH xmlDocPtr xmlSAXParseEntity_chdl(void *varg) {
    va_list ap;
    xmlSAXHandlerPtr sax;
    xmlSAXHandler sax_tmp, *sax_tmp_ptr;
    char *filename;
    xmlDocPtr retval;

    Ch_VaStart(interp, ap, varg);
    sax = Ch_VaArg(interp, ap, xmlSAXHandlerPtr);
    if(sax){
      sax_tmp = *sax;
      if(sax->internalSubset){
         internalSubset_chdl_funptr = sax->internalSubset;
         sax_tmp.internalSubset = internalSubset_chdl_funarg;
      }else
         sax_tmp.internalSubset = NULL;
      if(sax->isStandalone){
         isStandalone_chdl_funptr = sax->isStandalone;
         sax_tmp.isStandalone = isStandalone_chdl_funarg;
      }else
         sax_tmp.isStandalone = NULL; 
      if(sax->hasInternalSubset){
         hasInternalSubset_chdl_funptr = sax->hasInternalSubset;
         sax_tmp.hasInternalSubset = hasInternalSubset_chdl_funarg;
      }else
         sax_tmp.hasInternalSubset = NULL;
      if(sax->hasExternalSubset){
         hasExternalSubset_chdl_funptr = sax->hasExternalSubset;
         sax_tmp.hasExternalSubset = hasExternalSubset_chdl_funarg;
      }else
         sax_tmp.hasExternalSubset = NULL;
      if(sax->resolveEntity){

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -