xmlsetstructurederrorfunc_chdl.c
来自「图片显示,电脑光于望技术湖连望键往,网络」· C语言 代码 · 共 33 行
C
33 行
#include <libxml/xmlerror.h>#include <ch.h>//typedef void (*xmlStructuredErrorFunc) (void *userData, xmlErrorPtr error);static ChInterp_t interp;static void* xmlSetStructuredErrorFunc_funptr;static void xmlStructuredErrorFunc_funarg(void *userData, xmlErrorPtr error);EXPORTCH void xmlSetStructuredErrorFunc_chdl(void *varg) { va_list ap; void *ctx; xmlStructuredErrorFunc handler; Ch_VaStart(interp, ap, varg); ctx = Ch_VaArg(interp, ap, void *); handler = Ch_VaArg(interp, ap, xmlStructuredErrorFunc); if(handler != NULL) { xmlSetStructuredErrorFunc_funptr = (void *)handler; handler = (xmlStructuredErrorFunc)xmlStructuredErrorFunc_funarg; } xmlSetStructuredErrorFunc(ctx, handler); Ch_VaEnd(interp, ap);}static void xmlStructuredErrorFunc_funarg(void *userData, xmlErrorPtr error){ Ch_CallFuncByAddr(interp, xmlSetStructuredErrorFunc_funptr, NULL, userData, error); return;}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?