content_server 1.3.1 → 1.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/lib/content_data/content_data.rb +194 -56
- data/lib/content_data/version.rb +1 -1
- data/lib/content_server/backup_server.rb +4 -27
- data/lib/content_server/content_server.rb +3 -27
- data/lib/content_server/file_streamer.rb +2 -0
- data/lib/content_server/remote_content.rb +1 -2
- data/lib/content_server/server.rb +23 -3
- data/lib/content_server/version.rb +1 -1
- data/lib/email/version.rb +1 -1
- data/lib/file_copy/version.rb +1 -1
- data/lib/file_indexing/index_agent.rb +1 -1
- data/lib/file_indexing/version.rb +1 -1
- data/lib/file_monitoring/file_monitoring.rb +45 -32
- data/lib/file_monitoring/monitor_path.rb +219 -181
- data/lib/file_monitoring/version.rb +1 -1
- data/lib/file_utils/file_generator/file_generator.rb +1 -1
- data/lib/file_utils/file_utils.rb +2 -2
- data/lib/file_utils/version.rb +1 -1
- data/lib/log/version.rb +1 -1
- data/lib/networking/version.rb +1 -1
- data/lib/params/version.rb +1 -1
- data/lib/process_monitoring/version.rb +1 -1
- data/lib/run_in_background/version.rb +1 -1
- data/lib/testing_memory/testing_memory.rb +1 -1
- data/lib/testing_server/testing_server.rb +1 -1
- data/lib/testing_server/version.rb +1 -1
- data/spec/content_data/validations_spec.rb +2 -2
- data/spec/content_server/file_streamer_spec.rb +5 -0
- data/spec/networking/tcp_spec.rb +1 -3
- data/spec/validations/index_validations_spec.rb +2 -2
- data/test/content_data/content_data_test.rb +8 -7
- data/test/file_generator/file_generator_spec.rb +3 -2
- data/test/file_monitoring/monitor_path_test.rb +38 -4
- data/test/file_utils/fileutil_mksymlink_test.rb +9 -0
- data/test/file_utils/time_modification_test.rb +6 -2
- data/test/run_in_background/test_app +17 -15
- metadata +2 -93
- data/lib/content_server/queue_indexer.rb +0 -86
- data/test/file_indexing/index_agent_test.rb +0 -51
- data/test/file_indexing/index_agent_test/New.txt +0 -0
- data/test/file_indexing/index_agent_test/libxslt-1.1.26.win32/bin/libexslt.dll +0 -0
- data/test/file_indexing/index_agent_test/libxslt-1.1.26.win32/bin/libxslt.dll +0 -0
- data/test/file_indexing/index_agent_test/libxslt-1.1.26.win32/bin/xsltproc.exe +0 -0
- data/test/file_indexing/index_agent_test/libxslt-1.1.26.win32/include/libexslt/exslt.h +0 -102
- data/test/file_indexing/index_agent_test/libxslt-1.1.26.win32/include/libexslt/exsltconfig.h +0 -73
- data/test/file_indexing/index_agent_test/libxslt-1.1.26.win32/include/libexslt/exsltexports.h +0 -140
- data/test/file_indexing/index_agent_test/libxslt-1.1.26.win32/include/libexslt/libexslt.h +0 -29
- data/test/file_indexing/index_agent_test/libxslt-1.1.26.win32/include/libxslt/attributes.h +0 -38
- data/test/file_indexing/index_agent_test/libxslt-1.1.26.win32/include/libxslt/documents.h +0 -93
- data/test/file_indexing/index_agent_test/libxslt-1.1.26.win32/include/libxslt/extensions.h +0 -262
- data/test/file_indexing/index_agent_test/libxslt-1.1.26.win32/include/libxslt/extra.h +0 -80
- data/test/file_indexing/index_agent_test/libxslt-1.1.26.win32/include/libxslt/functions.h +0 -78
- data/test/file_indexing/index_agent_test/libxslt-1.1.26.win32/include/libxslt/imports.h +0 -75
- data/test/file_indexing/index_agent_test/libxslt-1.1.26.win32/include/libxslt/keys.h +0 -53
- data/test/file_indexing/index_agent_test/libxslt-1.1.26.win32/include/libxslt/libxslt.h +0 -30
- data/test/file_indexing/index_agent_test/libxslt-1.1.26.win32/include/libxslt/namespaces.h +0 -68
- data/test/file_indexing/index_agent_test/libxslt-1.1.26.win32/include/libxslt/numbersInternals.h +0 -69
- data/test/file_indexing/index_agent_test/libxslt-1.1.26.win32/include/libxslt/pattern.h +0 -81
- data/test/file_indexing/index_agent_test/libxslt-1.1.26.win32/include/libxslt/preproc.h +0 -43
- data/test/file_indexing/index_agent_test/libxslt-1.1.26.win32/include/libxslt/security.h +0 -104
- data/test/file_indexing/index_agent_test/libxslt-1.1.26.win32/include/libxslt/templates.h +0 -77
- data/test/file_indexing/index_agent_test/libxslt-1.1.26.win32/include/libxslt/transform.h +0 -207
- data/test/file_indexing/index_agent_test/libxslt-1.1.26.win32/include/libxslt/trio.h +0 -216
- data/test/file_indexing/index_agent_test/libxslt-1.1.26.win32/include/libxslt/triodef.h +0 -220
- data/test/file_indexing/index_agent_test/libxslt-1.1.26.win32/include/libxslt/variables.h +0 -91
- data/test/file_indexing/index_agent_test/libxslt-1.1.26.win32/include/libxslt/win32config.h +0 -101
- data/test/file_indexing/index_agent_test/libxslt-1.1.26.win32/include/libxslt/xslt.h +0 -103
- data/test/file_indexing/index_agent_test/libxslt-1.1.26.win32/include/libxslt/xsltInternals.h +0 -1967
- data/test/file_indexing/index_agent_test/libxslt-1.1.26.win32/include/libxslt/xsltconfig.h +0 -172
- data/test/file_indexing/index_agent_test/libxslt-1.1.26.win32/include/libxslt/xsltexports.h +0 -142
- data/test/file_indexing/index_agent_test/libxslt-1.1.26.win32/include/libxslt/xsltlocale.h +0 -57
- data/test/file_indexing/index_agent_test/libxslt-1.1.26.win32/include/libxslt/xsltutils.h +0 -309
- data/test/file_indexing/index_agent_test/libxslt-1.1.26.win32/include/libxslt/xsltwin32config.h +0 -105
- data/test/file_indexing/index_agent_test/libxslt-1.1.26.win32/lib/libexslt.lib +0 -0
- data/test/file_indexing/index_agent_test/libxslt-1.1.26.win32/lib/libexslt_a.lib +0 -0
- data/test/file_indexing/index_agent_test/libxslt-1.1.26.win32/lib/libxslt.lib +0 -0
- data/test/file_indexing/index_agent_test/libxslt-1.1.26.win32/lib/libxslt_a.lib +0 -0
- data/test/file_indexing/index_agent_test/libxslt-1.1.26.win32/readme.txt +0 -22
- data/test/file_indexing/index_agent_test/patterns.input +0 -3
- data/test/file_monitoring/file_monitoring_test.rb +0 -0
- data/test/file_monitoring/file_monitoring_test/conf.yml +0 -4
- data/test/file_monitoring/file_monitoring_test/conf_win32.yml +0 -5
- data/test/file_monitoring/file_monitoring_test/log +0 -56
|
@@ -1,220 +0,0 @@
|
|
|
1
|
-
/*************************************************************************
|
|
2
|
-
*
|
|
3
|
-
* $Id$
|
|
4
|
-
*
|
|
5
|
-
* Copyright (C) 2001 Bjorn Reese <breese@users.sourceforge.net>
|
|
6
|
-
*
|
|
7
|
-
* Permission to use, copy, modify, and distribute this software for any
|
|
8
|
-
* purpose with or without fee is hereby granted, provided that the above
|
|
9
|
-
* copyright notice and this permission notice appear in all copies.
|
|
10
|
-
*
|
|
11
|
-
* THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR IMPLIED
|
|
12
|
-
* WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF
|
|
13
|
-
* MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE AUTHORS AND
|
|
14
|
-
* CONTRIBUTORS ACCEPT NO RESPONSIBILITY IN ANY CONCEIVABLE MANNER.
|
|
15
|
-
*
|
|
16
|
-
************************************************************************/
|
|
17
|
-
|
|
18
|
-
#ifndef TRIO_TRIODEF_H
|
|
19
|
-
#define TRIO_TRIODEF_H
|
|
20
|
-
|
|
21
|
-
/*************************************************************************
|
|
22
|
-
* Platform and compiler support detection
|
|
23
|
-
*/
|
|
24
|
-
#if defined(__GNUC__)
|
|
25
|
-
# define TRIO_COMPILER_GCC
|
|
26
|
-
#elif defined(__SUNPRO_C)
|
|
27
|
-
# define TRIO_COMPILER_SUNPRO
|
|
28
|
-
#elif defined(__SUNPRO_CC)
|
|
29
|
-
# define TRIO_COMPILER_SUNPRO
|
|
30
|
-
# define __SUNPRO_C __SUNPRO_CC
|
|
31
|
-
#elif defined(__xlC__) || defined(__IBMC__) || defined(__IBMCPP__)
|
|
32
|
-
# define TRIO_COMPILER_XLC
|
|
33
|
-
#elif defined(_AIX) && !defined(__GNUC__)
|
|
34
|
-
# define TRIO_COMPILER_XLC /* Workaround for old xlc */
|
|
35
|
-
#elif defined(__DECC) || defined(__DECCXX)
|
|
36
|
-
# define TRIO_COMPILER_DECC
|
|
37
|
-
#elif defined(__osf__) && defined(__LANGUAGE_C__)
|
|
38
|
-
# define TRIO_COMPILER_DECC /* Workaround for old DEC C compilers */
|
|
39
|
-
#elif defined(_MSC_VER)
|
|
40
|
-
# define TRIO_COMPILER_MSVC
|
|
41
|
-
#elif defined(__BORLANDC__)
|
|
42
|
-
# define TRIO_COMPILER_BCB
|
|
43
|
-
#endif
|
|
44
|
-
|
|
45
|
-
#if defined(VMS) || defined(__VMS)
|
|
46
|
-
/*
|
|
47
|
-
* VMS is placed first to avoid identifying the platform as Unix
|
|
48
|
-
* based on the DECC compiler later on.
|
|
49
|
-
*/
|
|
50
|
-
# define TRIO_PLATFORM_VMS
|
|
51
|
-
#elif defined(unix) || defined(__unix) || defined(__unix__)
|
|
52
|
-
# define TRIO_PLATFORM_UNIX
|
|
53
|
-
#elif defined(TRIO_COMPILER_XLC) || defined(_AIX)
|
|
54
|
-
# define TRIO_PLATFORM_UNIX
|
|
55
|
-
#elif defined(TRIO_COMPILER_DECC) || defined(__osf___)
|
|
56
|
-
# define TRIO_PLATFORM_UNIX
|
|
57
|
-
#elif defined(__NetBSD__)
|
|
58
|
-
# define TRIO_PLATFORM_UNIX
|
|
59
|
-
#elif defined(__QNX__)
|
|
60
|
-
# define TRIO_PLATFORM_UNIX
|
|
61
|
-
# define TRIO_PLATFORM_QNX
|
|
62
|
-
#elif defined(__CYGWIN__)
|
|
63
|
-
# define TRIO_PLATFORM_UNIX
|
|
64
|
-
#elif defined(AMIGA) && defined(TRIO_COMPILER_GCC)
|
|
65
|
-
# define TRIO_PLATFORM_UNIX
|
|
66
|
-
#elif defined(TRIO_COMPILER_MSVC) || defined(WIN32) || defined(_WIN32)
|
|
67
|
-
# define TRIO_PLATFORM_WIN32
|
|
68
|
-
#elif defined(mpeix) || defined(__mpexl)
|
|
69
|
-
# define TRIO_PLATFORM_MPEIX
|
|
70
|
-
#endif
|
|
71
|
-
|
|
72
|
-
#if defined(_AIX)
|
|
73
|
-
# define TRIO_PLATFORM_AIX
|
|
74
|
-
#elif defined(__hpux)
|
|
75
|
-
# define TRIO_PLATFORM_HPUX
|
|
76
|
-
#elif defined(sun) || defined(__sun__)
|
|
77
|
-
# if defined(__SVR4) || defined(__svr4__)
|
|
78
|
-
# define TRIO_PLATFORM_SOLARIS
|
|
79
|
-
# else
|
|
80
|
-
# define TRIO_PLATFORM_SUNOS
|
|
81
|
-
# endif
|
|
82
|
-
#endif
|
|
83
|
-
|
|
84
|
-
#if defined(__STDC__) || defined(TRIO_COMPILER_MSVC) || defined(TRIO_COMPILER_BCB)
|
|
85
|
-
# define TRIO_COMPILER_SUPPORTS_C89
|
|
86
|
-
# if defined(__STDC_VERSION__)
|
|
87
|
-
# define TRIO_COMPILER_SUPPORTS_C90
|
|
88
|
-
# if (__STDC_VERSION__ >= 199409L)
|
|
89
|
-
# define TRIO_COMPILER_SUPPORTS_C94
|
|
90
|
-
# endif
|
|
91
|
-
# if (__STDC_VERSION__ >= 199901L)
|
|
92
|
-
# define TRIO_COMPILER_SUPPORTS_C99
|
|
93
|
-
# endif
|
|
94
|
-
# elif defined(TRIO_COMPILER_SUNPRO)
|
|
95
|
-
# if (__SUNPRO_C >= 0x420)
|
|
96
|
-
# define TRIO_COMPILER_SUPPORTS_C94
|
|
97
|
-
# endif
|
|
98
|
-
# endif
|
|
99
|
-
#endif
|
|
100
|
-
|
|
101
|
-
#if defined(_XOPEN_SOURCE)
|
|
102
|
-
# if defined(_XOPEN_SOURCE_EXTENDED)
|
|
103
|
-
# define TRIO_COMPILER_SUPPORTS_UNIX95
|
|
104
|
-
# endif
|
|
105
|
-
# if (_XOPEN_VERSION >= 500)
|
|
106
|
-
# define TRIO_COMPILER_SUPPORTS_UNIX98
|
|
107
|
-
# endif
|
|
108
|
-
# if (_XOPEN_VERSION >= 600)
|
|
109
|
-
# define TRIO_COMPILER_SUPPORTS_UNIX01
|
|
110
|
-
# endif
|
|
111
|
-
#endif
|
|
112
|
-
|
|
113
|
-
/*************************************************************************
|
|
114
|
-
* Generic defines
|
|
115
|
-
*/
|
|
116
|
-
|
|
117
|
-
#if !defined(TRIO_PUBLIC)
|
|
118
|
-
# define TRIO_PUBLIC
|
|
119
|
-
#endif
|
|
120
|
-
#if !defined(TRIO_PRIVATE)
|
|
121
|
-
# define TRIO_PRIVATE static
|
|
122
|
-
#endif
|
|
123
|
-
|
|
124
|
-
#if !(defined(TRIO_COMPILER_SUPPORTS_C89) || defined(__cplusplus))
|
|
125
|
-
# define TRIO_COMPILER_ANCIENT
|
|
126
|
-
#endif
|
|
127
|
-
|
|
128
|
-
#if defined(TRIO_COMPILER_ANCIENT)
|
|
129
|
-
# define TRIO_CONST
|
|
130
|
-
# define TRIO_VOLATILE
|
|
131
|
-
# define TRIO_SIGNED
|
|
132
|
-
typedef double trio_long_double_t;
|
|
133
|
-
typedef char * trio_pointer_t;
|
|
134
|
-
# define TRIO_SUFFIX_LONG(x) x
|
|
135
|
-
# define TRIO_PROTO(x) ()
|
|
136
|
-
# define TRIO_NOARGS
|
|
137
|
-
# define TRIO_ARGS1(list,a1) list a1;
|
|
138
|
-
# define TRIO_ARGS2(list,a1,a2) list a1; a2;
|
|
139
|
-
# define TRIO_ARGS3(list,a1,a2,a3) list a1; a2; a3;
|
|
140
|
-
# define TRIO_ARGS4(list,a1,a2,a3,a4) list a1; a2; a3; a4;
|
|
141
|
-
# define TRIO_ARGS5(list,a1,a2,a3,a4,a5) list a1; a2; a3; a4; a5;
|
|
142
|
-
# define TRIO_ARGS6(list,a1,a2,a3,a4,a5,a6) list a1; a2; a3; a4; a5; a6;
|
|
143
|
-
# define TRIO_VARGS2(list,a1,a2) list a1; a2
|
|
144
|
-
# define TRIO_VARGS3(list,a1,a2,a3) list a1; a2; a3
|
|
145
|
-
# define TRIO_VARGS4(list,a1,a2,a3,a4) list a1; a2; a3; a4
|
|
146
|
-
# define TRIO_VARGS5(list,a1,a2,a3,a4,a5) list a1; a2; a3; a4; a5
|
|
147
|
-
# define TRIO_VA_DECL va_dcl
|
|
148
|
-
# define TRIO_VA_START(x,y) va_start(x)
|
|
149
|
-
# define TRIO_VA_END(x) va_end(x)
|
|
150
|
-
#else /* ANSI C */
|
|
151
|
-
# define TRIO_CONST const
|
|
152
|
-
# define TRIO_VOLATILE volatile
|
|
153
|
-
# define TRIO_SIGNED signed
|
|
154
|
-
typedef long double trio_long_double_t;
|
|
155
|
-
typedef void * trio_pointer_t;
|
|
156
|
-
# define TRIO_SUFFIX_LONG(x) x ## L
|
|
157
|
-
# define TRIO_PROTO(x) x
|
|
158
|
-
# define TRIO_NOARGS void
|
|
159
|
-
# define TRIO_ARGS1(list,a1) (a1)
|
|
160
|
-
# define TRIO_ARGS2(list,a1,a2) (a1,a2)
|
|
161
|
-
# define TRIO_ARGS3(list,a1,a2,a3) (a1,a2,a3)
|
|
162
|
-
# define TRIO_ARGS4(list,a1,a2,a3,a4) (a1,a2,a3,a4)
|
|
163
|
-
# define TRIO_ARGS5(list,a1,a2,a3,a4,a5) (a1,a2,a3,a4,a5)
|
|
164
|
-
# define TRIO_ARGS6(list,a1,a2,a3,a4,a5,a6) (a1,a2,a3,a4,a5,a6)
|
|
165
|
-
# define TRIO_VARGS2 TRIO_ARGS2
|
|
166
|
-
# define TRIO_VARGS3 TRIO_ARGS3
|
|
167
|
-
# define TRIO_VARGS4 TRIO_ARGS4
|
|
168
|
-
# define TRIO_VARGS5 TRIO_ARGS5
|
|
169
|
-
# define TRIO_VA_DECL ...
|
|
170
|
-
# define TRIO_VA_START(x,y) va_start(x,y)
|
|
171
|
-
# define TRIO_VA_END(x) va_end(x)
|
|
172
|
-
#endif
|
|
173
|
-
|
|
174
|
-
#if defined(TRIO_COMPILER_SUPPORTS_C99) || defined(__cplusplus)
|
|
175
|
-
# define TRIO_INLINE inline
|
|
176
|
-
#elif defined(TRIO_COMPILER_GCC)
|
|
177
|
-
# define TRIO_INLINE __inline__
|
|
178
|
-
#elif defined(TRIO_COMPILER_MSVC)
|
|
179
|
-
# define TRIO_INLINE _inline
|
|
180
|
-
#elif defined(TRIO_COMPILER_BCB)
|
|
181
|
-
# define TRIO_INLINE __inline
|
|
182
|
-
#else
|
|
183
|
-
# define TRIO_INLINE
|
|
184
|
-
#endif
|
|
185
|
-
|
|
186
|
-
/*************************************************************************
|
|
187
|
-
* Workarounds
|
|
188
|
-
*/
|
|
189
|
-
|
|
190
|
-
#if defined(TRIO_PLATFORM_VMS)
|
|
191
|
-
/*
|
|
192
|
-
* Computations done with constants at compile time can trigger these
|
|
193
|
-
* even when compiling with IEEE enabled.
|
|
194
|
-
*/
|
|
195
|
-
# pragma message disable (UNDERFLOW, FLOATOVERFL)
|
|
196
|
-
|
|
197
|
-
# if (__CRTL_VER < 80000000)
|
|
198
|
-
/*
|
|
199
|
-
* Although the compiler supports C99 language constructs, the C
|
|
200
|
-
* run-time library does not contain all C99 functions.
|
|
201
|
-
*
|
|
202
|
-
* This was the case for 70300022. Update the 80000000 value when
|
|
203
|
-
* it has been accurately determined what version of the library
|
|
204
|
-
* supports C99.
|
|
205
|
-
*/
|
|
206
|
-
# if defined(TRIO_COMPILER_SUPPORTS_C99)
|
|
207
|
-
# undef TRIO_COMPILER_SUPPORTS_C99
|
|
208
|
-
# endif
|
|
209
|
-
# endif
|
|
210
|
-
#endif
|
|
211
|
-
|
|
212
|
-
/*
|
|
213
|
-
* Not all preprocessors supports the LL token.
|
|
214
|
-
*/
|
|
215
|
-
#if defined(TRIO_COMPILER_BCB)
|
|
216
|
-
#else
|
|
217
|
-
# define TRIO_COMPILER_SUPPORTS_LL
|
|
218
|
-
#endif
|
|
219
|
-
|
|
220
|
-
#endif /* TRIO_TRIODEF_H */
|
|
@@ -1,91 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Summary: interface for the variable matching and lookup.
|
|
3
|
-
* Description: interface for the variable matching and lookup.
|
|
4
|
-
*
|
|
5
|
-
* Copy: See Copyright for the status of this software.
|
|
6
|
-
*
|
|
7
|
-
* Author: Daniel Veillard
|
|
8
|
-
*/
|
|
9
|
-
|
|
10
|
-
#ifndef __XML_XSLT_VARIABLES_H__
|
|
11
|
-
#define __XML_XSLT_VARIABLES_H__
|
|
12
|
-
|
|
13
|
-
#include <libxml/xpath.h>
|
|
14
|
-
#include <libxml/xpathInternals.h>
|
|
15
|
-
#include "xsltexports.h"
|
|
16
|
-
#include "xsltInternals.h"
|
|
17
|
-
#include "functions.h"
|
|
18
|
-
|
|
19
|
-
#ifdef __cplusplus
|
|
20
|
-
extern "C" {
|
|
21
|
-
#endif
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
* XSLT_REGISTER_VARIABLE_LOOKUP:
|
|
26
|
-
*
|
|
27
|
-
* Registering macro, not general purpose at all but used in different modules.
|
|
28
|
-
*/
|
|
29
|
-
|
|
30
|
-
#define XSLT_REGISTER_VARIABLE_LOOKUP(ctxt) \
|
|
31
|
-
xmlXPathRegisterVariableLookup((ctxt)->xpathCtxt, \
|
|
32
|
-
xsltXPathVariableLookup, (void *)(ctxt)); \
|
|
33
|
-
xsltRegisterAllFunctions((ctxt)->xpathCtxt); \
|
|
34
|
-
xsltRegisterAllElement(ctxt); \
|
|
35
|
-
(ctxt)->xpathCtxt->extra = ctxt
|
|
36
|
-
|
|
37
|
-
/*
|
|
38
|
-
* Interfaces for the variable module.
|
|
39
|
-
*/
|
|
40
|
-
|
|
41
|
-
XSLTPUBFUN int XSLTCALL
|
|
42
|
-
xsltEvalGlobalVariables (xsltTransformContextPtr ctxt);
|
|
43
|
-
XSLTPUBFUN int XSLTCALL
|
|
44
|
-
xsltEvalUserParams (xsltTransformContextPtr ctxt,
|
|
45
|
-
const char **params);
|
|
46
|
-
XSLTPUBFUN int XSLTCALL
|
|
47
|
-
xsltQuoteUserParams (xsltTransformContextPtr ctxt,
|
|
48
|
-
const char **params);
|
|
49
|
-
XSLTPUBFUN int XSLTCALL
|
|
50
|
-
xsltEvalOneUserParam (xsltTransformContextPtr ctxt,
|
|
51
|
-
const xmlChar * name,
|
|
52
|
-
const xmlChar * value);
|
|
53
|
-
XSLTPUBFUN int XSLTCALL
|
|
54
|
-
xsltQuoteOneUserParam (xsltTransformContextPtr ctxt,
|
|
55
|
-
const xmlChar * name,
|
|
56
|
-
const xmlChar * value);
|
|
57
|
-
|
|
58
|
-
XSLTPUBFUN void XSLTCALL
|
|
59
|
-
xsltParseGlobalVariable (xsltStylesheetPtr style,
|
|
60
|
-
xmlNodePtr cur);
|
|
61
|
-
XSLTPUBFUN void XSLTCALL
|
|
62
|
-
xsltParseGlobalParam (xsltStylesheetPtr style,
|
|
63
|
-
xmlNodePtr cur);
|
|
64
|
-
XSLTPUBFUN void XSLTCALL
|
|
65
|
-
xsltParseStylesheetVariable (xsltTransformContextPtr ctxt,
|
|
66
|
-
xmlNodePtr cur);
|
|
67
|
-
XSLTPUBFUN void XSLTCALL
|
|
68
|
-
xsltParseStylesheetParam (xsltTransformContextPtr ctxt,
|
|
69
|
-
xmlNodePtr cur);
|
|
70
|
-
XSLTPUBFUN xsltStackElemPtr XSLTCALL
|
|
71
|
-
xsltParseStylesheetCallerParam (xsltTransformContextPtr ctxt,
|
|
72
|
-
xmlNodePtr cur);
|
|
73
|
-
XSLTPUBFUN int XSLTCALL
|
|
74
|
-
xsltAddStackElemList (xsltTransformContextPtr ctxt,
|
|
75
|
-
xsltStackElemPtr elems);
|
|
76
|
-
XSLTPUBFUN void XSLTCALL
|
|
77
|
-
xsltFreeGlobalVariables (xsltTransformContextPtr ctxt);
|
|
78
|
-
XSLTPUBFUN xmlXPathObjectPtr XSLTCALL
|
|
79
|
-
xsltVariableLookup (xsltTransformContextPtr ctxt,
|
|
80
|
-
const xmlChar *name,
|
|
81
|
-
const xmlChar *ns_uri);
|
|
82
|
-
XSLTPUBFUN xmlXPathObjectPtr XSLTCALL
|
|
83
|
-
xsltXPathVariableLookup (void *ctxt,
|
|
84
|
-
const xmlChar *name,
|
|
85
|
-
const xmlChar *ns_uri);
|
|
86
|
-
#ifdef __cplusplus
|
|
87
|
-
}
|
|
88
|
-
#endif
|
|
89
|
-
|
|
90
|
-
#endif /* __XML_XSLT_VARIABLES_H__ */
|
|
91
|
-
|
|
@@ -1,101 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Summary: Windows configuration header
|
|
3
|
-
* Description: Windows configuration header
|
|
4
|
-
*
|
|
5
|
-
* Copy: See Copyright for the status of this software.
|
|
6
|
-
*
|
|
7
|
-
* Author: Igor Zlatkovic
|
|
8
|
-
*/
|
|
9
|
-
#ifndef __LIBXSLT_WIN32_CONFIG__
|
|
10
|
-
#define __LIBXSLT_WIN32_CONFIG__
|
|
11
|
-
|
|
12
|
-
#define HAVE_CTYPE_H 1
|
|
13
|
-
#define HAVE_STDLIB_H 1
|
|
14
|
-
#define HAVE_STDARG_H 1
|
|
15
|
-
#define HAVE_MALLOC_H 1
|
|
16
|
-
#define HAVE_TIME_H 1
|
|
17
|
-
#define HAVE_LOCALTIME 1
|
|
18
|
-
#define HAVE_GMTIME 1
|
|
19
|
-
#define HAVE_TIME 1
|
|
20
|
-
#define HAVE_MATH_H 1
|
|
21
|
-
#define HAVE_FCNTL_H 1
|
|
22
|
-
|
|
23
|
-
#include <io.h>
|
|
24
|
-
|
|
25
|
-
#define HAVE_ISINF
|
|
26
|
-
#define HAVE_ISNAN
|
|
27
|
-
|
|
28
|
-
#include <math.h>
|
|
29
|
-
#if defined _MSC_VER || defined __MINGW32__
|
|
30
|
-
/* MS C-runtime has functions which can be used in order to determine if
|
|
31
|
-
a given floating-point variable contains NaN, (+-)INF. These are
|
|
32
|
-
preferred, because floating-point technology is considered propriatary
|
|
33
|
-
by MS and we can assume that their functions know more about their
|
|
34
|
-
oddities than we do. */
|
|
35
|
-
#include <float.h>
|
|
36
|
-
/* Bjorn Reese figured a quite nice construct for isinf() using the
|
|
37
|
-
_fpclass() function. */
|
|
38
|
-
#ifndef isinf
|
|
39
|
-
#define isinf(d) ((_fpclass(d) == _FPCLASS_PINF) ? 1 \
|
|
40
|
-
: ((_fpclass(d) == _FPCLASS_NINF) ? -1 : 0))
|
|
41
|
-
#endif
|
|
42
|
-
/* _isnan(x) returns nonzero if (x == NaN) and zero otherwise. */
|
|
43
|
-
#ifndef isnan
|
|
44
|
-
#define isnan(d) (_isnan(d))
|
|
45
|
-
#endif
|
|
46
|
-
#else /* _MSC_VER */
|
|
47
|
-
static int isinf (double d) {
|
|
48
|
-
int expon = 0;
|
|
49
|
-
double val = frexp (d, &expon);
|
|
50
|
-
if (expon == 1025) {
|
|
51
|
-
if (val == 0.5) {
|
|
52
|
-
return 1;
|
|
53
|
-
} else if (val == -0.5) {
|
|
54
|
-
return -1;
|
|
55
|
-
} else {
|
|
56
|
-
return 0;
|
|
57
|
-
}
|
|
58
|
-
} else {
|
|
59
|
-
return 0;
|
|
60
|
-
}
|
|
61
|
-
}
|
|
62
|
-
static int isnan (double d) {
|
|
63
|
-
int expon = 0;
|
|
64
|
-
double val = frexp (d, &expon);
|
|
65
|
-
if (expon == 1025) {
|
|
66
|
-
if (val == 0.5) {
|
|
67
|
-
return 0;
|
|
68
|
-
} else if (val == -0.5) {
|
|
69
|
-
return 0;
|
|
70
|
-
} else {
|
|
71
|
-
return 1;
|
|
72
|
-
}
|
|
73
|
-
} else {
|
|
74
|
-
return 0;
|
|
75
|
-
}
|
|
76
|
-
}
|
|
77
|
-
#endif /* _MSC_VER */
|
|
78
|
-
|
|
79
|
-
#include <direct.h>
|
|
80
|
-
#if defined(_MSC_VER) || defined(__MINGW32__)
|
|
81
|
-
#define mkdir(p,m) _mkdir(p)
|
|
82
|
-
#define snprintf _snprintf
|
|
83
|
-
#if _MSC_VER < 1500
|
|
84
|
-
#define vsnprintf(b,c,f,a) _vsnprintf(b,c,f,a)
|
|
85
|
-
#endif
|
|
86
|
-
#endif
|
|
87
|
-
|
|
88
|
-
#define HAVE_SYS_STAT_H
|
|
89
|
-
#define HAVE__STAT
|
|
90
|
-
#define HAVE_STRING_H
|
|
91
|
-
|
|
92
|
-
#include <libxml/xmlversion.h>
|
|
93
|
-
|
|
94
|
-
#ifndef ATTRIBUTE_UNUSED
|
|
95
|
-
#define ATTRIBUTE_UNUSED
|
|
96
|
-
#endif
|
|
97
|
-
|
|
98
|
-
#define _WINSOCKAPI_
|
|
99
|
-
|
|
100
|
-
#endif /* __LIBXSLT_WIN32_CONFIG__ */
|
|
101
|
-
|
|
@@ -1,103 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Summary: Interfaces, constants and types related to the XSLT engine
|
|
3
|
-
* Description: Interfaces, constants and types related to the XSLT engine
|
|
4
|
-
*
|
|
5
|
-
* Copy: See Copyright for the status of this software.
|
|
6
|
-
*
|
|
7
|
-
* Author: Daniel Veillard
|
|
8
|
-
*/
|
|
9
|
-
|
|
10
|
-
#ifndef __XML_XSLT_H__
|
|
11
|
-
#define __XML_XSLT_H__
|
|
12
|
-
|
|
13
|
-
#include <libxml/tree.h>
|
|
14
|
-
#include "xsltexports.h"
|
|
15
|
-
|
|
16
|
-
#ifdef __cplusplus
|
|
17
|
-
extern "C" {
|
|
18
|
-
#endif
|
|
19
|
-
|
|
20
|
-
/**
|
|
21
|
-
* XSLT_DEFAULT_VERSION:
|
|
22
|
-
*
|
|
23
|
-
* The default version of XSLT supported.
|
|
24
|
-
*/
|
|
25
|
-
#define XSLT_DEFAULT_VERSION "1.0"
|
|
26
|
-
|
|
27
|
-
/**
|
|
28
|
-
* XSLT_DEFAULT_VENDOR:
|
|
29
|
-
*
|
|
30
|
-
* The XSLT "vendor" string for this processor.
|
|
31
|
-
*/
|
|
32
|
-
#define XSLT_DEFAULT_VENDOR "libxslt"
|
|
33
|
-
|
|
34
|
-
/**
|
|
35
|
-
* XSLT_DEFAULT_URL:
|
|
36
|
-
*
|
|
37
|
-
* The XSLT "vendor" URL for this processor.
|
|
38
|
-
*/
|
|
39
|
-
#define XSLT_DEFAULT_URL "http://xmlsoft.org/XSLT/"
|
|
40
|
-
|
|
41
|
-
/**
|
|
42
|
-
* XSLT_NAMESPACE:
|
|
43
|
-
*
|
|
44
|
-
* The XSLT specification namespace.
|
|
45
|
-
*/
|
|
46
|
-
#define XSLT_NAMESPACE ((xmlChar *) "http://www.w3.org/1999/XSL/Transform")
|
|
47
|
-
|
|
48
|
-
/**
|
|
49
|
-
* XSLT_PARSE_OPTIONS:
|
|
50
|
-
*
|
|
51
|
-
* The set of options to pass to an xmlReadxxx when loading files for
|
|
52
|
-
* XSLT consumption.
|
|
53
|
-
*/
|
|
54
|
-
#define XSLT_PARSE_OPTIONS \
|
|
55
|
-
XML_PARSE_NOENT | XML_PARSE_DTDLOAD | XML_PARSE_DTDATTR | XML_PARSE_NOCDATA
|
|
56
|
-
|
|
57
|
-
/**
|
|
58
|
-
* xsltMaxDepth:
|
|
59
|
-
*
|
|
60
|
-
* This value is used to detect templates loops.
|
|
61
|
-
*/
|
|
62
|
-
XSLTPUBVAR int xsltMaxDepth;
|
|
63
|
-
|
|
64
|
-
/**
|
|
65
|
-
* xsltEngineVersion:
|
|
66
|
-
*
|
|
67
|
-
* The version string for libxslt.
|
|
68
|
-
*/
|
|
69
|
-
XSLTPUBVAR const char *xsltEngineVersion;
|
|
70
|
-
|
|
71
|
-
/**
|
|
72
|
-
* xsltLibxsltVersion:
|
|
73
|
-
*
|
|
74
|
-
* The version of libxslt compiled.
|
|
75
|
-
*/
|
|
76
|
-
XSLTPUBVAR const int xsltLibxsltVersion;
|
|
77
|
-
|
|
78
|
-
/**
|
|
79
|
-
* xsltLibxmlVersion:
|
|
80
|
-
*
|
|
81
|
-
* The version of libxml libxslt was compiled against.
|
|
82
|
-
*/
|
|
83
|
-
XSLTPUBVAR const int xsltLibxmlVersion;
|
|
84
|
-
|
|
85
|
-
/*
|
|
86
|
-
* Global initialization function.
|
|
87
|
-
*/
|
|
88
|
-
|
|
89
|
-
XSLTPUBFUN void XSLTCALL
|
|
90
|
-
xsltInit (void);
|
|
91
|
-
|
|
92
|
-
/*
|
|
93
|
-
* Global cleanup function.
|
|
94
|
-
*/
|
|
95
|
-
XSLTPUBFUN void XSLTCALL
|
|
96
|
-
xsltCleanupGlobals (void);
|
|
97
|
-
|
|
98
|
-
#ifdef __cplusplus
|
|
99
|
-
}
|
|
100
|
-
#endif
|
|
101
|
-
|
|
102
|
-
#endif /* __XML_XSLT_H__ */
|
|
103
|
-
|