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/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