📄 xmlsetstructurederrorfunc_chdl.c
字号:
#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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -