Project

Profile

Help

Revision 52505fd1

Added by O'Neil Delpratt about 2 years ago

Saxon/C bug fix to commands

View differences:

latest9.8/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";
30 35
    #else
31
#ifdef EEC
32
        "Saxon-eec.dll";
33
#elif defined PEC
34
	"Saxon-pec.dll";
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";
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
39 55

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

Also available in: Unified diff