Bug #2649
closedCompilation with DEBUG defined
100%
Description
When the DEBUG flag is defined the following compilation error is produced...
../../Saxon.C.API/SaxonCProcessor.c: In function 'xsltApplyStylesheet':
../../Saxon.C.API/SaxonCProcessor.c:146:37: error: invalid type argument of '->' (have 'sxnc_environment')
../../Saxon.C.API/SaxonCProcessor.c:147:9: error: invalid type argument of '->' (have 'sxnc_environment')
../../Saxon.C.API/SaxonCProcessor.c: In function 'xsltApplyStylesheet':
../../Saxon.C.API/SaxonCProcessor.c:146:37: error: invalid type argument of '->' (have 'sxnc_environment')
../../Saxon.C.API/SaxonCProcessor.c:147:9: error: invalid type argument of '->' (have 'sxnc_environment')
../../Saxon.C.API/SaxonCProcessor.c: In function 'xsltApplyStylesheet':
../../Saxon.C.API/SaxonCProcessor.c:146:37: error: invalid type argument of '->' (have 'sxnc_environment')
../../Saxon.C.API/SaxonCProcessor.c:147:9: error: invalid type argument of '->' (have 'sxnc_environment')
Lines referenced are:
#ifdef DEBUG
jmethodID debugMID = environ->env->GetStaticMethodID(environ.env, cppClass, "setDebugMode", "(Z)V");
environ->env->CallStaticVoidMethod(environ.env, cppClass, debugMID, (jboolean)true);
#endif
In order to make these lines to compile I changed the code to....
#ifdef DEBUG
jmethodID debugMID = (*(environ.env))->GetStaticMethodID(environ.env, cppClass, "setDebugMode", "(Z)V");
(*(environ.env))->CallStaticVoidMethod(environ.env, cppClass, debugMID, (jboolean)true);
#endif
Please register to edit this issue