Project

Profile

Help

Revision 4364429b

Added by O'Neil Delpratt about 2 years ago

Saxon/C update to the command

View differences:

latest9.9/hec/command/Query.c
13 13
    #include <windows.h>
14 14
#endif
15 15

  
16
typedef int bool;
17
#define true 1
18
#define false 0
16
#ifndef __cplusplus
17
    #ifndef _BOOL
18
        #include <stdbool.h>
19
        //typedef int bool;
20
        #define true 1
21
        #define false 0
22
    #else
23
        #define true 1
24
        #define false 0
25
    #endif
26
#endif
19 27

  
20 28

  
21 29
char dllname[] =
22
    #ifdef __linux__
23
#ifdef EEC
24
        "/usr/lib/libsaxoneec.so";
25
#elif defined PEC
26
	"/usr/lib/libsaxonpec.so";
27
#else
28
	"/usr/lib/libsaxonhec.so";
29
#endif
30
#ifdef __linux__
31
    #ifdef EEC
32
            "/usr/lib/libsaxoneec.so";
33
    #elif defined PEC
34
	    "/usr/lib/libsaxonpec.so";
35
    #else
36
	    "/usr/lib/libsaxonhec.so";
37
    #endif
38
#elif defined __APPLE__
39
    #ifdef EEC
40
        "/usr/local/lib/libsaxoneec.dylib";
41
    #elif defined PEC
42
	    "/usr/local/lib/libsaxonpec.dylib";
30 43
    #else
31
#ifdef EEC
32
        "Saxon-eec.dll";
33
#elif defined PEC
34
	"Saxon-pec.dll";
44
	    "/usr/local/lib/libsaxonhec.dylib";
45
    #endif
35 46
#else
36
	"Saxon-hec.dll";
37
#endif
47
    #ifdef EEC
48
        "libsaxoneec.dll";
49
    #elif defined PEC
50
	    "libsaxonpec.dll";
51
    #else
52
	    "libsaxonhec.dll";
38 53
    #endif
54
#endif
55

  
39 56

  
40 57
//===============================================================================================//
41 58
/*! <code>Environment</code>. This struct captures the jni, JVM and handler to the cross compiled Saxon/C library.
latest9.9/hec/command/Transform.c
13 13
    #include <windows.h>
14 14
#endif
15 15

  
16
typedef int bool;
17
#define true 1
18
#define false 0
16
#ifndef __cplusplus
17
    #ifndef _BOOL
18
        #include <stdbool.h>
19
        //typedef int bool;
20
        #define true 1
21
        #define false 0
22
    #else
23
        #define true 1
24
        #define false 0
25
    #endif
26
#endif
19 27

  
20 28

  
21 29
char dllname[] =
22
   // #ifdef __linux__
23
#ifdef EEC
24
        "/usr/lib/libsaxoneec.so";
25
#elif defined PEC
26
	"/usr/lib/libsaxonpec.so";
27
#else
28
	"/usr/lib/libsaxonhec.so";
29
#endif
30
/*    #else
31
#ifdef EEC
32
        "Saxon-eec.dll";
33
#elif defined PEC
34
	"Saxon-pec.dll";
30
#ifdef __linux__
31
    #ifdef EEC
32
         "/usr/lib/libsaxoneec.so";
33
    #elif defined PEC
34
	    "/usr/lib/libsaxonpec.so";
35
    #else
36
	    "/usr/lib/libsaxonhec.so";
37
    #endif
38
#elif defined __APPLE__
39
    #ifdef EEC
40
            "/usr/local/lib/libsaxoneec.dylib";
41
    #elif defined PEC
42
	    "/usr/local/lib/libsaxonpec.dylib";
43
    #else
44
	    "/usr/local/lib/libsaxonhec.dylib";
45
    #endif
35 46
#else
36
	"Saxon-hec.dll";
47
    #ifdef EEC
48
        "libsaxoneec.dll";
49
    #elif defined PEC
50
	    "libsaxonpec.dll";
51
    #else
52
	    "libsaxonhec.dll";
53
    #endif
37 54
#endif
38 55

  
39
#endif
40 56
*/
41 57
//===============================================================================================//
42 58
/*! <code>Environment</code>. This struct captures the jni, JVM and handler to the cross compiled Saxon/C library.
latest9.9/hec/command/Validate.c
12 12
    #include <windows.h>
13 13
#endif
14 14

  
15
typedef int bool;
16
#define true 1
17
#define false 0
15
#ifndef __cplusplus
16
    #ifndef _BOOL
17
        #include <stdbool.h>
18
        //typedef int bool;
19
        #define true 1
20
        #define false 0
21
    #else
22
        #define true 1
23
        #define false 0
24
    #endif
25
#endif
18 26

  
19 27

  
20 28
char dllname[] =
21
    #ifdef __linux__
22
#ifdef EEC
23
        "/usr/lib/libsaxoneec.so";
24
#elif defined PEC
25
	"/usr/lib/libsaxonpec.so";
26
#else
27
	"/usr/lib/libsaxonhec.so";
28
#endif
29
#ifdef __linux__
30
    #ifdef EEC
31
            "/usr/lib/libsaxoneec.so";
32
    #elif defined PEC
33
	    "/usr/lib/libsaxonpec.so";
29 34
    #else
30
#ifdef EEC
31
        "Saxon-eec.dll";
32
#elif defined PEC
33
	"Saxon-pec.dll";
35
	    "/usr/lib/libsaxonhec.so";
36
    #endif
37
#elif defined __APPLE__
38
    #ifdef EEC
39
        "/usr/local/lib/libsaxoneec.dylib";
40
    #elif defined PEC
41
	    "/usr/local/lib/libsaxonpec.dylib";
42
    #else
43
	    "/usr/local/lib/libsaxonhec.dylib";
44
    #endif
34 45
#else
35
	"Saxon-hec.dll";
46
    #ifdef EEC
47
        "libsaxoneec.dll";
48
    #elif defined PEC
49
	    "libsaxonpec.dll";
50
    #else
51
	    "libsaxonhec.dll";
52
    #endif
36 53
#endif
37 54

  
38
#endif
39 55
//===============================================================================================//
40 56
/*! <code>Environment</code>. This struct captures the jni, JVM and handler to the cross compiled Saxon/C library.
41 57
 * <p/>

Also available in: Unified diff