User: hr      
Date: 05/09/23 04:40:29

Modified:
 /dba/connectivity/source/drivers/hsqldb/
  StorageNativeInputStream.cxx

Log:
 INTEGRATION: CWS dba201b (1.5.40); FILE MERGED
 2005/09/21 08:17:47 oj 1.5.40.2: RESYNC: (1.5-1.6); FILE MERGED
 2005/07/11 13:56:40 fs 1.5.40.1: merging CWS dba201a into dba201b

File Changes:

Directory: /dba/connectivity/source/drivers/hsqldb/
===================================================

File [changed]: StorageNativeInputStream.cxx
Url: 
http://dba.openoffice.org/source/browse/dba/connectivity/source/drivers/hsqldb/StorageNativeInputStream.cxx?r1=1.6&r2=1.7
Delta lines:  +12 -12
---------------------
--- StorageNativeInputStream.cxx        8 Sep 2005 06:06:26 -0000       1.6
+++ StorageNativeInputStream.cxx        23 Sep 2005 11:40:27 -0000      1.7
@@ -98,7 +98,7 @@
 JNIEXPORT void JNICALL 
Java_com_sun_star_sdbcx_comp_hsqldb_StorageNativeInputStream_openStream
   (JNIEnv * env, jobject obj_this,jstring key, jstring name, jint mode)
 {
-#if OSL_DEBUG_LEVEL > 1
+#ifdef HSQLDB_DBG
     {
         OperationLogFile( env, name, "input" ).logOperation( "openStream" );
         LogFile( env, name, "input" ).create();
@@ -116,7 +116,7 @@
 JNIEXPORT jint JNICALL 
Java_com_sun_star_sdbcx_comp_hsqldb_StorageNativeInputStream_read__Ljava_lang_String_2Ljava_lang_String_2
   (JNIEnv * env, jobject obj_this,jstring key, jstring name)
 {
-#if OSL_DEBUG_LEVEL > 1
+#ifdef HSQLDB_DBG
     OperationLogFile( env, name, "input" ).logOperation( "read()" );
 
     DataLogFile aDataLog( env, name, "input" );
@@ -135,7 +135,7 @@
 JNIEXPORT jint JNICALL 
Java_com_sun_star_sdbcx_comp_hsqldb_StorageNativeInputStream_read__Ljava_lang_String_2Ljava_lang_String_2_3BII
   (JNIEnv * env, jobject obj_this,jstring key, jstring name, jbyteArray 
buffer, jint off, jint len)
 {
-#if OSL_DEBUG_LEVEL > 1
+#ifdef HSQLDB_DBG
     OperationLogFile( env, name, "input" ).logOperation( "read( byte[], int, 
int )" );
 
     DataLogFile aDataLog( env, name, "input" );
@@ -154,7 +154,7 @@
 JNIEXPORT void JNICALL 
Java_com_sun_star_sdbcx_comp_hsqldb_StorageNativeInputStream_close
   (JNIEnv * env, jobject obj_this,jstring key, jstring name)
 {
-#if OSL_DEBUG_LEVEL > 1
+#ifdef HSQLDB_DBG
     OperationLogFile aOpLog( env, name, "input" );
     aOpLog.logOperation( "close" );
     aOpLog.close();
@@ -174,7 +174,7 @@
 JNIEXPORT jlong JNICALL 
Java_com_sun_star_sdbcx_comp_hsqldb_StorageNativeInputStream_skip
   (JNIEnv * env, jobject obj_this,jstring key, jstring name, jlong n)
 {
-#if OSL_DEBUG_LEVEL > 1
+#ifdef HSQLDB_DBG
     OperationLogFile( env, name, "input" ).logOperation( "skip()" );
 #endif
 
@@ -210,7 +210,7 @@
 
                                    } while (tmpLongVal > 0);
                 }
-                catch(Exception& e )
+                catch(Exception& )
                 {
                 }
 
@@ -241,7 +241,7 @@
 JNIEXPORT jint JNICALL 
Java_com_sun_star_sdbcx_comp_hsqldb_StorageNativeInputStream_available
   (JNIEnv * env, jobject obj_this,jstring key, jstring name)
 {
-#if OSL_DEBUG_LEVEL > 1
+#ifdef HSQLDB_DBG
     OperationLogFile aOpLog( env, name, "input" );
     aOpLog.logOperation( "available" );
 #endif
@@ -254,7 +254,7 @@
                try
                {
             jint nAvailable = xIn->available();
-#if OSL_DEBUG_LEVEL > 1
+#ifdef HSQLDB_DBG
             aOpLog.logReturn( nAvailable );
 #endif
                        return nAvailable;
@@ -283,7 +283,7 @@
 JNIEXPORT jint JNICALL 
Java_com_sun_star_sdbcx_comp_hsqldb_StorageNativeInputStream_read__Ljava_lang_String_2Ljava_lang_String_2_3B
   (JNIEnv * env, jobject obj_this,jstring key, jstring name, jbyteArray buffer)
 {
-#if OSL_DEBUG_LEVEL > 1
+#ifdef HSQLDB_DBG
     OperationLogFile aOpLog( env, name, "input" );
     aOpLog.logOperation( "read( byte[] )" );
 
@@ -314,7 +314,7 @@
                // must <= len.
                //
                if (nBytesRead <= 0) {
-#if OSL_DEBUG_LEVEL > 1
+#ifdef HSQLDB_DBG
             aOpLog.logReturn( (jint)-1 );
 #endif
                        return -1;
@@ -322,11 +322,11 @@
         OSL_ENSURE(nLen >= nBytesRead,"Buffer is too small!");
         OSL_ENSURE(aData.getLength() >= nBytesRead,"Buffer is too small!");
                env->SetByteArrayRegion(buffer,0,nBytesRead,&aData[0]);
-#if OSL_DEBUG_LEVEL > 1
+#ifdef HSQLDB_DBG
         aDataLog.write( &aData[0], nBytesRead );
 #endif
        }
-#if OSL_DEBUG_LEVEL > 1
+#ifdef HSQLDB_DBG
     aOpLog.logReturn( nBytesRead );
 #endif
        return nBytesRead;




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to