mirror of
https://gitlab.gnome.org/GNOME/libxslt
synced 2025-11-06 23:49:25 +03:00
Some infrastructure work, and of course some debug:
- TODO: more stuff - libxslt/transform.c: context position and size in for-each - libxslt/xsltutils[ch] libxslt/makefile.am: added the util module and put Error and Debug routines - libxslt/xslt.c libxslt/transform.c libxslt/pattern.c: switched to use the Debug calls, cleanup - libxslt/xsltproc.c: added -v to enable debug printing Daniel
This commit is contained in:
63
libxslt/xsltutils.h
Normal file
63
libxslt/xsltutils.h
Normal file
@@ -0,0 +1,63 @@
|
||||
/*
|
||||
* xsltutils.h: interfaces for the utilities module of the XSLT engine
|
||||
*
|
||||
* See Copyright for the status of this software.
|
||||
*
|
||||
* Daniel.Veillard@w3.org
|
||||
*/
|
||||
|
||||
#ifndef __XML_XSLTUTILS_H__
|
||||
#define __XML_XSLTUTILS_H__
|
||||
|
||||
#include <libxml/xpath.h>
|
||||
#include <libxml/xmlerror.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
/*
|
||||
* To cleanup
|
||||
*/
|
||||
xmlChar *xmlSplitQName2(const xmlChar *name, xmlChar **prefix);
|
||||
void xmlXPathBooleanFunction(xmlXPathParserContextPtr ctxt, int nargs);
|
||||
|
||||
/*
|
||||
* Useful macros
|
||||
*/
|
||||
|
||||
#define TODO \
|
||||
xsltGenericError(xsltGenericErrorContext, \
|
||||
"Unimplemented block at %s:%d\n", \
|
||||
__FILE__, __LINE__);
|
||||
|
||||
#define STRANGE \
|
||||
xsltGenericError(xsltGenericErrorContext, \
|
||||
"Internal error at %s:%d\n", \
|
||||
__FILE__, __LINE__);
|
||||
|
||||
#define IS_XSLT_ELEM(n) \
|
||||
((n)->ns != NULL) && (xmlStrEqual((n)->ns->href, XSLT_NAMESPACE))
|
||||
|
||||
#define IS_XSLT_NAME(n, val) \
|
||||
(xmlStrEqual((n)->name, (const xmlChar *) (val)))
|
||||
|
||||
|
||||
/*
|
||||
* XSLT specific error and debug reporting functions
|
||||
*/
|
||||
extern xmlGenericErrorFunc xsltGenericError;
|
||||
extern void *xsltGenericErrorContext;
|
||||
extern xmlGenericErrorFunc xsltGenericDebug;
|
||||
extern void *xsltGenericDebugContext;
|
||||
|
||||
void xsltSetGenericErrorFunc (void *ctx,
|
||||
xmlGenericErrorFunc handler);
|
||||
void xsltSetGenericDebugFunc (void *ctx,
|
||||
xmlGenericErrorFunc handler);
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif /* __XML_XSLTUTILS_H__ */
|
||||
|
||||
Reference in New Issue
Block a user