blob: 26abeb491bff69a87fa6bcd6856898e41707bd7f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
|
/***************************************************************************
xsldbg.h - describe the application level functions
-------------------
begin : Sun Sep 16 2001
copyright : (C) 2001 by Keith Isdale
email : [email protected]
***************************************************************************/
/***************************************************************************
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
***************************************************************************/
#ifndef XSLDEBUGGER_H
#define XSLDEBUGGER_H
#ifdef USE_KDE_DOCS
/**
* Provide provide application level services and useful bits and pieces
*
* @short application functions and useful bits and pieces
*
* @author Keith Isdale <[email protected]>
*/
#endif
/* We want skip most of these includes when building documentation */
#ifndef BUILD_DOCS
#ifndef __riscos
# ifndef WIN32
# include "config.h"
/* we don't need to use dll declares for *nix based machines */
# define XSLDBG_SO_API
# else
/* dll declares get defined in xsldbgwin32config.h *nix based machines */
# include "xsldbgwin32config.h"
# endif
#else
/* we don't need to use dll declares for risc_os*/
# define XSLDBG_SO_API
# include "config_riscos.h"
# include "libxml/riscos.h"
#endif
#include <libxslt/xsltconfig.h>
#if !defined (FORCE_DEBUGGER) && (LIBXSLT_VERSION > 10019)
# ifndef WITH_XSLT_DEBUGGER
# ifndef WITH_DEBUGGER
# error "WITH_DEBUGGER MACRO not defined in libxslt maybe you've disable debugger in libxslt." \
"if your are sure then disable this check by defining WITH_FORCE_DEBUGGER. eg.\n" \
"\nmake CFLAGS=\"$CFLAGS -D FORCE_DEBUGGER\""
# endif
# endif
#endif
#ifdef WITH_XSLDBG_DEBUG
#ifndef WITH_XSLDBG_DEBUG_PROCESS
#define WITH_XSLDBG_DEBUG_PROCESS
#endif
#ifndef WITH_XSLDBG_DEBUG_BREAKPOINTS
#define WITH_XSLDBG_DEBUG_BREAKPOINTS
#endif
#endif /* end of WITH_XSL_DEBUG */
#include <libxslt/xslt.h>
#include <libexslt/exslt.h>
#include <libxslt/xsltutils.h>
#include <tqstring.h>
#include <klocale.h>
#include "breakpoint.h"
#endif /* BUILD_DOCS */
#ifdef __cplusplus
extern "C" {
#endif
#ifdef USE_GNOME_DOCS
/**
* xsldbgLoadStylesheet:
*
* Load the stylesheet and return it
*
* Returns the stylesheet after reloading it if successful
* NULL otherwise
*/
#else
#ifdef USE_KDE_DOCS
/**
* Load the stylesheet and return it
*
* @returns The stylesheet after reloading it if successful
* NULL otherwise
*/
#endif
#endif
xsltStylesheetPtr xsldbgLoadStylesheet(void);
#ifdef USE_GNOME_DOCS
/**
* xsldbgLoadXmlData:
*
* Load the xml data file and return it
*
* Returns the data file after reloading it if successful
* NULL otherwise
*/
#else
#ifdef USE_KDE_DOCS
/**
* Load the xml data file and return it
*
* @returns The stylesheet after reloading it if successful
* NULL otherwise
*/
#endif
#endif
xmlDocPtr xsldbgLoadXmlData(void);
#ifdef USE_GNOME_DOCS
/**
* xsldbgLoadXmlTemporary:
* @path: The name of temporary file to load
*
* Load the temporary data file and return it
*
* Returns The temporary file after reloading it if successful,
* NULL otherwise
*/
#else
#ifdef USE_KDE_DOCS
/**
* Load the temporary data file and return it
*
* @returns The temporary file after reloading it if successful,
* NULL otherwise
* @param path The name of temporary file to loa
*/
#endif
#endif
xmlDocPtr xsldbgLoadXmlTemporary(const xmlChar * path);
void xsldbgGenericErrorFunc(void *ctx, const char *msg, ...)
#ifdef __GNUC__
__attribute__ ( ( format ( printf, 2, 3 ) ) )
#endif
;
int xsldbgMain(int argc, char **argv);
#ifdef __cplusplus
}
#endif
void xsldbgGenericErrorFunc(TQString const &text);
TQString xsldbgUrl(const char *utf8Url);
TQString xsldbgUrl(const xmlChar *utf8Url);
TQString xsldbgText(const char *utf8Text);
TQString xsldbgText(const xmlChar *utf8Text);
#endif
|