Project

Profile

Help

Revision f62330e8

Added by O'Neil Delpratt almost 6 years ago

Saxon/C bug fix and minor things

View differences:

latest9.6/hec/Saxon.C.API/EEC/SaxonCGlue.h
53 53

  
54 54
EXTERN_C
55 55

  
56
 
56 57

  
57

  
58

  
59
static char dllname[] =
60
    #ifdef __linux__
61
        "/usr/lib/libsaxoneec.so";  //rename according to product edition (hec or pec) Also make change in the c file
58
static char tempDllname[] =
59
#if defined (__linux__)
60
        "/libsaxoneec.so";  
62 61
    #elif  defined (__APPLE__) && defined(__MACH__)
63
        "/usr/lib/libsaxoneec.dylib";
62
        "/libsaxoneec.dylib";
64 63
    #else
65
         "C:\\Program Files\\Saxonica\\SaxonHEC1.0.1\\libsaxoneec.dll";
64
         "\\libsaxoneec.dll";
66 65
    #endif
67 66

  
68
static char resources_dir[] = 
67
static char tempResources_dir[] = 
69 68
     #ifdef __linux__
70
        "/usr/lib/saxon-data";
69
        "/saxon-data";
71 70
    #elif  defined (__APPLE__) && defined(__MACH__)
72
        "/usr/lib/saxon-data";
71
        "/saxon-data";
73 72
    #else
74
         "C:\\Program Files\\Saxonica\\SaxonHEC1.0.1\\saxon-data";
73
         "\\saxon-data";
75 74
    #endif
76 75

  
76

  
77
static char * dllname;
78

  
79
static char *resources_dir;
80

  
77 81
// Static variable used to track when jvm has been created. Used to prevent creation more than once.
78 82
static int jvmCreated =0;
79 83

  
......
125 129
char * getDllname();
126 130

  
127 131

  
132
/*
133
* Get Dll name.
134
*/
135

  
136
char * getResourceDirectory();
137

  
128 138
/*
129 139
* Set Dll name. Also set the saxon resources directory. 
130 140
* If the SAXON_HOME environmental variable is set then use that as base.

Also available in: Unified diff